diff --git a/README.md b/README.md index 1cd6ed0..131ff62 100644 --- a/README.md +++ b/README.md @@ -48,7 +48,7 @@ | [feature-installer](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/feature-installer) | `feature-installer` — install devcontainer features at runtime | curl | 1.0.0 | | [fzf](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/fzf) | `fzf` — general-purpose command-line fuzzy finder | gh release | 1.0.0 | | [getdnote.com](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/getdnote.com) | `dnote` — simple command-line notebook for developers | gh release | 1.0.0 | -| [gitagent.sh](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/gitagent.sh) | `gitagent` — framework-agnostic, git-native standard for defining AI agents | bun | 1.0.0 | +| [gitagent.sh](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/gitagent.sh) | `gitagent` — framework-agnostic, git-native standard for defining AI agents | bun | 1.0.1 | | [github.com/cli](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/github.com-cli) | `gh` — GitHub CLI | curl | 1.0.1 | | [helix-editor.com](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/helix-editor.com) | `hx` — modal text editor with built-in LSP | gh release | 1.0.0 | | [hermes-agent.nousresearch.com](https://github.com/devcontainer-community/devcontainer-features/tree/main/src/hermes-agent.nousresearch.com) | `hermes` — self-improving AI agent by Nous Research | curl | 1.0.0 | diff --git a/src/gitagent.sh/devcontainer-feature.json b/src/gitagent.sh/devcontainer-feature.json index 3edd650..9566aea 100644 --- a/src/gitagent.sh/devcontainer-feature.json +++ b/src/gitagent.sh/devcontainer-feature.json @@ -1,7 +1,7 @@ { "name": "gitagent.sh", "id": "gitagent.sh", - "version": "1.0.0", + "version": "1.0.1", "description": "Install \"gitagent\" binary", "documentationURL": "https://github.com/devcontainer-community/devcontainer-features/tree/main/src/gitagent.sh", "options": { diff --git a/src/gitagent.sh/install.sh b/src/gitagent.sh/install.sh index f6056b4..6c591b5 100755 --- a/src/gitagent.sh/install.sh +++ b/src/gitagent.sh/install.sh @@ -51,6 +51,13 @@ install() { else bun install -g "@shreyaskapale/gitagent@${VERSION}" fi + # bun creates a symlink pointing to a .js file with a node shebang. + # Replace it with a shell wrapper that uses bun so node is not required. + local gitagentJs + gitagentJs=$(readlink -f "${binaryTargetFolder}/${binaryName}") + rm "${binaryTargetFolder}/${binaryName}" + printf '#!/bin/sh\nexec bun run "%s" "$@"\n' "${gitagentJs}" > "${binaryTargetFolder}/${binaryName}" + chmod +x "${binaryTargetFolder}/${binaryName}" apt_get_cleanup } echo_banner "devcontainer.community" diff --git a/test/gitagent.sh/test.sh b/test/gitagent.sh/test.sh index 5e8fe87..1a8ec2f 100755 --- a/test/gitagent.sh/test.sh +++ b/test/gitagent.sh/test.sh @@ -13,6 +13,7 @@ source dev-container-features-test-lib # check