@paean-ai/zero-cli 0.12.2 → 0.12.4

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 +32 -12
  2. package/dist/_cli.js +1791 -1355
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -80,7 +80,7 @@ zero provider set deepseek --api-key <YOUR_DEEPSEEK_API_KEY>
80
80
 
81
81
  # Optional: override model IDs per tier
82
82
  zero provider set zai --api-key <KEY> \
83
- --opus GLM-5.1 --sonnet GLM-4.7 --haiku GLM-4.5-Air
83
+ --opus glm-5.1 --sonnet glm-5-turbo --haiku glm-4.5-air
84
84
 
85
85
  # Switch back to Paean.ai
86
86
  zero provider clear
@@ -113,14 +113,34 @@ zero provider cache clear
113
113
 
114
114
  #### z.ai (GLM Coding Plan)
115
115
 
116
+ Zero's z.ai preset is for the GLM Coding Plan key used through Z.ai's
117
+ Anthropic-compatible Claude Code endpoint:
118
+
119
+ ```text
120
+ https://open.bigmodel.cn/api/anthropic
121
+ ```
122
+
123
+ Z.ai's GLM Coding Plan docs also list
124
+ `https://open.bigmodel.cn/api/coding/paas/v4`; that is the dedicated
125
+ OpenAI-compatible Coding API endpoint for tools that speak the OpenAI protocol.
126
+ Do not paste that URL into Zero's z.ai preset. If you want to use Z.ai's
127
+ ordinary/OpenAI-compatible API path, route it through a BYOK endpoint that
128
+ implements the Anthropic Messages API.
129
+
116
130
  | Tier | Model | Context |
117
131
  |------|-------|---------|
118
- | **pro** (default) | `GLM-5.1` | 200K |
119
- | **flash** | `GLM-4.7` | 200K |
120
- | **lite** | `GLM-4.5-Air` | 128K |
132
+ | **pro** (default) | `glm-5.1` | 200K |
133
+ | **flash** | `glm-5-turbo` | 200K |
134
+ | **lite** | `glm-4.5-air` | 128K |
121
135
 
122
136
  Get an API key at https://bigmodel.cn/usercenter/proj-mgmt/apikeys.
123
137
 
138
+ When the z.ai preset is active, Zero also exposes `/zai-usage` (aliases:
139
+ `/glm-usage`, `/coding-plan-usage`) to query GLM Coding Plan model usage, tool
140
+ usage, and quota limits. This is built into Zero and follows Z.ai's
141
+ `glm-plan-usage` plugin behavior; no separate `@z_ai/coding-helper`
142
+ installation is required.
143
+
124
144
  #### Volcengine (火山引擎 Ark Coding Plan)
125
145
 
126
146
  | Tier | Model | Context |
@@ -168,9 +188,9 @@ The `pro` / `flash` / `lite` naming aligns with how third-party Anthropic-protoc
168
188
  `zero provider set` writes the right env vars for you; to override manually:
169
189
 
170
190
  ```bash
171
- export ZERO_CLI_DEFAULT_OPUS_MODEL=GLM-5.1 # pro tier
172
- export ZERO_CLI_DEFAULT_SONNET_MODEL=GLM-4.7 # flash tier
173
- export ZERO_CLI_DEFAULT_HAIKU_MODEL=GLM-4.5-Air # lite tier
191
+ export ZERO_CLI_DEFAULT_OPUS_MODEL=glm-5.1 # pro tier
192
+ export ZERO_CLI_DEFAULT_SONNET_MODEL=glm-5-turbo # flash tier
193
+ export ZERO_CLI_DEFAULT_HAIKU_MODEL=glm-4.5-air # lite tier
174
194
  ```
175
195
 
176
196
  (Env-var infixes still use the canonical internal form `OPUS` / `SONNET` / `HAIKU` so existing scripts and CI keep working.)
@@ -183,11 +203,11 @@ Or switch models in-session with `/model`.
183
203
  |-------|----------|------|
184
204
  | `claude-sonnet-4-6` | Claude (Vertex AI) | Standard |
185
205
  | `claude-opus-4-5` | Claude (Vertex AI) | Flagship |
186
- | `gemini-3-flash-preview` | Google AI Studio | Standard |
187
- | `gemini-3.1-flash-lite-preview` | Google AI Studio | Fast |
188
- | `GLM-5.1` | z.ai / ZhipuAI | Flagship |
189
- | `GLM-4.7` | z.ai / ZhipuAI | Standard |
190
- | `GLM-4.5-Air` | z.ai / ZhipuAI | Fast |
206
+ | `gemini-3.5-flash` | Google AI Studio | Standard |
207
+ | `gemini-3.1-flash-lite` | Google AI Studio | Fast |
208
+ | `glm-5.1` | z.ai / ZhipuAI | Flagship |
209
+ | `glm-5-turbo` | z.ai / ZhipuAI | Standard |
210
+ | `glm-4.5-air` | z.ai / ZhipuAI | Fast |
191
211
  | `qwen3-max` | Alibaba (DashScope) | Flagship |
192
212
  | `qwen-plus` | Alibaba (DashScope) | Standard |
193
213
  | `deepseek-v3.2` | DeepSeek (DashScope) | Standard |