mirror of
https://github.com/github/spec-kit.git
synced 2026-01-30 04:32:02 +00:00
chore: replace bun by node/npm in the devcontainer (as many CLI-based agents actually require a node runtime)
This commit is contained in:
@@ -20,6 +20,9 @@
|
|||||||
"ghcr.io/devcontainers/features/git:1": {
|
"ghcr.io/devcontainers/features/git:1": {
|
||||||
"ppa": true,
|
"ppa": true,
|
||||||
"version": "latest"
|
"version": "latest"
|
||||||
|
},
|
||||||
|
"ghcr.io/devcontainers/features/node": {
|
||||||
|
"version": "lts"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
@@ -21,43 +21,34 @@ run_command() {
|
|||||||
fi
|
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
|
# Installing CLI-based AI Agents
|
||||||
|
|
||||||
echo -e "\n🤖 Installing Copilot CLI..."
|
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 "✅ Done"
|
||||||
|
|
||||||
echo -e "\n🤖 Installing Claude CLI..."
|
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 "✅ Done"
|
||||||
|
|
||||||
echo -e "\n🤖 Installing Codex CLI..."
|
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 "✅ Done"
|
||||||
|
|
||||||
echo -e "\n🤖 Installing Gemini CLI..."
|
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 "✅ Done"
|
||||||
|
|
||||||
echo -e "\n🤖 Installing Augie CLI..."
|
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 "✅ Done"
|
||||||
|
|
||||||
echo -e "\n🤖 Installing Qwen Code CLI..."
|
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 "✅ Done"
|
||||||
|
|
||||||
echo -e "\n🤖 Installing OpenCode CLI..."
|
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 "✅ Done"
|
||||||
|
|
||||||
echo -e "\n🤖 Installing Amazon Q CLI..."
|
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 "✅ Done"
|
||||||
|
|
||||||
echo -e "\n🤖 Installing CodeBuddy CLI..."
|
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"
|
echo "✅ Done"
|
||||||
|
|
||||||
# Installing UV (Python package manager)
|
# Installing UV (Python package manager)
|
||||||
|
|||||||
@@ -271,7 +271,7 @@ For agents that require CLI tools, add installation commands to `.devcontainer/p
|
|||||||
# Existing installations...
|
# Existing installations...
|
||||||
|
|
||||||
echo -e "\n🤖 Installing [New Agent Name] CLI..."
|
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)...
|
# or other installation instructions (must be non-interactive and compatible with Linux Debian "Trixie" or later)...
|
||||||
echo "✅ Done"
|
echo "✅ Done"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user