typeclaw 0.49.0 → 0.51.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.
Files changed (502) hide show
  1. package/dist/types/agent/attention-escalation.d.ts +18 -0
  2. package/dist/types/agent/auth.d.ts +7 -0
  3. package/dist/types/agent/bash-sandbox-env.d.ts +15 -0
  4. package/dist/types/agent/bash-sandbox-proc.d.ts +8 -0
  5. package/dist/types/agent/bash-sandbox.d.ts +94 -0
  6. package/dist/types/agent/compaction.d.ts +8 -0
  7. package/dist/types/agent/git-nudge.d.ts +6 -0
  8. package/dist/types/agent/guard-types.d.ts +25 -0
  9. package/dist/types/agent/guards.d.ts +7 -0
  10. package/dist/types/agent/idle-compaction.d.ts +8 -0
  11. package/dist/types/agent/index.d.ts +151 -0
  12. package/dist/types/agent/live-subagents.d.ts +113 -0
  13. package/dist/types/agent/llm-replay-sanitizer.d.ts +11 -0
  14. package/dist/types/agent/loop-guard.d.ts +67 -0
  15. package/dist/types/agent/model-fallback.d.ts +29 -0
  16. package/dist/types/agent/model-overrides.d.ts +8 -0
  17. package/dist/types/agent/multimodal/index.d.ts +2 -0
  18. package/dist/types/agent/multimodal/look-at.d.ts +60 -0
  19. package/dist/types/agent/multimodal/looker.d.ts +61 -0
  20. package/dist/types/agent/multimodal/read-redirect.d.ts +6 -0
  21. package/dist/types/agent/network/response-body.d.ts +1 -0
  22. package/dist/types/agent/network/safe-http.d.ts +46 -0
  23. package/dist/types/agent/output-allowance.d.ts +4 -0
  24. package/dist/types/agent/plugin-tools.d.ts +58 -0
  25. package/dist/types/agent/proactive-next-step-nudge.d.ts +2 -0
  26. package/dist/types/agent/prompt-cache-key.d.ts +3 -0
  27. package/dist/types/agent/provider-error.d.ts +23 -0
  28. package/dist/types/agent/reload-tool.d.ts +10 -0
  29. package/dist/types/agent/restart/index.d.ts +31 -0
  30. package/dist/types/agent/restart-handoff/index.d.ts +32 -0
  31. package/dist/types/agent/restart-handoff/paths.d.ts +1 -0
  32. package/dist/types/agent/retry-same-ref.d.ts +41 -0
  33. package/dist/types/agent/reviewer-activity.d.ts +3 -0
  34. package/dist/types/agent/reviewer-bash-policy.d.ts +8 -0
  35. package/dist/types/agent/self.d.ts +1 -0
  36. package/dist/types/agent/session-meta.d.ts +28 -0
  37. package/dist/types/agent/session-origin.d.ts +65 -0
  38. package/dist/types/agent/subagent-cache-keepalive.d.ts +38 -0
  39. package/dist/types/agent/subagent-completion-reminder.d.ts +29 -0
  40. package/dist/types/agent/subagent-drain.d.ts +25 -0
  41. package/dist/types/agent/subagent-session.d.ts +3 -0
  42. package/dist/types/agent/subagents.d.ts +153 -0
  43. package/dist/types/agent/system-prompt-composition.d.ts +17 -0
  44. package/dist/types/agent/system-prompt.d.ts +7 -0
  45. package/dist/types/agent/throttle-circuit.d.ts +25 -0
  46. package/dist/types/agent/todo/continuation-policy.d.ts +54 -0
  47. package/dist/types/agent/todo/continuation-state.d.ts +11 -0
  48. package/dist/types/agent/todo/continuation-wiring.d.ts +32 -0
  49. package/dist/types/agent/todo/continuation.d.ts +21 -0
  50. package/dist/types/agent/todo/scope.d.ts +6 -0
  51. package/dist/types/agent/todo/store.d.ts +16 -0
  52. package/dist/types/agent/tool-error-remediation.d.ts +1 -0
  53. package/dist/types/agent/tool-file-safety.d.ts +78 -0
  54. package/dist/types/agent/tool-not-found-nudge.d.ts +9 -0
  55. package/dist/types/agent/tool-result-budget.d.ts +15 -0
  56. package/dist/types/agent/tools/channel-disengage.d.ts +18 -0
  57. package/dist/types/agent/tools/channel-edit.d.ts +19 -0
  58. package/dist/types/agent/tools/channel-fetch-attachment.d.ts +36 -0
  59. package/dist/types/agent/tools/channel-handoff.d.ts +13 -0
  60. package/dist/types/agent/tools/channel-history-render.d.ts +3 -0
  61. package/dist/types/agent/tools/channel-history.d.ts +25 -0
  62. package/dist/types/agent/tools/channel-log.d.ts +5 -0
  63. package/dist/types/agent/tools/channel-react.d.ts +23 -0
  64. package/dist/types/agent/tools/channel-read.d.ts +27 -0
  65. package/dist/types/agent/tools/channel-reply.d.ts +47 -0
  66. package/dist/types/agent/tools/channel-send.d.ts +42 -0
  67. package/dist/types/agent/tools/channel-session-search.d.ts +10 -0
  68. package/dist/types/agent/tools/curl-impersonate.d.ts +37 -0
  69. package/dist/types/agent/tools/ddg.d.ts +27 -0
  70. package/dist/types/agent/tools/grant-role.d.ts +25 -0
  71. package/dist/types/agent/tools/keyed-semaphore.d.ts +10 -0
  72. package/dist/types/agent/tools/post-github-review.d.ts +38 -0
  73. package/dist/types/agent/tools/restart.d.ts +25 -0
  74. package/dist/types/agent/tools/runtime-notice.d.ts +3 -0
  75. package/dist/types/agent/tools/search-retry.d.ts +16 -0
  76. package/dist/types/agent/tools/skip-response.d.ts +17 -0
  77. package/dist/types/agent/tools/spawn-subagent.d.ts +77 -0
  78. package/dist/types/agent/tools/stream-snapshot.d.ts +23 -0
  79. package/dist/types/agent/tools/subagent-access.d.ts +20 -0
  80. package/dist/types/agent/tools/subagent-cancel.d.ts +23 -0
  81. package/dist/types/agent/tools/subagent-output.d.ts +50 -0
  82. package/dist/types/agent/tools/todo/index.d.ts +14 -0
  83. package/dist/types/agent/tools/webfetch/adaptive-html.d.ts +29 -0
  84. package/dist/types/agent/tools/webfetch/fetch.d.ts +26 -0
  85. package/dist/types/agent/tools/webfetch/html-lexical.d.ts +27 -0
  86. package/dist/types/agent/tools/webfetch/index.d.ts +1 -0
  87. package/dist/types/agent/tools/webfetch/inline-style-visibility.d.ts +3 -0
  88. package/dist/types/agent/tools/webfetch/strategies/grep.d.ts +11 -0
  89. package/dist/types/agent/tools/webfetch/strategies/jq.d.ts +4 -0
  90. package/dist/types/agent/tools/webfetch/strategies/raw.d.ts +1 -0
  91. package/dist/types/agent/tools/webfetch/strategies/readability.d.ts +16 -0
  92. package/dist/types/agent/tools/webfetch/strategies/selector.d.ts +4 -0
  93. package/dist/types/agent/tools/webfetch/strategies/snapshot.d.ts +1 -0
  94. package/dist/types/agent/tools/webfetch/tool.d.ts +15 -0
  95. package/dist/types/agent/tools/webfetch/types.d.ts +32 -0
  96. package/dist/types/agent/tools/websearch.d.ts +17 -0
  97. package/dist/types/agent/tools/wikipedia.d.ts +7 -0
  98. package/dist/types/agent/tools-without-local-file-operands.d.ts +1 -0
  99. package/dist/types/agent/turn-runner.d.ts +36 -0
  100. package/dist/types/agent-messenger/config-dir.d.ts +19 -0
  101. package/dist/types/browser/dockerfile.d.ts +2 -0
  102. package/dist/types/browser/registry.d.ts +49 -0
  103. package/dist/types/bundled-plugins/bun-hygiene/policy.d.ts +18 -0
  104. package/dist/types/bundled-plugins/github-cli-auth/git-askpass.d.ts +5 -0
  105. package/dist/types/bundled-plugins/guard/keys.d.ts +6 -0
  106. package/dist/types/bundled-plugins/guard/policies/managed-config.d.ts +7 -0
  107. package/dist/types/bundled-plugins/guard/policies/memory-topics-delete.d.ts +11 -0
  108. package/dist/types/bundled-plugins/guard/policies/memory-topics-write.d.ts +7 -0
  109. package/dist/types/bundled-plugins/guard/policies/non-workspace-write.d.ts +9 -0
  110. package/dist/types/bundled-plugins/guard/policies/skill-authoring.d.ts +20 -0
  111. package/dist/types/bundled-plugins/guard/policies/uncommitted-changes.d.ts +12 -0
  112. package/dist/types/bundled-plugins/guard/policy.d.ts +11 -0
  113. package/dist/types/bundled-plugins/memory/secret-detector.d.ts +11 -0
  114. package/dist/types/bundled-plugins/memory/slug.d.ts +4 -0
  115. package/dist/types/bundled-plugins/security/permissions.d.ts +20 -0
  116. package/dist/types/bundled-plugins/security/policies/private-surface-read.d.ts +34 -0
  117. package/dist/types/bundled-plugins/security/policies/ssrf.d.ts +18 -0
  118. package/dist/types/bundled-plugins/security/policy.d.ts +4 -0
  119. package/dist/types/channels/adapter-namespace.d.ts +2 -0
  120. package/dist/types/channels/adapters/mention-hints.d.ts +12 -0
  121. package/dist/types/channels/adapters/webex-id-ref.d.ts +5 -0
  122. package/dist/types/channels/background-handoff.d.ts +56 -0
  123. package/dist/types/channels/background-obligations.d.ts +135 -0
  124. package/dist/types/channels/catch-up.d.ts +26 -0
  125. package/dist/types/channels/commands.d.ts +2 -0
  126. package/dist/types/channels/completion-claim.d.ts +20 -0
  127. package/dist/types/channels/continuation-willingness.d.ts +1 -0
  128. package/dist/types/channels/continuity-types.d.ts +75 -0
  129. package/dist/types/channels/describe-error.d.ts +1 -0
  130. package/dist/types/channels/engagement.d.ts +34 -0
  131. package/dist/types/channels/github-false-receipt.d.ts +20 -0
  132. package/dist/types/channels/github-repo.d.ts +2 -0
  133. package/dist/types/channels/github-rereview-guard.d.ts +24 -0
  134. package/dist/types/channels/github-review-check.d.ts +135 -0
  135. package/dist/types/channels/github-review-claim.d.ts +3 -0
  136. package/dist/types/channels/github-review-turn-ledger.d.ts +71 -0
  137. package/dist/types/channels/github-review-verdict-coordinator.d.ts +117 -0
  138. package/dist/types/channels/github-token-bridge.d.ts +20 -0
  139. package/dist/types/channels/github-verdict-activity.d.ts +12 -0
  140. package/dist/types/channels/inbound-journal.d.ts +272 -0
  141. package/dist/types/channels/last-alive.d.ts +3 -0
  142. package/dist/types/channels/membership-cache.d.ts +27 -0
  143. package/dist/types/channels/membership.d.ts +21 -0
  144. package/dist/types/channels/outbound-flood-filter.d.ts +7 -0
  145. package/dist/types/channels/participants.d.ts +4 -0
  146. package/dist/types/channels/persistence.d.ts +32 -0
  147. package/dist/types/channels/recovery-notice.d.ts +26 -0
  148. package/dist/types/channels/recovery-outbox.d.ts +58 -0
  149. package/dist/types/channels/router.d.ts +760 -0
  150. package/dist/types/channels/schema.d.ts +501 -0
  151. package/dist/types/channels/session-handoff.d.ts +58 -0
  152. package/dist/types/channels/session-search.d.ts +29 -0
  153. package/dist/types/channels/types.d.ts +414 -0
  154. package/dist/types/channels/waiting-reactions.d.ts +25 -0
  155. package/dist/types/cli/builtins.d.ts +2 -0
  156. package/dist/types/cli/command-meta.d.ts +9 -0
  157. package/dist/types/coding-agent/broker-body.d.ts +7 -0
  158. package/dist/types/coding-agent/broker.d.ts +22 -0
  159. package/dist/types/coding-agent/claude.d.ts +22 -0
  160. package/dist/types/coding-agent/codex.d.ts +19 -0
  161. package/dist/types/coding-agent/index.d.ts +71 -0
  162. package/dist/types/coding-agent/omo-state.d.ts +2 -0
  163. package/dist/types/coding-agent/omo-stream.d.ts +22 -0
  164. package/dist/types/coding-agent/omo.d.ts +133 -0
  165. package/dist/types/coding-agent/runner.d.ts +35 -0
  166. package/dist/types/coding-agent/tool.d.ts +27 -0
  167. package/dist/types/coding-agent/worktree.d.ts +22 -0
  168. package/dist/types/commands/index.d.ts +45 -0
  169. package/dist/types/config/config.d.ts +827 -0
  170. package/dist/types/config/index.d.ts +3 -0
  171. package/dist/types/config/model-overrides.d.ts +3 -0
  172. package/dist/types/config/providers.d.ts +1458 -0
  173. package/dist/types/config/reloadable.d.ts +9 -0
  174. package/dist/types/container/agent-operation-lock.d.ts +31 -0
  175. package/dist/types/container/build-cache.d.ts +39 -0
  176. package/dist/types/container/compose-project.d.ts +1 -0
  177. package/dist/types/container/controller.d.ts +25 -0
  178. package/dist/types/container/docker-app.d.ts +23 -0
  179. package/dist/types/container/exit-reason.d.ts +10 -0
  180. package/dist/types/container/index.d.ts +14 -0
  181. package/dist/types/container/log-archive.d.ts +68 -0
  182. package/dist/types/container/log-colors.d.ts +3 -0
  183. package/dist/types/container/log-timestamps.d.ts +9 -0
  184. package/dist/types/container/logs.d.ts +37 -0
  185. package/dist/types/container/memory-limit.d.ts +13 -0
  186. package/dist/types/container/memory-oversubscription.d.ts +20 -0
  187. package/dist/types/container/oom-events.d.ts +18 -0
  188. package/dist/types/container/port.d.ts +18 -0
  189. package/dist/types/container/require-running.d.ts +16 -0
  190. package/dist/types/container/restart.d.ts +32 -0
  191. package/dist/types/container/shared.d.ts +93 -0
  192. package/dist/types/container/shell.d.ts +35 -0
  193. package/dist/types/container/start.d.ts +145 -0
  194. package/dist/types/container/stats.d.ts +31 -0
  195. package/dist/types/container/status.d.ts +25 -0
  196. package/dist/types/container/stop.d.ts +24 -0
  197. package/dist/types/container/tool-oom-priority.d.ts +4 -0
  198. package/dist/types/container/verify-running.d.ts +49 -0
  199. package/dist/types/cron/consumer.d.ts +42 -0
  200. package/dist/types/cron/count-state.d.ts +24 -0
  201. package/dist/types/cron/index.d.ts +21 -0
  202. package/dist/types/cron/list.d.ts +33 -0
  203. package/dist/types/cron/reloadable.d.ts +11 -0
  204. package/dist/types/cron/scheduler.d.ts +51 -0
  205. package/dist/types/cron/schema.d.ts +108 -0
  206. package/dist/types/dependencies/bin-resolver.d.ts +28 -0
  207. package/dist/types/dependencies/bins.d.ts +22 -0
  208. package/dist/types/dependencies/index.d.ts +2 -0
  209. package/dist/types/eval/cell.d.ts +26 -0
  210. package/dist/types/eval/config.d.ts +19 -0
  211. package/dist/types/eval/dispatch.d.ts +7 -0
  212. package/dist/types/eval/kernel.d.ts +28 -0
  213. package/dist/types/eval/process.d.ts +23 -0
  214. package/dist/types/eval/protocol.d.ts +34 -0
  215. package/dist/types/eval/sandbox.d.ts +10 -0
  216. package/dist/types/eval/tool.d.ts +17 -0
  217. package/dist/types/eval/wire.d.ts +33 -0
  218. package/dist/types/git/bound-gc-config.d.ts +4 -0
  219. package/dist/types/git/hookless.d.ts +1 -0
  220. package/dist/types/git/reconcile-ignored.d.ts +13 -0
  221. package/dist/types/git/resolve-agent-git.d.ts +8 -0
  222. package/dist/types/git/resolve-identity.d.ts +10 -0
  223. package/dist/types/git/run.d.ts +24 -0
  224. package/dist/types/git/system-commit.d.ts +2 -0
  225. package/dist/types/hostd/client.d.ts +13 -0
  226. package/dist/types/hostd/models.d.ts +1 -0
  227. package/dist/types/hostd/paths.d.ts +17 -0
  228. package/dist/types/hostd/protocol.d.ts +93 -0
  229. package/dist/types/hostd/spawn.d.ts +17 -0
  230. package/dist/types/hostd/version.d.ts +18 -0
  231. package/dist/types/init/auto-upgrade.d.ts +41 -0
  232. package/dist/types/init/cli-version.d.ts +7 -0
  233. package/dist/types/init/dockerfile.d.ts +34 -0
  234. package/dist/types/init/ensure-deps.d.ts +17 -0
  235. package/dist/types/init/env-file.d.ts +3 -0
  236. package/dist/types/init/gitignore.d.ts +5 -0
  237. package/dist/types/init/local-source-stamp.d.ts +3 -0
  238. package/dist/types/init/packagejson.d.ts +7 -0
  239. package/dist/types/init/paths.d.ts +3 -0
  240. package/dist/types/init/reconcile-plugin-deps.d.ts +13 -0
  241. package/dist/types/init/run-bun-install.d.ts +16 -0
  242. package/dist/types/init/windows-dev-link.d.ts +8 -0
  243. package/dist/types/mcp/catalog.d.ts +7 -0
  244. package/dist/types/mcp/client.d.ts +58 -0
  245. package/dist/types/mcp/manager.d.ts +56 -0
  246. package/dist/types/mcp/tools.d.ts +23 -0
  247. package/dist/types/models/embedding-model.d.ts +20 -0
  248. package/dist/types/models/transformers-version.d.ts +1 -0
  249. package/dist/types/network/internal-destinations.d.ts +29 -0
  250. package/dist/types/operations/classify-tool-outcome.d.ts +35 -0
  251. package/dist/types/operations/incidents.d.ts +47 -0
  252. package/dist/types/operations/index.d.ts +3 -0
  253. package/dist/types/operations/remediations.d.ts +25 -0
  254. package/dist/types/path-safety/real-intended-path.d.ts +9 -0
  255. package/dist/types/permissions/builtins.d.ts +25 -0
  256. package/dist/types/permissions/grant.d.ts +19 -0
  257. package/dist/types/permissions/index.d.ts +6 -0
  258. package/dist/types/permissions/match-rule.d.ts +28 -0
  259. package/dist/types/permissions/permissions.d.ts +42 -0
  260. package/dist/types/permissions/resolve.d.ts +25 -0
  261. package/dist/types/permissions/schema.d.ts +14 -0
  262. package/dist/types/plugin/context.d.ts +20 -0
  263. package/dist/types/plugin/core-tool-names.d.ts +4 -0
  264. package/dist/types/plugin/define.d.ts +46 -0
  265. package/dist/types/plugin/hooks.d.ts +52 -0
  266. package/dist/types/plugin/index.d.ts +11 -0
  267. package/dist/types/plugin/load-skill.d.ts +14 -0
  268. package/dist/types/plugin/loader.d.ts +25 -0
  269. package/dist/types/plugin/manager.d.ts +42 -0
  270. package/dist/types/plugin/registry.d.ts +73 -0
  271. package/dist/types/plugin/skills.d.ts +11 -0
  272. package/dist/types/plugin/types.d.ts +336 -0
  273. package/dist/types/plugin/zod-introspect.d.ts +11 -0
  274. package/dist/types/reload/client.d.ts +11 -0
  275. package/dist/types/reload/docker-exec-client.d.ts +11 -0
  276. package/dist/types/reload/format.d.ts +2 -0
  277. package/dist/types/reload/index.d.ts +6 -0
  278. package/dist/types/reload/recover.d.ts +22 -0
  279. package/dist/types/reload/registry.d.ts +10 -0
  280. package/dist/types/reload/types.d.ts +25 -0
  281. package/dist/types/role-claim/client.d.ts +20 -0
  282. package/dist/types/role-claim/code.d.ts +4 -0
  283. package/dist/types/role-claim/controller.d.ts +59 -0
  284. package/dist/types/role-claim/index.d.ts +6 -0
  285. package/dist/types/role-claim/match-rule.d.ts +9 -0
  286. package/dist/types/role-claim/pending.d.ts +35 -0
  287. package/dist/types/role-claim/reload-after-claim.d.ts +16 -0
  288. package/dist/types/run/llm-fetch-observer.d.ts +50 -0
  289. package/dist/types/sandbox/availability.d.ts +21 -0
  290. package/dist/types/sandbox/build.d.ts +7 -0
  291. package/dist/types/sandbox/canonical-secrets.d.ts +8 -0
  292. package/dist/types/sandbox/coding-agent.d.ts +20 -0
  293. package/dist/types/sandbox/dependency-bins.d.ts +19 -0
  294. package/dist/types/sandbox/dev-source.d.ts +4 -0
  295. package/dist/types/sandbox/env-exposure.d.ts +3 -0
  296. package/dist/types/sandbox/errors.d.ts +20 -0
  297. package/dist/types/sandbox/hidden-paths.d.ts +11 -0
  298. package/dist/types/sandbox/index.d.ts +14 -0
  299. package/dist/types/sandbox/package-install.d.ts +1 -0
  300. package/dist/types/sandbox/policy.d.ts +71 -0
  301. package/dist/types/sandbox/privileged-runtime.d.ts +13 -0
  302. package/dist/types/sandbox/quote.d.ts +2 -0
  303. package/dist/types/sandbox/runtime-private.d.ts +1 -0
  304. package/dist/types/sandbox/session-tmp.d.ts +6 -0
  305. package/dist/types/sandbox/symlinks.d.ts +6 -0
  306. package/dist/types/sandbox/writable-zones.d.ts +15 -0
  307. package/dist/types/secrets/coding-agent-auth.d.ts +25 -0
  308. package/dist/types/secrets/defaults.d.ts +21 -0
  309. package/dist/types/secrets/export-github-cli-store.d.ts +22 -0
  310. package/dist/types/secrets/hydrate.d.ts +7 -0
  311. package/dist/types/secrets/index.d.ts +7 -0
  312. package/dist/types/secrets/provision-github-cli-store.d.ts +45 -0
  313. package/dist/types/secrets/refresh-provider-oauth.d.ts +22 -0
  314. package/dist/types/secrets/resolve.d.ts +14 -0
  315. package/dist/types/secrets/schema.d.ts +840 -0
  316. package/dist/types/secrets/storage.d.ts +56 -0
  317. package/dist/types/shared/host-locale.d.ts +1 -0
  318. package/dist/types/shared/index.d.ts +5 -0
  319. package/dist/types/shared/local-time.d.ts +4 -0
  320. package/dist/types/shared/platform.d.ts +2 -0
  321. package/dist/types/shared/protocol.d.ts +424 -0
  322. package/dist/types/shared/style-text.d.ts +3 -0
  323. package/dist/types/shared/wsl.d.ts +17 -0
  324. package/dist/types/stream/broker.d.ts +2 -0
  325. package/dist/types/stream/index.d.ts +2 -0
  326. package/dist/types/stream/types.d.ts +71 -0
  327. package/package.json +13 -6
  328. package/scripts/build-plugin-types.ts +105 -0
  329. package/scripts/check-plugin-sdk.ts +111 -0
  330. package/scripts/require-parallel.ts +5 -32
  331. package/src/agent/bash-sandbox-env.ts +104 -0
  332. package/src/agent/bash-sandbox-proc.ts +70 -0
  333. package/src/agent/bash-sandbox.ts +225 -0
  334. package/src/agent/compaction.ts +22 -10
  335. package/src/agent/guard-types.ts +3 -0
  336. package/src/agent/guards.ts +4 -0
  337. package/src/agent/idle-compaction.ts +178 -0
  338. package/src/agent/index.ts +139 -172
  339. package/src/agent/live-subagents.ts +19 -0
  340. package/src/agent/multimodal/look-at.ts +22 -9
  341. package/src/agent/output-allowance.ts +7 -0
  342. package/src/agent/plugin-tools.ts +39 -377
  343. package/src/agent/reviewer-bash-policy.ts +41 -1
  344. package/src/agent/session-origin.ts +28 -11
  345. package/src/agent/subagent-cache-keepalive.ts +198 -0
  346. package/src/agent/subagent-completion-reminder.ts +2 -2
  347. package/src/agent/subagent-session.ts +6 -0
  348. package/src/agent/subagents.ts +46 -8
  349. package/src/agent/system-prompt-composition.ts +141 -0
  350. package/src/agent/system-prompt.ts +5 -5
  351. package/src/agent/todo/scope.ts +1 -1
  352. package/src/agent/tool-file-safety.ts +6 -1
  353. package/src/agent/tools/channel-edit.ts +20 -10
  354. package/src/agent/tools/channel-fetch-attachment.ts +12 -5
  355. package/src/agent/tools/channel-handoff.ts +72 -0
  356. package/src/agent/tools/channel-read.ts +57 -10
  357. package/src/agent/tools/channel-reply.ts +33 -26
  358. package/src/agent/tools/channel-send.ts +21 -13
  359. package/src/agent/tools/channel-session-search.ts +35 -0
  360. package/src/agent/tools/curl-impersonate.ts +11 -4
  361. package/src/agent/tools/ddg.ts +84 -16
  362. package/src/agent/tools/spawn-subagent.ts +27 -11
  363. package/src/agent/tools/stream-snapshot.ts +15 -2
  364. package/src/agent/tools/subagent-access.ts +11 -4
  365. package/src/agent/tools-without-local-file-operands.ts +4 -0
  366. package/src/browser/bsk-shim.mjs +74 -0
  367. package/src/browser/dockerfile.ts +84 -0
  368. package/src/browser/egress.ts +104 -0
  369. package/src/browser/fill-secret.ts +307 -0
  370. package/src/browser/managed-browser.ts +205 -0
  371. package/src/browser/registry.ts +110 -0
  372. package/src/browser/relay.ts +231 -0
  373. package/src/browser/sandbox-entry.ts +167 -0
  374. package/src/bundled-plugins/agent-browser/index.ts +2 -0
  375. package/src/bundled-plugins/browser-agent/browser-agent.ts +89 -0
  376. package/src/bundled-plugins/browser-agent/index.ts +12 -0
  377. package/src/bundled-plugins/doc-render/index.ts +0 -10
  378. package/src/bundled-plugins/doc-render/render.ts +83 -111
  379. package/src/bundled-plugins/doc-render/skills/typeclaw-render-pdf/SKILL.md +152 -257
  380. package/src/bundled-plugins/explorer/explorer.ts +1 -1
  381. package/src/bundled-plugins/github-cli-auth/gh-command.ts +4 -0
  382. package/src/bundled-plugins/github-cli-auth/gh-review-detect.ts +40 -16
  383. package/src/bundled-plugins/github-cli-auth/git-auth-diagnostic.ts +95 -0
  384. package/src/bundled-plugins/github-cli-auth/graphql-auth-nudge.ts +12 -7
  385. package/src/bundled-plugins/github-cli-auth/index.ts +85 -60
  386. package/src/bundled-plugins/managed-browser/index.ts +179 -0
  387. package/src/bundled-plugins/managed-browser/skills/browser-use/browser-use/SKILL.md +27 -0
  388. package/src/bundled-plugins/managed-browser/skills/browserskill/browserskill/SKILL.md +28 -0
  389. package/src/bundled-plugins/managed-browser/skills/omowright/omowright/SKILL.md +40 -0
  390. package/src/bundled-plugins/memory/dreaming.ts +4 -1
  391. package/src/bundled-plugins/memory/load-memory.ts +2 -4
  392. package/src/bundled-plugins/memory/memory-logger.ts +74 -2
  393. package/src/bundled-plugins/memory/transcript-preload.ts +103 -0
  394. package/src/bundled-plugins/memory/vector/hybrid.ts +25 -14
  395. package/src/bundled-plugins/operator/operator.ts +1 -1
  396. package/src/bundled-plugins/qa/index.ts +11 -0
  397. package/src/bundled-plugins/qa/qa.ts +160 -0
  398. package/src/bundled-plugins/qa/skills/qa-cli.ts +50 -0
  399. package/src/bundled-plugins/qa/skills/qa-general.ts +30 -0
  400. package/src/bundled-plugins/qa/skills/qa-http.ts +39 -0
  401. package/src/bundled-plugins/qa/skills/qa-pr.ts +51 -0
  402. package/src/bundled-plugins/qa/skills/qa-web.ts +49 -0
  403. package/src/bundled-plugins/security/index.ts +53 -34
  404. package/src/bundled-plugins/security/policies/outbound-secret-scan.ts +1 -0
  405. package/src/bundled-plugins/security/policies/private-surface-read.ts +166 -201
  406. package/src/channels/adapter-namespace.ts +13 -0
  407. package/src/channels/adapters/discord-bot-reference.ts +5 -4
  408. package/src/channels/adapters/discord-bot.ts +98 -5
  409. package/src/channels/adapters/discord-classify.ts +8 -3
  410. package/src/channels/adapters/discord.ts +29 -0
  411. package/src/channels/adapters/github/index.ts +16 -0
  412. package/src/channels/adapters/github/last-alive.ts +4 -16
  413. package/src/channels/adapters/slack-attachment-download.ts +14 -3
  414. package/src/channels/adapters/slack-bot-author-resolver.ts +4 -3
  415. package/src/channels/adapters/slack-bot-channel-resolver.ts +9 -6
  416. package/src/channels/adapters/slack-bot-classify.ts +1 -0
  417. package/src/channels/adapters/slack-bot-slash-commands.ts +3 -1
  418. package/src/channels/adapters/slack-bot.ts +299 -67
  419. package/src/channels/adapters/slack-classify.ts +1 -0
  420. package/src/channels/catch-up.ts +137 -0
  421. package/src/channels/continuation-willingness.ts +2 -2
  422. package/src/channels/continuity-types.ts +1 -0
  423. package/src/channels/engagement.ts +17 -1
  424. package/src/channels/github-false-receipt.ts +3 -3
  425. package/src/channels/github-rereview-guard.ts +9 -5
  426. package/src/channels/github-review-check.ts +5 -1
  427. package/src/channels/github-review-verdict-coordinator.ts +68 -2
  428. package/src/channels/github-token-bridge.ts +24 -0
  429. package/src/channels/last-alive.ts +34 -0
  430. package/src/channels/manager.ts +8 -1
  431. package/src/channels/router.ts +515 -243
  432. package/src/channels/session-handoff.fixture.ts +144 -0
  433. package/src/channels/session-handoff.ts +175 -0
  434. package/src/channels/session-search.ts +71 -0
  435. package/src/channels/subagent-completion-bridge.ts +3 -2
  436. package/src/channels/types.ts +12 -2
  437. package/src/cli/channel.ts +2 -3
  438. package/src/cli/hostd.ts +3 -0
  439. package/src/cli/init.ts +2 -3
  440. package/src/cli/model.ts +132 -3
  441. package/src/coding-agent/index.ts +7 -1
  442. package/src/coding-agent/omo-stream.ts +40 -0
  443. package/src/coding-agent/runner.ts +30 -8
  444. package/src/config/config.ts +126 -22
  445. package/src/config/model-overrides.ts +59 -0
  446. package/src/config/models-mutation.ts +185 -2
  447. package/src/config/providers-mutation.ts +12 -4
  448. package/src/config/providers.ts +69 -4
  449. package/src/container/start.ts +132 -5
  450. package/src/doctor/checks.ts +33 -22
  451. package/src/doctor/index.ts +48 -12
  452. package/src/doctor/operational-incidents.ts +16 -1
  453. package/src/doctor/plugin-bridge.ts +14 -1
  454. package/src/doctor/stage.ts +14 -0
  455. package/src/doctor/types.ts +6 -0
  456. package/src/eval/cell.ts +93 -0
  457. package/src/eval/config.ts +32 -0
  458. package/src/eval/dispatch.ts +67 -0
  459. package/src/eval/entry.ts +261 -0
  460. package/src/eval/kernel.ts +154 -0
  461. package/src/eval/process.ts +113 -0
  462. package/src/eval/protocol.ts +26 -0
  463. package/src/eval/redeclare.ts +174 -0
  464. package/src/eval/sandbox.ts +114 -0
  465. package/src/eval/tool.ts +98 -0
  466. package/src/eval/wire.ts +93 -0
  467. package/src/hostd/daemon.ts +13 -1
  468. package/src/init/auto-upgrade.ts +7 -1
  469. package/src/init/dockerfile.ts +57 -12
  470. package/src/init/index.ts +4 -3
  471. package/src/init/local-source-stamp.ts +68 -0
  472. package/src/init/models-dev.ts +4 -0
  473. package/src/init/validate-api-key.ts +3 -0
  474. package/src/operations/classify-tool-outcome.ts +1 -1
  475. package/src/permissions/builtins.ts +7 -0
  476. package/src/permissions/permissions.ts +18 -9
  477. package/src/permissions/resolve.ts +7 -1
  478. package/src/plugin/context.ts +2 -0
  479. package/src/plugin/core-tool-names.ts +6 -1
  480. package/src/plugin/hooks.ts +137 -0
  481. package/src/plugin/index.ts +6 -0
  482. package/src/plugin/manager.ts +4 -0
  483. package/src/plugin/types.ts +60 -0
  484. package/src/run/bundled-plugins.ts +6 -0
  485. package/src/run/index.ts +24 -14
  486. package/src/run/llm-fetch-observer.ts +12 -15
  487. package/src/sandbox/canonical-secrets.ts +4 -0
  488. package/src/sandbox/dev-source.ts +26 -0
  489. package/src/sandbox/env-exposure.ts +20 -0
  490. package/src/sandbox/hidden-paths.ts +16 -2
  491. package/src/secrets/storage.ts +13 -0
  492. package/src/server/index.ts +46 -11
  493. package/src/skills/typeclaw-channel-github/SKILL.md +8 -8
  494. package/src/skills/typeclaw-config/SKILL.md +57 -5
  495. package/src/skills/typeclaw-config/references/dockerfile.md +2 -2
  496. package/src/skills/typeclaw-github-contributing/SKILL.md +1 -1
  497. package/src/skills/typeclaw-monorepo/SKILL.md +1 -1
  498. package/src/skills/typeclaw-permissions/SKILL.md +7 -7
  499. package/src/skills/typeclaw-troubleshooting/SKILL.md +12 -1
  500. package/typeclaw.schema.json +488 -5
  501. package/src/bundled-plugins/doc-render/templates/lib.typ +0 -339
  502. package/src/bundled-plugins/github-cli-auth/gh-store.ts +0 -733
