Last active 5 hours ago

更新 Vibe Coding CLI 工具

Revision 2b79a515a26eff389d189c5d256226e151c016a0

vibe-coding.sh Raw
1#!/usr/bin/env bash
2
3npm_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 "Installing $pkg..."
16 npm install -g "$pkg"
17 done
18}
19
20spec() {
21 echo
22 echo "Installing @fission-ai/openspec"
23 npm install -g @fission-ai/openspec
24
25 echo "Installing uv spec-kit"
26 uv tool install specify-cli --from git+https://github.com/github/spec-kit.git
27}
28
29binary_list() {
30 urls=(
31 "https://opencode.ai/install"
32 "https://filetas.asfd.cn/claude.ai/install.sh"
33 )
34
35 echo
36 for url in "${urls[@]}"; do
37 echo "execute: curl -L fx4.cn/x | bash -s -- $url | bash"
38 curl -L fx4.cn/x | bash -s -- "$url" | bash
39 done
40}
41
42main() {
43 npm_packages
44 spec
45 binary_list
46}
47
48main "$@"