@qduc/term2 0.21.0 → 0.22.1

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 (681) hide show
  1. package/dist/agent.d.ts +2 -0
  2. package/dist/agent.d.ts.map +1 -1
  3. package/dist/agent.js +32 -10
  4. package/dist/agent.js.map +1 -1
  5. package/dist/app.d.ts.map +1 -1
  6. package/dist/app.js +83 -6
  7. package/dist/app.js.map +1 -1
  8. package/dist/cli.js +84 -2
  9. package/dist/cli.js.map +1 -1
  10. package/dist/components/InputBox.js +2 -3
  11. package/dist/components/InputBox.js.map +1 -1
  12. package/dist/components/common/MenuContainer.d.ts +15 -0
  13. package/dist/components/common/MenuContainer.d.ts.map +1 -1
  14. package/dist/components/common/MenuContainer.js +66 -32
  15. package/dist/components/common/MenuContainer.js.map +1 -1
  16. package/dist/components/input/MentorPoolMenuSession.d.ts.map +1 -1
  17. package/dist/components/input/MentorPoolMenuSession.js +5 -8
  18. package/dist/components/input/MentorPoolMenuSession.js.map +1 -1
  19. package/dist/components/input/MenuSurface.d.ts.map +1 -1
  20. package/dist/components/input/MenuSurface.js +12 -2
  21. package/dist/components/input/MenuSurface.js.map +1 -1
  22. package/dist/components/input/ModelMenuSession.d.ts.map +1 -1
  23. package/dist/components/input/ModelMenuSession.js +71 -34
  24. package/dist/components/input/ModelMenuSession.js.map +1 -1
  25. package/dist/components/input/SettingsMenuSession.d.ts.map +1 -1
  26. package/dist/components/input/SettingsMenuSession.js +56 -17
  27. package/dist/components/input/SettingsMenuSession.js.map +1 -1
  28. package/dist/components/input/SettingsValueMenuSession.d.ts.map +1 -1
  29. package/dist/components/input/SettingsValueMenuSession.js +33 -3
  30. package/dist/components/input/SettingsValueMenuSession.js.map +1 -1
  31. package/dist/components/input/menu-types.d.ts +1 -1
  32. package/dist/components/input/menu-types.d.ts.map +1 -1
  33. package/dist/components/input/triggers.js +2 -2
  34. package/dist/components/input/triggers.js.map +1 -1
  35. package/dist/components/layout/BackgroundTasksPanel.d.ts +0 -1
  36. package/dist/components/layout/BackgroundTasksPanel.d.ts.map +1 -1
  37. package/dist/components/layout/BackgroundTasksPanel.js +4 -112
  38. package/dist/components/layout/BackgroundTasksPanel.js.map +1 -1
  39. package/dist/components/menu/ModelSelectionMenu.d.ts +10 -0
  40. package/dist/components/menu/ModelSelectionMenu.d.ts.map +1 -1
  41. package/dist/components/menu/ModelSelectionMenu.js +86 -17
  42. package/dist/components/menu/ModelSelectionMenu.js.map +1 -1
  43. package/dist/components/menu/ProfileSelectionMenu.d.ts.map +1 -1
  44. package/dist/components/menu/ProfileSelectionMenu.js +15 -14
  45. package/dist/components/menu/ProfileSelectionMenu.js.map +1 -1
  46. package/dist/components/menu/ResumeSelectionMenu.d.ts.map +1 -1
  47. package/dist/components/menu/ResumeSelectionMenu.js +13 -15
  48. package/dist/components/menu/ResumeSelectionMenu.js.map +1 -1
  49. package/dist/components/menu/SettingsSelectionMenu.d.ts.map +1 -1
  50. package/dist/components/menu/SettingsSelectionMenu.js +4 -32
  51. package/dist/components/menu/SettingsSelectionMenu.js.map +1 -1
  52. package/dist/components/menu/SettingsValueSelectionMenu.d.ts.map +1 -1
  53. package/dist/components/menu/SettingsValueSelectionMenu.js +12 -5
  54. package/dist/components/menu/SettingsValueSelectionMenu.js.map +1 -1
  55. package/dist/components/menu/SkillSelectionMenu.d.ts.map +1 -1
  56. package/dist/components/menu/SkillSelectionMenu.js +13 -16
  57. package/dist/components/menu/SkillSelectionMenu.js.map +1 -1
  58. package/dist/components/menu/SlashCommandMenu.d.ts +8 -0
  59. package/dist/components/menu/SlashCommandMenu.d.ts.map +1 -1
  60. package/dist/components/menu/SlashCommandMenu.js +16 -6
  61. package/dist/components/menu/SlashCommandMenu.js.map +1 -1
  62. package/dist/components/menu/StandaloneModelPickerApp.d.ts +40 -0
  63. package/dist/components/menu/StandaloneModelPickerApp.d.ts.map +1 -0
  64. package/dist/components/menu/StandaloneModelPickerApp.js +105 -0
  65. package/dist/components/menu/StandaloneModelPickerApp.js.map +1 -0
  66. package/dist/components/menu/settings-value-formatter.d.ts +11 -0
  67. package/dist/components/menu/settings-value-formatter.d.ts.map +1 -0
  68. package/dist/components/menu/settings-value-formatter.js +214 -0
  69. package/dist/components/menu/settings-value-formatter.js.map +1 -0
  70. package/dist/components/message/CommandMessage.d.ts.map +1 -1
  71. package/dist/components/message/CommandMessage.js +22 -17
  72. package/dist/components/message/CommandMessage.js.map +1 -1
  73. package/dist/components/message/MessageList.d.ts +2 -1
  74. package/dist/components/message/MessageList.d.ts.map +1 -1
  75. package/dist/components/message/MessageList.js +25 -40
  76. package/dist/components/message/MessageList.js.map +1 -1
  77. package/dist/components/message/RunCodeRenderer.d.ts +16 -0
  78. package/dist/components/message/RunCodeRenderer.d.ts.map +1 -0
  79. package/dist/components/message/RunCodeRenderer.js +25 -0
  80. package/dist/components/message/RunCodeRenderer.js.map +1 -0
  81. package/dist/components/message/command-message-helpers.d.ts +30 -0
  82. package/dist/components/message/command-message-helpers.d.ts.map +1 -1
  83. package/dist/components/message/command-message-helpers.js +85 -0
  84. package/dist/components/message/command-message-helpers.js.map +1 -1
  85. package/dist/components/prompt/ApprovalPrompt.d.ts.map +1 -1
  86. package/dist/components/prompt/ApprovalPrompt.js +12 -21
  87. package/dist/components/prompt/ApprovalPrompt.js.map +1 -1
  88. package/dist/components/theme.d.ts +1 -0
  89. package/dist/components/theme.d.ts.map +1 -1
  90. package/dist/components/theme.js +1 -0
  91. package/dist/components/theme.js.map +1 -1
  92. package/dist/contracts/streamed-model-turn.d.ts +6 -0
  93. package/dist/contracts/streamed-model-turn.d.ts.map +1 -1
  94. package/dist/hooks/conversation-ui-reducer.d.ts.map +1 -1
  95. package/dist/hooks/conversation-ui-reducer.js +5 -2
  96. package/dist/hooks/conversation-ui-reducer.js.map +1 -1
  97. package/dist/hooks/settings-completion-config.d.ts +1 -1
  98. package/dist/hooks/settings-completion-config.d.ts.map +1 -1
  99. package/dist/hooks/settings-completion-config.js +4 -122
  100. package/dist/hooks/settings-completion-config.js.map +1 -1
  101. package/dist/hooks/settings-completion-logic.d.ts +1 -1
  102. package/dist/hooks/settings-completion-logic.d.ts.map +1 -1
  103. package/dist/hooks/settings-completion-logic.js.map +1 -1
  104. package/dist/hooks/use-app-keyboard-shortcuts.d.ts.map +1 -1
  105. package/dist/hooks/use-app-keyboard-shortcuts.js +33 -20
  106. package/dist/hooks/use-app-keyboard-shortcuts.js.map +1 -1
  107. package/dist/hooks/use-conversation.d.ts +3 -0
  108. package/dist/hooks/use-conversation.d.ts.map +1 -1
  109. package/dist/hooks/use-conversation.js +107 -16
  110. package/dist/hooks/use-conversation.js.map +1 -1
  111. package/dist/hooks/use-mentor-pool-selection.d.ts +5 -3
  112. package/dist/hooks/use-mentor-pool-selection.d.ts.map +1 -1
  113. package/dist/hooks/use-mentor-pool-selection.js +63 -51
  114. package/dist/hooks/use-mentor-pool-selection.js.map +1 -1
  115. package/dist/hooks/use-model-selection.d.ts +33 -4
  116. package/dist/hooks/use-model-selection.d.ts.map +1 -1
  117. package/dist/hooks/use-model-selection.js +204 -114
  118. package/dist/hooks/use-model-selection.js.map +1 -1
  119. package/dist/hooks/use-settings-completion.d.ts.map +1 -1
  120. package/dist/hooks/use-settings-completion.js +1 -6
  121. package/dist/hooks/use-settings-completion.js.map +1 -1
  122. package/dist/hooks/use-settings-value-completion.d.ts +1 -8
  123. package/dist/hooks/use-settings-value-completion.d.ts.map +1 -1
  124. package/dist/hooks/use-settings-value-completion.js +10 -100
  125. package/dist/hooks/use-settings-value-completion.js.map +1 -1
  126. package/dist/hooks/use-slash-commands.d.ts.map +1 -1
  127. package/dist/hooks/use-slash-commands.js +19 -13
  128. package/dist/hooks/use-slash-commands.js.map +1 -1
  129. package/dist/hooks/use-standalone-model-picker.d.ts +64 -0
  130. package/dist/hooks/use-standalone-model-picker.d.ts.map +1 -0
  131. package/dist/hooks/use-standalone-model-picker.js +310 -0
  132. package/dist/hooks/use-standalone-model-picker.js.map +1 -0
  133. package/dist/lib/agent-client.d.ts +17 -1
  134. package/dist/lib/agent-client.d.ts.map +1 -1
  135. package/dist/lib/agent-client.js +173 -53
  136. package/dist/lib/agent-client.js.map +1 -1
  137. package/dist/lib/agent-configuration.d.ts +12 -3
  138. package/dist/lib/agent-configuration.d.ts.map +1 -1
  139. package/dist/lib/agent-configuration.js +26 -7
  140. package/dist/lib/agent-configuration.js.map +1 -1
  141. package/dist/lib/agent-factory.d.ts +3 -0
  142. package/dist/lib/agent-factory.d.ts.map +1 -1
  143. package/dist/lib/agent-factory.js +49 -7
  144. package/dist/lib/agent-factory.js.map +1 -1
  145. package/dist/lib/ask-user-answer-store.d.ts +1 -0
  146. package/dist/lib/ask-user-answer-store.d.ts.map +1 -1
  147. package/dist/lib/ask-user-answer-store.js +3 -0
  148. package/dist/lib/ask-user-answer-store.js.map +1 -1
  149. package/dist/lib/tool-invoke.d.ts +1 -0
  150. package/dist/lib/tool-invoke.d.ts.map +1 -1
  151. package/dist/lib/tool-invoke.js +1 -0
  152. package/dist/lib/tool-invoke.js.map +1 -1
  153. package/dist/non-interactive.d.ts +23 -0
  154. package/dist/non-interactive.d.ts.map +1 -1
  155. package/dist/non-interactive.js +225 -31
  156. package/dist/non-interactive.js.map +1 -1
  157. package/dist/prompts/background-shell.d.ts.map +1 -1
  158. package/dist/prompts/background-shell.js +4 -2
  159. package/dist/prompts/background-shell.js.map +1 -1
  160. package/dist/prompts/background-shell.ts +4 -2
  161. package/dist/prompts/codex.md +1 -3
  162. package/dist/prompts/fragments/gpt-6-astra.md +13 -0
  163. package/dist/prompts/gpt-5-modern.md +1 -3
  164. package/dist/prompts/gpt-5.4-mini.md +0 -2
  165. package/dist/prompts/gpt-5.5.md +0 -2
  166. package/dist/prompts/gpt-5.6.md +0 -1
  167. package/dist/prompts/lite.md +1 -6
  168. package/dist/prompts/memory.md +2 -2
  169. package/dist/prompts/orchestrator.md +4 -4
  170. package/dist/prompts/prompt-constructor.d.ts +2 -0
  171. package/dist/prompts/prompt-constructor.d.ts.map +1 -1
  172. package/dist/prompts/prompt-constructor.js +4 -2
  173. package/dist/prompts/prompt-constructor.js.map +1 -1
  174. package/dist/prompts/prompt-constructor.test.ts +178 -5
  175. package/dist/prompts/prompt-constructor.ts +7 -1
  176. package/dist/prompts/prompt-profiles.d.ts.map +1 -1
  177. package/dist/prompts/prompt-profiles.js +6 -0
  178. package/dist/prompts/prompt-profiles.js.map +1 -1
  179. package/dist/prompts/prompt-profiles.test.ts +6 -4
  180. package/dist/prompts/prompt-profiles.ts +6 -0
  181. package/dist/prompts/session-browser.md +4 -2
  182. package/dist/prompts/shell-auto-approval.d.ts +1 -1
  183. package/dist/prompts/shell-auto-approval.d.ts.map +1 -1
  184. package/dist/prompts/shell-auto-approval.js +2 -2
  185. package/dist/prompts/shell-auto-approval.ts +2 -2
  186. package/dist/prompts/subagent-delegation.js +3 -3
  187. package/dist/prompts/subagent-delegation.js.map +1 -1
  188. package/dist/prompts/subagent-delegation.test.ts +3 -3
  189. package/dist/prompts/subagent-delegation.ts +3 -3
  190. package/dist/prompts/subagents/librarian.md +4 -4
  191. package/dist/prompts/subagents/worker-prompt.test.ts +7 -0
  192. package/dist/prompts/tool-surface-guidance.d.ts +4 -0
  193. package/dist/prompts/tool-surface-guidance.d.ts.map +1 -0
  194. package/dist/prompts/tool-surface-guidance.js +19 -0
  195. package/dist/prompts/tool-surface-guidance.js.map +1 -0
  196. package/dist/prompts/tool-surface-guidance.ts +20 -0
  197. package/dist/providers/codex-compact.d.ts +2 -0
  198. package/dist/providers/codex-compact.d.ts.map +1 -1
  199. package/dist/providers/codex-compact.js +14 -0
  200. package/dist/providers/codex-compact.js.map +1 -1
  201. package/dist/providers/codex-responses-model.d.ts +23 -3
  202. package/dist/providers/codex-responses-model.d.ts.map +1 -1
  203. package/dist/providers/codex-responses-model.js +121 -33
  204. package/dist/providers/codex-responses-model.js.map +1 -1
  205. package/dist/providers/codex.provider.d.ts +2 -0
  206. package/dist/providers/codex.provider.d.ts.map +1 -1
  207. package/dist/providers/codex.provider.js +3 -2
  208. package/dist/providers/codex.provider.js.map +1 -1
  209. package/dist/providers/grok.provider.d.ts.map +1 -1
  210. package/dist/providers/grok.provider.js +5 -2
  211. package/dist/providers/grok.provider.js.map +1 -1
  212. package/dist/providers/model-catalog/catalog.generated.d.ts +453 -309
  213. package/dist/providers/model-catalog/catalog.generated.d.ts.map +1 -1
  214. package/dist/providers/model-catalog/catalog.generated.js +453 -309
  215. package/dist/providers/model-catalog/catalog.generated.js.map +1 -1
  216. package/dist/providers/opencode-session.d.ts.map +1 -1
  217. package/dist/providers/opencode-session.js +5 -0
  218. package/dist/providers/opencode-session.js.map +1 -1
  219. package/dist/providers/openrouter.provider.js +8 -1
  220. package/dist/providers/openrouter.provider.js.map +1 -1
  221. package/dist/providers/responses-websocket-sessions.d.ts +10 -0
  222. package/dist/providers/responses-websocket-sessions.d.ts.map +1 -1
  223. package/dist/providers/responses-websocket-sessions.js +9 -4
  224. package/dist/providers/responses-websocket-sessions.js.map +1 -1
  225. package/dist/providers/retrying-model.d.ts +2 -1
  226. package/dist/providers/retrying-model.d.ts.map +1 -1
  227. package/dist/providers/retrying-model.js +3 -0
  228. package/dist/providers/retrying-model.js.map +1 -1
  229. package/dist/services/agent-runtime/application-run-loop.d.ts +8 -1
  230. package/dist/services/agent-runtime/application-run-loop.d.ts.map +1 -1
  231. package/dist/services/agent-runtime/application-run-loop.js +30 -6
  232. package/dist/services/agent-runtime/application-run-loop.js.map +1 -1
  233. package/dist/services/agent-runtime/context-compaction/index.d.ts +2 -0
  234. package/dist/services/agent-runtime/context-compaction/index.d.ts.map +1 -1
  235. package/dist/services/agent-runtime/context-compaction/index.js +30 -4
  236. package/dist/services/agent-runtime/context-compaction/index.js.map +1 -1
  237. package/dist/services/agent-runtime/context-compaction/local-context-compactor.d.ts +3 -0
  238. package/dist/services/agent-runtime/context-compaction/local-context-compactor.d.ts.map +1 -1
  239. package/dist/services/agent-runtime/context-compaction/local-context-compactor.js +15 -9
  240. package/dist/services/agent-runtime/context-compaction/local-context-compactor.js.map +1 -1
  241. package/dist/services/agent-runtime/model-resolver.d.ts.map +1 -1
  242. package/dist/services/agent-runtime/model-resolver.js +1 -23
  243. package/dist/services/agent-runtime/model-resolver.js.map +1 -1
  244. package/dist/services/agent-runtime/tool-invocation-context.d.ts +12 -0
  245. package/dist/services/agent-runtime/tool-invocation-context.d.ts.map +1 -1
  246. package/dist/services/agent-runtime/workflow/workflow-evaluator.d.ts +7 -1
  247. package/dist/services/agent-runtime/workflow/workflow-evaluator.d.ts.map +1 -1
  248. package/dist/services/agent-runtime/workflow/workflow-evaluator.js +78 -183
  249. package/dist/services/agent-runtime/workflow/workflow-evaluator.js.map +1 -1
  250. package/dist/services/agent-runtime/workflow/workflow-sandbox.d.ts +4 -3
  251. package/dist/services/agent-runtime/workflow/workflow-sandbox.d.ts.map +1 -1
  252. package/dist/services/agent-runtime/workflow/workflow-sandbox.js +9 -7
  253. package/dist/services/agent-runtime/workflow/workflow-sandbox.js.map +1 -1
  254. package/dist/services/agent-runtime/workflow/workflow-types.d.ts +1 -1
  255. package/dist/services/agent-runtime/workflow/workflow-types.d.ts.map +1 -1
  256. package/dist/services/agent-runtime/workflow/workflow-types.js.map +1 -1
  257. package/dist/services/approval/approval-decision-executor.d.ts +2 -1
  258. package/dist/services/approval/approval-decision-executor.d.ts.map +1 -1
  259. package/dist/services/approval/approval-decision-executor.js +22 -116
  260. package/dist/services/approval/approval-decision-executor.js.map +1 -1
  261. package/dist/services/approval/approval-descriptor.d.ts +10 -0
  262. package/dist/services/approval/approval-descriptor.d.ts.map +1 -0
  263. package/dist/services/approval/approval-descriptor.js +23 -0
  264. package/dist/services/approval/approval-descriptor.js.map +1 -0
  265. package/dist/services/approval/approval-flow-coordinator.d.ts +2 -1
  266. package/dist/services/approval/approval-flow-coordinator.d.ts.map +1 -1
  267. package/dist/services/approval/approval-flow-coordinator.js +2 -1
  268. package/dist/services/approval/approval-flow-coordinator.js.map +1 -1
  269. package/dist/services/approval/approval-grant-executor.d.ts +25 -0
  270. package/dist/services/approval/approval-grant-executor.d.ts.map +1 -0
  271. package/dist/services/approval/approval-grant-executor.js +125 -0
  272. package/dist/services/approval/approval-grant-executor.js.map +1 -0
  273. package/dist/services/approval/background-subagent-approval-controller.d.ts +2 -1
  274. package/dist/services/approval/background-subagent-approval-controller.d.ts.map +1 -1
  275. package/dist/services/approval/background-subagent-approval-controller.js.map +1 -1
  276. package/dist/services/approval/nested-approval-owner.d.ts +52 -0
  277. package/dist/services/approval/nested-approval-owner.d.ts.map +1 -0
  278. package/dist/services/approval/nested-approval-owner.js +194 -0
  279. package/dist/services/approval/nested-approval-owner.js.map +1 -0
  280. package/dist/services/approval/non-interactive-approval-policy.js +1 -1
  281. package/dist/services/approval/non-interactive-approval-policy.js.map +1 -1
  282. package/dist/services/approval/shell-auto-approval-evaluator.d.ts.map +1 -1
  283. package/dist/services/approval/shell-auto-approval-evaluator.js +2 -4
  284. package/dist/services/approval/shell-auto-approval-evaluator.js.map +1 -1
  285. package/dist/services/approval/shell-auto-approval-resolver.d.ts.map +1 -1
  286. package/dist/services/approval/shell-auto-approval-resolver.js +4 -0
  287. package/dist/services/approval/shell-auto-approval-resolver.js.map +1 -1
  288. package/dist/services/approval/tool-approval-batch-coordinator.d.ts +10 -3
  289. package/dist/services/approval/tool-approval-batch-coordinator.d.ts.map +1 -1
  290. package/dist/services/approval/tool-approval-batch-coordinator.js +16 -5
  291. package/dist/services/approval/tool-approval-batch-coordinator.js.map +1 -1
  292. package/dist/services/approval/tool-approval-policy-registry.d.ts +13 -0
  293. package/dist/services/approval/tool-approval-policy-registry.d.ts.map +1 -1
  294. package/dist/services/approval/tool-approval-policy-registry.js +16 -1
  295. package/dist/services/approval/tool-approval-policy-registry.js.map +1 -1
  296. package/dist/services/conversation/conversation-adapter-factory.d.ts +3 -1
  297. package/dist/services/conversation/conversation-adapter-factory.d.ts.map +1 -1
  298. package/dist/services/conversation/conversation-adapter-factory.js +3 -3
  299. package/dist/services/conversation/conversation-adapter-factory.js.map +1 -1
  300. package/dist/services/conversation/conversation-adapter.d.ts +3 -2
  301. package/dist/services/conversation/conversation-adapter.d.ts.map +1 -1
  302. package/dist/services/conversation/conversation-adapter.js +32 -23
  303. package/dist/services/conversation/conversation-adapter.js.map +1 -1
  304. package/dist/services/conversation/conversation-orchestrator.d.ts +11 -0
  305. package/dist/services/conversation/conversation-orchestrator.d.ts.map +1 -1
  306. package/dist/services/conversation/conversation-orchestrator.js +107 -64
  307. package/dist/services/conversation/conversation-orchestrator.js.map +1 -1
  308. package/dist/services/conversation/conversation-persistence.d.ts +6 -1
  309. package/dist/services/conversation/conversation-persistence.d.ts.map +1 -1
  310. package/dist/services/conversation/conversation-persistence.js +68 -19
  311. package/dist/services/conversation/conversation-persistence.js.map +1 -1
  312. package/dist/services/conversation/conversation-result-builder.d.ts +3 -0
  313. package/dist/services/conversation/conversation-result-builder.d.ts.map +1 -1
  314. package/dist/services/conversation/conversation-result-builder.js +27 -23
  315. package/dist/services/conversation/conversation-result-builder.js.map +1 -1
  316. package/dist/services/conversation/conversation-runtime-factory.d.ts +5 -0
  317. package/dist/services/conversation/conversation-runtime-factory.d.ts.map +1 -1
  318. package/dist/services/conversation/conversation-runtime-factory.js +1 -0
  319. package/dist/services/conversation/conversation-runtime-factory.js.map +1 -1
  320. package/dist/services/conversation/conversation-service.d.ts +11 -1
  321. package/dist/services/conversation/conversation-service.d.ts.map +1 -1
  322. package/dist/services/conversation/conversation-service.js +68 -17
  323. package/dist/services/conversation/conversation-service.js.map +1 -1
  324. package/dist/services/conversation/session-browser.d.ts +34 -27
  325. package/dist/services/conversation/session-browser.d.ts.map +1 -1
  326. package/dist/services/conversation/session-browser.js +221 -60
  327. package/dist/services/conversation/session-browser.js.map +1 -1
  328. package/dist/services/conversation/session-index/session-index-database.d.ts +138 -0
  329. package/dist/services/conversation/session-index/session-index-database.d.ts.map +1 -0
  330. package/dist/services/conversation/session-index/session-index-database.js +684 -0
  331. package/dist/services/conversation/session-index/session-index-database.js.map +1 -0
  332. package/dist/services/conversation/session-index/session-index-schema.d.ts +35 -0
  333. package/dist/services/conversation/session-index/session-index-schema.d.ts.map +1 -0
  334. package/dist/services/conversation/session-index/session-index-schema.js +156 -0
  335. package/dist/services/conversation/session-index/session-index-schema.js.map +1 -0
  336. package/dist/services/conversation/session-index/session-index-service.d.ts +30 -0
  337. package/dist/services/conversation/session-index/session-index-service.d.ts.map +1 -0
  338. package/dist/services/conversation/session-index/session-index-service.js +234 -0
  339. package/dist/services/conversation/session-index/session-index-service.js.map +1 -0
  340. package/dist/services/conversation/session-index/session-index-worker-client.d.ts +36 -0
  341. package/dist/services/conversation/session-index/session-index-worker-client.d.ts.map +1 -0
  342. package/dist/services/conversation/session-index/session-index-worker-client.js +143 -0
  343. package/dist/services/conversation/session-index/session-index-worker-client.js.map +1 -0
  344. package/dist/services/conversation/session-index/session-index-worker.d.ts +56 -0
  345. package/dist/services/conversation/session-index/session-index-worker.d.ts.map +1 -0
  346. package/dist/services/conversation/session-index/session-index-worker.js +96 -0
  347. package/dist/services/conversation/session-index/session-index-worker.js.map +1 -0
  348. package/dist/services/conversation/session-search-helpers.d.ts +4 -0
  349. package/dist/services/conversation/session-search-helpers.d.ts.map +1 -0
  350. package/dist/services/conversation/session-search-helpers.js +13 -0
  351. package/dist/services/conversation/session-search-helpers.js.map +1 -0
  352. package/dist/services/conversation-agent-client.d.ts +8 -0
  353. package/dist/services/conversation-agent-client.d.ts.map +1 -1
  354. package/dist/services/execution-context.js +2 -2
  355. package/dist/services/execution-context.js.map +1 -1
  356. package/dist/services/hooks/hook-event-factory.d.ts +2 -1
  357. package/dist/services/hooks/hook-event-factory.d.ts.map +1 -1
  358. package/dist/services/hooks/hook-event-factory.js +2 -1
  359. package/dist/services/hooks/hook-event-factory.js.map +1 -1
  360. package/dist/services/logging/conversation-log-writer.d.ts.map +1 -1
  361. package/dist/services/logging/conversation-log-writer.js +50 -26
  362. package/dist/services/logging/conversation-log-writer.js.map +1 -1
  363. package/dist/services/logging/logging-service.d.ts.map +1 -1
  364. package/dist/services/logging/logging-service.js +1 -0
  365. package/dist/services/logging/logging-service.js.map +1 -1
  366. package/dist/services/logging/provider-traffic.d.ts +22 -2
  367. package/dist/services/logging/provider-traffic.d.ts.map +1 -1
  368. package/dist/services/logging/provider-traffic.js +147 -12
  369. package/dist/services/logging/provider-traffic.js.map +1 -1
  370. package/dist/services/model-service.d.ts +42 -0
  371. package/dist/services/model-service.d.ts.map +1 -1
  372. package/dist/services/model-service.js +161 -26
  373. package/dist/services/model-service.js.map +1 -1
  374. package/dist/services/models/model-catalog-session.d.ts.map +1 -1
  375. package/dist/services/models/model-catalog-session.js +11 -7
  376. package/dist/services/models/model-catalog-session.js.map +1 -1
  377. package/dist/services/models/model-favorites.d.ts +56 -0
  378. package/dist/services/models/model-favorites.d.ts.map +1 -0
  379. package/dist/services/models/model-favorites.js +93 -0
  380. package/dist/services/models/model-favorites.js.map +1 -0
  381. package/dist/services/models/model-listing.d.ts +40 -0
  382. package/dist/services/models/model-listing.d.ts.map +1 -1
  383. package/dist/services/models/model-listing.js +35 -2
  384. package/dist/services/models/model-listing.js.map +1 -1
  385. package/dist/services/models/model-nicknames.d.ts +113 -0
  386. package/dist/services/models/model-nicknames.d.ts.map +1 -0
  387. package/dist/services/models/model-nicknames.js +182 -0
  388. package/dist/services/models/model-nicknames.js.map +1 -0
  389. package/dist/services/models/model-picker-host.d.ts +72 -0
  390. package/dist/services/models/model-picker-host.d.ts.map +1 -0
  391. package/dist/services/models/model-picker-host.js +86 -0
  392. package/dist/services/models/model-picker-host.js.map +1 -0
  393. package/dist/services/models/model-resolution.d.ts +35 -3
  394. package/dist/services/models/model-resolution.d.ts.map +1 -1
  395. package/dist/services/models/model-resolution.js +276 -47
  396. package/dist/services/models/model-resolution.js.map +1 -1
  397. package/dist/services/models/reasoning-effort.d.ts +20 -0
  398. package/dist/services/models/reasoning-effort.d.ts.map +1 -0
  399. package/dist/services/models/reasoning-effort.js +28 -0
  400. package/dist/services/models/reasoning-effort.js.map +1 -0
  401. package/dist/services/models/unified-model-catalog.d.ts +4 -0
  402. package/dist/services/models/unified-model-catalog.d.ts.map +1 -0
  403. package/dist/services/models/unified-model-catalog.js +54 -0
  404. package/dist/services/models/unified-model-catalog.js.map +1 -0
  405. package/dist/services/retry/provider-failure-classification.d.ts +16 -0
  406. package/dist/services/retry/provider-failure-classification.d.ts.map +1 -1
  407. package/dist/services/retry/provider-failure-classification.js +45 -0
  408. package/dist/services/retry/provider-failure-classification.js.map +1 -1
  409. package/dist/services/retry/retry-recovery-budget.d.ts +26 -1
  410. package/dist/services/retry/retry-recovery-budget.d.ts.map +1 -1
  411. package/dist/services/retry/retry-recovery-budget.js +33 -1
  412. package/dist/services/retry/retry-recovery-budget.js.map +1 -1
  413. package/dist/services/sandboxed-code-host/host-types.d.ts +135 -0
  414. package/dist/services/sandboxed-code-host/host-types.d.ts.map +1 -0
  415. package/dist/services/sandboxed-code-host/host-types.js +6 -0
  416. package/dist/services/sandboxed-code-host/host-types.js.map +1 -0
  417. package/dist/services/sandboxed-code-host/host-worker.d.ts +9 -0
  418. package/dist/services/sandboxed-code-host/host-worker.d.ts.map +1 -0
  419. package/dist/services/sandboxed-code-host/host-worker.js +351 -0
  420. package/dist/services/sandboxed-code-host/host-worker.js.map +1 -0
  421. package/dist/services/sandboxed-code-host/sandbox.d.ts +16 -0
  422. package/dist/services/sandboxed-code-host/sandbox.d.ts.map +1 -0
  423. package/dist/services/sandboxed-code-host/sandbox.js +21 -0
  424. package/dist/services/sandboxed-code-host/sandbox.js.map +1 -0
  425. package/dist/services/sandboxed-code-host/sandboxed-code-host.d.ts +17 -0
  426. package/dist/services/sandboxed-code-host/sandboxed-code-host.d.ts.map +1 -0
  427. package/dist/services/sandboxed-code-host/sandboxed-code-host.js +347 -0
  428. package/dist/services/sandboxed-code-host/sandboxed-code-host.js.map +1 -0
  429. package/dist/services/service-interfaces.d.ts +32 -0
  430. package/dist/services/service-interfaces.d.ts.map +1 -1
  431. package/dist/services/session/background-task-control.d.ts +3 -1
  432. package/dist/services/session/background-task-control.d.ts.map +1 -1
  433. package/dist/services/session/background-task-control.js +4 -0
  434. package/dist/services/session/background-task-control.js.map +1 -1
  435. package/dist/services/session/continuation-plan-applier.d.ts +2 -1
  436. package/dist/services/session/continuation-plan-applier.d.ts.map +1 -1
  437. package/dist/services/session/continuation-plan-applier.js.map +1 -1
  438. package/dist/services/session/continuation-recovery-handler.d.ts +2 -1
  439. package/dist/services/session/continuation-recovery-handler.d.ts.map +1 -1
  440. package/dist/services/session/continuation-recovery-handler.js +49 -5
  441. package/dist/services/session/continuation-recovery-handler.js.map +1 -1
  442. package/dist/services/session/initial-input-preparer.d.ts +2 -1
  443. package/dist/services/session/initial-input-preparer.d.ts.map +1 -1
  444. package/dist/services/session/initial-input-preparer.js +2 -1
  445. package/dist/services/session/initial-input-preparer.js.map +1 -1
  446. package/dist/services/session/initial-turn-recovery-handler.d.ts +2 -1
  447. package/dist/services/session/initial-turn-recovery-handler.d.ts.map +1 -1
  448. package/dist/services/session/initial-turn-recovery-handler.js +51 -16
  449. package/dist/services/session/initial-turn-recovery-handler.js.map +1 -1
  450. package/dist/services/session/post-execute-pending-registry.d.ts +2 -1
  451. package/dist/services/session/post-execute-pending-registry.d.ts.map +1 -1
  452. package/dist/services/session/post-execute-pending-registry.js +3 -2
  453. package/dist/services/session/post-execute-pending-registry.js.map +1 -1
  454. package/dist/services/session/session-client-factory.d.ts +4 -0
  455. package/dist/services/session/session-client-factory.d.ts.map +1 -1
  456. package/dist/services/session/session-client-factory.js +12 -4
  457. package/dist/services/session/session-client-factory.js.map +1 -1
  458. package/dist/services/session/session-composition.d.ts +26 -2
  459. package/dist/services/session/session-composition.d.ts.map +1 -1
  460. package/dist/services/session/session-composition.js +97 -18
  461. package/dist/services/session/session-composition.js.map +1 -1
  462. package/dist/services/session/session-continuity-reset.d.ts +2 -1
  463. package/dist/services/session/session-continuity-reset.d.ts.map +1 -1
  464. package/dist/services/session/session-continuity-reset.js +5 -2
  465. package/dist/services/session/session-continuity-reset.js.map +1 -1
  466. package/dist/services/session/session-identity.d.ts +20 -0
  467. package/dist/services/session/session-identity.d.ts.map +1 -0
  468. package/dist/services/session/session-identity.js +43 -0
  469. package/dist/services/session/session-identity.js.map +1 -0
  470. package/dist/services/session/session-lifecycle.d.ts +5 -1
  471. package/dist/services/session/session-lifecycle.d.ts.map +1 -1
  472. package/dist/services/session/session-lifecycle.js +5 -1
  473. package/dist/services/session/session-lifecycle.js.map +1 -1
  474. package/dist/services/session/session-stream-processor.d.ts +2 -1
  475. package/dist/services/session/session-stream-processor.d.ts.map +1 -1
  476. package/dist/services/session/session-stream-processor.js +5 -4
  477. package/dist/services/session/session-stream-processor.js.map +1 -1
  478. package/dist/services/session/test-helpers/conversation-session-fixtures.d.ts.map +1 -1
  479. package/dist/services/session/test-helpers/conversation-session-fixtures.js +14 -9
  480. package/dist/services/session/test-helpers/conversation-session-fixtures.js.map +1 -1
  481. package/dist/services/session/turn-coordinator.d.ts +2 -1
  482. package/dist/services/session/turn-coordinator.d.ts.map +1 -1
  483. package/dist/services/session/turn-coordinator.js +3 -0
  484. package/dist/services/session/turn-coordinator.js.map +1 -1
  485. package/dist/services/session/turn-workflow.d.ts +4 -1
  486. package/dist/services/session/turn-workflow.d.ts.map +1 -1
  487. package/dist/services/session/turn-workflow.js +58 -21
  488. package/dist/services/session/turn-workflow.js.map +1 -1
  489. package/dist/services/session-rollover/session-rollover-brief.d.ts +8 -1
  490. package/dist/services/session-rollover/session-rollover-brief.d.ts.map +1 -1
  491. package/dist/services/session-rollover/session-rollover-brief.js +14 -1
  492. package/dist/services/session-rollover/session-rollover-brief.js.map +1 -1
  493. package/dist/services/settings/setting-schema-utils.d.ts +2 -0
  494. package/dist/services/settings/setting-schema-utils.d.ts.map +1 -1
  495. package/dist/services/settings/setting-schema-utils.js +15 -27
  496. package/dist/services/settings/setting-schema-utils.js.map +1 -1
  497. package/dist/services/settings/settings-schema.d.ts +8 -0
  498. package/dist/services/settings/settings-schema.d.ts.map +1 -1
  499. package/dist/services/settings/settings-schema.js +23 -6
  500. package/dist/services/settings/settings-schema.js.map +1 -1
  501. package/dist/services/settings/settings-sources.d.ts +207 -0
  502. package/dist/services/settings/settings-sources.d.ts.map +1 -1
  503. package/dist/services/settings/settings-sources.js +48 -1
  504. package/dist/services/settings/settings-sources.js.map +1 -1
  505. package/dist/services/settings/settings-ui-metadata.d.ts +27 -0
  506. package/dist/services/settings/settings-ui-metadata.d.ts.map +1 -0
  507. package/dist/services/settings/settings-ui-metadata.js +283 -0
  508. package/dist/services/settings/settings-ui-metadata.js.map +1 -0
  509. package/dist/services/settings/test-helpers/settings-consumer-inventory.d.ts +10 -0
  510. package/dist/services/settings/test-helpers/settings-consumer-inventory.d.ts.map +1 -1
  511. package/dist/services/settings/test-helpers/settings-consumer-inventory.js +46 -0
  512. package/dist/services/settings/test-helpers/settings-consumer-inventory.js.map +1 -1
  513. package/dist/services/subagents/execution-runner.d.ts.map +1 -1
  514. package/dist/services/subagents/execution-runner.js +8 -0
  515. package/dist/services/subagents/execution-runner.js.map +1 -1
  516. package/dist/services/subagents/role-loader.d.ts.map +1 -1
  517. package/dist/services/subagents/role-loader.js +4 -0
  518. package/dist/services/subagents/role-loader.js.map +1 -1
  519. package/dist/services/subagents/subagent-client-types.d.ts +7 -0
  520. package/dist/services/subagents/subagent-client-types.d.ts.map +1 -1
  521. package/dist/services/subagents/subagent-manager.d.ts.map +1 -1
  522. package/dist/services/subagents/subagent-manager.js +4 -1
  523. package/dist/services/subagents/subagent-manager.js.map +1 -1
  524. package/dist/services/subagents/subagent-notification-store.d.ts +2 -0
  525. package/dist/services/subagents/subagent-notification-store.d.ts.map +1 -1
  526. package/dist/services/subagents/subagent-notification-store.js +4 -0
  527. package/dist/services/subagents/subagent-notification-store.js.map +1 -1
  528. package/dist/services/subagents/test-helpers/subagent-manager-fixtures.d.ts.map +1 -1
  529. package/dist/services/subagents/test-helpers/subagent-manager-fixtures.js +2 -1
  530. package/dist/services/subagents/test-helpers/subagent-manager-fixtures.js.map +1 -1
  531. package/dist/services/subagents/tool-policy.d.ts +8 -0
  532. package/dist/services/subagents/tool-policy.d.ts.map +1 -1
  533. package/dist/services/subagents/tool-policy.js +289 -41
  534. package/dist/services/subagents/tool-policy.js.map +1 -1
  535. package/dist/services/subagents/types.d.ts +2 -1
  536. package/dist/services/subagents/types.d.ts.map +1 -1
  537. package/dist/services/subagents/types.js.map +1 -1
  538. package/dist/test-helpers/conversation-session-with-adapter.d.ts +1 -1
  539. package/dist/test-helpers/conversation-session-with-adapter.d.ts.map +1 -1
  540. package/dist/test-helpers/conversation-session-with-adapter.js +6 -1
  541. package/dist/test-helpers/conversation-session-with-adapter.js.map +1 -1
  542. package/dist/test-helpers/vitest-cache-isolation.d.ts +2 -0
  543. package/dist/test-helpers/vitest-cache-isolation.d.ts.map +1 -0
  544. package/dist/test-helpers/vitest-cache-isolation.js +17 -0
  545. package/dist/test-helpers/vitest-cache-isolation.js.map +1 -0
  546. package/dist/tools/agent/activate-skill.d.ts.map +1 -1
  547. package/dist/tools/agent/activate-skill.js +1 -0
  548. package/dist/tools/agent/activate-skill.js.map +1 -1
  549. package/dist/tools/agent/configure-task-check-in.d.ts.map +1 -1
  550. package/dist/tools/agent/configure-task-check-in.js +1 -0
  551. package/dist/tools/agent/configure-task-check-in.js.map +1 -1
  552. package/dist/tools/agent/run-subagent-async.d.ts.map +1 -1
  553. package/dist/tools/agent/run-subagent-async.js +16 -12
  554. package/dist/tools/agent/run-subagent-async.js.map +1 -1
  555. package/dist/tools/file/apply-patch.d.ts.map +1 -1
  556. package/dist/tools/file/apply-patch.js +9 -11
  557. package/dist/tools/file/apply-patch.js.map +1 -1
  558. package/dist/tools/file/code-context.d.ts.map +1 -1
  559. package/dist/tools/file/code-context.js +40 -5
  560. package/dist/tools/file/code-context.js.map +1 -1
  561. package/dist/tools/file/create-file.d.ts.map +1 -1
  562. package/dist/tools/file/create-file.js +13 -8
  563. package/dist/tools/file/create-file.js.map +1 -1
  564. package/dist/tools/file/edit-healing.d.ts.map +1 -1
  565. package/dist/tools/file/edit-healing.js +1 -4
  566. package/dist/tools/file/edit-healing.js.map +1 -1
  567. package/dist/tools/file/glob.d.ts.map +1 -1
  568. package/dist/tools/file/glob.js +49 -11
  569. package/dist/tools/file/glob.js.map +1 -1
  570. package/dist/tools/file/grep.d.ts.map +1 -1
  571. package/dist/tools/file/grep.js +32 -8
  572. package/dist/tools/file/grep.js.map +1 -1
  573. package/dist/tools/file/patch-healing.d.ts.map +1 -1
  574. package/dist/tools/file/patch-healing.js +1 -4
  575. package/dist/tools/file/patch-healing.js.map +1 -1
  576. package/dist/tools/file/read-file.d.ts.map +1 -1
  577. package/dist/tools/file/read-file.js +109 -6
  578. package/dist/tools/file/read-file.js.map +1 -1
  579. package/dist/tools/file/search-replace.d.ts.map +1 -1
  580. package/dist/tools/file/search-replace.js +5 -7
  581. package/dist/tools/file/search-replace.js.map +1 -1
  582. package/dist/tools/file/upstream-apply-patch.d.ts.map +1 -1
  583. package/dist/tools/file/upstream-apply-patch.js +4 -1
  584. package/dist/tools/file/upstream-apply-patch.js.map +1 -1
  585. package/dist/tools/memory/memory-tools.d.ts.map +1 -1
  586. package/dist/tools/memory/memory-tools.js +19 -1
  587. package/dist/tools/memory/memory-tools.js.map +1 -1
  588. package/dist/tools/session-browser/session-browser-tools.d.ts.map +1 -1
  589. package/dist/tools/session-browser/session-browser-tools.js +24 -8
  590. package/dist/tools/session-browser/session-browser-tools.js.map +1 -1
  591. package/dist/tools/session-rollover/session-rollover-tool.d.ts.map +1 -1
  592. package/dist/tools/session-rollover/session-rollover-tool.js +8 -2
  593. package/dist/tools/session-rollover/session-rollover-tool.js.map +1 -1
  594. package/dist/tools/system/run-code/index.d.ts +2 -0
  595. package/dist/tools/system/run-code/index.d.ts.map +1 -0
  596. package/dist/tools/system/run-code/index.js +2 -0
  597. package/dist/tools/system/run-code/index.js.map +1 -0
  598. package/dist/tools/system/run-code/run-code-telemetry.d.ts +92 -0
  599. package/dist/tools/system/run-code/run-code-telemetry.d.ts.map +1 -0
  600. package/dist/tools/system/run-code/run-code-telemetry.js +189 -0
  601. package/dist/tools/system/run-code/run-code-telemetry.js.map +1 -0
  602. package/dist/tools/system/run-code/run-code.d.ts +98 -0
  603. package/dist/tools/system/run-code/run-code.d.ts.map +1 -0
  604. package/dist/tools/system/run-code/run-code.js +1078 -0
  605. package/dist/tools/system/run-code/run-code.js.map +1 -0
  606. package/dist/tools/system/run-code/tools-header.d.ts +25 -0
  607. package/dist/tools/system/run-code/tools-header.d.ts.map +1 -0
  608. package/dist/tools/system/run-code/tools-header.js +136 -0
  609. package/dist/tools/system/run-code/tools-header.js.map +1 -0
  610. package/dist/tools/system/shell.d.ts.map +1 -1
  611. package/dist/tools/system/shell.js +58 -9
  612. package/dist/tools/system/shell.js.map +1 -1
  613. package/dist/tools/system/worktree.js +2 -2
  614. package/dist/tools/system/worktree.js.map +1 -1
  615. package/dist/tools/types.d.ts +24 -0
  616. package/dist/tools/types.d.ts.map +1 -1
  617. package/dist/tools/types.js.map +1 -1
  618. package/dist/tools/utils.d.ts +10 -0
  619. package/dist/tools/utils.d.ts.map +1 -1
  620. package/dist/tools/utils.js +13 -0
  621. package/dist/tools/utils.js.map +1 -1
  622. package/dist/tools/web/web-fetch.d.ts.map +1 -1
  623. package/dist/tools/web/web-fetch.js +14 -6
  624. package/dist/tools/web/web-fetch.js.map +1 -1
  625. package/dist/tools/web/web-search.d.ts.map +1 -1
  626. package/dist/tools/web/web-search.js +2 -1
  627. package/dist/tools/web/web-search.js.map +1 -1
  628. package/dist/utils/ai/model-settings.d.ts.map +1 -1
  629. package/dist/utils/ai/model-settings.js +0 -47
  630. package/dist/utils/ai/model-settings.js.map +1 -1
  631. package/dist/utils/conversation/apply-conversation-result.d.ts.map +1 -1
  632. package/dist/utils/conversation/apply-conversation-result.js +13 -0
  633. package/dist/utils/conversation/apply-conversation-result.js.map +1 -1
  634. package/dist/utils/conversation/conversation-utils.d.ts.map +1 -1
  635. package/dist/utils/conversation/conversation-utils.js +14 -0
  636. package/dist/utils/conversation/conversation-utils.js.map +1 -1
  637. package/dist/utils/conversation/static-commit-policy.d.ts +38 -0
  638. package/dist/utils/conversation/static-commit-policy.d.ts.map +1 -0
  639. package/dist/utils/conversation/static-commit-policy.js +76 -0
  640. package/dist/utils/conversation/static-commit-policy.js.map +1 -0
  641. package/dist/utils/output/bound-tool-result.d.ts +23 -0
  642. package/dist/utils/output/bound-tool-result.d.ts.map +1 -1
  643. package/dist/utils/output/bound-tool-result.js +27 -0
  644. package/dist/utils/output/bound-tool-result.js.map +1 -1
  645. package/dist/utils/settings-command.d.ts +8 -0
  646. package/dist/utils/settings-command.d.ts.map +1 -1
  647. package/dist/utils/settings-command.js +45 -30
  648. package/dist/utils/settings-command.js.map +1 -1
  649. package/dist/utils/shell/execute-shell.d.ts +18 -0
  650. package/dist/utils/shell/execute-shell.d.ts.map +1 -1
  651. package/dist/utils/shell/execute-shell.js +48 -6
  652. package/dist/utils/shell/execute-shell.js.map +1 -1
  653. package/dist/utils/shell/shell-output.d.ts +7 -1
  654. package/dist/utils/shell/shell-output.d.ts.map +1 -1
  655. package/dist/utils/shell/shell-output.js +37 -7
  656. package/dist/utils/shell/shell-output.js.map +1 -1
  657. package/dist/utils/streaming/streaming-session-factory.d.ts +9 -0
  658. package/dist/utils/streaming/streaming-session-factory.d.ts.map +1 -1
  659. package/dist/utils/streaming/streaming-session-factory.js +1 -1
  660. package/dist/utils/streaming/streaming-session-factory.js.map +1 -1
  661. package/dist/utils/tool-args-display.d.ts +21 -0
  662. package/dist/utils/tool-args-display.d.ts.map +1 -0
  663. package/dist/utils/tool-args-display.js +34 -0
  664. package/dist/utils/tool-args-display.js.map +1 -0
  665. package/dist/utils/value-suggestions.d.ts +4 -10
  666. package/dist/utils/value-suggestions.d.ts.map +1 -1
  667. package/dist/utils/value-suggestions.js +77 -144
  668. package/dist/utils/value-suggestions.js.map +1 -1
  669. package/dist/utils/worker-bootstrap.d.ts +3 -0
  670. package/dist/utils/worker-bootstrap.d.ts.map +1 -0
  671. package/dist/utils/worker-bootstrap.js +7 -0
  672. package/dist/utils/worker-bootstrap.js.map +1 -0
  673. package/dist/utils/worker-cwd-preload.cjs +23 -0
  674. package/dist/utils/worker-cwd-preload.cjs.map +1 -0
  675. package/dist/utils/worker-cwd-preload.d.cts +2 -0
  676. package/dist/utils/worker-cwd-preload.d.cts.map +1 -0
  677. package/package.json +5 -2
  678. package/dist/services/agent-runtime/workflow/workflow-worker.d.ts +0 -4
  679. package/dist/services/agent-runtime/workflow/workflow-worker.d.ts.map +0 -1
  680. package/dist/services/agent-runtime/workflow/workflow-worker.js +0 -55
  681. package/dist/services/agent-runtime/workflow/workflow-worker.js.map +0 -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-08-24T10:56:49.141Z',
