typeclaw 0.38.1 → 0.39.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 +4 -0
- package/package.json +2 -2
- package/src/agent/attention-escalation.ts +4 -3
- package/src/agent/auth.ts +2 -2
- package/src/agent/index.ts +25 -2
- package/src/agent/restart/index.ts +17 -8
- package/src/agent/subagents.ts +29 -1
- package/src/agent/system-prompt.ts +18 -5
- package/src/agent/tools/restart.ts +0 -3
- package/src/agent/tools/spawn-subagent.ts +7 -0
- package/src/bundled-plugins/memory/index.ts +24 -6
- package/src/bundled-plugins/memory/memory-logger.ts +14 -10
- package/src/bundled-plugins/operator/operator.ts +1 -0
- package/src/cli/model.ts +143 -3
- package/src/config/config.ts +94 -31
- package/src/config/index.ts +3 -0
- package/src/config/models-mutation.ts +105 -15
- package/src/config/providers-mutation.ts +4 -4
- package/src/config/providers.ts +6 -14
- package/src/container/shared.ts +21 -0
- package/src/container/start.ts +25 -7
- package/src/hostd/index.ts +1 -11
- package/src/hostd/paths.ts +0 -16
- package/src/run/index.ts +4 -1
- package/src/skills/typeclaw-config/SKILL.md +18 -16
- package/typeclaw.schema.json +166 -0
package/src/container/shared.ts
CHANGED
|
@@ -108,6 +108,27 @@ export async function buildxAvailable(exec: DockerExec = defaultDockerExec): Pro
|
|
|
108
108
|
return (await exec(['buildx', 'version'])).exitCode === 0
|
|
109
109
|
}
|
|
110
110
|
|
|
111
|
+
export type BindMountSpec = { src: string; dst: string; readonly?: boolean }
|
|
112
|
+
|
|
113
|
+
// Emits `--mount type=bind,...` argv for a host->container bind mount, used in
|
|
114
|
+
// place of the legacy `-v src:dst[:ro]` form. The `-v` short form splits on
|
|
115
|
+
// `:`, which collides with a Windows drive letter (`C:\agent` parses as host
|
|
116
|
+
// `C` + path `\agent`); `--mount`'s `key=value` CSV has no such ambiguity and
|
|
117
|
+
// fails loud on an unknown/missing key instead of silently creating a phantom
|
|
118
|
+
// host dir. Src is resolved to an absolute path because `--mount` (unlike `-v`)
|
|
119
|
+
// rejects relative sources. A literal comma in a path would break the CSV;
|
|
120
|
+
// it's rejected here rather than silently mis-parsed (paths with commas are
|
|
121
|
+
// pathological and were never supported by the `-v` form either).
|
|
122
|
+
export function dockerBindMount({ src, dst, readonly }: BindMountSpec): [string, string] {
|
|
123
|
+
const absSrc = resolve(src)
|
|
124
|
+
if (absSrc.includes(',') || dst.includes(',')) {
|
|
125
|
+
throw new Error(`bind mount path contains a comma, which docker --mount cannot express: ${absSrc} -> ${dst}`)
|
|
126
|
+
}
|
|
127
|
+
const fields = [`type=bind`, `src=${absSrc}`, `dst=${dst}`]
|
|
128
|
+
if (readonly) fields.push('readonly')
|
|
129
|
+
return ['--mount', fields.join(',')]
|
|
130
|
+
}
|
|
131
|
+
|
|
111
132
|
export function containerNameFromCwd(cwd: string): string {
|
|
112
133
|
return sanitizeContainerName(basename(resolve(cwd)))
|
|
113
134
|
}
|
package/src/container/start.ts
CHANGED
|
@@ -26,6 +26,7 @@ import { buildGitignore, GITIGNORE_FILE } from '@/init/gitignore'
|
|
|
26
26
|
import { refreshPackageJson } from '@/init/packagejson'
|
|
27
27
|
import { reconcilePluginDeps } from '@/init/reconcile-plugin-deps'
|
|
28
28
|
import { runBunUpdate, type UpdateRunner } from '@/init/run-bun-install'
|
|
29
|
+
import { isWindows } from '@/shared'
|
|
29
30
|
import { hostLocaleIsCjk } from '@/shared/host-locale'
|
|
30
31
|
|
|
31
32
|
import { CONTAINER_PORT, TUI_TOKEN_LABEL, findFreePort, isPortAllocatedError, resolveTuiToken } from './port'
|
|
@@ -37,6 +38,7 @@ import {
|
|
|
37
38
|
defaultDockerExec,
|
|
38
39
|
type DockerExec,
|
|
39
40
|
type DockerExecResult,
|
|
41
|
+
dockerBindMount,
|
|
40
42
|
imageTagFromCwd,
|
|
41
43
|
isContainerNameConflict,
|
|
42
44
|
sanitizeDockerStderr,
|
|
@@ -656,18 +658,16 @@ export async function planStart({
|
|
|
656
658
|
runArgs.push('-e', `TYPECLAW_HOSTD_BROKER_TOKEN=${hostdControl.brokerToken}`)
|
|
657
659
|
}
|
|
658
660
|
|
|
659
|
-
runArgs.push('
|
|
661
|
+
runArgs.push(...dockerBindMount({ src: cwd, dst: '/agent' }))
|
|
660
662
|
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
if (devSourcePath && !devSourcePath.startsWith(cwd)) {
|
|
664
|
-
runArgs.push('-v', `${devSourcePath}:${devSourcePath}:ro`)
|
|
663
|
+
if (shouldMirrorDevSource(devSourcePath, cwd)) {
|
|
664
|
+
runArgs.push(...dockerBindMount({ src: devSourcePath, dst: devSourcePath, readonly: true }))
|
|
665
665
|
}
|
|
666
666
|
|
|
667
667
|
for (const mount of mounts) {
|
|
668
668
|
const hostPath = expandMountPath(mount.path, cwd)
|
|
669
669
|
const target = `${MOUNT_TARGET_PREFIX}/${mount.name}`
|
|
670
|
-
runArgs.push(
|
|
670
|
+
runArgs.push(...dockerBindMount({ src: hostPath, dst: target, readonly: mount.readOnly }))
|
|
671
671
|
}
|
|
672
672
|
|
|
673
673
|
// Shared model cache mount for embeddings. Gated on vector opt-in: a
|
|
@@ -676,7 +676,7 @@ export async function planStart({
|
|
|
676
676
|
// so mounting an empty cache would only invite a confusing local_files_only
|
|
677
677
|
// miss if something inside the container reached for the model anyway.
|
|
678
678
|
if (agentUsesVector(cwd)) {
|
|
679
|
-
runArgs.push(
|
|
679
|
+
runArgs.push(...dockerBindMount({ src: join(homeRoot(), 'models'), dst: '/opt/models', readonly: true }))
|
|
680
680
|
runArgs.push('-e', 'TYPECLAW_MODEL_CACHE=/opt/models')
|
|
681
681
|
}
|
|
682
682
|
|
|
@@ -915,6 +915,24 @@ async function detectDevSource(cwd: string): Promise<string | null> {
|
|
|
915
915
|
}
|
|
916
916
|
}
|
|
917
917
|
|
|
918
|
+
// Dev mode: node_modules/typeclaw is a symlink to an absolute host path outside
|
|
919
|
+
// /agent. The mirror mount bind-mounts that path at the SAME path inside the
|
|
920
|
+
// (Linux) container so the symlink resolves. That only works when the host path
|
|
921
|
+
// is itself a valid Linux container path — true on POSIX, false on native
|
|
922
|
+
// Windows where devSourcePath is `C:\...` (not an absolute Linux path, so it
|
|
923
|
+
// cannot be a container mount `dst`, and the in-container symlink would point at
|
|
924
|
+
// a Windows path regardless). Native-Windows dev-mode (file:/link: typeclaw dep)
|
|
925
|
+
// needs the deferred symlink/junction translation in #899; until then we skip
|
|
926
|
+
// the mirror mount rather than emit an invalid `dst`. End users install typeclaw
|
|
927
|
+
// from npm (a registry spec, not file:), so they never hit this path.
|
|
928
|
+
export function shouldMirrorDevSource(
|
|
929
|
+
devSourcePath: string | null,
|
|
930
|
+
cwd: string,
|
|
931
|
+
platform: NodeJS.Platform = process.platform,
|
|
932
|
+
): devSourcePath is string {
|
|
933
|
+
return devSourcePath !== null && !devSourcePath.startsWith(cwd) && !isWindows(platform)
|
|
934
|
+
}
|
|
935
|
+
|
|
918
936
|
// True when the agent's package.json declares typeclaw via `file:` or
|
|
919
937
|
// `link:` — i.e. a developer is iterating on the typeclaw source via a
|
|
920
938
|
// locally-linked checkout. `bun install` keys its file-dep cache on
|
package/src/hostd/index.ts
CHANGED
|
@@ -1,16 +1,6 @@
|
|
|
1
1
|
export { isDaemonReachable, send } from './client'
|
|
2
2
|
export { startDaemon, type Daemon, type DaemonLogEvent, type DaemonOptions } from './daemon'
|
|
3
|
-
export {
|
|
4
|
-
containerSocketPath,
|
|
5
|
-
ensureDirs,
|
|
6
|
-
homeRoot,
|
|
7
|
-
lockfilePath,
|
|
8
|
-
logDir,
|
|
9
|
-
logfilePath,
|
|
10
|
-
pidfilePath,
|
|
11
|
-
runDir,
|
|
12
|
-
socketPath,
|
|
13
|
-
} from './paths'
|
|
3
|
+
export { ensureDirs, homeRoot, lockfilePath, logDir, logfilePath, pidfilePath, runDir, socketPath } from './paths'
|
|
14
4
|
export type {
|
|
15
5
|
ListResult,
|
|
16
6
|
Request,
|
package/src/hostd/paths.ts
CHANGED
|
@@ -5,11 +5,6 @@ import { join, resolve } from 'node:path'
|
|
|
5
5
|
|
|
6
6
|
import { isWindows } from '@/shared'
|
|
7
7
|
|
|
8
|
-
// Fixed in-container path where the host daemon's run dir is bind-mounted.
|
|
9
|
-
// The agent uses this to reach the host daemon (e.g. for the `restart` tool).
|
|
10
|
-
// Kept stable so the agent never has to discover the host's `~/.typeclaw`
|
|
11
|
-
// location at runtime.
|
|
12
|
-
const CONTAINER_HOST_RUN_DIR = '/run/typeclaw-host'
|
|
13
8
|
const SOCKET_FILE = 'hostd.sock'
|
|
14
9
|
const REGISTRATIONS_DIR = 'registrations'
|
|
15
10
|
const KEYS_DIR = 'keys'
|
|
@@ -90,17 +85,6 @@ export function registrationFilePath(containerName: string): string {
|
|
|
90
85
|
return join(registrationsDir(), `${containerName}.json`)
|
|
91
86
|
}
|
|
92
87
|
|
|
93
|
-
// In-container path to the same socket the host daemon listens on. The
|
|
94
|
-
// container-stage agent tool dials this path; the host bind-mounts the host
|
|
95
|
-
// run dir at CONTAINER_HOST_RUN_DIR so the socket is reachable.
|
|
96
|
-
export function containerSocketPath(): string {
|
|
97
|
-
return join(CONTAINER_HOST_RUN_DIR, SOCKET_FILE)
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
export function containerHostRunDir(): string {
|
|
101
|
-
return CONTAINER_HOST_RUN_DIR
|
|
102
|
-
}
|
|
103
|
-
|
|
104
88
|
export async function ensureDirs(): Promise<void> {
|
|
105
89
|
await mkdir(runDir(), { recursive: true })
|
|
106
90
|
await mkdir(logDir(), { recursive: true })
|
package/src/run/index.ts
CHANGED
|
@@ -13,6 +13,7 @@ import {
|
|
|
13
13
|
defaultCreateSessionForSubagent,
|
|
14
14
|
invokeSubagent,
|
|
15
15
|
isSubagentTimeoutError,
|
|
16
|
+
resolveSubagentProfile,
|
|
16
17
|
type Subagent as InternalSubagent,
|
|
17
18
|
type SubagentConsumer,
|
|
18
19
|
type SubagentRegistry,
|
|
@@ -409,7 +410,9 @@ export async function startAgent({
|
|
|
409
410
|
allowBackgroundFromSubagent,
|
|
410
411
|
}
|
|
411
412
|
: {}),
|
|
412
|
-
...(entry.pluginSubagent
|
|
413
|
+
...(resolveSubagentProfile(entry.pluginSubagent, subagentOptions) !== undefined
|
|
414
|
+
? { profile: resolveSubagentProfile(entry.pluginSubagent, subagentOptions) }
|
|
415
|
+
: {}),
|
|
413
416
|
...(entry.pluginSubagent.toolResultBudget !== undefined
|
|
414
417
|
? { toolResultBudget: entry.pluginSubagent.toolResultBudget }
|
|
415
418
|
: {}),
|
|
@@ -15,6 +15,7 @@ The runtime reads `typeclaw.json` at container startup. Some fields are picked u
|
|
|
15
15
|
|
|
16
16
|
- `port` — the TCP port the websocket server binds to inside the container. The TUI on the host stage connects to this. Default `8973`. **Restart-required.**
|
|
17
17
|
- `model` — a fully-qualified `<provider>/<model-id>` string. The runtime resolves this against the built-in provider registry to decide which API to call for every turn. **Live-reloadable.**
|
|
18
|
+
- `thinkingLevel` (per-profile) — reasoning effort lives **inside `models`**, not as a top-level field. A profile value may be an object like `{ "model": "<ref>", "thinkingLevel": "high" }` (or `{ "models": ["<ref>", …], "thinkingLevel": … }` for a chain). A session resolves its effort as **the profile's own level → the `default` profile's level → the SDK default (`medium`)** — so the `default` profile's `thinkingLevel` is the de-facto global default, mirroring how `models.default` is the default model. Levels: `off`, `minimal`, `low`, `medium`, `high`, `xhigh`. Clamped to each model's capabilities (`xhigh` is OpenAI-family-only). An attention-escalation cue in a turn still bumps that single turn to maximum effort regardless. Bare string/array profile values keep working; a profile becomes an object only when a level is attached. **Live-reloadable** (rides `models`).
|
|
18
19
|
- `mounts` — additional host directories the user has chosen to expose to you. Each entry produces a `docker run -v <hostPath>:/agent/mounts/<name>` flag at `typeclaw start` time, so the directory shows up at `mounts/<name>` inside your agent folder. **The launcher reads this; the running container does not.** Editing `mounts` only takes effect on the next `typeclaw start`. **Restart-required.**
|
|
19
20
|
- `plugins` — array of plugin module specifiers loaded at server boot: npm package names for published plugins, or relative paths for local plugins you are authoring. **Restart-required.**
|
|
20
21
|
- `alias` — additional names the agent answers to when a channel message contains its name in plain text (no `<@id>` mention). The agent folder's directory name (`basename(agentDir)`) is always implicit; `alias` adds further forms (Latin transliteration, nicknames, Korean particles, etc.). Used by the channel engagement layer alongside the structural mention/reply/dm triggers. **Live-reloadable.**
|
|
@@ -27,7 +28,7 @@ The runtime reads `typeclaw.json` at container startup. Some fields are picked u
|
|
|
27
28
|
|
|
28
29
|
There is no file watcher, but there is a `reload` mechanism. When `typeclaw.json` changes:
|
|
29
30
|
|
|
30
|
-
- **Live-reloadable fields** (`
|
|
31
|
+
- **Live-reloadable fields** (`models` — including per-profile `thinkingLevel`, `alias`, `channels`) take effect on the next `reload` — no container restart.
|
|
31
32
|
- **Restart-required fields** (`port`, `mounts`, `plugins`, `portForward`, `docker.file`, `git.ignore`) are reported as "reload landed but change won't apply until restart". The diff returns success; the runtime still has the old value in memory. Tell the user explicitly which one they're hitting. `docker.file` additionally requires an image rebuild — that happens automatically on the next `typeclaw start`, no extra flag needed. `git.ignore` refreshes the managed `.gitignore` and auto-commits it on the next `typeclaw start` if content changed.
|
|
32
33
|
- **`$schema`** changes are ignored.
|
|
33
34
|
|
|
@@ -39,18 +40,19 @@ You yourself cannot run `typeclaw restart` — that is a host-stage command and
|
|
|
39
40
|
|
|
40
41
|
`typeclaw.json` is a single JSON object with these fields:
|
|
41
42
|
|
|
42
|
-
| Field
|
|
43
|
-
|
|
|
44
|
-
| `$schema`
|
|
45
|
-
| `port`
|
|
46
|
-
| `model`
|
|
47
|
-
| `
|
|
48
|
-
| `
|
|
49
|
-
| `
|
|
50
|
-
| `
|
|
51
|
-
| `
|
|
52
|
-
| `
|
|
53
|
-
| `
|
|
43
|
+
| Field | Required | Type | Notes |
|
|
44
|
+
| -------------------------------- | -------- | ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
|
45
|
+
| `$schema` | no | string | Path to `typeclaw.schema.json` for editor autocompletion. Scaffolded as `./node_modules/typeclaw/typeclaw.schema.json`. Leave it alone unless the user moves it. |
|
|
46
|
+
| `port` | no | integer | 1–65535. Defaults to `8973` (T9 spelling of "TYPE"). Change only if the default collides with something on the user's host. **Restart-required.** |
|
|
47
|
+
| `model` | no | string | Must be one of the values listed in the **Allowed models** section below. Defaults to `openai/gpt-5.4-nano`. **Live-reloadable.** |
|
|
48
|
+
| `models.<profile>.thinkingLevel` | no | string | Per-profile reasoning effort (NOT a top-level field): `off` \| `minimal` \| `low` \| `medium` \| `high` \| `xhigh`. Lives in a profile object `{ "model": "<ref>", "thinkingLevel": … }`. Resolves as profile's own → `default` profile's → SDK default (`medium`). Set with `typeclaw model set <profile> <ref> --thinking <level>` or `typeclaw model thinking <level>` (for `default`). **Live-reloadable.** |
|
|
49
|
+
| `mounts` | no | array of objects | Host directories bind-mounted into your container. Defaults to `[]` (no host paths exposed). Omitted from scaffolded `typeclaw.json` — add it only when the user wants host paths exposed. See **Mounts** section below. **Restart-required.** |
|
|
50
|
+
| `plugins` | no | array of strings | Plugin module specifiers loaded at server boot: use npm package names for published plugins (for example, `typeclaw-gws-multi-account`) and relative paths only for local plugins you are authoring (for example, `./packages/my-plugin`). Defaults to `[]`. **Restart-required.** Plugin-owned config blocks live alongside as additional top-level keys; see **Plugin config blocks**. |
|
|
51
|
+
| `alias` | no | array of strings | Additional names the agent answers to in channel engagement, on top of the implicit `basename(agentDir)`. Each entry is a non-empty trimmed string matched case-insensitively as a substring of the inbound text. Defaults to `[]`. Hatching populates this with the agent's chosen name. See **Channels and Alias** below for schema/edit mechanics; the matching behavior lives in the `typeclaw-channels` skill. **Live-reloadable.** |
|
|
52
|
+
| `channels` | no | object | Per-adapter engagement triggers and history-prefetch knobs for external messengers (plus the `github` webhook channel — see **GitHub channel** below). Defaults to `{}` (no adapters configured). `typeclaw init` scaffolds an empty block per requested adapter (e.g. `"discord-bot": {}`) and the schema fills in defaults. Channel access control lives in `roles` — see the `typeclaw-permissions` skill; engagement behavior lives in `typeclaw-channels`. **Live-reloadable.** See **Channels and Alias** below. |
|
|
53
|
+
| `portForward` | no | object | Allow/deny policy for the host-stage portbroker that auto-forwards container LISTEN ports to `127.0.0.1` on the host. Defaults to `{ "allow": "*" }` (forward everything). Omitted from scaffolded `typeclaw.json`. **Restart-required.** See **portForward** section below. |
|
|
54
|
+
| `docker` | no | object | Namespace for Docker-related blocks. Today the only child is `docker.file` — toggles (`tmux`, `gh`, `python`, `ffmpeg`, `cjkFonts`, `cloudflared`, `xvfb`, `claudeCode`, `codexCli`) gate opinionated package installs; `append` adds custom Dockerfile lines just before `ENTRYPOINT`. `docker.file` defaults to `{ ffmpeg: false, gh: true, python: true, tmux: true, cjkFonts: 'auto', cloudflared: false, xvfb: true, claudeCode: false, codexCli: false, append: [] }`. Omitted from scaffolded `typeclaw.json`. **Restart-required** (next `typeclaw start` rebuilds the image). See **Dockerfile** section below. |
|
|
55
|
+
| `git` | no | object | Namespace for git-related blocks. Today the only child is `git.ignore` — extra patterns spliced into the autogenerated `.gitignore` before TypeClaw's protected rules. `git.ignore` defaults to `{ "append": [] }`. Omitted from scaffolded `typeclaw.json`. **Restart-required** (next `typeclaw start` refreshes `.gitignore`). See **Gitignore** section below. |
|
|
54
56
|
|
|
55
57
|
> **Top-level keys not in this table are not "ignored unknowns" anymore** — they are reserved for **plugin config blocks**. The schema's `catchall(z.unknown())` preserves them, and the plugin loader hands each block to its owning plugin's `configSchema` for validation. The bundled memory plugin owns `memory` at the top level — see the `typeclaw-memory` skill for that block's semantics. Do not write a top-level key unless you know which plugin owns it.
|
|
56
58
|
|
|
@@ -93,7 +95,7 @@ Example with mounts:
|
|
|
93
95
|
```json
|
|
94
96
|
{
|
|
95
97
|
"$schema": "./node_modules/typeclaw/typeclaw.schema.json",
|
|
96
|
-
"model": "
|
|
98
|
+
"model": "<provider>/<model-id>",
|
|
97
99
|
"mounts": [
|
|
98
100
|
{ "name": "typeclaw", "path": "~/workspace/typeclaw", "description": "the typeclaw source repo" },
|
|
99
101
|
{ "name": "notes", "path": "~/notes", "readOnly": true, "description": "personal notes (read-only)" }
|
|
@@ -212,7 +214,7 @@ Default (no `portForward` field at all): forward every LISTEN.
|
|
|
212
214
|
```json
|
|
213
215
|
{
|
|
214
216
|
"$schema": "./node_modules/typeclaw/typeclaw.schema.json",
|
|
215
|
-
"model": "
|
|
217
|
+
"model": "<provider>/<model-id>"
|
|
216
218
|
}
|
|
217
219
|
```
|
|
218
220
|
|
|
@@ -532,7 +534,7 @@ Never echo, log, or commit values from `secrets.json` or `.env`. Both are gitign
|
|
|
532
534
|
|
|
533
535
|
1. **Read `typeclaw.json`.** Don't guess from prior conversation — the user may have changed it since you last looked.
|
|
534
536
|
2. Report the `model` field verbatim, plus the human-readable name from the **Allowed models** table.
|
|
535
|
-
3. If `model` is missing from the file, say so and report the default
|
|
537
|
+
3. If `model` is missing from the file, say so and report the registry default — the entry marked **Default** in the **Allowed models** table.
|
|
536
538
|
|
|
537
539
|
## When the user says "switch to <model>"
|
|
538
540
|
|
package/typeclaw.schema.json
CHANGED
|
@@ -116,6 +116,172 @@
|
|
|
116
116
|
}
|
|
117
117
|
]
|
|
118
118
|
}
|
|
119
|
+
},
|
|
120
|
+
{
|
|
121
|
+
"type": "object",
|
|
122
|
+
"properties": {
|
|
123
|
+
"model": {
|
|
124
|
+
"anyOf": [
|
|
125
|
+
{
|
|
126
|
+
"type": "string",
|
|
127
|
+
"enum": [
|
|
128
|
+
"openai/gpt-5.4-nano",
|
|
129
|
+
"openai/gpt-5.4-mini",
|
|
130
|
+
"openai/gpt-5.4",
|
|
131
|
+
"openai/gpt-5.5",
|
|
132
|
+
"openai-codex/gpt-5.4-mini",
|
|
133
|
+
"openai-codex/gpt-5.4",
|
|
134
|
+
"openai-codex/gpt-5.5",
|
|
135
|
+
"anthropic/claude-haiku-4-5",
|
|
136
|
+
"anthropic/claude-sonnet-4-6",
|
|
137
|
+
"anthropic/claude-opus-4-7",
|
|
138
|
+
"anthropic/claude-opus-4-8",
|
|
139
|
+
"fireworks/accounts/fireworks/routers/kimi-k2p6-turbo",
|
|
140
|
+
"zai/glm-4.5-air",
|
|
141
|
+
"zai/glm-4.6",
|
|
142
|
+
"zai/glm-4.7",
|
|
143
|
+
"zai-coding/glm-4.5-air",
|
|
144
|
+
"zai-coding/glm-4.7",
|
|
145
|
+
"zai-coding/glm-5",
|
|
146
|
+
"zai-coding/glm-5-turbo",
|
|
147
|
+
"zai-coding/glm-5.1",
|
|
148
|
+
"xai/grok-4.3",
|
|
149
|
+
"xai/grok-4.20-0309-reasoning",
|
|
150
|
+
"xai/grok-4.20-0309-non-reasoning",
|
|
151
|
+
"xai/grok-build-0.1",
|
|
152
|
+
"minimax/MiniMax-M3",
|
|
153
|
+
"minimax/MiniMax-M2.7",
|
|
154
|
+
"minimax/MiniMax-M2.5",
|
|
155
|
+
"minimax/MiniMax-M2.1",
|
|
156
|
+
"minimax/MiniMax-M2",
|
|
157
|
+
"deepseek/deepseek-v4-flash",
|
|
158
|
+
"deepseek/deepseek-v4-pro",
|
|
159
|
+
"moonshot/kimi-k2.7-code",
|
|
160
|
+
"moonshot/kimi-k2.6",
|
|
161
|
+
"moonshot/kimi-k2.5",
|
|
162
|
+
"moonshot-coding/kimi-for-coding"
|
|
163
|
+
]
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"type": "string"
|
|
167
|
+
}
|
|
168
|
+
]
|
|
169
|
+
},
|
|
170
|
+
"models": {
|
|
171
|
+
"anyOf": [
|
|
172
|
+
{
|
|
173
|
+
"anyOf": [
|
|
174
|
+
{
|
|
175
|
+
"type": "string",
|
|
176
|
+
"enum": [
|
|
177
|
+
"openai/gpt-5.4-nano",
|
|
178
|
+
"openai/gpt-5.4-mini",
|
|
179
|
+
"openai/gpt-5.4",
|
|
180
|
+
"openai/gpt-5.5",
|
|
181
|
+
"openai-codex/gpt-5.4-mini",
|
|
182
|
+
"openai-codex/gpt-5.4",
|
|
183
|
+
"openai-codex/gpt-5.5",
|
|
184
|
+
"anthropic/claude-haiku-4-5",
|
|
185
|
+
"anthropic/claude-sonnet-4-6",
|
|
186
|
+
"anthropic/claude-opus-4-7",
|
|
187
|
+
"anthropic/claude-opus-4-8",
|
|
188
|
+
"fireworks/accounts/fireworks/routers/kimi-k2p6-turbo",
|
|
189
|
+
"zai/glm-4.5-air",
|
|
190
|
+
"zai/glm-4.6",
|
|
191
|
+
"zai/glm-4.7",
|
|
192
|
+
"zai-coding/glm-4.5-air",
|
|
193
|
+
"zai-coding/glm-4.7",
|
|
194
|
+
"zai-coding/glm-5",
|
|
195
|
+
"zai-coding/glm-5-turbo",
|
|
196
|
+
"zai-coding/glm-5.1",
|
|
197
|
+
"xai/grok-4.3",
|
|
198
|
+
"xai/grok-4.20-0309-reasoning",
|
|
199
|
+
"xai/grok-4.20-0309-non-reasoning",
|
|
200
|
+
"xai/grok-build-0.1",
|
|
201
|
+
"minimax/MiniMax-M3",
|
|
202
|
+
"minimax/MiniMax-M2.7",
|
|
203
|
+
"minimax/MiniMax-M2.5",
|
|
204
|
+
"minimax/MiniMax-M2.1",
|
|
205
|
+
"minimax/MiniMax-M2",
|
|
206
|
+
"deepseek/deepseek-v4-flash",
|
|
207
|
+
"deepseek/deepseek-v4-pro",
|
|
208
|
+
"moonshot/kimi-k2.7-code",
|
|
209
|
+
"moonshot/kimi-k2.6",
|
|
210
|
+
"moonshot/kimi-k2.5",
|
|
211
|
+
"moonshot-coding/kimi-for-coding"
|
|
212
|
+
]
|
|
213
|
+
},
|
|
214
|
+
{
|
|
215
|
+
"type": "string"
|
|
216
|
+
}
|
|
217
|
+
]
|
|
218
|
+
},
|
|
219
|
+
{
|
|
220
|
+
"minItems": 1,
|
|
221
|
+
"type": "array",
|
|
222
|
+
"items": {
|
|
223
|
+
"anyOf": [
|
|
224
|
+
{
|
|
225
|
+
"type": "string",
|
|
226
|
+
"enum": [
|
|
227
|
+
"openai/gpt-5.4-nano",
|
|
228
|
+
"openai/gpt-5.4-mini",
|
|
229
|
+
"openai/gpt-5.4",
|
|
230
|
+
"openai/gpt-5.5",
|
|
231
|
+
"openai-codex/gpt-5.4-mini",
|
|
232
|
+
"openai-codex/gpt-5.4",
|
|
233
|
+
"openai-codex/gpt-5.5",
|
|
234
|
+
"anthropic/claude-haiku-4-5",
|
|
235
|
+
"anthropic/claude-sonnet-4-6",
|
|
236
|
+
"anthropic/claude-opus-4-7",
|
|
237
|
+
"anthropic/claude-opus-4-8",
|
|
238
|
+
"fireworks/accounts/fireworks/routers/kimi-k2p6-turbo",
|
|
239
|
+
"zai/glm-4.5-air",
|
|
240
|
+
"zai/glm-4.6",
|
|
241
|
+
"zai/glm-4.7",
|
|
242
|
+
"zai-coding/glm-4.5-air",
|
|
243
|
+
"zai-coding/glm-4.7",
|
|
244
|
+
"zai-coding/glm-5",
|
|
245
|
+
"zai-coding/glm-5-turbo",
|
|
246
|
+
"zai-coding/glm-5.1",
|
|
247
|
+
"xai/grok-4.3",
|
|
248
|
+
"xai/grok-4.20-0309-reasoning",
|
|
249
|
+
"xai/grok-4.20-0309-non-reasoning",
|
|
250
|
+
"xai/grok-build-0.1",
|
|
251
|
+
"minimax/MiniMax-M3",
|
|
252
|
+
"minimax/MiniMax-M2.7",
|
|
253
|
+
"minimax/MiniMax-M2.5",
|
|
254
|
+
"minimax/MiniMax-M2.1",
|
|
255
|
+
"minimax/MiniMax-M2",
|
|
256
|
+
"deepseek/deepseek-v4-flash",
|
|
257
|
+
"deepseek/deepseek-v4-pro",
|
|
258
|
+
"moonshot/kimi-k2.7-code",
|
|
259
|
+
"moonshot/kimi-k2.6",
|
|
260
|
+
"moonshot/kimi-k2.5",
|
|
261
|
+
"moonshot-coding/kimi-for-coding"
|
|
262
|
+
]
|
|
263
|
+
},
|
|
264
|
+
{
|
|
265
|
+
"type": "string"
|
|
266
|
+
}
|
|
267
|
+
]
|
|
268
|
+
}
|
|
269
|
+
}
|
|
270
|
+
]
|
|
271
|
+
},
|
|
272
|
+
"thinkingLevel": {
|
|
273
|
+
"type": "string",
|
|
274
|
+
"enum": [
|
|
275
|
+
"off",
|
|
276
|
+
"minimal",
|
|
277
|
+
"low",
|
|
278
|
+
"medium",
|
|
279
|
+
"high",
|
|
280
|
+
"xhigh"
|
|
281
|
+
]
|
|
282
|
+
}
|
|
283
|
+
},
|
|
284
|
+
"additionalProperties": false
|
|
119
285
|
}
|
|
120
286
|
]
|
|
121
287
|
}
|