gong-code 0.1.2 → 0.1.3
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 +9 -38
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,57 +1,28 @@
|
|
|
1
1
|
# gong-code
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
终端 AI 编程助手。
|
|
4
4
|
|
|
5
5
|
## 安装
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
**1. 先安装 [Bun](https://bun.sh)**
|
|
8
8
|
|
|
9
9
|
```bash
|
|
10
|
-
#
|
|
10
|
+
# macOS / Linux
|
|
11
11
|
curl -fsSL https://bun.sh/install | bash
|
|
12
|
-
|
|
13
|
-
# 全局安装
|
|
14
|
-
bun install -g gong-code
|
|
15
|
-
|
|
16
|
-
# 或直接运行
|
|
17
|
-
bunx gong-code
|
|
18
12
|
```
|
|
19
13
|
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
- **MiniMax** (默认)
|
|
23
|
-
- GLM (智谱)
|
|
24
|
-
- OpenAI 兼容接口
|
|
14
|
+
> Windows 用户请参考 [Bun 官方安装指南](https://bun.sh/docs/installation)
|
|
25
15
|
|
|
26
|
-
|
|
16
|
+
**2. 安装 gong-code**
|
|
27
17
|
|
|
28
18
|
```bash
|
|
29
|
-
|
|
30
|
-
export MINIMAX_API_KEY="your-api-key"
|
|
31
|
-
|
|
32
|
-
# 启动
|
|
33
|
-
gong-code
|
|
19
|
+
bun install -g gong-code
|
|
34
20
|
```
|
|
35
21
|
|
|
36
|
-
##
|
|
22
|
+
## 使用
|
|
37
23
|
|
|
38
24
|
```bash
|
|
39
|
-
|
|
40
|
-
export MODEL_PROVIDER=minimax
|
|
41
|
-
|
|
42
|
-
# 智谱 GLM
|
|
43
|
-
export MODEL_PROVIDER=glm
|
|
44
|
-
export GLM_API_KEY="your-key"
|
|
45
|
-
|
|
46
|
-
# OpenAI 兼容
|
|
47
|
-
export MODEL_PROVIDER=openai-compat
|
|
48
|
-
export OPENAI_API_KEY="your-key"
|
|
49
|
-
export OPENAI_BASE_URL="https://api.example.com/v1"
|
|
25
|
+
gong-code
|
|
50
26
|
```
|
|
51
27
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
```bash
|
|
55
|
-
bun install
|
|
56
|
-
bun run dev
|
|
57
|
-
```
|
|
28
|
+
首次运行会引导你选择模型和配置 API Key。
|