@qduc/term2 0.12.0 → 0.14.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 (635) hide show
  1. package/README.md +6 -1
  2. package/dist/agent.d.ts +3 -0
  3. package/dist/agent.d.ts.map +1 -1
  4. package/dist/agent.js +38 -14
  5. package/dist/agent.js.map +1 -1
  6. package/dist/app.d.ts.map +1 -1
  7. package/dist/app.js +91 -17
  8. package/dist/app.js.map +1 -1
  9. package/dist/cli.js +34 -23
  10. package/dist/cli.js.map +1 -1
  11. package/dist/commands/auto-approve-command.d.ts.map +1 -1
  12. package/dist/commands/auto-approve-command.js +12 -4
  13. package/dist/commands/auto-approve-command.js.map +1 -1
  14. package/dist/commands/compact-command.d.ts +6 -0
  15. package/dist/commands/compact-command.d.ts.map +1 -0
  16. package/dist/commands/compact-command.js +12 -0
  17. package/dist/commands/compact-command.js.map +1 -0
  18. package/dist/commands/copy-command.d.ts +3 -1
  19. package/dist/commands/copy-command.d.ts.map +1 -1
  20. package/dist/commands/copy-command.js +36 -9
  21. package/dist/commands/copy-command.js.map +1 -1
  22. package/dist/commands/sandbox-command.d.ts.map +1 -1
  23. package/dist/commands/sandbox-command.js +6 -1
  24. package/dist/commands/sandbox-command.js.map +1 -1
  25. package/dist/components/InputBox.d.ts +1 -2
  26. package/dist/components/InputBox.d.ts.map +1 -1
  27. package/dist/components/InputBox.js +5 -1
  28. package/dist/components/InputBox.js.map +1 -1
  29. package/dist/components/input/ApplicationInputSurface.d.ts +7 -2
  30. package/dist/components/input/ApplicationInputSurface.d.ts.map +1 -1
  31. package/dist/components/input/ApplicationInputSurface.js +7 -1
  32. package/dist/components/input/ApplicationInputSurface.js.map +1 -1
  33. package/dist/components/input/CopyMenuSession.d.ts +16 -0
  34. package/dist/components/input/CopyMenuSession.d.ts.map +1 -0
  35. package/dist/components/input/CopyMenuSession.js +49 -0
  36. package/dist/components/input/CopyMenuSession.js.map +1 -0
  37. package/dist/components/input/FirstRunSetupPrompt.d.ts +9 -0
  38. package/dist/components/input/FirstRunSetupPrompt.d.ts.map +1 -0
  39. package/dist/components/input/FirstRunSetupPrompt.js +20 -0
  40. package/dist/components/input/FirstRunSetupPrompt.js.map +1 -0
  41. package/dist/components/input/MentorPoolMenuSession.d.ts +9 -0
  42. package/dist/components/input/MentorPoolMenuSession.d.ts.map +1 -0
  43. package/dist/components/input/MentorPoolMenuSession.js +131 -0
  44. package/dist/components/input/MentorPoolMenuSession.js.map +1 -0
  45. package/dist/components/input/MenuSurface.d.ts.map +1 -1
  46. package/dist/components/input/MenuSurface.js +16 -2
  47. package/dist/components/input/MenuSurface.js.map +1 -1
  48. package/dist/components/input/ModelMenuSession.d.ts.map +1 -1
  49. package/dist/components/input/ModelMenuSession.js +11 -1
  50. package/dist/components/input/ModelMenuSession.js.map +1 -1
  51. package/dist/components/input/ProviderMenuSession.d.ts.map +1 -1
  52. package/dist/components/input/ProviderMenuSession.js +8 -2
  53. package/dist/components/input/ProviderMenuSession.js.map +1 -1
  54. package/dist/components/input/SettingsMenuSession.d.ts.map +1 -1
  55. package/dist/components/input/SettingsMenuSession.js +35 -22
  56. package/dist/components/input/SettingsMenuSession.js.map +1 -1
  57. package/dist/components/input/SkillsMenuSession.d.ts +3 -0
  58. package/dist/components/input/SkillsMenuSession.d.ts.map +1 -1
  59. package/dist/components/input/SkillsMenuSession.js +6 -12
  60. package/dist/components/input/SkillsMenuSession.js.map +1 -1
  61. package/dist/components/input/SlashMenuSession.d.ts +11 -3
  62. package/dist/components/input/SlashMenuSession.d.ts.map +1 -1
  63. package/dist/components/input/SlashMenuSession.js +54 -42
  64. package/dist/components/input/SlashMenuSession.js.map +1 -1
  65. package/dist/components/input/menu-controller.d.ts.map +1 -1
  66. package/dist/components/input/menu-controller.js +18 -1
  67. package/dist/components/input/menu-controller.js.map +1 -1
  68. package/dist/components/input/menu-registry.d.ts.map +1 -1
  69. package/dist/components/input/menu-registry.js +4 -0
  70. package/dist/components/input/menu-registry.js.map +1 -1
  71. package/dist/components/input/menu-types.d.ts +12 -0
  72. package/dist/components/input/menu-types.d.ts.map +1 -1
  73. package/dist/components/input/triggers.d.ts.map +1 -1
  74. package/dist/components/input/triggers.js +33 -0
  75. package/dist/components/input/triggers.js.map +1 -1
  76. package/dist/components/layout/BackgroundTaskManager.d.ts.map +1 -1
  77. package/dist/components/layout/BackgroundTaskManager.js +28 -10
  78. package/dist/components/layout/BackgroundTaskManager.js.map +1 -1
  79. package/dist/components/layout/BackgroundTasksPanel.d.ts +4 -1
  80. package/dist/components/layout/BackgroundTasksPanel.d.ts.map +1 -1
  81. package/dist/components/layout/BackgroundTasksPanel.js +58 -12
  82. package/dist/components/layout/BackgroundTasksPanel.js.map +1 -1
  83. package/dist/components/layout/BottomArea.d.ts +16 -2
  84. package/dist/components/layout/BottomArea.d.ts.map +1 -1
  85. package/dist/components/layout/BottomArea.js +7 -4
  86. package/dist/components/layout/BottomArea.js.map +1 -1
  87. package/dist/components/layout/StatusBar.d.ts.map +1 -1
  88. package/dist/components/layout/StatusBar.js +66 -51
  89. package/dist/components/layout/StatusBar.js.map +1 -1
  90. package/dist/components/menu/CopyMenu.d.ts +10 -0
  91. package/dist/components/menu/CopyMenu.d.ts.map +1 -0
  92. package/dist/components/menu/CopyMenu.js +20 -0
  93. package/dist/components/menu/CopyMenu.js.map +1 -0
  94. package/dist/components/menu/MentorPoolSelectionMenu.d.ts +13 -0
  95. package/dist/components/menu/MentorPoolSelectionMenu.d.ts.map +1 -0
  96. package/dist/components/menu/MentorPoolSelectionMenu.js +98 -0
  97. package/dist/components/menu/MentorPoolSelectionMenu.js.map +1 -0
  98. package/dist/components/menu/ModelSelectionMenu.d.ts +2 -0
  99. package/dist/components/menu/ModelSelectionMenu.d.ts.map +1 -1
  100. package/dist/components/menu/ModelSelectionMenu.js +26 -7
  101. package/dist/components/menu/ModelSelectionMenu.js.map +1 -1
  102. package/dist/components/menu/ProviderSelectionMenu.d.ts +1 -0
  103. package/dist/components/menu/ProviderSelectionMenu.d.ts.map +1 -1
  104. package/dist/components/menu/ProviderSelectionMenu.js +12 -4
  105. package/dist/components/menu/ProviderSelectionMenu.js.map +1 -1
  106. package/dist/components/menu/SlashCommandMenu.d.ts.map +1 -1
  107. package/dist/components/menu/SlashCommandMenu.js +12 -9
  108. package/dist/components/menu/SlashCommandMenu.js.map +1 -1
  109. package/dist/components/message/CommandMessage.js +4 -0
  110. package/dist/components/message/CommandMessage.js.map +1 -1
  111. package/dist/components/message/SubagentActivityMessage.d.ts +1 -0
  112. package/dist/components/message/SubagentActivityMessage.d.ts.map +1 -1
  113. package/dist/components/message/SubagentActivityMessage.js +14 -1
  114. package/dist/components/message/SubagentActivityMessage.js.map +1 -1
  115. package/dist/components/prompt/ApprovalPrompt.d.ts.map +1 -1
  116. package/dist/components/prompt/ApprovalPrompt.js +0 -25
  117. package/dist/components/prompt/ApprovalPrompt.js.map +1 -1
  118. package/dist/context/InputContext.d.ts +1 -1
  119. package/dist/context/InputContext.d.ts.map +1 -1
  120. package/dist/context/InputContext.js +4 -0
  121. package/dist/context/InputContext.js.map +1 -1
  122. package/dist/contracts/application-stream.d.ts +13 -0
  123. package/dist/contracts/application-stream.d.ts.map +1 -1
  124. package/dist/contracts/provider-input.d.ts +15 -0
  125. package/dist/contracts/provider-input.d.ts.map +1 -1
  126. package/dist/contracts/provider-input.js +6 -1
  127. package/dist/contracts/provider-input.js.map +1 -1
  128. package/dist/hooks/conversation-ui-reducer.d.ts +6 -0
  129. package/dist/hooks/conversation-ui-reducer.d.ts.map +1 -1
  130. package/dist/hooks/conversation-ui-reducer.js +3 -0
  131. package/dist/hooks/conversation-ui-reducer.js.map +1 -1
  132. package/dist/hooks/settings-completion-config.d.ts.map +1 -1
  133. package/dist/hooks/settings-completion-config.js +12 -2
  134. package/dist/hooks/settings-completion-config.js.map +1 -1
  135. package/dist/hooks/use-app-commands.d.ts +4 -1
  136. package/dist/hooks/use-app-commands.d.ts.map +1 -1
  137. package/dist/hooks/use-app-commands.js +6 -2
  138. package/dist/hooks/use-app-commands.js.map +1 -1
  139. package/dist/hooks/use-app-keyboard-shortcuts.d.ts +7 -1
  140. package/dist/hooks/use-app-keyboard-shortcuts.d.ts.map +1 -1
  141. package/dist/hooks/use-app-keyboard-shortcuts.js +77 -7
  142. package/dist/hooks/use-app-keyboard-shortcuts.js.map +1 -1
  143. package/dist/hooks/use-conversation.d.ts +6 -2
  144. package/dist/hooks/use-conversation.d.ts.map +1 -1
  145. package/dist/hooks/use-conversation.js +21 -4
  146. package/dist/hooks/use-conversation.js.map +1 -1
  147. package/dist/hooks/use-debounced-value.d.ts +13 -0
  148. package/dist/hooks/use-debounced-value.d.ts.map +1 -0
  149. package/dist/hooks/use-debounced-value.js +27 -0
  150. package/dist/hooks/use-debounced-value.js.map +1 -0
  151. package/dist/hooks/use-first-run-setup.d.ts +24 -0
  152. package/dist/hooks/use-first-run-setup.d.ts.map +1 -0
  153. package/dist/hooks/use-first-run-setup.js +114 -0
  154. package/dist/hooks/use-first-run-setup.js.map +1 -0
  155. package/dist/hooks/use-mentor-pool-selection.d.ts +103 -0
  156. package/dist/hooks/use-mentor-pool-selection.d.ts.map +1 -0
  157. package/dist/hooks/use-mentor-pool-selection.js +642 -0
  158. package/dist/hooks/use-mentor-pool-selection.js.map +1 -0
  159. package/dist/hooks/use-model-selection.d.ts +1 -0
  160. package/dist/hooks/use-model-selection.d.ts.map +1 -1
  161. package/dist/hooks/use-model-selection.js +44 -1
  162. package/dist/hooks/use-model-selection.js.map +1 -1
  163. package/dist/hooks/use-provider-selection.d.ts +5 -1
  164. package/dist/hooks/use-provider-selection.d.ts.map +1 -1
  165. package/dist/hooks/use-provider-selection.js +37 -12
  166. package/dist/hooks/use-provider-selection.js.map +1 -1
  167. package/dist/hooks/use-slash-commands.d.ts +0 -1
  168. package/dist/hooks/use-slash-commands.d.ts.map +1 -1
  169. package/dist/hooks/use-slash-commands.js +1 -9
  170. package/dist/hooks/use-slash-commands.js.map +1 -1
  171. package/dist/lib/agent-chat-service.d.ts +3 -6
  172. package/dist/lib/agent-chat-service.d.ts.map +1 -1
  173. package/dist/lib/agent-chat-service.js +20 -6
  174. package/dist/lib/agent-chat-service.js.map +1 -1
  175. package/dist/lib/agent-client.d.ts +20 -2
  176. package/dist/lib/agent-client.d.ts.map +1 -1
  177. package/dist/lib/agent-client.js +147 -3
  178. package/dist/lib/agent-client.js.map +1 -1
  179. package/dist/lib/agent-configuration.d.ts +3 -0
  180. package/dist/lib/agent-configuration.d.ts.map +1 -1
  181. package/dist/lib/agent-configuration.js +5 -0
  182. package/dist/lib/agent-configuration.js.map +1 -1
  183. package/dist/lib/agent-factory.d.ts +3 -0
  184. package/dist/lib/agent-factory.d.ts.map +1 -1
  185. package/dist/lib/agent-factory.js +15 -6
  186. package/dist/lib/agent-factory.js.map +1 -1
  187. package/dist/lib/input-owner.d.ts +3 -0
  188. package/dist/lib/input-owner.d.ts.map +1 -1
  189. package/dist/lib/input-owner.js +5 -0
  190. package/dist/lib/input-owner.js.map +1 -1
  191. package/dist/lib/subagent-bridge.d.ts +2 -0
  192. package/dist/lib/subagent-bridge.d.ts.map +1 -1
  193. package/dist/lib/subagent-bridge.js +4 -1
  194. package/dist/lib/subagent-bridge.js.map +1 -1
  195. package/dist/prompts/background-shell.d.ts +3 -0
  196. package/dist/prompts/background-shell.d.ts.map +1 -0
  197. package/dist/prompts/background-shell.js +11 -0
  198. package/dist/prompts/background-shell.js.map +1 -0
  199. package/dist/prompts/background-shell.ts +10 -0
  200. package/dist/prompts/context-compaction.d.ts +4 -0
  201. package/dist/prompts/context-compaction.d.ts.map +1 -0
  202. package/dist/prompts/context-compaction.js +18 -0
  203. package/dist/prompts/context-compaction.js.map +1 -0
  204. package/dist/prompts/context-compaction.ts +23 -0
  205. package/dist/prompts/explorer-delegation-contract.test.ts +22 -0
  206. package/dist/prompts/gpt-5.6.md +1 -1
  207. package/dist/prompts/kimi.md +1 -1
  208. package/dist/prompts/orchestrator-prompt.test.ts +7 -0
  209. package/dist/prompts/orchestrator.md +1 -1
  210. package/dist/prompts/plan-mode-info.md +2 -2
  211. package/dist/prompts/prompt-constructor.d.ts +1 -0
  212. package/dist/prompts/prompt-constructor.d.ts.map +1 -1
  213. package/dist/prompts/prompt-constructor.js +5 -1
  214. package/dist/prompts/prompt-constructor.js.map +1 -1
  215. package/dist/prompts/prompt-constructor.test.ts +16 -1
  216. package/dist/prompts/prompt-constructor.ts +7 -0
  217. package/dist/prompts/subagent-delegation.d.ts.map +1 -1
  218. package/dist/prompts/subagent-delegation.js +5 -3
  219. package/dist/prompts/subagent-delegation.js.map +1 -1
  220. package/dist/prompts/subagent-delegation.test.ts +10 -0
  221. package/dist/prompts/subagent-delegation.ts +5 -3
  222. package/dist/prompts/subagents/explorer.md +10 -5
  223. package/dist/prompts/subagents/librarian.md +1 -1
  224. package/dist/prompts/subagents/worker.md +2 -2
  225. package/dist/providers/aborted-stream-recorder.d.ts +20 -0
  226. package/dist/providers/aborted-stream-recorder.d.ts.map +1 -0
  227. package/dist/providers/aborted-stream-recorder.js +63 -0
  228. package/dist/providers/aborted-stream-recorder.js.map +1 -0
  229. package/dist/providers/codex-auth.d.ts +6 -0
  230. package/dist/providers/codex-auth.d.ts.map +1 -0
  231. package/dist/providers/codex-auth.js +35 -0
  232. package/dist/providers/codex-auth.js.map +1 -0
  233. package/dist/providers/codex-responses-model.d.ts +7 -2
  234. package/dist/providers/codex-responses-model.d.ts.map +1 -1
  235. package/dist/providers/codex-responses-model.js +88 -48
  236. package/dist/providers/codex-responses-model.js.map +1 -1
  237. package/dist/providers/codex.provider.d.ts +5 -3
  238. package/dist/providers/codex.provider.d.ts.map +1 -1
  239. package/dist/providers/codex.provider.js +27 -39
  240. package/dist/providers/codex.provider.js.map +1 -1
  241. package/dist/providers/model-catalog/catalog.d.ts +35 -2
  242. package/dist/providers/model-catalog/catalog.d.ts.map +1 -1
  243. package/dist/providers/model-catalog/catalog.generated.d.ts +406 -166
  244. package/dist/providers/model-catalog/catalog.generated.d.ts.map +1 -1
  245. package/dist/providers/model-catalog/catalog.generated.js +406 -166
  246. package/dist/providers/model-catalog/catalog.generated.js.map +1 -1
  247. package/dist/providers/model-catalog/catalog.js +93 -29
  248. package/dist/providers/model-catalog/catalog.js.map +1 -1
  249. package/dist/providers/openai-chat-completions-model.d.ts +2 -1
  250. package/dist/providers/openai-chat-completions-model.d.ts.map +1 -1
  251. package/dist/providers/openai-chat-completions-model.js +223 -53
  252. package/dist/providers/openai-chat-completions-model.js.map +1 -1
  253. package/dist/providers/openai-compatible-lazy.d.ts.map +1 -1
  254. package/dist/providers/openai-compatible-lazy.js +2 -1
  255. package/dist/providers/openai-compatible-lazy.js.map +1 -1
  256. package/dist/providers/openai-compatible-middleware.d.ts.map +1 -1
  257. package/dist/providers/openai-compatible-middleware.js +1 -13
  258. package/dist/providers/openai-compatible-middleware.js.map +1 -1
  259. package/dist/providers/openai-compatible-response-normalizer.d.ts +5 -4
  260. package/dist/providers/openai-compatible-response-normalizer.d.ts.map +1 -1
  261. package/dist/providers/openai-compatible-response-normalizer.js +6 -17
  262. package/dist/providers/openai-compatible-response-normalizer.js.map +1 -1
  263. package/dist/providers/openai-compatible.provider.d.ts +1 -0
  264. package/dist/providers/openai-compatible.provider.d.ts.map +1 -1
  265. package/dist/providers/openai-compatible.provider.js +13 -4
  266. package/dist/providers/openai-compatible.provider.js.map +1 -1
  267. package/dist/providers/openai-responses-model.d.ts +9 -1
  268. package/dist/providers/openai-responses-model.d.ts.map +1 -1
  269. package/dist/providers/openai-responses-model.js +34 -12
  270. package/dist/providers/openai-responses-model.js.map +1 -1
  271. package/dist/providers/provider-service.d.ts +1 -0
  272. package/dist/providers/provider-service.d.ts.map +1 -1
  273. package/dist/providers/provider-service.js +4 -0
  274. package/dist/providers/provider-service.js.map +1 -1
  275. package/dist/scripts/eval-context-compaction/runner.d.ts +2 -0
  276. package/dist/scripts/eval-context-compaction/runner.d.ts.map +1 -0
  277. package/dist/scripts/eval-context-compaction/runner.js +159 -0
  278. package/dist/scripts/eval-context-compaction/runner.js.map +1 -0
  279. package/dist/services/agent-runtime/application-run-loop.d.ts +30 -0
  280. package/dist/services/agent-runtime/application-run-loop.d.ts.map +1 -1
  281. package/dist/services/agent-runtime/application-run-loop.js +251 -107
  282. package/dist/services/agent-runtime/application-run-loop.js.map +1 -1
  283. package/dist/services/agent-runtime/context-compaction/index.d.ts +56 -0
  284. package/dist/services/agent-runtime/context-compaction/index.d.ts.map +1 -0
  285. package/dist/services/agent-runtime/context-compaction/index.js +131 -0
  286. package/dist/services/agent-runtime/context-compaction/index.js.map +1 -0
  287. package/dist/services/agent-runtime/context-compaction/local-context-compactor.d.ts +76 -0
  288. package/dist/services/agent-runtime/context-compaction/local-context-compactor.d.ts.map +1 -0
  289. package/dist/services/agent-runtime/context-compaction/local-context-compactor.js +146 -0
  290. package/dist/services/agent-runtime/context-compaction/local-context-compactor.js.map +1 -0
  291. package/dist/services/agent-runtime/generation-guard.d.ts +15 -1
  292. package/dist/services/agent-runtime/generation-guard.d.ts.map +1 -1
  293. package/dist/services/agent-runtime/generation-guard.js +34 -2
  294. package/dist/services/agent-runtime/generation-guard.js.map +1 -1
  295. package/dist/services/agent-runtime/scope-resolver.d.ts.map +1 -1
  296. package/dist/services/agent-runtime/scope-resolver.js +2 -1
  297. package/dist/services/agent-runtime/scope-resolver.js.map +1 -1
  298. package/dist/services/agent-stream.d.ts.map +1 -1
  299. package/dist/services/agent-stream.js +2 -1
  300. package/dist/services/agent-stream.js.map +1 -1
  301. package/dist/services/approval/approval-decision-executor.d.ts.map +1 -1
  302. package/dist/services/approval/approval-decision-executor.js +5 -2
  303. package/dist/services/approval/approval-decision-executor.js.map +1 -1
  304. package/dist/services/approval/approval-decision-policy.d.ts.map +1 -1
  305. package/dist/services/approval/approval-decision-policy.js +0 -2
  306. package/dist/services/approval/approval-decision-policy.js.map +1 -1
  307. package/dist/services/approval/session-read-access.d.ts.map +1 -1
  308. package/dist/services/approval/session-read-access.js +2 -1
  309. package/dist/services/approval/session-read-access.js.map +1 -1
  310. package/dist/services/approval/shell-auto-approval-resolver.d.ts +1 -1
  311. package/dist/services/approval/shell-auto-approval-resolver.d.ts.map +1 -1
  312. package/dist/services/approval/shell-auto-approval-resolver.js +9 -1
  313. package/dist/services/approval/shell-auto-approval-resolver.js.map +1 -1
  314. package/dist/services/approval/tool-approval-batch-coordinator.d.ts.map +1 -1
  315. package/dist/services/approval/tool-approval-batch-coordinator.js +2 -1
  316. package/dist/services/approval/tool-approval-batch-coordinator.js.map +1 -1
  317. package/dist/services/conversation/conversation-admission-workflow.d.ts.map +1 -1
  318. package/dist/services/conversation/conversation-admission-workflow.js +20 -18
  319. package/dist/services/conversation/conversation-admission-workflow.js.map +1 -1
  320. package/dist/services/conversation/conversation-decoder.d.ts.map +1 -1
  321. package/dist/services/conversation/conversation-decoder.js +6 -0
  322. package/dist/services/conversation/conversation-decoder.js.map +1 -1
  323. package/dist/services/conversation/conversation-events.d.ts +34 -1
  324. package/dist/services/conversation/conversation-events.d.ts.map +1 -1
  325. package/dist/services/conversation/conversation-message-projection.d.ts.map +1 -1
  326. package/dist/services/conversation/conversation-message-projection.js +7 -3
  327. package/dist/services/conversation/conversation-message-projection.js.map +1 -1
  328. package/dist/services/conversation/conversation-orchestrator.d.ts +2 -0
  329. package/dist/services/conversation/conversation-orchestrator.d.ts.map +1 -1
  330. package/dist/services/conversation/conversation-orchestrator.js +113 -1
  331. package/dist/services/conversation/conversation-orchestrator.js.map +1 -1
  332. package/dist/services/conversation/conversation-orchestrator.types.d.ts +3 -1
  333. package/dist/services/conversation/conversation-orchestrator.types.d.ts.map +1 -1
  334. package/dist/services/conversation/conversation-replay.d.ts.map +1 -1
  335. package/dist/services/conversation/conversation-replay.js +45 -0
  336. package/dist/services/conversation/conversation-replay.js.map +1 -1
  337. package/dist/services/conversation/conversation-result-builder.d.ts.map +1 -1
  338. package/dist/services/conversation/conversation-result-builder.js +14 -2
  339. package/dist/services/conversation/conversation-result-builder.js.map +1 -1
  340. package/dist/services/conversation/conversation-service.d.ts +1 -0
  341. package/dist/services/conversation/conversation-service.d.ts.map +1 -1
  342. package/dist/services/conversation/conversation-service.js +74 -0
  343. package/dist/services/conversation/conversation-service.js.map +1 -1
  344. package/dist/services/conversation/conversation-state-projector.d.ts +7 -1
  345. package/dist/services/conversation/conversation-state-projector.d.ts.map +1 -1
  346. package/dist/services/conversation/conversation-state-projector.js +20 -3
  347. package/dist/services/conversation/conversation-state-projector.js.map +1 -1
  348. package/dist/services/conversation/conversation-state-schema.d.ts +8 -4
  349. package/dist/services/conversation/conversation-state-schema.d.ts.map +1 -1
  350. package/dist/services/conversation/conversation-state-schema.js +24 -2
  351. package/dist/services/conversation/conversation-state-schema.js.map +1 -1
  352. package/dist/services/conversation/conversation-store.d.ts +11 -0
  353. package/dist/services/conversation/conversation-store.d.ts.map +1 -1
  354. package/dist/services/conversation/conversation-store.js +23 -3
  355. package/dist/services/conversation/conversation-store.js.map +1 -1
  356. package/dist/services/conversation-agent-client.d.ts +9 -0
  357. package/dist/services/conversation-agent-client.d.ts.map +1 -1
  358. package/dist/services/cost/model-cost.d.ts +13 -2
  359. package/dist/services/cost/model-cost.d.ts.map +1 -1
  360. package/dist/services/cost/model-cost.js +1 -0
  361. package/dist/services/cost/model-cost.js.map +1 -1
  362. package/dist/services/cost/pricing.d.ts.map +1 -1
  363. package/dist/services/cost/pricing.js +26 -20
  364. package/dist/services/cost/pricing.js.map +1 -1
  365. package/dist/services/execution-context.d.ts +31 -0
  366. package/dist/services/execution-context.d.ts.map +1 -1
  367. package/dist/services/execution-context.js +59 -0
  368. package/dist/services/execution-context.js.map +1 -1
  369. package/dist/services/file-service.d.ts.map +1 -1
  370. package/dist/services/file-service.js +12 -3
  371. package/dist/services/file-service.js.map +1 -1
  372. package/dist/services/large-uncached-input-guard.d.ts +26 -1
  373. package/dist/services/large-uncached-input-guard.d.ts.map +1 -1
  374. package/dist/services/large-uncached-input-guard.js +73 -38
  375. package/dist/services/large-uncached-input-guard.js.map +1 -1
  376. package/dist/services/logging/conversation-log-events.d.ts +15 -2
  377. package/dist/services/logging/conversation-log-events.d.ts.map +1 -1
  378. package/dist/services/logging/conversation-log-events.js.map +1 -1
  379. package/dist/services/logging/conversation-logger.d.ts.map +1 -1
  380. package/dist/services/logging/conversation-logger.js +11 -0
  381. package/dist/services/logging/conversation-logger.js.map +1 -1
  382. package/dist/services/logging/logging-contract.d.ts.map +1 -1
  383. package/dist/services/logging/logging-contract.js +4 -0
  384. package/dist/services/logging/logging-contract.js.map +1 -1
  385. package/dist/services/logging/provider-traffic.d.ts +1 -1
  386. package/dist/services/logging/provider-traffic.d.ts.map +1 -1
  387. package/dist/services/logging/provider-traffic.js +10 -3
  388. package/dist/services/logging/provider-traffic.js.map +1 -1
  389. package/dist/services/model-service.d.ts +7 -0
  390. package/dist/services/model-service.d.ts.map +1 -1
  391. package/dist/services/model-service.js +21 -0
  392. package/dist/services/model-service.js.map +1 -1
  393. package/dist/services/models/model-catalog-session.d.ts +2 -0
  394. package/dist/services/models/model-catalog-session.d.ts.map +1 -1
  395. package/dist/services/models/model-catalog-session.js +9 -2
  396. package/dist/services/models/model-catalog-session.js.map +1 -1
  397. package/dist/services/provider-continuity.d.ts +15 -0
  398. package/dist/services/provider-continuity.d.ts.map +1 -1
  399. package/dist/services/provider-continuity.js +33 -0
  400. package/dist/services/provider-continuity.js.map +1 -1
  401. package/dist/services/retry/recovery-executor.d.ts.map +1 -1
  402. package/dist/services/retry/recovery-executor.js +12 -5
  403. package/dist/services/retry/recovery-executor.js.map +1 -1
  404. package/dist/services/retry/retry-classifier.d.ts.map +1 -1
  405. package/dist/services/retry/retry-classifier.js +2 -1
  406. package/dist/services/retry/retry-classifier.js.map +1 -1
  407. package/dist/services/retry/retry-error-classification.d.ts +19 -0
  408. package/dist/services/retry/retry-error-classification.d.ts.map +1 -1
  409. package/dist/services/retry/retry-error-classification.js +54 -0
  410. package/dist/services/retry/retry-error-classification.js.map +1 -1
  411. package/dist/services/service-interfaces.d.ts +15 -0
  412. package/dist/services/service-interfaces.d.ts.map +1 -1
  413. package/dist/services/session/background-task-control.d.ts +7 -2
  414. package/dist/services/session/background-task-control.d.ts.map +1 -1
  415. package/dist/services/session/background-task-control.js +43 -9
  416. package/dist/services/session/background-task-control.js.map +1 -1
  417. package/dist/services/session/background-task-liveness.d.ts +24 -0
  418. package/dist/services/session/background-task-liveness.d.ts.map +1 -0
  419. package/dist/services/session/background-task-liveness.js +23 -0
  420. package/dist/services/session/background-task-liveness.js.map +1 -0
  421. package/dist/services/session/session-access-state.d.ts.map +1 -1
  422. package/dist/services/session/session-access-state.js +5 -4
  423. package/dist/services/session/session-access-state.js.map +1 -1
  424. package/dist/services/session/session-client-factory.d.ts +11 -1
  425. package/dist/services/session/session-client-factory.d.ts.map +1 -1
  426. package/dist/services/session/session-client-factory.js +28 -1
  427. package/dist/services/session/session-client-factory.js.map +1 -1
  428. package/dist/services/session/session-composition.d.ts +7 -0
  429. package/dist/services/session/session-composition.d.ts.map +1 -1
  430. package/dist/services/session/session-composition.js +80 -0
  431. package/dist/services/session/session-composition.js.map +1 -1
  432. package/dist/services/session/session-input-planner.d.ts +16 -0
  433. package/dist/services/session/session-input-planner.d.ts.map +1 -1
  434. package/dist/services/session/session-input-planner.js +117 -10
  435. package/dist/services/session/session-input-planner.js.map +1 -1
  436. package/dist/services/session/session-manager.d.ts +3 -0
  437. package/dist/services/session/session-manager.d.ts.map +1 -1
  438. package/dist/services/session/session-manager.js +6 -0
  439. package/dist/services/session/session-manager.js.map +1 -1
  440. package/dist/services/session/session-stream-processor.d.ts +1 -0
  441. package/dist/services/session/session-stream-processor.d.ts.map +1 -1
  442. package/dist/services/session/session-stream-processor.js +16 -1
  443. package/dist/services/session/session-stream-processor.js.map +1 -1
  444. package/dist/services/session/session-tool-tracker.d.ts +21 -4
  445. package/dist/services/session/session-tool-tracker.d.ts.map +1 -1
  446. package/dist/services/session/session-tool-tracker.js +26 -5
  447. package/dist/services/session/session-tool-tracker.js.map +1 -1
  448. package/dist/services/session/terminal-result-collector.d.ts.map +1 -1
  449. package/dist/services/session/terminal-result-collector.js +12 -0
  450. package/dist/services/session/terminal-result-collector.js.map +1 -1
  451. package/dist/services/session/turn-workflow.d.ts.map +1 -1
  452. package/dist/services/session/turn-workflow.js +4 -0
  453. package/dist/services/session/turn-workflow.js.map +1 -1
  454. package/dist/services/settings/settings-path.d.ts +6 -0
  455. package/dist/services/settings/settings-path.d.ts.map +1 -0
  456. package/dist/services/settings/settings-path.js +15 -0
  457. package/dist/services/settings/settings-path.js.map +1 -0
  458. package/dist/services/settings/settings-schema.d.ts +59 -1
  459. package/dist/services/settings/settings-schema.d.ts.map +1 -1
  460. package/dist/services/settings/settings-schema.js +44 -3
  461. package/dist/services/settings/settings-schema.js.map +1 -1
  462. package/dist/services/settings/settings-service.d.ts +8 -0
  463. package/dist/services/settings/settings-service.d.ts.map +1 -1
  464. package/dist/services/settings/settings-service.js +82 -4
  465. package/dist/services/settings/settings-service.js.map +1 -1
  466. package/dist/services/settings/settings-sources.d.ts.map +1 -1
  467. package/dist/services/settings/settings-sources.js +3 -0
  468. package/dist/services/settings/settings-sources.js.map +1 -1
  469. package/dist/services/shell/background-shell-output-store.d.ts +90 -0
  470. package/dist/services/shell/background-shell-output-store.d.ts.map +1 -0
  471. package/dist/services/shell/background-shell-output-store.js +207 -0
  472. package/dist/services/shell/background-shell-output-store.js.map +1 -0
  473. package/dist/services/shell/background-shell-registry.d.ts +18 -0
  474. package/dist/services/shell/background-shell-registry.d.ts.map +1 -1
  475. package/dist/services/shell/background-shell-registry.js +17 -2
  476. package/dist/services/shell/background-shell-registry.js.map +1 -1
  477. package/dist/services/shell/background-shell-watches.d.ts +141 -0
  478. package/dist/services/shell/background-shell-watches.d.ts.map +1 -0
  479. package/dist/services/shell/background-shell-watches.js +245 -0
  480. package/dist/services/shell/background-shell-watches.js.map +1 -0
  481. package/dist/services/stream-event-processor.d.ts.map +1 -1
  482. package/dist/services/stream-event-processor.js +31 -1
  483. package/dist/services/stream-event-processor.js.map +1 -1
  484. package/dist/services/subagents/execution-runner.d.ts.map +1 -1
  485. package/dist/services/subagents/execution-runner.js +73 -4
  486. package/dist/services/subagents/execution-runner.js.map +1 -1
  487. package/dist/services/subagents/mentor-runner.d.ts.map +1 -1
  488. package/dist/services/subagents/mentor-runner.js +120 -15
  489. package/dist/services/subagents/mentor-runner.js.map +1 -1
  490. package/dist/services/subagents/nested-runner.d.ts.map +1 -1
  491. package/dist/services/subagents/nested-runner.js +106 -29
  492. package/dist/services/subagents/nested-runner.js.map +1 -1
  493. package/dist/services/subagents/role-loader.d.ts +6 -0
  494. package/dist/services/subagents/role-loader.d.ts.map +1 -1
  495. package/dist/services/subagents/role-loader.js +6 -1
  496. package/dist/services/subagents/role-loader.js.map +1 -1
  497. package/dist/services/subagents/subagent-async-registry.d.ts.map +1 -1
  498. package/dist/services/subagents/subagent-async-registry.js +39 -5
  499. package/dist/services/subagents/subagent-async-registry.js.map +1 -1
  500. package/dist/services/subagents/subagent-notification-store.d.ts +20 -1
  501. package/dist/services/subagents/subagent-notification-store.d.ts.map +1 -1
  502. package/dist/services/subagents/subagent-notification-store.js +22 -0
  503. package/dist/services/subagents/subagent-notification-store.js.map +1 -1
  504. package/dist/services/subagents/test-helpers/subagent-manager-fixtures.js +6 -5
  505. package/dist/services/subagents/test-helpers/subagent-manager-fixtures.js.map +1 -1
  506. package/dist/services/subagents/tool-policy.d.ts +3 -1
  507. package/dist/services/subagents/tool-policy.d.ts.map +1 -1
  508. package/dist/services/subagents/tool-policy.js +16 -12
  509. package/dist/services/subagents/tool-policy.js.map +1 -1
  510. package/dist/services/subagents/types.d.ts +15 -0
  511. package/dist/services/subagents/types.d.ts.map +1 -1
  512. package/dist/services/subagents/utils.d.ts +17 -0
  513. package/dist/services/subagents/utils.d.ts.map +1 -1
  514. package/dist/services/subagents/utils.js +39 -0
  515. package/dist/services/subagents/utils.js.map +1 -1
  516. package/dist/services/subagents/worker-worktree.d.ts +25 -0
  517. package/dist/services/subagents/worker-worktree.d.ts.map +1 -0
  518. package/dist/services/subagents/worker-worktree.js +74 -0
  519. package/dist/services/subagents/worker-worktree.js.map +1 -0
  520. package/dist/services/tool-execution-ledger.d.ts +26 -1
  521. package/dist/services/tool-execution-ledger.d.ts.map +1 -1
  522. package/dist/services/tool-execution-ledger.js +103 -33
  523. package/dist/services/tool-execution-ledger.js.map +1 -1
  524. package/dist/services/workspace/active-workspace-root.d.ts +5 -0
  525. package/dist/services/workspace/active-workspace-root.d.ts.map +1 -0
  526. package/dist/services/workspace/active-workspace-root.js +24 -0
  527. package/dist/services/workspace/active-workspace-root.js.map +1 -0
  528. package/dist/services/workspace/parse-worktree-list.d.ts +24 -0
  529. package/dist/services/workspace/parse-worktree-list.d.ts.map +1 -0
  530. package/dist/services/workspace/parse-worktree-list.js +59 -0
  531. package/dist/services/workspace/parse-worktree-list.js.map +1 -0
  532. package/dist/services/workspace/worktree-inventory.d.ts +10 -0
  533. package/dist/services/workspace/worktree-inventory.d.ts.map +1 -0
  534. package/dist/services/workspace/worktree-inventory.js +28 -0
  535. package/dist/services/workspace/worktree-inventory.js.map +1 -0
  536. package/dist/services/workspace/worktree-transition.d.ts +85 -0
  537. package/dist/services/workspace/worktree-transition.d.ts.map +1 -0
  538. package/dist/services/workspace/worktree-transition.js +70 -0
  539. package/dist/services/workspace/worktree-transition.js.map +1 -0
  540. package/dist/tools/agent/activate-skill.d.ts.map +1 -1
  541. package/dist/tools/agent/activate-skill.js +1 -0
  542. package/dist/tools/agent/activate-skill.js.map +1 -1
  543. package/dist/tools/agent/ask-mentor.d.ts.map +1 -1
  544. package/dist/tools/agent/ask-mentor.js +5 -1
  545. package/dist/tools/agent/ask-mentor.js.map +1 -1
  546. package/dist/tools/agent/run-subagent-async.d.ts +1 -1
  547. package/dist/tools/agent/run-subagent-async.d.ts.map +1 -1
  548. package/dist/tools/agent/run-subagent-async.js +21 -4
  549. package/dist/tools/agent/run-subagent-async.js.map +1 -1
  550. package/dist/tools/agent/run-subagent.d.ts +3 -1
  551. package/dist/tools/agent/run-subagent.d.ts.map +1 -1
  552. package/dist/tools/agent/run-subagent.js +34 -7
  553. package/dist/tools/agent/run-subagent.js.map +1 -1
  554. package/dist/tools/file/apply-patch.d.ts.map +1 -1
  555. package/dist/tools/file/apply-patch.js +6 -3
  556. package/dist/tools/file/apply-patch.js.map +1 -1
  557. package/dist/tools/file/code-context.d.ts.map +1 -1
  558. package/dist/tools/file/code-context.js +2 -0
  559. package/dist/tools/file/code-context.js.map +1 -1
  560. package/dist/tools/file/glob.d.ts.map +1 -1
  561. package/dist/tools/file/glob.js +1 -0
  562. package/dist/tools/file/glob.js.map +1 -1
  563. package/dist/tools/file/grep.d.ts.map +1 -1
  564. package/dist/tools/file/grep.js +1 -0
  565. package/dist/tools/file/grep.js.map +1 -1
  566. package/dist/tools/file/read-file.d.ts +2 -0
  567. package/dist/tools/file/read-file.d.ts.map +1 -1
  568. package/dist/tools/file/read-file.js +36 -15
  569. package/dist/tools/file/read-file.js.map +1 -1
  570. package/dist/tools/system/shell.d.ts +42 -1
  571. package/dist/tools/system/shell.d.ts.map +1 -1
  572. package/dist/tools/system/shell.js +285 -10
  573. package/dist/tools/system/shell.js.map +1 -1
  574. package/dist/tools/system/worktree.d.ts +22 -0
  575. package/dist/tools/system/worktree.d.ts.map +1 -0
  576. package/dist/tools/system/worktree.js +138 -0
  577. package/dist/tools/system/worktree.js.map +1 -0
  578. package/dist/tools/types.d.ts +5 -0
  579. package/dist/tools/types.d.ts.map +1 -1
  580. package/dist/tools/types.js.map +1 -1
  581. package/dist/tools/utils.d.ts.map +1 -1
  582. package/dist/tools/utils.js +3 -2
  583. package/dist/tools/utils.js.map +1 -1
  584. package/dist/tools/web/web-fetch.d.ts.map +1 -1
  585. package/dist/tools/web/web-fetch.js +10 -12
  586. package/dist/tools/web/web-fetch.js.map +1 -1
  587. package/dist/tools/web/web-search.d.ts.map +1 -1
  588. package/dist/tools/web/web-search.js +1 -0
  589. package/dist/tools/web/web-search.js.map +1 -1
  590. package/dist/utils/ai/provider-credentials.d.ts +31 -2
  591. package/dist/utils/ai/provider-credentials.d.ts.map +1 -1
  592. package/dist/utils/ai/provider-credentials.js +119 -11
  593. package/dist/utils/ai/provider-credentials.js.map +1 -1
  594. package/dist/utils/conversation/conversation-event-handler.d.ts.map +1 -1
  595. package/dist/utils/conversation/conversation-event-handler.js +13 -1
  596. package/dist/utils/conversation/conversation-event-handler.js.map +1 -1
  597. package/dist/utils/conversation/message-utils.d.ts +8 -2
  598. package/dist/utils/conversation/message-utils.d.ts.map +1 -1
  599. package/dist/utils/conversation/message-utils.js +38 -21
  600. package/dist/utils/conversation/message-utils.js.map +1 -1
  601. package/dist/utils/copy-selections.d.ts +8 -0
  602. package/dist/utils/copy-selections.d.ts.map +1 -0
  603. package/dist/utils/copy-selections.js +42 -0
  604. package/dist/utils/copy-selections.js.map +1 -0
  605. package/dist/utils/output/bound-tool-result.d.ts +42 -0
  606. package/dist/utils/output/bound-tool-result.d.ts.map +1 -0
  607. package/dist/utils/output/bound-tool-result.js +81 -0
  608. package/dist/utils/output/bound-tool-result.js.map +1 -0
  609. package/dist/utils/settings-command.d.ts.map +1 -1
  610. package/dist/utils/settings-command.js +22 -2
  611. package/dist/utils/settings-command.js.map +1 -1
  612. package/dist/utils/shell/command-safety/path-analysis.d.ts.map +1 -1
  613. package/dist/utils/shell/command-safety/path-analysis.js +5 -1
  614. package/dist/utils/shell/command-safety/path-analysis.js.map +1 -1
  615. package/dist/utils/shell/execute-shell.d.ts +25 -0
  616. package/dist/utils/shell/execute-shell.d.ts.map +1 -1
  617. package/dist/utils/shell/execute-shell.js +22 -5
  618. package/dist/utils/shell/execute-shell.js.map +1 -1
  619. package/dist/utils/shell/sandbox/sandbox-env.d.ts.map +1 -1
  620. package/dist/utils/shell/sandbox/sandbox-env.js +2 -1
  621. package/dist/utils/shell/sandbox/sandbox-env.js.map +1 -1
  622. package/dist/utils/shell/sandbox/sandbox-network-store.d.ts.map +1 -1
  623. package/dist/utils/shell/sandbox/sandbox-network-store.js +3 -2
  624. package/dist/utils/shell/sandbox/sandbox-network-store.js.map +1 -1
  625. package/dist/utils/shell/sandbox/sandbox-policy.d.ts.map +1 -1
  626. package/dist/utils/shell/sandbox/sandbox-policy.js +2 -1
  627. package/dist/utils/shell/sandbox/sandbox-policy.js.map +1 -1
  628. package/dist/utils/shell/shell-output.d.ts +11 -0
  629. package/dist/utils/shell/shell-output.d.ts.map +1 -1
  630. package/dist/utils/shell/shell-output.js +18 -8
  631. package/dist/utils/shell/shell-output.js.map +1 -1
  632. package/dist/utils/value-suggestions.d.ts.map +1 -1
  633. package/dist/utils/value-suggestions.js +6 -0
  634. package/dist/utils/value-suggestions.js.map +1 -1
  635. package/package.json +1 -1
