vibe-coding.sh
· 889 B · Bash
Sin formato
#!/usr/bin/env bash
npm_packages() {
packages=(
"@openai/codex"
"@google/gemini-cli"
"@iflow-ai/iflow-cli"
"@qwen-code/qwen-code"
"@tencent-ai/codebuddy-code"
"@musistudio/claude-code-router"
)
echo
for pkg in "${packages[@]}"; do
echo
echo "Installing $pkg..."
npm install -g "$pkg"
done
}
spec() {
echo
echo "Installing @fission-ai/openspec"
npm install -g @fission-ai/openspec
echo "Installing uv spec-kit"
uv tool install specify-cli --from git+https://github.com/github/spec-kit.git
}
binary_list() {
urls=(
"https://opencode.ai/install"
"https://filetas.asfd.cn/claude.ai/install.sh"
)
echo
for url in "${urls[@]}"; do
echo
echo "execute: curl -L fx4.cn/x | bash -s -- $url | bash"
curl -L fx4.cn/x | bash -s -- "$url" | bash
done
}
main() {
npm_packages
spec
binary_list
}
main "$@"
| 1 | #!/usr/bin/env bash |
| 2 | |
| 3 | npm_packages() { |
| 4 | packages=( |
| 5 | "@openai/codex" |
| 6 | "@google/gemini-cli" |
| 7 | "@iflow-ai/iflow-cli" |
| 8 | "@qwen-code/qwen-code" |
| 9 | "@tencent-ai/codebuddy-code" |
| 10 | "@musistudio/claude-code-router" |
| 11 | ) |
| 12 | |
| 13 | echo |
| 14 | for pkg in "${packages[@]}"; do |
| 15 | echo |
| 16 | echo "Installing $pkg..." |
| 17 | npm install -g "$pkg" |
| 18 | done |
| 19 | } |
| 20 | |
| 21 | spec() { |
| 22 | echo |
| 23 | echo "Installing @fission-ai/openspec" |
| 24 | npm install -g @fission-ai/openspec |
| 25 | |
| 26 | echo "Installing uv spec-kit" |
| 27 | uv tool install specify-cli --from git+https://github.com/github/spec-kit.git |
| 28 | } |
| 29 | |
| 30 | binary_list() { |
| 31 | urls=( |
| 32 | "https://opencode.ai/install" |
| 33 | "https://filetas.asfd.cn/claude.ai/install.sh" |
| 34 | ) |
| 35 | |
| 36 | echo |
| 37 | for url in "${urls[@]}"; do |
| 38 | echo |
| 39 | echo "execute: curl -L fx4.cn/x | bash -s -- $url | bash" |
| 40 | curl -L fx4.cn/x | bash -s -- "$url" | bash |
| 41 | done |
| 42 | } |
| 43 | |
| 44 | main() { |
| 45 | npm_packages |
| 46 | spec |
| 47 | binary_list |
| 48 | } |
| 49 | |
| 50 | main "$@" |