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.
Files changed (2) hide show
  1. package/README.md +9 -38
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -1,57 +1,28 @@
1
1
  # gong-code
2
2
 
3
- 终端中的 AI 编程助手,支持多种大模型。
3
+ 终端 AI 编程助手。
4
4
 
5
5
  ## 安装
6
6
 
7
- 需要 [Bun](https://bun.sh) 运行时。
7
+ **1. 先安装 [Bun](https://bun.sh)**
8
8
 
9
9
  ```bash
10
- # 安装 Bun (如果没有)
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
- # 设置 API Key
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
- # MiniMax (默认)
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。
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gong-code",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "AI coding assistant in the terminal — supports MiniMax, GLM, OpenAI compatible APIs",
5
5
  "type": "module",
6
6
  "author": "gongzhen",