gong-code 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +25 -6
- package/dist/cli.js +1139 -1139
- package/package.json +1 -2
package/README.md
CHANGED
|
@@ -1,24 +1,36 @@
|
|
|
1
|
-
#
|
|
1
|
+
# gong-code
|
|
2
2
|
|
|
3
3
|
终端中的 AI 编程助手,支持多种大模型。
|
|
4
4
|
|
|
5
|
+
## 安装
|
|
6
|
+
|
|
7
|
+
需要 [Bun](https://bun.sh) 运行时。
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
# 安装 Bun (如果没有)
|
|
11
|
+
curl -fsSL https://bun.sh/install | bash
|
|
12
|
+
|
|
13
|
+
# 全局安装
|
|
14
|
+
bun install -g gong-code
|
|
15
|
+
|
|
16
|
+
# 或直接运行
|
|
17
|
+
bunx gong-code
|
|
18
|
+
```
|
|
19
|
+
|
|
5
20
|
## 支持的模型
|
|
6
21
|
|
|
7
|
-
- **MiniMax
|
|
22
|
+
- **MiniMax** (默认)
|
|
8
23
|
- GLM (智谱)
|
|
9
24
|
- OpenAI 兼容接口
|
|
10
25
|
|
|
11
26
|
## 快速开始
|
|
12
27
|
|
|
13
28
|
```bash
|
|
14
|
-
# 安装依赖
|
|
15
|
-
bun install
|
|
16
|
-
|
|
17
29
|
# 设置 API Key
|
|
18
30
|
export MINIMAX_API_KEY="your-api-key"
|
|
19
31
|
|
|
20
32
|
# 启动
|
|
21
|
-
|
|
33
|
+
gong-code
|
|
22
34
|
```
|
|
23
35
|
|
|
24
36
|
## 切换模型
|
|
@@ -36,3 +48,10 @@ export MODEL_PROVIDER=openai-compat
|
|
|
36
48
|
export OPENAI_API_KEY="your-key"
|
|
37
49
|
export OPENAI_BASE_URL="https://api.example.com/v1"
|
|
38
50
|
```
|
|
51
|
+
|
|
52
|
+
## 开发
|
|
53
|
+
|
|
54
|
+
```bash
|
|
55
|
+
bun install
|
|
56
|
+
bun run dev
|
|
57
|
+
```
|