@@ -0,0 +1,1458 @@
1
+ import type { ThinkingLevel } from '@earendil-works/pi-agent-core';
2
+ export type AuthMethod = 'api-key' | 'oauth';
3
+ export declare const KNOWN_PROVIDERS: {
4
+ readonly openai: {
5
+ readonly id: "openai";
6
+ readonly name: "OpenAI";
7
+ readonly baseUrl: "https://api.openai.com/v1";
8
+ readonly auth: readonly ["api-key"];
9
+ readonly apiKeyEnv: "OPENAI_API_KEY";
10
+ readonly oauthProviderId: null;
11
+ readonly models: {
12
+ readonly 'gpt-5.4-nano': {
13
+ readonly id: "gpt-5.4-nano";
14
+ readonly name: "GPT-5.4 nano";
15
+ readonly api: "openai-responses";
16
+ readonly provider: "openai";
17
+ readonly baseUrl: "https://api.openai.com/v1";
18
+ readonly reasoning: true;
19
+ readonly input: ["text", "image"];
20
+ readonly cost: {
21
+ readonly input: 0.2;
22
+ readonly output: 1.25;
23
+ readonly cacheRead: 0.02;
24
+ readonly cacheWrite: 0;
25
+ };
26
+ readonly contextWindow: 400000;
27
+ readonly maxTokens: 128000;
28
+ };
29
+ readonly 'gpt-5.4-mini': {
30
+ readonly id: "gpt-5.4-mini";
31
+ readonly name: "GPT-5.4 mini";
32
+ readonly api: "openai-responses";
33
+ readonly provider: "openai";
34
+ readonly baseUrl: "https://api.openai.com/v1";
35
+ readonly reasoning: true;
36
+ readonly input: ["text", "image"];
37
+ readonly cost: {
38
+ readonly input: 0.75;
39
+ readonly output: 4.5;
40
+ readonly cacheRead: 0.075;
41
+ readonly cacheWrite: 0;
42
+ };
43
+ readonly contextWindow: 400000;
44
+ readonly maxTokens: 128000;
45
+ };
46
+ readonly 'gpt-5.4': {
47
+ readonly id: "gpt-5.4";
48
+ readonly name: "GPT-5.4";
49
+ readonly api: "openai-responses";
50
+ readonly provider: "openai";
51
+ readonly baseUrl: "https://api.openai.com/v1";
52
+ readonly reasoning: true;
53
+ readonly input: ["text", "image"];
54
+ readonly cost: {
55
+ readonly input: 2.5;
56
+ readonly output: 15;
57
+ readonly cacheRead: 0.25;
58
+ readonly cacheWrite: 0;
59
+ };
60
+ readonly contextWindow: 1050000;
61
+ readonly maxTokens: 128000;
62
+ };
63
+ readonly 'gpt-5.5': {
64
+ readonly id: "gpt-5.5";
65
+ readonly name: "GPT-5.5";
66
+ readonly api: "openai-responses";
67
+ readonly provider: "openai";
68
+ readonly baseUrl: "https://api.openai.com/v1";
69
+ readonly reasoning: true;
70
+ readonly input: ["text", "image"];
71
+ readonly cost: {
72
+ readonly input: 5;
73
+ readonly output: 30;
74
+ readonly cacheRead: 0.5;
75
+ readonly cacheWrite: 0;
76
+ };
77
+ readonly contextWindow: 1050000;
78
+ readonly maxTokens: 128000;
79
+ };
80
+ readonly 'gpt-6-sol': {
81
+ readonly id: "gpt-6-sol";
82
+ readonly name: "GPT-6 Sol";
83
+ readonly api: "openai-responses";
84
+ readonly provider: "openai";
85
+ readonly baseUrl: "https://api.openai.com/v1";
86
+ readonly reasoning: true;
87
+ readonly input: ["text", "image"];
88
+ readonly cost: {
89
+ readonly input: 2;
90
+ readonly output: 10;
91
+ readonly cacheRead: 0.2;
92
+ readonly cacheWrite: 2.5;
93
+ };
94
+ readonly contextWindow: 1050000;
95
+ readonly maxTokens: 128000;
96
+ readonly thinkingLevelMap: {
97
+ readonly off: "none";
98
+ readonly minimal: null;
99
+ readonly low: "low";
100
+ readonly medium: "medium";
101
+ readonly high: "high";
102
+ readonly xhigh: "xhigh";
103
+ readonly max: "max";
104
+ };
105
+ readonly compat: {
106
+ readonly supportsStrictMode: true;
107
+ readonly supportsOpenAIGrammarTools: true;
108
+ readonly supportsAdditionalTools: true;
109
+ readonly supportsToolSearch: true;
110
+ readonly supportsMidConvoSystemMessages: true;
111
+ readonly supportsMidConvoEffort: true;
112
+ readonly supportsExplicitPromptCacheMode: true;
113
+ };
114
+ };
115
+ readonly 'gpt-6-luna': {
116
+ readonly id: "gpt-6-luna";
117
+ readonly name: "GPT-6 Luna";
118
+ readonly api: "openai-responses";
119
+ readonly provider: "openai";
120
+ readonly baseUrl: "https://api.openai.com/v1";
121
+ readonly reasoning: true;
122
+ readonly input: ["text", "image"];
123
+ readonly cost: {
124
+ readonly input: 0.1;
125
+ readonly output: 0.5;
126
+ readonly cacheRead: 0.01;
127
+ readonly cacheWrite: 0.125;
128
+ };
129
+ readonly contextWindow: 1050000;
130
+ readonly maxTokens: 128000;
131
+ readonly thinkingLevelMap: {
132
+ readonly off: "none";
133
+ readonly minimal: null;
134
+ readonly low: "low";
135
+ readonly medium: "medium";
136
+ readonly high: "high";
137
+ readonly xhigh: "xhigh";
138
+ readonly max: "max";
139
+ };
140
+ readonly compat: {
141
+ readonly supportsStrictMode: true;
142
+ readonly supportsOpenAIGrammarTools: true;
143
+ readonly supportsAdditionalTools: true;
144
+ readonly supportsToolSearch: true;
145
+ readonly supportsMidConvoSystemMessages: true;
146
+ readonly supportsMidConvoEffort: true;
147
+ readonly supportsExplicitPromptCacheMode: true;
148
+ };
149
+ };
150
+ };
151
+ };
152
+ readonly 'openai-codex': {
153
+ readonly id: "openai-codex";
154
+ readonly name: "OpenAI Codex (ChatGPT Plus/Pro)";
155
+ readonly baseUrl: "https://chatgpt.com/backend-api";
156
+ readonly auth: readonly ["oauth"];
157
+ readonly apiKeyEnv: null;
158
+ readonly oauthProviderId: "openai-codex";
159
+ readonly models: {
160
+ readonly 'gpt-5.4-mini': {
161
+ readonly id: "gpt-5.4-mini";
162
+ readonly name: "GPT-5.4 mini";
163
+ readonly api: "openai-codex-responses";
164
+ readonly provider: "openai-codex";
165
+ readonly baseUrl: "https://chatgpt.com/backend-api";
166
+ readonly reasoning: true;
167
+ readonly input: ["text", "image"];
168
+ readonly cost: {
169
+ readonly input: 0.75;
170
+ readonly output: 4.5;
171
+ readonly cacheRead: 0.075;
172
+ readonly cacheWrite: 0;
173
+ };
174
+ readonly contextWindow: 272000;
175
+ readonly maxTokens: 128000;
176
+ };
177
+ readonly 'gpt-5.4': {
178
+ readonly id: "gpt-5.4";
179
+ readonly name: "GPT-5.4";
180
+ readonly api: "openai-codex-responses";
181
+ readonly provider: "openai-codex";
182
+ readonly baseUrl: "https://chatgpt.com/backend-api";
183
+ readonly reasoning: true;
184
+ readonly input: ["text", "image"];
185
+ readonly cost: {
186
+ readonly input: 2.5;
187
+ readonly output: 15;
188
+ readonly cacheRead: 0.25;
189
+ readonly cacheWrite: 0;
190
+ };
191
+ readonly contextWindow: 272000;
192
+ readonly maxTokens: 128000;
193
+ };
194
+ readonly 'gpt-5.5': {
195
+ readonly id: "gpt-5.5";
196
+ readonly name: "GPT-5.5";
197
+ readonly api: "openai-codex-responses";
198
+ readonly provider: "openai-codex";
199
+ readonly baseUrl: "https://chatgpt.com/backend-api";
200
+ readonly reasoning: true;
201
+ readonly input: ["text", "image"];
202
+ readonly cost: {
203
+ readonly input: 5;
204
+ readonly output: 30;
205
+ readonly cacheRead: 0.5;
206
+ readonly cacheWrite: 0;
207
+ };
208
+ readonly contextWindow: 272000;
209
+ readonly maxTokens: 128000;
210
+ };
211
+ readonly 'gpt-6-sol': {
212
+ readonly id: "gpt-6-sol";
213
+ readonly name: "GPT-6 Sol";
214
+ readonly api: "openai-codex-responses";
215
+ readonly provider: "openai-codex";
216
+ readonly baseUrl: "https://chatgpt.com/backend-api";
217
+ readonly reasoning: true;
218
+ readonly input: ["text", "image"];
219
+ readonly cost: {
220
+ readonly input: 2;
221
+ readonly output: 10;
222
+ readonly cacheRead: 0.2;
223
+ readonly cacheWrite: 2.5;
224
+ };
225
+ readonly contextWindow: 272000;
226
+ readonly maxTokens: 128000;
227
+ readonly thinkingLevelMap: {
228
+ readonly off: "none";
229
+ readonly minimal: "low";
230
+ readonly low: "low";
231
+ readonly medium: "medium";
232
+ readonly high: "high";
233
+ readonly xhigh: "xhigh";
234
+ readonly max: "max";
235
+ };
236
+ readonly compat: {
237
+ readonly supportsOpenAIGrammarTools: true;
238
+ readonly supportsAdditionalTools: true;
239
+ readonly supportsToolSearch: true;
240
+ readonly supportsMidConvoSystemMessages: true;
241
+ };
242
+ };
243
+ readonly 'gpt-6-luna': {
244
+ readonly id: "gpt-6-luna";
245
+ readonly name: "GPT-6 Luna";
246
+ readonly api: "openai-codex-responses";
247
+ readonly provider: "openai-codex";
248
+ readonly baseUrl: "https://chatgpt.com/backend-api";
249
+ readonly reasoning: true;
250
+ readonly input: ["text", "image"];
251
+ readonly cost: {
252
+ readonly input: 0.1;
253
+ readonly output: 0.5;
254
+ readonly cacheRead: 0.01;
255
+ readonly cacheWrite: 0.125;
256
+ };
257
+ readonly contextWindow: 272000;
258
+ readonly maxTokens: 128000;
259
+ readonly thinkingLevelMap: {
260
+ readonly off: "none";
261
+ readonly minimal: "low";
262
+ readonly low: "low";
263
+ readonly medium: "medium";
264
+ readonly high: "high";
265
+ readonly xhigh: "xhigh";
266
+ readonly max: "max";
267
+ };
268
+ readonly compat: {
269
+ readonly supportsOpenAIGrammarTools: true;
270
+ readonly supportsAdditionalTools: true;
271
+ readonly supportsToolSearch: true;
272
+ readonly supportsMidConvoSystemMessages: true;
273
+ };
274
+ };
275
+ };
276
+ };
277
+ readonly anthropic: {
278
+ readonly id: "anthropic";
279
+ readonly name: "Anthropic";
280
+ readonly baseUrl: "https://api.anthropic.com";
281
+ readonly auth: readonly ["api-key", "oauth"];
282
+ readonly apiKeyEnv: "ANTHROPIC_API_KEY";
283
+ readonly oauthProviderId: "anthropic";
284
+ readonly models: {
285
+ readonly 'claude-haiku-4-5': {
286
+ readonly id: "claude-haiku-4-5";
287
+ readonly name: "Claude Haiku 4.5";
288
+ readonly api: "anthropic-messages";
289
+ readonly provider: "anthropic";
290
+ readonly baseUrl: "https://api.anthropic.com";
291
+ readonly reasoning: true;
292
+ readonly input: ["text", "image"];
293
+ readonly cost: {
294
+ readonly input: 1;
295
+ readonly output: 5;
296
+ readonly cacheRead: 0.1;
297
+ readonly cacheWrite: 1.25;
298
+ };
299
+ readonly contextWindow: 200000;
300
+ readonly maxTokens: 64000;
301
+ };
302
+ readonly 'claude-sonnet-4-6': {
303
+ readonly id: "claude-sonnet-4-6";
304
+ readonly name: "Claude Sonnet 4.6";
305
+ readonly api: "anthropic-messages";
306
+ readonly provider: "anthropic";
307
+ readonly baseUrl: "https://api.anthropic.com";
308
+ readonly reasoning: true;
309
+ readonly input: ["text", "image"];
310
+ readonly cost: {
311
+ readonly input: 3;
312
+ readonly output: 15;
313
+ readonly cacheRead: 0.3;
314
+ readonly cacheWrite: 3.75;
315
+ };
316
+ readonly contextWindow: 1000000;
317
+ readonly maxTokens: 64000;
318
+ readonly thinkingLevelMap: {
319
+ readonly max: "max";
320
+ };
321
+ readonly compat: {
322
+ readonly forceAdaptiveThinking: true;
323
+ };
324
+ };
325
+ readonly 'claude-sonnet-5': {
326
+ readonly id: "claude-sonnet-5";
327
+ readonly name: "Claude Sonnet 5";
328
+ readonly api: "anthropic-messages";
329
+ readonly provider: "anthropic";
330
+ readonly baseUrl: "https://api.anthropic.com";
331
+ readonly reasoning: true;
332
+ readonly input: ["text", "image"];
333
+ readonly cost: {
334
+ readonly input: 3;
335
+ readonly output: 15;
336
+ readonly cacheRead: 0.3;
337
+ readonly cacheWrite: 3.75;
338
+ };
339
+ readonly contextWindow: 1000000;
340
+ readonly maxTokens: 128000;
341
+ readonly thinkingLevelMap: {
342
+ readonly xhigh: "xhigh";
343
+ readonly max: "max";
344
+ };
345
+ readonly compat: {
346
+ readonly forceAdaptiveThinking: true;
347
+ };
348
+ };
349
+ readonly 'claude-opus-4-7': {
350
+ readonly id: "claude-opus-4-7";
351
+ readonly name: "Claude Opus 4.7";
352
+ readonly api: "anthropic-messages";
353
+ readonly provider: "anthropic";
354
+ readonly baseUrl: "https://api.anthropic.com";
355
+ readonly reasoning: true;
356
+ readonly input: ["text", "image"];
357
+ readonly cost: {
358
+ readonly input: 5;
359
+ readonly output: 25;
360
+ readonly cacheRead: 0.5;
361
+ readonly cacheWrite: 6.25;
362
+ };
363
+ readonly contextWindow: 1000000;
364
+ readonly maxTokens: 128000;
365
+ readonly thinkingLevelMap: {
366
+ readonly xhigh: "xhigh";
367
+ readonly max: "max";
368
+ };
369
+ readonly compat: {
370
+ readonly forceAdaptiveThinking: true;
371
+ readonly supportsTemperature: false;
372
+ };
373
+ };
374
+ readonly 'claude-opus-4-8': {
375
+ readonly id: "claude-opus-4-8";
376
+ readonly name: "Claude Opus 4.8";
377
+ readonly api: "anthropic-messages";
378
+ readonly provider: "anthropic";
379
+ readonly baseUrl: "https://api.anthropic.com";
380
+ readonly reasoning: true;
381
+ readonly input: ["text", "image"];
382
+ readonly cost: {
383
+ readonly input: 5;
384
+ readonly output: 25;
385
+ readonly cacheRead: 0.5;
386
+ readonly cacheWrite: 6.25;
387
+ };
388
+ readonly contextWindow: 1000000;
389
+ readonly maxTokens: 128000;
390
+ readonly thinkingLevelMap: {
391
+ readonly xhigh: "xhigh";
392
+ readonly max: "max";
393
+ };
394
+ readonly compat: {
395
+ readonly supportsMidConvoSystemMessages: true;
396
+ readonly supportsMidConvoToolChanges: true;
397
+ readonly forceAdaptiveThinking: true;
398
+ readonly supportsTemperature: false;
399
+ };
400
+ };
401
+ readonly 'claude-opus-5-5': {
402
+ readonly id: "claude-opus-5-5";
403
+ readonly name: "Claude Opus 5.5";
404
+ readonly api: "anthropic-messages";
405
+ readonly provider: "anthropic";
406
+ readonly baseUrl: "https://api.anthropic.com";
407
+ readonly reasoning: true;
408
+ readonly input: ["text", "image"];
409
+ readonly cost: {
410
+ readonly input: 4;
411
+ readonly output: 20;
412
+ readonly cacheRead: 0.2;
413
+ readonly cacheWrite: 5;
414
+ };
415
+ readonly contextWindow: 1000000;
416
+ readonly maxTokens: 128000;
417
+ readonly thinkingLevelMap: {
418
+ readonly off: null;
419
+ readonly minimal: null;
420
+ readonly low: "low";
421
+ readonly medium: "medium";
422
+ readonly high: "high";
423
+ readonly xhigh: "xhigh";
424
+ readonly max: "max";
425
+ };
426
+ readonly compat: {
427
+ readonly supportsMidConvoEffort: true;
428
+ readonly supportsMidConvoSystemMessages: true;
429
+ readonly supportsMidConvoToolChanges: true;
430
+ readonly forceAdaptiveThinking: true;
431
+ readonly supportsTemperature: false;
432
+ };
433
+ };
434
+ readonly 'claude-fable-5': {
435
+ readonly id: "claude-fable-5";
436
+ readonly name: "Claude Fable 5";
437
+ readonly api: "anthropic-messages";
438
+ readonly provider: "anthropic";
439
+ readonly baseUrl: "https://api.anthropic.com";
440
+ readonly reasoning: true;
441
+ readonly input: ["text", "image"];
442
+ readonly cost: {
443
+ readonly input: 10;
444
+ readonly output: 50;
445
+ readonly cacheRead: 1;
446
+ readonly cacheWrite: 12.5;
447
+ };
448
+ readonly contextWindow: 1000000;
449
+ readonly maxTokens: 128000;
450
+ readonly thinkingLevelMap: {
451
+ readonly off: null;
452
+ readonly xhigh: "xhigh";
453
+ readonly max: "max";
454
+ };
455
+ readonly compat: {
456
+ readonly supportsMidConvoSystemMessages: true;
457
+ readonly supportsMidConvoToolChanges: true;
458
+ readonly forceAdaptiveThinking: true;
459
+ };
460
+ };
461
+ };
462
+ };
463
+ readonly fireworks: {
464
+ readonly id: "fireworks";
465
+ readonly name: "Fireworks";
466
+ readonly baseUrl: "https://api.fireworks.ai/inference/v1";
467
+ readonly auth: readonly ["api-key"];
468
+ readonly apiKeyEnv: "FIREWORKS_API_KEY";
469
+ readonly oauthProviderId: null;
470
+ readonly models: {
471
+ readonly 'accounts/fireworks/routers/kimi-k2p6-turbo': {
472
+ readonly id: "accounts/fireworks/routers/kimi-k2p6-turbo";
473
+ readonly name: "Kimi K2.6 Turbo";
474
+ readonly api: "openai-completions";
475
+ readonly provider: "fireworks";
476
+ readonly baseUrl: "https://api.fireworks.ai/inference/v1";
477
+ readonly reasoning: true;
478
+ readonly input: ["text", "image"];
479
+ readonly cost: {
480
+ readonly input: 0;
481
+ readonly output: 0;
482
+ readonly cacheRead: 0;
483
+ readonly cacheWrite: 0;
484
+ };
485
+ readonly contextWindow: 256000;
486
+ readonly maxTokens: 256000;
487
+ };
488
+ };
489
+ };
490
+ readonly zai: {
491
+ readonly id: "zai";
492
+ readonly name: "Z.AI";
493
+ readonly baseUrl: "https://api.z.ai/api/paas/v4";
494
+ readonly auth: readonly ["api-key"];
495
+ readonly apiKeyEnv: "ZAI_API_KEY";
496
+ readonly oauthProviderId: null;
497
+ readonly models: {
498
+ readonly 'glm-4.5-air': {
499
+ readonly id: "glm-4.5-air";
500
+ readonly name: "GLM-4.5-Air";
501
+ readonly api: "openai-completions";
502
+ readonly provider: "zai";
503
+ readonly baseUrl: "https://api.z.ai/api/paas/v4";
504
+ readonly reasoning: true;
505
+ readonly thinkingLevelMap: {
506
+ readonly off: null;
507
+ readonly minimal: "minimal";
508
+ readonly low: "low";
509
+ readonly medium: "medium";
510
+ readonly high: "high";
511
+ readonly xhigh: "high";
512
+ };
513
+ readonly input: ["text"];
514
+ readonly cost: {
515
+ readonly input: 0.2;
516
+ readonly output: 1.1;
517
+ readonly cacheRead: 0;
518
+ readonly cacheWrite: 0;
519
+ };
520
+ readonly contextWindow: 128000;
521
+ readonly maxTokens: 96000;
522
+ };
523
+ readonly 'glm-4.6': {
524
+ readonly id: "glm-4.6";
525
+ readonly name: "GLM-4.6";
526
+ readonly api: "openai-completions";
527
+ readonly provider: "zai";
528
+ readonly baseUrl: "https://api.z.ai/api/paas/v4";
529
+ readonly reasoning: true;
530
+ readonly thinkingLevelMap: {
531
+ readonly off: null;
532
+ readonly minimal: "minimal";
533
+ readonly low: "low";
534
+ readonly medium: "medium";
535
+ readonly high: "high";
536
+ readonly xhigh: "high";
537
+ };
538
+ readonly input: ["text"];
539
+ readonly cost: {
540
+ readonly input: 0.6;
541
+ readonly output: 2.2;
542
+ readonly cacheRead: 0;
543
+ readonly cacheWrite: 0;
544
+ };
545
+ readonly contextWindow: 200000;
546
+ readonly maxTokens: 128000;
547
+ };
548
+ readonly 'glm-4.7': {
549
+ readonly id: "glm-4.7";
550
+ readonly name: "GLM-4.7";
551
+ readonly api: "openai-completions";
552
+ readonly provider: "zai";
553
+ readonly baseUrl: "https://api.z.ai/api/paas/v4";
554
+ readonly reasoning: true;
555
+ readonly thinkingLevelMap: {
556
+ readonly off: null;
557
+ readonly minimal: "minimal";
558
+ readonly low: "low";
559
+ readonly medium: "medium";
560
+ readonly high: "high";
561
+ readonly xhigh: "high";
562
+ };
563
+ readonly input: ["text"];
564
+ readonly cost: {
565
+ readonly input: 0.6;
566
+ readonly output: 2.2;
567
+ readonly cacheRead: 0;
568
+ readonly cacheWrite: 0;
569
+ };
570
+ readonly contextWindow: 200000;
571
+ readonly maxTokens: 128000;
572
+ };
573
+ };
574
+ };
575
+ readonly 'zai-coding': {
576
+ readonly id: "zai-coding";
577
+ readonly name: "Z.AI (GLM Coding Plan)";
578
+ readonly baseUrl: "https://api.z.ai/api/coding/paas/v4";
579
+ readonly auth: readonly ["api-key"];
580
+ readonly apiKeyEnv: "ZAI_CODING_API_KEY";
581
+ readonly oauthProviderId: null;
582
+ readonly models: {
583
+ readonly 'glm-4.5-air': {
584
+ readonly id: "glm-4.5-air";
585
+ readonly name: "GLM-4.5-Air";
586
+ readonly api: "openai-completions";
587
+ readonly provider: "zai-coding";
588
+ readonly baseUrl: "https://api.z.ai/api/coding/paas/v4";
589
+ readonly reasoning: true;
590
+ readonly thinkingLevelMap: {
591
+ readonly off: null;
592
+ readonly minimal: "minimal";
593
+ readonly low: "low";
594
+ readonly medium: "medium";
595
+ readonly high: "high";
596
+ readonly xhigh: "high";
597
+ };
598
+ readonly input: ["text"];
599
+ readonly cost: {
600
+ readonly input: 0.2;
601
+ readonly output: 1.1;
602
+ readonly cacheRead: 0;
603
+ readonly cacheWrite: 0;
604
+ };
605
+ readonly contextWindow: 128000;
606
+ readonly maxTokens: 96000;
607
+ };
608
+ readonly 'glm-4.7': {
609
+ readonly id: "glm-4.7";
610
+ readonly name: "GLM-4.7";
611
+ readonly api: "openai-completions";
612
+ readonly provider: "zai-coding";
613
+ readonly baseUrl: "https://api.z.ai/api/coding/paas/v4";
614
+ readonly reasoning: true;
615
+ readonly thinkingLevelMap: {
616
+ readonly off: null;
617
+ readonly minimal: "minimal";
618
+ readonly low: "low";
619
+ readonly medium: "medium";
620
+ readonly high: "high";
621
+ readonly xhigh: "high";
622
+ };
623
+ readonly input: ["text"];
624
+ readonly cost: {
625
+ readonly input: 0.6;
626
+ readonly output: 2.2;
627
+ readonly cacheRead: 0;
628
+ readonly cacheWrite: 0;
629
+ };
630
+ readonly contextWindow: 200000;
631
+ readonly maxTokens: 128000;
632
+ };
633
+ readonly 'glm-5': {
634
+ readonly id: "glm-5";
635
+ readonly name: "GLM-5";
636
+ readonly api: "openai-completions";
637
+ readonly provider: "zai-coding";
638
+ readonly baseUrl: "https://api.z.ai/api/coding/paas/v4";
639
+ readonly reasoning: true;
640
+ readonly thinkingLevelMap: {
641
+ readonly off: null;
642
+ readonly minimal: "minimal";
643
+ readonly low: "low";
644
+ readonly medium: "medium";
645
+ readonly high: "high";
646
+ readonly xhigh: "high";
647
+ };
648
+ readonly input: ["text"];
649
+ readonly cost: {
650
+ readonly input: 1;
651
+ readonly output: 3.2;
652
+ readonly cacheRead: 0;
653
+ readonly cacheWrite: 0;
654
+ };
655
+ readonly contextWindow: 200000;
656
+ readonly maxTokens: 128000;
657
+ };
658
+ readonly 'glm-5-turbo': {
659
+ readonly id: "glm-5-turbo";
660
+ readonly name: "GLM-5-Turbo";
661
+ readonly api: "openai-completions";
662
+ readonly provider: "zai-coding";
663
+ readonly baseUrl: "https://api.z.ai/api/coding/paas/v4";
664
+ readonly reasoning: true;
665
+ readonly thinkingLevelMap: {
666
+ readonly off: null;
667
+ readonly minimal: "minimal";
668
+ readonly low: "low";
669
+ readonly medium: "medium";
670
+ readonly high: "high";
671
+ readonly xhigh: "high";
672
+ };
673
+ readonly input: ["text"];
674
+ readonly cost: {
675
+ readonly input: 1.2;
676
+ readonly output: 4;
677
+ readonly cacheRead: 0;
678
+ readonly cacheWrite: 0;
679
+ };
680
+ readonly contextWindow: 200000;
681
+ readonly maxTokens: 128000;
682
+ };
683
+ readonly 'glm-5.1': {
684
+ readonly id: "glm-5.1";
685
+ readonly name: "GLM-5.1";
686
+ readonly api: "openai-completions";
687
+ readonly provider: "zai-coding";
688
+ readonly baseUrl: "https://api.z.ai/api/coding/paas/v4";
689
+ readonly reasoning: true;
690
+ readonly thinkingLevelMap: {
691
+ readonly off: null;
692
+ readonly minimal: "minimal";
693
+ readonly low: "low";
694
+ readonly medium: "medium";
695
+ readonly high: "high";
696
+ readonly xhigh: "high";
697
+ };
698
+ readonly input: ["text"];
699
+ readonly cost: {
700
+ readonly input: 1.4;
701
+ readonly output: 4.4;
702
+ readonly cacheRead: 0;
703
+ readonly cacheWrite: 0;
704
+ };
705
+ readonly contextWindow: 200000;
706
+ readonly maxTokens: 128000;
707
+ };
708
+ };
709
+ };
710
+ readonly xai: {
711
+ readonly id: "xai";
712
+ readonly name: "xAI (Grok)";
713
+ readonly baseUrl: "https://api.x.ai/v1";
714
+ readonly auth: readonly ["api-key", "oauth"];
715
+ readonly apiKeyEnv: "XAI_API_KEY";
716
+ readonly oauthProviderId: "xai";
717
+ readonly models: {
718
+ readonly 'grok-4.3': {
719
+ readonly id: "grok-4.3";
720
+ readonly name: "Grok 4.3";
721
+ readonly api: "openai-responses";
722
+ readonly provider: "xai";
723
+ readonly baseUrl: "https://api.x.ai/v1";
724
+ readonly reasoning: true;
725
+ readonly input: ["text", "image"];
726
+ readonly cost: {
727
+ readonly input: 1.25;
728
+ readonly output: 2.5;
729
+ readonly cacheRead: 0.2;
730
+ readonly cacheWrite: 0;
731
+ };
732
+ readonly contextWindow: 1000000;
733
+ readonly maxTokens: 30000;
734
+ readonly thinkingLevelMap: {
735
+ readonly off: "none";
736
+ readonly minimal: null;
737
+ readonly low: "low";
738
+ readonly medium: "medium";
739
+ readonly high: "high";
740
+ readonly xhigh: "xhigh";
741
+ readonly max: null;
742
+ };
743
+ readonly compat: {
744
+ readonly supportsLongCacheRetention: false;
745
+ };
746
+ };
747
+ readonly 'grok-4.7': {
748
+ readonly id: "grok-4.7";
749
+ readonly name: "Grok 4.7";
750
+ readonly api: "openai-responses";
751
+ readonly provider: "xai";
752
+ readonly baseUrl: "https://api.x.ai/v1";
753
+ readonly reasoning: true;
754
+ readonly input: ["text", "image"];
755
+ readonly cost: {
756
+ readonly input: 2;
757
+ readonly output: 6;
758
+ readonly cacheRead: 0.5;
759
+ readonly cacheWrite: 0;
760
+ };
761
+ readonly contextWindow: 500000;
762
+ readonly maxTokens: 500000;
763
+ readonly thinkingLevelMap: {
764
+ readonly off: null;
765
+ readonly minimal: null;
766
+ readonly low: "low";
767
+ readonly medium: "medium";
768
+ readonly high: "high";
769
+ readonly xhigh: "xhigh";
770
+ readonly max: null;
771
+ };
772
+ readonly compat: {
773
+ readonly supportsLongCacheRetention: false;
774
+ };
775
+ };
776
+ readonly 'grok-4.20-0309-reasoning': {
777
+ readonly id: "grok-4.20-0309-reasoning";
778
+ readonly name: "Grok 4.20 (Reasoning)";
779
+ readonly api: "openai-completions";
780
+ readonly provider: "xai";
781
+ readonly baseUrl: "https://api.x.ai/v1";
782
+ readonly reasoning: true;
783
+ readonly input: ["text", "image"];
784
+ readonly cost: {
785
+ readonly input: 1.25;
786
+ readonly output: 2.5;
787
+ readonly cacheRead: 0.2;
788
+ readonly cacheWrite: 0;
789
+ };
790
+ readonly contextWindow: 1000000;
791
+ readonly maxTokens: 64000;
792
+ };
793
+ readonly 'grok-4.20-0309-non-reasoning': {
794
+ readonly id: "grok-4.20-0309-non-reasoning";
795
+ readonly name: "Grok 4.20 (Non-Reasoning)";
796
+ readonly api: "openai-completions";
797
+ readonly provider: "xai";
798
+ readonly baseUrl: "https://api.x.ai/v1";
799
+ readonly reasoning: false;
800
+ readonly input: ["text", "image"];
801
+ readonly cost: {
802
+ readonly input: 1.25;
803
+ readonly output: 2.5;
804
+ readonly cacheRead: 0.2;
805
+ readonly cacheWrite: 0;
806
+ };
807
+ readonly contextWindow: 1000000;
808
+ readonly maxTokens: 64000;
809
+ };
810
+ readonly 'grok-build-0.1': {
811
+ readonly id: "grok-build-0.1";
812
+ readonly name: "Grok Build 0.1";
813
+ readonly api: "openai-completions";
814
+ readonly provider: "xai";
815
+ readonly baseUrl: "https://api.x.ai/v1";
816
+ readonly reasoning: true;
817
+ readonly input: ["text", "image"];
818
+ readonly cost: {
819
+ readonly input: 1;
820
+ readonly output: 2;
821
+ readonly cacheRead: 0.2;
822
+ readonly cacheWrite: 0;
823
+ };
824
+ readonly contextWindow: 256000;
825
+ readonly maxTokens: 64000;
826
+ };
827
+ };
828
+ };
829
+ readonly minimax: {
830
+ readonly id: "minimax";
831
+ readonly name: "MiniMax";
832
+ readonly baseUrl: "https://api.minimax.io/v1";
833
+ readonly auth: readonly ["api-key"];
834
+ readonly apiKeyEnv: "MINIMAX_API_KEY";
835
+ readonly oauthProviderId: null;
836
+ readonly models: {
837
+ readonly 'MiniMax-M3': {
838
+ readonly id: "MiniMax-M3";
839
+ readonly name: "MiniMax M3";
840
+ readonly api: "openai-completions";
841
+ readonly provider: "minimax";
842
+ readonly baseUrl: "https://api.minimax.io/v1";
843
+ readonly reasoning: true;
844
+ readonly input: ["text", "image"];
845
+ readonly cost: {
846
+ readonly input: 0.3;
847
+ readonly output: 1.2;
848
+ readonly cacheRead: 0.06;
849
+ readonly cacheWrite: 0;
850
+ };
851
+ readonly contextWindow: 1000000;
852
+ readonly maxTokens: 524288;
853
+ };
854
+ readonly 'MiniMax-M2.7': {
855
+ readonly id: "MiniMax-M2.7";
856
+ readonly name: "MiniMax M2.7";
857
+ readonly api: "openai-completions";
858
+ readonly provider: "minimax";
859
+ readonly baseUrl: "https://api.minimax.io/v1";
860
+ readonly reasoning: true;
861
+ readonly thinkingLevelMap: {
862
+ readonly off: null;
863
+ readonly minimal: "minimal";
864
+ readonly low: "low";
865
+ readonly medium: "medium";
866
+ readonly high: "high";
867
+ readonly xhigh: "high";
868
+ };
869
+ readonly input: ["text"];
870
+ readonly cost: {
871
+ readonly input: 0.3;
872
+ readonly output: 1.2;
873
+ readonly cacheRead: 0.06;
874
+ readonly cacheWrite: 0.375;
875
+ };
876
+ readonly contextWindow: 204800;
877
+ readonly maxTokens: 204800;
878
+ };
879
+ readonly 'MiniMax-M2.5': {
880
+ readonly id: "MiniMax-M2.5";
881
+ readonly name: "MiniMax M2.5";
882
+ readonly api: "openai-completions";
883
+ readonly provider: "minimax";
884
+ readonly baseUrl: "https://api.minimax.io/v1";
885
+ readonly reasoning: true;
886
+ readonly thinkingLevelMap: {
887
+ readonly off: null;
888
+ readonly minimal: "minimal";
889
+ readonly low: "low";
890
+ readonly medium: "medium";
891
+ readonly high: "high";
892
+ readonly xhigh: "high";
893
+ };
894
+ readonly input: ["text"];
895
+ readonly cost: {
896
+ readonly input: 0.3;
897
+ readonly output: 1.2;
898
+ readonly cacheRead: 0.03;
899
+ readonly cacheWrite: 0.375;
900
+ };
901
+ readonly contextWindow: 204800;
902
+ readonly maxTokens: 204800;
903
+ };
904
+ readonly 'MiniMax-M2.1': {
905
+ readonly id: "MiniMax-M2.1";
906
+ readonly name: "MiniMax M2.1";
907
+ readonly api: "openai-completions";
908
+ readonly provider: "minimax";
909
+ readonly baseUrl: "https://api.minimax.io/v1";
910
+ readonly reasoning: true;
911
+ readonly thinkingLevelMap: {
912
+ readonly off: null;
913
+ readonly minimal: "minimal";
914
+ readonly low: "low";
915
+ readonly medium: "medium";
916
+ readonly high: "high";
917
+ readonly xhigh: "high";
918
+ };
919
+ readonly input: ["text"];
920
+ readonly cost: {
921
+ readonly input: 0.3;
922
+ readonly output: 1.2;
923
+ readonly cacheRead: 0.03;
924
+ readonly cacheWrite: 0.375;
925
+ };
926
+ readonly contextWindow: 204800;
927
+ readonly maxTokens: 204800;
928
+ };
929
+ readonly 'MiniMax-M2': {
930
+ readonly id: "MiniMax-M2";
931
+ readonly name: "MiniMax M2";
932
+ readonly api: "openai-completions";
933
+ readonly provider: "minimax";
934
+ readonly baseUrl: "https://api.minimax.io/v1";
935
+ readonly reasoning: true;
936
+ readonly thinkingLevelMap: {
937
+ readonly off: null;
938
+ readonly minimal: "minimal";
939
+ readonly low: "low";
940
+ readonly medium: "medium";
941
+ readonly high: "high";
942
+ readonly xhigh: "high";
943
+ };
944
+ readonly input: ["text"];
945
+ readonly cost: {
946
+ readonly input: 0.3;
947
+ readonly output: 1.2;
948
+ readonly cacheRead: 0.03;
949
+ readonly cacheWrite: 0.375;
950
+ };
951
+ readonly contextWindow: 204800;
952
+ readonly maxTokens: 204800;
953
+ };
954
+ };
955
+ };
956
+ readonly deepseek: {
957
+ readonly id: "deepseek";
958
+ readonly name: "DeepSeek";
959
+ readonly baseUrl: "https://api.deepseek.com";
960
+ readonly auth: readonly ["api-key"];
961
+ readonly apiKeyEnv: "DEEPSEEK_API_KEY";
962
+ readonly oauthProviderId: null;
963
+ readonly models: {
964
+ readonly 'deepseek-v4-flash': {
965
+ readonly id: "deepseek-v4-flash";
966
+ readonly name: "DeepSeek V4 Flash";
967
+ readonly api: "openai-completions";
968
+ readonly provider: "deepseek";
969
+ readonly baseUrl: "https://api.deepseek.com";
970
+ readonly reasoning: true;
971
+ readonly thinkingLevelMap: {
972
+ readonly off: null;
973
+ readonly minimal: "minimal";
974
+ readonly low: "low";
975
+ readonly medium: "medium";
976
+ readonly high: "high";
977
+ readonly xhigh: "high";
978
+ };
979
+ readonly input: ["text"];
980
+ readonly cost: {
981
+ readonly input: 0.14;
982
+ readonly output: 0.28;
983
+ readonly cacheRead: 0.0028;
984
+ readonly cacheWrite: 0;
985
+ };
986
+ readonly contextWindow: 1000000;
987
+ readonly maxTokens: 384000;
988
+ };
989
+ readonly 'deepseek-v4-pro': {
990
+ readonly id: "deepseek-v4-pro";
991
+ readonly name: "DeepSeek V4 Pro";
992
+ readonly api: "openai-completions";
993
+ readonly provider: "deepseek";
994
+ readonly baseUrl: "https://api.deepseek.com";
995
+ readonly reasoning: true;
996
+ readonly thinkingLevelMap: {
997
+ readonly off: null;
998
+ readonly minimal: "minimal";
999
+ readonly low: "low";
1000
+ readonly medium: "medium";
1001
+ readonly high: "high";
1002
+ readonly xhigh: "high";
1003
+ };
1004
+ readonly input: ["text"];
1005
+ readonly cost: {
1006
+ readonly input: 0.435;
1007
+ readonly output: 0.87;
1008
+ readonly cacheRead: 0.003625;
1009
+ readonly cacheWrite: 0;
1010
+ };
1011
+ readonly contextWindow: 1000000;
1012
+ readonly maxTokens: 384000;
1013
+ };
1014
+ };
1015
+ };
1016
+ readonly upstage: {
1017
+ readonly id: "upstage";
1018
+ readonly name: "Upstage (Solar)";
1019
+ readonly baseUrl: "https://api.upstage.ai/v1";
1020
+ readonly auth: readonly ["api-key"];
1021
+ readonly apiKeyEnv: "UPSTAGE_API_KEY";
1022
+ readonly oauthProviderId: null;
1023
+ readonly models: {
1024
+ readonly 'solar-pro4': {
1025
+ readonly id: "solar-pro4";
1026
+ readonly name: "Solar Pro 4";
1027
+ readonly api: "openai-completions";
1028
+ readonly provider: "upstage";
1029
+ readonly baseUrl: "https://api.upstage.ai/v1";
1030
+ readonly reasoning: true;
1031
+ readonly thinkingLevelMap: {
1032
+ readonly off: "none";
1033
+ readonly minimal: "low";
1034
+ readonly low: "low";
1035
+ readonly medium: "medium";
1036
+ readonly high: "high";
1037
+ readonly xhigh: "xhigh";
1038
+ };
1039
+ readonly input: ["text"];
1040
+ readonly cost: {
1041
+ readonly input: 0.3;
1042
+ readonly output: 1.2;
1043
+ readonly cacheRead: 0.06;
1044
+ readonly cacheWrite: 0;
1045
+ };
1046
+ readonly contextWindow: 524288;
1047
+ readonly maxTokens: 131072;
1048
+ readonly compat: {
1049
+ readonly supportsStore: false;
1050
+ readonly supportsDeveloperRole: false;
1051
+ readonly supportsReasoningEffort: true;
1052
+ readonly supportsUsageInStreaming: false;
1053
+ readonly supportsStrictMode: false;
1054
+ readonly maxTokensField: "max_tokens";
1055
+ };
1056
+ };
1057
+ readonly 'solar-open2': {
1058
+ readonly id: "solar-open2";
1059
+ readonly name: "Solar Open 2";
1060
+ readonly api: "openai-completions";
1061
+ readonly provider: "upstage";
1062
+ readonly baseUrl: "https://api.upstage.ai/v1";
1063
+ readonly reasoning: true;
1064
+ readonly thinkingLevelMap: {
1065
+ readonly off: "none";
1066
+ readonly minimal: "low";
1067
+ readonly low: "low";
1068
+ readonly medium: "medium";
1069
+ readonly high: "high";
1070
+ readonly xhigh: "xhigh";
1071
+ };
1072
+ readonly input: ["text"];
1073
+ readonly cost: {
1074
+ readonly input: 0;
1075
+ readonly output: 0;
1076
+ readonly cacheRead: 0;
1077
+ readonly cacheWrite: 0;
1078
+ };
1079
+ readonly contextWindow: 128000;
1080
+ readonly maxTokens: 32000;
1081
+ readonly compat: {
1082
+ readonly supportsStore: false;
1083
+ readonly supportsDeveloperRole: false;
1084
+ readonly supportsReasoningEffort: true;
1085
+ readonly supportsUsageInStreaming: false;
1086
+ readonly supportsStrictMode: false;
1087
+ readonly maxTokensField: "max_tokens";
1088
+ };
1089
+ };
1090
+ readonly 'solar-pro3': {
1091
+ readonly id: "solar-pro3";
1092
+ readonly name: "Solar Pro 3";
1093
+ readonly api: "openai-completions";
1094
+ readonly provider: "upstage";
1095
+ readonly baseUrl: "https://api.upstage.ai/v1";
1096
+ readonly reasoning: true;
1097
+ readonly thinkingLevelMap: {
1098
+ readonly off: null;
1099
+ readonly minimal: "medium";
1100
+ readonly low: "medium";
1101
+ readonly medium: "medium";
1102
+ readonly high: "high";
1103
+ readonly xhigh: "high";
1104
+ };
1105
+ readonly input: ["text"];
1106
+ readonly cost: {
1107
+ readonly input: 0.15;
1108
+ readonly output: 0.6;
1109
+ readonly cacheRead: 0.015;
1110
+ readonly cacheWrite: 0;
1111
+ };
1112
+ readonly contextWindow: 128000;
1113
+ readonly maxTokens: 32000;
1114
+ readonly compat: {
1115
+ readonly supportsStore: false;
1116
+ readonly supportsDeveloperRole: false;
1117
+ readonly supportsReasoningEffort: true;
1118
+ readonly supportsUsageInStreaming: false;
1119
+ readonly supportsStrictMode: false;
1120
+ readonly maxTokensField: "max_tokens";
1121
+ };
1122
+ };
1123
+ readonly 'solar-pro2': {
1124
+ readonly id: "solar-pro2";
1125
+ readonly name: "Solar Pro 2";
1126
+ readonly api: "openai-completions";
1127
+ readonly provider: "upstage";
1128
+ readonly baseUrl: "https://api.upstage.ai/v1";
1129
+ readonly reasoning: true;
1130
+ readonly thinkingLevelMap: {
1131
+ readonly off: null;
1132
+ readonly minimal: "medium";
1133
+ readonly low: "medium";
1134
+ readonly medium: "medium";
1135
+ readonly high: "high";
1136
+ readonly xhigh: "high";
1137
+ };
1138
+ readonly input: ["text"];
1139
+ readonly cost: {
1140
+ readonly input: 0.15;
1141
+ readonly output: 0.6;
1142
+ readonly cacheRead: 0.015;
1143
+ readonly cacheWrite: 0;
1144
+ };
1145
+ readonly contextWindow: 65536;
1146
+ readonly maxTokens: 16000;
1147
+ readonly compat: {
1148
+ readonly supportsStore: false;
1149
+ readonly supportsDeveloperRole: false;
1150
+ readonly supportsReasoningEffort: true;
1151
+ readonly supportsUsageInStreaming: false;
1152
+ readonly supportsStrictMode: false;
1153
+ readonly maxTokensField: "max_tokens";
1154
+ };
1155
+ };
1156
+ readonly 'solar-mini': {
1157
+ readonly id: "solar-mini";
1158
+ readonly name: "Solar Mini";
1159
+ readonly api: "openai-completions";
1160
+ readonly provider: "upstage";
1161
+ readonly baseUrl: "https://api.upstage.ai/v1";
1162
+ readonly reasoning: false;
1163
+ readonly input: ["text"];
1164
+ readonly cost: {
1165
+ readonly input: 0.15;
1166
+ readonly output: 0.15;
1167
+ readonly cacheRead: 0;
1168
+ readonly cacheWrite: 0;
1169
+ };
1170
+ readonly contextWindow: 32768;
1171
+ readonly maxTokens: 8000;
1172
+ readonly compat: {
1173
+ readonly supportsStore: false;
1174
+ readonly supportsDeveloperRole: false;
1175
+ readonly supportsReasoningEffort: false;
1176
+ readonly supportsUsageInStreaming: false;
1177
+ readonly supportsStrictMode: false;
1178
+ readonly maxTokensField: "max_tokens";
1179
+ };
1180
+ };
1181
+ };
1182
+ };
1183
+ readonly moonshot: {
1184
+ readonly id: "moonshot";
1185
+ readonly name: "Moonshot (Kimi)";
1186
+ readonly baseUrl: "https://api.moonshot.ai/v1";
1187
+ readonly auth: readonly ["api-key"];
1188
+ readonly apiKeyEnv: "MOONSHOT_API_KEY";
1189
+ readonly oauthProviderId: null;
1190
+ readonly models: {
1191
+ readonly 'kimi-k2.7-code': {
1192
+ readonly id: "kimi-k2.7-code";
1193
+ readonly name: "Kimi K2.7 Code";
1194
+ readonly api: "openai-completions";
1195
+ readonly provider: "moonshot";
1196
+ readonly baseUrl: "https://api.moonshot.ai/v1";
1197
+ readonly reasoning: true;
1198
+ readonly input: ["text", "image"];
1199
+ readonly cost: {
1200
+ readonly input: 0.6;
1201
+ readonly output: 2.5;
1202
+ readonly cacheRead: 0.15;
1203
+ readonly cacheWrite: 0;
1204
+ };
1205
+ readonly contextWindow: 256000;
1206
+ readonly maxTokens: 64000;
1207
+ };
1208
+ readonly 'kimi-k2.6': {
1209
+ readonly id: "kimi-k2.6";
1210
+ readonly name: "Kimi K2.6";
1211
+ readonly api: "openai-completions";
1212
+ readonly provider: "moonshot";
1213
+ readonly baseUrl: "https://api.moonshot.ai/v1";
1214
+ readonly reasoning: true;
1215
+ readonly input: ["text", "image"];
1216
+ readonly cost: {
1217
+ readonly input: 0.6;
1218
+ readonly output: 2.5;
1219
+ readonly cacheRead: 0.15;
1220
+ readonly cacheWrite: 0;
1221
+ };
1222
+ readonly contextWindow: 256000;
1223
+ readonly maxTokens: 64000;
1224
+ };
1225
+ readonly 'kimi-k2.5': {
1226
+ readonly id: "kimi-k2.5";
1227
+ readonly name: "Kimi K2.5";
1228
+ readonly api: "openai-completions";
1229
+ readonly provider: "moonshot";
1230
+ readonly baseUrl: "https://api.moonshot.ai/v1";
1231
+ readonly reasoning: true;
1232
+ readonly input: ["text", "image"];
1233
+ readonly cost: {
1234
+ readonly input: 0.6;
1235
+ readonly output: 2.5;
1236
+ readonly cacheRead: 0.15;
1237
+ readonly cacheWrite: 0;
1238
+ };
1239
+ readonly contextWindow: 256000;
1240
+ readonly maxTokens: 64000;
1241
+ };
1242
+ };
1243
+ };
1244
+ readonly 'moonshot-coding': {
1245
+ readonly id: "moonshot-coding";
1246
+ readonly name: "Moonshot (Kimi Coding Plan)";
1247
+ readonly baseUrl: "https://api.kimi.com/coding/v1";
1248
+ readonly auth: readonly ["api-key"];
1249
+ readonly apiKeyEnv: "MOONSHOT_CODING_API_KEY";
1250
+ readonly oauthProviderId: null;
1251
+ readonly models: {
1252
+ readonly 'kimi-for-coding': {
1253
+ readonly id: "kimi-for-coding";
1254
+ readonly name: "Kimi for Coding";
1255
+ readonly api: "openai-completions";
1256
+ readonly provider: "moonshot-coding";
1257
+ readonly baseUrl: "https://api.kimi.com/coding/v1";
1258
+ readonly reasoning: true;
1259
+ readonly input: ["text", "image"];
1260
+ readonly cost: {
1261
+ readonly input: 0;
1262
+ readonly output: 0;
1263
+ readonly cacheRead: 0;
1264
+ readonly cacheWrite: 0;
1265
+ };
1266
+ readonly contextWindow: 256000;
1267
+ readonly maxTokens: 64000;
1268
+ };
1269
+ };
1270
+ };
1271
+ readonly opengateway: {
1272
+ readonly id: "opengateway";
1273
+ readonly name: "OpenGateway";
1274
+ readonly baseUrl: "https://apis.opengateway.ai/v1";
1275
+ readonly auth: readonly ["api-key"];
1276
+ readonly apiKeyEnv: "OPENGATEWAY_API_KEY";
1277
+ readonly oauthProviderId: null;
1278
+ readonly models: {
1279
+ readonly 'openai/gpt-5.4-nano': {
1280
+ readonly id: "openai/gpt-5.4-nano";
1281
+ readonly name: "GPT-5.4 nano";
1282
+ readonly api: "openai-completions";
1283
+ readonly provider: "opengateway";
1284
+ readonly baseUrl: "https://apis.opengateway.ai/v1";
1285
+ readonly reasoning: true;
1286
+ readonly compat: {
1287
+ readonly supportsStore: false;
1288
+ readonly supportsDeveloperRole: false;
1289
+ readonly supportsReasoningEffort: false;
1290
+ readonly supportsStrictMode: false;
1291
+ readonly maxTokensField: "max_tokens";
1292
+ };
1293
+ readonly input: ["text", "image"];
1294
+ readonly cost: {
1295
+ readonly input: 0.2;
1296
+ readonly output: 1.25;
1297
+ readonly cacheRead: 0.02;
1298
+ readonly cacheWrite: 0;
1299
+ };
1300
+ readonly contextWindow: 400000;
1301
+ readonly maxTokens: 128000;
1302
+ };
1303
+ };
1304
+ };
1305
+ readonly inception: {
1306
+ readonly id: "inception";
1307
+ readonly name: "Inception (Mercury)";
1308
+ readonly baseUrl: "https://api.inceptionlabs.ai/v1";
1309
+ readonly auth: readonly ["api-key"];
1310
+ readonly apiKeyEnv: "INCEPTION_API_KEY";
1311
+ readonly oauthProviderId: null;
1312
+ readonly models: {
1313
+ readonly 'mercury-3': {
1314
+ readonly id: "mercury-3";
1315
+ readonly name: "Mercury 3";
1316
+ readonly api: "openai-completions";
1317
+ readonly provider: "inception";
1318
+ readonly baseUrl: "https://api.inceptionlabs.ai/v1";
1319
+ readonly reasoning: true;
1320
+ readonly thinkingLevelMap: {
1321
+ readonly off: "instant";
1322
+ readonly minimal: "low";
1323
+ readonly low: "low";
1324
+ readonly medium: "medium";
1325
+ readonly high: "high";
1326
+ readonly xhigh: "high";
1327
+ };
1328
+ readonly input: ["text"];
1329
+ readonly cost: {
1330
+ readonly input: 0.2;
1331
+ readonly output: 0.7;
1332
+ readonly cacheRead: 0.02;
1333
+ readonly cacheWrite: 0;
1334
+ };
1335
+ readonly contextWindow: 1000000;
1336
+ readonly maxTokens: 131072;
1337
+ readonly compat: {
1338
+ readonly supportsStore: false;
1339
+ readonly supportsDeveloperRole: false;
1340
+ readonly supportsReasoningEffort: true;
1341
+ };
1342
+ };
1343
+ };
1344
+ };
1345
+ };
1346
+ export type KnownProviderId = keyof typeof KNOWN_PROVIDERS;
1347
+ export declare const KNOWN_PROVIDER_VENDORS: {
1348
+ readonly openai: {
1349
+ readonly id: "openai";
1350
+ readonly name: "OpenAI";
1351
+ readonly providers: readonly ["openai", "openai-codex"];
1352
+ readonly variants: {
1353
+ readonly openai: {
1354
+ readonly label: "API key";
1355
+ readonly hint: "OpenAI API platform";
1356
+ };
1357
+ readonly 'openai-codex': {
1358
+ readonly label: "OAuth (ChatGPT Plus/Pro)";
1359
+ readonly hint: "ChatGPT subscription";
1360
+ };
1361
+ };
1362
+ };
1363
+ readonly anthropic: {
1364
+ readonly id: "anthropic";
1365
+ readonly name: "Anthropic";
1366
+ readonly providers: readonly ["anthropic"];
1367
+ };
1368
+ readonly fireworks: {
1369
+ readonly id: "fireworks";
1370
+ readonly name: "Fireworks";
1371
+ readonly providers: readonly ["fireworks"];
1372
+ };
1373
+ readonly zai: {
1374
+ readonly id: "zai";
1375
+ readonly name: "Z.AI";
1376
+ readonly providers: readonly ["zai", "zai-coding"];
1377
+ readonly variants: {
1378
+ readonly zai: {
1379
+ readonly label: "Pay-as-you-go";
1380
+ readonly hint: "standard API billing";
1381
+ };
1382
+ readonly 'zai-coding': {
1383
+ readonly label: "Coding Plan";
1384
+ readonly hint: "GLM Coding Plan subscription";
1385
+ };
1386
+ };
1387
+ };
1388
+ readonly xai: {
1389
+ readonly id: "xai";
1390
+ readonly name: "xAI (Grok)";
1391
+ readonly providers: readonly ["xai"];
1392
+ };
1393
+ readonly minimax: {
1394
+ readonly id: "minimax";
1395
+ readonly name: "MiniMax";
1396
+ readonly providers: readonly ["minimax"];
1397
+ };
1398
+ readonly deepseek: {
1399
+ readonly id: "deepseek";
1400
+ readonly name: "DeepSeek";
1401
+ readonly providers: readonly ["deepseek"];
1402
+ };
1403
+ readonly upstage: {
1404
+ readonly id: "upstage";
1405
+ readonly name: "Upstage (Solar)";
1406
+ readonly providers: readonly ["upstage"];
1407
+ };
1408
+ readonly moonshot: {
1409
+ readonly id: "moonshot";
1410
+ readonly name: "Moonshot (Kimi)";
1411
+ readonly providers: readonly ["moonshot", "moonshot-coding"];
1412
+ readonly variants: {
1413
+ readonly moonshot: {
1414
+ readonly label: "Pay-as-you-go";
1415
+ readonly hint: "Moonshot Open Platform API billing";
1416
+ };
1417
+ readonly 'moonshot-coding': {
1418
+ readonly label: "Coding Plan";
1419
+ readonly hint: "Kimi Code subscription";
1420
+ };
1421
+ };
1422
+ };
1423
+ readonly inception: {
1424
+ readonly id: "inception";
1425
+ readonly name: "Inception (Mercury)";
1426
+ readonly providers: readonly ["inception"];
1427
+ };
1428
+ readonly opengateway: {
1429
+ readonly id: "opengateway";
1430
+ readonly name: "OpenGateway";
1431
+ readonly providers: readonly ["opengateway"];
1432
+ };
1433
+ };
1434
+ export type KnownProviderVendorId = keyof typeof KNOWN_PROVIDER_VENDORS;
1435
+ export declare function listKnownProviderVendorIds(): KnownProviderVendorId[];
1436
+ export declare function providerIdsForVendor(vendorId: KnownProviderVendorId): ReadonlyArray<KnownProviderId>;
1437
+ export declare function vendorForProviderId(providerId: KnownProviderId): KnownProviderVendorId;
1438
+ export declare function variantLabel(vendorId: KnownProviderVendorId, providerId: KnownProviderId): string;
1439
+ export declare function variantHint(vendorId: KnownProviderVendorId, providerId: KnownProviderId): string | undefined;
1440
+ export type KnownModelRef = {
1441
+ [P in KnownProviderId]: `${P}/${Extract<keyof (typeof KNOWN_PROVIDERS)[P]['models'], string>}`;
1442
+ }[KnownProviderId];
1443
+ export type ModelRef = string & {
1444
+ readonly __modelRef: unique symbol;
1445
+ };
1446
+ export declare function listKnownModelRefs(): KnownModelRef[];
1447
+ export declare function isKnownModelRef(value: string): value is KnownModelRef;
1448
+ export declare function isModelRef(value: string): value is ModelRef;
1449
+ export declare const DEFAULT_MODEL_REF: KnownModelRef;
1450
+ export declare function providerForModelRef(ref: KnownModelRef | ModelRef | string): KnownProviderId;
1451
+ export declare function isOpenAiFamilyRef(ref: KnownModelRef | ModelRef | string): boolean;
1452
+ export declare function defaultThinkingLevelForRef(_ref: KnownModelRef | ModelRef | string): ThinkingLevel | undefined;
1453
+ export declare function supportsApiKey(provider: {
1454
+ auth: ReadonlyArray<AuthMethod>;
1455
+ }): boolean;
1456
+ export declare function supportsOAuth(provider: {
1457
+ auth: ReadonlyArray<AuthMethod>;
1458
+ }): boolean;