@moonmath-ai/zro 0.2.4 → 0.3.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 +84 -92
- package/dist/cli.js +0 -0
- package/dist/engine/constants.d.ts +0 -199
- package/dist/engine/constants.js +0 -185
- package/dist/engine/constants.js.map +1 -1
- package/dist/engine/tools/claude.js +27 -15
- package/dist/engine/tools/claude.js.map +1 -1
- package/dist/engine/tools/codex.js +2 -0
- package/dist/engine/tools/codex.js.map +1 -1
- package/dist/engine/tools/hermes.js +11 -3
- package/dist/engine/tools/hermes.js.map +1 -1
- package/dist/engine/tools/kilo.d.ts +1 -1
- package/dist/engine/tools/kilo.js +2 -2
- package/dist/engine/tools/kilo.js.map +1 -1
- package/dist/engine/tools/omp.d.ts +1 -1
- package/dist/engine/tools/omp.js +2 -2
- package/dist/engine/tools/omp.js.map +1 -1
- package/dist/engine/types.d.ts +2 -0
- 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 +4 -2
- package/dist/model-catalog.js +20 -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 +162 -89
- package/dist/run.js.map +1 -1
- package/dist/ui.d.ts +3 -2
- package/dist/ui.js +16 -3
- package/dist/ui.js.map +1 -1
- package/package.json +2 -5
package/README.md
CHANGED
|
@@ -5,15 +5,24 @@
|
|
|
5
5
|
</picture>
|
|
6
6
|
</p>
|
|
7
7
|
|
|
8
|
-
|
|
8
|
+
<div align="center">
|
|
9
9
|
|
|
10
|
-
|
|
11
|
-
Zro-owned configuration that never touches your normal agent setup.
|
|
10
|
+
# Private, fast inference for coding agents
|
|
12
11
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
**Open-weight models. Zero data retention. Zero training. Long-context, multi-region speed.**
|
|
13
|
+
|
|
14
|
+
[zro.moonmath.ai](https://zro.moonmath.ai) · [Pricing](https://zro.moonmath.ai/pricing) · [Integrations](https://zro.moonmath.ai/integrations)
|
|
15
|
+
|
|
16
|
+
</div>
|
|
17
|
+
|
|
18
|
+
`zro` is the CLI that connects your coding agent to the [Zro](https://zro.moonmath.ai)
|
|
19
|
+
inference endpoint. It launches the agent of your choice with isolated, Zro-owned
|
|
20
|
+
configuration — so it never touches your everyday agent setup, credentials, or session
|
|
21
|
+
history.
|
|
22
|
+
|
|
23
|
+
> No training on your prompts or completions. Zero request retention. Runs on
|
|
24
|
+
> privacy-forward, multi-region infrastructure. Optimized for the long-context,
|
|
25
|
+
> tool-heavy workloads coding agents depend on.
|
|
17
26
|
|
|
18
27
|
```bash
|
|
19
28
|
npm install --global @moonmath-ai/zro
|
|
@@ -21,72 +30,74 @@ zro login
|
|
|
21
30
|
zro claude
|
|
22
31
|
```
|
|
23
32
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
### Requirements
|
|
33
|
+
Run `zro models` for the models available to your key, or see
|
|
34
|
+
[zro.moonmath.ai/pricing](https://zro.moonmath.ai/pricing). Region availability is shown when you
|
|
35
|
+
create an API key.
|
|
29
36
|
|
|
30
|
-
|
|
31
|
-
- **macOS** or **Linux** (on Windows, use [WSL](https://learn.microsoft.com/en-us/windows/wsl/))
|
|
37
|
+
---
|
|
32
38
|
|
|
33
|
-
|
|
39
|
+
## Quick start
|
|
34
40
|
|
|
35
41
|
```bash
|
|
36
|
-
|
|
42
|
+
zro login # website or API key login
|
|
43
|
+
zro claude # open Claude Code on the default model
|
|
44
|
+
zro codex -m <model> # pick a model for this session
|
|
45
|
+
zro models # browse the model catalog
|
|
46
|
+
zro status # connection, installed tools, last session, usage
|
|
37
47
|
```
|
|
38
48
|
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
```bash
|
|
42
|
-
pnpm add --global @moonmath-ai/zro
|
|
43
|
-
```
|
|
49
|
+
`zro <tool> --install` installs a missing agent and opens it in one step.
|
|
44
50
|
|
|
45
|
-
|
|
51
|
+
---
|
|
46
52
|
|
|
47
|
-
|
|
48
|
-
- `zro install <tool> --upgrade` upgrades one installed agent.
|
|
49
|
-
- `zro install claude@2.1.105` or `zro install claude --version 2.1.105` pins an npm-distributed
|
|
50
|
-
agent version.
|
|
53
|
+
## Installation
|
|
51
54
|
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
+
- **Requirements:** Node.js 22 or later on macOS, Linux, or Windows.
|
|
56
|
+
- **Install:** `npm install --global @moonmath-ai/zro` (also `pnpm add --global @moonmath-ai/zro`).
|
|
57
|
+
- **Upgrade:** `zro install --upgrade` (upgrade zro); `zro install <tool> --upgrade`
|
|
58
|
+
or `zro install claude@2.1.105` / `zro install claude --version 2.1.105` for an agent.
|
|
59
|
+
- **Agent-assisted setup:** [SETUP_PROMPT.md](SETUP_PROMPT.md) has copy-paste prompts for end-user
|
|
60
|
+
installs and local development checkouts.
|
|
55
61
|
|
|
56
62
|
### Authentication
|
|
57
63
|
|
|
58
|
-
Sign in once
|
|
64
|
+
Sign in once, then launch any supported agent:
|
|
59
65
|
|
|
60
66
|
```bash
|
|
61
|
-
zro login
|
|
62
|
-
zro login --manual
|
|
63
|
-
zro login --no-browser
|
|
64
|
-
zro logout
|
|
67
|
+
zro login # website or API key login
|
|
68
|
+
zro login --manual # enter an API key directly
|
|
69
|
+
zro login --no-browser # print an approval URL (e.g. remote box)
|
|
70
|
+
zro logout # remove the stored login
|
|
65
71
|
```
|
|
66
72
|
|
|
67
|
-
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
- **Environment key:** `ZRO_API_KEY` takes precedence over the stored key. The primary credential
|
|
73
|
-
lives at `~/.config/zro/credentials.json`; Codex App keeps its own copy under
|
|
74
|
-
`~/.config/zro/codex-app/.env`, and `zro logout` removes both.
|
|
75
|
-
- Before launching, `zro` verifies the credential with the inference API. Rejected keys and
|
|
76
|
-
unavailable validation endpoints stop the launch rather than passing the failure to the child
|
|
77
|
-
agent.
|
|
73
|
+
- Website login creates a revocable API key after approval, encrypted to an ephemeral
|
|
74
|
+
CLI-held public key. Set `ZRO_DEVICE_NAME` to label the device.
|
|
75
|
+
- `ZRO_API_KEY` takes precedence over the stored key at `~/.config/zro/credentials.json`;
|
|
76
|
+
Codex App keeps its own copy under `~/.config/zro/codex-app/.env`; `zro logout` removes both.
|
|
77
|
+
- The credential is verified against the inference API before any launch.
|
|
78
78
|
|
|
79
79
|
---
|
|
80
80
|
|
|
81
|
-
##
|
|
81
|
+
## Supported coding agents
|
|
82
82
|
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
83
|
+
| Agent | Install | Notes |
|
|
84
|
+
| --- | --- | --- |
|
|
85
|
+
| [Claude Code](https://www.anthropic.com/claude-code) | `zro install claude` | Anthropic's coding agent |
|
|
86
|
+
| [Codex CLI](https://developers.openai.com/codex/) | `zro install codex` | OpenAI's terminal agent |
|
|
87
|
+
| [Codex App](https://developers.openai.com/codex/) | `zro install codex-app` | OpenAI's desktop app |
|
|
88
|
+
| [Kilo Code](https://kilocode.ai/) | `zro install kilo` | Kilo's terminal coding agent |
|
|
89
|
+
| [Oh My Pi](https://ohmy.ai) | `zro install omp` | Power-user terminal agent |
|
|
90
|
+
| [OpenCode](https://opencode.ai) | `zro install opencode` | Open-source coding agent |
|
|
91
|
+
| [Grok Build](https://x.ai) | `zro install grok` | xAI's coding agent |
|
|
92
|
+
| [Hermes](https://hermes-agent.nousresearch.com) | `zro install hermes` | Nous Research's agent |
|
|
93
|
+
| [OpenClaw](https://github.com/openclaw/openclaw) | `zro install openclaw` | Personal AI assistant |
|
|
94
|
+
| [Pi](https://github.com/earendil-works/pi) | `zro install pi` | Minimal coding agent |
|
|
95
|
+
| [Prime Agent](https://primeintellect.ai) | `zro install prime` | Prime Intellect's self-improving RLM agent |
|
|
88
96
|
|
|
89
|
-
|
|
97
|
+
Each adapter launches the installed tool as a child process with isolated, Zro-owned
|
|
98
|
+
configuration. Session files are temporary; Codex App uses a persistent Zro-owned home.
|
|
99
|
+
Pass native tool arguments after `--` (for example `zro oc -- --help`). The last
|
|
100
|
+
tool/model pair is remembered and reopened with `zro again`.
|
|
90
101
|
|
|
91
102
|
---
|
|
92
103
|
|
|
@@ -95,50 +106,33 @@ zro codex -m glm-5.3 # pick a model for this session
|
|
|
95
106
|
```bash
|
|
96
107
|
zro # interactive agent picker
|
|
97
108
|
zro claude # open directly on the default model
|
|
98
|
-
zro codex -m
|
|
99
|
-
zro
|
|
100
|
-
zro
|
|
109
|
+
zro codex -m <model> # choose a model for this session
|
|
110
|
+
zro omp -m <model> # launch Oh My Pi through Zro
|
|
111
|
+
zro kilo -m <model> # launch Kilo Code through Zro
|
|
101
112
|
zro oc -- --help # short aliases + native tool arguments
|
|
102
113
|
zro again # reopen the last tool/model pair
|
|
103
|
-
zro login # choose website or API key login
|
|
104
|
-
zro login --no-browser # print an approval URL for a remote machine
|
|
105
|
-
zro login --manual # enter an API key manually
|
|
106
|
-
zro logout # remove the stored login
|
|
107
|
-
zro status # connection, installed tools, last session, usage
|
|
108
114
|
zro models # readable model catalog
|
|
109
|
-
zro install claude
|
|
110
|
-
zro claude --install # install if missing, then open
|
|
111
|
-
zro install claude@2.1.105 # install a pinned agent version
|
|
112
|
-
zro install --upgrade # upgrade zro itself
|
|
115
|
+
zro install claude@2.1.105 # pin an agent version
|
|
113
116
|
zro feedback # send feedback to the Zro team
|
|
114
117
|
zro claude --dry-run # secret-safe session preview
|
|
115
118
|
zro codex --json # machine-readable preview
|
|
116
119
|
```
|
|
117
120
|
|
|
118
|
-
Pass native tool arguments after `--` (for example `zro oc -- --help`). The last
|
|
119
|
-
tool/model pair is remembered and reopened with `zro again`.
|
|
120
|
-
|
|
121
121
|
---
|
|
122
122
|
|
|
123
|
-
##
|
|
123
|
+
## Pricing
|
|
124
124
|
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
|
129
|
-
|
|
|
130
|
-
|
|
|
131
|
-
|
|
|
132
|
-
| [OpenCode](https://opencode.ai) | `zro install opencode` | Open-source coding agent |
|
|
133
|
-
| [Grok Build](https://x.ai) | `zro install grok` | xAI's coding agent |
|
|
134
|
-
| [Hermes](https://hermes-agent.nousresearch.com) | `zro install hermes` | Nous Research's agent |
|
|
135
|
-
| [OpenClaw](https://github.com/openclaw/openclaw) | `zro install openclaw` | Personal AI assistant |
|
|
136
|
-
| [Pi](https://github.com/earendil-works/pi) | `zro install pi` | Minimal coding agent |
|
|
137
|
-
| [Prime Agent](https://primeintellect.ai) | `zro install prime` | Prime Intellect's self-improving RLM agent |
|
|
125
|
+
Plans are spend-based with expected usage, so actual totals vary by model mix, prompt
|
|
126
|
+
shape, output length, and cache reads. [See the live pricing page](https://zro.moonmath.ai/pricing).
|
|
127
|
+
|
|
128
|
+
| Plan | Per month | Yearly | Expected usage |
|
|
129
|
+
| --- | --- | --- | --- |
|
|
130
|
+
| **Pro** | $20 | $16/mo | ~1B tokens |
|
|
131
|
+
| **Max** | $60 | $48/mo | ~5B tokens |
|
|
138
132
|
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
133
|
+
- Usage packs are available with or without a subscription and expire after 90 days.
|
|
134
|
+
- Monthly spend resets on the same calendar cadence for monthly and yearly subscribers.
|
|
135
|
+
- There are no prorated refunds on cancellation; access stays active to the end of the period.
|
|
142
136
|
|
|
143
137
|
---
|
|
144
138
|
|
|
@@ -146,13 +140,13 @@ reopen. Pass native tool arguments after `--`.
|
|
|
146
140
|
|
|
147
141
|
- Normal agent configs are never edited.
|
|
148
142
|
- Temporary session files live under `~/.cache/zro/sessions` and are removed when the agent exits.
|
|
149
|
-
- Kilo Code and Oh My Pi run with a temporary home and XDG profile
|
|
150
|
-
safe assets are copied in
|
|
151
|
-
dependency trees, and secret files stay outside the profile.
|
|
143
|
+
- Kilo Code and Oh My Pi run with a temporary home and XDG profile; only sanitized
|
|
144
|
+
preferences and safe assets are copied in. Provider credentials, MCP definitions, sessions,
|
|
145
|
+
databases, dependency trees, and secret files stay outside the profile.
|
|
152
146
|
- Kilo and Oh My Pi telemetry, OTLP export, automatic updates, sharing, and remote control are
|
|
153
147
|
disabled; model and MCP requests still go to the configured Zro endpoints.
|
|
154
148
|
- API keys are masked in human and JSON previews. `--dry-run` writes nothing and starts nothing.
|
|
155
|
-
- macOS and
|
|
149
|
+
- macOS, Linux, and Windows are supported.
|
|
156
150
|
|
|
157
151
|
See [SECURITY.md](SECURITY.md) for the security model and private vulnerability reporting.
|
|
158
152
|
|
|
@@ -160,10 +154,8 @@ See [SECURITY.md](SECURITY.md) for the security model and private vulnerability
|
|
|
160
154
|
|
|
161
155
|
## Contributing
|
|
162
156
|
|
|
163
|
-
Zro is a small, dependency-light TypeScript CLI (runtime deps: `json5` and `yaml`). Bug
|
|
164
|
-
feature requests, and pull requests
|
|
165
|
-
are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md) for development setup, checks, and contribution
|
|
166
|
-
guidelines.
|
|
157
|
+
Zro is a small, dependency-light TypeScript CLI (runtime deps: `json5` and `yaml`). Bug
|
|
158
|
+
reports, feature requests, and pull requests are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md).
|
|
167
159
|
|
|
168
160
|
---
|
|
169
161
|
|
package/dist/cli.js
CHANGED
|
File without changes
|
|
@@ -30,203 +30,4 @@ export interface ZroModel {
|
|
|
30
30
|
}
|
|
31
31
|
/** True when a model accepts non-text input (image/video/audio/pdf). */
|
|
32
32
|
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
33
|
export declare const SUPPORTED_TOOLS: readonly ["claude", "codex", "codex-app", "grok", "kilo", "omp", "opencode", "hermes", "openclaw", "pi", "prime"];
|
package/dist/engine/constants.js
CHANGED
|
@@ -8,190 +8,5 @@ export const PROVIDER_NAME = "Zro";
|
|
|
8
8
|
export function supportsAttachments(model) {
|
|
9
9
|
return model.modalities.input.some((modality) => modality !== "text");
|
|
10
10
|
}
|
|
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
11
|
export const SUPPORTED_TOOLS = ["claude", "codex", "codex-app", "grok", "kilo", "omp", "opencode", "hermes", "openclaw", "pi", "prime"];
|
|
197
12
|
//# sourceMappingURL=constants.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/engine/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC,iBAAiB,IAAI,yBAAyB,CAAC;AACxF,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,aAAa,KAAK,CAAC;AAC9C,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,WAAW,IAAI,GAAG,aAAa,UAAU,CAAC;AAC7E,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAC;AACzC,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,
|
|
1
|
+
{"version":3,"file":"constants.js","sourceRoot":"","sources":["../../src/engine/constants.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC,iBAAiB,IAAI,yBAAyB,CAAC;AACxF,MAAM,CAAC,MAAM,QAAQ,GAAG,GAAG,aAAa,KAAK,CAAC;AAC9C,MAAM,CAAC,MAAM,OAAO,GAAG,OAAO,CAAC,GAAG,CAAC,WAAW,IAAI,GAAG,aAAa,UAAU,CAAC;AAC7E,MAAM,CAAC,MAAM,WAAW,GAAG,aAAa,CAAC;AACzC,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"}
|