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.
Files changed (3) hide show
  1. package/README.md +16 -26
  2. package/dist/cli.js +1139 -1139
  3. package/package.json +1 -2
package/README.md CHANGED
@@ -1,38 +1,28 @@
1
- # AI 编程助手 CLI
1
+ # gong-code
2
2
 
3
- 终端中的 AI 编程助手,支持多种大模型。
3
+ 终端 AI 编程助手。
4
4
 
5
- ## 支持的模型
5
+ ## 安装
6
6
 
7
- - **MiniMax M2.7** (默认)
8
- - GLM (智谱)
9
- - OpenAI 兼容接口
10
-
11
- ## 快速开始
7
+ **1. 先安装 [Bun](https://bun.sh)**
12
8
 
13
9
  ```bash
14
- # 安装依赖
15
- bun install
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
- # MiniMax (默认)
28
- export MODEL_PROVIDER=minimax
19
+ bun install -g gong-code
20
+ ```
29
21
 
30
- # 智谱 GLM
31
- export MODEL_PROVIDER=glm
32
- export GLM_API_KEY="your-key"
22
+ ## 使用
33
23
 
34
- # OpenAI 兼容
35
- export MODEL_PROVIDER=openai-compat
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。