gong-code 0.1.1 → 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 +16 -26
- package/dist/cli.js +1139 -1139
- package/package.json +1 -2
package/README.md
CHANGED
|
@@ -1,38 +1,28 @@
|
|
|
1
|
-
#
|
|
1
|
+
# gong-code
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
终端 AI 编程助手。
|
|
4
4
|
|
|
5
|
-
##
|
|
5
|
+
## 安装
|
|
6
6
|
|
|
7
|
-
|
|
8
|
-
- GLM (智谱)
|
|
9
|
-
- OpenAI 兼容接口
|
|
10
|
-
|
|
11
|
-
## 快速开始
|
|
7
|
+
**1. 先安装 [Bun](https://bun.sh)**
|
|
12
8
|
|
|
13
9
|
```bash
|
|
14
|
-
#
|
|
15
|
-
bun
|
|
16
|
-
|
|
17
|
-
# 设置 API Key
|
|
18
|
-
export MINIMAX_API_KEY="your-api-key"
|
|
19
|
-
|
|
20
|
-
# 启动
|
|
21
|
-
bun run dev
|
|
10
|
+
# macOS / Linux
|
|
11
|
+
curl -fsSL https://bun.sh/install | bash
|
|
22
12
|
```
|
|
23
13
|
|
|
24
|
-
|
|
14
|
+
> Windows 用户请参考 [Bun 官方安装指南](https://bun.sh/docs/installation)
|
|
15
|
+
|
|
16
|
+
**2. 安装 gong-code**
|
|
25
17
|
|
|
26
18
|
```bash
|
|
27
|
-
|
|
28
|
-
|
|
19
|
+
bun install -g gong-code
|
|
20
|
+
```
|
|
29
21
|
|
|
30
|
-
|
|
31
|
-
export MODEL_PROVIDER=glm
|
|
32
|
-
export GLM_API_KEY="your-key"
|
|
22
|
+
## 使用
|
|
33
23
|
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
export OPENAI_API_KEY="your-key"
|
|
37
|
-
export OPENAI_BASE_URL="https://api.example.com/v1"
|
|
24
|
+
```bash
|
|
25
|
+
gong-code
|
|
38
26
|
```
|
|
27
|
+
|
|
28
|
+
首次运行会引导你选择模型和配置 API Key。
|