@moonmath-ai/zro 0.2.2 → 0.2.4
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 +125 -85
- package/SECURITY.md +18 -0
- package/dist/args.js +22 -1
- package/dist/args.js.map +1 -1
- package/dist/engine/constants.d.ts +139 -20
- package/dist/engine/constants.js +119 -20
- package/dist/engine/constants.js.map +1 -1
- package/dist/engine/tools/claude.d.ts +1 -0
- package/dist/engine/tools/claude.js +123 -20
- package/dist/engine/tools/claude.js.map +1 -1
- package/dist/engine/tools/codex.d.ts +4 -0
- package/dist/engine/tools/codex.js +23 -3
- package/dist/engine/tools/codex.js.map +1 -1
- package/dist/engine/tools/opencode.d.ts +2 -0
- package/dist/engine/tools/opencode.js +4 -2
- package/dist/engine/tools/opencode.js.map +1 -1
- package/dist/engine/types.d.ts +1 -0
- package/dist/model-catalog.d.ts +5 -1
- package/dist/model-catalog.js +29 -3
- package/dist/model-catalog.js.map +1 -1
- package/dist/run.d.ts +3 -0
- package/dist/run.js +124 -7
- package/dist/run.js.map +1 -1
- package/dist/types.d.ts +6 -0
- package/dist/ui.d.ts +1 -0
- package/dist/ui.js +20 -2
- package/dist/ui.js.map +1 -1
- package/package.json +9 -3
package/README.md
CHANGED
|
@@ -1,8 +1,19 @@
|
|
|
1
|
+
<p align="center">
|
|
2
|
+
<picture>
|
|
3
|
+
<source media="(prefers-color-scheme: dark)" srcset="./assets/zro-logo-white.png">
|
|
4
|
+
<img src="./assets/zro-logo.png" alt="zro" width="160" />
|
|
5
|
+
</picture>
|
|
6
|
+
</p>
|
|
7
|
+
|
|
1
8
|
# zro
|
|
2
9
|
|
|
3
|
-
|
|
4
|
-
Zro-owned configuration
|
|
5
|
-
|
|
10
|
+
Launch the coding agent of your choice through the Zro inference endpoint — with isolated,
|
|
11
|
+
Zro-owned configuration that never touches your normal agent setup.
|
|
12
|
+
|
|
13
|
+
`zro` is a thin, dependency-light CLI that opens supported coding agents (Claude Code, Codex,
|
|
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.
|
|
6
17
|
|
|
7
18
|
```bash
|
|
8
19
|
npm install --global @moonmath-ai/zro
|
|
@@ -10,123 +21,152 @@ zro login
|
|
|
10
21
|
zro claude
|
|
11
22
|
```
|
|
12
23
|
|
|
24
|
+
---
|
|
25
|
+
|
|
26
|
+
## Installation and upgrades
|
|
27
|
+
|
|
28
|
+
### Requirements
|
|
29
|
+
|
|
30
|
+
- **Node.js 22 or later**
|
|
31
|
+
- **macOS** or **Linux** (on Windows, use [WSL](https://learn.microsoft.com/en-us/windows/wsl/))
|
|
32
|
+
|
|
33
|
+
### Install
|
|
34
|
+
|
|
35
|
+
```bash
|
|
36
|
+
npm install --global @moonmath-ai/zro
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
Zro is also on [pnpm](https://pnpm.io/):
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
pnpm add --global @moonmath-ai/zro
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
### Upgrades
|
|
46
|
+
|
|
47
|
+
- `zro install --upgrade` upgrades the Zro CLI itself.
|
|
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
|
+
|
|
52
|
+
`zro install <tool>` installs npm-distributed agents globally. Hermes, Grok Build, and Oh My Pi use
|
|
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.
|
|
55
|
+
|
|
56
|
+
### Authentication
|
|
57
|
+
|
|
58
|
+
Sign in once with `zro login`, then launch any supported agent:
|
|
59
|
+
|
|
60
|
+
```bash
|
|
61
|
+
zro login # choose website or API key login
|
|
62
|
+
zro login --manual # enter an API key directly
|
|
63
|
+
zro login --no-browser # print an approval URL (e.g. for a remote box)
|
|
64
|
+
zro logout # remove the stored login
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
- **Website login** creates a revocable API key after approval. The generated key is encrypted to an
|
|
68
|
+
ephemeral public key belonging to the CLI, so the device-login record never holds a usable
|
|
69
|
+
plaintext credential. The CLI sends a generic device label unless `ZRO_DEVICE_NAME` is set.
|
|
70
|
+
- **Fallback:** if website login can't start in an interactive terminal, `zro` falls back to a
|
|
71
|
+
masked API-key paste prompt. Non-interactive commands exit with instructions instead of waiting.
|
|
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.
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## Quick start
|
|
82
|
+
|
|
83
|
+
```bash
|
|
84
|
+
zro login
|
|
85
|
+
zro claude # open Claude Code on the default model
|
|
86
|
+
zro codex -m glm-5.3 # pick a model for this session
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
`zro <tool> --install` installs a missing agent and opens it in one step.
|
|
90
|
+
|
|
91
|
+
---
|
|
92
|
+
|
|
13
93
|
## Usage
|
|
14
94
|
|
|
15
95
|
```bash
|
|
16
96
|
zro # interactive agent picker
|
|
17
97
|
zro claude # open directly on the default model
|
|
18
|
-
zro codex -m glm-5.
|
|
19
|
-
zro kilo -m glm-5.
|
|
20
|
-
zro omp -m glm-5.
|
|
98
|
+
zro codex -m glm-5.3 # choose a model for this session
|
|
99
|
+
zro kilo -m glm-5.3 # launch Kilo Code through Zro
|
|
100
|
+
zro omp -m glm-5.3 # launch Oh My Pi through Zro
|
|
21
101
|
zro oc -- --help # short aliases + native tool arguments
|
|
22
102
|
zro again # reopen the last tool/model pair
|
|
23
103
|
zro login # choose website or API key login
|
|
24
104
|
zro login --no-browser # print an approval URL for a remote machine
|
|
25
105
|
zro login --manual # enter an API key manually
|
|
26
106
|
zro logout # remove the stored login
|
|
27
|
-
zro status # connection, installed tools, last session
|
|
107
|
+
zro status # connection, installed tools, last session, usage
|
|
28
108
|
zro models # readable model catalog
|
|
29
109
|
zro install claude # install a supported agent
|
|
30
110
|
zro claude --install # install if missing, then open
|
|
31
111
|
zro install claude@2.1.105 # install a pinned agent version
|
|
32
|
-
zro install claude --upgrade # upgrade one agent
|
|
33
112
|
zro install --upgrade # upgrade zro itself
|
|
113
|
+
zro feedback # send feedback to the Zro team
|
|
34
114
|
zro claude --dry-run # secret-safe session preview
|
|
35
115
|
zro codex --json # machine-readable preview
|
|
36
116
|
```
|
|
37
117
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
Claude Code, Codex CLI, Codex App, Grok Build, Kilo Code, Oh My Pi, OpenCode, Hermes, OpenClaw, and Pi are supported.
|
|
41
|
-
Each adapter launches the installed tool as a child process with isolated configuration. Most
|
|
42
|
-
session files are temporary; Codex App uses a persistent Zro-owned home so the desktop app can
|
|
43
|
-
reopen. Native tool arguments can be placed after `--`.
|
|
44
|
-
|
|
45
|
-
## Installation and upgrades
|
|
46
|
-
|
|
47
|
-
Zro requires Node.js 18 or later and supports macOS and Linux. On Windows, use WSL.
|
|
118
|
+
Pass native tool arguments after `--` (for example `zro oc -- --help`). The last
|
|
119
|
+
tool/model pair is remembered and reopened with `zro again`.
|
|
48
120
|
|
|
49
|
-
|
|
50
|
-
their official shell installers; Oh My Pi uses its prebuilt binary so Bun is not required. Add
|
|
51
|
-
`--upgrade` to update an installed agent, or pin an npm-distributed agent version with either
|
|
52
|
-
`tool@version` or `--version version`.
|
|
53
|
-
|
|
54
|
-
`zro <tool> --install` installs a missing agent and opens it in one command. `zro install
|
|
55
|
-
--upgrade` upgrades the Zro CLI itself. Version validation and installer errors are reported directly
|
|
56
|
-
by npm or the tool's official installer.
|
|
57
|
-
|
|
58
|
-
## Authentication
|
|
59
|
-
|
|
60
|
-
Run `zro login` and choose **Login with website** or **Login with API key**. Use
|
|
61
|
-
`zro login --manual` to go directly to API-key entry, or `zro login --no-browser` to start
|
|
62
|
-
website login without opening a browser automatically.
|
|
63
|
-
|
|
64
|
-
Website login creates a revocable API key after approval. The generated key is encrypted to an
|
|
65
|
-
ephemeral public key belonging to the CLI, so the device-login database record never contains a
|
|
66
|
-
usable plaintext credential. The CLI sends a generic device label unless `ZRO_DEVICE_NAME` is
|
|
67
|
-
explicitly set.
|
|
68
|
-
|
|
69
|
-
If website login cannot start in an interactive terminal, `zro` immediately falls back to a masked
|
|
70
|
-
API-key paste prompt. Non-interactive commands still exit with instructions instead of waiting for
|
|
71
|
-
input.
|
|
72
|
-
|
|
73
|
-
`ZRO_API_KEY` takes precedence over the stored key. The primary credential is stored under
|
|
74
|
-
`~/.config/zro/credentials.json`. Codex App also keeps the active key in its isolated app home at
|
|
75
|
-
`~/.config/zro/codex-app/.env`; `zro logout` removes both stored copies. An environment-provided
|
|
76
|
-
`ZRO_API_KEY` remains set in the current shell after logout.
|
|
121
|
+
---
|
|
77
122
|
|
|
78
|
-
|
|
79
|
-
development authentication server. For remote development with a browser-side port forward, set
|
|
80
|
-
`ZRO_PUBLIC_URL` to the forwarded website origin.
|
|
123
|
+
## Supported agents
|
|
81
124
|
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
125
|
+
| Agent | Install | Notes |
|
|
126
|
+
| --- | --- | --- |
|
|
127
|
+
| [Claude Code](https://www.anthropic.com/claude-code) | `zro install claude` | Anthropic's coding agent |
|
|
128
|
+
| [Codex CLI](https://developers.openai.com/codex/) | `zro install codex` | OpenAI's terminal agent |
|
|
129
|
+
| [Codex App](https://developers.openai.com/codex/) | `zro install codex-app` | OpenAI's desktop app (persistent Zro-owned home) |
|
|
130
|
+
| [Kilo Code](https://kilocode.ai/) | `zro install kilo` | Kilo's terminal coding agent |
|
|
131
|
+
| [Oh My Pi](https://ohmy.ai) | `zro install omp` | Power-user terminal agent |
|
|
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 |
|
|
85
138
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
authentication rejection never uses the cache and removes it; `zro logout` removes it as well.
|
|
139
|
+
Each adapter launches the installed tool as a child process with isolated configuration. Most
|
|
140
|
+
session files are temporary; Codex App uses a persistent Zro-owned home so the desktop app can
|
|
141
|
+
reopen. Pass native tool arguments after `--`.
|
|
90
142
|
|
|
91
|
-
|
|
92
|
-
available spend, and 30-day request and token activity. JSON output includes the same account data.
|
|
143
|
+
---
|
|
93
144
|
|
|
94
145
|
## Safety
|
|
95
146
|
|
|
96
147
|
- Normal agent configs are never edited.
|
|
97
148
|
- Temporary session files live under `~/.cache/zro/sessions` and are removed when the agent exits.
|
|
98
|
-
- Kilo Code
|
|
99
|
-
safe
|
|
100
|
-
dependency trees, and
|
|
101
|
-
- Kilo telemetry, OTLP export, automatic updates,
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
- Oh My Pi runs with a temporary home, XDG roots, agent directory, and model cache. Zro copies only
|
|
105
|
-
sanitized display preferences and local agent/command/prompt/skill/theme assets; auth state,
|
|
106
|
-
databases, sessions, dependency trees, secret files, and symlinks stay outside the profile.
|
|
107
|
-
- Oh My Pi OTLP export, Auto QA reporting, startup update checks, marketplace updates, remote
|
|
108
|
-
memory, and remote compaction are disabled. Its Zro model and MCP files contain environment
|
|
109
|
-
variable names rather than API-key values.
|
|
110
|
-
- Codex App uses persistent configuration under `~/.config/zro/codex-app`; logout removes its key.
|
|
111
|
-
- API keys are masked in human and JSON previews.
|
|
112
|
-
- `--dry-run` writes nothing and starts nothing.
|
|
149
|
+
- Kilo Code and Oh My Pi run with a temporary home and XDG profile. Only sanitized preferences and
|
|
150
|
+
safe assets are copied in; provider credentials, MCP definitions, sessions, databases,
|
|
151
|
+
dependency trees, and secret files stay outside the profile.
|
|
152
|
+
- Kilo and Oh My Pi telemetry, OTLP export, automatic updates, sharing, and remote control are
|
|
153
|
+
disabled; model and MCP requests still go to the configured Zro endpoints.
|
|
154
|
+
- API keys are masked in human and JSON previews. `--dry-run` writes nothing and starts nothing.
|
|
113
155
|
- macOS and Linux are supported; use WSL on Windows.
|
|
114
156
|
|
|
115
157
|
See [SECURITY.md](SECURITY.md) for the security model and private vulnerability reporting.
|
|
116
158
|
|
|
117
|
-
|
|
159
|
+
---
|
|
118
160
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
ZRO_API_KEY=sk-... npm run test:live
|
|
128
|
-
```
|
|
161
|
+
## Contributing
|
|
162
|
+
|
|
163
|
+
Zro is a small, dependency-light TypeScript CLI (runtime deps: `json5` and `yaml`). Bug reports,
|
|
164
|
+
feature requests, and pull requests
|
|
165
|
+
are welcome. See [CONTRIBUTING.md](CONTRIBUTING.md) for development setup, checks, and contribution
|
|
166
|
+
guidelines.
|
|
167
|
+
|
|
168
|
+
---
|
|
129
169
|
|
|
130
170
|
## License
|
|
131
171
|
|
|
132
|
-
Zro is licensed under the [MIT License](LICENSE).
|
|
172
|
+
Zro is licensed under the [MIT License](LICENSE).
|
package/SECURITY.md
CHANGED
|
@@ -9,6 +9,21 @@ Include the affected version, reproduction steps, impact, and any suggested miti
|
|
|
9
9
|
acknowledge a complete report as soon as practical and coordinate disclosure after a fix is
|
|
10
10
|
available.
|
|
11
11
|
|
|
12
|
+
## Scope
|
|
13
|
+
|
|
14
|
+
This policy covers the `zro` CLI in this repository.
|
|
15
|
+
|
|
16
|
+
Out of scope:
|
|
17
|
+
|
|
18
|
+
- The Zro inference API and web platform at zro.moonmath.ai
|
|
19
|
+
- Third-party coding agents and their SDKs
|
|
20
|
+
- Operator or system misconfiguration
|
|
21
|
+
|
|
22
|
+
## Supported versions
|
|
23
|
+
|
|
24
|
+
We support security fixes on the current `main` branch and the latest npm release. There is no bug
|
|
25
|
+
bounty program at this time.
|
|
26
|
+
|
|
12
27
|
## Security model
|
|
13
28
|
|
|
14
29
|
Zro stores credentials with user-only filesystem permissions and creates isolated configuration
|
|
@@ -33,3 +48,6 @@ and remote-compaction controls through a temporary high-precedence settings over
|
|
|
33
48
|
Browser login uses a short-lived device code. The CLI generates an ephemeral RSA keypair, and the
|
|
34
49
|
website encrypts the issued credential to that public key. The private key remains in CLI memory
|
|
35
50
|
and is not written to disk.
|
|
51
|
+
|
|
52
|
+
API keys are masked in all human and JSON output. `zro --dry-run` writes nothing and starts
|
|
53
|
+
nothing.
|
package/dist/args.js
CHANGED
|
@@ -48,7 +48,12 @@ export function parseArgs(argv) {
|
|
|
48
48
|
if (command === "again") {
|
|
49
49
|
const parsed = parseOptions(argv.slice(1), false);
|
|
50
50
|
assertNoExtraArgs(parsed.extraArgs, command);
|
|
51
|
-
return { command: "again", dryRun: parsed.dryRun, output: parsed.output };
|
|
51
|
+
return { command: "again", dryRun: parsed.dryRun, output: parsed.output, aliases: parsed.aliases };
|
|
52
|
+
}
|
|
53
|
+
if (command === "feedback") {
|
|
54
|
+
const parsed = parseOptions(argv.slice(1), false);
|
|
55
|
+
const message = parsed.extraArgs.join(" ").trim() || undefined;
|
|
56
|
+
return { command: "feedback", message, output: parsed.output };
|
|
52
57
|
}
|
|
53
58
|
if (command === "launch" || command === "run") {
|
|
54
59
|
const value = argv[1];
|
|
@@ -91,6 +96,14 @@ function parseOptions(argv, allowPassthrough) {
|
|
|
91
96
|
result.model = value.slice("--model=".length);
|
|
92
97
|
continue;
|
|
93
98
|
}
|
|
99
|
+
if (value === "--alias") {
|
|
100
|
+
addAlias(result, requiredValue(argv, ++index, value));
|
|
101
|
+
continue;
|
|
102
|
+
}
|
|
103
|
+
if (value.startsWith("--alias=")) {
|
|
104
|
+
addAlias(result, value.slice("--alias=".length));
|
|
105
|
+
continue;
|
|
106
|
+
}
|
|
94
107
|
if (value === "--api-key") {
|
|
95
108
|
result.apiKey = requiredValue(argv, ++index, value);
|
|
96
109
|
continue;
|
|
@@ -168,6 +181,14 @@ function parseInstallArgs(argv) {
|
|
|
168
181
|
}
|
|
169
182
|
return { command: "install", tool, upgrade, version };
|
|
170
183
|
}
|
|
184
|
+
function addAlias(options, pair) {
|
|
185
|
+
const separator = pair.indexOf("=");
|
|
186
|
+
if (separator <= 0) {
|
|
187
|
+
throw new Error("--alias expects SLOT=MODEL, for example: --alias opus=deepseek-v4.1-flash");
|
|
188
|
+
}
|
|
189
|
+
options.aliases ??= {};
|
|
190
|
+
options.aliases[pair.slice(0, separator).toUpperCase()] = pair.slice(separator + 1);
|
|
191
|
+
}
|
|
171
192
|
function requiredValue(argv, index, option) {
|
|
172
193
|
const value = argv[index];
|
|
173
194
|
if (!value || value === "--")
|
package/dist/args.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"args.js","sourceRoot":"","sources":["../src/args.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,KAAK,EAAE,MAAM,cAAc,CAAC;AAGlD,MAAM,IAAI,GAAG,IAAI,GAAG,CAAC,CAAC,MAAM,EAAE,IAAI,EAAE,QAAQ,CAAC,CAAC,CAAC;AAC/C,MAAM,OAAO,GAAG,IAAI,GAAG,CAAC,CAAC,SAAS,EAA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AS,UAAU,CAAC,IAAc;IAChC,OAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,CAAC;AACpD,CAAC;AAED,SAAS,iBAAiB,CAAC,IAAc,EAAE,OAAe;IACxD,IAAI,IAAI,CAAC,MAAM;QAAE,MAAM,IAAI,KAAK,CAAC,2BAA2B,OAAO,KAAK,IAAI,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;AACrF,CAAC;AAED,SAAS,SAAS;IAChB,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AACjD,CAAC"}
|
|
@@ -15,18 +15,65 @@ export interface ZroReasoningConfig {
|
|
|
15
15
|
defaultLevel: string;
|
|
16
16
|
levels: readonly ZroReasoningLevel[];
|
|
17
17
|
}
|
|
18
|
+
export type ZroModality = "text" | "image" | "video" | "audio" | "pdf";
|
|
19
|
+
export interface ZroModalities {
|
|
20
|
+
input: readonly ZroModality[];
|
|
21
|
+
output: readonly ZroModality[];
|
|
22
|
+
}
|
|
18
23
|
export interface ZroModel {
|
|
19
24
|
id: string;
|
|
20
25
|
displayName: string;
|
|
21
26
|
contextWindow: number;
|
|
22
27
|
maxOutputTokens: number;
|
|
28
|
+
modalities: ZroModalities;
|
|
23
29
|
reasoning: ZroReasoningConfig;
|
|
24
30
|
}
|
|
31
|
+
/** True when a model accepts non-text input (image/video/audio/pdf). */
|
|
32
|
+
export declare function supportsAttachments(model: Pick<ZroModel, "modalities">): boolean;
|
|
25
33
|
export declare const ZRO_MODELS: readonly [{
|
|
26
|
-
readonly id: "
|
|
27
|
-
readonly displayName: "
|
|
28
|
-
readonly contextWindow:
|
|
29
|
-
readonly maxOutputTokens:
|
|
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
|
+
};
|
|
30
77
|
readonly reasoning: {
|
|
31
78
|
readonly defaultLevel: "max";
|
|
32
79
|
readonly levels: readonly [{
|
|
@@ -47,6 +94,7 @@ export declare const ZRO_MODELS: readonly [{
|
|
|
47
94
|
}, {
|
|
48
95
|
readonly id: "max";
|
|
49
96
|
readonly description: "Use GLM maximum reasoning effort";
|
|
97
|
+
readonly codexEffort: "xhigh";
|
|
50
98
|
readonly piLevel: "xhigh";
|
|
51
99
|
readonly openCodeOptions: {
|
|
52
100
|
readonly reasoningEffort: "max";
|
|
@@ -54,29 +102,34 @@ export declare const ZRO_MODELS: readonly [{
|
|
|
54
102
|
}];
|
|
55
103
|
};
|
|
56
104
|
}, {
|
|
57
|
-
readonly id: "
|
|
58
|
-
readonly displayName: "
|
|
105
|
+
readonly id: "glm-5.3-flash";
|
|
106
|
+
readonly displayName: "GLM-5.3 Flash";
|
|
59
107
|
readonly contextWindow: 1048576;
|
|
60
|
-
readonly maxOutputTokens:
|
|
108
|
+
readonly maxOutputTokens: 64000;
|
|
109
|
+
readonly modalities: {
|
|
110
|
+
readonly input: readonly ["text", "image"];
|
|
111
|
+
readonly output: readonly ["text"];
|
|
112
|
+
};
|
|
61
113
|
readonly reasoning: {
|
|
62
|
-
readonly defaultLevel: "
|
|
114
|
+
readonly defaultLevel: "max";
|
|
63
115
|
readonly levels: readonly [{
|
|
64
|
-
readonly id: "
|
|
65
|
-
readonly description: "
|
|
66
|
-
readonly
|
|
116
|
+
readonly id: "none";
|
|
117
|
+
readonly description: "Disable reasoning for the lowest latency";
|
|
118
|
+
readonly codexEffort: "disabled";
|
|
119
|
+
readonly piLevel: "off";
|
|
67
120
|
readonly openCodeOptions: {
|
|
68
|
-
readonly reasoningEffort: "
|
|
121
|
+
readonly reasoningEffort: "none";
|
|
69
122
|
};
|
|
70
123
|
}, {
|
|
71
124
|
readonly id: "high";
|
|
72
|
-
readonly description: "Use
|
|
125
|
+
readonly description: "Use GLM High reasoning effort";
|
|
73
126
|
readonly piLevel: "high";
|
|
74
127
|
readonly openCodeOptions: {
|
|
75
128
|
readonly reasoningEffort: "high";
|
|
76
129
|
};
|
|
77
130
|
}, {
|
|
78
131
|
readonly id: "max";
|
|
79
|
-
readonly description: "Use
|
|
132
|
+
readonly description: "Use GLM maximum reasoning effort";
|
|
80
133
|
readonly codexEffort: "xhigh";
|
|
81
134
|
readonly piLevel: "xhigh";
|
|
82
135
|
readonly openCodeOptions: {
|
|
@@ -85,12 +138,16 @@ export declare const ZRO_MODELS: readonly [{
|
|
|
85
138
|
}];
|
|
86
139
|
};
|
|
87
140
|
}, {
|
|
88
|
-
readonly id: "
|
|
89
|
-
readonly displayName: "
|
|
141
|
+
readonly id: "dolly1-security";
|
|
142
|
+
readonly displayName: "Dolly 1 Security";
|
|
90
143
|
readonly contextWindow: 1048576;
|
|
91
|
-
readonly maxOutputTokens:
|
|
144
|
+
readonly maxOutputTokens: 64000;
|
|
145
|
+
readonly modalities: {
|
|
146
|
+
readonly input: readonly ["text", "image"];
|
|
147
|
+
readonly output: readonly ["text"];
|
|
148
|
+
};
|
|
92
149
|
readonly reasoning: {
|
|
93
|
-
readonly defaultLevel: "
|
|
150
|
+
readonly defaultLevel: "max";
|
|
94
151
|
readonly levels: readonly [{
|
|
95
152
|
readonly id: "none";
|
|
96
153
|
readonly description: "Disable reasoning for the lowest latency";
|
|
@@ -101,13 +158,75 @@ export declare const ZRO_MODELS: readonly [{
|
|
|
101
158
|
};
|
|
102
159
|
}, {
|
|
103
160
|
readonly id: "high";
|
|
104
|
-
readonly description: "Use
|
|
161
|
+
readonly description: "Use GLM High reasoning effort";
|
|
105
162
|
readonly piLevel: "high";
|
|
106
163
|
readonly openCodeOptions: {
|
|
107
164
|
readonly reasoningEffort: "high";
|
|
108
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
|
+
};
|
|
109
228
|
}];
|
|
110
229
|
};
|
|
111
230
|
}];
|
|
112
|
-
export declare const DEFAULT_MODEL = "
|
|
231
|
+
export declare const DEFAULT_MODEL = "deepseek-v4.1-flash";
|
|
113
232
|
export declare const SUPPORTED_TOOLS: readonly ["claude", "codex", "codex-app", "grok", "kilo", "omp", "opencode", "hermes", "openclaw", "pi", "prime"];
|