Skip to content

Commit 71c2c63

Browse files
committed
chore: replace bun by node/npm in the devcontainer (as many CLI-based agents actually require a node runtime)
1 parent b009773 commit 71c2c63

File tree

3 files changed

+12
-18
lines changed

3 files changed

+12
-18
lines changed

.devcontainer/devcontainer.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@
2020
"ghcr.io/devcontainers/features/git:1": {
2121
"ppa": true,
2222
"version": "latest"
23+
},
24+
"ghcr.io/devcontainers/features/node": {
25+
"version": "lts"
2326
}
2427
},
2528

.devcontainer/post-create.sh

Lines changed: 8 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -21,43 +21,34 @@ run_command() {
2121
fi
2222
}
2323

24-
# Note: We use Bun (instead of npm) as our package manager for its speed and overall efficiency
25-
# It is a drop-in replacement for Node.js, so we can install npm packages through it without issues
26-
echo "📦 Installing Bun Package Manager..."
27-
run_command "curl -fsSL https://bun.sh/install | bash"
28-
echo "✅ Done"
29-
30-
export BUN_INSTALL="$HOME/.bun"
31-
export PATH="$BUN_INSTALL/bin:$PATH"
32-
3324
# Installing CLI-based AI Agents
3425

3526
echo -e "\n🤖 Installing Copilot CLI..."
36-
run_command "bun add --global @github/copilot@latest"
27+
run_command "npm install -g @github/copilot@latest"
3728
echo "✅ Done"
3829

3930
echo -e "\n🤖 Installing Claude CLI..."
40-
run_command "bun add --global @anthropic-ai/claude-code@latest"
31+
run_command "npm install -g @anthropic-ai/claude-code@latest"
4132
echo "✅ Done"
4233

4334
echo -e "\n🤖 Installing Codex CLI..."
44-
run_command "bun add --global @openai/codex@latest"
35+
run_command "npm install -g @openai/codex@latest"
4536
echo "✅ Done"
4637

4738
echo -e "\n🤖 Installing Gemini CLI..."
48-
run_command "bun add --global @google/gemini-cli@latest"
39+
run_command "npm install -g @google/gemini-cli@latest"
4940
echo "✅ Done"
5041

5142
echo -e "\n🤖 Installing Augie CLI..."
52-
run_command "bun add --global @augmentcode/auggie@latest"
43+
run_command "npm install -g @augmentcode/auggie@latest"
5344
echo "✅ Done"
5445

5546
echo -e "\n🤖 Installing Qwen Code CLI..."
56-
run_command "bun add --global @qwen-code/qwen-code@latest"
47+
run_command "npm install -g @qwen-code/qwen-code@latest"
5748
echo "✅ Done"
5849

5950
echo -e "\n🤖 Installing OpenCode CLI..."
60-
run_command "bun add --global opencode-ai@latest"
51+
run_command "npm install -g opencode-ai@latest"
6152
echo "✅ Done"
6253

6354
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"
8980
echo "✅ Done"
9081

9182
echo -e "\n🤖 Installing CodeBuddy CLI..."
92-
run_command "bun add --global @tencent-ai/codebuddy-code@latest"
83+
run_command "npm install -g @tencent-ai/codebuddy-code@latest"
9384
echo "✅ Done"
9485

9586
# Installing UV (Python package manager)

AGENTS.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ For agents that require CLI tools, add installation commands to `.devcontainer/p
271271
# Existing installations...
272272

273273
echo -e "\n🤖 Installing [New Agent Name] CLI..."
274-
# run_command "bun add --global [agent-cli-package]@latest" # Example for node-based CLI
274+
# run_command "npm install -g [agent-cli-package]@latest" # Example for node-based CLI
275275
# or other installation instructions (must be non-interactive and compatible with Linux Debian "Trixie" or later)...
276276
echo "✅ Done"
277277

0 commit comments

Comments
 (0)