carthagent 0.0.0-stage → 1.0.7

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 (379) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +219 -2
  3. package/bin/ctg.mjs +736 -0
  4. package/docs/budgets.md +72 -0
  5. package/docs/compaction.md +34 -0
  6. package/docs/context-efficiency-plan.md +24 -0
  7. package/docs/context-efficiency-review.md +27 -0
  8. package/docs/context-efficiency.md +49 -0
  9. package/docs/deepseek-jev-benchmark-plan.md +70 -0
  10. package/docs/deepseek-jev-benchmark-repair-plan.md +20 -0
  11. package/docs/deepseek-jev-benchmark-restart.md +9 -0
  12. package/docs/deepseek-jev-benchmark-results.md +77 -0
  13. package/docs/deepseek-jev-benchmark-running.md +60 -0
  14. package/docs/deepseek-jev-benchmark-v3-results.md +41 -0
  15. package/docs/deepseek-jev-benchmark-v4-protocol.md +15 -0
  16. package/docs/deepseek-jev-benchmark-v4-results.md +119 -0
  17. package/docs/deepseek-jev-http400-diagnosis.md +45 -0
  18. package/docs/delivery-review-evidence.md +53 -0
  19. package/docs/delivery-timeout-repair-plan.md +51 -0
  20. package/docs/evaluation-readiness.md +31 -0
  21. package/docs/evaluation.md +70 -0
  22. package/docs/extending.md +354 -0
  23. package/docs/glm-pilot-execution.md +9 -0
  24. package/docs/glm-pilot-plan.md +15 -0
  25. package/docs/glm-pilot-results.md +71 -0
  26. package/docs/graph-context-optimization.md +15 -0
  27. package/docs/jev-repository-pilot-plan.md +25 -0
  28. package/docs/jev-repository-pilot-protocol.md +39 -0
  29. package/docs/jev-repository-pilot-restart.md +7 -0
  30. package/docs/jev-repository-pilot-results.md +79 -0
  31. package/docs/jev.md +32 -0
  32. package/docs/model-registry.md +25 -0
  33. package/docs/native-compatibility.md +117 -0
  34. package/docs/opencode-archive.md +9 -0
  35. package/docs/opencode-migration.md +115 -0
  36. package/docs/opencode-runtime.md +94 -0
  37. package/docs/opencode-workspace.md +31 -0
  38. package/docs/owned-runtime-workflow-registration.md +17 -0
  39. package/docs/plan-advisor-evaluation.md +38 -0
  40. package/docs/planning-startup-fix-plan.md +23 -0
  41. package/docs/planning-startup-fix-review.md +24 -0
  42. package/docs/planning.md +118 -0
  43. package/docs/production-merge-review.md +23 -0
  44. package/docs/quality.md +35 -0
  45. package/docs/repository-benchmark-design.md +111 -0
  46. package/docs/review-assurance.md +9 -0
  47. package/docs/review-experiment-results.md +59 -0
  48. package/docs/tested-planning-roadmap.md +58 -0
  49. package/docs/tested-planning.md +58 -0
  50. package/docs/tui-pickers.md +9 -0
  51. package/docs/webdriver.md +83 -0
  52. package/docs/workflow-modes.md +26 -0
  53. package/docs/workflow.d2 +17 -0
  54. package/docs/workflow.svg +149 -0
  55. package/docs/workspace-coordination.md +9 -0
  56. package/evaluate.mjs +249 -0
  57. package/extensions/codegraph.ts +36 -0
  58. package/extensions/delivery.ts +819 -0
  59. package/extensions/experiential.ts +21 -0
  60. package/extensions/subscriptions.ts +21 -0
  61. package/guidance/profiles/authenticated-web.json +24 -0
  62. package/guidance/profiles/data-visualization.json +25 -0
  63. package/guidance/profiles/database-change.json +24 -0
  64. package/guidance/profiles/external-api.json +24 -0
  65. package/guidance/profiles/transactional-data.json +25 -0
  66. package/guidance/profiles/web-application.json +26 -0
  67. package/lib/acceptance-review.mjs +4 -0
  68. package/lib/browser-bin.mjs +160 -0
  69. package/lib/browser-errors.mjs +54 -0
  70. package/lib/browser.mjs +219 -0
  71. package/lib/budget.mjs +37 -0
  72. package/lib/cdp.mjs +221 -0
  73. package/lib/cloud/client.mjs +275 -0
  74. package/lib/cloud/control-plane.mjs +350 -0
  75. package/lib/cloud/gateway.mjs +380 -0
  76. package/lib/cloud/http.mjs +135 -0
  77. package/lib/cloud/ledger.mjs +215 -0
  78. package/lib/codegraph-query.mjs +60 -0
  79. package/lib/codegraph.mjs +378 -0
  80. package/lib/context-archive.mjs +18 -0
  81. package/lib/delivery-context.mjs +132 -0
  82. package/lib/delivery-guidance.mjs +9 -0
  83. package/lib/delivery-review.mjs +94 -0
  84. package/lib/delivery.mjs +610 -0
  85. package/lib/engine.mjs +137 -0
  86. package/lib/guidance.mjs +71 -0
  87. package/lib/jev-advisor.mjs +47 -0
  88. package/lib/opencode/archive.mjs +122 -0
  89. package/lib/opencode/compatibility.mjs +19 -0
  90. package/lib/opencode/credentials.mjs +205 -0
  91. package/lib/opencode/evaluation-budget-plugin/index.ts +147 -0
  92. package/lib/opencode/evaluation.mjs +242 -0
  93. package/lib/opencode/file-lock.mjs +86 -0
  94. package/lib/opencode/headless.mjs +200 -0
  95. package/lib/opencode/review.mjs +213 -0
  96. package/lib/opencode/runtime.mjs +246 -0
  97. package/lib/opencode/service.mjs +249 -0
  98. package/lib/opencode/session-options.mjs +60 -0
  99. package/lib/opencode/workspace.mjs +133 -0
  100. package/lib/openrouter-jev.mjs +37 -0
  101. package/lib/outcome-contract.mjs +21 -0
  102. package/lib/plan-advisor.mjs +38 -0
  103. package/lib/planning-access.mjs +7 -0
  104. package/lib/planning-advice.mjs +28 -0
  105. package/lib/planning-discovery.mjs +14 -0
  106. package/lib/planning-guide.mjs +34 -0
  107. package/lib/planning-view.mjs +57 -0
  108. package/lib/planning.mjs +155 -0
  109. package/lib/probe-diagnostics.mjs +13 -0
  110. package/lib/providers/experiential.mjs +292 -0
  111. package/lib/providers/model-catalog.json +700 -0
  112. package/lib/providers/model-catalog.mjs +7 -0
  113. package/lib/providers/names.mjs +13 -0
  114. package/lib/providers/subscription-models.mjs +483 -0
  115. package/lib/reports.mjs +80 -0
  116. package/lib/review-state.mjs +49 -0
  117. package/lib/review.mjs +114 -0
  118. package/lib/scenarios.mjs +99 -0
  119. package/lib/ship-auth.mjs +44 -0
  120. package/lib/ship-jev.mjs +59 -0
  121. package/lib/ship-telemetry.mjs +183 -0
  122. package/lib/tui/ansi.mjs +255 -0
  123. package/lib/tui/app.mjs +2445 -0
  124. package/lib/tui/auth.mjs +249 -0
  125. package/lib/tui/carthage.mjs +109 -0
  126. package/lib/tui/clipboard.mjs +122 -0
  127. package/lib/tui/d2.mjs +431 -0
  128. package/lib/tui/feed.mjs +467 -0
  129. package/lib/tui/framing.mjs +80 -0
  130. package/lib/tui/glyphs.mjs +172 -0
  131. package/lib/tui/hash-worker.mjs +11 -0
  132. package/lib/tui/mock-engine.mjs +222 -0
  133. package/lib/tui/models.mjs +73 -0
  134. package/lib/tui/picker.mjs +18 -0
  135. package/lib/tui/theme.mjs +663 -0
  136. package/lib/tui/title.mjs +7 -0
  137. package/lib/update-channel.mjs +62 -0
  138. package/lib/update.mjs +230 -0
  139. package/lib/webdriver.mjs +82 -0
  140. package/lib/workflow.mjs +88 -0
  141. package/lib/workspace.mjs +39 -0
  142. package/metadata.json +8 -0
  143. package/package.json +94 -4
  144. package/plugins/carthagent/index.ts +3 -0
  145. package/plugins/carthagent/package.json +28 -0
  146. package/plugins/carthagent/src/archive-rpc.ts +46 -0
  147. package/plugins/carthagent/src/bootstrap.ts +38 -0
  148. package/plugins/carthagent/src/index.ts +62 -0
  149. package/plugins/carthagent/src/pull-request-rpc.ts +54 -0
  150. package/plugins/carthagent/src/rpc.ts +76 -0
  151. package/plugins/carthagent/src/server/archive-rpc.ts +327 -0
  152. package/plugins/carthagent/src/server/budgets.ts +21 -0
  153. package/plugins/carthagent/src/server/codegraph.ts +46 -0
  154. package/plugins/carthagent/src/server/delivery.ts +488 -0
  155. package/plugins/carthagent/src/server/device-auth.ts +91 -0
  156. package/plugins/carthagent/src/server/native-delivery.ts +26 -0
  157. package/plugins/carthagent/src/server/orchestration.ts +56 -0
  158. package/plugins/carthagent/src/server/policy.ts +24 -0
  159. package/plugins/carthagent/src/server/providers.ts +424 -0
  160. package/plugins/carthagent/src/server/pull-request-rpc.ts +387 -0
  161. package/plugins/carthagent/src/server/session-controls.ts +82 -0
  162. package/plugins/carthagent/src/server/telemetry.ts +92 -0
  163. package/plugins/carthagent/src/server/workspace-rpc.ts +349 -0
  164. package/plugins/carthagent/src/session-rpc.ts +31 -0
  165. package/plugins/carthagent/src/testing.ts +85 -0
  166. package/plugins/carthagent/src/workspace-rpc.ts +133 -0
  167. package/plugins/carthagent/test-plugin/index.ts +4 -0
  168. package/plugins/carthagent/test-plugin/package.json +1 -0
  169. package/plugins/carthagent/tsconfig.json +19 -0
  170. package/plugins/carthagent/tui.ts +1 -0
  171. package/prompts/delivery.md +7 -0
  172. package/public/index.html +983 -0
  173. package/scenarios/cli/grade_cli.py +69 -0
  174. package/scenarios/cli/scenario.json +21 -0
  175. package/scenarios/game/baseline/minecraft.py +193 -0
  176. package/scenarios/game/context.md +1 -0
  177. package/scenarios/game/grade_minecraft_clone.py +603 -0
  178. package/scenarios/game/requirements.txt +2 -0
  179. package/scenarios/game/scenario.json +33 -0
  180. package/server.mjs +341 -0
  181. package/skills/game-development/SKILL.md +36 -0
  182. package/skills/game-development/assets/ursina_starter.py +98 -0
  183. package/skills/game-development/scripts/verify_ursina.py +80 -0
  184. package/skills/software-delivery/SKILL.md +50 -0
  185. package/skills/typescript-delivery/SKILL.md +69 -0
  186. package/tests/acceptance-review.test.mjs +13 -0
  187. package/tests/auth.test.mjs +234 -0
  188. package/tests/bounded-summary.test.mjs +68 -0
  189. package/tests/browser-bin.test.mjs +91 -0
  190. package/tests/browser.test.mjs +96 -0
  191. package/tests/budget-engine.test.mjs +110 -0
  192. package/tests/budget.test.mjs +23 -0
  193. package/tests/cli.test.mjs +245 -0
  194. package/tests/clipboard.test.mjs +79 -0
  195. package/tests/cloud-client.test.mjs +129 -0
  196. package/tests/cloud-control-plane.test.mjs +144 -0
  197. package/tests/cloud-gateway.test.mjs +147 -0
  198. package/tests/cloud-http.test.mjs +102 -0
  199. package/tests/cloud-ledger.test.mjs +75 -0
  200. package/tests/codegraph-query.test.mjs +66 -0
  201. package/tests/codegraph.test.mjs +142 -0
  202. package/tests/delivery-context.test.mjs +66 -0
  203. package/tests/delivery-review.test.mjs +139 -0
  204. package/tests/delivery.test.mjs +343 -0
  205. package/tests/engine-api.mjs +24 -0
  206. package/tests/experiential-extension.test.mjs +37 -0
  207. package/tests/experiential.test.mjs +300 -0
  208. package/tests/extension.test.mjs +921 -0
  209. package/tests/fixtures/archive-plugin/index.ts +10 -0
  210. package/tests/guidance.test.mjs +78 -0
  211. package/tests/model-registry.test.mjs +68 -0
  212. package/tests/models.test.mjs +70 -0
  213. package/tests/openai-idempotency.test.mjs +99 -0
  214. package/tests/opencode-archive-rpc.test.mjs +82 -0
  215. package/tests/opencode-delivery.test.mjs +231 -0
  216. package/tests/opencode-providers.test.mjs +414 -0
  217. package/tests/opencode-runtime.test.mjs +455 -0
  218. package/tests/opencode-session-controls.test.mjs +115 -0
  219. package/tests/opencode-session-options.test.mjs +26 -0
  220. package/tests/opencode-workspace.test.mjs +339 -0
  221. package/tests/outcome-contract.test.mjs +17 -0
  222. package/tests/picker.test.mjs +34 -0
  223. package/tests/plan-advisor.test.mjs +88 -0
  224. package/tests/plan-review-loop.test.mjs +53 -0
  225. package/tests/planning-advice.test.mjs +27 -0
  226. package/tests/planning-contract.test.mjs +65 -0
  227. package/tests/planning-startup.test.mjs +38 -0
  228. package/tests/planning-view.test.mjs +33 -0
  229. package/tests/planning.test.mjs +223 -0
  230. package/tests/probe-diagnostics.test.mjs +21 -0
  231. package/tests/pull-request-rpc.test.mjs +366 -0
  232. package/tests/review-state.test.mjs +32 -0
  233. package/tests/review.test.mjs +127 -0
  234. package/tests/server.test.mjs +252 -0
  235. package/tests/ship-jev.test.mjs +77 -0
  236. package/tests/ship-telemetry.test.mjs +333 -0
  237. package/tests/standard-workflow.test.mjs +28 -0
  238. package/tests/subscription-models.test.mjs +416 -0
  239. package/tests/subscriptions-extension.test.mjs +27 -0
  240. package/tests/terminal-title.test.mjs +13 -0
  241. package/tests/test_grade_minecraft_clone.py +199 -0
  242. package/tests/test_starter.py +78 -0
  243. package/tests/theme.test.mjs +175 -0
  244. package/tests/tui-copy-paste.test.mjs +54 -0
  245. package/tests/tui.test.mjs +808 -0
  246. package/tests/update-channels.test.mjs +129 -0
  247. package/tests/update.test.mjs +175 -0
  248. package/tests/webdriver.test.mjs +31 -0
  249. package/tests/workflow.test.mjs +47 -0
  250. package/tests/workspace-rpc.test.mjs +236 -0
  251. package/tests/workspace.test.mjs +24 -0
  252. package/tools/benchmark/advisor.test.mjs +7 -0
  253. package/tools/benchmark/advisor.ts +27 -0
  254. package/tools/benchmark/campaign.mjs +45 -0
  255. package/tools/benchmark/diagnose-request.mjs +40 -0
  256. package/tools/benchmark/eval-common.mjs +32 -0
  257. package/tools/benchmark/eval-ledger.mjs +22 -0
  258. package/tools/benchmark/eval-shop.mjs +26 -0
  259. package/tools/benchmark/eval-voxel.mjs +20 -0
  260. package/tools/benchmark/evaluate.mjs +24 -0
  261. package/tools/benchmark/evaluators.test.mjs +13 -0
  262. package/tools/benchmark/fixtures/shop/server.mjs +18 -0
  263. package/tools/benchmark/fixtures/shop/ui.html +8 -0
  264. package/tools/benchmark/freeze.mjs +30 -0
  265. package/tools/benchmark/gateway.mjs +91 -0
  266. package/tools/benchmark/gateway.test.mjs +38 -0
  267. package/tools/benchmark/generator.mjs +11 -0
  268. package/tools/benchmark/generator.test.mjs +26 -0
  269. package/tools/benchmark/guard.test.mjs +133 -0
  270. package/tools/benchmark/guard.ts +136 -0
  271. package/tools/benchmark/native-plugin/index.ts +24 -0
  272. package/tools/benchmark/planning-startup.test.mjs +47 -0
  273. package/tools/benchmark/preflight-live.mjs +31 -0
  274. package/tools/benchmark/preflight.mjs +22 -0
  275. package/tools/benchmark/replay-diagnostic.mjs +23 -0
  276. package/tools/benchmark/runner.mjs +141 -0
  277. package/tools/benchmark/runner.test.mjs +93 -0
  278. package/tools/benchmark/runtime.mjs +23 -0
  279. package/tools/benchmark/selftest.mjs +47 -0
  280. package/tools/benchmark/smoke-jev.mjs +5 -0
  281. package/tools/benchmark/tasks.mjs +20 -0
  282. package/tools/benchmark/transport.mjs +65 -0
  283. package/tools/benchmark/transport.test.mjs +44 -0
  284. package/tools/benchmark/upstream-error.mjs +18 -0
  285. package/tools/benchmark/upstream-error.test.mjs +10 -0
  286. package/tools/browser-check.mjs +109 -0
  287. package/tools/check-syntax.mjs +27 -0
  288. package/tools/evaluate-plan-advisor.mjs +20 -0
  289. package/tools/native-fixture.mjs +194 -0
  290. package/tools/native-pty-smoke.py +108 -0
  291. package/tools/native-report-plugin/index.ts +50 -0
  292. package/tools/native-report-plugin/package.json +7 -0
  293. package/tools/patch-compaction.mjs +24 -0
  294. package/tools/patch-model-catalog.mjs +12 -0
  295. package/tools/patch-print-shutdown.mjs +39 -0
  296. package/tools/repo-pilot/evaluator.cjs +32 -0
  297. package/tools/repo-pilot/reference.mjs +43 -0
  298. package/tools/repo-pilot/runner.mjs +85 -0
  299. package/tools/repo-pilot/sandbox-entry.mjs +12 -0
  300. package/tools/repo-pilot/tasks.mjs +20 -0
  301. package/tools/repo-pilot/type-evaluator.cjs +6 -0
  302. package/tools/test-native-controls.mjs +84 -0
  303. package/tools/test-native-delivery-host.mjs +307 -0
  304. package/tools/test-native-evaluation.mjs +46 -0
  305. package/tools/test-native-host.mjs +385 -0
  306. package/tools/test-native-outcomes.mjs +73 -0
  307. package/tools/test-native-package.mjs +70 -0
  308. package/tools/test-native-pty.mjs +20 -0
  309. package/tools/test-native-report.mjs +88 -0
  310. package/tools/test-native-swe-host.mjs +132 -0
  311. package/tools/test-native-swe.mjs +122 -0
  312. package/tools/test-picker-pty.py +45 -0
  313. package/tools/test-python.mjs +29 -0
  314. package/tools/test-webdriver.mjs +54 -0
  315. package/tools/verify-release-version.mjs +37 -0
  316. package/tools/webdriver-check.mjs +52 -0
  317. package/vendor/agent/bounded-summary.mjs +88 -0
  318. package/vendor/agent/chunks/anthropic-messages-VWZZOSJQ.js +6 -0
  319. package/vendor/agent/chunks/anthropic.js +75 -0
  320. package/vendor/agent/chunks/azure-openai-responses-BJLAM6CD.js +2 -0
  321. package/vendor/agent/chunks/bedrock-converse-stream.js +74 -0
  322. package/vendor/agent/chunks/chord-context.js +96 -0
  323. package/vendor/agent/chunks/chunk-4L3WN2XY.js +2 -0
  324. package/vendor/agent/chunks/chunk-6CYCI3EJ.js +12 -0
  325. package/vendor/agent/chunks/chunk-6R7UI4IY.js +2 -0
  326. package/vendor/agent/chunks/chunk-7ZC4UXSL.js +2 -0
  327. package/vendor/agent/chunks/chunk-AXIIZGTV.js +2 -0
  328. package/vendor/agent/chunks/chunk-CLNPYIDP.js +42 -0
  329. package/vendor/agent/chunks/chunk-DRQDKNXA.js +2 -0
  330. package/vendor/agent/chunks/chunk-GMWCTUPB.js +2 -0
  331. package/vendor/agent/chunks/chunk-IDDQWTHI.js +2 -0
  332. package/vendor/agent/chunks/chunk-JVUZSMYM.js +1548 -0
  333. package/vendor/agent/chunks/chunk-L2ZPNLYD.js +2 -0
  334. package/vendor/agent/chunks/chunk-NUHFSC37.js +25 -0
  335. package/vendor/agent/chunks/chunk-OUXLLA64.js +11 -0
  336. package/vendor/agent/chunks/chunk-PGXDEOVV.js +2 -0
  337. package/vendor/agent/chunks/chunk-PJACZCIR.js +2 -0
  338. package/vendor/agent/chunks/chunk-PRRNXB7S.js +2 -0
  339. package/vendor/agent/chunks/chunk-TEPMHNKQ.js +2 -0
  340. package/vendor/agent/chunks/chunk-TRDNDS6A.js +4 -0
  341. package/vendor/agent/chunks/chunk-U6ZMQKGD.js +50 -0
  342. package/vendor/agent/chunks/chunk-UAQELI3K.js +2 -0
  343. package/vendor/agent/chunks/chunk-USJZMAIR.js +2 -0
  344. package/vendor/agent/chunks/chunk-XDUWOHPL.js +6 -0
  345. package/vendor/agent/chunks/chunk-XNGRGP62.js +2 -0
  346. package/vendor/agent/chunks/github-copilot.js +2 -0
  347. package/vendor/agent/chunks/google-generative-ai-Q2K7FBDI.js +2 -0
  348. package/vendor/agent/chunks/google-vertex-7UJBF4S7.js +2 -0
  349. package/vendor/agent/chunks/https-proxy-agent-2VXB7436.js +13 -0
  350. package/vendor/agent/chunks/image-resize-worker.js +2 -0
  351. package/vendor/agent/chunks/kimi-coding.js +2 -0
  352. package/vendor/agent/chunks/lib-HGQMNYVT.js +9 -0
  353. package/vendor/agent/chunks/mistral-conversations-4M6BZBX6.js +5 -0
  354. package/vendor/agent/chunks/multipart-parser-SQ6GDJL7.js +3 -0
  355. package/vendor/agent/chunks/node-KG362ECQ.js +16 -0
  356. package/vendor/agent/chunks/node-TWVVAGPO.js +2 -0
  357. package/vendor/agent/chunks/openai-codex-responses-R6VYZTVY.js +10 -0
  358. package/vendor/agent/chunks/openai-codex.js +75 -0
  359. package/vendor/agent/chunks/openai-completions-EKZT2IH2.js +7 -0
  360. package/vendor/agent/chunks/openai-responses-TFDINO6W.js +2 -0
  361. package/vendor/agent/chunks/openrouter-images-N4XVVFSD.js +2 -0
  362. package/vendor/agent/chunks/openrouter.js +75 -0
  363. package/vendor/agent/chunks/pi-messages-PML4SPVJ.js +8 -0
  364. package/vendor/agent/chunks/radius.js +75 -0
  365. package/vendor/agent/chunks/src-UK77SYZE.js +4 -0
  366. package/vendor/agent/chunks/xai.js +2 -0
  367. package/vendor/agent/cli.js +3 -0
  368. package/vendor/agent/dist/modes/interactive/theme/dark.json +91 -0
  369. package/vendor/agent/dist/modes/interactive/theme/light.json +90 -0
  370. package/vendor/agent/dist/modes/interactive/theme/theme-schema.json +356 -0
  371. package/vendor/agent/index.js +2 -0
  372. package/vendor/agent/modes/interactive/theme/dark.json +91 -0
  373. package/vendor/agent/modes/interactive/theme/light.json +90 -0
  374. package/vendor/agent/modes/interactive/theme/theme-schema.json +356 -0
  375. package/vendor/agent/package.json +14 -0
  376. package/vendor/agent/rpc-entry.js +3 -0
  377. package/vendor/agent/theme/dark.json +91 -0
  378. package/vendor/agent/theme/light.json +90 -0
  379. package/vendor/agent/theme/theme-schema.json +356 -0
