From 71c2c63d555ea5b86e1498f6e572023bc01ff98d Mon Sep 17 00:00:00 2001 From: Tine Kondo Date: Thu, 16 Oct 2025 14:56:58 +0000 Subject: [PATCH] chore: replace `bun` by `node/npm` in the `devcontainer` (as many CLI-based agents actually require a `node` runtime) --- .devcontainer/devcontainer.json | 3 +++ .devcontainer/post-create.sh | 25 ++++++++----------------- AGENTS.md | 2 +- 3 files changed, 12 insertions(+), 18 deletions(-) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index 00d676cd..caf184c1 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -20,6 +20,9 @@ "ghcr.io/devcontainers/features/git:1": { "ppa": true, "version": "latest" + }, + "ghcr.io/devcontainers/features/node": { + "version": "lts" } }, diff --git a/.devcontainer/post-create.sh b/.devcontainer/post-create.sh index dd518064..9608a28a 100755 --- a/.devcontainer/post-create.sh +++ b/.devcontainer/post-create.sh @@ -21,43 +21,34 @@ run_command() { fi } -# Note: We use Bun (instead of npm) as our package manager for its speed and overall efficiency -# It is a drop-in replacement for Node.js, so we can install npm packages through it without issues -echo "šŸ“¦ Installing Bun Package Manager..." -run_command "curl -fsSL https://bun.sh/install | bash" -echo "āœ… Done" - -export BUN_INSTALL="$HOME/.bun" -export PATH="$BUN_INSTALL/bin:$PATH" - # Installing CLI-based AI Agents echo -e "\nšŸ¤– Installing Copilot CLI..." -run_command "bun add --global @github/copilot@latest" +run_command "npm install -g @github/copilot@latest" echo "āœ… Done" echo -e "\nšŸ¤– Installing Claude CLI..." -run_command "bun add --global @anthropic-ai/claude-code@latest" +run_command "npm install -g @anthropic-ai/claude-code@latest" echo "āœ… Done" echo -e "\nšŸ¤– Installing Codex CLI..." -run_command "bun add --global @openai/codex@latest" +run_command "npm install -g @openai/codex@latest" echo "āœ… Done" echo -e "\nšŸ¤– Installing Gemini CLI..." -run_command "bun add --global @google/gemini-cli@latest" +run_command "npm install -g @google/gemini-cli@latest" echo "āœ… Done" echo -e "\nšŸ¤– Installing Augie CLI..." -run_command "bun add --global @augmentcode/auggie@latest" +run_command "npm install -g @augmentcode/auggie@latest" echo "āœ… Done" echo -e "\nšŸ¤– Installing Qwen Code CLI..." -run_command "bun add --global @qwen-code/qwen-code@latest" +run_command "npm install -g @qwen-code/qwen-code@latest" echo "āœ… Done" echo -e "\nšŸ¤– Installing OpenCode CLI..." -run_command "bun add --global opencode-ai@latest" +run_command "npm install -g opencode-ai@latest" echo "āœ… Done" echo -e "\nšŸ¤– Installing Amazon Q CLI..." @@ -89,7 +80,7 @@ run_command "rm -rf ./q q.zip q.zip.sig amazonq-public-key.asc" echo "āœ… Done" echo -e "\nšŸ¤– Installing CodeBuddy CLI..." -run_command "bun add --global @tencent-ai/codebuddy-code@latest" +run_command "npm install -g @tencent-ai/codebuddy-code@latest" echo "āœ… Done" # Installing UV (Python package manager) diff --git a/AGENTS.md b/AGENTS.md index 40c187ac..492603cd 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -271,7 +271,7 @@ For agents that require CLI tools, add installation commands to `.devcontainer/p # Existing installations... echo -e "\nšŸ¤– Installing [New Agent Name] CLI..." -# run_command "bun add --global [agent-cli-package]@latest" # Example for node-based CLI +# run_command "npm install -g [agent-cli-package]@latest" # Example for node-based CLI # or other installation instructions (must be non-interactive and compatible with Linux Debian "Trixie" or later)... echo "āœ… Done"