Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 |
Expand Down
2 changes: 1 addition & 1 deletion src/gitagent.sh/devcontainer-feature.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
7 changes: 7 additions & 0 deletions src/gitagent.sh/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
1 change: 1 addition & 0 deletions test/gitagent.sh/test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ source dev-container-features-test-lib
# check <LABEL> <cmd> [args...]

check "check existence" bash -c "ls -lah /usr/local/bin/gitagent"
check "execute command" bash -c "gitagent --version"

# Report results
# If any of the checks above exited with a non-zero exit code, the test will fail.
Expand Down
Loading