From 4da6950062a021e550d856cacf8599797df14e4a Mon Sep 17 00:00:00 2001 From: Julian lechner Date: Fri, 18 Sep 2026 09:31:41 +0200 Subject: [PATCH] feat(build): resolve shell-specific agent tool placeholder in Bash build Mirror the PowerShell build's __SHELL__ resolution so both entry points stay behaviorally equivalent. Co-Authored-By: Claude Sonnet 5 --- scripts/build.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/build.sh b/scripts/build.sh index a1837ca..4025f62 100755 --- a/scripts/build.sh +++ b/scripts/build.sh @@ -175,6 +175,9 @@ for client in codex claude; do printf 'name = %s\ndescription = %s\ndeveloper_instructions = %s\n' "$(quote_toml "$name")" "$(quote_toml "$description")" "$(quote_toml "$instructions")" > "$agents_output/$name.toml" else tools=${agent_tools[$name]:-} + shell_tool=Bash + [ "$shell" != powershell ] || shell_tool=PowerShell + tools=${tools//__SHELL__/$shell_tool} if [ -n "$tools" ]; then printf '%s\nname: %s\ndescription: %s\ntools: %s\n%s\n\n%s\n' '---' "$name" "$description" "$tools" '---' "$instructions" > "$agents_output/$name.md"; else printf '%s\nname: %s\ndescription: %s\n%s\n\n%s\n' '---' "$name" "$description" '---' "$instructions" > "$agents_output/$name.md"; fi fi done