@@ -0,0 +1,700 @@
1
+ {
2
+ "version": 1,
3
+ "providers": {
4
+ "anthropic": [
5
+ {
6
+ "id": "claude-opus-5-5",
7
+ "name": "Claude Opus 5.5",
8
+ "provider": "anthropic",
9
+ "api": "anthropic-messages",
10
+ "baseUrl": "https://api.anthropic.com",
11
+ "reasoning": true,
12
+ "input": ["text", "image"],
13
+ "contextWindow": 1000000,
14
+ "maxTokens": 128000,
15
+ "thinkingLevelMap": {"off": null, "xhigh": "xhigh", "max": "max"},
16
+ "compat": {"forceAdaptiveThinking": true, "supportsTemperature": false, "supportsStrictTools": true}
17
+ },
18
+ {
19
+ "id": "claude-fable-5",
20
+ "name": "Claude Fable 5",
21
+ "api": "anthropic-messages",
22
+ "provider": "anthropic",
23
+ "baseUrl": "https://api.anthropic.com",
24
+ "reasoning": true,
25
+ "input": [
26
+ "text",
27
+ "image"
28
+ ],
29
+ "cost": {
30
+ "input": 10,
31
+ "output": 50,
32
+ "cacheRead": 1,
33
+ "cacheWrite": 12.5
34
+ },
35
+ "contextWindow": 1000000,
36
+ "maxTokens": 128000,
37
+ "thinkingLevelMap": {
38
+ "off": null,
39
+ "xhigh": "xhigh",
40
+ "max": "max"
41
+ },
42
+ "compat": {
43
+ "forceAdaptiveThinking": true,
44
+ "supportsStrictTools": true,
45
+ "allowedFallbackModels": [
46
+ {
47
+ "provider": "anthropic",
48
+ "model": "claude-opus-4-8",
49
+ "cost": {
50
+ "input": 5,
51
+ "output": 25,
52
+ "cacheRead": 0.5,
53
+ "cacheWrite": 6.25
54
+ }
55
+ },
56
+ {
57
+ "provider": "anthropic",
58
+ "model": "claude-opus-5",
59
+ "cost": {
60
+ "input": 5,
61
+ "output": 25,
62
+ "cacheRead": 0.5,
63
+ "cacheWrite": 6.25
64
+ }
65
+ }
66
+ ]
67
+ }
68
+ },
69
+ {
70
+ "id": "claude-fable-5-1",
71
+ "name": "Claude Fable 5.1",
72
+ "api": "anthropic-messages",
73
+ "provider": "anthropic",
74
+ "baseUrl": "https://api.anthropic.com",
75
+ "reasoning": true,
76
+ "input": [
77
+ "text",
78
+ "image"
79
+ ],
80
+ "cost": {
81
+ "input": 10,
82
+ "output": 50,
83
+ "cacheRead": 0.25,
84
+ "cacheWrite": 12.5
85
+ },
86
+ "contextWindow": 1000000,
87
+ "maxTokens": 128000,
88
+ "compat": {
89
+ "supportsMidConvoEffort": true,
90
+ "forceAdaptiveThinking": true,
91
+ "supportsStrictTools": true
92
+ },
93
+ "thinkingLevelMap": {
94
+ "off": null,
95
+ "xhigh": "xhigh",
96
+ "max": "max"
97
+ }
98
+ },
99
+ {
100
+ "id": "claude-haiku-4-5",
101
+ "name": "Claude Haiku 4.5 (latest)",
102
+ "api": "anthropic-messages",
103
+ "provider": "anthropic",
104
+ "baseUrl": "https://api.anthropic.com",
105
+ "reasoning": true,
106
+ "input": [
107
+ "text",
108
+ "image"
109
+ ],
110
+ "cost": {
111
+ "input": 1,
112
+ "output": 5,
113
+ "cacheRead": 0.1,
114
+ "cacheWrite": 1.25
115
+ },
116
+ "contextWindow": 200000,
117
+ "maxTokens": 64000,
118
+ "compat": {
119
+ "supportsStrictTools": true
120
+ }
121
+ },
122
+ {
123
+ "id": "claude-haiku-4-5-20251001",
124
+ "name": "Claude Haiku 4.5",
125
+ "api": "anthropic-messages",
126
+ "provider": "anthropic",
127
+ "baseUrl": "https://api.anthropic.com",
128
+ "reasoning": true,
129
+ "input": [
130
+ "text",
131
+ "image"
132
+ ],
133
+ "cost": {
134
+ "input": 1,
135
+ "output": 5,
136
+ "cacheRead": 0.1,
137
+ "cacheWrite": 1.25
138
+ },
139
+ "contextWindow": 200000,
140
+ "maxTokens": 64000,
141
+ "compat": {
142
+ "supportsStrictTools": true
143
+ }
144
+ },
145
+ {
146
+ "id": "claude-opus-4-5",
147
+ "name": "Claude Opus 4.5 (latest)",
148
+ "api": "anthropic-messages",
149
+ "provider": "anthropic",
150
+ "baseUrl": "https://api.anthropic.com",
151
+ "reasoning": true,
152
+ "input": [
153
+ "text",
154
+ "image"
155
+ ],
156
+ "cost": {
157
+ "input": 5,
158
+ "output": 25,
159
+ "cacheRead": 0.5,
160
+ "cacheWrite": 6.25
161
+ },
162
+ "contextWindow": 200000,
163
+ "maxTokens": 64000,
164
+ "compat": {
165
+ "supportsStrictTools": true
166
+ }
167
+ },
168
+ {
169
+ "id": "claude-opus-4-5-20251101",
170
+ "name": "Claude Opus 4.5",
171
+ "api": "anthropic-messages",
172
+ "provider": "anthropic",
173
+ "baseUrl": "https://api.anthropic.com",
174
+ "reasoning": true,
175
+ "input": [
176
+ "text",
177
+ "image"
178
+ ],
179
+ "cost": {
180
+ "input": 5,
181
+ "output": 25,
182
+ "cacheRead": 0.5,
183
+ "cacheWrite": 6.25
184
+ },
185
+ "contextWindow": 200000,
186
+ "maxTokens": 64000,
187
+ "compat": {
188
+ "supportsStrictTools": true
189
+ }
190
+ },
191
+ {
192
+ "id": "claude-opus-4-6",
193
+ "name": "Claude Opus 4.6",
194
+ "api": "anthropic-messages",
195
+ "provider": "anthropic",
196
+ "baseUrl": "https://api.anthropic.com",
197
+ "reasoning": true,
198
+ "input": [
199
+ "text",
200
+ "image"
201
+ ],
202
+ "cost": {
203
+ "input": 5,
204
+ "output": 25,
205
+ "cacheRead": 0.5,
206
+ "cacheWrite": 6.25
207
+ },
208
+ "contextWindow": 1000000,
209
+ "maxTokens": 128000,
210
+ "thinkingLevelMap": {
211
+ "max": "max"
212
+ },
213
+ "compat": {
214
+ "forceAdaptiveThinking": true,
215
+ "supportsStrictTools": true
216
+ }
217
+ },
218
+ {
219
+ "id": "claude-opus-4-7",
220
+ "name": "Claude Opus 4.7",
221
+ "api": "anthropic-messages",
222
+ "provider": "anthropic",
223
+ "baseUrl": "https://api.anthropic.com",
224
+ "reasoning": true,
225
+ "input": [
226
+ "text",
227
+ "image"
228
+ ],
229
+ "cost": {
230
+ "input": 5,
231
+ "output": 25,
232
+ "cacheRead": 0.5,
233
+ "cacheWrite": 6.25
234
+ },
235
+ "contextWindow": 1000000,
236
+ "maxTokens": 128000,
237
+ "thinkingLevelMap": {
238
+ "xhigh": "xhigh",
239
+ "max": "max"
240
+ },
241
+ "compat": {
242
+ "forceAdaptiveThinking": true,
243
+ "supportsTemperature": false,
244
+ "supportsStrictTools": true
245
+ }
246
+ },
247
+ {
248
+ "id": "claude-opus-4-8",
249
+ "name": "Claude Opus 4.8",
250
+ "api": "anthropic-messages",
251
+ "provider": "anthropic",
252
+ "baseUrl": "https://api.anthropic.com",
253
+ "reasoning": true,
254
+ "input": [
255
+ "text",
256
+ "image"
257
+ ],
258
+ "cost": {
259
+ "input": 5,
260
+ "output": 25,
261
+ "cacheRead": 0.5,
262
+ "cacheWrite": 6.25
263
+ },
264
+ "contextWindow": 1000000,
265
+ "maxTokens": 128000,
266
+ "thinkingLevelMap": {
267
+ "xhigh": "xhigh",
268
+ "max": "max"
269
+ },
270
+ "compat": {
271
+ "forceAdaptiveThinking": true,
272
+ "supportsTemperature": false,
273
+ "supportsStrictTools": true
274
+ }
275
+ },
276
+ {
277
+ "id": "claude-opus-5",
278
+ "name": "Claude Opus 5",
279
+ "api": "anthropic-messages",
280
+ "provider": "anthropic",
281
+ "baseUrl": "https://api.anthropic.com",
282
+ "reasoning": true,
283
+ "input": [
284
+ "text",
285
+ "image"
286
+ ],
287
+ "cost": {
288
+ "input": 5,
289
+ "output": 25,
290
+ "cacheRead": 0.5,
291
+ "cacheWrite": 6.25
292
+ },
293
+ "contextWindow": 1000000,
294
+ "maxTokens": 128000,
295
+ "compat": {
296
+ "supportsMidConvoEffort": true,
297
+ "forceAdaptiveThinking": true,
298
+ "supportsTemperature": false,
299
+ "supportsStrictTools": true
300
+ },
301
+ "thinkingLevelMap": {
302
+ "off": null,
303
+ "xhigh": "xhigh",
304
+ "max": "max"
305
+ }
306
+ },
307
+ {
308
+ "id": "claude-sonnet-4-5",
309
+ "name": "Claude Sonnet 4.5 (latest)",
310
+ "api": "anthropic-messages",
311
+ "provider": "anthropic",
312
+ "baseUrl": "https://api.anthropic.com",
313
+ "reasoning": true,
314
+ "input": [
315
+ "text",
316
+ "image"
317
+ ],
318
+ "cost": {
319
+ "input": 3,
320
+ "output": 15,
321
+ "cacheRead": 0.3,
322
+ "cacheWrite": 3.75
323
+ },
324
+ "contextWindow": 1000000,
325
+ "maxTokens": 64000,
326
+ "compat": {
327
+ "supportsStrictTools": true
328
+ }
329
+ },
330
+ {
331
+ "id": "claude-sonnet-4-5-20250929",
332
+ "name": "Claude Sonnet 4.5",
333
+ "api": "anthropic-messages",
334
+ "provider": "anthropic",
335
+ "baseUrl": "https://api.anthropic.com",
336
+ "reasoning": true,
337
+ "input": [
338
+ "text",
339
+ "image"
340
+ ],
341
+ "cost": {
342
+ "input": 3,
343
+ "output": 15,
344
+ "cacheRead": 0.3,
345
+ "cacheWrite": 3.75
346
+ },
347
+ "contextWindow": 1000000,
348
+ "maxTokens": 64000,
349
+ "compat": {
350
+ "supportsStrictTools": true
351
+ }
352
+ },
353
+ {
354
+ "id": "claude-sonnet-4-6",
355
+ "name": "Claude Sonnet 4.6",
356
+ "api": "anthropic-messages",
357
+ "provider": "anthropic",
358
+ "baseUrl": "https://api.anthropic.com",
359
+ "reasoning": true,
360
+ "input": [
361
+ "text",
362
+ "image"
363
+ ],
364
+ "cost": {
365
+ "input": 3,
366
+ "output": 15,
367
+ "cacheRead": 0.3,
368
+ "cacheWrite": 3.75
369
+ },
370
+ "contextWindow": 1000000,
371
+ "maxTokens": 128000,
372
+ "thinkingLevelMap": {
373
+ "max": "max"
374
+ },
375
+ "compat": {
376
+ "forceAdaptiveThinking": true,
377
+ "supportsStrictTools": true
378
+ }
379
+ },
380
+ {
381
+ "id": "claude-sonnet-5",
382
+ "name": "Claude Sonnet 5",
383
+ "api": "anthropic-messages",
384
+ "provider": "anthropic",
385
+ "baseUrl": "https://api.anthropic.com",
386
+ "reasoning": true,
387
+ "input": [
388
+ "text",
389
+ "image"
390
+ ],
391
+ "cost": {
392
+ "input": 2,
393
+ "output": 10,
394
+ "cacheRead": 0.2,
395
+ "cacheWrite": 2.5
396
+ },
397
+ "contextWindow": 1000000,
398
+ "maxTokens": 128000,
399
+ "thinkingLevelMap": {
400
+ "xhigh": "xhigh",
401
+ "max": "max"
402
+ },
403
+ "compat": {
404
+ "forceAdaptiveThinking": true,
405
+ "supportsStrictTools": true
406
+ }
407
+ }
408
+ ],
409
+ "openai-codex": [
410
+ {
411
+ "id": "gpt-5.3-codex-spark",
412
+ "name": "GPT-5.3 Codex Spark",
413
+ "api": "openai-codex-responses",
414
+ "provider": "openai-codex",
415
+ "baseUrl": "https://chatgpt.com/backend-api",
416
+ "reasoning": true,
417
+ "input": [
418
+ "text"
419
+ ],
420
+ "cost": {
421
+ "input": 1.75,
422
+ "output": 14,
423
+ "cacheRead": 0.175,
424
+ "cacheWrite": 0
425
+ },
426
+ "contextWindow": 128000,
427
+ "maxTokens": 128000,
428
+ "thinkingLevelMap": {
429
+ "xhigh": "xhigh",
430
+ "minimal": "low"
431
+ },
432
+ "compat": {
433
+ "supportsOpenAIGrammarTools": true
434
+ }
435
+ },
436
+ {
437
+ "id": "gpt-5.4",
438
+ "name": "GPT-5.4",
439
+ "api": "openai-codex-responses",
440
+ "provider": "openai-codex",
441
+ "baseUrl": "https://chatgpt.com/backend-api",
442
+ "reasoning": true,
443
+ "input": [
444
+ "text",
445
+ "image"
446
+ ],
447
+ "cost": {
448
+ "input": 2.5,
449
+ "output": 15,
450
+ "cacheRead": 0.25,
451
+ "cacheWrite": 0,
452
+ "tiers": [
453
+ {
454
+ "inputTokensAbove": 272000,
455
+ "input": 5,
456
+ "output": 22.5,
457
+ "cacheRead": 0.5,
458
+ "cacheWrite": 0
459
+ }
460
+ ]
461
+ },
462
+ "contextWindow": 272000,
463
+ "maxTokens": 128000,
464
+ "thinkingLevelMap": {
465
+ "xhigh": "xhigh",
466
+ "minimal": "low"
467
+ },
468
+ "compat": {
469
+ "supportsOpenAIGrammarTools": true,
470
+ "supportsToolSearch": true
471
+ }
472
+ },
473
+ {
474
+ "id": "gpt-5.4-mini",
475
+ "name": "GPT-5.4 mini",
476
+ "api": "openai-codex-responses",
477
+ "provider": "openai-codex",
478
+ "baseUrl": "https://chatgpt.com/backend-api",
479
+ "reasoning": true,
480
+ "input": [
481
+ "text",
482
+ "image"
483
+ ],
484
+ "cost": {
485
+ "input": 0.75,
486
+ "output": 4.5,
487
+ "cacheRead": 0.075,
488
+ "cacheWrite": 0
489
+ },
490
+ "contextWindow": 272000,
491
+ "maxTokens": 128000,
492
+ "thinkingLevelMap": {
493
+ "xhigh": "xhigh",
494
+ "minimal": "low"
495
+ },
496
+ "compat": {
497
+ "supportsOpenAIGrammarTools": true,
498
+ "supportsToolSearch": true
499
+ }
500
+ },
501
+ {
502
+ "id": "gpt-5.5",
503
+ "name": "GPT-5.5",
504
+ "api": "openai-codex-responses",
505
+ "provider": "openai-codex",
506
+ "baseUrl": "https://chatgpt.com/backend-api",
507
+ "reasoning": true,
508
+ "input": [
509
+ "text",
510
+ "image"
511
+ ],
512
+ "cost": {
513
+ "input": 5,
514
+ "output": 30,
515
+ "cacheRead": 0.5,
516
+ "cacheWrite": 0,
517
+ "tiers": [
518
+ {
519
+ "inputTokensAbove": 272000,
520
+ "input": 10,
521
+ "output": 45,
522
+ "cacheRead": 1,
523
+ "cacheWrite": 0
524
+ }
525
+ ]
526
+ },
527
+ "contextWindow": 272000,
528
+ "maxTokens": 128000,
529
+ "thinkingLevelMap": {
530
+ "xhigh": "xhigh",
531
+ "minimal": "low"
532
+ },
533
+ "compat": {
534
+ "supportsOpenAIGrammarTools": true,
535
+ "supportsToolSearch": true
536
+ }
537
+ },
538
+ {
539
+ "id": "gpt-5.6-luna",
540
+ "name": "GPT-5.6 Luna",
541
+ "api": "openai-codex-responses",
542
+ "provider": "openai-codex",
543
+ "baseUrl": "https://chatgpt.com/backend-api",
544
+ "reasoning": true,
545
+ "input": [
546
+ "text",
547
+ "image"
548
+ ],
549
+ "cost": {
550
+ "input": 0.2,
551
+ "output": 1.2,
552
+ "cacheRead": 0.02,
553
+ "cacheWrite": 0.25,
554
+ "tiers": [
555
+ {
556
+ "inputTokensAbove": 272000,
557
+ "input": 0.4,
558
+ "output": 1.8,
559
+ "cacheRead": 0.04,
560
+ "cacheWrite": 0.5
561
+ }
562
+ ]
563
+ },
564
+ "contextWindow": 272000,
565
+ "maxTokens": 128000,
566
+ "thinkingLevelMap": {
567
+ "xhigh": "xhigh",
568
+ "max": "max",
569
+ "minimal": "low"
570
+ },
571
+ "compat": {
572
+ "supportsOpenAIGrammarTools": true,
573
+ "supportsAdditionalTools": true,
574
+ "supportsToolSearch": true
575
+ }
576
+ },
577
+ {
578
+ "id": "gpt-5.6-sol",
579
+ "name": "GPT-5.6 Sol",
580
+ "api": "openai-codex-responses",
581
+ "provider": "openai-codex",
582
+ "baseUrl": "https://chatgpt.com/backend-api",
583
+ "reasoning": true,
584
+ "input": [
585
+ "text",
586
+ "image"
587
+ ],
588
+ "cost": {
589
+ "input": 5,
590
+ "output": 30,
591
+ "cacheRead": 0.5,
592
+ "cacheWrite": 6.25,
593
+ "tiers": [
594
+ {
595
+ "inputTokensAbove": 272000,
596
+ "input": 10,
597
+ "output": 45,
598
+ "cacheRead": 1,
599
+ "cacheWrite": 12.5
600
+ }
601
+ ]
602
+ },
603
+ "contextWindow": 272000,
604
+ "maxTokens": 128000,
605
+ "thinkingLevelMap": {
606
+ "xhigh": "xhigh",
607
+ "max": "max",
608
+ "minimal": "low"
609
+ },
610
+ "compat": {
611
+ "supportsOpenAIGrammarTools": true,
612
+ "supportsAdditionalTools": true,
613
+ "supportsToolSearch": true
614
+ }
615
+ },
616
+ {
617
+ "id": "gpt-5.6-terra",
618
+ "name": "GPT-5.6 Terra",
619
+ "api": "openai-codex-responses",
620
+ "provider": "openai-codex",
621
+ "baseUrl": "https://chatgpt.com/backend-api",
622
+ "reasoning": true,
623
+ "input": [
624
+ "text",
625
+ "image"
626
+ ],
627
+ "cost": {
628
+ "input": 2,
629
+ "output": 12,
630
+ "cacheRead": 0.2,
631
+ "cacheWrite": 2.5,
632
+ "tiers": [
633
+ {
634
+ "inputTokensAbove": 272000,
635
+ "input": 4,
636
+ "output": 18,
637
+ "cacheRead": 0.4,
638
+ "cacheWrite": 5
639
+ }
640
+ ]
641
+ },
642
+ "contextWindow": 272000,
643
+ "maxTokens": 128000,
644
+ "thinkingLevelMap": {
645
+ "xhigh": "xhigh",
646
+ "max": "max",
647
+ "minimal": "low"
648
+ },
649
+ "compat": {
650
+ "supportsOpenAIGrammarTools": true,
651
+ "supportsAdditionalTools": true,
652
+ "supportsToolSearch": true
653
+ }
654
+ },
655
+ {
656
+ "id": "gpt-6-astra",
657
+ "name": "GPT-6 Astra",
658
+ "api": "openai-codex-responses",
659
+ "provider": "openai-codex",
660
+ "baseUrl": "https://chatgpt.com/backend-api",
661
+ "reasoning": true,
662
+ "input": [
663
+ "text",
664
+ "image"
665
+ ],
666
+ "cost": {
667
+ "input": 10,
668
+ "output": 50,
669
+ "cacheRead": 1,
670
+ "cacheWrite": 12.5,
671
+ "tiers": [
672
+ {
673
+ "inputTokensAbove": 272000,
674
+ "input": 20,
675
+ "output": 75,
676
+ "cacheRead": 2,
677
+ "cacheWrite": 25
678
+ }
679
+ ]
680
+ },
681
+ "contextWindow": 272000,
682
+ "maxTokens": 128000,
683
+ "thinkingLevelMap": {
684
+ "off": null,
685
+ "minimal": "low",
686
+ "low": "low",
687
+ "medium": "medium",
688
+ "high": "high",
689
+ "xhigh": "xhigh",
690
+ "max": "max"
691
+ },
692
+ "compat": {
693
+ "supportsOpenAIGrammarTools": true,
694
+ "supportsAdditionalTools": true,
695
+ "supportsToolSearch": true
696
+ }
697
+ }
698
+ ]
699
+ }
700
+ }
@@ -0,0 +1,7 @@
1
+ import catalog from './model-catalog.json' with { type: 'json' };
2
+
3
+ /** Reviewed, offline metadata. Never fetch a third-party model catalog. */
4
+ export function catalogModels(providerId) {
5
+ const models = catalog.providers[providerId] || [];
6
+ return structuredClone(models);
7
+ }