6
- source: 'pi-ai@0.84.3',
5
+ generatedAt: '2026-09-05T11:58:56.761Z',
6
+ source: 'pi-ai@0.85.1',
7
7
  };
8
8
  export const MODEL_CATALOG = {
9
9
  openai: {
@@ -242,10 +242,10 @@ export const MODEL_CATALOG = {
242
242
  'gpt-5.6-sol': {
243
243
  contextWindow: 272000,
244
244
  maxTokens: 128000,
245
- inputPricePerMTok: 5,
246
- outputPricePerMTok: 30,
247
- cacheReadPricePerMTok: 0.5,
248
- cacheWritePricePerMTok: 6.25,
245
+ inputPricePerMTok: 4,
246
+ outputPricePerMTok: 20,
247
+ cacheReadPricePerMTok: 0.4,
248
+ cacheWritePricePerMTok: 5,
249
249
  },
250
250
  'gpt-5.6-terra': {
251
251
  contextWindow: 272000,
@@ -255,6 +255,14 @@ export const MODEL_CATALOG = {
255
255
  cacheReadPricePerMTok: 0.2,
256
256
  cacheWritePricePerMTok: 2.5,
257
257
  },
258
+ 'gpt-6-astra': {
259
+ contextWindow: 272000,
260
+ maxTokens: 128000,
261
+ inputPricePerMTok: 10,
262
+ outputPricePerMTok: 50,
263
+ cacheReadPricePerMTok: 1,
264
+ cacheWritePricePerMTok: 12.5,
265
+ },
258
266
  'gpt-realtime-2.1': {
259
267
  contextWindow: 128000,
260
268
  maxTokens: 32000,
@@ -369,6 +377,14 @@ export const MODEL_CATALOG = {
369
377
  cacheReadPricePerMTok: 0.2,
370
378
  cacheWritePricePerMTok: 2.5,
371
379
  },
380
+ 'gpt-6-astra': {
381
+ contextWindow: 272000,
382
+ maxTokens: 128000,
383
+ inputPricePerMTok: 10,
384
+ outputPricePerMTok: 50,
385
+ cacheReadPricePerMTok: 1,
386
+ cacheWritePricePerMTok: 12.5,
387
+ },
372
388
  },
373
389
  openrouter: {
374
390
  'aion-labs/aion-2.0': {
@@ -451,6 +467,22 @@ export const MODEL_CATALOG = {
451
467
  cacheReadPricePerMTok: 1,
452
468
  cacheWritePricePerMTok: 12.5,
453
469
  },
470
+ 'anthropic/claude-fable-5.1': {
471
+ contextWindow: 1000000,
472
+ maxTokens: 128000,
473
+ inputPricePerMTok: 10,
474
+ outputPricePerMTok: 50,
475
+ cacheReadPricePerMTok: 0.25,
476
+ cacheWritePricePerMTok: 12.5,
477
+ },
478
+ 'anthropic/claude-fable-5.1:batch': {
479
+ contextWindow: 1000000,
480
+ maxTokens: 128000,
481
+ inputPricePerMTok: 5,
482
+ outputPricePerMTok: 25,
483
+ cacheReadPricePerMTok: 0.125,
484
+ cacheWritePricePerMTok: 6.25,
485
+ },
454
486
  'anthropic/claude-fable-5:batch': {
455
487
  contextWindow: 1000000,
456
488
  maxTokens: 128000,
@@ -539,14 +571,6 @@ export const MODEL_CATALOG = {
539
571
  cacheReadPricePerMTok: 0.5,
540
572
  cacheWritePricePerMTok: 6.25,
541
573
  },
542
- 'anthropic/claude-opus-4.7-fast': {
543
- contextWindow: 1000000,
544
- maxTokens: 128000,
545
- inputPricePerMTok: 30,
546
- outputPricePerMTok: 150,
547
- cacheReadPricePerMTok: 3,
548
- cacheWritePricePerMTok: 37.5,
549
- },
550
574
  'anthropic/claude-opus-4.7:batch': {
551
575
  contextWindow: 1000000,
552
576
  maxTokens: 128000,
@@ -563,14 +587,6 @@ export const MODEL_CATALOG = {
563
587
  cacheReadPricePerMTok: 0.5,
564
588
  cacheWritePricePerMTok: 6.25,
565
589
  },
566
- 'anthropic/claude-opus-4.8-fast': {
567
- contextWindow: 1000000,
568
- maxTokens: 128000,
569
- inputPricePerMTok: 10,
570
- outputPricePerMTok: 50,
571
- cacheReadPricePerMTok: 1,
572
- cacheWritePricePerMTok: 12.5,
573
- },
574
590
  'anthropic/claude-opus-4.8:batch': {
575
591
  contextWindow: 1000000,
576
592
  maxTokens: 128000,
@@ -587,14 +603,6 @@ export const MODEL_CATALOG = {
587
603
  cacheReadPricePerMTok: 0.5,
588
604
  cacheWritePricePerMTok: 6.25,
589
605
  },
590
- 'anthropic/claude-opus-5-fast': {
591
- contextWindow: 1000000,
592
- maxTokens: 128000,
593
- inputPricePerMTok: 10,
594
- outputPricePerMTok: 50,
595
- cacheReadPricePerMTok: 1,
596
- cacheWritePricePerMTok: 12.5,
597
- },
598
606
  'anthropic/claude-opus-5:batch': {
599
607
  contextWindow: 1000000,
600
608
  maxTokens: 128000,
@@ -661,20 +669,12 @@ export const MODEL_CATALOG = {
661
669
  },
662
670
  'arcee-ai/trinity-large-thinking': {
663
671
  contextWindow: 262144,
664
- maxTokens: 262144,
665
- inputPricePerMTok: 0.22,
666
- outputPricePerMTok: 0.85,
672
+ maxTokens: 80000,
673
+ inputPricePerMTok: 0.25,
674
+ outputPricePerMTok: 0.8,
667
675
  cacheReadPricePerMTok: 0.06,
668
676
  cacheWritePricePerMTok: 0,
669
677
  },
670
- 'arcee-ai/virtuoso-large': {
671
- contextWindow: 131072,
672
- maxTokens: 64000,
673
- inputPricePerMTok: 0.75,
674
- outputPricePerMTok: 1.2,
675
- cacheReadPricePerMTok: 0,
676
- cacheWritePricePerMTok: 0,
677
- },
678
678
  auto: {
679
679
  contextWindow: 2000000,
680
680
  maxTokens: 30000,
@@ -701,7 +701,7 @@ export const MODEL_CATALOG = {
701
701
  },
702
702
  'bytedance-seed/seed-2-1-turbo': {
703
703
  contextWindow: 262144,
704
- maxTokens: 262144,
704
+ maxTokens: 235929,
705
705
  inputPricePerMTok: 0.5,
706
706
  outputPricePerMTok: 2.5,
707
707
  cacheReadPricePerMTok: 0,
@@ -756,16 +756,16 @@ export const MODEL_CATALOG = {
756
756
  cacheWritePricePerMTok: 0,
757
757
  },
758
758
  'deepseek/deepseek-chat': {
759
- contextWindow: 128000,
760
- maxTokens: 16000,
761
- inputPricePerMTok: 0.2574,
762
- outputPricePerMTok: 1.0287,
759
+ contextWindow: 163840,
760
+ maxTokens: 16384,
761
+ inputPricePerMTok: 0.32,
762
+ outputPricePerMTok: 0.89,
763
763
  cacheReadPricePerMTok: 0,
764
764
  cacheWritePricePerMTok: 0,
765
765
  },
766
766
  'deepseek/deepseek-chat-v3-0324': {
767
767
  contextWindow: 163840,
768
- maxTokens: 163840,
768
+ maxTokens: 147456,
769
769
  inputPricePerMTok: 0.25,
770
770
  outputPricePerMTok: 1,
771
771
  cacheReadPricePerMTok: 0,
@@ -773,7 +773,7 @@ export const MODEL_CATALOG = {
773
773
  },
774
774
  'deepseek/deepseek-chat-v3.1': {
775
775
  contextWindow: 161000,
776
- maxTokens: 161000,
776
+ maxTokens: 144900,
777
777
  inputPricePerMTok: 0.55,
778
778
  outputPricePerMTok: 1.65,
779
779
  cacheReadPricePerMTok: 0.55,
@@ -805,10 +805,10 @@ export const MODEL_CATALOG = {
805
805
  },
806
806
  'deepseek/deepseek-v3.2': {
807
807
  contextWindow: 163840,
808
- maxTokens: 163840,
809
- inputPricePerMTok: 0.26,
810
- outputPricePerMTok: 0.38,
811
- cacheReadPricePerMTok: 0.13,
808
+ maxTokens: 65536,
809
+ inputPricePerMTok: 0.269,
810
+ outputPricePerMTok: 0.4,
811
+ cacheReadPricePerMTok: 0.1345,
812
812
  cacheWritePricePerMTok: 0,
813
813
  },
814
814
  'deepseek/deepseek-v3.2-exp': {
@@ -822,17 +822,25 @@ export const MODEL_CATALOG = {
822
822
  'deepseek/deepseek-v4-flash': {
823
823
  contextWindow: 1024000,
824
824
  maxTokens: 384000,
825
- inputPricePerMTok: 0.0574,
826
- outputPricePerMTok: 0.1148,
827
- cacheReadPricePerMTok: 0.01148,
825
+ inputPricePerMTok: 0.08526,
826
+ outputPricePerMTok: 0.17052,
827
+ cacheReadPricePerMTok: 0.017052,
828
828
  cacheWritePricePerMTok: 0,
829
829
  },
830
830
  'deepseek/deepseek-v4-flash-0731': {
831
831
  contextWindow: 1048576,
832
- maxTokens: 131072,
832
+ maxTokens: 943718,
833
+ inputPricePerMTok: 0.065,
834
+ outputPricePerMTok: 0.18,
835
+ cacheReadPricePerMTok: 0.016,
836
+ cacheWritePricePerMTok: 0,
837
+ },
838
+ 'deepseek/deepseek-v4-flash-0731:batch': {
839
+ contextWindow: 1048576,
840
+ maxTokens: 943718,
833
841
  inputPricePerMTok: 0.14,
834
842
  outputPricePerMTok: 0.28,
835
- cacheReadPricePerMTok: 0.028,
843
+ cacheReadPricePerMTok: 0.03,
836
844
  cacheWritePricePerMTok: 0,
837
845
  },
838
846
  'deepseek/deepseek-v4-flash-vision-exp': {
@@ -846,22 +854,30 @@ export const MODEL_CATALOG = {
846
854
  'deepseek/deepseek-v4-pro': {
847
855
  contextWindow: 1024000,
848
856
  maxTokens: 384000,
849
- inputPricePerMTok: 0.526176,
850
- outputPricePerMTok: 1.052352,
851
- cacheReadPricePerMTok: 0.043848,
857
+ inputPricePerMTok: 0.890358,
858
+ outputPricePerMTok: 1.780716,
859
+ cacheReadPricePerMTok: 0.074196,
852
860
  cacheWritePricePerMTok: 0,
853
861
  },
854
862
  'deepseek/deepseek-v4-pro-0813': {
855
- contextWindow: 1048575,
856
- maxTokens: 4096,
857
- inputPricePerMTok: 1.122,
858
- outputPricePerMTok: 3.366,
859
- cacheReadPricePerMTok: 0.0374,
863
+ contextWindow: 1024000,
864
+ maxTokens: 384000,
865
+ inputPricePerMTok: 1.12068,
866
+ outputPricePerMTok: 3.36204,
867
+ cacheReadPricePerMTok: 0.037356,
868
+ cacheWritePricePerMTok: 0,
869
+ },
870
+ 'deepseek/deepseek-v4-pro-0813:batch': {
871
+ contextWindow: 1048576,
872
+ maxTokens: 943718,
873
+ inputPricePerMTok: 1.32,
874
+ outputPricePerMTok: 3.96,
875
+ cacheReadPricePerMTok: 0.13,
860
876
  cacheWritePricePerMTok: 0,
861
877
  },
862
878
  'dots-studio/dots-3-note-preview:free': {
863
879
  contextWindow: 512000,
864
- maxTokens: 512000,
880
+ maxTokens: 460800,
865
881
  inputPricePerMTok: 0,
866
882
  outputPricePerMTok: 0,
867
883
  cacheReadPricePerMTok: 0,
@@ -1052,20 +1068,36 @@ export const MODEL_CATALOG = {
1052
1068
  cacheWritePricePerMTok: 0.041667,
1053
1069
  },
1054
1070
  'google/gemini-3.7-flash': {
1071
+ contextWindow: 1048576,
1072
+ maxTokens: 65536,
1073
+ inputPricePerMTok: 0.75,
1074
+ outputPricePerMTok: 3.75,
1075
+ cacheReadPricePerMTok: 0.075,
1076
+ cacheWritePricePerMTok: 0.041667,
1077
+ },
1078
+ 'google/gemini-3.7-flash:batch': {
1055
1079
  contextWindow: 1048576,
1056
1080
  maxTokens: 65536,
1057
1081
  inputPricePerMTok: 0.375,
1058
1082
  outputPricePerMTok: 1.875,
1059
1083
  cacheReadPricePerMTok: 0.0375,
1060
- cacheWritePricePerMTok: 0.020833,
1084
+ cacheWritePricePerMTok: 0.041667,
1061
1085
  },
1062
- 'google/gemini-3.7-flash:batch': {
1086
+ 'google/gemini-3.8-flash': {
1063
1087
  contextWindow: 1048576,
1064
1088
  maxTokens: 65536,
1065
- inputPricePerMTok: 0.1875,
1066
- outputPricePerMTok: 0.9375,
1067
- cacheReadPricePerMTok: 0.01875,
1068
- cacheWritePricePerMTok: 0.020833,
1089
+ inputPricePerMTok: 0.75,
1090
+ outputPricePerMTok: 3.75,
1091
+ cacheReadPricePerMTok: 0.075,
1092
+ cacheWritePricePerMTok: 0.041667,
1093
+ },
1094
+ 'google/gemini-3.8-flash:batch': {
1095
+ contextWindow: 1048576,
1096
+ maxTokens: 65536,
1097
+ inputPricePerMTok: 0.375,
1098
+ outputPricePerMTok: 1.875,
1099
+ cacheReadPricePerMTok: 0.0375,
1100
+ cacheWritePricePerMTok: 0.041667,
1069
1101
  },
1070
1102
  'google/gemma-3-12b-it': {
1071
1103
  contextWindow: 131072,
@@ -1077,7 +1109,7 @@ export const MODEL_CATALOG = {
1077
1109
  },
1078
1110
  'google/gemma-3-27b-it': {
1079
1111
  contextWindow: 131072,
1080
- maxTokens: 131072,
1112
+ maxTokens: 117964,
1081
1113
  inputPricePerMTok: 0.08,
1082
1114
  outputPricePerMTok: 0.45,
1083
1115
  cacheReadPricePerMTok: 0.04,
@@ -1101,10 +1133,18 @@ export const MODEL_CATALOG = {
1101
1133
  },
1102
1134
  'google/gemma-4-31b-it': {
1103
1135
  contextWindow: 262144,
1104
- maxTokens: 262144,
1105
- inputPricePerMTok: 0.1,
1136
+ maxTokens: 16384,
1137
+ inputPricePerMTok: 0.09,
1106
1138
  outputPricePerMTok: 0.34,
1107
- cacheReadPricePerMTok: 0.1,
1139
+ cacheReadPricePerMTok: 0.05,
1140
+ cacheWritePricePerMTok: 0,
1141
+ },
1142
+ 'google/gemma-4-31b-it:batch': {
1143
+ contextWindow: 262144,
1144
+ maxTokens: 235929,
1145
+ inputPricePerMTok: 0.39,
1146
+ outputPricePerMTok: 0.97,
1147
+ cacheReadPricePerMTok: 0,
1108
1148
  cacheWritePricePerMTok: 0,
1109
1149
  },
1110
1150
  'google/gemma-4-31b-it:free': {
@@ -1115,11 +1155,11 @@ export const MODEL_CATALOG = {
1115
1155
  cacheReadPricePerMTok: 0,
1116
1156
  cacheWritePricePerMTok: 0,
1117
1157
  },
1118
- 'ibm-granite/granite-4.1-8b': {
1158
+ 'ibm-granite/granite-4.2-8b': {
1119
1159
  contextWindow: 131072,
1120
- maxTokens: 131072,
1121
- inputPricePerMTok: 0.05,
1122
- outputPricePerMTok: 0.1,
1160
+ maxTokens: 117964,
1161
+ inputPricePerMTok: 0.1,
1162
+ outputPricePerMTok: 0.15,
1123
1163
  cacheReadPricePerMTok: 0.05,
1124
1164
  cacheWritePricePerMTok: 0,
1125
1165
  },
@@ -1131,6 +1171,14 @@ export const MODEL_CATALOG = {
1131
1171
  cacheReadPricePerMTok: 0.025,
1132
1172
  cacheWritePricePerMTok: 0,
1133
1173
  },
1174
+ 'inception/mercury-2.5-preview': {
1175
+ contextWindow: 260000,
1176
+ maxTokens: 65536,
1177
+ inputPricePerMTok: 0.04,
1178
+ outputPricePerMTok: 0.15,
1179
+ cacheReadPricePerMTok: 0.004,
1180
+ cacheWritePricePerMTok: 0,
1181
+ },
1134
1182
  'inclusionai/ling-3.0-flash': {
1135
1183
  contextWindow: 262144,
1136
1184
  maxTokens: 32768,
@@ -1139,25 +1187,41 @@ export const MODEL_CATALOG = {
1139
1187
  cacheReadPricePerMTok: 0.0042,
1140
1188
  cacheWritePricePerMTok: 0,
1141
1189
  },
1142
- 'kwaipilot/kat-coder-air-v2.5': {
1143
- contextWindow: 256000,
1144
- maxTokens: 80000,
1145
- inputPricePerMTok: 0.15,
1146
- outputPricePerMTok: 0.6,
1147
- cacheReadPricePerMTok: 0.03,
1190
+ 'inclusionai/ling-3.0-flash-fin': {
1191
+ contextWindow: 262144,
1192
+ maxTokens: 235929,
1193
+ inputPricePerMTok: 0.06,
1194
+ outputPricePerMTok: 0.18,
1195
+ cacheReadPricePerMTok: 0.012,
1196
+ cacheWritePricePerMTok: 0,
1197
+ },
1198
+ 'inclusionai/ling-3.0-flash-fin:free': {
1199
+ contextWindow: 262144,
1200
+ maxTokens: 32768,
1201
+ inputPricePerMTok: 0,
1202
+ outputPricePerMTok: 0,
1203
+ cacheReadPricePerMTok: 0,
1204
+ cacheWritePricePerMTok: 0,
1205
+ },
1206
+ 'inclusionai/ling-3.0-flash-sante:free': {
1207
+ contextWindow: 262144,
1208
+ maxTokens: 32768,
1209
+ inputPricePerMTok: 0,
1210
+ outputPricePerMTok: 0,
1211
+ cacheReadPricePerMTok: 0,
1148
1212
  cacheWritePricePerMTok: 0,
1149
1213
  },
1150
1214
  'kwaipilot/kat-coder-pro-v2': {
1151
- contextWindow: 256000,
1152
- maxTokens: 80000,
1215
+ contextWindow: 262144,
1216
+ maxTokens: 144000,
1153
1217
  inputPricePerMTok: 0.3,
1154
1218
  outputPricePerMTok: 1.2,
1155
1219
  cacheReadPricePerMTok: 0.06,
1156
1220
  cacheWritePricePerMTok: 0,
1157
1221
  },
1158
1222
  'kwaipilot/kat-coder-pro-v2.5': {
1159
- contextWindow: 256000,
1160
- maxTokens: 80000,
1223
+ contextWindow: 262144,
1224
+ maxTokens: 235929,
1161
1225
  inputPricePerMTok: 0.74,
1162
1226
  outputPricePerMTok: 2.96,
1163
1227
  cacheReadPricePerMTok: 0.15,
@@ -1189,7 +1253,7 @@ export const MODEL_CATALOG = {
1189
1253
  },
1190
1254
  'meta-llama/llama-3.1-8b-instruct': {
1191
1255
  contextWindow: 131072,
1192
- maxTokens: 131072,
1256
+ maxTokens: 117964,
1193
1257
  inputPricePerMTok: 0.05,
1194
1258
  outputPricePerMTok: 0.08,
1195
1259
  cacheReadPricePerMTok: 0.025,
@@ -1204,10 +1268,10 @@ export const MODEL_CATALOG = {
1204
1268
  cacheWritePricePerMTok: 0,
1205
1269
  },
1206
1270
  'meta-llama/llama-4-maverick': {
1207
- contextWindow: 1048576,
1208
- maxTokens: 16384,
1271
+ contextWindow: 128000,
1272
+ maxTokens: 115200,
1209
1273
  inputPricePerMTok: 0.2,
1210
- outputPricePerMTok: 0.8,
1274
+ outputPricePerMTok: 0.696,
1211
1275
  cacheReadPricePerMTok: 0,
1212
1276
  cacheWritePricePerMTok: 0,
1213
1277
  },
@@ -1221,7 +1285,15 @@ export const MODEL_CATALOG = {
1221
1285
  },
1222
1286
  'meta/muse-glimmer-30b': {
1223
1287
  contextWindow: 131072,
1224
- maxTokens: 4096,
1288
+ maxTokens: 117964,
1289
+ inputPricePerMTok: 0.3,
1290
+ outputPricePerMTok: 1.1,
1291
+ cacheReadPricePerMTok: 0.04,
1292
+ cacheWritePricePerMTok: 0,
1293
+ },
1294
+ 'meta/muse-glimmer-30b:batch': {
1295
+ contextWindow: 131072,
1296
+ maxTokens: 117964,
1225
1297
  inputPricePerMTok: 0.35,
1226
1298
  outputPricePerMTok: 1.5,
1227
1299
  cacheReadPricePerMTok: 0.04,
@@ -1251,6 +1323,22 @@ export const MODEL_CATALOG = {
1251
1323
  cacheReadPricePerMTok: 0.002,
1252
1324
  cacheWritePricePerMTok: 0,
1253
1325
  },
1326
+ 'meta/muse-spark-1.3': {
1327
+ contextWindow: 1048576,
1328
+ maxTokens: 943718,
1329
+ inputPricePerMTok: 1.25,
1330
+ outputPricePerMTok: 4.25,
1331
+ cacheReadPricePerMTok: 0.15,
1332
+ cacheWritePricePerMTok: 0,
1333
+ },
1334
+ 'meta/muse-spark-1.3-contributor': {
1335
+ contextWindow: 1048576,
1336
+ maxTokens: 943718,
1337
+ inputPricePerMTok: 0.1,
1338
+ outputPricePerMTok: 0.2,
1339
+ cacheReadPricePerMTok: 0.002,
1340
+ cacheWritePricePerMTok: 0,
1341
+ },
1254
1342
  'minimax/minimax-m1': {
1255
1343
  contextWindow: 1000000,
1256
1344
  maxTokens: 40000,
@@ -1284,11 +1372,19 @@ export const MODEL_CATALOG = {
1284
1372
  cacheWritePricePerMTok: 0,
1285
1373
  },
1286
1374
  'minimax/minimax-m2.7': {
1375
+ contextWindow: 204800,
1376
+ maxTokens: 131072,
1377
+ inputPricePerMTok: 0.3,
1378
+ outputPricePerMTok: 1.2,
1379
+ cacheReadPricePerMTok: 0.06,
1380
+ cacheWritePricePerMTok: 0,
1381
+ },
1382
+ 'minimax/minimax-m2.7:free': {
1287
1383
  contextWindow: 196608,
1288
- maxTokens: 4096,
1289
- inputPricePerMTok: 0.24,
1290
- outputPricePerMTok: 0.96,
1291
- cacheReadPricePerMTok: 0.048,
1384
+ maxTokens: 176947,
1385
+ inputPricePerMTok: 0,
1386
+ outputPricePerMTok: 0,
1387
+ cacheReadPricePerMTok: 0,
1292
1388
  cacheWritePricePerMTok: 0,
1293
1389
  },
1294
1390
  'minimax/minimax-m3': {
@@ -1301,23 +1397,39 @@ export const MODEL_CATALOG = {
1301
1397
  },
1302
1398
  'minimax/minimax-m3:batch': {
1303
1399
  contextWindow: 524288,
1304
- maxTokens: 4096,
1400
+ maxTokens: 471859,
1305
1401
  inputPricePerMTok: 0.3,
1306
1402
  outputPricePerMTok: 1.2,
1307
1403
  cacheReadPricePerMTok: 0.06,
1308
1404
  cacheWritePricePerMTok: 0,
1309
1405
  },
1406
+ 'minimax/minimax-m3:free': {
1407
+ contextWindow: 1048576,
1408
+ maxTokens: 943718,
1409
+ inputPricePerMTok: 0,
1410
+ outputPricePerMTok: 0,
1411
+ cacheReadPricePerMTok: 0,
1412
+ cacheWritePricePerMTok: 0,
1413
+ },
1310
1414
  'mistralai/codestral-2508': {
1311
1415
  contextWindow: 256000,
1312
- maxTokens: 4096,
1416
+ maxTokens: 204800,
1313
1417
  inputPricePerMTok: 0.3,
1314
1418
  outputPricePerMTok: 0.9,
1315
1419
  cacheReadPricePerMTok: 0.03,
1316
1420
  cacheWritePricePerMTok: 0,
1317
1421
  },
1422
+ 'mistralai/devstral-2512': {
1423
+ contextWindow: 262144,
1424
+ maxTokens: 209715,
1425
+ inputPricePerMTok: 0.4,
1426
+ outputPricePerMTok: 2,
1427
+ cacheReadPricePerMTok: 0.04,
1428
+ cacheWritePricePerMTok: 0,
1429
+ },
1318
1430
  'mistralai/ministral-14b-2512': {
1319
1431
  contextWindow: 262144,
1320
- maxTokens: 4096,
1432
+ maxTokens: 209715,
1321
1433
  inputPricePerMTok: 0.2,
1322
1434
  outputPricePerMTok: 0.2,
1323
1435
  cacheReadPricePerMTok: 0.02,
@@ -1325,7 +1437,7 @@ export const MODEL_CATALOG = {
1325
1437
  },
1326
1438
  'mistralai/ministral-3b-2512': {
1327
1439
  contextWindow: 131072,
1328
- maxTokens: 4096,
1440
+ maxTokens: 104857,
1329
1441
  inputPricePerMTok: 0.1,
1330
1442
  outputPricePerMTok: 0.1,
1331
1443
  cacheReadPricePerMTok: 0.01,
@@ -1333,7 +1445,7 @@ export const MODEL_CATALOG = {
1333
1445
  },
1334
1446
  'mistralai/ministral-8b-2512': {
1335
1447
  contextWindow: 262144,
1336
- maxTokens: 4096,
1448
+ maxTokens: 209715,
1337
1449
  inputPricePerMTok: 0.15,
1338
1450
  outputPricePerMTok: 0.15,
1339
1451
  cacheReadPricePerMTok: 0.015,
@@ -1341,7 +1453,7 @@ export const MODEL_CATALOG = {
1341
1453
  },
1342
1454
  'mistralai/mistral-large': {
1343
1455
  contextWindow: 128000,
1344
- maxTokens: 4096,
1456
+ maxTokens: 102400,
1345
1457
  inputPricePerMTok: 2,
1346
1458
  outputPricePerMTok: 6,
1347
1459
  cacheReadPricePerMTok: 0.2,
@@ -1349,7 +1461,7 @@ export const MODEL_CATALOG = {
1349
1461
  },
1350
1462
  'mistralai/mistral-large-2407': {
1351
1463
  contextWindow: 131072,
1352
- maxTokens: 4096,
1464
+ maxTokens: 104857,
1353
1465
  inputPricePerMTok: 2,
1354
1466
  outputPricePerMTok: 6,
1355
1467
  cacheReadPricePerMTok: 0.2,
@@ -1357,7 +1469,7 @@ export const MODEL_CATALOG = {
1357
1469
  },
1358
1470
  'mistralai/mistral-large-2512': {
1359
1471
  contextWindow: 262144,
1360
- maxTokens: 4096,
1472
+ maxTokens: 209715,
1361
1473
  inputPricePerMTok: 0.5,
1362
1474
  outputPricePerMTok: 1.5,
1363
1475
  cacheReadPricePerMTok: 0.05,
@@ -1365,7 +1477,7 @@ export const MODEL_CATALOG = {
1365
1477
  },
1366
1478
  'mistralai/mistral-medium-3': {
1367
1479
  contextWindow: 131072,
1368
- maxTokens: 4096,
1480
+ maxTokens: 104857,
1369
1481
  inputPricePerMTok: 0.4,
1370
1482
  outputPricePerMTok: 2,
1371
1483
  cacheReadPricePerMTok: 0.04,
@@ -1373,15 +1485,23 @@ export const MODEL_CATALOG = {
1373
1485
  },
1374
1486
  'mistralai/mistral-medium-3-5': {
1375
1487
  contextWindow: 262144,
1376
- maxTokens: 4096,
1488
+ maxTokens: 209715,
1377
1489
  inputPricePerMTok: 1.5,
1378
1490
  outputPricePerMTok: 7.5,
1379
1491
  cacheReadPricePerMTok: 0,
1380
1492
  cacheWritePricePerMTok: 0,
1381
1493
  },
1494
+ 'mistralai/mistral-medium-3-5:batch': {
1495
+ contextWindow: 32768,
1496
+ maxTokens: 26214,
1497
+ inputPricePerMTok: 0.75,
1498
+ outputPricePerMTok: 3.75,
1499
+ cacheReadPricePerMTok: 0,
1500
+ cacheWritePricePerMTok: 0,
1501
+ },
1382
1502
  'mistralai/mistral-medium-3.1': {
1383
1503
  contextWindow: 131072,
1384
- maxTokens: 4096,
1504
+ maxTokens: 104857,
1385
1505
  inputPricePerMTok: 0.4,
1386
1506
  outputPricePerMTok: 2,
1387
1507
  cacheReadPricePerMTok: 0.04,
@@ -1397,7 +1517,7 @@ export const MODEL_CATALOG = {
1397
1517
  },
1398
1518
  'mistralai/mistral-saba': {
1399
1519
  contextWindow: 32768,
1400
- maxTokens: 4096,
1520
+ maxTokens: 26214,
1401
1521
  inputPricePerMTok: 0.2,
1402
1522
  outputPricePerMTok: 0.6,
1403
1523
  cacheReadPricePerMTok: 0.02,
@@ -1405,7 +1525,7 @@ export const MODEL_CATALOG = {
1405
1525
  },
1406
1526
  'mistralai/mistral-small-2603': {
1407
1527
  contextWindow: 262144,
1408
- maxTokens: 4096,
1528
+ maxTokens: 209715,
1409
1529
  inputPricePerMTok: 0.15,
1410
1530
  outputPricePerMTok: 0.6,
1411
1531
  cacheReadPricePerMTok: 0.015,
@@ -1421,15 +1541,15 @@ export const MODEL_CATALOG = {
1421
1541
  },
1422
1542
  'mistralai/mixtral-8x22b-instruct': {
1423
1543
  contextWindow: 65536,
1424
- maxTokens: 4096,
1544
+ maxTokens: 52428,
1425
1545
  inputPricePerMTok: 2,
1426
1546
  outputPricePerMTok: 6,
1427
1547
  cacheReadPricePerMTok: 0.2,
1428
1548
  cacheWritePricePerMTok: 0,
1429
1549
  },
1430
1550
  'mistralai/voxtral-small-24b-2507': {
1431
- contextWindow: 32000,
1432
- maxTokens: 4096,
1551
+ contextWindow: 32768,
1552
+ maxTokens: 26214,
1433
1553
  inputPricePerMTok: 0.1,
1434
1554
  outputPricePerMTok: 0.3,
1435
1555
  cacheReadPricePerMTok: 0.01,
@@ -1469,7 +1589,7 @@ export const MODEL_CATALOG = {
1469
1589
  },
1470
1590
  'moonshotai/kimi-k2.6': {
1471
1591
  contextWindow: 262144,
1472
- maxTokens: 4096,
1592
+ maxTokens: 235929,
1473
1593
  inputPricePerMTok: 0.95,
1474
1594
  outputPricePerMTok: 4,
1475
1595
  cacheReadPricePerMTok: 0.16,
@@ -1477,18 +1597,10 @@ export const MODEL_CATALOG = {
1477
1597
  },
1478
1598
  'moonshotai/kimi-k2.7-code': {
1479
1599
  contextWindow: 262144,
1480
- maxTokens: 262144,
1481
- inputPricePerMTok: 0.67,
1600
+ maxTokens: 235929,
1601
+ inputPricePerMTok: 0.66,
1482
1602
  outputPricePerMTok: 3.4,
1483
- cacheReadPricePerMTok: 0.17,
1484
- cacheWritePricePerMTok: 0,
1485
- },
1486
- 'moonshotai/kimi-k2.7-code:batch': {
1487
- contextWindow: 262144,
1488
- maxTokens: 4096,
1489
- inputPricePerMTok: 0.95,
1490
- outputPricePerMTok: 4,
1491
- cacheReadPricePerMTok: 0.19,
1603
+ cacheReadPricePerMTok: 0.18,
1492
1604
  cacheWritePricePerMTok: 0,
1493
1605
  },
1494
1606
  'moonshotai/kimi-k3': {
@@ -1499,9 +1611,17 @@ export const MODEL_CATALOG = {
1499
1611
  cacheReadPricePerMTok: 0.3,
1500
1612
  cacheWritePricePerMTok: 0,
1501
1613
  },
1614
+ 'moonshotai/kimi-k3:batch': {
1615
+ contextWindow: 1048576,
1616
+ maxTokens: 943718,
1617
+ inputPricePerMTok: 3,
1618
+ outputPricePerMTok: 15,
1619
+ cacheReadPricePerMTok: 0.3,
1620
+ cacheWritePricePerMTok: 0,
1621
+ },
1502
1622
  'nex-agi/nex-n2-mini': {
1503
1623
  contextWindow: 262144,
1504
- maxTokens: 262144,
1624
+ maxTokens: 235929,
1505
1625
  inputPricePerMTok: 0.025,
1506
1626
  outputPricePerMTok: 0.1,
1507
1627
  cacheReadPricePerMTok: 0.0025,
@@ -1509,7 +1629,7 @@ export const MODEL_CATALOG = {
1509
1629
  },
1510
1630
  'nex-agi/nex-n2-pro': {
1511
1631
  contextWindow: 262144,
1512
- maxTokens: 262144,
1632
+ maxTokens: 235929,
1513
1633
  inputPricePerMTok: 0.25,
1514
1634
  outputPricePerMTok: 1,
1515
1635
  cacheReadPricePerMTok: 0.025,
@@ -1517,20 +1637,12 @@ export const MODEL_CATALOG = {
1517
1637
  },
1518
1638
  'nvidia/nemotron-3-nano-30b-a3b': {
1519
1639
  contextWindow: 262144,
1520
- maxTokens: 262144,
1640
+ maxTokens: 235929,
1521
1641
  inputPricePerMTok: 0.05,
1522
1642
  outputPricePerMTok: 0.2,
1523
1643
  cacheReadPricePerMTok: 0.03,
1524
1644
  cacheWritePricePerMTok: 0,
1525
1645
  },
1526
- 'nvidia/nemotron-3-nano-30b-a3b:free': {
1527
- contextWindow: 256000,
1528
- maxTokens: 4096,
1529
- inputPricePerMTok: 0,
1530
- outputPricePerMTok: 0,
1531
- cacheReadPricePerMTok: 0,
1532
- cacheWritePricePerMTok: 0,
1533
- },
1534
1646
  'nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free': {
1535
1647
  contextWindow: 256000,
1536
1648
  maxTokens: 65536,
@@ -1549,26 +1661,18 @@ export const MODEL_CATALOG = {
1549
1661
  },
1550
1662
  'nvidia/nemotron-3-super-120b-a12b:free': {
1551
1663
  contextWindow: 262144,
1552
- maxTokens: 262144,
1664
+ maxTokens: 235929,
1553
1665
  inputPricePerMTok: 0,
1554
1666
  outputPricePerMTok: 0,
1555
1667
  cacheReadPricePerMTok: 0,
1556
1668
  cacheWritePricePerMTok: 0,
1557
1669
  },
1558
1670
  'nvidia/nemotron-3-ultra-550b-a55b': {
1559
- contextWindow: 512288,
1560
- maxTokens: 4096,
1561
- inputPricePerMTok: 0.6,
1562
- outputPricePerMTok: 3.6,
1563
- cacheReadPricePerMTok: 0.2,
1564
- cacheWritePricePerMTok: 0,
1565
- },
1566
- 'nvidia/nemotron-3-ultra-550b-a55b:batch': {
1567
- contextWindow: 512288,
1568
- maxTokens: 4096,
1569
- inputPricePerMTok: 0.6,
1570
- outputPricePerMTok: 3.6,
1571
- cacheReadPricePerMTok: 0.2,
1671
+ contextWindow: 256000,
1672
+ maxTokens: 32768,
1673
+ inputPricePerMTok: 0.625,
1674
+ outputPricePerMTok: 3.125,
1675
+ cacheReadPricePerMTok: 0.1875,
1572
1676
  cacheWritePricePerMTok: 0,
1573
1677
  },
1574
1678
  'nvidia/nemotron-3-ultra-550b-a55b:free': {
@@ -1595,22 +1699,6 @@ export const MODEL_CATALOG = {
1595
1699
  cacheReadPricePerMTok: 0,
1596
1700
  cacheWritePricePerMTok: 0,
1597
1701
  },
1598
- 'nvidia/nemotron-nano-12b-v2-vl:free': {
1599
- contextWindow: 128000,
1600
- maxTokens: 128000,
1601
- inputPricePerMTok: 0,
1602
- outputPricePerMTok: 0,
1603
- cacheReadPricePerMTok: 0,
1604
- cacheWritePricePerMTok: 0,
1605
- },
1606
- 'nvidia/nemotron-nano-9b-v2:free': {
1607
- contextWindow: 128000,
1608
- maxTokens: 4096,
1609
- inputPricePerMTok: 0,
1610
- outputPricePerMTok: 0,
1611
- cacheReadPricePerMTok: 0,
1612
- cacheWritePricePerMTok: 0,
1613
- },
1614
1702
  'openai/gpt-3.5-turbo': {
1615
1703
  contextWindow: 16385,
1616
1704
  maxTokens: 4096,
@@ -1621,7 +1709,7 @@ export const MODEL_CATALOG = {
1621
1709
  },
1622
1710
  'openai/gpt-3.5-turbo-0613': {
1623
1711
  contextWindow: 4095,
1624
- maxTokens: 4096,
1712
+ maxTokens: 3685,
1625
1713
  inputPricePerMTok: 1,
1626
1714
  outputPricePerMTok: 2,
1627
1715
  cacheReadPricePerMTok: 0,
@@ -1795,14 +1883,6 @@ export const MODEL_CATALOG = {
1795
1883
  cacheReadPricePerMTok: 0.125,
1796
1884
  cacheWritePricePerMTok: 0,
1797
1885
  },
1798
- 'openai/gpt-5-codex:batch': {
1799
- contextWindow: 400000,
1800
- maxTokens: 128000,
1801
- inputPricePerMTok: 0.625,
1802
- outputPricePerMTok: 5,
1803
- cacheReadPricePerMTok: 0.0625,
1804
- cacheWritePricePerMTok: 0,
1805
- },
1806
1886
  'openai/gpt-5-mini': {
1807
1887
  contextWindow: 400000,
1808
1888
  maxTokens: 128000,
@@ -2147,6 +2227,38 @@ export const MODEL_CATALOG = {
2147
2227
  cacheReadPricePerMTok: 0.0625,
2148
2228
  cacheWritePricePerMTok: 0,
2149
2229
  },
2230
+ 'openai/gpt-6-astra': {
2231
+ contextWindow: 1050000,
2232
+ maxTokens: 128000,
2233
+ inputPricePerMTok: 10,
2234
+ outputPricePerMTok: 50,
2235
+ cacheReadPricePerMTok: 1,
2236
+ cacheWritePricePerMTok: 12.5,
2237
+ },
2238
+ 'openai/gpt-6-astra-pro': {
2239
+ contextWindow: 1050000,
2240
+ maxTokens: 128000,
2241
+ inputPricePerMTok: 10,
2242
+ outputPricePerMTok: 50,
2243
+ cacheReadPricePerMTok: 1,
2244
+ cacheWritePricePerMTok: 12.5,
2245
+ },
2246
+ 'openai/gpt-6-astra-pro:batch': {
2247
+ contextWindow: 1050000,
2248
+ maxTokens: 128000,
2249
+ inputPricePerMTok: 5,
2250
+ outputPricePerMTok: 25,
2251
+ cacheReadPricePerMTok: 0.5,
2252
+ cacheWritePricePerMTok: 6.25,
2253
+ },
2254
+ 'openai/gpt-6-astra:batch': {
2255
+ contextWindow: 1050000,
2256
+ maxTokens: 128000,
2257
+ inputPricePerMTok: 5,
2258
+ outputPricePerMTok: 25,
2259
+ cacheReadPricePerMTok: 0.5,
2260
+ cacheWritePricePerMTok: 6.25,
2261
+ },
2150
2262
  'openai/gpt-audio': {
2151
2263
  contextWindow: 128000,
2152
2264
  maxTokens: 16384,
@@ -2173,15 +2285,23 @@ export const MODEL_CATALOG = {
2173
2285
  },
2174
2286
  'openai/gpt-oss-120b': {
2175
2287
  contextWindow: 131072,
2176
- maxTokens: 131072,
2288
+ maxTokens: 117964,
2177
2289
  inputPricePerMTok: 0.037,
2178
2290
  outputPricePerMTok: 0.17,
2179
2291
  cacheReadPricePerMTok: 0,
2180
2292
  cacheWritePricePerMTok: 0,
2181
2293
  },
2294
+ 'openai/gpt-oss-120b:batch': {
2295
+ contextWindow: 131072,
2296
+ maxTokens: 117964,
2297
+ inputPricePerMTok: 0.15,
2298
+ outputPricePerMTok: 0.6,
2299
+ cacheReadPricePerMTok: 0,
2300
+ cacheWritePricePerMTok: 0,
2301
+ },
2182
2302
  'openai/gpt-oss-20b': {
2183
2303
  contextWindow: 131072,
2184
- maxTokens: 131072,
2304
+ maxTokens: 117964,
2185
2305
  inputPricePerMTok: 0.03,
2186
2306
  outputPricePerMTok: 0.13,
2187
2307
  cacheReadPricePerMTok: 0.03,
@@ -2203,14 +2323,6 @@ export const MODEL_CATALOG = {
2203
2323
  cacheReadPricePerMTok: 7.5,
2204
2324
  cacheWritePricePerMTok: 0,
2205
2325
  },
2206
- 'openai/o1:batch': {
2207
- contextWindow: 200000,
2208
- maxTokens: 100000,
2209
- inputPricePerMTok: 7.5,
2210
- outputPricePerMTok: 30,
2211
- cacheReadPricePerMTok: 3.75,
2212
- cacheWritePricePerMTok: 0,
2213
- },
2214
2326
  'openai/o3': {
2215
2327
  contextWindow: 200000,
2216
2328
  maxTokens: 100000,
@@ -2235,14 +2347,6 @@ export const MODEL_CATALOG = {
2235
2347
  cacheReadPricePerMTok: 0.55,
2236
2348
  cacheWritePricePerMTok: 0,
2237
2349
  },
2238
- 'openai/o3-mini-high:batch': {
2239
- contextWindow: 200000,
2240
- maxTokens: 100000,
2241
- inputPricePerMTok: 0.55,
2242
- outputPricePerMTok: 2.2,
2243
- cacheReadPricePerMTok: 0.275,
2244
- cacheWritePricePerMTok: 0,
2245
- },
2246
2350
  'openai/o3-mini:batch': {
2247
2351
  contextWindow: 200000,
2248
2352
  maxTokens: 100000,
@@ -2259,14 +2363,6 @@ export const MODEL_CATALOG = {
2259
2363
  cacheReadPricePerMTok: 0,
2260
2364
  cacheWritePricePerMTok: 0,
2261
2365
  },
2262
- 'openai/o3-pro:batch': {
2263
- contextWindow: 200000,
2264
- maxTokens: 100000,
2265
- inputPricePerMTok: 10,
2266
- outputPricePerMTok: 40,
2267
- cacheReadPricePerMTok: 0,
2268
- cacheWritePricePerMTok: 0,
2269
- },
2270
2366
  'openai/o3:batch': {
2271
2367
  contextWindow: 200000,
2272
2368
  maxTokens: 100000,
@@ -2291,14 +2387,6 @@ export const MODEL_CATALOG = {
2291
2387
  cacheReadPricePerMTok: 0.275,
2292
2388
  cacheWritePricePerMTok: 0,
2293
2389
  },
2294
- 'openai/o4-mini-high:batch': {
2295
- contextWindow: 200000,
2296
- maxTokens: 100000,
2297
- inputPricePerMTok: 0.55,
2298
- outputPricePerMTok: 2.2,
2299
- cacheReadPricePerMTok: 0.1375,
2300
- cacheWritePricePerMTok: 0,
2301
- },
2302
2390
  'openai/o4-mini:batch': {
2303
2391
  contextWindow: 200000,
2304
2392
  maxTokens: 100000,
@@ -2381,7 +2469,7 @@ export const MODEL_CATALOG = {
2381
2469
  },
2382
2470
  'qwen/qwen-2.5-7b-instruct': {
2383
2471
  contextWindow: 32768,
2384
- maxTokens: 32768,
2472
+ maxTokens: 29491,
2385
2473
  inputPricePerMTok: 0.1,
2386
2474
  outputPricePerMTok: 0.2,
2387
2475
  cacheReadPricePerMTok: 0,
@@ -2403,14 +2491,6 @@ export const MODEL_CATALOG = {
2403
2491
  cacheReadPricePerMTok: 0,
2404
2492
  cacheWritePricePerMTok: 0,
2405
2493
  },
2406
- 'qwen/qwen-plus-2025-07-28:thinking': {
2407
- contextWindow: 1000000,
2408
- maxTokens: 32768,
2409
- inputPricePerMTok: 0.26,
2410
- outputPricePerMTok: 0.78,
2411
- cacheReadPricePerMTok: 0,
2412
- cacheWritePricePerMTok: 0,
2413
- },
2414
2494
  'qwen/qwen3-14b': {
2415
2495
  contextWindow: 40960,
2416
2496
  maxTokens: 16384,
@@ -2437,7 +2517,7 @@ export const MODEL_CATALOG = {
2437
2517
  },
2438
2518
  'qwen/qwen3-235b-a22b-thinking-2507': {
2439
2519
  contextWindow: 131072,
2440
- maxTokens: 4096,
2520
+ maxTokens: 117964,
2441
2521
  inputPricePerMTok: 0.23,
2442
2522
  outputPricePerMTok: 2.3,
2443
2523
  cacheReadPricePerMTok: 0,
@@ -2493,7 +2573,7 @@ export const MODEL_CATALOG = {
2493
2573
  },
2494
2574
  'qwen/qwen3-coder-30b-a3b-instruct': {
2495
2575
  contextWindow: 262144,
2496
- maxTokens: 262144,
2576
+ maxTokens: 235929,
2497
2577
  inputPricePerMTok: 0.07,
2498
2578
  outputPricePerMTok: 0.28,
2499
2579
  cacheReadPricePerMTok: 0,
@@ -2509,7 +2589,7 @@ export const MODEL_CATALOG = {
2509
2589
  },
2510
2590
  'qwen/qwen3-coder-next': {
2511
2591
  contextWindow: 262144,
2512
- maxTokens: 262144,
2592
+ maxTokens: 235929,
2513
2593
  inputPricePerMTok: 0.12,
2514
2594
  outputPricePerMTok: 0.8,
2515
2595
  cacheReadPricePerMTok: 0.07,
@@ -2541,7 +2621,7 @@ export const MODEL_CATALOG = {
2541
2621
  },
2542
2622
  'qwen/qwen3-next-80b-a3b-instruct': {
2543
2623
  contextWindow: 262144,
2544
- maxTokens: 262144,
2624
+ maxTokens: 235929,
2545
2625
  inputPricePerMTok: 0.1,
2546
2626
  outputPricePerMTok: 1.1,
2547
2627
  cacheReadPricePerMTok: 0.07,
@@ -2572,10 +2652,10 @@ export const MODEL_CATALOG = {
2572
2652
  cacheWritePricePerMTok: 0,
2573
2653
  },
2574
2654
  'qwen/qwen3-vl-30b-a3b-instruct': {
2575
- contextWindow: 131072,
2576
- maxTokens: 32768,
2577
- inputPricePerMTok: 0.13,
2578
- outputPricePerMTok: 0.52,
2655
+ contextWindow: 262144,
2656
+ maxTokens: 16384,
2657
+ inputPricePerMTok: 0.15,
2658
+ outputPricePerMTok: 0.6,
2579
2659
  cacheReadPricePerMTok: 0,
2580
2660
  cacheWritePricePerMTok: 0,
2581
2661
  },
@@ -2613,9 +2693,9 @@ export const MODEL_CATALOG = {
2613
2693
  },
2614
2694
  'qwen/qwen3.5-122b-a10b': {
2615
2695
  contextWindow: 262144,
2616
- maxTokens: 262144,
2617
- inputPricePerMTok: 0.26,
2618
- outputPricePerMTok: 2.08,
2696
+ maxTokens: 81920,
2697
+ inputPricePerMTok: 0.29,
2698
+ outputPricePerMTok: 2.4,
2619
2699
  cacheReadPricePerMTok: 0,
2620
2700
  cacheWritePricePerMTok: 0,
2621
2701
  },
@@ -2629,28 +2709,36 @@ export const MODEL_CATALOG = {
2629
2709
  },
2630
2710
  'qwen/qwen3.5-35b-a3b': {
2631
2711
  contextWindow: 262144,
2632
- maxTokens: 262144,
2633
- inputPricePerMTok: 0.25,
2634
- outputPricePerMTok: 1.25,
2635
- cacheReadPricePerMTok: 0.25,
2712
+ maxTokens: 16384,
2713
+ inputPricePerMTok: 0.08,
2714
+ outputPricePerMTok: 0.75,
2715
+ cacheReadPricePerMTok: 0,
2636
2716
  cacheWritePricePerMTok: 0,
2637
2717
  },
2638
2718
  'qwen/qwen3.5-397b-a17b': {
2639
2719
  contextWindow: 262144,
2640
- maxTokens: 262144,
2641
- inputPricePerMTok: 0.5,
2642
- outputPricePerMTok: 3.6,
2643
- cacheReadPricePerMTok: 0.3,
2720
+ maxTokens: 235929,
2721
+ inputPricePerMTok: 0.55,
2722
+ outputPricePerMTok: 3.5,
2723
+ cacheReadPricePerMTok: 0.225,
2644
2724
  cacheWritePricePerMTok: 0,
2645
2725
  },
2646
2726
  'qwen/qwen3.5-9b': {
2647
2727
  contextWindow: 262144,
2648
- maxTokens: 262144,
2728
+ maxTokens: 235929,
2649
2729
  inputPricePerMTok: 0.1,
2650
2730
  outputPricePerMTok: 0.15,
2651
2731
  cacheReadPricePerMTok: 0,
2652
2732
  cacheWritePricePerMTok: 0,
2653
2733
  },
2734
+ 'qwen/qwen3.5-9b:batch': {
2735
+ contextWindow: 262144,
2736
+ maxTokens: 235929,
2737
+ inputPricePerMTok: 0.17,
2738
+ outputPricePerMTok: 0.25,
2739
+ cacheReadPricePerMTok: 0,
2740
+ cacheWritePricePerMTok: 0,
2741
+ },
2654
2742
  'qwen/qwen3.5-flash-02-23': {
2655
2743
  contextWindow: 1000000,
2656
2744
  maxTokens: 65536,
@@ -2677,17 +2765,17 @@ export const MODEL_CATALOG = {
2677
2765
  },
2678
2766
  'qwen/qwen3.6-27b': {
2679
2767
  contextWindow: 262144,
2680
- maxTokens: 81920,
2681
- inputPricePerMTok: 0.32,
2682
- outputPricePerMTok: 3.2,
2683
- cacheReadPricePerMTok: 0,
2768
+ maxTokens: 65536,
2769
+ inputPricePerMTok: 0.3,
2770
+ outputPricePerMTok: 2,
2771
+ cacheReadPricePerMTok: 0.03,
2684
2772
  cacheWritePricePerMTok: 0,
2685
2773
  },
2686
2774
  'qwen/qwen3.6-35b-a3b': {
2687
2775
  contextWindow: 262144,
2688
- maxTokens: 262144,
2689
- inputPricePerMTok: 0.14,
2690
- outputPricePerMTok: 1,
2776
+ maxTokens: 235929,
2777
+ inputPricePerMTok: 0.1,
2778
+ outputPricePerMTok: 0.9,
2691
2779
  cacheReadPricePerMTok: 0.05,
2692
2780
  cacheWritePricePerMTok: 0,
2693
2781
  },
@@ -2740,22 +2828,38 @@ export const MODEL_CATALOG = {
2740
2828
  cacheWritePricePerMTok: 0.4,
2741
2829
  },
2742
2830
  'qwen/qwen3.8-2.4t-a95b': {
2743
- contextWindow: 1048576,
2744
- maxTokens: 131072,
2831
+ contextWindow: 1000000,
2832
+ maxTokens: 262144,
2833
+ inputPricePerMTok: 2,
2834
+ outputPricePerMTok: 6,
2835
+ cacheReadPricePerMTok: 0.25,
2836
+ cacheWritePricePerMTok: 0,
2837
+ },
2838
+ 'qwen/qwen3.8-2.4t-a95b:batch': {
2839
+ contextWindow: 1010000,
2840
+ maxTokens: 909000,
2745
2841
  inputPricePerMTok: 2,
2746
2842
  outputPricePerMTok: 6,
2747
2843
  cacheReadPricePerMTok: 0.25,
2748
2844
  cacheWritePricePerMTok: 0,
2749
2845
  },
2750
2846
  'qwen/qwen3.8-27b': {
2751
- contextWindow: 262144,
2847
+ contextWindow: 1000000,
2752
2848
  maxTokens: 131072,
2753
- inputPricePerMTok: 0.4,
2849
+ inputPricePerMTok: 0.42,
2754
2850
  outputPricePerMTok: 3,
2755
- cacheReadPricePerMTok: 0.05,
2851
+ cacheReadPricePerMTok: 0.085,
2756
2852
  cacheWritePricePerMTok: 0,
2757
2853
  },
2758
- 'qwen/qwen3.8-max': {
2854
+ 'qwen/qwen3.8-flash': {
2855
+ contextWindow: 1000000,
2856
+ maxTokens: 131072,
2857
+ inputPricePerMTok: 0.15,
2858
+ outputPricePerMTok: 0.47,
2859
+ cacheReadPricePerMTok: 0.016,
2860
+ cacheWritePricePerMTok: 0.2,
2861
+ },
2862
+ 'qwen/qwen3.8-max-0902': {
2759
2863
  contextWindow: 1000000,
2760
2864
  maxTokens: 131072,
2761
2865
  inputPricePerMTok: 2,
@@ -2765,7 +2869,7 @@ export const MODEL_CATALOG = {
2765
2869
  },
2766
2870
  'rekaai/reka-edge': {
2767
2871
  contextWindow: 16384,
2768
- maxTokens: 16384,
2872
+ maxTokens: 14745,
2769
2873
  inputPricePerMTok: 0.1,
2770
2874
  outputPricePerMTok: 0.1,
2771
2875
  cacheReadPricePerMTok: 0,
@@ -2803,14 +2907,6 @@ export const MODEL_CATALOG = {
2803
2907
  cacheReadPricePerMTok: 0,
2804
2908
  cacheWritePricePerMTok: 0,
2805
2909
  },
2806
- 'stealth/ox-alpha': {
2807
- contextWindow: 1048576,
2808
- maxTokens: 131072,
2809
- inputPricePerMTok: 0,
2810
- outputPricePerMTok: 0,
2811
- cacheReadPricePerMTok: 0,
2812
- cacheWritePricePerMTok: 0,
2813
- },
2814
2910
  'stepfun/step-3.5-flash': {
2815
2911
  contextWindow: 262144,
2816
2912
  maxTokens: 65536,
@@ -2821,7 +2917,7 @@ export const MODEL_CATALOG = {
2821
2917
  },
2822
2918
  'stepfun/step-3.7-flash': {
2823
2919
  contextWindow: 256000,
2824
- maxTokens: 256000,
2920
+ maxTokens: 230400,
2825
2921
  inputPricePerMTok: 0.2,
2826
2922
  outputPricePerMTok: 1.15,
2827
2923
  cacheReadPricePerMTok: 0.04,
@@ -2837,15 +2933,23 @@ export const MODEL_CATALOG = {
2837
2933
  },
2838
2934
  'tencent/hy3-preview': {
2839
2935
  contextWindow: 262144,
2840
- maxTokens: 4096,
2936
+ maxTokens: 235929,
2841
2937
  inputPricePerMTok: 0.18,
2842
2938
  outputPricePerMTok: 0.6,
2843
2939
  cacheReadPricePerMTok: 0.06,
2844
2940
  cacheWritePricePerMTok: 0,
2845
2941
  },
2942
+ 'tencent/hy4-preview': {
2943
+ contextWindow: 1048576,
2944
+ maxTokens: 64000,
2945
+ inputPricePerMTok: 0.834,
2946
+ outputPricePerMTok: 2.501,
2947
+ cacheReadPricePerMTok: 0.042,
2948
+ cacheWritePricePerMTok: 0,
2949
+ },
2846
2950
  'thedrummer/unslopnemo-12b': {
2847
2951
  contextWindow: 32768,
2848
- maxTokens: 32768,
2952
+ maxTokens: 26214,
2849
2953
  inputPricePerMTok: 0.4,
2850
2954
  outputPricePerMTok: 0.4,
2851
2955
  cacheReadPricePerMTok: 0,
@@ -2853,7 +2957,7 @@ export const MODEL_CATALOG = {
2853
2957
  },
2854
2958
  'thinkingmachines/inkling': {
2855
2959
  contextWindow: 524288,
2856
- maxTokens: 4096,
2960
+ maxTokens: 471859,
2857
2961
  inputPricePerMTok: 1,
2858
2962
  outputPricePerMTok: 4.05,
2859
2963
  cacheReadPricePerMTok: 0.17,
@@ -2867,8 +2971,16 @@ export const MODEL_CATALOG = {
2867
2971
  cacheReadPricePerMTok: 0.1,
2868
2972
  cacheWritePricePerMTok: 0,
2869
2973
  },
2974
+ 'thinkingmachines/inkling-small:batch': {
2975
+ contextWindow: 524288,
2976
+ maxTokens: 471859,
2977
+ inputPricePerMTok: 0.5,
2978
+ outputPricePerMTok: 1.2,
2979
+ cacheReadPricePerMTok: 0.1,
2980
+ cacheWritePricePerMTok: 0,
2981
+ },
2870
2982
  'thinkingmachines/inkling-small:free': {
2871
- contextWindow: 262144,
2983
+ contextWindow: 1048576,
2872
2984
  maxTokens: 262144,
2873
2985
  inputPricePerMTok: 0,
2874
2986
  outputPricePerMTok: 0,
@@ -2877,14 +2989,14 @@ export const MODEL_CATALOG = {
2877
2989
  },
2878
2990
  'thinkingmachines/inkling:batch': {
2879
2991
  contextWindow: 524288,
2880
- maxTokens: 4096,
2992
+ maxTokens: 471859,
2881
2993
  inputPricePerMTok: 1,
2882
2994
  outputPricePerMTok: 4.05,
2883
2995
  cacheReadPricePerMTok: 0.17,
2884
2996
  cacheWritePricePerMTok: 0,
2885
2997
  },
2886
2998
  'thinkingmachines/inkling:free': {
2887
- contextWindow: 262144,
2999
+ contextWindow: 1048576,
2888
3000
  maxTokens: 262144,
2889
3001
  inputPricePerMTok: 0,
2890
3002
  outputPricePerMTok: 0,
@@ -2893,7 +3005,7 @@ export const MODEL_CATALOG = {
2893
3005
  },
2894
3006
  'upstage/solar-pro-3': {
2895
3007
  contextWindow: 131072,
2896
- maxTokens: 131072,
3008
+ maxTokens: 117964,
2897
3009
  inputPricePerMTok: 0.15,
2898
3010
  outputPricePerMTok: 0.6,
2899
3011
  cacheReadPricePerMTok: 0.015,
@@ -2909,7 +3021,7 @@ export const MODEL_CATALOG = {
2909
3021
  },
2910
3022
  'x-ai/grok-4.20': {
2911
3023
  contextWindow: 2000000,
2912
- maxTokens: 4096,
3024
+ maxTokens: 1800000,
2913
3025
  inputPricePerMTok: 1.25,
2914
3026
  outputPricePerMTok: 2.5,
2915
3027
  cacheReadPricePerMTok: 0.2,
@@ -2917,15 +3029,23 @@ export const MODEL_CATALOG = {
2917
3029
  },
2918
3030
  'x-ai/grok-4.3': {
2919
3031
  contextWindow: 1000000,
2920
- maxTokens: 4096,
3032
+ maxTokens: 900000,
2921
3033
  inputPricePerMTok: 1.25,
2922
3034
  outputPricePerMTok: 2.5,
2923
3035
  cacheReadPricePerMTok: 0.2,
2924
3036
  cacheWritePricePerMTok: 0,
2925
3037
  },
3038
+ 'x-ai/grok-4.3:batch': {
3039
+ contextWindow: 1000000,
3040
+ maxTokens: 900000,
3041
+ inputPricePerMTok: 1,
3042
+ outputPricePerMTok: 2,
3043
+ cacheReadPricePerMTok: 0.16,
3044
+ cacheWritePricePerMTok: 0,
3045
+ },
2926
3046
  'x-ai/grok-4.5': {
2927
3047
  contextWindow: 500000,
2928
- maxTokens: 4096,
3048
+ maxTokens: 450000,
2929
3049
  inputPricePerMTok: 2,
2930
3050
  outputPricePerMTok: 6,
2931
3051
  cacheReadPricePerMTok: 0.3,
@@ -2933,7 +3053,7 @@ export const MODEL_CATALOG = {
2933
3053
  },
2934
3054
  'x-ai/grok-4.6': {
2935
3055
  contextWindow: 500000,
2936
- maxTokens: 4096,
3056
+ maxTokens: 450000,
2937
3057
  inputPricePerMTok: 2,
2938
3058
  outputPricePerMTok: 6,
2939
3059
  cacheReadPricePerMTok: 0.5,
@@ -2941,7 +3061,7 @@ export const MODEL_CATALOG = {
2941
3061
  },
2942
3062
  'x-ai/grok-build-0.1': {
2943
3063
  contextWindow: 256000,
2944
- maxTokens: 4096,
3064
+ maxTokens: 230400,
2945
3065
  inputPricePerMTok: 1,
2946
3066
  outputPricePerMTok: 2,
2947
3067
  cacheReadPricePerMTok: 0.2,
@@ -2988,11 +3108,11 @@ export const MODEL_CATALOG = {
2988
3108
  cacheWritePricePerMTok: 0,
2989
3109
  },
2990
3110
  'z-ai/glm-4.6': {
2991
- contextWindow: 202752,
3111
+ contextWindow: 204800,
2992
3112
  maxTokens: 131072,
2993
- inputPricePerMTok: 0.5,
2994
- outputPricePerMTok: 2,
2995
- cacheReadPricePerMTok: 0.1,
3113
+ inputPricePerMTok: 0.55,
3114
+ outputPricePerMTok: 2.2,
3115
+ cacheReadPricePerMTok: 0.11,
2996
3116
  cacheWritePricePerMTok: 0,
2997
3117
  },
2998
3118
  'z-ai/glm-4.6v': {
@@ -3051,17 +3171,9 @@ export const MODEL_CATALOG = {
3051
3171
  cacheReadPricePerMTok: 0.1932,
3052
3172
  cacheWritePricePerMTok: 0,
3053
3173
  },
3054
- 'z-ai/glm-5.2:batch': {
3055
- contextWindow: 1048575,
3056
- maxTokens: 4096,
3057
- inputPricePerMTok: 1.4,
3058
- outputPricePerMTok: 4.4,
3059
- cacheReadPricePerMTok: 0.26,
3060
- cacheWritePricePerMTok: 0,
3061
- },
3062
3174
  'z-ai/glm-5.2:free': {
3063
3175
  contextWindow: 256000,
3064
- maxTokens: 256000,
3176
+ maxTokens: 230400,
3065
3177
  inputPricePerMTok: 0,
3066
3178
  outputPricePerMTok: 0,
3067
3179
  cacheReadPricePerMTok: 0,
@@ -3069,10 +3181,26 @@ export const MODEL_CATALOG = {
3069
3181
  },
3070
3182
  'z-ai/glm-5.3': {
3071
3183
  contextWindow: 1048576,
3072
- maxTokens: 131072,
3184
+ maxTokens: 262144,
3073
3185
  inputPricePerMTok: 1.4,
3074
3186
  outputPricePerMTok: 4.4,
3075
- cacheReadPricePerMTok: 0.26,
3187
+ cacheReadPricePerMTok: 0.14,
3188
+ cacheWritePricePerMTok: 0,
3189
+ },
3190
+ 'z-ai/glm-5.3-flash': {
3191
+ contextWindow: 1048576,
3192
+ maxTokens: 131072,
3193
+ inputPricePerMTok: 0.075,
3194
+ outputPricePerMTok: 0.25,
3195
+ cacheReadPricePerMTok: 0.015,
3196
+ cacheWritePricePerMTok: 0,
3197
+ },
3198
+ 'z-ai/glm-5.3-flash:batch': {
3199
+ contextWindow: 1048575,
3200
+ maxTokens: 943717,
3201
+ inputPricePerMTok: 0.15,
3202
+ outputPricePerMTok: 0.5,
3203
+ cacheReadPricePerMTok: 0.03,
3076
3204
  cacheWritePricePerMTok: 0,
3077
3205
  },
3078
3206
  'z-ai/glm-5v-turbo': {
@@ -3088,7 +3216,7 @@ export const MODEL_CATALOG = {
3088
3216
  maxTokens: 128000,
3089
3217
  inputPricePerMTok: 10,
3090
3218
  outputPricePerMTok: 50,
3091
- cacheReadPricePerMTok: 1,
3219
+ cacheReadPricePerMTok: 0.25,
3092
3220
  cacheWritePricePerMTok: 12.5,
3093
3221
  },
3094
3222
  '~anthropic/claude-haiku-latest': {
@@ -3117,19 +3245,19 @@ export const MODEL_CATALOG = {
3117
3245
  },
3118
3246
  '~deepseek/deepseek-v4-flash-latest': {
3119
3247
  contextWindow: 1048576,
3120
- maxTokens: 1048576,
3121
- inputPricePerMTok: 0.04,
3122
- outputPricePerMTok: 0.08,
3123
- cacheReadPricePerMTok: 0.008,
3248
+ maxTokens: 131072,
3249
+ inputPricePerMTok: 0.04998,
3250
+ outputPricePerMTok: 0.09996,
3251
+ cacheReadPricePerMTok: 0.009996,
3124
3252
  cacheWritePricePerMTok: 0,
3125
3253
  },
3126
3254
  '~google/gemini-flash-latest': {
3127
3255
  contextWindow: 1048576,
3128
3256
  maxTokens: 65536,
3129
- inputPricePerMTok: 0.375,
3130
- outputPricePerMTok: 1.875,
3131
- cacheReadPricePerMTok: 0.0375,
3132
- cacheWritePricePerMTok: 0.020833,
3257
+ inputPricePerMTok: 0.75,
3258
+ outputPricePerMTok: 3.75,
3259
+ cacheReadPricePerMTok: 0.075,
3260
+ cacheWritePricePerMTok: 0.041667,
3133
3261
  },
3134
3262
  '~google/gemini-pro-latest': {
3135
3263
  contextWindow: 1048576,
@@ -3140,11 +3268,11 @@ export const MODEL_CATALOG = {
3140
3268
  cacheWritePricePerMTok: 0.375,
3141
3269
  },
3142
3270
  '~moonshotai/kimi-latest': {
3143
- contextWindow: 974842,
3271
+ contextWindow: 1048576,
3144
3272
  maxTokens: 131072,
3145
- inputPricePerMTok: 2.6,
3146
- outputPricePerMTok: 13,
3147
- cacheReadPricePerMTok: 0.29,
3273
+ inputPricePerMTok: 2.55,
3274
+ outputPricePerMTok: 12.75,
3275
+ cacheReadPricePerMTok: 0.256,
3148
3276
  cacheWritePricePerMTok: 0,
3149
3277
  },
3150
3278
  '~openai/gpt-latest': {
@@ -3165,18 +3293,26 @@ export const MODEL_CATALOG = {
3165
3293
  },
3166
3294
  '~x-ai/grok-latest': {
3167
3295
  contextWindow: 500000,
3168
- maxTokens: 4096,
3296
+ maxTokens: 450000,
3169
3297
  inputPricePerMTok: 2,
3170
3298
  outputPricePerMTok: 6,
3171
3299
  cacheReadPricePerMTok: 0.5,
3172
3300
  cacheWritePricePerMTok: 0,
3173
3301
  },
3174
- '~z-ai/glm-latest': {
3302
+ '~z-ai/glm-flash-latest': {
3175
3303
  contextWindow: 1048576,
3176
- maxTokens: 131072,
3177
- inputPricePerMTok: 1.4,
3178
- outputPricePerMTok: 4.4,
3179
- cacheReadPricePerMTok: 0.26,
3304
+ maxTokens: 943718,
3305
+ inputPricePerMTok: 0.075,
3306
+ outputPricePerMTok: 0.25,
3307
+ cacheReadPricePerMTok: 0.015,
3308
+ cacheWritePricePerMTok: 0,
3309
+ },
3310
+ '~z-ai/glm-latest': {
3311
+ contextWindow: 262144,
3312
+ maxTokens: 235929,
3313
+ inputPricePerMTok: 1.15,
3314
+ outputPricePerMTok: 3.5,
3315
+ cacheReadPricePerMTok: 0.1,
3180
3316
  cacheWritePricePerMTok: 0,
3181
3317
  },
3182
3318
  },
@@ -3189,6 +3325,14 @@ export const MODEL_CATALOG = {
3189
3325
  cacheReadPricePerMTok: 1,
3190
3326
  cacheWritePricePerMTok: 12.5,
3191
3327
  },
3328
+ 'claude-fable-5-1': {
3329
+ contextWindow: 1000000,
3330
+ maxTokens: 128000,
3331
+ inputPricePerMTok: 10,
3332
+ outputPricePerMTok: 50,
3333
+ cacheReadPricePerMTok: 0.25,
3334
+ cacheWritePricePerMTok: 12.5,
3335
+ },
3192
3336
  'claude-haiku-4-5': {
3193
3337
  contextWindow: 200000,
3194
3338
  maxTokens: 64000,