@moonmath-ai/zro 0.2.5 → 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 -95
- 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 +3 -7
- package/dist/engine/tools/claude.js.map +1 -1
- package/dist/engine/tools/hermes.js +4 -0
- 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,91 +5,99 @@
|
|
|
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
|
-
Kilo Code, OpenCode, and more) against the [Zro](https://zro.moonmath.ai) inference platform. Each
|
|
15
|
-
agent runs as a child process with its own temporary profile, so your everyday agent
|
|
16
|
-
configuration, credentials, and session history are left completely untouched.
|
|
12
|
+
**Open-weight models. Zero data retention. Zero training. Long-context, multi-region speed.**
|
|
17
13
|
|
|
18
|
-
|
|
19
|
-
npm install --global @moonmath-ai/zro
|
|
20
|
-
zro login
|
|
21
|
-
zro claude
|
|
22
|
-
```
|
|
23
|
-
|
|
24
|
-
---
|
|
14
|
+
[zro.moonmath.ai](https://zro.moonmath.ai) · [Pricing](https://zro.moonmath.ai/pricing) · [Integrations](https://zro.moonmath.ai/integrations)
|
|
25
15
|
|
|
26
|
-
|
|
16
|
+
</div>
|
|
27
17
|
|
|
28
|
-
|
|
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.
|
|
29
22
|
|
|
30
|
-
|
|
31
|
-
-
|
|
32
|
-
|
|
33
|
-
### Install
|
|
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.
|
|
34
26
|
|
|
35
27
|
```bash
|
|
36
28
|
npm install --global @moonmath-ai/zro
|
|
29
|
+
zro login
|
|
30
|
+
zro claude
|
|
37
31
|
```
|
|
38
32
|
|
|
39
|
-
|
|
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.
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## Quick start
|
|
40
40
|
|
|
41
41
|
```bash
|
|
42
|
-
|
|
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
|
|
43
47
|
```
|
|
44
48
|
|
|
45
|
-
|
|
49
|
+
`zro <tool> --install` installs a missing agent and opens it in one step.
|
|
46
50
|
|
|
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.
|
|
51
|
+
---
|
|
51
52
|
|
|
52
|
-
|
|
53
|
-
their official shell installers; Oh My Pi ships a prebuilt binary so Bun is not required. Version
|
|
54
|
-
validation and installer errors are reported directly by npm or the tool's official installer.
|
|
53
|
+
## Installation
|
|
55
54
|
|
|
56
|
-
|
|
57
|
-
|
|
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.
|
|
58
61
|
|
|
59
62
|
### Authentication
|
|
60
63
|
|
|
61
|
-
Sign in once
|
|
64
|
+
Sign in once, then launch any supported agent:
|
|
62
65
|
|
|
63
66
|
```bash
|
|
64
|
-
zro login
|
|
65
|
-
zro login --manual
|
|
66
|
-
zro login --no-browser
|
|
67
|
-
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
|
|
68
71
|
```
|
|
69
72
|
|
|
70
|
-
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
- **Environment key:** `ZRO_API_KEY` takes precedence over the stored key. The primary credential
|
|
76
|
-
lives at `~/.config/zro/credentials.json`; Codex App keeps its own copy under
|
|
77
|
-
`~/.config/zro/codex-app/.env`, and `zro logout` removes both.
|
|
78
|
-
- Before launching, `zro` verifies the credential with the inference API. Rejected keys and
|
|
79
|
-
unavailable validation endpoints stop the launch rather than passing the failure to the child
|
|
80
|
-
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.
|
|
81
78
|
|
|
82
79
|
---
|
|
83
80
|
|
|
84
|
-
##
|
|
81
|
+
## Supported coding agents
|
|
85
82
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
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 |
|
|
91
96
|
|
|
92
|
-
|
|
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`.
|
|
93
101
|
|
|
94
102
|
---
|
|
95
103
|
|
|
@@ -98,50 +106,33 @@ zro codex -m glm-5.3 # pick a model for this session
|
|
|
98
106
|
```bash
|
|
99
107
|
zro # interactive agent picker
|
|
100
108
|
zro claude # open directly on the default model
|
|
101
|
-
zro codex -m
|
|
102
|
-
zro
|
|
103
|
-
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
|
|
104
112
|
zro oc -- --help # short aliases + native tool arguments
|
|
105
113
|
zro again # reopen the last tool/model pair
|
|
106
|
-
zro login # choose website or API key login
|
|
107
|
-
zro login --no-browser # print an approval URL for a remote machine
|
|
108
|
-
zro login --manual # enter an API key manually
|
|
109
|
-
zro logout # remove the stored login
|
|
110
|
-
zro status # connection, installed tools, last session, usage
|
|
111
114
|
zro models # readable model catalog
|
|
112
|
-
zro install claude
|
|
113
|
-
zro claude --install # install if missing, then open
|
|
114
|
-
zro install claude@2.1.105 # install a pinned agent version
|
|
115
|
-
zro install --upgrade # upgrade zro itself
|
|
115
|
+
zro install claude@2.1.105 # pin an agent version
|
|
116
116
|
zro feedback # send feedback to the Zro team
|
|
117
117
|
zro claude --dry-run # secret-safe session preview
|
|
118
118
|
zro codex --json # machine-readable preview
|
|
119
119
|
```
|
|
120
120
|
|
|
121
|
-
Pass native tool arguments after `--` (for example `zro oc -- --help`). The last
|
|
122
|
-
tool/model pair is remembered and reopened with `zro again`.
|
|
123
|
-
|
|
124
121
|
---
|
|
125
122
|
|
|
126
|
-
##
|
|
123
|
+
## Pricing
|
|
127
124
|
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
|
132
|
-
|
|
|
133
|
-
|
|
|
134
|
-
|
|
|
135
|
-
| [OpenCode](https://opencode.ai) | `zro install opencode` | Open-source coding agent |
|
|
136
|
-
| [Grok Build](https://x.ai) | `zro install grok` | xAI's coding agent |
|
|
137
|
-
| [Hermes](https://hermes-agent.nousresearch.com) | `zro install hermes` | Nous Research's agent |
|
|
138
|
-
| [OpenClaw](https://github.com/openclaw/openclaw) | `zro install openclaw` | Personal AI assistant |
|
|
139
|
-
| [Pi](https://github.com/earendil-works/pi) | `zro install pi` | Minimal coding agent |
|
|
140
|
-
| [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 |
|
|
141
132
|
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
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.
|
|
145
136
|
|
|
146
137
|
---
|
|
147
138
|
|
|
@@ -149,13 +140,13 @@ reopen. Pass native tool arguments after `--`.
|
|
|
149
140
|
|
|
150
141
|
- Normal agent configs are never edited.
|
|
151
142
|
- Temporary session files live under `~/.cache/zro/sessions` and are removed when the agent exits.
|
|
152
|
-
- Kilo Code and Oh My Pi run with a temporary home and XDG profile
|
|
153
|
-
safe assets are copied in
|
|
154
|
-
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.
|
|
155
146
|
- Kilo and Oh My Pi telemetry, OTLP export, automatic updates, sharing, and remote control are
|
|
156
147
|
disabled; model and MCP requests still go to the configured Zro endpoints.
|
|
157
148
|
- API keys are masked in human and JSON previews. `--dry-run` writes nothing and starts nothing.
|
|
158
|
-
- macOS and
|
|
149
|
+
- macOS, Linux, and Windows are supported.
|
|
159
150
|
|
|
160
151
|
See [SECURITY.md](SECURITY.md) for the security model and private vulnerability reporting.
|
|
161
152
|
|
|
@@ -163,10 +154,8 @@ See [SECURITY.md](SECURITY.md) for the security model and private vulnerability
|
|
|
163
154
|
|
|
164
155
|
## Contributing
|
|
165
156
|
|
|
166
|
-
Zro is a small, dependency-light TypeScript CLI (runtime deps: `json5` and `yaml`). Bug
|
|
167
|
-
feature requests, and pull requests
|
|
168
|
-
are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md) for development setup, checks, and contribution
|
|
169
|
-
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).
|
|
170
159
|
|
|
171
160
|
---
|
|
172
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"}
|