@@ -2,8 +2,8 @@
2
2
  // Do not edit manually. Run `pnpm catalog:update` to regenerate.
3
3
  export const CATALOG_META = {
4
4
  schemaVersion: 2,
5
- generatedAt: '2026-07-29T22:27:21.904Z',
6
- source: 'pi-ai@0.83.0',
5
+ generatedAt: '2026-08-07T05:53:06.539Z',
6
+ source: 'pi-ai@0.84.1',
7
7
  };
8
8
  export const MODEL_CATALOG = {
9
9
  openai: {
@@ -234,10 +234,10 @@ export const MODEL_CATALOG = {
234
234
  'gpt-5.6-luna': {
235
235
  contextWindow: 272000,
236
236
  maxTokens: 128000,
237
- inputPricePerMTok: 1,
238
- outputPricePerMTok: 6,
239
- cacheReadPricePerMTok: 0.1,
240
- cacheWritePricePerMTok: 1.25,
237
+ inputPricePerMTok: 0.2,
238
+ outputPricePerMTok: 1.2,
239
+ cacheReadPricePerMTok: 0.02,
240
+ cacheWritePricePerMTok: 0.25,
241
241
  },
242
242
  'gpt-5.6-sol': {
243
243
  contextWindow: 272000,
@@ -250,10 +250,10 @@ export const MODEL_CATALOG = {
250
250
  'gpt-5.6-terra': {
251
251
  contextWindow: 272000,
252
252
  maxTokens: 128000,
253
- inputPricePerMTok: 2.5,
254
- outputPricePerMTok: 15,
255
- cacheReadPricePerMTok: 0.25,
256
- cacheWritePricePerMTok: 3.125,
253
+ inputPricePerMTok: 2,
254
+ outputPricePerMTok: 12,
255
+ cacheReadPricePerMTok: 0.2,
256
+ cacheWritePricePerMTok: 2.5,
257
257
  },
258
258
  'gpt-realtime-2.1': {
259
259
  contextWindow: 128000,
@@ -348,10 +348,10 @@ export const MODEL_CATALOG = {
348
348
  'gpt-5.6-luna': {
349
349
  contextWindow: 272000,
350
350
  maxTokens: 128000,
351
- inputPricePerMTok: 1,
352
- outputPricePerMTok: 6,
353
- cacheReadPricePerMTok: 0.1,
354
- cacheWritePricePerMTok: 1.25,
351
+ inputPricePerMTok: 0.2,
352
+ outputPricePerMTok: 1.2,
353
+ cacheReadPricePerMTok: 0.02,
354
+ cacheWritePricePerMTok: 0.25,
355
355
  },
356
356
  'gpt-5.6-sol': {
357
357
  contextWindow: 272000,
@@ -364,10 +364,10 @@ export const MODEL_CATALOG = {
364
364
  'gpt-5.6-terra': {
365
365
  contextWindow: 272000,
366
366
  maxTokens: 128000,
367
- inputPricePerMTok: 2.5,
368
- outputPricePerMTok: 15,
369
- cacheReadPricePerMTok: 0.25,
370
- cacheWritePricePerMTok: 3.125,
367
+ inputPricePerMTok: 2,
368
+ outputPricePerMTok: 12,
369
+ cacheReadPricePerMTok: 0.2,
370
+ cacheWritePricePerMTok: 2.5,
371
371
  },
372
372
  },
373
373
  openrouter: {
@@ -603,6 +603,14 @@ export const MODEL_CATALOG = {
603
603
  cacheReadPricePerMTok: 1,
604
604
  cacheWritePricePerMTok: 12.5,
605
605
  },
606
+ 'anthropic/claude-opus-5:batch': {
607
+ contextWindow: 1000000,
608
+ maxTokens: 128000,
609
+ inputPricePerMTok: 2.5,
610
+ outputPricePerMTok: 12.5,
611
+ cacheReadPricePerMTok: 0.25,
612
+ cacheWritePricePerMTok: 3.125,
613
+ },
606
614
  'anthropic/claude-sonnet-4': {
607
615
  contextWindow: 200000,
608
616
  maxTokens: 64000,
@@ -635,6 +643,14 @@ export const MODEL_CATALOG = {
635
643
  cacheReadPricePerMTok: 0.3,
636
644
  cacheWritePricePerMTok: 3.75,
637
645
  },
646
+ 'anthropic/claude-sonnet-4.6:batch': {
647
+ contextWindow: 1000000,
648
+ maxTokens: 128000,
649
+ inputPricePerMTok: 1.5,
650
+ outputPricePerMTok: 7.5,
651
+ cacheReadPricePerMTok: 0.15,
652
+ cacheWritePricePerMTok: 1.875,
653
+ },
638
654
  'anthropic/claude-sonnet-5': {
639
655
  contextWindow: 1000000,
640
656
  maxTokens: 128000,
@@ -734,8 +750,8 @@ export const MODEL_CATALOG = {
734
750
  'deepseek/deepseek-chat': {
735
751
  contextWindow: 128000,
736
752
  maxTokens: 16000,
737
- inputPricePerMTok: 0.2002,
738
- outputPricePerMTok: 0.8001,
753
+ inputPricePerMTok: 0.2574,
754
+ outputPricePerMTok: 1.0287,
739
755
  cacheReadPricePerMTok: 0,
740
756
  cacheWritePricePerMTok: 0,
741
757
  },
@@ -797,10 +813,18 @@ export const MODEL_CATALOG = {
797
813
  },
798
814
  'deepseek/deepseek-v4-flash': {
799
815
  contextWindow: 1048576,
800
- maxTokens: 393216,
801
- inputPricePerMTok: 0.14,
802
- outputPricePerMTok: 0.28,
803
- cacheReadPricePerMTok: 0.028,
816
+ maxTokens: 131072,
817
+ inputPricePerMTok: 0.0882,
818
+ outputPricePerMTok: 0.1764,
819
+ cacheReadPricePerMTok: 0.01764,
820
+ cacheWritePricePerMTok: 0,
821
+ },
822
+ 'deepseek/deepseek-v4-flash-0731': {
823
+ contextWindow: 1048576,
824
+ maxTokens: 65536,
825
+ inputPricePerMTok: 0.09,
826
+ outputPricePerMTok: 0.18,
827
+ cacheReadPricePerMTok: 0.018,
804
828
  cacheWritePricePerMTok: 0,
805
829
  },
806
830
  'deepseek/deepseek-v4-pro': {
@@ -877,7 +901,7 @@ export const MODEL_CATALOG = {
877
901
  },
878
902
  'google/gemini-3-flash-preview': {
879
903
  contextWindow: 1048576,
880
- maxTokens: 65535,
904
+ maxTokens: 65536,
881
905
  inputPricePerMTok: 0.5,
882
906
  outputPricePerMTok: 3,
883
907
  cacheReadPricePerMTok: 0.05,
@@ -885,7 +909,7 @@ export const MODEL_CATALOG = {
885
909
  },
886
910
  'google/gemini-3-flash-preview:batch': {
887
911
  contextWindow: 1048576,
888
- maxTokens: 65535,
912
+ maxTokens: 65536,
889
913
  inputPricePerMTok: 0.25,
890
914
  outputPricePerMTok: 1.5,
891
915
  cacheReadPricePerMTok: 0,
@@ -1030,9 +1054,9 @@ export const MODEL_CATALOG = {
1030
1054
  'google/gemma-4-31b-it': {
1031
1055
  contextWindow: 262144,
1032
1056
  maxTokens: 262144,
1033
- inputPricePerMTok: 0.14,
1034
- outputPricePerMTok: 0.4,
1035
- cacheReadPricePerMTok: 0,
1057
+ inputPricePerMTok: 0.1,
1058
+ outputPricePerMTok: 0.34,
1059
+ cacheReadPricePerMTok: 0.1,
1036
1060
  cacheWritePricePerMTok: 0,
1037
1061
  },
1038
1062
  'google/gemma-4-31b-it:free': {
@@ -1075,7 +1099,15 @@ export const MODEL_CATALOG = {
1075
1099
  cacheReadPricePerMTok: 0.002,
1076
1100
  cacheWritePricePerMTok: 0,
1077
1101
  },
1078
- 'inclusionai/ling-3.0-flash:free': {
1102
+ 'inclusionai/ling-3.0-flash': {
1103
+ contextWindow: 262144,
1104
+ maxTokens: 32768,
1105
+ inputPricePerMTok: 0.021,
1106
+ outputPricePerMTok: 0.063,
1107
+ cacheReadPricePerMTok: 0.0042,
1108
+ cacheWritePricePerMTok: 0,
1109
+ },
1110
+ 'inclusionai/ling-3.0-tiny:free': {
1079
1111
  contextWindow: 262144,
1080
1112
  maxTokens: 32768,
1081
1113
  inputPricePerMTok: 0,
@@ -1141,9 +1173,9 @@ export const MODEL_CATALOG = {
1141
1173
  },
1142
1174
  'meta-llama/llama-3.3-70b-instruct': {
1143
1175
  contextWindow: 131072,
1144
- maxTokens: 128000,
1145
- inputPricePerMTok: 0.13,
1146
- outputPricePerMTok: 0.4,
1176
+ maxTokens: 16384,
1177
+ inputPricePerMTok: 0.1,
1178
+ outputPricePerMTok: 0.32,
1147
1179
  cacheReadPricePerMTok: 0,
1148
1180
  cacheWritePricePerMTok: 0,
1149
1181
  },
@@ -1171,6 +1203,14 @@ export const MODEL_CATALOG = {
1171
1203
  cacheReadPricePerMTok: 0.15,
1172
1204
  cacheWritePricePerMTok: 0,
1173
1205
  },
1206
+ 'meta/muse-spark-1.2': {
1207
+ contextWindow: 1048576,
1208
+ maxTokens: 4096,
1209
+ inputPricePerMTok: 1.25,
1210
+ outputPricePerMTok: 4.25,
1211
+ cacheReadPricePerMTok: 0.15,
1212
+ cacheWritePricePerMTok: 0,
1213
+ },
1174
1214
  'minimax/minimax-m1': {
1175
1215
  contextWindow: 1000000,
1176
1216
  maxTokens: 40000,
@@ -1198,17 +1238,17 @@ export const MODEL_CATALOG = {
1198
1238
  'minimax/minimax-m2.5': {
1199
1239
  contextWindow: 196608,
1200
1240
  maxTokens: 196608,
1201
- inputPricePerMTok: 0.15,
1241
+ inputPricePerMTok: 0.22,
1202
1242
  outputPricePerMTok: 0.9,
1203
1243
  cacheReadPricePerMTok: 0.05,
1204
1244
  cacheWritePricePerMTok: 0,
1205
1245
  },
1206
1246
  'minimax/minimax-m2.7': {
1207
- contextWindow: 196608,
1247
+ contextWindow: 204800,
1208
1248
  maxTokens: 131072,
1209
- inputPricePerMTok: 0.25,
1210
- outputPricePerMTok: 1,
1211
- cacheReadPricePerMTok: 0.05,
1249
+ inputPricePerMTok: 0.27,
1250
+ outputPricePerMTok: 1.08,
1251
+ cacheReadPricePerMTok: 0.054,
1212
1252
  cacheWritePricePerMTok: 0,
1213
1253
  },
1214
1254
  'minimax/minimax-m3': {
@@ -1235,14 +1275,6 @@ export const MODEL_CATALOG = {
1235
1275
  cacheReadPricePerMTok: 0.03,
1236
1276
  cacheWritePricePerMTok: 0,
1237
1277
  },
1238
- 'mistralai/devstral-2512': {
1239
- contextWindow: 262144,
1240
- maxTokens: 4096,
1241
- inputPricePerMTok: 0.4,
1242
- outputPricePerMTok: 2,
1243
- cacheReadPricePerMTok: 0.04,
1244
- cacheWritePricePerMTok: 0,
1245
- },
1246
1278
  'mistralai/ministral-14b-2512': {
1247
1279
  contextWindow: 262144,
1248
1280
  maxTokens: 4096,
@@ -1340,11 +1372,11 @@ export const MODEL_CATALOG = {
1340
1372
  cacheWritePricePerMTok: 0,
1341
1373
  },
1342
1374
  'mistralai/mistral-small-3.2-24b-instruct': {
1343
- contextWindow: 131072,
1344
- maxTokens: 4096,
1345
- inputPricePerMTok: 0.1,
1346
- outputPricePerMTok: 0.3,
1347
- cacheReadPricePerMTok: 0.01,
1375
+ contextWindow: 256000,
1376
+ maxTokens: 16384,
1377
+ inputPricePerMTok: 0.09375,
1378
+ outputPricePerMTok: 0.25,
1379
+ cacheReadPricePerMTok: 0,
1348
1380
  cacheWritePricePerMTok: 0,
1349
1381
  },
1350
1382
  'mistralai/mixtral-8x22b-instruct': {
@@ -1398,19 +1430,27 @@ export const MODEL_CATALOG = {
1398
1430
  'moonshotai/kimi-k2.6': {
1399
1431
  contextWindow: 262144,
1400
1432
  maxTokens: 262144,
1401
- inputPricePerMTok: 0.646,
1402
- outputPricePerMTok: 2.72,
1403
- cacheReadPricePerMTok: 0.1088,
1433
+ inputPricePerMTok: 0.589,
1434
+ outputPricePerMTok: 2.48,
1435
+ cacheReadPricePerMTok: 0.0992,
1404
1436
  cacheWritePricePerMTok: 0,
1405
1437
  },
1406
1438
  'moonshotai/kimi-k2.7-code': {
1407
1439
  contextWindow: 262144,
1408
1440
  maxTokens: 262144,
1409
- inputPricePerMTok: 0.73,
1441
+ inputPricePerMTok: 0.7,
1410
1442
  outputPricePerMTok: 3.5,
1411
1443
  cacheReadPricePerMTok: 0.15,
1412
1444
  cacheWritePricePerMTok: 0,
1413
1445
  },
1446
+ 'moonshotai/kimi-k2.7-code:batch': {
1447
+ contextWindow: 262144,
1448
+ maxTokens: 4096,
1449
+ inputPricePerMTok: 0.475,
1450
+ outputPricePerMTok: 2,
1451
+ cacheReadPricePerMTok: 0.095,
1452
+ cacheWritePricePerMTok: 0,
1453
+ },
1414
1454
  'moonshotai/kimi-k3': {
1415
1455
  contextWindow: 1048576,
1416
1456
  maxTokens: 131072,
@@ -1437,10 +1477,10 @@ export const MODEL_CATALOG = {
1437
1477
  },
1438
1478
  'nvidia/nemotron-3-nano-30b-a3b': {
1439
1479
  contextWindow: 262144,
1440
- maxTokens: 228000,
1480
+ maxTokens: 262144,
1441
1481
  inputPricePerMTok: 0.05,
1442
1482
  outputPricePerMTok: 0.2,
1443
- cacheReadPricePerMTok: 0.025,
1483
+ cacheReadPricePerMTok: 0.03,
1444
1484
  cacheWritePricePerMTok: 0,
1445
1485
  },
1446
1486
  'nvidia/nemotron-3-nano-30b-a3b:free': {
@@ -1461,9 +1501,9 @@ export const MODEL_CATALOG = {
1461
1501
  },
1462
1502
  'nvidia/nemotron-3-super-120b-a12b': {
1463
1503
  contextWindow: 262144,
1464
- maxTokens: 16384,
1465
- inputPricePerMTok: 0.085,
1466
- outputPricePerMTok: 0.4,
1504
+ maxTokens: 4096,
1505
+ inputPricePerMTok: 0.3,
1506
+ outputPricePerMTok: 0.9,
1467
1507
  cacheReadPricePerMTok: 0,
1468
1508
  cacheWritePricePerMTok: 0,
1469
1509
  },
@@ -1476,10 +1516,18 @@ export const MODEL_CATALOG = {
1476
1516
  cacheWritePricePerMTok: 0,
1477
1517
  },
1478
1518
  'nvidia/nemotron-3-ultra-550b-a55b': {
1479
- contextWindow: 262144,
1480
- maxTokens: 16384,
1481
- inputPricePerMTok: 0.5,
1482
- outputPricePerMTok: 2.2,
1519
+ contextWindow: 512288,
1520
+ maxTokens: 4096,
1521
+ inputPricePerMTok: 0.6,
1522
+ outputPricePerMTok: 3.6,
1523
+ cacheReadPricePerMTok: 0.2,
1524
+ cacheWritePricePerMTok: 0,
1525
+ },
1526
+ 'nvidia/nemotron-3-ultra-550b-a55b:batch': {
1527
+ contextWindow: 512288,
1528
+ maxTokens: 4096,
1529
+ inputPricePerMTok: 0.3,
1530
+ outputPricePerMTok: 1.8,
1483
1531
  cacheReadPricePerMTok: 0.1,
1484
1532
  cacheWritePricePerMTok: 0,
1485
1533
  },
@@ -1531,6 +1579,14 @@ export const MODEL_CATALOG = {
1531
1579
  cacheReadPricePerMTok: 0,
1532
1580
  cacheWritePricePerMTok: 0,
1533
1581
  },
1582
+ 'openai/gpt-3.5-turbo:batch': {
1583
+ contextWindow: 16385,
1584
+ maxTokens: 4096,
1585
+ inputPricePerMTok: 0.25,
1586
+ outputPricePerMTok: 0.75,
1587
+ cacheReadPricePerMTok: 0,
1588
+ cacheWritePricePerMTok: 0,
1589
+ },
1534
1590
  'openai/gpt-4': {
1535
1591
  contextWindow: 8191,
1536
1592
  maxTokens: 4096,
@@ -1555,6 +1611,14 @@ export const MODEL_CATALOG = {
1555
1611
  cacheReadPricePerMTok: 0,
1556
1612
  cacheWritePricePerMTok: 0,
1557
1613
  },
1614
+ 'openai/gpt-4-turbo:batch': {
1615
+ contextWindow: 128000,
1616
+ maxTokens: 4096,
1617
+ inputPricePerMTok: 5,
1618
+ outputPricePerMTok: 15,
1619
+ cacheReadPricePerMTok: 0,
1620
+ cacheWritePricePerMTok: 0,
1621
+ },
1558
1622
  'openai/gpt-4.1': {
1559
1623
  contextWindow: 1047576,
1560
1624
  maxTokens: 32768,
@@ -1571,6 +1635,14 @@ export const MODEL_CATALOG = {
1571
1635
  cacheReadPricePerMTok: 0.1,
1572
1636
  cacheWritePricePerMTok: 0,
1573
1637
  },
1638
+ 'openai/gpt-4.1-mini:batch': {
1639
+ contextWindow: 1047576,
1640
+ maxTokens: 32768,
1641
+ inputPricePerMTok: 0.2,
1642
+ outputPricePerMTok: 0.8,
1643
+ cacheReadPricePerMTok: 0.05,
1644
+ cacheWritePricePerMTok: 0,
1645
+ },
1574
1646
  'openai/gpt-4.1-nano': {
1575
1647
  contextWindow: 1047576,
1576
1648
  maxTokens: 32768,
@@ -1579,6 +1651,22 @@ export const MODEL_CATALOG = {
1579
1651
  cacheReadPricePerMTok: 0.025,
1580
1652
  cacheWritePricePerMTok: 0,
1581
1653
  },
1654
+ 'openai/gpt-4.1-nano:batch': {
1655
+ contextWindow: 1047576,
1656
+ maxTokens: 32768,
1657
+ inputPricePerMTok: 0.05,
1658
+ outputPricePerMTok: 0.2,
1659
+ cacheReadPricePerMTok: 0.0125,
1660
+ cacheWritePricePerMTok: 0,
1661
+ },
1662
+ 'openai/gpt-4.1:batch': {
1663
+ contextWindow: 1047576,
1664
+ maxTokens: 32768,
1665
+ inputPricePerMTok: 1,
1666
+ outputPricePerMTok: 4,
1667
+ cacheReadPricePerMTok: 0.25,
1668
+ cacheWritePricePerMTok: 0,
1669
+ },
1582
1670
  'openai/gpt-4o': {
1583
1671
  contextWindow: 128000,
1584
1672
  maxTokens: 16384,
@@ -1627,6 +1715,22 @@ export const MODEL_CATALOG = {
1627
1715
  cacheReadPricePerMTok: 0.075,
1628
1716
  cacheWritePricePerMTok: 0,
1629
1717
  },
1718
+ 'openai/gpt-4o-mini:batch': {
1719
+ contextWindow: 128000,
1720
+ maxTokens: 16384,
1721
+ inputPricePerMTok: 0.075,
1722
+ outputPricePerMTok: 0.3,
1723
+ cacheReadPricePerMTok: 0.0375,
1724
+ cacheWritePricePerMTok: 0,
1725
+ },
1726
+ 'openai/gpt-4o:batch': {
1727
+ contextWindow: 128000,
1728
+ maxTokens: 16384,
1729
+ inputPricePerMTok: 1.25,
1730
+ outputPricePerMTok: 5,
1731
+ cacheReadPricePerMTok: 0.625,
1732
+ cacheWritePricePerMTok: 0,
1733
+ },
1630
1734
  'openai/gpt-5': {
1631
1735
  contextWindow: 400000,
1632
1736
  maxTokens: 128000,
@@ -1635,12 +1739,12 @@ export const MODEL_CATALOG = {
1635
1739
  cacheReadPricePerMTok: 0.125,
1636
1740
  cacheWritePricePerMTok: 0,
1637
1741
  },
1638
- 'openai/gpt-5-codex': {
1742
+ 'openai/gpt-5-codex:batch': {
1639
1743
  contextWindow: 400000,
1640
1744
  maxTokens: 128000,
1641
- inputPricePerMTok: 1.25,
1642
- outputPricePerMTok: 10,
1643
- cacheReadPricePerMTok: 0.125,
1745
+ inputPricePerMTok: 0.625,
1746
+ outputPricePerMTok: 5,
1747
+ cacheReadPricePerMTok: 0.0625,
1644
1748
  cacheWritePricePerMTok: 0,
1645
1749
  },
1646
1750
  'openai/gpt-5-mini': {
@@ -1683,20 +1787,20 @@ export const MODEL_CATALOG = {
1683
1787
  cacheReadPricePerMTok: 0,
1684
1788
  cacheWritePricePerMTok: 0,
1685
1789
  },
1686
- 'openai/gpt-5.1': {
1790
+ 'openai/gpt-5-pro:batch': {
1687
1791
  contextWindow: 400000,
1688
1792
  maxTokens: 128000,
1689
- inputPricePerMTok: 1.25,
1690
- outputPricePerMTok: 10,
1691
- cacheReadPricePerMTok: 0.125,
1793
+ inputPricePerMTok: 7.5,
1794
+ outputPricePerMTok: 60,
1795
+ cacheReadPricePerMTok: 0,
1692
1796
  cacheWritePricePerMTok: 0,
1693
1797
  },
1694
- 'openai/gpt-5.1-chat': {
1695
- contextWindow: 128000,
1696
- maxTokens: 32000,
1798
+ 'openai/gpt-5.1': {
1799
+ contextWindow: 400000,
1800
+ maxTokens: 128000,
1697
1801
  inputPricePerMTok: 1.25,
1698
1802
  outputPricePerMTok: 10,
1699
- cacheReadPricePerMTok: 0.13,
1803
+ cacheReadPricePerMTok: 0.125,
1700
1804
  cacheWritePricePerMTok: 0,
1701
1805
  },
1702
1806
  'openai/gpt-5.1-codex': {
@@ -1763,6 +1867,14 @@ export const MODEL_CATALOG = {
1763
1867
  cacheReadPricePerMTok: 0,
1764
1868
  cacheWritePricePerMTok: 0,
1765
1869
  },
1870
+ 'openai/gpt-5.2-pro:batch': {
1871
+ contextWindow: 400000,
1872
+ maxTokens: 128000,
1873
+ inputPricePerMTok: 10.5,
1874
+ outputPricePerMTok: 84,
1875
+ cacheReadPricePerMTok: 0,
1876
+ cacheWritePricePerMTok: 0,
1877
+ },
1766
1878
  'openai/gpt-5.2:batch': {
1767
1879
  contextWindow: 400000,
1768
1880
  maxTokens: 128000,
@@ -1835,6 +1947,14 @@ export const MODEL_CATALOG = {
1835
1947
  cacheReadPricePerMTok: 0,
1836
1948
  cacheWritePricePerMTok: 0,
1837
1949
  },
1950
+ 'openai/gpt-5.4-pro:batch': {
1951
+ contextWindow: 1050000,
1952
+ maxTokens: 128000,
1953
+ inputPricePerMTok: 15,
1954
+ outputPricePerMTok: 90,
1955
+ cacheReadPricePerMTok: 0,
1956
+ cacheWritePricePerMTok: 0,
1957
+ },
1838
1958
  'openai/gpt-5.4:batch': {
1839
1959
  contextWindow: 1050000,
1840
1960
  maxTokens: 128000,
@@ -1859,6 +1979,14 @@ export const MODEL_CATALOG = {
1859
1979
  cacheReadPricePerMTok: 0,
1860
1980
  cacheWritePricePerMTok: 0,
1861
1981
  },
1982
+ 'openai/gpt-5.5-pro:batch': {
1983
+ contextWindow: 1050000,
1984
+ maxTokens: 128000,
1985
+ inputPricePerMTok: 15,
1986
+ outputPricePerMTok: 90,
1987
+ cacheReadPricePerMTok: 0,
1988
+ cacheWritePricePerMTok: 0,
1989
+ },
1862
1990
  'openai/gpt-5.5:batch': {
1863
1991
  contextWindow: 1050000,
1864
1992
  maxTokens: 128000,
@@ -1870,18 +1998,34 @@ export const MODEL_CATALOG = {
1870
1998
  'openai/gpt-5.6-luna': {
1871
1999
  contextWindow: 1050000,
1872
2000
  maxTokens: 128000,
1873
- inputPricePerMTok: 0.5,
1874
- outputPricePerMTok: 3,
1875
- cacheReadPricePerMTok: 0.05,
1876
- cacheWritePricePerMTok: 0.625,
2001
+ inputPricePerMTok: 0.1,
2002
+ outputPricePerMTok: 0.6,
2003
+ cacheReadPricePerMTok: 0.01,
2004
+ cacheWritePricePerMTok: 0.125,
1877
2005
  },
1878
2006
  'openai/gpt-5.6-luna-pro': {
1879
2007
  contextWindow: 1050000,
1880
2008
  maxTokens: 128000,
1881
- inputPricePerMTok: 0.5,
1882
- outputPricePerMTok: 3,
1883
- cacheReadPricePerMTok: 0.05,
1884
- cacheWritePricePerMTok: 0.625,
2009
+ inputPricePerMTok: 0.1,
2010
+ outputPricePerMTok: 0.6,
2011
+ cacheReadPricePerMTok: 0.01,
2012
+ cacheWritePricePerMTok: 0.125,
2013
+ },
2014
+ 'openai/gpt-5.6-luna-pro:batch': {
2015
+ contextWindow: 1050000,
2016
+ maxTokens: 128000,
2017
+ inputPricePerMTok: 0.1,
2018
+ outputPricePerMTok: 0.6,
2019
+ cacheReadPricePerMTok: 0.01,
2020
+ cacheWritePricePerMTok: 0,
2021
+ },
2022
+ 'openai/gpt-5.6-luna:batch': {
2023
+ contextWindow: 1050000,
2024
+ maxTokens: 128000,
2025
+ inputPricePerMTok: 0.1,
2026
+ outputPricePerMTok: 0.6,
2027
+ cacheReadPricePerMTok: 0.01,
2028
+ cacheWritePricePerMTok: 0,
1885
2029
  },
1886
2030
  'openai/gpt-5.6-sol': {
1887
2031
  contextWindow: 1050000,
@@ -1899,21 +2043,53 @@ export const MODEL_CATALOG = {
1899
2043
  cacheReadPricePerMTok: 0.5,
1900
2044
  cacheWritePricePerMTok: 6.25,
1901
2045
  },
2046
+ 'openai/gpt-5.6-sol-pro:batch': {
2047
+ contextWindow: 1050000,
2048
+ maxTokens: 128000,
2049
+ inputPricePerMTok: 2.5,
2050
+ outputPricePerMTok: 15,
2051
+ cacheReadPricePerMTok: 0.25,
2052
+ cacheWritePricePerMTok: 0,
2053
+ },
2054
+ 'openai/gpt-5.6-sol:batch': {
2055
+ contextWindow: 1050000,
2056
+ maxTokens: 128000,
2057
+ inputPricePerMTok: 2.5,
2058
+ outputPricePerMTok: 15,
2059
+ cacheReadPricePerMTok: 0.25,
2060
+ cacheWritePricePerMTok: 0,
2061
+ },
1902
2062
  'openai/gpt-5.6-terra': {
1903
2063
  contextWindow: 1050000,
1904
2064
  maxTokens: 128000,
1905
- inputPricePerMTok: 1.25,
1906
- outputPricePerMTok: 7.5,
1907
- cacheReadPricePerMTok: 0.125,
1908
- cacheWritePricePerMTok: 1.5625,
2065
+ inputPricePerMTok: 1,
2066
+ outputPricePerMTok: 6,
2067
+ cacheReadPricePerMTok: 0.1,
2068
+ cacheWritePricePerMTok: 1.25,
1909
2069
  },
1910
2070
  'openai/gpt-5.6-terra-pro': {
1911
2071
  contextWindow: 1050000,
1912
2072
  maxTokens: 128000,
1913
- inputPricePerMTok: 1.25,
1914
- outputPricePerMTok: 7.5,
1915
- cacheReadPricePerMTok: 0.125,
1916
- cacheWritePricePerMTok: 1.5625,
2073
+ inputPricePerMTok: 1,
2074
+ outputPricePerMTok: 6,
2075
+ cacheReadPricePerMTok: 0.1,
2076
+ cacheWritePricePerMTok: 1.25,
2077
+ },
2078
+ 'openai/gpt-5.6-terra-pro:batch': {
2079
+ contextWindow: 1050000,
2080
+ maxTokens: 128000,
2081
+ inputPricePerMTok: 1,
2082
+ outputPricePerMTok: 6,
2083
+ cacheReadPricePerMTok: 0.1,
2084
+ cacheWritePricePerMTok: 0,
2085
+ },
2086
+ 'openai/gpt-5.6-terra:batch': {
2087
+ contextWindow: 1050000,
2088
+ maxTokens: 128000,
2089
+ inputPricePerMTok: 1,
2090
+ outputPricePerMTok: 6,
2091
+ cacheReadPricePerMTok: 0.1,
2092
+ cacheWritePricePerMTok: 0,
1917
2093
  },
1918
2094
  'openai/gpt-5:batch': {
1919
2095
  contextWindow: 400000,
@@ -1987,20 +2163,20 @@ export const MODEL_CATALOG = {
1987
2163
  cacheReadPricePerMTok: 7.5,
1988
2164
  cacheWritePricePerMTok: 0,
1989
2165
  },
1990
- 'openai/o3': {
2166
+ 'openai/o1:batch': {
1991
2167
  contextWindow: 200000,
1992
2168
  maxTokens: 100000,
1993
- inputPricePerMTok: 2,
1994
- outputPricePerMTok: 8,
1995
- cacheReadPricePerMTok: 0.5,
2169
+ inputPricePerMTok: 7.5,
2170
+ outputPricePerMTok: 30,
2171
+ cacheReadPricePerMTok: 3.75,
1996
2172
  cacheWritePricePerMTok: 0,
1997
2173
  },
1998
- 'openai/o3-deep-research': {
2174
+ 'openai/o3': {
1999
2175
  contextWindow: 200000,
2000
2176
  maxTokens: 100000,
2001
- inputPricePerMTok: 10,
2002
- outputPricePerMTok: 40,
2003
- cacheReadPricePerMTok: 2.5,
2177
+ inputPricePerMTok: 2,
2178
+ outputPricePerMTok: 8,
2179
+ cacheReadPricePerMTok: 0.5,
2004
2180
  cacheWritePricePerMTok: 0,
2005
2181
  },
2006
2182
  'openai/o3-mini': {
@@ -2019,6 +2195,22 @@ export const MODEL_CATALOG = {
2019
2195
  cacheReadPricePerMTok: 0.55,
2020
2196
  cacheWritePricePerMTok: 0,
2021
2197
  },
2198
+ 'openai/o3-mini-high:batch': {
2199
+ contextWindow: 200000,
2200
+ maxTokens: 100000,
2201
+ inputPricePerMTok: 0.55,
2202
+ outputPricePerMTok: 2.2,
2203
+ cacheReadPricePerMTok: 0.275,
2204
+ cacheWritePricePerMTok: 0,
2205
+ },
2206
+ 'openai/o3-mini:batch': {
2207
+ contextWindow: 200000,
2208
+ maxTokens: 100000,
2209
+ inputPricePerMTok: 0.55,
2210
+ outputPricePerMTok: 2.2,
2211
+ cacheReadPricePerMTok: 0.275,
2212
+ cacheWritePricePerMTok: 0,
2213
+ },
2022
2214
  'openai/o3-pro': {
2023
2215
  contextWindow: 200000,
2024
2216
  maxTokens: 100000,
@@ -2027,20 +2219,28 @@ export const MODEL_CATALOG = {
2027
2219
  cacheReadPricePerMTok: 0,
2028
2220
  cacheWritePricePerMTok: 0,
2029
2221
  },
2030
- 'openai/o4-mini': {
2222
+ 'openai/o3-pro:batch': {
2031
2223
  contextWindow: 200000,
2032
2224
  maxTokens: 100000,
2033
- inputPricePerMTok: 1.1,
2034
- outputPricePerMTok: 4.4,
2035
- cacheReadPricePerMTok: 0.275,
2225
+ inputPricePerMTok: 10,
2226
+ outputPricePerMTok: 40,
2227
+ cacheReadPricePerMTok: 0,
2036
2228
  cacheWritePricePerMTok: 0,
2037
2229
  },
2038
- 'openai/o4-mini-deep-research': {
2230
+ 'openai/o3:batch': {
2039
2231
  contextWindow: 200000,
2040
2232
  maxTokens: 100000,
2041
- inputPricePerMTok: 2,
2042
- outputPricePerMTok: 8,
2043
- cacheReadPricePerMTok: 0.5,
2233
+ inputPricePerMTok: 1,
2234
+ outputPricePerMTok: 4,
2235
+ cacheReadPricePerMTok: 0.25,
2236
+ cacheWritePricePerMTok: 0,
2237
+ },
2238
+ 'openai/o4-mini': {
2239
+ contextWindow: 200000,
2240
+ maxTokens: 100000,
2241
+ inputPricePerMTok: 1.1,
2242
+ outputPricePerMTok: 4.4,
2243
+ cacheReadPricePerMTok: 0.275,
2044
2244
  cacheWritePricePerMTok: 0,
2045
2245
  },
2046
2246
  'openai/o4-mini-high': {
@@ -2051,6 +2251,22 @@ export const MODEL_CATALOG = {
2051
2251
  cacheReadPricePerMTok: 0.275,
2052
2252
  cacheWritePricePerMTok: 0,
2053
2253
  },
2254
+ 'openai/o4-mini-high:batch': {
2255
+ contextWindow: 200000,
2256
+ maxTokens: 100000,
2257
+ inputPricePerMTok: 0.55,
2258
+ outputPricePerMTok: 2.2,
2259
+ cacheReadPricePerMTok: 0.1375,
2260
+ cacheWritePricePerMTok: 0,
2261
+ },
2262
+ 'openai/o4-mini:batch': {
2263
+ contextWindow: 200000,
2264
+ maxTokens: 100000,
2265
+ inputPricePerMTok: 0.55,
2266
+ outputPricePerMTok: 2.2,
2267
+ cacheReadPricePerMTok: 0.1375,
2268
+ cacheWritePricePerMTok: 0,
2269
+ },
2054
2270
  'openrouter/auto': {
2055
2271
  contextWindow: 2000000,
2056
2272
  maxTokens: 4096,
@@ -2086,9 +2302,9 @@ export const MODEL_CATALOG = {
2086
2302
  'poolside/laguna-s-2.1': {
2087
2303
  contextWindow: 1048576,
2088
2304
  maxTokens: 131072,
2089
- inputPricePerMTok: 0.1,
2090
- outputPricePerMTok: 0.2,
2091
- cacheReadPricePerMTok: 0.01,
2305
+ inputPricePerMTok: 0.09,
2306
+ outputPricePerMTok: 0.18,
2307
+ cacheReadPricePerMTok: 0.009,
2092
2308
  cacheWritePricePerMTok: 0,
2093
2309
  },
2094
2310
  'poolside/laguna-s-2.1:free': {
@@ -2126,8 +2342,8 @@ export const MODEL_CATALOG = {
2126
2342
  'qwen/qwen-2.5-7b-instruct': {
2127
2343
  contextWindow: 32768,
2128
2344
  maxTokens: 32768,
2129
- inputPricePerMTok: 0.04,
2130
- outputPricePerMTok: 0.1,
2345
+ inputPricePerMTok: 0.1,
2346
+ outputPricePerMTok: 0.2,
2131
2347
  cacheReadPricePerMTok: 0,
2132
2348
  cacheWritePricePerMTok: 0,
2133
2349
  },
@@ -2181,9 +2397,9 @@ export const MODEL_CATALOG = {
2181
2397
  },
2182
2398
  'qwen/qwen3-235b-a22b-thinking-2507': {
2183
2399
  contextWindow: 131072,
2184
- maxTokens: 32768,
2185
- inputPricePerMTok: 0.3,
2186
- outputPricePerMTok: 3,
2400
+ maxTokens: 4096,
2401
+ inputPricePerMTok: 0.23,
2402
+ outputPricePerMTok: 2.3,
2187
2403
  cacheReadPricePerMTok: 0,
2188
2404
  cacheWritePricePerMTok: 0,
2189
2405
  },
@@ -2285,15 +2501,15 @@ export const MODEL_CATALOG = {
2285
2501
  },
2286
2502
  'qwen/qwen3-next-80b-a3b-instruct': {
2287
2503
  contextWindow: 262144,
2288
- maxTokens: 262144,
2289
- inputPricePerMTok: 0.1,
2504
+ maxTokens: 16384,
2505
+ inputPricePerMTok: 0.09,
2290
2506
  outputPricePerMTok: 1.1,
2291
- cacheReadPricePerMTok: 0.07,
2507
+ cacheReadPricePerMTok: 0,
2292
2508
  cacheWritePricePerMTok: 0,
2293
2509
  },
2294
2510
  'qwen/qwen3-next-80b-a3b-thinking': {
2295
- contextWindow: 131072,
2296
- maxTokens: 32768,
2511
+ contextWindow: 128000,
2512
+ maxTokens: 4096,
2297
2513
  inputPricePerMTok: 0.15,
2298
2514
  outputPricePerMTok: 1.2,
2299
2515
  cacheReadPricePerMTok: 0,
@@ -2316,10 +2532,10 @@ export const MODEL_CATALOG = {
2316
2532
  cacheWritePricePerMTok: 0,
2317
2533
  },
2318
2534
  'qwen/qwen3-vl-30b-a3b-instruct': {
2319
- contextWindow: 131072,
2320
- maxTokens: 32768,
2321
- inputPricePerMTok: 0.13,
2322
- outputPricePerMTok: 0.52,
2535
+ contextWindow: 262144,
2536
+ maxTokens: 16384,
2537
+ inputPricePerMTok: 0.15,
2538
+ outputPricePerMTok: 0.6,
2323
2539
  cacheReadPricePerMTok: 0,
2324
2540
  cacheWritePricePerMTok: 0,
2325
2541
  },
@@ -2357,9 +2573,9 @@ export const MODEL_CATALOG = {
2357
2573
  },
2358
2574
  'qwen/qwen3.5-122b-a10b': {
2359
2575
  contextWindow: 262144,
2360
- maxTokens: 65536,
2361
- inputPricePerMTok: 0.26,
2362
- outputPricePerMTok: 2.08,
2576
+ maxTokens: 81920,
2577
+ inputPricePerMTok: 0.29,
2578
+ outputPricePerMTok: 2.4,
2363
2579
  cacheReadPricePerMTok: 0,
2364
2580
  cacheWritePricePerMTok: 0,
2365
2581
  },
@@ -2421,10 +2637,10 @@ export const MODEL_CATALOG = {
2421
2637
  },
2422
2638
  'qwen/qwen3.6-27b': {
2423
2639
  contextWindow: 262144,
2424
- maxTokens: 65536,
2425
- inputPricePerMTok: 0.3,
2426
- outputPricePerMTok: 2,
2427
- cacheReadPricePerMTok: 0.15,
2640
+ maxTokens: 262144,
2641
+ inputPricePerMTok: 0.6,
2642
+ outputPricePerMTok: 3.6,
2643
+ cacheReadPricePerMTok: 0.12,
2428
2644
  cacheWritePricePerMTok: 0,
2429
2645
  },
2430
2646
  'qwen/qwen3.6-35b-a3b': {
@@ -2432,7 +2648,7 @@ export const MODEL_CATALOG = {
2432
2648
  maxTokens: 262144,
2433
2649
  inputPricePerMTok: 0.14,
2434
2650
  outputPricePerMTok: 1,
2435
- cacheReadPricePerMTok: 0,
2651
+ cacheReadPricePerMTok: 0.05,
2436
2652
  cacheWritePricePerMTok: 0,
2437
2653
  },
2438
2654
  'qwen/qwen3.6-flash': {
@@ -2469,7 +2685,7 @@ export const MODEL_CATALOG = {
2469
2685
  },
2470
2686
  'qwen/qwen3.7-max': {
2471
2687
  contextWindow: 1000000,
2472
- maxTokens: 65536,
2688
+ maxTokens: 131072,
2473
2689
  inputPricePerMTok: 1.475,
2474
2690
  outputPricePerMTok: 4.425,
2475
2691
  cacheReadPricePerMTok: 0.295,
@@ -2477,12 +2693,20 @@ export const MODEL_CATALOG = {
2477
2693
  },
2478
2694
  'qwen/qwen3.7-plus': {
2479
2695
  contextWindow: 1000000,
2480
- maxTokens: 65536,
2696
+ maxTokens: 131072,
2481
2697
  inputPricePerMTok: 0.32,
2482
2698
  outputPricePerMTok: 1.28,
2483
2699
  cacheReadPricePerMTok: 0.064,
2484
2700
  cacheWritePricePerMTok: 0.4,
2485
2701
  },
2702
+ 'qwen/qwen3.8-max': {
2703
+ contextWindow: 1000000,
2704
+ maxTokens: 131072,
2705
+ inputPricePerMTok: 2,
2706
+ outputPricePerMTok: 6,
2707
+ cacheReadPricePerMTok: 0.25,
2708
+ cacheWritePricePerMTok: 2.5,
2709
+ },
2486
2710
  'rekaai/reka-edge': {
2487
2711
  contextWindow: 16384,
2488
2712
  maxTokens: 16384,
@@ -2548,8 +2772,8 @@ export const MODEL_CATALOG = {
2548
2772
  cacheWritePricePerMTok: 0,
2549
2773
  },
2550
2774
  'thedrummer/unslopnemo-12b': {
2551
- contextWindow: 32768,
2552
- maxTokens: 32768,
2775
+ contextWindow: 1024000,
2776
+ maxTokens: 1024000,
2553
2777
  inputPricePerMTok: 0.4,
2554
2778
  outputPricePerMTok: 0.4,
2555
2779
  cacheReadPricePerMTok: 0,
@@ -2563,9 +2787,25 @@ export const MODEL_CATALOG = {
2563
2787
  cacheReadPricePerMTok: 0.17,
2564
2788
  cacheWritePricePerMTok: 0,
2565
2789
  },
2566
- 'upstage/solar-pro-3': {
2567
- contextWindow: 128000,
2790
+ 'thinkingmachines/inkling-small': {
2791
+ contextWindow: 524288,
2792
+ maxTokens: 4096,
2793
+ inputPricePerMTok: 0.5,
2794
+ outputPricePerMTok: 1.2,
2795
+ cacheReadPricePerMTok: 0.1,
2796
+ cacheWritePricePerMTok: 0,
2797
+ },
2798
+ 'thinkingmachines/inkling:batch': {
2799
+ contextWindow: 524288,
2568
2800
  maxTokens: 4096,
2801
+ inputPricePerMTok: 0.5,
2802
+ outputPricePerMTok: 2.025,
2803
+ cacheReadPricePerMTok: 0.085,
2804
+ cacheWritePricePerMTok: 0,
2805
+ },
2806
+ 'upstage/solar-pro-3': {
2807
+ contextWindow: 131072,
2808
+ maxTokens: 131072,
2569
2809
  inputPricePerMTok: 0.15,
2570
2810
  outputPricePerMTok: 0.6,
2571
2811
  cacheReadPricePerMTok: 0.015,
@@ -2692,19 +2932,27 @@ export const MODEL_CATALOG = {
2692
2932
  cacheWritePricePerMTok: 0,
2693
2933
  },
2694
2934
  'z-ai/glm-5.1': {
2695
- contextWindow: 200000,
2696
- maxTokens: 128000,
2697
- inputPricePerMTok: 0.966,
2698
- outputPricePerMTok: 3.036,
2699
- cacheReadPricePerMTok: 0.1794,
2935
+ contextWindow: 202752,
2936
+ maxTokens: 131072,
2937
+ inputPricePerMTok: 0.952,
2938
+ outputPricePerMTok: 2.992,
2939
+ cacheReadPricePerMTok: 0.1768,
2700
2940
  cacheWritePricePerMTok: 0,
2701
2941
  },
2702
2942
  'z-ai/glm-5.2': {
2703
2943
  contextWindow: 1048576,
2704
2944
  maxTokens: 131072,
2705
- inputPricePerMTok: 0.6818,
2706
- outputPricePerMTok: 2.1428,
2707
- cacheReadPricePerMTok: 0.12662,
2945
+ inputPricePerMTok: 0.6902,
2946
+ outputPricePerMTok: 2.1692,
2947
+ cacheReadPricePerMTok: 0.12818,
2948
+ cacheWritePricePerMTok: 0,
2949
+ },
2950
+ 'z-ai/glm-5.2:batch': {
2951
+ contextWindow: 512000,
2952
+ maxTokens: 4096,
2953
+ inputPricePerMTok: 0.7,
2954
+ outputPricePerMTok: 2.2,
2955
+ cacheReadPricePerMTok: 0.13,
2708
2956
  cacheWritePricePerMTok: 0,
2709
2957
  },
2710
2958
  'z-ai/glm-5v-turbo': {
@@ -2747,6 +2995,14 @@ export const MODEL_CATALOG = {
2747
2995
  cacheReadPricePerMTok: 0.2,
2748
2996
  cacheWritePricePerMTok: 2.5,
2749
2997
  },
2998
+ '~deepseek/deepseek-v4-flash-latest': {
2999
+ contextWindow: 1048576,
3000
+ maxTokens: 65536,
3001
+ inputPricePerMTok: 0.09,
3002
+ outputPricePerMTok: 0.18,
3003
+ cacheReadPricePerMTok: 0.018,
3004
+ cacheWritePricePerMTok: 0,
3005
+ },
2750
3006
  '~google/gemini-flash-latest': {
2751
3007
  contextWindow: 1048576,
2752
3008
  maxTokens: 65536,
@@ -2766,9 +3022,9 @@ export const MODEL_CATALOG = {
2766
3022
  '~moonshotai/kimi-latest': {
2767
3023
  contextWindow: 1048576,
2768
3024
  maxTokens: 131072,
2769
- inputPricePerMTok: 3,
2770
- outputPricePerMTok: 15,
2771
- cacheReadPricePerMTok: 0.3,
3025
+ inputPricePerMTok: 2.5,
3026
+ outputPricePerMTok: 14,
3027
+ cacheReadPricePerMTok: 0.29,
2772
3028
  cacheWritePricePerMTok: 0,
2773
3029
  },
2774
3030
  '~openai/gpt-latest': {
@@ -2821,22 +3077,6 @@ export const MODEL_CATALOG = {
2821
3077
  cacheReadPricePerMTok: 0.1,
2822
3078
  cacheWritePricePerMTok: 1.25,
2823
3079
  },
2824
- 'claude-opus-4-1': {
2825
- contextWindow: 200000,
2826
- maxTokens: 32000,
2827
- inputPricePerMTok: 15,
2828
- outputPricePerMTok: 75,
2829
- cacheReadPricePerMTok: 1.5,
2830
- cacheWritePricePerMTok: 18.75,
2831
- },
2832
- 'claude-opus-4-1-20250805': {
2833
- contextWindow: 200000,
2834
- maxTokens: 32000,
2835
- inputPricePerMTok: 15,
2836
- outputPricePerMTok: 75,
2837
- cacheReadPricePerMTok: 1.5,
2838
- cacheWritePricePerMTok: 18.75,
2839
- },
2840
3080
  'claude-opus-4-5': {
2841
3081
  contextWindow: 200000,
2842
3082
  maxTokens: 64000,