codeep 2.11.1 → 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/dist/acp/session.js +9 -2
- package/dist/config/providers.js +0 -10
- package/dist/utils/tokenTracker.js +0 -8
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
package/dist/acp/session.js
CHANGED
|
@@ -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,
|
|
94
|
-
//
|
|
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) {
|
package/dist/config/providers.js
CHANGED
|
@@ -19,9 +19,7 @@ export const PROVIDERS = {
|
|
|
19
19
|
},
|
|
20
20
|
models: [
|
|
21
21
|
{ id: 'glm-5.2', name: 'GLM-5.2', description: 'Latest GLM model, available to all users' },
|
|
22
|
-
{ id: 'glm-5.1', name: 'GLM-5.1', description: 'Previous GLM model, available to all users' },
|
|
23
22
|
{ id: 'glm-5-turbo', name: 'GLM-5 Turbo', description: 'Fast GLM-5 variant, available to all users' },
|
|
24
|
-
{ id: 'glm-5', name: 'GLM-5', description: 'Most capable GLM-5 model (Pro/Max plan only)' },
|
|
25
23
|
],
|
|
26
24
|
defaultModel: 'glm-5.2',
|
|
27
25
|
defaultProtocol: 'openai',
|
|
@@ -47,9 +45,7 @@ export const PROVIDERS = {
|
|
|
47
45
|
},
|
|
48
46
|
models: [
|
|
49
47
|
{ id: 'glm-5.2', name: 'GLM-5.2', description: 'Latest GLM model' },
|
|
50
|
-
{ id: 'glm-5.1', name: 'GLM-5.1', description: 'Previous GLM model' },
|
|
51
48
|
{ id: 'glm-5-turbo', name: 'GLM-5 Turbo', description: 'Fast GLM-5 variant' },
|
|
52
|
-
{ id: 'glm-5', name: 'GLM-5', description: 'Most capable GLM-5 model' },
|
|
53
49
|
],
|
|
54
50
|
defaultModel: 'glm-5.2',
|
|
55
51
|
defaultProtocol: 'openai',
|
|
@@ -75,9 +71,7 @@ export const PROVIDERS = {
|
|
|
75
71
|
},
|
|
76
72
|
models: [
|
|
77
73
|
{ id: 'glm-5.2', name: 'GLM-5.2', description: 'Latest GLM model, available to all users' },
|
|
78
|
-
{ id: 'glm-5.1', name: 'GLM-5.1', description: 'Previous GLM model, available to all users' },
|
|
79
74
|
{ id: 'glm-5-turbo', name: 'GLM-5 Turbo', description: 'Fast GLM-5 variant, available to all users' },
|
|
80
|
-
{ id: 'glm-5', name: 'GLM-5', description: 'Most capable GLM-5 model (Pro/Max plan only)' },
|
|
81
75
|
],
|
|
82
76
|
defaultModel: 'glm-5.2',
|
|
83
77
|
defaultProtocol: 'openai',
|
|
@@ -103,9 +97,7 @@ export const PROVIDERS = {
|
|
|
103
97
|
},
|
|
104
98
|
models: [
|
|
105
99
|
{ id: 'glm-5.2', name: 'GLM-5.2', description: 'Latest GLM model' },
|
|
106
|
-
{ id: 'glm-5.1', name: 'GLM-5.1', description: 'Previous GLM model' },
|
|
107
100
|
{ id: 'glm-5-turbo', name: 'GLM-5 Turbo', description: 'Fast GLM-5 variant' },
|
|
108
|
-
{ id: 'glm-5', name: 'GLM-5', description: 'Most capable GLM-5 model' },
|
|
109
101
|
],
|
|
110
102
|
defaultModel: 'glm-5.2',
|
|
111
103
|
defaultProtocol: 'openai',
|
|
@@ -225,7 +217,6 @@ export const PROVIDERS = {
|
|
|
225
217
|
{ id: 'gpt-5.5', name: 'GPT-5.5', description: 'Latest GPT model — best for coding' },
|
|
226
218
|
{ id: 'gpt-5.4', name: 'GPT-5.4', description: 'Previous generation GPT' },
|
|
227
219
|
{ id: 'gpt-5.4-mini', name: 'GPT-5.4 Mini', description: 'Faster and cheaper GPT-5.4' },
|
|
228
|
-
{ id: 'gpt-5.4-nano', name: 'GPT-5.4 Nano', description: 'Most affordable, great for simple tasks' },
|
|
229
220
|
],
|
|
230
221
|
defaultModel: 'gpt-5.5',
|
|
231
222
|
defaultProtocol: 'openai',
|
|
@@ -247,7 +238,6 @@ export const PROVIDERS = {
|
|
|
247
238
|
},
|
|
248
239
|
},
|
|
249
240
|
models: [
|
|
250
|
-
{ id: 'claude-fable-5', name: 'Claude Fable 5', description: 'Most powerful — new tier above Opus' },
|
|
251
241
|
{ id: 'claude-opus-4-8', name: 'Claude Opus 4.8', description: 'Most capable Opus model' },
|
|
252
242
|
{ id: 'claude-sonnet-4-6', name: 'Claude Sonnet', description: 'Best balance of speed and intelligence' },
|
|
253
243
|
{ id: 'claude-haiku-4-5-20251001', name: 'Claude Haiku', description: 'Fastest and most affordable' },
|
|
@@ -8,16 +8,12 @@
|
|
|
8
8
|
const MODEL_CONTEXT_WINDOWS = {
|
|
9
9
|
// Z.AI / ZhipuAI
|
|
10
10
|
'glm-5.2': 200_000,
|
|
11
|
-
'glm-5.1': 131_072,
|
|
12
|
-
'glm-5': 80_000,
|
|
13
11
|
'glm-5-turbo': 202_752,
|
|
14
12
|
// OpenAI
|
|
15
13
|
'gpt-5.5': 1_200_000,
|
|
16
14
|
'gpt-5.4': 1_050_000,
|
|
17
15
|
'gpt-5.4-mini': 400_000,
|
|
18
|
-
'gpt-5.4-nano': 400_000,
|
|
19
16
|
// Anthropic
|
|
20
|
-
'claude-fable-5': 1_000_000,
|
|
21
17
|
'claude-opus-4-8': 1_000_000,
|
|
22
18
|
'claude-sonnet-4-6': 1_000_000,
|
|
23
19
|
'claude-haiku-4-5-20251001': 200_000,
|
|
@@ -48,16 +44,12 @@ const MODEL_PRICING = {
|
|
|
48
44
|
// Note: on the GLM Coding Plan (the default `z.ai` provider) billing is a flat
|
|
49
45
|
// subscription, so this only affects the pay-per-use estimate.
|
|
50
46
|
'glm-5.2': { inputPer1M: 1.00, outputPer1M: 3.20 },
|
|
51
|
-
'glm-5.1': { inputPer1M: 1.00, outputPer1M: 3.20 },
|
|
52
|
-
'glm-5': { inputPer1M: 0.72, outputPer1M: 2.30 },
|
|
53
47
|
'glm-5-turbo': { inputPer1M: 1.20, outputPer1M: 4.00 },
|
|
54
48
|
// OpenAI
|
|
55
49
|
'gpt-5.5': { inputPer1M: 5.00, outputPer1M: 30.00 },
|
|
56
50
|
'gpt-5.4': { inputPer1M: 2.50, outputPer1M: 15.00 },
|
|
57
51
|
'gpt-5.4-mini': { inputPer1M: 0.75, outputPer1M: 4.50 },
|
|
58
|
-
'gpt-5.4-nano': { inputPer1M: 0.20, outputPer1M: 1.25 },
|
|
59
52
|
// Anthropic
|
|
60
|
-
'claude-fable-5': { inputPer1M: 10.00, outputPer1M: 50.00 },
|
|
61
53
|
'claude-opus-4-8': { inputPer1M: 5.00, outputPer1M: 25.00 },
|
|
62
54
|
'claude-sonnet-4-6': { inputPer1M: 3.00, outputPer1M: 15.00 },
|
|
63
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.
|
|
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.
|
|
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.
|
|
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",
|