@moonmath-ai/zro 0.2.5 → 0.4.0
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 +116 -91
- package/dist/args.js +29 -4
- package/dist/args.js.map +1 -1
- package/dist/cli.js +0 -0
- package/dist/endpoints.d.ts +9 -0
- package/dist/endpoints.js +40 -0
- package/dist/endpoints.js.map +1 -0
- package/dist/engine/constants.d.ts +5 -202
- package/dist/engine/constants.js +5 -188
- package/dist/engine/constants.js.map +1 -1
- package/dist/engine/tools/claude.d.ts +1 -0
- package/dist/engine/tools/claude.js +44 -25
- package/dist/engine/tools/claude.js.map +1 -1
- package/dist/engine/tools/codex.d.ts +4 -1
- package/dist/engine/tools/codex.js +28 -8
- package/dist/engine/tools/codex.js.map +1 -1
- package/dist/engine/tools/grok.js +11 -9
- package/dist/engine/tools/grok.js.map +1 -1
- package/dist/engine/tools/hermes.js +34 -21
- package/dist/engine/tools/hermes.js.map +1 -1
- package/dist/engine/tools/kilo.d.ts +1 -1
- package/dist/engine/tools/kilo.js +15 -13
- package/dist/engine/tools/kilo.js.map +1 -1
- package/dist/engine/tools/omp.d.ts +2 -2
- package/dist/engine/tools/omp.js +12 -12
- package/dist/engine/tools/omp.js.map +1 -1
- package/dist/engine/tools/openclaw.js +27 -19
- package/dist/engine/tools/openclaw.js.map +1 -1
- package/dist/engine/tools/opencode.d.ts +5 -1
- package/dist/engine/tools/opencode.js +26 -15
- package/dist/engine/tools/opencode.js.map +1 -1
- package/dist/engine/tools/pi.js +17 -17
- package/dist/engine/tools/pi.js.map +1 -1
- package/dist/engine/tools/prime.js +17 -19
- package/dist/engine/tools/prime.js.map +1 -1
- package/dist/engine/types.d.ts +7 -1
- package/dist/install.d.ts +1 -1
- package/dist/install.js +29 -10
- package/dist/install.js.map +1 -1
- package/dist/model-catalog.d.ts +7 -2
- package/dist/model-catalog.js +113 -11
- package/dist/model-catalog.js.map +1 -1
- package/dist/process.d.ts +8 -0
- package/dist/process.js +51 -0
- package/dist/process.js.map +1 -0
- package/dist/run.js +277 -114
- package/dist/run.js.map +1 -1
- package/dist/types.d.ts +10 -0
- package/dist/ui.d.ts +3 -2
- package/dist/ui.js +24 -3
- package/dist/ui.js.map +1 -1
- package/package.json +2 -5
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
export declare const
|
|
2
|
-
export declare const
|
|
3
|
-
export declare const
|
|
1
|
+
export declare const DEFAULT_ENDPOINT_ROOT = "https://zro.moonmath.ai";
|
|
2
|
+
export declare const ENDPOINT_ROOT = "https://zro.moonmath.ai";
|
|
3
|
+
export declare const BASE_URL = "https://zro.moonmath.ai/v1";
|
|
4
|
+
export declare const MCP_URL = "https://zro.moonmath.ai/mcp/zro";
|
|
4
5
|
export declare const ZRO_ENV_KEY = "ZRO_API_KEY";
|
|
6
|
+
export declare const NO_AUTH_PLACEHOLDER_KEY = "zro-no-auth";
|
|
5
7
|
export declare const PROVIDER_ID = "zro";
|
|
6
8
|
export declare const PROVIDER_NAME = "Zro";
|
|
7
9
|
export interface ZroReasoningLevel {
|
|
@@ -30,203 +32,4 @@ export interface ZroModel {
|
|
|
30
32
|
}
|
|
31
33
|
/** True when a model accepts non-text input (image/video/audio/pdf). */
|
|
32
34
|
export declare function supportsAttachments(model: Pick<ZroModel, "modalities">): boolean;
|
|
33
|
-
export declare const ZRO_MODELS: readonly [{
|
|
34
|
-
readonly id: "deepseek-v4.1-flash";
|
|
35
|
-
readonly displayName: "DeepSeek V4.1 Flash";
|
|
36
|
-
readonly contextWindow: 1048576;
|
|
37
|
-
readonly maxOutputTokens: 384000;
|
|
38
|
-
readonly modalities: {
|
|
39
|
-
readonly input: readonly ["text", "image"];
|
|
40
|
-
readonly output: readonly ["text"];
|
|
41
|
-
};
|
|
42
|
-
readonly reasoning: {
|
|
43
|
-
readonly defaultLevel: "high";
|
|
44
|
-
readonly levels: readonly [{
|
|
45
|
-
readonly id: "low";
|
|
46
|
-
readonly description: "Use DeepSeek low reasoning effort";
|
|
47
|
-
readonly piLevel: "low";
|
|
48
|
-
readonly openCodeOptions: {
|
|
49
|
-
readonly reasoningEffort: "low";
|
|
50
|
-
};
|
|
51
|
-
}, {
|
|
52
|
-
readonly id: "high";
|
|
53
|
-
readonly description: "Use DeepSeek high reasoning effort";
|
|
54
|
-
readonly piLevel: "high";
|
|
55
|
-
readonly openCodeOptions: {
|
|
56
|
-
readonly reasoningEffort: "high";
|
|
57
|
-
};
|
|
58
|
-
}, {
|
|
59
|
-
readonly id: "max";
|
|
60
|
-
readonly description: "Use DeepSeek maximum reasoning effort";
|
|
61
|
-
readonly codexEffort: "xhigh";
|
|
62
|
-
readonly piLevel: "xhigh";
|
|
63
|
-
readonly openCodeOptions: {
|
|
64
|
-
readonly reasoningEffort: "max";
|
|
65
|
-
};
|
|
66
|
-
}];
|
|
67
|
-
};
|
|
68
|
-
}, {
|
|
69
|
-
readonly id: "glm-5.3";
|
|
70
|
-
readonly displayName: "GLM-5.3";
|
|
71
|
-
readonly contextWindow: 1048576;
|
|
72
|
-
readonly maxOutputTokens: 131000;
|
|
73
|
-
readonly modalities: {
|
|
74
|
-
readonly input: readonly ["text"];
|
|
75
|
-
readonly output: readonly ["text"];
|
|
76
|
-
};
|
|
77
|
-
readonly reasoning: {
|
|
78
|
-
readonly defaultLevel: "max";
|
|
79
|
-
readonly levels: readonly [{
|
|
80
|
-
readonly id: "none";
|
|
81
|
-
readonly description: "Disable reasoning for the lowest latency";
|
|
82
|
-
readonly codexEffort: "disabled";
|
|
83
|
-
readonly piLevel: "off";
|
|
84
|
-
readonly openCodeOptions: {
|
|
85
|
-
readonly reasoningEffort: "none";
|
|
86
|
-
};
|
|
87
|
-
}, {
|
|
88
|
-
readonly id: "high";
|
|
89
|
-
readonly description: "Use GLM High reasoning effort";
|
|
90
|
-
readonly piLevel: "high";
|
|
91
|
-
readonly openCodeOptions: {
|
|
92
|
-
readonly reasoningEffort: "high";
|
|
93
|
-
};
|
|
94
|
-
}, {
|
|
95
|
-
readonly id: "max";
|
|
96
|
-
readonly description: "Use GLM maximum reasoning effort";
|
|
97
|
-
readonly codexEffort: "xhigh";
|
|
98
|
-
readonly piLevel: "xhigh";
|
|
99
|
-
readonly openCodeOptions: {
|
|
100
|
-
readonly reasoningEffort: "max";
|
|
101
|
-
};
|
|
102
|
-
}];
|
|
103
|
-
};
|
|
104
|
-
}, {
|
|
105
|
-
readonly id: "glm-5.3-flash";
|
|
106
|
-
readonly displayName: "GLM-5.3 Flash";
|
|
107
|
-
readonly contextWindow: 1048576;
|
|
108
|
-
readonly maxOutputTokens: 64000;
|
|
109
|
-
readonly modalities: {
|
|
110
|
-
readonly input: readonly ["text", "image"];
|
|
111
|
-
readonly output: readonly ["text"];
|
|
112
|
-
};
|
|
113
|
-
readonly reasoning: {
|
|
114
|
-
readonly defaultLevel: "max";
|
|
115
|
-
readonly levels: readonly [{
|
|
116
|
-
readonly id: "none";
|
|
117
|
-
readonly description: "Disable reasoning for the lowest latency";
|
|
118
|
-
readonly codexEffort: "disabled";
|
|
119
|
-
readonly piLevel: "off";
|
|
120
|
-
readonly openCodeOptions: {
|
|
121
|
-
readonly reasoningEffort: "none";
|
|
122
|
-
};
|
|
123
|
-
}, {
|
|
124
|
-
readonly id: "high";
|
|
125
|
-
readonly description: "Use GLM High reasoning effort";
|
|
126
|
-
readonly piLevel: "high";
|
|
127
|
-
readonly openCodeOptions: {
|
|
128
|
-
readonly reasoningEffort: "high";
|
|
129
|
-
};
|
|
130
|
-
}, {
|
|
131
|
-
readonly id: "max";
|
|
132
|
-
readonly description: "Use GLM maximum reasoning effort";
|
|
133
|
-
readonly codexEffort: "xhigh";
|
|
134
|
-
readonly piLevel: "xhigh";
|
|
135
|
-
readonly openCodeOptions: {
|
|
136
|
-
readonly reasoningEffort: "max";
|
|
137
|
-
};
|
|
138
|
-
}];
|
|
139
|
-
};
|
|
140
|
-
}, {
|
|
141
|
-
readonly id: "dolly1-security";
|
|
142
|
-
readonly displayName: "Dolly 1 Security";
|
|
143
|
-
readonly contextWindow: 1048576;
|
|
144
|
-
readonly maxOutputTokens: 64000;
|
|
145
|
-
readonly modalities: {
|
|
146
|
-
readonly input: readonly ["text", "image"];
|
|
147
|
-
readonly output: readonly ["text"];
|
|
148
|
-
};
|
|
149
|
-
readonly reasoning: {
|
|
150
|
-
readonly defaultLevel: "max";
|
|
151
|
-
readonly levels: readonly [{
|
|
152
|
-
readonly id: "none";
|
|
153
|
-
readonly description: "Disable reasoning for the lowest latency";
|
|
154
|
-
readonly codexEffort: "disabled";
|
|
155
|
-
readonly piLevel: "off";
|
|
156
|
-
readonly openCodeOptions: {
|
|
157
|
-
readonly reasoningEffort: "none";
|
|
158
|
-
};
|
|
159
|
-
}, {
|
|
160
|
-
readonly id: "high";
|
|
161
|
-
readonly description: "Use GLM High reasoning effort";
|
|
162
|
-
readonly piLevel: "high";
|
|
163
|
-
readonly openCodeOptions: {
|
|
164
|
-
readonly reasoningEffort: "high";
|
|
165
|
-
};
|
|
166
|
-
}, {
|
|
167
|
-
readonly id: "max";
|
|
168
|
-
readonly description: "Use GLM maximum reasoning effort";
|
|
169
|
-
readonly codexEffort: "xhigh";
|
|
170
|
-
readonly piLevel: "xhigh";
|
|
171
|
-
readonly openCodeOptions: {
|
|
172
|
-
readonly reasoningEffort: "max";
|
|
173
|
-
};
|
|
174
|
-
}];
|
|
175
|
-
};
|
|
176
|
-
}, {
|
|
177
|
-
readonly id: "auto";
|
|
178
|
-
readonly displayName: "Auto";
|
|
179
|
-
readonly contextWindow: 1048576;
|
|
180
|
-
readonly maxOutputTokens: 131000;
|
|
181
|
-
readonly modalities: {
|
|
182
|
-
readonly input: readonly ["text"];
|
|
183
|
-
readonly output: readonly ["text"];
|
|
184
|
-
};
|
|
185
|
-
readonly reasoning: {
|
|
186
|
-
readonly defaultLevel: "auto";
|
|
187
|
-
readonly levels: readonly [{
|
|
188
|
-
readonly id: "auto";
|
|
189
|
-
readonly description: "Let the Auto router pick the model per request";
|
|
190
|
-
readonly codexEffort: "medium";
|
|
191
|
-
readonly piLevel: "medium";
|
|
192
|
-
readonly openCodeOptions: {};
|
|
193
|
-
}];
|
|
194
|
-
};
|
|
195
|
-
}, {
|
|
196
|
-
readonly id: "kimi-k3";
|
|
197
|
-
readonly displayName: "Kimi K3";
|
|
198
|
-
readonly contextWindow: 1048576;
|
|
199
|
-
readonly maxOutputTokens: 1048576;
|
|
200
|
-
readonly modalities: {
|
|
201
|
-
readonly input: readonly ["text", "image"];
|
|
202
|
-
readonly output: readonly ["text"];
|
|
203
|
-
};
|
|
204
|
-
readonly reasoning: {
|
|
205
|
-
readonly defaultLevel: "high";
|
|
206
|
-
readonly levels: readonly [{
|
|
207
|
-
readonly id: "low";
|
|
208
|
-
readonly description: "Use Kimi low reasoning effort";
|
|
209
|
-
readonly piLevel: "low";
|
|
210
|
-
readonly openCodeOptions: {
|
|
211
|
-
readonly reasoningEffort: "low";
|
|
212
|
-
};
|
|
213
|
-
}, {
|
|
214
|
-
readonly id: "high";
|
|
215
|
-
readonly description: "Use Kimi high reasoning effort";
|
|
216
|
-
readonly piLevel: "high";
|
|
217
|
-
readonly openCodeOptions: {
|
|
218
|
-
readonly reasoningEffort: "high";
|
|
219
|
-
};
|
|
220
|
-
}, {
|
|
221
|
-
readonly id: "max";
|
|
222
|
-
readonly description: "Use Kimi maximum reasoning effort";
|
|
223
|
-
readonly codexEffort: "xhigh";
|
|
224
|
-
readonly piLevel: "xhigh";
|
|
225
|
-
readonly openCodeOptions: {
|
|
226
|
-
readonly reasoningEffort: "max";
|
|
227
|
-
};
|
|
228
|
-
}];
|
|
229
|
-
};
|
|
230
|
-
}];
|
|
231
|
-
export declare const DEFAULT_MODEL = "deepseek-v4.1-flash";
|
|
232
35
|
export declare const SUPPORTED_TOOLS: readonly ["claude", "codex", "codex-app", "grok", "kilo", "omp", "opencode", "hermes", "openclaw", "pi", "prime"];
|
package/dist/engine/constants.js
CHANGED
|
@@ -1,197 +1,14 @@
|
|
|
1
|
-
export const
|
|
2
|
-
export const
|
|
3
|
-
export const
|
|
1
|
+
export const DEFAULT_ENDPOINT_ROOT = "https://zro.moonmath.ai";
|
|
2
|
+
export const ENDPOINT_ROOT = DEFAULT_ENDPOINT_ROOT;
|
|
3
|
+
export const BASE_URL = `${DEFAULT_ENDPOINT_ROOT}/v1`;
|
|
4
|
+
export const MCP_URL = `${DEFAULT_ENDPOINT_ROOT}/mcp/zro`;
|
|
4
5
|
export const ZRO_ENV_KEY = "ZRO_API_KEY";
|
|
6
|
+
export const NO_AUTH_PLACEHOLDER_KEY = "zro-no-auth";
|
|
5
7
|
export const PROVIDER_ID = "zro";
|
|
6
8
|
export const PROVIDER_NAME = "Zro";
|
|
7
9
|
/** True when a model accepts non-text input (image/video/audio/pdf). */
|
|
8
10
|
export function supportsAttachments(model) {
|
|
9
11
|
return model.modalities.input.some((modality) => modality !== "text");
|
|
10
12
|
}
|
|
11
|
-
export const ZRO_MODELS = [
|
|
12
|
-
{
|
|
13
|
-
id: "deepseek-v4.1-flash",
|
|
14
|
-
displayName: "DeepSeek V4.1 Flash",
|
|
15
|
-
contextWindow: 1048576,
|
|
16
|
-
maxOutputTokens: 384000,
|
|
17
|
-
modalities: { input: ["text", "image"], output: ["text"] },
|
|
18
|
-
reasoning: {
|
|
19
|
-
defaultLevel: "high",
|
|
20
|
-
levels: [
|
|
21
|
-
{
|
|
22
|
-
id: "low",
|
|
23
|
-
description: "Use DeepSeek low reasoning effort",
|
|
24
|
-
piLevel: "low",
|
|
25
|
-
openCodeOptions: { reasoningEffort: "low" }
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
id: "high",
|
|
29
|
-
description: "Use DeepSeek high reasoning effort",
|
|
30
|
-
piLevel: "high",
|
|
31
|
-
openCodeOptions: { reasoningEffort: "high" }
|
|
32
|
-
},
|
|
33
|
-
{
|
|
34
|
-
id: "max",
|
|
35
|
-
description: "Use DeepSeek maximum reasoning effort",
|
|
36
|
-
codexEffort: "xhigh",
|
|
37
|
-
piLevel: "xhigh",
|
|
38
|
-
openCodeOptions: { reasoningEffort: "max" }
|
|
39
|
-
}
|
|
40
|
-
]
|
|
41
|
-
}
|
|
42
|
-
},
|
|
43
|
-
{
|
|
44
|
-
id: "glm-5.3",
|
|
45
|
-
displayName: "GLM-5.3",
|
|
46
|
-
contextWindow: 1048576,
|
|
47
|
-
maxOutputTokens: 131000,
|
|
48
|
-
modalities: { input: ["text"], output: ["text"] },
|
|
49
|
-
reasoning: {
|
|
50
|
-
defaultLevel: "max",
|
|
51
|
-
levels: [
|
|
52
|
-
{
|
|
53
|
-
id: "none",
|
|
54
|
-
description: "Disable reasoning for the lowest latency",
|
|
55
|
-
// Codex treats `none` as its unset/default sentinel and omits it
|
|
56
|
-
// from the Responses request. A custom token survives the wire;
|
|
57
|
-
// the proxy maps `disabled` back to GLM's native `none`.
|
|
58
|
-
codexEffort: "disabled",
|
|
59
|
-
piLevel: "off",
|
|
60
|
-
openCodeOptions: { reasoningEffort: "none" }
|
|
61
|
-
},
|
|
62
|
-
{
|
|
63
|
-
id: "high",
|
|
64
|
-
description: "Use GLM High reasoning effort",
|
|
65
|
-
piLevel: "high",
|
|
66
|
-
openCodeOptions: { reasoningEffort: "high" }
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
id: "max",
|
|
70
|
-
description: "Use GLM maximum reasoning effort",
|
|
71
|
-
codexEffort: "xhigh",
|
|
72
|
-
piLevel: "xhigh",
|
|
73
|
-
openCodeOptions: { reasoningEffort: "max" }
|
|
74
|
-
}
|
|
75
|
-
]
|
|
76
|
-
}
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
id: "glm-5.3-flash",
|
|
80
|
-
displayName: "GLM-5.3 Flash",
|
|
81
|
-
contextWindow: 1048576,
|
|
82
|
-
maxOutputTokens: 64000,
|
|
83
|
-
modalities: { input: ["text", "image"], output: ["text"] },
|
|
84
|
-
reasoning: {
|
|
85
|
-
defaultLevel: "max",
|
|
86
|
-
levels: [
|
|
87
|
-
{
|
|
88
|
-
id: "none",
|
|
89
|
-
description: "Disable reasoning for the lowest latency",
|
|
90
|
-
codexEffort: "disabled",
|
|
91
|
-
piLevel: "off",
|
|
92
|
-
openCodeOptions: { reasoningEffort: "none" }
|
|
93
|
-
},
|
|
94
|
-
{
|
|
95
|
-
id: "high",
|
|
96
|
-
description: "Use GLM High reasoning effort",
|
|
97
|
-
piLevel: "high",
|
|
98
|
-
openCodeOptions: { reasoningEffort: "high" }
|
|
99
|
-
},
|
|
100
|
-
{
|
|
101
|
-
id: "max",
|
|
102
|
-
description: "Use GLM maximum reasoning effort",
|
|
103
|
-
codexEffort: "xhigh",
|
|
104
|
-
piLevel: "xhigh",
|
|
105
|
-
openCodeOptions: { reasoningEffort: "max" }
|
|
106
|
-
}
|
|
107
|
-
]
|
|
108
|
-
}
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
id: "dolly1-security",
|
|
112
|
-
displayName: "Dolly 1 Security",
|
|
113
|
-
contextWindow: 1048576,
|
|
114
|
-
maxOutputTokens: 64000,
|
|
115
|
-
modalities: { input: ["text", "image"], output: ["text"] },
|
|
116
|
-
reasoning: {
|
|
117
|
-
defaultLevel: "max",
|
|
118
|
-
levels: [
|
|
119
|
-
{
|
|
120
|
-
id: "none",
|
|
121
|
-
description: "Disable reasoning for the lowest latency",
|
|
122
|
-
codexEffort: "disabled",
|
|
123
|
-
piLevel: "off",
|
|
124
|
-
openCodeOptions: { reasoningEffort: "none" }
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
id: "high",
|
|
128
|
-
description: "Use GLM High reasoning effort",
|
|
129
|
-
piLevel: "high",
|
|
130
|
-
openCodeOptions: { reasoningEffort: "high" }
|
|
131
|
-
},
|
|
132
|
-
{
|
|
133
|
-
id: "max",
|
|
134
|
-
description: "Use GLM maximum reasoning effort",
|
|
135
|
-
codexEffort: "xhigh",
|
|
136
|
-
piLevel: "xhigh",
|
|
137
|
-
openCodeOptions: { reasoningEffort: "max" }
|
|
138
|
-
}
|
|
139
|
-
]
|
|
140
|
-
}
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
id: "auto",
|
|
144
|
-
displayName: "Auto",
|
|
145
|
-
contextWindow: 1048576,
|
|
146
|
-
maxOutputTokens: 131000,
|
|
147
|
-
modalities: { input: ["text"], output: ["text"] },
|
|
148
|
-
reasoning: {
|
|
149
|
-
defaultLevel: "auto",
|
|
150
|
-
levels: [
|
|
151
|
-
{
|
|
152
|
-
id: "auto",
|
|
153
|
-
description: "Let the Auto router pick the model per request",
|
|
154
|
-
// Codex has no "auto" effort; pin the documented value that matches
|
|
155
|
-
// this level's piLevel so config.toml never carries a bare "auto".
|
|
156
|
-
codexEffort: "medium",
|
|
157
|
-
piLevel: "medium",
|
|
158
|
-
openCodeOptions: {}
|
|
159
|
-
}
|
|
160
|
-
]
|
|
161
|
-
}
|
|
162
|
-
},
|
|
163
|
-
{
|
|
164
|
-
id: "kimi-k3",
|
|
165
|
-
displayName: "Kimi K3",
|
|
166
|
-
contextWindow: 1048576,
|
|
167
|
-
maxOutputTokens: 1048576,
|
|
168
|
-
modalities: { input: ["text", "image"], output: ["text"] },
|
|
169
|
-
reasoning: {
|
|
170
|
-
defaultLevel: "high",
|
|
171
|
-
levels: [
|
|
172
|
-
{
|
|
173
|
-
id: "low",
|
|
174
|
-
description: "Use Kimi low reasoning effort",
|
|
175
|
-
piLevel: "low",
|
|
176
|
-
openCodeOptions: { reasoningEffort: "low" }
|
|
177
|
-
},
|
|
178
|
-
{
|
|
179
|
-
id: "high",
|
|
180
|
-
description: "Use Kimi high reasoning effort",
|
|
181
|
-
piLevel: "high",
|
|
182
|
-
openCodeOptions: { reasoningEffort: "high" }
|
|
183
|
-
},
|
|
184
|
-
{
|
|
185
|
-
id: "max",
|
|
186
|
-
description: "Use Kimi maximum reasoning effort",
|
|
187
|
-
codexEffort: "xhigh",
|
|
188
|
-
piLevel: "xhigh",
|
|
189
|
-
openCodeOptions: { reasoningEffort: "max" }
|
|
190
|
-
}
|
|
191
|
-
]
|
|
192
|
-
}
|
|
193
|
-
}
|
|
194
|
-
];
|
|
195
|
-
export const DEFAULT_MODEL = "deepseek-v4.1-flash";
|
|
196
13
|
export const SUPPORTED_TOOLS = ["claude", "codex", "codex-app", "grok", "kilo", "omp", "opencode", "hermes", "openclaw", "pi", "prime"];
|
|
197
14
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/engine/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/engine/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,qBAAqB,GAAG,yBAAyB,CAAC;AAC/D,MAAM,CAAC,MAAM,aAAa,GAAG,qBAAqB,CAAC;AACnD,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,qBAAqB,KAAK,CAAC;AACtD,MAAM,CAAC,MAAM,OAAO,GAAG,GAAG,qBAAqB,UAAU,CAAC;AAC1D,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAC;AACzC,MAAM,CAAC,MAAM,uBAAuB,GAAG,aAAa,CAAC;AACrD,MAAM,CAAC,MAAM,WAAW,GAAG,KAAK,CAAC;AACjC,MAAM,CAAC,MAAM,aAAa,GAAG,KAAK,CAAC;AA+BnC,wEAAwE;AACxE,MAAM,UAAU,mBAAmB,CAAC,KAAmC;IACrE,OAAO,KAAK,CAAC,UAAU,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,EAAE,CAAC,QAAQ,KAAK,MAAM,CAAC,CAAC;AACxE,CAAC;AAED,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,QAAQ,EAAE,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,IAAI,EAAE,OAAO,CAAU,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import type { ToolModule } from "../types.js";
|
|
2
|
+
export declare function claudeConfigDir(homeDir: string, env: NodeJS.ProcessEnv): string;
|
|
2
3
|
export declare const claudeTool: ToolModule;
|
|
3
4
|
export declare const CLAUDE_MODEL_ALIAS_SLOTS: readonly ["OPUS", "SONNET", "FABLE", "HAIKU"];
|
|
@@ -1,13 +1,21 @@
|
|
|
1
1
|
import path from "node:path";
|
|
2
|
-
import {
|
|
2
|
+
import { PROVIDER_NAME } from "../constants.js";
|
|
3
3
|
import { jsonSerializer } from "../serializers.js";
|
|
4
|
+
// Claude Code hands backgrounded sessions to a daemon whose workers do not
|
|
5
|
+
// inherit this launch's environment, and a respawned worker re-reads these
|
|
6
|
+
// files long after the launching process exits. Both therefore live at a
|
|
7
|
+
// stable path rather than the per-launch temp dir.
|
|
8
|
+
export function claudeConfigDir(homeDir, env) {
|
|
9
|
+
return path.join(env.XDG_CACHE_HOME || path.join(homeDir, ".cache"), "zro", "claude");
|
|
10
|
+
}
|
|
4
11
|
export const claudeTool = {
|
|
5
12
|
id: "claude",
|
|
6
13
|
label: "Claude Code",
|
|
7
14
|
async launch(ctx) {
|
|
8
|
-
const
|
|
9
|
-
|
|
10
|
-
|
|
15
|
+
const configDir = claudeConfigDir(ctx.homeDir, ctx.env);
|
|
16
|
+
const mcpConfigPath = path.join(configDir, "mcp.json");
|
|
17
|
+
const settingsPath = path.join(configDir, "settings.json");
|
|
18
|
+
if (!ctx.models.some((model) => model.id === ctx.model)) {
|
|
11
19
|
ctx.stderr.write(`Warning: model "${ctx.model}" is not in the Zro catalog; Claude Code will assume a 200k context window.\n`);
|
|
12
20
|
}
|
|
13
21
|
const aliasPlan = resolveClaudeAliases(ctx.model, ctx.models, ctx.modelAliases);
|
|
@@ -23,14 +31,15 @@ export const claudeTool = {
|
|
|
23
31
|
claudeModelId(ctx.model, claudeSpecFor(ctx.model, ctx.models), sessionBudget),
|
|
24
32
|
"--managed-settings",
|
|
25
33
|
buildClaudeManagedSettingsArg(ctx.models, aliasPlan),
|
|
26
|
-
"--mcp-config",
|
|
27
|
-
|
|
34
|
+
...(ctx.noAuth ? [] : ["--mcp-config", mcpConfigPath]),
|
|
35
|
+
"--settings",
|
|
36
|
+
settingsPath,
|
|
28
37
|
...ctx.extraArgs
|
|
29
38
|
],
|
|
30
39
|
env: {
|
|
31
|
-
ANTHROPIC_BASE_URL:
|
|
40
|
+
ANTHROPIC_BASE_URL: ctx.inferenceRoot,
|
|
32
41
|
ANTHROPIC_AUTH_TOKEN: ctx.apiKey,
|
|
33
|
-
...buildClaudeModelEnv(ctx.model, ctx.models, aliasPlan, sessionBudget, sessionOutputBudget),
|
|
42
|
+
...buildClaudeModelEnv(ctx.model, ctx.models, aliasPlan, sessionBudget, sessionOutputBudget, ctx.inferenceRoot),
|
|
34
43
|
CLAUDE_CODE_ENABLE_GATEWAY_MODEL_DISCOVERY: "0",
|
|
35
44
|
CLAUDE_CODE_ATTRIBUTION_HEADER: "0",
|
|
36
45
|
CLAUDE_CODE_DISABLE_ADAPTIVE_THINKING: "1",
|
|
@@ -42,18 +51,31 @@ export const claudeTool = {
|
|
|
42
51
|
CLAUDE_CODE_DISABLE_FEEDBACK_SURVEY: "1",
|
|
43
52
|
DO_NOT_TRACK: "1"
|
|
44
53
|
},
|
|
45
|
-
files: [
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
54
|
+
files: [
|
|
55
|
+
...(ctx.noAuth ? [] : [{
|
|
56
|
+
path: mcpConfigPath,
|
|
57
|
+
contents: jsonSerializer.stringify({
|
|
58
|
+
mcpServers: {
|
|
59
|
+
zro: {
|
|
60
|
+
type: "http",
|
|
61
|
+
url: ctx.mcpUrl,
|
|
62
|
+
headers: { Authorization: `Bearer ${ctx.apiKey}` }
|
|
63
|
+
}
|
|
53
64
|
}
|
|
65
|
+
}),
|
|
66
|
+
persistent: true
|
|
67
|
+
}]),
|
|
68
|
+
{
|
|
69
|
+
path: settingsPath,
|
|
70
|
+
contents: jsonSerializer.stringify({
|
|
71
|
+
env: {
|
|
72
|
+
ANTHROPIC_BASE_URL: ctx.inferenceRoot,
|
|
73
|
+
ANTHROPIC_AUTH_TOKEN: ctx.apiKey
|
|
54
74
|
}
|
|
55
|
-
})
|
|
56
|
-
|
|
75
|
+
}),
|
|
76
|
+
persistent: true
|
|
77
|
+
}
|
|
78
|
+
],
|
|
57
79
|
message: "Launch Claude Code with Zro"
|
|
58
80
|
};
|
|
59
81
|
}
|
|
@@ -153,25 +175,22 @@ function claudeSessionOutputBudget(selectedModel, modelSpecs, aliasPlan) {
|
|
|
153
175
|
const specs = claudeSessionSpecs(selectedModel, modelSpecs, aliasPlan);
|
|
154
176
|
return specs.length > 0 ? Math.min(...specs.map((spec) => spec.maxOutputTokens)) : undefined;
|
|
155
177
|
}
|
|
156
|
-
// The active catalog is authoritative, but a caller may pass a model the remote
|
|
157
|
-
// catalog no longer lists; fall back to the bundled lineup so a known model
|
|
158
|
-
// still gets its real window. An unknown-in-both model resolves to undefined.
|
|
159
178
|
function claudeSpecFor(modelId, modelSpecs) {
|
|
160
|
-
return modelSpecs.find((m) => m.id === modelId)
|
|
179
|
+
return modelSpecs.find((m) => m.id === modelId);
|
|
161
180
|
}
|
|
162
|
-
function buildClaudeModelEnv(selectedModel, modelSpecs, aliasPlan, sessionBudget, sessionOutputBudget) {
|
|
181
|
+
function buildClaudeModelEnv(selectedModel, modelSpecs, aliasPlan, sessionBudget, sessionOutputBudget, inferenceRoot) {
|
|
163
182
|
const aliasMapping = aliasPlan.mapping;
|
|
164
183
|
const env = {
|
|
165
184
|
ANTHROPIC_CUSTOM_MODEL_OPTION: claudeModelId(selectedModel, claudeSpecFor(selectedModel, modelSpecs), sessionBudget),
|
|
166
185
|
ANTHROPIC_CUSTOM_MODEL_OPTION_NAME: claudeModelName(selectedModel, modelSpecs, sessionBudget),
|
|
167
|
-
ANTHROPIC_CUSTOM_MODEL_OPTION_DESCRIPTION: `${PROVIDER_NAME} model via ${
|
|
186
|
+
ANTHROPIC_CUSTOM_MODEL_OPTION_DESCRIPTION: `${PROVIDER_NAME} model via ${inferenceRoot}`
|
|
168
187
|
};
|
|
169
188
|
// aliasPlan.mapping is already filtered to models this catalog carries, so
|
|
170
189
|
// every seated slot here is emitted and every emitted slot is allowlisted.
|
|
171
190
|
for (const [slot, modelId] of Object.entries(aliasMapping)) {
|
|
172
191
|
env[`ANTHROPIC_DEFAULT_${slot}_MODEL`] = claudeModelId(modelId, claudeSpecFor(modelId, modelSpecs), sessionBudget);
|
|
173
192
|
env[`ANTHROPIC_DEFAULT_${slot}_MODEL_NAME`] = claudeModelName(modelId, modelSpecs, sessionBudget);
|
|
174
|
-
env[`ANTHROPIC_DEFAULT_${slot}_MODEL_DESCRIPTION`] = `${PROVIDER_NAME} model via ${
|
|
193
|
+
env[`ANTHROPIC_DEFAULT_${slot}_MODEL_DESCRIPTION`] = `${PROVIDER_NAME} model via ${inferenceRoot}`;
|
|
175
194
|
}
|
|
176
195
|
if (sessionBudget !== undefined) {
|
|
177
196
|
env.CLAUDE_CODE_MAX_CONTEXT_TOKENS = String(sessionBudget);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"claude.js","sourceRoot":"","sources":["../../../src/engine/tools/claude.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,
|
|
1
|
+
{"version":3,"file":"claude.js","sourceRoot":"","sources":["../../../src/engine/tools/claude.ts"],"names":[],"mappings":"AAAA,OAAO,IAAI,MAAM,WAAW,CAAC;AAC7B,OAAO,EAAE,aAAa,EAAiB,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAGnD,2EAA2E;AAC3E,2EAA2E;AAC3E,yEAAyE;AACzE,mDAAmD;AACnD,MAAM,UAAU,eAAe,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AAa,GAAG,WAAW;QAAE,OAAO,EAAE,CAAC;IACzD,IAAI,aAAa,KAAK,SAAS,IAAI,aAAa,GAAG,WAAW;QAAE,OAAO,EAAE,CAAC;IAC1E,OAAO,MAAM,CAAC;AAChB,CAAC"}
|
|
@@ -4,8 +4,11 @@ export declare const codexTool: ToolModule;
|
|
|
4
4
|
export declare const codexAppTool: ToolModule;
|
|
5
5
|
export declare function codexAppHome(homeDir: string): string;
|
|
6
6
|
export declare function codexAppCredentialFilePath(homeDir: string): string;
|
|
7
|
-
export declare function buildCodexModelCatalog(modelSpecs: readonly ZroModel[]): Record<string, unknown>;
|
|
7
|
+
export declare function buildCodexModelCatalog(modelSpecs: readonly ZroModel[], baseUrl?: string): Record<string, unknown>;
|
|
8
8
|
export declare function buildCodexConfig(model: string, options?: {
|
|
9
9
|
catalogPath?: string;
|
|
10
10
|
modelSpec?: ZroModel;
|
|
11
|
+
baseUrl?: string;
|
|
12
|
+
mcpUrl?: string;
|
|
13
|
+
noAuth?: boolean;
|
|
11
14
|
}): string;
|