Zuletzt aktiv 6 hours ago

更新 Vibe Coding CLI 工具

Änderung c95a9ba1d2720d0836a013452358672bde2ca6ab

vibe-coding.sh Originalformat
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
16 echo "Installing $pkg..."
17 npm install -g "$pkg"
18 done
19}
20
21spec() {
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
30binary_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
44fix_tools_claude() {
45 set -- ~/.claude/downloads/claude-*-linux-x64
46 if [ -f "$1" ]; then
47 if "$1" --version 2>/dev/null | grep -q "Claude"; then
48 mv "$1" ~/.local/bin/claude
49 fi
50 fi
51}
52
53fix_tools() {
54 // fix_tools_claude
55 echo
56}
57
58main() {
59 npm_packages
60 spec
61 binary_list
62 fix_tools
63}
64
65main "$@"