codeep 2.11.0 → 2.11.2

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 CHANGED
@@ -346,7 +346,7 @@ Run `/agents` to list them. The agent invokes them itself via the `delegate` too
346
346
  name: migrator
347
347
  description: Writes and runs database migrations
348
348
  tools: [read_file, write_file, edit_file, execute_command] # allowlist; omit = all
349
- model: glm-5.2[1m] # optional override
349
+ model: glm-5.2 # optional override
350
350
  personality: senior-reviewer # optional preset
351
351
  maxIterations: 12 # optional budget
352
352
  ---
@@ -1007,7 +1007,7 @@ After installation, `codeep` is available globally in your terminal. Simply run
1007
1007
  **Model favorites** — save provider+model combos and switch instantly:
1008
1008
  ```
1009
1009
  > /provider # switch to z.ai
1010
- > /model glm-5.2[1m]
1010
+ > /model glm-5.2
1011
1011
  > /profile save fast
1012
1012
 
1013
1013
  > /provider # switch to openai
@@ -90,8 +90,15 @@ export async function runAgentSession(opts) {
90
90
  const result = await runAgent(opts.prompt, projectContext, {
91
91
  abortSignal: opts.abortSignal,
92
92
  onChunk: (text) => { chunksEmitted++; opts.onChunk(text); },
93
- onIteration: (_iteration, _message) => {
94
- // Intentionally not forwarded — iteration count is internal detail
93
+ onIteration: (_iteration, message) => {
94
+ // The bare iteration counter is internal noise, but transient notices —
95
+ // API retry/backoff ("retrying in Ns") and context warnings (⚠) — are
96
+ // exactly what the user needs to see when a request stalls, otherwise
97
+ // the editor just shows an endless "Thinking…" spinner. Surface those
98
+ // (and only those) as a thought.
99
+ if (opts.onThought && /retry|⚠/i.test(message)) {
100
+ opts.onThought(message);
101
+ }
95
102
  },
96
103
  onThinking: (text) => {
97
104
  if (opts.onThought) {
@@ -143,7 +143,7 @@ function createConfig() {
143
143
  apiKey: '',
144
144
  migrationVersion: 0,
145
145
  provider: 'z.ai',
146
- model: 'glm-5.2[1m]',
146
+ model: 'glm-5.2',
147
147
  agentMode: 'on',
148
148
  ollamaUrl: 'http://localhost:11434',
149
149
  ollamaNativeApi: false,
@@ -18,13 +18,10 @@ export const PROVIDERS = {
18
18
  },
19
19
  },
20
20
  models: [
21
- { id: 'glm-5.2[1m]', name: 'GLM-5.2 (1M)', description: 'Latest GLM model with 1M context, available to all users' },
22
21
  { id: 'glm-5.2', name: 'GLM-5.2', description: 'Latest GLM model, available to all users' },
23
- { id: 'glm-5.1', name: 'GLM-5.1', description: 'Previous GLM model, available to all users' },
24
22
  { id: 'glm-5-turbo', name: 'GLM-5 Turbo', description: 'Fast GLM-5 variant, available to all users' },
25
- { id: 'glm-5', name: 'GLM-5', description: 'Most capable GLM-5 model (Pro/Max plan only)' },
26
23
  ],
27
- defaultModel: 'glm-5.2[1m]',
24
+ defaultModel: 'glm-5.2',
28
25
  defaultProtocol: 'openai',
29
26
  envKey: 'ZAI_API_KEY',
30
27
  subscribeUrl: 'https://z.ai/subscribe?ic=NXYNXZOV14',
@@ -47,13 +44,10 @@ export const PROVIDERS = {
47
44
  },
48
45
  },
49
46
  models: [
50
- { id: 'glm-5.2[1m]', name: 'GLM-5.2 (1M)', description: 'Latest GLM model with 1M context' },
51
47
  { id: 'glm-5.2', name: 'GLM-5.2', description: 'Latest GLM model' },
52
- { id: 'glm-5.1', name: 'GLM-5.1', description: 'Previous GLM model' },
53
48
  { id: 'glm-5-turbo', name: 'GLM-5 Turbo', description: 'Fast GLM-5 variant' },
54
- { id: 'glm-5', name: 'GLM-5', description: 'Most capable GLM-5 model' },
55
49
  ],
56
- defaultModel: 'glm-5.2[1m]',
50
+ defaultModel: 'glm-5.2',
57
51
  defaultProtocol: 'openai',
58
52
  envKey: 'ZAI_API_KEY',
59
53
  subscribeUrl: 'https://api.z.ai',
@@ -76,13 +70,10 @@ export const PROVIDERS = {
76
70
  },
77
71
  },
78
72
  models: [
79
- { id: 'glm-5.2[1m]', name: 'GLM-5.2 (1M)', description: 'Latest GLM model with 1M context, available to all users' },
80
73
  { id: 'glm-5.2', name: 'GLM-5.2', description: 'Latest GLM model, available to all users' },
81
- { id: 'glm-5.1', name: 'GLM-5.1', description: 'Previous GLM model, available to all users' },
82
74
  { id: 'glm-5-turbo', name: 'GLM-5 Turbo', description: 'Fast GLM-5 variant, available to all users' },
83
- { id: 'glm-5', name: 'GLM-5', description: 'Most capable GLM-5 model (Pro/Max plan only)' },
84
75
  ],
85
- defaultModel: 'glm-5.2[1m]',
76
+ defaultModel: 'glm-5.2',
86
77
  defaultProtocol: 'openai',
87
78
  envKey: 'ZAI_CN_API_KEY',
88
79
  subscribeUrl: 'https://open.bigmodel.cn/glm-coding',
@@ -105,13 +96,10 @@ export const PROVIDERS = {
105
96
  },
106
97
  },
107
98
  models: [
108
- { id: 'glm-5.2[1m]', name: 'GLM-5.2 (1M)', description: 'Latest GLM model with 1M context' },
109
99
  { id: 'glm-5.2', name: 'GLM-5.2', description: 'Latest GLM model' },
110
- { id: 'glm-5.1', name: 'GLM-5.1', description: 'Previous GLM model' },
111
100
  { id: 'glm-5-turbo', name: 'GLM-5 Turbo', description: 'Fast GLM-5 variant' },
112
- { id: 'glm-5', name: 'GLM-5', description: 'Most capable GLM-5 model' },
113
101
  ],
114
- defaultModel: 'glm-5.2[1m]',
102
+ defaultModel: 'glm-5.2',
115
103
  defaultProtocol: 'openai',
116
104
  envKey: 'ZAI_CN_API_KEY',
117
105
  subscribeUrl: 'https://open.bigmodel.cn',
@@ -229,7 +217,6 @@ export const PROVIDERS = {
229
217
  { id: 'gpt-5.5', name: 'GPT-5.5', description: 'Latest GPT model — best for coding' },
230
218
  { id: 'gpt-5.4', name: 'GPT-5.4', description: 'Previous generation GPT' },
231
219
  { id: 'gpt-5.4-mini', name: 'GPT-5.4 Mini', description: 'Faster and cheaper GPT-5.4' },
232
- { id: 'gpt-5.4-nano', name: 'GPT-5.4 Nano', description: 'Most affordable, great for simple tasks' },
233
220
  ],
234
221
  defaultModel: 'gpt-5.5',
235
222
  defaultProtocol: 'openai',
@@ -251,7 +238,6 @@ export const PROVIDERS = {
251
238
  },
252
239
  },
253
240
  models: [
254
- { id: 'claude-fable-5', name: 'Claude Fable 5', description: 'Most powerful — new tier above Opus' },
255
241
  { id: 'claude-opus-4-8', name: 'Claude Opus 4.8', description: 'Most capable Opus model' },
256
242
  { id: 'claude-sonnet-4-6', name: 'Claude Sonnet', description: 'Best balance of speed and intelligence' },
257
243
  { id: 'claude-haiku-4-5-20251001', name: 'Claude Haiku', description: 'Fastest and most affordable' },
@@ -7,18 +7,13 @@
7
7
  // and produce phantom estimates against the wrong context size.
8
8
  const MODEL_CONTEXT_WINDOWS = {
9
9
  // Z.AI / ZhipuAI
10
- 'glm-5.2[1m]': 1_000_000,
11
10
  'glm-5.2': 200_000,
12
- 'glm-5.1': 131_072,
13
- 'glm-5': 80_000,
14
11
  'glm-5-turbo': 202_752,
15
12
  // OpenAI
16
13
  'gpt-5.5': 1_200_000,
17
14
  'gpt-5.4': 1_050_000,
18
15
  'gpt-5.4-mini': 400_000,
19
- 'gpt-5.4-nano': 400_000,
20
16
  // Anthropic
21
- 'claude-fable-5': 1_000_000,
22
17
  'claude-opus-4-8': 1_000_000,
23
18
  'claude-sonnet-4-6': 1_000_000,
24
19
  'claude-haiku-4-5-20251001': 200_000,
@@ -48,18 +43,13 @@ const MODEL_PRICING = {
48
43
  // its successor) provisionally so /cost stays sane; update when z.ai posts it.
49
44
  // Note: on the GLM Coding Plan (the default `z.ai` provider) billing is a flat
50
45
  // subscription, so this only affects the pay-per-use estimate.
51
- 'glm-5.2[1m]': { inputPer1M: 1.00, outputPer1M: 3.20 },
52
46
  'glm-5.2': { inputPer1M: 1.00, outputPer1M: 3.20 },
53
- 'glm-5.1': { inputPer1M: 1.00, outputPer1M: 3.20 },
54
- 'glm-5': { inputPer1M: 0.72, outputPer1M: 2.30 },
55
47
  'glm-5-turbo': { inputPer1M: 1.20, outputPer1M: 4.00 },
56
48
  // OpenAI
57
49
  'gpt-5.5': { inputPer1M: 5.00, outputPer1M: 30.00 },
58
50
  'gpt-5.4': { inputPer1M: 2.50, outputPer1M: 15.00 },
59
51
  'gpt-5.4-mini': { inputPer1M: 0.75, outputPer1M: 4.50 },
60
- 'gpt-5.4-nano': { inputPer1M: 0.20, outputPer1M: 1.25 },
61
52
  // Anthropic
62
- 'claude-fable-5': { inputPer1M: 10.00, outputPer1M: 50.00 },
63
53
  'claude-opus-4-8': { inputPer1M: 5.00, outputPer1M: 25.00 },
64
54
  'claude-sonnet-4-6': { inputPer1M: 3.00, outputPer1M: 15.00 },
65
55
  'claude-haiku-4-5-20251001': { inputPer1M: 1.00, outputPer1M: 5.00 },
package/dist/version.d.ts CHANGED
@@ -1 +1 @@
1
- export declare const VERSION = "2.11.0";
1
+ export declare const VERSION = "2.11.2";
package/dist/version.js CHANGED
@@ -1,4 +1,4 @@
1
1
  // AUTO-GENERATED by scripts/gen-version.js — do not edit by hand.
2
2
  // Baked from package.json at build time so the bun-compiled binary reports
3
3
  // the right version (it has no package.json on disk to read at runtime).
4
- export const VERSION = '2.11.0';
4
+ export const VERSION = '2.11.2';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeep",
3
- "version": "2.11.0",
3
+ "version": "2.11.2",
4
4
  "description": "AI-powered coding assistant built for the terminal. Multiple LLM providers, project-aware context, and a seamless development workflow.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",