@qduc/term2 0.11.1 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (1386) hide show
  1. package/README.md +12 -5
  2. package/dist/agent.d.ts +24 -24
  3. package/dist/agent.d.ts.map +1 -1
  4. package/dist/agent.js +107 -31
  5. package/dist/agent.js.map +1 -1
  6. package/dist/app.d.ts +3 -1
  7. package/dist/app.d.ts.map +1 -1
  8. package/dist/app.js +359 -131
  9. package/dist/app.js.map +1 -1
  10. package/dist/cli.js +124 -49
  11. package/dist/cli.js.map +1 -1
  12. package/dist/commands/auto-approve-command.d.ts.map +1 -1
  13. package/dist/commands/auto-approve-command.js +12 -4
  14. package/dist/commands/auto-approve-command.js.map +1 -1
  15. package/dist/commands/copy-command.d.ts +3 -1
  16. package/dist/commands/copy-command.d.ts.map +1 -1
  17. package/dist/commands/copy-command.js +36 -9
  18. package/dist/commands/copy-command.js.map +1 -1
  19. package/dist/commands/mode-commands.js.map +1 -1
  20. package/dist/commands/retry-tool-command.d.ts +13 -0
  21. package/dist/commands/retry-tool-command.d.ts.map +1 -0
  22. package/dist/commands/retry-tool-command.js +20 -0
  23. package/dist/commands/retry-tool-command.js.map +1 -0
  24. package/dist/commands/rewind-command.d.ts +37 -0
  25. package/dist/commands/rewind-command.d.ts.map +1 -0
  26. package/dist/commands/rewind-command.js +97 -0
  27. package/dist/commands/rewind-command.js.map +1 -0
  28. package/dist/commands/sandbox-command.d.ts.map +1 -1
  29. package/dist/commands/sandbox-command.js +6 -1
  30. package/dist/commands/sandbox-command.js.map +1 -1
  31. package/dist/components/InputBox.d.ts +17 -32
  32. package/dist/components/InputBox.d.ts.map +1 -1
  33. package/dist/components/InputBox.js +182 -579
  34. package/dist/components/InputBox.js.map +1 -1
  35. package/dist/components/input/ApplicationInputSurface.d.ts +42 -0
  36. package/dist/components/input/ApplicationInputSurface.d.ts.map +1 -0
  37. package/dist/components/input/ApplicationInputSurface.js +82 -0
  38. package/dist/components/input/ApplicationInputSurface.js.map +1 -0
  39. package/dist/components/input/CopyMenuSession.d.ts +16 -0
  40. package/dist/components/input/CopyMenuSession.d.ts.map +1 -0
  41. package/dist/components/input/CopyMenuSession.js +49 -0
  42. package/dist/components/input/CopyMenuSession.js.map +1 -0
  43. package/dist/components/input/FirstRunSetupPrompt.d.ts +9 -0
  44. package/dist/components/input/FirstRunSetupPrompt.d.ts.map +1 -0
  45. package/dist/components/input/FirstRunSetupPrompt.js +20 -0
  46. package/dist/components/input/FirstRunSetupPrompt.js.map +1 -0
  47. package/dist/components/input/MenuStackHost.d.ts +12 -0
  48. package/dist/components/input/MenuStackHost.d.ts.map +1 -0
  49. package/dist/components/input/MenuStackHost.js +13 -0
  50. package/dist/components/input/MenuStackHost.js.map +1 -0
  51. package/dist/components/input/MenuSurface.d.ts +13 -0
  52. package/dist/components/input/MenuSurface.d.ts.map +1 -0
  53. package/dist/components/input/MenuSurface.js +87 -0
  54. package/dist/components/input/MenuSurface.js.map +1 -0
  55. package/dist/components/input/ModelMenuSession.d.ts +19 -0
  56. package/dist/components/input/ModelMenuSession.d.ts.map +1 -0
  57. package/dist/components/input/ModelMenuSession.js +154 -0
  58. package/dist/components/input/ModelMenuSession.js.map +1 -0
  59. package/dist/components/input/PathMenuSession.d.ts +16 -0
  60. package/dist/components/input/PathMenuSession.d.ts.map +1 -0
  61. package/dist/components/input/PathMenuSession.js +68 -0
  62. package/dist/components/input/PathMenuSession.js.map +1 -0
  63. package/dist/components/input/PendingQueueList.d.ts +20 -0
  64. package/dist/components/input/PendingQueueList.d.ts.map +1 -0
  65. package/dist/components/input/PendingQueueList.js +26 -0
  66. package/dist/components/input/PendingQueueList.js.map +1 -0
  67. package/dist/components/input/ProviderMenuSession.d.ts +16 -0
  68. package/dist/components/input/ProviderMenuSession.d.ts.map +1 -0
  69. package/dist/components/input/ProviderMenuSession.js +99 -0
  70. package/dist/components/input/ProviderMenuSession.js.map +1 -0
  71. package/dist/components/input/RewindMenuSession.d.ts +14 -0
  72. package/dist/components/input/RewindMenuSession.d.ts.map +1 -0
  73. package/dist/components/input/RewindMenuSession.js +77 -0
  74. package/dist/components/input/RewindMenuSession.js.map +1 -0
  75. package/dist/components/input/SettingsMenuSession.d.ts +17 -0
  76. package/dist/components/input/SettingsMenuSession.d.ts.map +1 -0
  77. package/dist/components/input/SettingsMenuSession.js +136 -0
  78. package/dist/components/input/SettingsMenuSession.js.map +1 -0
  79. package/dist/components/input/SettingsValueMenuSession.d.ts +19 -0
  80. package/dist/components/input/SettingsValueMenuSession.d.ts.map +1 -0
  81. package/dist/components/input/SettingsValueMenuSession.js +113 -0
  82. package/dist/components/input/SettingsValueMenuSession.js.map +1 -0
  83. package/dist/components/input/SkillsMenuSession.d.ts +19 -0
  84. package/dist/components/input/SkillsMenuSession.d.ts.map +1 -0
  85. package/dist/components/input/SkillsMenuSession.js +58 -0
  86. package/dist/components/input/SkillsMenuSession.js.map +1 -0
  87. package/dist/components/input/SlashMenuSession.d.ts +25 -0
  88. package/dist/components/input/SlashMenuSession.d.ts.map +1 -0
  89. package/dist/components/input/SlashMenuSession.js +69 -0
  90. package/dist/components/input/SlashMenuSession.js.map +1 -0
  91. package/dist/components/input/determine-active-menu.d.ts +2 -0
  92. package/dist/components/input/determine-active-menu.d.ts.map +1 -1
  93. package/dist/components/input/determine-active-menu.js +12 -4
  94. package/dist/components/input/determine-active-menu.js.map +1 -1
  95. package/dist/components/input/insertions.d.ts +0 -13
  96. package/dist/components/input/insertions.d.ts.map +1 -1
  97. package/dist/components/input/insertions.js +0 -26
  98. package/dist/components/input/insertions.js.map +1 -1
  99. package/dist/components/input/menu-controller.d.ts +52 -0
  100. package/dist/components/input/menu-controller.d.ts.map +1 -0
  101. package/dist/components/input/menu-controller.js +690 -0
  102. package/dist/components/input/menu-controller.js.map +1 -0
  103. package/dist/components/input/menu-editor.d.ts +9 -0
  104. package/dist/components/input/menu-editor.d.ts.map +1 -0
  105. package/dist/components/input/menu-editor.js +45 -0
  106. package/dist/components/input/menu-editor.js.map +1 -0
  107. package/dist/components/input/menu-registry.d.ts +20 -0
  108. package/dist/components/input/menu-registry.d.ts.map +1 -0
  109. package/dist/components/input/menu-registry.js +27 -0
  110. package/dist/components/input/menu-registry.js.map +1 -0
  111. package/dist/components/input/menu-types.d.ts +327 -0
  112. package/dist/components/input/menu-types.d.ts.map +1 -0
  113. package/dist/components/input/menu-types.js +2 -0
  114. package/dist/components/input/menu-types.js.map +1 -0
  115. package/dist/components/input/settings-intent-host.d.ts +22 -0
  116. package/dist/components/input/settings-intent-host.d.ts.map +1 -0
  117. package/dist/components/input/settings-intent-host.js +69 -0
  118. package/dist/components/input/settings-intent-host.js.map +1 -0
  119. package/dist/components/input/triggers.d.ts +3 -0
  120. package/dist/components/input/triggers.d.ts.map +1 -1
  121. package/dist/components/input/triggers.js +258 -0
  122. package/dist/components/input/triggers.js.map +1 -1
  123. package/dist/components/layout/BackgroundTaskManager.d.ts +16 -0
  124. package/dist/components/layout/BackgroundTaskManager.d.ts.map +1 -0
  125. package/dist/components/layout/BackgroundTaskManager.js +254 -0
  126. package/dist/components/layout/BackgroundTaskManager.js.map +1 -0
  127. package/dist/components/layout/BackgroundTasksPanel.d.ts +3 -2
  128. package/dist/components/layout/BackgroundTasksPanel.d.ts.map +1 -1
  129. package/dist/components/layout/BackgroundTasksPanel.js +80 -34
  130. package/dist/components/layout/BackgroundTasksPanel.js.map +1 -1
  131. package/dist/components/layout/Banner.js.map +1 -1
  132. package/dist/components/layout/BottomArea.d.ts +39 -21
  133. package/dist/components/layout/BottomArea.d.ts.map +1 -1
  134. package/dist/components/layout/BottomArea.js +77 -48
  135. package/dist/components/layout/BottomArea.js.map +1 -1
  136. package/dist/components/layout/StatusBar.d.ts +3 -1
  137. package/dist/components/layout/StatusBar.d.ts.map +1 -1
  138. package/dist/components/layout/StatusBar.js +100 -66
  139. package/dist/components/layout/StatusBar.js.map +1 -1
  140. package/dist/components/menu/CopyMenu.d.ts +9 -0
  141. package/dist/components/menu/CopyMenu.d.ts.map +1 -0
  142. package/dist/components/menu/CopyMenu.js +7 -0
  143. package/dist/components/menu/CopyMenu.js.map +1 -0
  144. package/dist/components/menu/ModelSelectionMenu.d.ts +1 -0
  145. package/dist/components/menu/ModelSelectionMenu.d.ts.map +1 -1
  146. package/dist/components/menu/ModelSelectionMenu.js +23 -6
  147. package/dist/components/menu/ModelSelectionMenu.js.map +1 -1
  148. package/dist/components/menu/ProviderSelectionMenu.d.ts +1 -0
  149. package/dist/components/menu/ProviderSelectionMenu.d.ts.map +1 -1
  150. package/dist/components/menu/ProviderSelectionMenu.js +12 -4
  151. package/dist/components/menu/ProviderSelectionMenu.js.map +1 -1
  152. package/dist/components/menu/RewindMenu.d.ts +18 -0
  153. package/dist/components/menu/RewindMenu.d.ts.map +1 -0
  154. package/dist/components/menu/RewindMenu.js +59 -0
  155. package/dist/components/menu/RewindMenu.js.map +1 -0
  156. package/dist/components/message/ChatMessage.d.ts +2 -1
  157. package/dist/components/message/ChatMessage.d.ts.map +1 -1
  158. package/dist/components/message/ChatMessage.js +1 -1
  159. package/dist/components/message/ChatMessage.js.map +1 -1
  160. package/dist/components/message/CommandMessage.d.ts.map +1 -1
  161. package/dist/components/message/CommandMessage.js +142 -17
  162. package/dist/components/message/CommandMessage.js.map +1 -1
  163. package/dist/components/message/MemoryRenderer.d.ts.map +1 -1
  164. package/dist/components/message/MemoryRenderer.js +16 -10
  165. package/dist/components/message/MemoryRenderer.js.map +1 -1
  166. package/dist/components/message/MessageList.d.ts +20 -3
  167. package/dist/components/message/MessageList.d.ts.map +1 -1
  168. package/dist/components/message/MessageList.js +1 -1
  169. package/dist/components/message/MessageList.js.map +1 -1
  170. package/dist/components/message/SubagentActivityMessage.d.ts +5 -1
  171. package/dist/components/message/SubagentActivityMessage.d.ts.map +1 -1
  172. package/dist/components/message/SubagentActivityMessage.js +12 -4
  173. package/dist/components/message/SubagentActivityMessage.js.map +1 -1
  174. package/dist/components/message/command-message-helpers.d.ts +37 -0
  175. package/dist/components/message/command-message-helpers.d.ts.map +1 -1
  176. package/dist/components/message/command-message-helpers.js +49 -8
  177. package/dist/components/message/command-message-helpers.js.map +1 -1
  178. package/dist/components/prompt/ApprovalPrompt.d.ts +1 -0
  179. package/dist/components/prompt/ApprovalPrompt.d.ts.map +1 -1
  180. package/dist/components/prompt/ApprovalPrompt.js +135 -83
  181. package/dist/components/prompt/ApprovalPrompt.js.map +1 -1
  182. package/dist/context/InputContext.d.ts +15 -8
  183. package/dist/context/InputContext.d.ts.map +1 -1
  184. package/dist/context/InputContext.js +94 -15
  185. package/dist/context/InputContext.js.map +1 -1
  186. package/dist/contracts/application-stream.d.ts +44 -0
  187. package/dist/contracts/application-stream.d.ts.map +1 -0
  188. package/dist/contracts/application-stream.js +2 -0
  189. package/dist/contracts/application-stream.js.map +1 -0
  190. package/dist/contracts/continuation-handle.d.ts +18 -0
  191. package/dist/contracts/continuation-handle.d.ts.map +1 -0
  192. package/dist/contracts/continuation-handle.js +22 -0
  193. package/dist/contracts/continuation-handle.js.map +1 -0
  194. package/dist/contracts/conversation-items.d.ts +47 -0
  195. package/dist/contracts/conversation-items.d.ts.map +1 -0
  196. package/dist/contracts/conversation-items.js +2 -0
  197. package/dist/contracts/conversation-items.js.map +1 -0
  198. package/dist/contracts/conversation.d.ts +44 -4
  199. package/dist/contracts/conversation.d.ts.map +1 -1
  200. package/dist/contracts/conversation.js +9 -0
  201. package/dist/contracts/conversation.js.map +1 -1
  202. package/dist/contracts/model-errors.d.ts +10 -0
  203. package/dist/contracts/model-errors.d.ts.map +1 -0
  204. package/dist/contracts/model-errors.js +15 -0
  205. package/dist/contracts/model-errors.js.map +1 -0
  206. package/dist/contracts/model-types.d.ts +16 -0
  207. package/dist/contracts/model-types.d.ts.map +1 -0
  208. package/dist/contracts/model-types.js +2 -0
  209. package/dist/contracts/model-types.js.map +1 -0
  210. package/dist/contracts/patch.d.ts +17 -0
  211. package/dist/contracts/patch.d.ts.map +1 -0
  212. package/dist/contracts/patch.js +2 -0
  213. package/dist/contracts/patch.js.map +1 -0
  214. package/dist/contracts/provider-input.d.ts +34 -0
  215. package/dist/contracts/provider-input.d.ts.map +1 -0
  216. package/dist/contracts/provider-input.js +2 -0
  217. package/dist/contracts/provider-input.js.map +1 -0
  218. package/dist/contracts/streamed-model-turn.d.ts +230 -0
  219. package/dist/contracts/streamed-model-turn.d.ts.map +1 -0
  220. package/dist/contracts/streamed-model-turn.js +2 -0
  221. package/dist/contracts/streamed-model-turn.js.map +1 -0
  222. package/dist/env-setup.js +1 -1
  223. package/dist/hooks/conversation-ui-reducer.d.ts +28 -4
  224. package/dist/hooks/conversation-ui-reducer.d.ts.map +1 -1
  225. package/dist/hooks/conversation-ui-reducer.js +46 -4
  226. package/dist/hooks/conversation-ui-reducer.js.map +1 -1
  227. package/dist/hooks/handoff-flow-reducer.d.ts +1 -36
  228. package/dist/hooks/handoff-flow-reducer.d.ts.map +1 -1
  229. package/dist/hooks/handoff-flow-reducer.js +3 -57
  230. package/dist/hooks/handoff-flow-reducer.js.map +1 -1
  231. package/dist/hooks/settings-completion-config.d.ts +1 -0
  232. package/dist/hooks/settings-completion-config.d.ts.map +1 -1
  233. package/dist/hooks/settings-completion-config.js +32 -6
  234. package/dist/hooks/settings-completion-config.js.map +1 -1
  235. package/dist/hooks/use-app-commands.d.ts +15 -11
  236. package/dist/hooks/use-app-commands.d.ts.map +1 -1
  237. package/dist/hooks/use-app-commands.js +91 -63
  238. package/dist/hooks/use-app-commands.js.map +1 -1
  239. package/dist/hooks/use-app-keyboard-shortcuts.d.ts +24 -1
  240. package/dist/hooks/use-app-keyboard-shortcuts.d.ts.map +1 -1
  241. package/dist/hooks/use-app-keyboard-shortcuts.js +145 -6
  242. package/dist/hooks/use-app-keyboard-shortcuts.js.map +1 -1
  243. package/dist/hooks/use-conversation.d.ts +34 -13
  244. package/dist/hooks/use-conversation.d.ts.map +1 -1
  245. package/dist/hooks/use-conversation.js +96 -20
  246. package/dist/hooks/use-conversation.js.map +1 -1
  247. package/dist/hooks/use-debounced-value.d.ts +13 -0
  248. package/dist/hooks/use-debounced-value.d.ts.map +1 -0
  249. package/dist/hooks/use-debounced-value.js +27 -0
  250. package/dist/hooks/use-debounced-value.js.map +1 -0
  251. package/dist/hooks/use-escape-key.d.ts +4 -32
  252. package/dist/hooks/use-escape-key.d.ts.map +1 -1
  253. package/dist/hooks/use-escape-key.js +27 -68
  254. package/dist/hooks/use-escape-key.js.map +1 -1
  255. package/dist/hooks/use-first-run-setup.d.ts +24 -0
  256. package/dist/hooks/use-first-run-setup.d.ts.map +1 -0
  257. package/dist/hooks/use-first-run-setup.js +114 -0
  258. package/dist/hooks/use-first-run-setup.js.map +1 -0
  259. package/dist/hooks/use-handoff-flow.d.ts +6 -6
  260. package/dist/hooks/use-handoff-flow.d.ts.map +1 -1
  261. package/dist/hooks/use-handoff-flow.js +110 -118
  262. package/dist/hooks/use-handoff-flow.js.map +1 -1
  263. package/dist/hooks/use-model-selection.d.ts +1 -0
  264. package/dist/hooks/use-model-selection.d.ts.map +1 -1
  265. package/dist/hooks/use-model-selection.js +93 -59
  266. package/dist/hooks/use-model-selection.js.map +1 -1
  267. package/dist/hooks/use-path-completion.d.ts.map +1 -1
  268. package/dist/hooks/use-path-completion.js +20 -11
  269. package/dist/hooks/use-path-completion.js.map +1 -1
  270. package/dist/hooks/use-provider-selection.d.ts +5 -1
  271. package/dist/hooks/use-provider-selection.d.ts.map +1 -1
  272. package/dist/hooks/use-provider-selection.js +55 -27
  273. package/dist/hooks/use-provider-selection.js.map +1 -1
  274. package/dist/hooks/use-rewind-selection.d.ts +30 -0
  275. package/dist/hooks/use-rewind-selection.d.ts.map +1 -0
  276. package/dist/hooks/{use-undo-selection.js → use-rewind-selection.js} +37 -28
  277. package/dist/hooks/use-rewind-selection.js.map +1 -0
  278. package/dist/hooks/use-runtime-settings.d.ts.map +1 -1
  279. package/dist/hooks/use-runtime-settings.js +4 -3
  280. package/dist/hooks/use-runtime-settings.js.map +1 -1
  281. package/dist/hooks/use-selection.d.ts +1 -0
  282. package/dist/hooks/use-selection.d.ts.map +1 -1
  283. package/dist/hooks/use-selection.js +1 -1
  284. package/dist/hooks/use-selection.js.map +1 -1
  285. package/dist/hooks/use-setting.d.ts +3 -2
  286. package/dist/hooks/use-setting.d.ts.map +1 -1
  287. package/dist/hooks/use-setting.js +1 -1
  288. package/dist/hooks/use-setting.js.map +1 -1
  289. package/dist/hooks/use-settings-completion.d.ts +1 -0
  290. package/dist/hooks/use-settings-completion.d.ts.map +1 -1
  291. package/dist/hooks/use-settings-completion.js +22 -15
  292. package/dist/hooks/use-settings-completion.js.map +1 -1
  293. package/dist/hooks/use-settings-value-completion.d.ts.map +1 -1
  294. package/dist/hooks/use-settings-value-completion.js +40 -28
  295. package/dist/hooks/use-settings-value-completion.js.map +1 -1
  296. package/dist/hooks/use-shell-mode.d.ts +3 -13
  297. package/dist/hooks/use-shell-mode.d.ts.map +1 -1
  298. package/dist/hooks/use-shell-mode.js +14 -53
  299. package/dist/hooks/use-shell-mode.js.map +1 -1
  300. package/dist/hooks/use-skill-selection.d.ts.map +1 -1
  301. package/dist/hooks/use-skill-selection.js +17 -11
  302. package/dist/hooks/use-skill-selection.js.map +1 -1
  303. package/dist/hooks/use-slash-commands.d.ts +0 -1
  304. package/dist/hooks/use-slash-commands.d.ts.map +1 -1
  305. package/dist/hooks/use-slash-commands.js +11 -18
  306. package/dist/hooks/use-slash-commands.js.map +1 -1
  307. package/dist/hooks/use-terminal-focus-notifier.js.map +1 -1
  308. package/dist/lib/agent-chat-service.d.ts +12 -8
  309. package/dist/lib/agent-chat-service.d.ts.map +1 -1
  310. package/dist/lib/agent-chat-service.js +88 -49
  311. package/dist/lib/agent-chat-service.js.map +1 -1
  312. package/dist/lib/agent-client.d.ts +98 -17
  313. package/dist/lib/agent-client.d.ts.map +1 -1
  314. package/dist/lib/agent-client.js +427 -37
  315. package/dist/lib/agent-client.js.map +1 -1
  316. package/dist/lib/agent-configuration.d.ts +36 -15
  317. package/dist/lib/agent-configuration.d.ts.map +1 -1
  318. package/dist/lib/agent-configuration.js +107 -9
  319. package/dist/lib/agent-configuration.js.map +1 -1
  320. package/dist/lib/agent-factory.d.ts +25 -4
  321. package/dist/lib/agent-factory.d.ts.map +1 -1
  322. package/dist/lib/agent-factory.js +143 -106
  323. package/dist/lib/agent-factory.js.map +1 -1
  324. package/dist/lib/chained-input-filter.d.ts +7 -1
  325. package/dist/lib/chained-input-filter.d.ts.map +1 -1
  326. package/dist/lib/chained-input-filter.js +46 -62
  327. package/dist/lib/chained-input-filter.js.map +1 -1
  328. package/dist/lib/continuation-projection-mode.d.ts +3 -0
  329. package/dist/lib/continuation-projection-mode.d.ts.map +1 -0
  330. package/dist/lib/continuation-projection-mode.js +2 -0
  331. package/dist/lib/continuation-projection-mode.js.map +1 -0
  332. package/dist/lib/editor-impl.d.ts +1 -1
  333. package/dist/lib/editor-impl.d.ts.map +1 -1
  334. package/dist/lib/editor-impl.js +1 -1
  335. package/dist/lib/editor-impl.js.map +1 -1
  336. package/dist/lib/harness-invariant-error.d.ts +22 -0
  337. package/dist/lib/harness-invariant-error.d.ts.map +1 -0
  338. package/dist/lib/harness-invariant-error.js +30 -0
  339. package/dist/lib/harness-invariant-error.js.map +1 -0
  340. package/dist/lib/input-owner.d.ts +67 -0
  341. package/dist/lib/input-owner.d.ts.map +1 -0
  342. package/dist/lib/input-owner.js +39 -0
  343. package/dist/lib/input-owner.js.map +1 -0
  344. package/dist/lib/openai-strict-tool-schema.d.ts +7 -4
  345. package/dist/lib/openai-strict-tool-schema.d.ts.map +1 -1
  346. package/dist/lib/openai-strict-tool-schema.js +8 -0
  347. package/dist/lib/openai-strict-tool-schema.js.map +1 -1
  348. package/dist/lib/subagent-bridge.d.ts +38 -4
  349. package/dist/lib/subagent-bridge.d.ts.map +1 -1
  350. package/dist/lib/subagent-bridge.js +96 -21
  351. package/dist/lib/subagent-bridge.js.map +1 -1
  352. package/dist/lib/tool-invoke.d.ts +18 -10
  353. package/dist/lib/tool-invoke.d.ts.map +1 -1
  354. package/dist/lib/tool-invoke.js +92 -44
  355. package/dist/lib/tool-invoke.js.map +1 -1
  356. package/dist/non-interactive.d.ts +14 -4
  357. package/dist/non-interactive.d.ts.map +1 -1
  358. package/dist/non-interactive.js +91 -84
  359. package/dist/non-interactive.js.map +1 -1
  360. package/dist/prompts/async-subagent-delegation.d.ts +1 -4
  361. package/dist/prompts/async-subagent-delegation.d.ts.map +1 -1
  362. package/dist/prompts/async-subagent-delegation.js +9 -47
  363. package/dist/prompts/async-subagent-delegation.js.map +1 -1
  364. package/dist/prompts/async-subagent-delegation.ts +9 -58
  365. package/dist/prompts/background-shell.d.ts +3 -0
  366. package/dist/prompts/background-shell.d.ts.map +1 -0
  367. package/dist/prompts/background-shell.js +11 -0
  368. package/dist/prompts/background-shell.js.map +1 -0
  369. package/dist/prompts/background-shell.ts +10 -0
  370. package/dist/prompts/memory.md +1 -1
  371. package/dist/prompts/orchestrator-prompt.test.ts +22 -0
  372. package/dist/prompts/orchestrator.md +7 -5
  373. package/dist/prompts/plan-mode-info.md +1 -1
  374. package/dist/prompts/prompt-constructor.d.ts +2 -0
  375. package/dist/prompts/prompt-constructor.d.ts.map +1 -1
  376. package/dist/prompts/prompt-constructor.js +9 -7
  377. package/dist/prompts/prompt-constructor.js.map +1 -1
  378. package/dist/prompts/prompt-constructor.test.ts +25 -9
  379. package/dist/prompts/prompt-constructor.ts +13 -7
  380. package/dist/prompts/shell-auto-approval.d.ts +2 -2
  381. package/dist/prompts/shell-auto-approval.d.ts.map +1 -1
  382. package/dist/prompts/shell-auto-approval.js +20 -5
  383. package/dist/prompts/shell-auto-approval.js.map +1 -1
  384. package/dist/prompts/shell-auto-approval.ts +20 -5
  385. package/dist/prompts/steering-notice.d.ts +16 -0
  386. package/dist/prompts/steering-notice.d.ts.map +1 -0
  387. package/dist/prompts/steering-notice.js +24 -0
  388. package/dist/prompts/steering-notice.js.map +1 -0
  389. package/dist/prompts/steering-notice.ts +24 -0
  390. package/dist/prompts/subagent-delegation.d.ts +6 -5
  391. package/dist/prompts/subagent-delegation.d.ts.map +1 -1
  392. package/dist/prompts/subagent-delegation.js +36 -13
  393. package/dist/prompts/subagent-delegation.js.map +1 -1
  394. package/dist/prompts/subagent-delegation.test.ts +9 -2
  395. package/dist/prompts/subagent-delegation.ts +54 -14
  396. package/dist/prompts/subagents/explorer.md +24 -14
  397. package/dist/prompts/subagents/worker-prompt.test.ts +2 -2
  398. package/dist/prompts/subagents/worker.md +1 -1
  399. package/dist/prompts/worktree-hygiene.md +1 -0
  400. package/dist/providers/ai-sdk-anthropic.provider.d.ts +3 -3
  401. package/dist/providers/ai-sdk-anthropic.provider.d.ts.map +1 -1
  402. package/dist/providers/ai-sdk-anthropic.provider.js +8 -4
  403. package/dist/providers/ai-sdk-anthropic.provider.js.map +1 -1
  404. package/dist/providers/ai-sdk-google.provider.d.ts +5 -4
  405. package/dist/providers/ai-sdk-google.provider.d.ts.map +1 -1
  406. package/dist/providers/ai-sdk-google.provider.js +23 -3
  407. package/dist/providers/ai-sdk-google.provider.js.map +1 -1
  408. package/dist/providers/ai-sdk-message-normalizer.d.ts +3 -7
  409. package/dist/providers/ai-sdk-message-normalizer.d.ts.map +1 -1
  410. package/dist/providers/ai-sdk-message-normalizer.js +27 -11
  411. package/dist/providers/ai-sdk-message-normalizer.js.map +1 -1
  412. package/dist/providers/ai-sdk-openrouter.provider.d.ts +5 -4
  413. package/dist/providers/ai-sdk-openrouter.provider.d.ts.map +1 -1
  414. package/dist/providers/ai-sdk-openrouter.provider.js +25 -3
  415. package/dist/providers/ai-sdk-openrouter.provider.js.map +1 -1
  416. package/dist/providers/ai-sdk-provider-settings.d.ts +10 -0
  417. package/dist/providers/ai-sdk-provider-settings.d.ts.map +1 -0
  418. package/dist/providers/ai-sdk-provider-settings.js +37 -0
  419. package/dist/providers/ai-sdk-provider-settings.js.map +1 -0
  420. package/dist/providers/ai-sdk-streamed-model.d.ts +5 -0
  421. package/dist/providers/ai-sdk-streamed-model.d.ts.map +1 -0
  422. package/dist/providers/ai-sdk-streamed-model.js +338 -0
  423. package/dist/providers/ai-sdk-streamed-model.js.map +1 -0
  424. package/dist/providers/codex-auth.d.ts +6 -0
  425. package/dist/providers/codex-auth.d.ts.map +1 -0
  426. package/dist/providers/codex-auth.js +35 -0
  427. package/dist/providers/codex-auth.js.map +1 -0
  428. package/dist/providers/codex-responses-model.d.ts +39 -12
  429. package/dist/providers/codex-responses-model.d.ts.map +1 -1
  430. package/dist/providers/codex-responses-model.js +669 -159
  431. package/dist/providers/codex-responses-model.js.map +1 -1
  432. package/dist/providers/codex-turn-converter.d.ts +12 -0
  433. package/dist/providers/codex-turn-converter.d.ts.map +1 -0
  434. package/dist/providers/codex-turn-converter.js +168 -0
  435. package/dist/providers/codex-turn-converter.js.map +1 -0
  436. package/dist/providers/codex.provider.d.ts +23 -1
  437. package/dist/providers/codex.provider.d.ts.map +1 -1
  438. package/dist/providers/codex.provider.js +60 -55
  439. package/dist/providers/codex.provider.js.map +1 -1
  440. package/dist/providers/common/openai-compatible-message-contract.d.ts +8 -0
  441. package/dist/providers/common/openai-compatible-message-contract.d.ts.map +1 -0
  442. package/dist/providers/common/openai-compatible-message-contract.js +23 -0
  443. package/dist/providers/common/openai-compatible-message-contract.js.map +1 -0
  444. package/dist/providers/common/openai-compatible-messages.d.ts +0 -4
  445. package/dist/providers/common/openai-compatible-messages.d.ts.map +1 -1
  446. package/dist/providers/common/openai-compatible-messages.js +0 -288
  447. package/dist/providers/common/openai-compatible-messages.js.map +1 -1
  448. package/dist/providers/fetch/composer.d.ts.map +1 -1
  449. package/dist/providers/fetch/composer.js +1 -0
  450. package/dist/providers/fetch/composer.js.map +1 -1
  451. package/dist/providers/model-catalog/catalog.d.ts +64 -0
  452. package/dist/providers/model-catalog/catalog.d.ts.map +1 -0
  453. package/dist/providers/model-catalog/catalog.generated.d.ts +3010 -0
  454. package/dist/providers/model-catalog/catalog.generated.d.ts.map +1 -0
  455. package/dist/providers/model-catalog/catalog.generated.js +3004 -0
  456. package/dist/providers/model-catalog/catalog.generated.js.map +1 -0
  457. package/dist/providers/model-catalog/catalog.js +126 -0
  458. package/dist/providers/model-catalog/catalog.js.map +1 -0
  459. package/dist/providers/model-catalog/generate-catalog.d.ts +42 -0
  460. package/dist/providers/model-catalog/generate-catalog.d.ts.map +1 -0
  461. package/dist/providers/model-catalog/generate-catalog.js +96 -0
  462. package/dist/providers/model-catalog/generate-catalog.js.map +1 -0
  463. package/dist/providers/openai-chained-input-compatibility.d.ts +36 -0
  464. package/dist/providers/openai-chained-input-compatibility.d.ts.map +1 -0
  465. package/dist/providers/openai-chained-input-compatibility.js +60 -0
  466. package/dist/providers/openai-chained-input-compatibility.js.map +1 -0
  467. package/dist/providers/openai-chat-completions-model.d.ts +13 -0
  468. package/dist/providers/openai-chat-completions-model.d.ts.map +1 -0
  469. package/dist/providers/openai-chat-completions-model.js +441 -0
  470. package/dist/providers/openai-chat-completions-model.js.map +1 -0
  471. package/dist/providers/openai-compatible-lazy.d.ts +1 -1
  472. package/dist/providers/openai-compatible-lazy.d.ts.map +1 -1
  473. package/dist/providers/openai-compatible-lazy.js +25 -36
  474. package/dist/providers/openai-compatible-lazy.js.map +1 -1
  475. package/dist/providers/openai-compatible-middleware.d.ts +4 -1
  476. package/dist/providers/openai-compatible-middleware.d.ts.map +1 -1
  477. package/dist/providers/openai-compatible-middleware.js +16 -27
  478. package/dist/providers/openai-compatible-middleware.js.map +1 -1
  479. package/dist/providers/openai-compatible-response-normalizer.d.ts +12 -2
  480. package/dist/providers/openai-compatible-response-normalizer.d.ts.map +1 -1
  481. package/dist/providers/openai-compatible-response-normalizer.js +18 -18
  482. package/dist/providers/openai-compatible-response-normalizer.js.map +1 -1
  483. package/dist/providers/openai-compatible.provider.d.ts +8 -10
  484. package/dist/providers/openai-compatible.provider.d.ts.map +1 -1
  485. package/dist/providers/openai-compatible.provider.js +89 -78
  486. package/dist/providers/openai-compatible.provider.js.map +1 -1
  487. package/dist/providers/openai-request-prefix-binding.d.ts +28 -0
  488. package/dist/providers/openai-request-prefix-binding.d.ts.map +1 -0
  489. package/dist/providers/openai-request-prefix-binding.js +78 -0
  490. package/dist/providers/openai-request-prefix-binding.js.map +1 -0
  491. package/dist/providers/openai-responses-model.d.ts +43 -0
  492. package/dist/providers/openai-responses-model.d.ts.map +1 -0
  493. package/dist/providers/openai-responses-model.js +564 -0
  494. package/dist/providers/openai-responses-model.js.map +1 -0
  495. package/dist/providers/openai.provider.d.ts +11 -8
  496. package/dist/providers/openai.provider.d.ts.map +1 -1
  497. package/dist/providers/openai.provider.js +43 -91
  498. package/dist/providers/openai.provider.js.map +1 -1
  499. package/dist/providers/opencode-routing.d.ts +1 -1
  500. package/dist/providers/opencode-routing.d.ts.map +1 -1
  501. package/dist/providers/opencode-routing.js +4 -2
  502. package/dist/providers/opencode-routing.js.map +1 -1
  503. package/dist/providers/opencode-session.d.ts.map +1 -1
  504. package/dist/providers/opencode-session.js +28 -3
  505. package/dist/providers/opencode-session.js.map +1 -1
  506. package/dist/providers/openrouter.provider.d.ts.map +1 -1
  507. package/dist/providers/openrouter.provider.js +33 -33
  508. package/dist/providers/openrouter.provider.js.map +1 -1
  509. package/dist/providers/provider-request-capture.d.ts +35 -0
  510. package/dist/providers/provider-request-capture.d.ts.map +1 -0
  511. package/dist/providers/provider-request-capture.js +22 -0
  512. package/dist/providers/provider-request-capture.js.map +1 -0
  513. package/dist/providers/provider-service.d.ts +10 -7
  514. package/dist/providers/provider-service.d.ts.map +1 -1
  515. package/dist/providers/provider-service.js +33 -28
  516. package/dist/providers/provider-service.js.map +1 -1
  517. package/dist/providers/registry.d.ts +14 -9
  518. package/dist/providers/registry.d.ts.map +1 -1
  519. package/dist/providers/registry.js.map +1 -1
  520. package/dist/providers/retrying-model.d.ts +8 -6
  521. package/dist/providers/retrying-model.d.ts.map +1 -1
  522. package/dist/providers/retrying-model.js +7 -20
  523. package/dist/providers/retrying-model.js.map +1 -1
  524. package/dist/providers/web-search/exa.provider.js.map +1 -1
  525. package/dist/providers/web-search/registry.js.map +1 -1
  526. package/dist/providers/web-search/tavily.provider.js.map +1 -1
  527. package/dist/providers/websocket-receive-watchdog.d.ts.map +1 -1
  528. package/dist/providers/websocket-receive-watchdog.js +9 -1
  529. package/dist/providers/websocket-receive-watchdog.js.map +1 -1
  530. package/dist/scripts/eval-auto-approval/runner.js +2 -0
  531. package/dist/scripts/eval-auto-approval/runner.js.map +1 -1
  532. package/dist/services/agent-runtime/application-run-loop.d.ts +205 -0
  533. package/dist/services/agent-runtime/application-run-loop.d.ts.map +1 -0
  534. package/dist/services/agent-runtime/application-run-loop.js +1258 -0
  535. package/dist/services/agent-runtime/application-run-loop.js.map +1 -0
  536. package/dist/services/agent-runtime/compose-agent-runtime.d.ts +3 -0
  537. package/dist/services/agent-runtime/compose-agent-runtime.d.ts.map +1 -1
  538. package/dist/services/agent-runtime/compose-agent-runtime.js +4 -0
  539. package/dist/services/agent-runtime/compose-agent-runtime.js.map +1 -1
  540. package/dist/services/agent-runtime/generation-guard.d.ts +69 -0
  541. package/dist/services/agent-runtime/generation-guard.d.ts.map +1 -0
  542. package/dist/services/agent-runtime/generation-guard.js +270 -0
  543. package/dist/services/agent-runtime/generation-guard.js.map +1 -0
  544. package/dist/services/agent-runtime/model-resolver.d.ts.map +1 -1
  545. package/dist/services/agent-runtime/model-resolver.js +7 -6
  546. package/dist/services/agent-runtime/model-resolver.js.map +1 -1
  547. package/dist/services/agent-runtime/scope-resolver.d.ts.map +1 -1
  548. package/dist/services/agent-runtime/scope-resolver.js +2 -1
  549. package/dist/services/agent-runtime/scope-resolver.js.map +1 -1
  550. package/dist/services/agent-runtime/structured-output.d.ts.map +1 -1
  551. package/dist/services/agent-runtime/structured-output.js +1 -21
  552. package/dist/services/agent-runtime/structured-output.js.map +1 -1
  553. package/dist/services/agent-runtime/tool-invocation-context.d.ts +73 -0
  554. package/dist/services/agent-runtime/tool-invocation-context.d.ts.map +1 -0
  555. package/dist/services/agent-runtime/tool-invocation-context.js +66 -0
  556. package/dist/services/agent-runtime/tool-invocation-context.js.map +1 -0
  557. package/dist/services/agent-stream.d.ts +41 -2
  558. package/dist/services/agent-stream.d.ts.map +1 -1
  559. package/dist/services/agent-stream.js +47 -1
  560. package/dist/services/agent-stream.js.map +1 -1
  561. package/dist/services/approval/approval-decision-executor.d.ts +42 -0
  562. package/dist/services/approval/approval-decision-executor.d.ts.map +1 -0
  563. package/dist/services/approval/approval-decision-executor.js +210 -0
  564. package/dist/services/approval/approval-decision-executor.js.map +1 -0
  565. package/dist/services/approval/approval-decision-policy.d.ts.map +1 -1
  566. package/dist/services/approval/approval-decision-policy.js +0 -2
  567. package/dist/services/approval/approval-decision-policy.js.map +1 -1
  568. package/dist/services/approval/approval-flow-coordinator.d.ts +25 -8
  569. package/dist/services/approval/approval-flow-coordinator.d.ts.map +1 -1
  570. package/dist/services/approval/approval-flow-coordinator.js +34 -167
  571. package/dist/services/approval/approval-flow-coordinator.js.map +1 -1
  572. package/dist/services/approval/approval-replay.d.ts +52 -0
  573. package/dist/services/approval/approval-replay.d.ts.map +1 -0
  574. package/dist/services/approval/approval-replay.js +68 -0
  575. package/dist/services/approval/approval-replay.js.map +1 -0
  576. package/dist/services/approval/approval-state.d.ts +3 -6
  577. package/dist/services/approval/approval-state.d.ts.map +1 -1
  578. package/dist/services/approval/approval-state.js +0 -10
  579. package/dist/services/approval/approval-state.js.map +1 -1
  580. package/dist/services/approval/background-subagent-approval-controller.d.ts +25 -0
  581. package/dist/services/approval/background-subagent-approval-controller.d.ts.map +1 -0
  582. package/dist/services/approval/background-subagent-approval-controller.js +65 -0
  583. package/dist/services/approval/background-subagent-approval-controller.js.map +1 -0
  584. package/dist/services/approval/background-subagent-approval-queue.d.ts +137 -0
  585. package/dist/services/approval/background-subagent-approval-queue.d.ts.map +1 -0
  586. package/dist/services/approval/background-subagent-approval-queue.js +200 -0
  587. package/dist/services/approval/background-subagent-approval-queue.js.map +1 -0
  588. package/dist/services/approval/non-interactive-approval-policy.d.ts +33 -0
  589. package/dist/services/approval/non-interactive-approval-policy.d.ts.map +1 -0
  590. package/dist/services/approval/non-interactive-approval-policy.js +85 -0
  591. package/dist/services/approval/non-interactive-approval-policy.js.map +1 -0
  592. package/dist/services/approval/session-read-access.d.ts +10 -0
  593. package/dist/services/approval/session-read-access.d.ts.map +1 -1
  594. package/dist/services/approval/session-read-access.js +14 -1
  595. package/dist/services/approval/session-read-access.js.map +1 -1
  596. package/dist/services/approval/session-read-grant-target.d.ts +7 -0
  597. package/dist/services/approval/session-read-grant-target.d.ts.map +1 -0
  598. package/dist/services/approval/session-read-grant-target.js +36 -0
  599. package/dist/services/approval/session-read-grant-target.js.map +1 -0
  600. package/dist/services/approval/shell-auto-approval-evaluator.d.ts +11 -3
  601. package/dist/services/approval/shell-auto-approval-evaluator.d.ts.map +1 -1
  602. package/dist/services/approval/shell-auto-approval-evaluator.js +140 -46
  603. package/dist/services/approval/shell-auto-approval-evaluator.js.map +1 -1
  604. package/dist/services/approval/shell-auto-approval-resolver.d.ts +14 -1
  605. package/dist/services/approval/shell-auto-approval-resolver.d.ts.map +1 -1
  606. package/dist/services/approval/shell-auto-approval-resolver.js +83 -7
  607. package/dist/services/approval/shell-auto-approval-resolver.js.map +1 -1
  608. package/dist/services/approval/shell-sandbox-approval.d.ts +22 -1
  609. package/dist/services/approval/shell-sandbox-approval.d.ts.map +1 -1
  610. package/dist/services/approval/shell-sandbox-approval.js +31 -4
  611. package/dist/services/approval/shell-sandbox-approval.js.map +1 -1
  612. package/dist/services/approval/tool-approval-batch-coordinator.d.ts +9 -0
  613. package/dist/services/approval/tool-approval-batch-coordinator.d.ts.map +1 -1
  614. package/dist/services/approval/tool-approval-batch-coordinator.js +22 -5
  615. package/dist/services/approval/tool-approval-batch-coordinator.js.map +1 -1
  616. package/dist/services/approval/tool-owner.d.ts +5 -2
  617. package/dist/services/approval/tool-owner.d.ts.map +1 -1
  618. package/dist/services/approval/tool-owner.js +0 -56
  619. package/dist/services/approval/tool-owner.js.map +1 -1
  620. package/dist/services/approval/tool-ownership-registry.d.ts +25 -0
  621. package/dist/services/approval/tool-ownership-registry.d.ts.map +1 -0
  622. package/dist/services/approval/tool-ownership-registry.js +63 -0
  623. package/dist/services/approval/tool-ownership-registry.js.map +1 -0
  624. package/dist/services/command-message-streaming.d.ts +8 -4
  625. package/dist/services/command-message-streaming.d.ts.map +1 -1
  626. package/dist/services/command-message-streaming.js +13 -52
  627. package/dist/services/command-message-streaming.js.map +1 -1
  628. package/dist/services/conversation/conversation-adapter-factory.d.ts.map +1 -1
  629. package/dist/services/conversation/conversation-adapter-factory.js +1 -0
  630. package/dist/services/conversation/conversation-adapter-factory.js.map +1 -1
  631. package/dist/services/conversation/conversation-adapter.d.ts +112 -13
  632. package/dist/services/conversation/conversation-adapter.d.ts.map +1 -1
  633. package/dist/services/conversation/conversation-adapter.js +270 -47
  634. package/dist/services/conversation/conversation-adapter.js.map +1 -1
  635. package/dist/services/conversation/conversation-admission-workflow.d.ts +69 -0
  636. package/dist/services/conversation/conversation-admission-workflow.d.ts.map +1 -0
  637. package/dist/services/conversation/conversation-admission-workflow.js +112 -0
  638. package/dist/services/conversation/conversation-admission-workflow.js.map +1 -0
  639. package/dist/services/conversation/conversation-decoder.d.ts +14 -0
  640. package/dist/services/conversation/conversation-decoder.d.ts.map +1 -0
  641. package/dist/services/conversation/conversation-decoder.js +155 -0
  642. package/dist/services/conversation/conversation-decoder.js.map +1 -0
  643. package/dist/services/conversation/conversation-events.d.ts +80 -26
  644. package/dist/services/conversation/conversation-events.d.ts.map +1 -1
  645. package/dist/services/conversation/conversation-history-repair.d.ts.map +1 -1
  646. package/dist/services/conversation/conversation-history-repair.js +34 -37
  647. package/dist/services/conversation/conversation-history-repair.js.map +1 -1
  648. package/dist/services/conversation/conversation-message-projection.d.ts +27 -0
  649. package/dist/services/conversation/conversation-message-projection.d.ts.map +1 -0
  650. package/dist/services/conversation/conversation-message-projection.js +59 -0
  651. package/dist/services/conversation/conversation-message-projection.js.map +1 -0
  652. package/dist/services/conversation/conversation-orchestrator.d.ts +25 -14
  653. package/dist/services/conversation/conversation-orchestrator.d.ts.map +1 -1
  654. package/dist/services/conversation/conversation-orchestrator.js +471 -160
  655. package/dist/services/conversation/conversation-orchestrator.js.map +1 -1
  656. package/dist/services/conversation/conversation-orchestrator.types.d.ts +16 -11
  657. package/dist/services/conversation/conversation-orchestrator.types.d.ts.map +1 -1
  658. package/dist/services/conversation/conversation-persistence-types.d.ts +15 -38
  659. package/dist/services/conversation/conversation-persistence-types.d.ts.map +1 -1
  660. package/dist/services/conversation/conversation-persistence.d.ts +3 -10
  661. package/dist/services/conversation/conversation-persistence.d.ts.map +1 -1
  662. package/dist/services/conversation/conversation-persistence.js +66 -15
  663. package/dist/services/conversation/conversation-persistence.js.map +1 -1
  664. package/dist/services/conversation/conversation-replay.d.ts +7 -5
  665. package/dist/services/conversation/conversation-replay.d.ts.map +1 -1
  666. package/dist/services/conversation/conversation-replay.js +172 -66
  667. package/dist/services/conversation/conversation-replay.js.map +1 -1
  668. package/dist/services/conversation/conversation-result-builder.d.ts +16 -2
  669. package/dist/services/conversation/conversation-result-builder.d.ts.map +1 -1
  670. package/dist/services/conversation/conversation-result-builder.js +63 -15
  671. package/dist/services/conversation/conversation-result-builder.js.map +1 -1
  672. package/dist/services/conversation/conversation-runtime-factory.d.ts +18 -0
  673. package/dist/services/conversation/conversation-runtime-factory.d.ts.map +1 -1
  674. package/dist/services/conversation/conversation-runtime-factory.js.map +1 -1
  675. package/dist/services/conversation/conversation-service.d.ts +65 -12
  676. package/dist/services/conversation/conversation-service.d.ts.map +1 -1
  677. package/dist/services/conversation/conversation-service.js +129 -16
  678. package/dist/services/conversation/conversation-service.js.map +1 -1
  679. package/dist/services/conversation/conversation-state-projector.d.ts +3 -3
  680. package/dist/services/conversation/conversation-state-projector.d.ts.map +1 -1
  681. package/dist/services/conversation/conversation-state-projector.js +18 -0
  682. package/dist/services/conversation/conversation-state-projector.js.map +1 -1
  683. package/dist/services/conversation/conversation-store.d.ts +78 -12
  684. package/dist/services/conversation/conversation-store.d.ts.map +1 -1
  685. package/dist/services/conversation/conversation-store.js +228 -119
  686. package/dist/services/conversation/conversation-store.js.map +1 -1
  687. package/dist/services/conversation/conversation-turn-items.d.ts +8 -2
  688. package/dist/services/conversation/conversation-turn-items.d.ts.map +1 -1
  689. package/dist/services/conversation/conversation-turn-items.js +96 -275
  690. package/dist/services/conversation/conversation-turn-items.js.map +1 -1
  691. package/dist/services/conversation/journal-to-ledger.d.ts.map +1 -1
  692. package/dist/services/conversation/journal-to-ledger.js +4 -24
  693. package/dist/services/conversation/journal-to-ledger.js.map +1 -1
  694. package/dist/services/conversation/run-item-normalizer.d.ts +5 -0
  695. package/dist/services/conversation/run-item-normalizer.d.ts.map +1 -0
  696. package/dist/services/conversation/run-item-normalizer.js +245 -0
  697. package/dist/services/conversation/run-item-normalizer.js.map +1 -0
  698. package/dist/services/conversation/user-turn-item.d.ts +14 -0
  699. package/dist/services/conversation/user-turn-item.d.ts.map +1 -0
  700. package/dist/services/conversation/user-turn-item.js +27 -0
  701. package/dist/services/conversation/user-turn-item.js.map +1 -0
  702. package/dist/services/conversation-agent-client.d.ts +77 -6
  703. package/dist/services/conversation-agent-client.d.ts.map +1 -1
  704. package/dist/services/cost/model-cost.d.ts +158 -0
  705. package/dist/services/cost/model-cost.d.ts.map +1 -0
  706. package/dist/services/cost/model-cost.js +218 -0
  707. package/dist/services/cost/model-cost.js.map +1 -0
  708. package/dist/services/cost/pricing-overlay.d.ts +26 -0
  709. package/dist/services/cost/pricing-overlay.d.ts.map +1 -0
  710. package/dist/services/cost/pricing-overlay.js +39 -0
  711. package/dist/services/cost/pricing-overlay.js.map +1 -0
  712. package/dist/services/cost/pricing.d.ts +13 -0
  713. package/dist/services/cost/pricing.d.ts.map +1 -0
  714. package/dist/services/cost/pricing.js +82 -0
  715. package/dist/services/cost/pricing.js.map +1 -0
  716. package/dist/services/execution-context.d.ts +31 -0
  717. package/dist/services/execution-context.d.ts.map +1 -1
  718. package/dist/services/execution-context.js +59 -0
  719. package/dist/services/execution-context.js.map +1 -1
  720. package/dist/services/file-service.d.ts.map +1 -1
  721. package/dist/services/file-service.js +12 -3
  722. package/dist/services/file-service.js.map +1 -1
  723. package/dist/services/handoff/handoff-flow-reducer.d.ts +27 -0
  724. package/dist/services/handoff/handoff-flow-reducer.d.ts.map +1 -0
  725. package/dist/services/handoff/handoff-flow-reducer.js +26 -0
  726. package/dist/services/handoff/handoff-flow-reducer.js.map +1 -0
  727. package/dist/services/handoff/handoff-session.d.ts +35 -0
  728. package/dist/services/handoff/handoff-session.d.ts.map +1 -0
  729. package/dist/services/handoff/handoff-session.js +136 -0
  730. package/dist/services/handoff/handoff-session.js.map +1 -0
  731. package/dist/services/hooks/hook-contracts.d.ts +124 -0
  732. package/dist/services/hooks/hook-contracts.d.ts.map +1 -0
  733. package/dist/services/hooks/hook-contracts.js +92 -0
  734. package/dist/services/hooks/hook-contracts.js.map +1 -0
  735. package/dist/services/hooks/hook-discovery.d.ts +45 -0
  736. package/dist/services/hooks/hook-discovery.d.ts.map +1 -0
  737. package/dist/services/hooks/hook-discovery.js +255 -0
  738. package/dist/services/hooks/hook-discovery.js.map +1 -0
  739. package/dist/services/hooks/hook-editor-shim.d.ts +6 -0
  740. package/dist/services/hooks/hook-editor-shim.d.ts.map +1 -0
  741. package/dist/services/hooks/hook-editor-shim.js +190 -0
  742. package/dist/services/hooks/hook-editor-shim.js.map +1 -0
  743. package/dist/services/hooks/hook-event-factory.d.ts +19 -0
  744. package/dist/services/hooks/hook-event-factory.d.ts.map +1 -0
  745. package/dist/services/hooks/hook-event-factory.js +45 -0
  746. package/dist/services/hooks/hook-event-factory.js.map +1 -0
  747. package/dist/services/hooks/hook-module-loader.d.ts +38 -0
  748. package/dist/services/hooks/hook-module-loader.d.ts.map +1 -0
  749. package/dist/services/hooks/hook-module-loader.js +69 -0
  750. package/dist/services/hooks/hook-module-loader.js.map +1 -0
  751. package/dist/services/hooks/hook-registry.d.ts +47 -0
  752. package/dist/services/hooks/hook-registry.d.ts.map +1 -0
  753. package/dist/services/hooks/hook-registry.js +185 -0
  754. package/dist/services/hooks/hook-registry.js.map +1 -0
  755. package/dist/services/hooks/hook-service.d.ts +44 -0
  756. package/dist/services/hooks/hook-service.d.ts.map +1 -0
  757. package/dist/services/hooks/hook-service.js +138 -0
  758. package/dist/services/hooks/hook-service.js.map +1 -0
  759. package/dist/services/hooks/hook-tool-lifecycle.d.ts +6 -0
  760. package/dist/services/hooks/hook-tool-lifecycle.d.ts.map +1 -0
  761. package/dist/services/hooks/hook-tool-lifecycle.js +33 -0
  762. package/dist/services/hooks/hook-tool-lifecycle.js.map +1 -0
  763. package/dist/services/hooks/index.d.ts +2 -0
  764. package/dist/services/hooks/index.d.ts.map +1 -0
  765. package/dist/services/hooks/index.js +2 -0
  766. package/dist/services/hooks/index.js.map +1 -0
  767. package/dist/services/input-surge-guard.d.ts.map +1 -1
  768. package/dist/services/input-surge-guard.js +13 -34
  769. package/dist/services/input-surge-guard.js.map +1 -1
  770. package/dist/services/large-uncached-input-guard.d.ts +26 -1
  771. package/dist/services/large-uncached-input-guard.d.ts.map +1 -1
  772. package/dist/services/large-uncached-input-guard.js +73 -38
  773. package/dist/services/large-uncached-input-guard.js.map +1 -1
  774. package/dist/services/logging/assistant-turn-journal.d.ts +1 -1
  775. package/dist/services/logging/assistant-turn-journal.d.ts.map +1 -1
  776. package/dist/services/logging/assistant-turn-journal.js +21 -36
  777. package/dist/services/logging/assistant-turn-journal.js.map +1 -1
  778. package/dist/services/logging/conversation-log-events.d.ts +75 -7
  779. package/dist/services/logging/conversation-log-events.d.ts.map +1 -1
  780. package/dist/services/logging/conversation-log-events.js +9 -0
  781. package/dist/services/logging/conversation-log-events.js.map +1 -1
  782. package/dist/services/logging/conversation-log-writer.d.ts +9 -4
  783. package/dist/services/logging/conversation-log-writer.d.ts.map +1 -1
  784. package/dist/services/logging/conversation-log-writer.js +183 -56
  785. package/dist/services/logging/conversation-log-writer.js.map +1 -1
  786. package/dist/services/logging/conversation-logger.d.ts.map +1 -1
  787. package/dist/services/logging/conversation-logger.js +35 -1
  788. package/dist/services/logging/conversation-logger.js.map +1 -1
  789. package/dist/services/logging/logging-contract.d.ts.map +1 -1
  790. package/dist/services/logging/logging-contract.js +4 -0
  791. package/dist/services/logging/logging-contract.js.map +1 -1
  792. package/dist/services/logging/logging-service.d.ts.map +1 -1
  793. package/dist/services/logging/logging-service.js +6 -2
  794. package/dist/services/logging/logging-service.js.map +1 -1
  795. package/dist/services/logging/provider-traffic.d.ts +2 -1
  796. package/dist/services/logging/provider-traffic.d.ts.map +1 -1
  797. package/dist/services/logging/provider-traffic.js +81 -5
  798. package/dist/services/logging/provider-traffic.js.map +1 -1
  799. package/dist/services/memory/memory-capabilities.d.ts.map +1 -1
  800. package/dist/services/memory/memory-capabilities.js +13 -8
  801. package/dist/services/memory/memory-capabilities.js.map +1 -1
  802. package/dist/services/model-service.d.ts +10 -0
  803. package/dist/services/model-service.d.ts.map +1 -1
  804. package/dist/services/model-service.js +24 -1
  805. package/dist/services/model-service.js.map +1 -1
  806. package/dist/services/models/model-catalog-session.d.ts +26 -0
  807. package/dist/services/models/model-catalog-session.d.ts.map +1 -0
  808. package/dist/services/models/model-catalog-session.js +77 -0
  809. package/dist/services/models/model-catalog-session.js.map +1 -0
  810. package/dist/services/openai-candidate-observer.d.ts +18 -0
  811. package/dist/services/openai-candidate-observer.d.ts.map +1 -0
  812. package/dist/services/openai-candidate-observer.js +56 -0
  813. package/dist/services/openai-candidate-observer.js.map +1 -0
  814. package/dist/services/openai-root-checkpoint-lifecycle-observer.d.ts +20 -0
  815. package/dist/services/openai-root-checkpoint-lifecycle-observer.d.ts.map +1 -0
  816. package/dist/services/openai-root-checkpoint-lifecycle-observer.js +21 -0
  817. package/dist/services/openai-root-checkpoint-lifecycle-observer.js.map +1 -0
  818. package/dist/services/openai-root-provider-identity.d.ts +11 -0
  819. package/dist/services/openai-root-provider-identity.d.ts.map +1 -0
  820. package/dist/services/openai-root-provider-identity.js +16 -0
  821. package/dist/services/openai-root-provider-identity.js.map +1 -0
  822. package/dist/services/openai-root-selector-parity-observer.d.ts +53 -0
  823. package/dist/services/openai-root-selector-parity-observer.d.ts.map +1 -0
  824. package/dist/services/openai-root-selector-parity-observer.js +62 -0
  825. package/dist/services/openai-root-selector-parity-observer.js.map +1 -0
  826. package/dist/services/plan-mode-interceptor.js +2 -2
  827. package/dist/services/plan-mode-interceptor.js.map +1 -1
  828. package/dist/services/provider-continuity.d.ts +94 -0
  829. package/dist/services/provider-continuity.d.ts.map +1 -1
  830. package/dist/services/provider-continuity.js +203 -0
  831. package/dist/services/provider-continuity.js.map +1 -1
  832. package/dist/services/providers/provider-management-session.d.ts +12 -0
  833. package/dist/services/providers/provider-management-session.d.ts.map +1 -0
  834. package/dist/services/providers/provider-management-session.js +21 -0
  835. package/dist/services/providers/provider-management-session.js.map +1 -0
  836. package/dist/services/queue/queue-controller.d.ts +9 -14
  837. package/dist/services/queue/queue-controller.d.ts.map +1 -1
  838. package/dist/services/queue/queue-controller.js +75 -60
  839. package/dist/services/queue/queue-controller.js.map +1 -1
  840. package/dist/services/retry/conversation-retry-policy.js +3 -3
  841. package/dist/services/retry/conversation-retry-policy.js.map +1 -1
  842. package/dist/services/retry/recovery-executor.d.ts.map +1 -1
  843. package/dist/services/retry/recovery-executor.js +15 -8
  844. package/dist/services/retry/recovery-executor.js.map +1 -1
  845. package/dist/services/retry/recovery-policy.d.ts.map +1 -1
  846. package/dist/services/retry/recovery-policy.js +4 -1
  847. package/dist/services/retry/recovery-policy.js.map +1 -1
  848. package/dist/services/retry/retry-classifier.d.ts.map +1 -1
  849. package/dist/services/retry/retry-classifier.js +3 -1
  850. package/dist/services/retry/retry-classifier.js.map +1 -1
  851. package/dist/services/retry/retry-contracts.d.ts +3 -5
  852. package/dist/services/retry/retry-contracts.d.ts.map +1 -1
  853. package/dist/services/retry/retry-error-classification.d.ts +20 -0
  854. package/dist/services/retry/retry-error-classification.d.ts.map +1 -1
  855. package/dist/services/retry/retry-error-classification.js +82 -0
  856. package/dist/services/retry/retry-error-classification.js.map +1 -1
  857. package/dist/services/retry/retry-event-presenter.d.ts.map +1 -1
  858. package/dist/services/retry/retry-event-presenter.js +4 -1
  859. package/dist/services/retry/retry-event-presenter.js.map +1 -1
  860. package/dist/services/retry/upstream-retry-policy.js +3 -3
  861. package/dist/services/rtk-service.d.ts.map +1 -1
  862. package/dist/services/rtk-service.js +3 -15
  863. package/dist/services/rtk-service.js.map +1 -1
  864. package/dist/services/runtime-setting-router.d.ts +19 -0
  865. package/dist/services/runtime-setting-router.d.ts.map +1 -1
  866. package/dist/services/runtime-setting-router.js +33 -0
  867. package/dist/services/runtime-setting-router.js.map +1 -1
  868. package/dist/services/service-interfaces.d.ts +19 -2
  869. package/dist/services/service-interfaces.d.ts.map +1 -1
  870. package/dist/services/session/background-task-control.d.ts +128 -0
  871. package/dist/services/session/background-task-control.d.ts.map +1 -0
  872. package/dist/services/session/background-task-control.js +217 -0
  873. package/dist/services/session/background-task-control.js.map +1 -0
  874. package/dist/services/session/background-task-liveness.d.ts +24 -0
  875. package/dist/services/session/background-task-liveness.d.ts.map +1 -0
  876. package/dist/services/session/background-task-liveness.js +23 -0
  877. package/dist/services/session/background-task-liveness.js.map +1 -0
  878. package/dist/services/session/continuation-call-id-resolver.d.ts +16 -9
  879. package/dist/services/session/continuation-call-id-resolver.d.ts.map +1 -1
  880. package/dist/services/session/continuation-call-id-resolver.js +34 -48
  881. package/dist/services/session/continuation-call-id-resolver.js.map +1 -1
  882. package/dist/services/session/continuation-plan-applier.d.ts.map +1 -1
  883. package/dist/services/session/continuation-plan-applier.js +1 -3
  884. package/dist/services/session/continuation-plan-applier.js.map +1 -1
  885. package/dist/services/session/continuation-recovery-handler.d.ts.map +1 -1
  886. package/dist/services/session/continuation-recovery-handler.js +0 -2
  887. package/dist/services/session/continuation-recovery-handler.js.map +1 -1
  888. package/dist/services/session/continuation-state.d.ts +9 -5
  889. package/dist/services/session/continuation-state.d.ts.map +1 -1
  890. package/dist/services/session/continuation-state.js +1 -1
  891. package/dist/services/session/continuation-state.js.map +1 -1
  892. package/dist/services/session/live-run.d.ts +29 -0
  893. package/dist/services/session/live-run.d.ts.map +1 -0
  894. package/dist/services/session/live-run.js +111 -0
  895. package/dist/services/session/live-run.js.map +1 -0
  896. package/dist/services/session/nested-tool-compatibility-state.d.ts +20 -0
  897. package/dist/services/session/nested-tool-compatibility-state.d.ts.map +1 -0
  898. package/dist/services/session/nested-tool-compatibility-state.js +29 -0
  899. package/dist/services/session/nested-tool-compatibility-state.js.map +1 -0
  900. package/dist/services/session/pending-interaction-state.d.ts +60 -0
  901. package/dist/services/session/pending-interaction-state.d.ts.map +1 -0
  902. package/dist/services/session/pending-interaction-state.js +132 -0
  903. package/dist/services/session/pending-interaction-state.js.map +1 -0
  904. package/dist/services/session/post-execute-pause-capability.d.ts +17 -0
  905. package/dist/services/session/post-execute-pause-capability.d.ts.map +1 -0
  906. package/dist/services/session/post-execute-pause-capability.js +27 -0
  907. package/dist/services/session/post-execute-pause-capability.js.map +1 -0
  908. package/dist/services/session/post-execute-pause-policy.d.ts +20 -0
  909. package/dist/services/session/post-execute-pause-policy.d.ts.map +1 -0
  910. package/dist/services/session/post-execute-pause-policy.js +34 -0
  911. package/dist/services/session/post-execute-pause-policy.js.map +1 -0
  912. package/dist/services/session/post-execute-pending-registry.d.ts +63 -0
  913. package/dist/services/session/post-execute-pending-registry.d.ts.map +1 -0
  914. package/dist/services/session/post-execute-pending-registry.js +123 -0
  915. package/dist/services/session/post-execute-pending-registry.js.map +1 -0
  916. package/dist/services/session/session-access-state.d.ts +24 -0
  917. package/dist/services/session/session-access-state.d.ts.map +1 -0
  918. package/dist/services/session/session-access-state.js +92 -0
  919. package/dist/services/session/session-access-state.js.map +1 -0
  920. package/dist/services/session/session-client-factory.d.ts +71 -0
  921. package/dist/services/session/session-client-factory.d.ts.map +1 -0
  922. package/dist/services/session/session-client-factory.js +130 -0
  923. package/dist/services/session/session-client-factory.js.map +1 -0
  924. package/dist/services/session/session-composition.d.ts +58 -0
  925. package/dist/services/session/session-composition.d.ts.map +1 -1
  926. package/dist/services/session/session-composition.js +179 -13
  927. package/dist/services/session/session-composition.js.map +1 -1
  928. package/dist/services/session/session-input-planner.d.ts +22 -2
  929. package/dist/services/session/session-input-planner.d.ts.map +1 -1
  930. package/dist/services/session/session-input-planner.js +121 -10
  931. package/dist/services/session/session-input-planner.js.map +1 -1
  932. package/dist/services/session/session-lifecycle.d.ts +5 -0
  933. package/dist/services/session/session-lifecycle.d.ts.map +1 -1
  934. package/dist/services/session/session-lifecycle.js +16 -6
  935. package/dist/services/session/session-lifecycle.js.map +1 -1
  936. package/dist/services/session/session-manager.d.ts +11 -1
  937. package/dist/services/session/session-manager.d.ts.map +1 -1
  938. package/dist/services/session/session-manager.js +16 -3
  939. package/dist/services/session/session-manager.js.map +1 -1
  940. package/dist/services/session/session-stream-processor.d.ts +6 -0
  941. package/dist/services/session/session-stream-processor.d.ts.map +1 -1
  942. package/dist/services/session/session-stream-processor.js +177 -35
  943. package/dist/services/session/session-stream-processor.js.map +1 -1
  944. package/dist/services/session/session-tool-tracker.d.ts +16 -21
  945. package/dist/services/session/session-tool-tracker.d.ts.map +1 -1
  946. package/dist/services/session/session-tool-tracker.js +21 -52
  947. package/dist/services/session/session-tool-tracker.js.map +1 -1
  948. package/dist/services/session/terminal-result-collector.d.ts +8 -0
  949. package/dist/services/session/terminal-result-collector.d.ts.map +1 -1
  950. package/dist/services/session/terminal-result-collector.js +30 -4
  951. package/dist/services/session/terminal-result-collector.js.map +1 -1
  952. package/dist/services/session/test-helpers/conversation-session-fixtures.d.ts.map +1 -1
  953. package/dist/services/session/test-helpers/conversation-session-fixtures.js +8 -1
  954. package/dist/services/session/test-helpers/conversation-session-fixtures.js.map +1 -1
  955. package/dist/services/session/turn-attempt-factory.d.ts +2 -2
  956. package/dist/services/session/turn-attempt-factory.d.ts.map +1 -1
  957. package/dist/services/session/turn-attempt.d.ts +4 -2
  958. package/dist/services/session/turn-attempt.d.ts.map +1 -1
  959. package/dist/services/session/turn-attempt.js +5 -0
  960. package/dist/services/session/turn-attempt.js.map +1 -1
  961. package/dist/services/session/turn-coordinator.d.ts +32 -2
  962. package/dist/services/session/turn-coordinator.d.ts.map +1 -1
  963. package/dist/services/session/turn-coordinator.js +180 -9
  964. package/dist/services/session/turn-coordinator.js.map +1 -1
  965. package/dist/services/session/turn-status-machine.d.ts +21 -6
  966. package/dist/services/session/turn-status-machine.d.ts.map +1 -1
  967. package/dist/services/session/turn-status-machine.js +50 -13
  968. package/dist/services/session/turn-status-machine.js.map +1 -1
  969. package/dist/services/session/turn-workflow.d.ts +35 -0
  970. package/dist/services/session/turn-workflow.d.ts.map +1 -1
  971. package/dist/services/session/turn-workflow.js +377 -27
  972. package/dist/services/session/turn-workflow.js.map +1 -1
  973. package/dist/services/settings/ancillary-settings-migration.js +3 -3
  974. package/dist/services/settings/ancillary-settings-migration.js.map +1 -1
  975. package/dist/services/settings/custom-provider-normalization.d.ts +10 -0
  976. package/dist/services/settings/custom-provider-normalization.d.ts.map +1 -1
  977. package/dist/services/settings/custom-provider-normalization.js +35 -2
  978. package/dist/services/settings/custom-provider-normalization.js.map +1 -1
  979. package/dist/services/settings/settings-env.d.ts +3 -0
  980. package/dist/services/settings/settings-env.d.ts.map +1 -1
  981. package/dist/services/settings/settings-env.js +3 -3
  982. package/dist/services/settings/settings-env.js.map +1 -1
  983. package/dist/services/settings/settings-merger.d.ts +6 -5
  984. package/dist/services/settings/settings-merger.d.ts.map +1 -1
  985. package/dist/services/settings/settings-merger.js +9 -4
  986. package/dist/services/settings/settings-merger.js.map +1 -1
  987. package/dist/services/settings/settings-path.d.ts +6 -0
  988. package/dist/services/settings/settings-path.d.ts.map +1 -0
  989. package/dist/services/settings/settings-path.js +15 -0
  990. package/dist/services/settings/settings-path.js.map +1 -0
  991. package/dist/services/settings/settings-persistence.d.ts +17 -6
  992. package/dist/services/settings/settings-persistence.d.ts.map +1 -1
  993. package/dist/services/settings/settings-persistence.js +155 -28
  994. package/dist/services/settings/settings-persistence.js.map +1 -1
  995. package/dist/services/settings/settings-schema.d.ts +107 -5
  996. package/dist/services/settings/settings-schema.d.ts.map +1 -1
  997. package/dist/services/settings/settings-schema.js +91 -9
  998. package/dist/services/settings/settings-schema.js.map +1 -1
  999. package/dist/services/settings/settings-service.d.ts +42 -5
  1000. package/dist/services/settings/settings-service.d.ts.map +1 -1
  1001. package/dist/services/settings/settings-service.js +282 -12
  1002. package/dist/services/settings/settings-service.js.map +1 -1
  1003. package/dist/services/settings/settings-sources.d.ts.map +1 -1
  1004. package/dist/services/settings/settings-sources.js +7 -0
  1005. package/dist/services/settings/settings-sources.js.map +1 -1
  1006. package/dist/services/shell/background-shell-output-store.d.ts +90 -0
  1007. package/dist/services/shell/background-shell-output-store.d.ts.map +1 -0
  1008. package/dist/services/shell/background-shell-output-store.js +207 -0
  1009. package/dist/services/shell/background-shell-output-store.js.map +1 -0
  1010. package/dist/services/shell/background-shell-registry.d.ts +128 -0
  1011. package/dist/services/shell/background-shell-registry.d.ts.map +1 -0
  1012. package/dist/services/shell/background-shell-registry.js +341 -0
  1013. package/dist/services/shell/background-shell-registry.js.map +1 -0
  1014. package/dist/services/shell/background-shell-watches.d.ts +141 -0
  1015. package/dist/services/shell/background-shell-watches.d.ts.map +1 -0
  1016. package/dist/services/shell/background-shell-watches.js +245 -0
  1017. package/dist/services/shell/background-shell-watches.js.map +1 -0
  1018. package/dist/services/shell/shell-interaction-session.d.ts +43 -0
  1019. package/dist/services/shell/shell-interaction-session.d.ts.map +1 -0
  1020. package/dist/services/shell/shell-interaction-session.js +113 -0
  1021. package/dist/services/shell/shell-interaction-session.js.map +1 -0
  1022. package/dist/services/stream-event-processor.d.ts +11 -12
  1023. package/dist/services/stream-event-processor.d.ts.map +1 -1
  1024. package/dist/services/stream-event-processor.js +119 -352
  1025. package/dist/services/stream-event-processor.js.map +1 -1
  1026. package/dist/services/stream-snapshot.d.ts +0 -1
  1027. package/dist/services/stream-snapshot.d.ts.map +1 -1
  1028. package/dist/services/stream-snapshot.js +0 -1
  1029. package/dist/services/stream-snapshot.js.map +1 -1
  1030. package/dist/services/subagents/codename-run-id.d.ts +43 -0
  1031. package/dist/services/subagents/codename-run-id.d.ts.map +1 -0
  1032. package/dist/services/subagents/codename-run-id.js +683 -0
  1033. package/dist/services/subagents/codename-run-id.js.map +1 -0
  1034. package/dist/services/subagents/execution-runner.d.ts +2 -0
  1035. package/dist/services/subagents/execution-runner.d.ts.map +1 -1
  1036. package/dist/services/subagents/execution-runner.js +60 -6
  1037. package/dist/services/subagents/execution-runner.js.map +1 -1
  1038. package/dist/services/subagents/foreground-subagent-lease.d.ts +77 -0
  1039. package/dist/services/subagents/foreground-subagent-lease.d.ts.map +1 -0
  1040. package/dist/services/subagents/foreground-subagent-lease.js +156 -0
  1041. package/dist/services/subagents/foreground-subagent-lease.js.map +1 -0
  1042. package/dist/services/subagents/mentor-runner.d.ts.map +1 -1
  1043. package/dist/services/subagents/mentor-runner.js +50 -31
  1044. package/dist/services/subagents/mentor-runner.js.map +1 -1
  1045. package/dist/services/subagents/nested-runner.d.ts +47 -23
  1046. package/dist/services/subagents/nested-runner.d.ts.map +1 -1
  1047. package/dist/services/subagents/nested-runner.js +313 -66
  1048. package/dist/services/subagents/nested-runner.js.map +1 -1
  1049. package/dist/services/subagents/role-loader.d.ts +3 -3
  1050. package/dist/services/subagents/role-loader.d.ts.map +1 -1
  1051. package/dist/services/subagents/role-loader.js +6 -7
  1052. package/dist/services/subagents/role-loader.js.map +1 -1
  1053. package/dist/services/subagents/runtime.d.ts +10 -0
  1054. package/dist/services/subagents/runtime.d.ts.map +1 -1
  1055. package/dist/services/subagents/runtime.js +15 -1
  1056. package/dist/services/subagents/runtime.js.map +1 -1
  1057. package/dist/services/subagents/subagent-async-registry.d.ts +21 -2
  1058. package/dist/services/subagents/subagent-async-registry.d.ts.map +1 -1
  1059. package/dist/services/subagents/subagent-async-registry.js +193 -13
  1060. package/dist/services/subagents/subagent-async-registry.js.map +1 -1
  1061. package/dist/services/subagents/subagent-client-types.d.ts +2 -0
  1062. package/dist/services/subagents/subagent-client-types.d.ts.map +1 -1
  1063. package/dist/services/subagents/subagent-manager.d.ts +26 -7
  1064. package/dist/services/subagents/subagent-manager.d.ts.map +1 -1
  1065. package/dist/services/subagents/subagent-manager.js +31 -1
  1066. package/dist/services/subagents/subagent-manager.js.map +1 -1
  1067. package/dist/services/subagents/subagent-notification-store.d.ts +91 -6
  1068. package/dist/services/subagents/subagent-notification-store.d.ts.map +1 -1
  1069. package/dist/services/subagents/subagent-notification-store.js +140 -10
  1070. package/dist/services/subagents/subagent-notification-store.js.map +1 -1
  1071. package/dist/services/subagents/subagent-session.d.ts +12 -7
  1072. package/dist/services/subagents/subagent-session.d.ts.map +1 -1
  1073. package/dist/services/subagents/subagent-session.js +13 -14
  1074. package/dist/services/subagents/subagent-session.js.map +1 -1
  1075. package/dist/services/subagents/test-helpers/subagent-manager-fixtures.d.ts +4 -5
  1076. package/dist/services/subagents/test-helpers/subagent-manager-fixtures.d.ts.map +1 -1
  1077. package/dist/services/subagents/test-helpers/subagent-manager-fixtures.js +72 -70
  1078. package/dist/services/subagents/test-helpers/subagent-manager-fixtures.js.map +1 -1
  1079. package/dist/services/subagents/tool-policy.d.ts +21 -17
  1080. package/dist/services/subagents/tool-policy.d.ts.map +1 -1
  1081. package/dist/services/subagents/tool-policy.js +100 -60
  1082. package/dist/services/subagents/tool-policy.js.map +1 -1
  1083. package/dist/services/subagents/types.d.ts +37 -3
  1084. package/dist/services/subagents/types.d.ts.map +1 -1
  1085. package/dist/services/subagents/types.js +2 -2
  1086. package/dist/services/subagents/types.js.map +1 -1
  1087. package/dist/services/subagents/utils.d.ts +8 -1
  1088. package/dist/services/subagents/utils.d.ts.map +1 -1
  1089. package/dist/services/subagents/utils.js +46 -16
  1090. package/dist/services/subagents/utils.js.map +1 -1
  1091. package/dist/services/subagents/worker-worktree.d.ts +25 -0
  1092. package/dist/services/subagents/worker-worktree.d.ts.map +1 -0
  1093. package/dist/services/subagents/worker-worktree.js +74 -0
  1094. package/dist/services/subagents/worker-worktree.js.map +1 -0
  1095. package/dist/services/test-helpers/mock-stream.d.ts +3 -0
  1096. package/dist/services/test-helpers/mock-stream.d.ts.map +1 -1
  1097. package/dist/services/test-helpers/mock-stream.js +8 -0
  1098. package/dist/services/test-helpers/mock-stream.js.map +1 -1
  1099. package/dist/services/tool-execution-ledger.d.ts +2 -0
  1100. package/dist/services/tool-execution-ledger.d.ts.map +1 -1
  1101. package/dist/services/tool-execution-ledger.js +59 -81
  1102. package/dist/services/tool-execution-ledger.js.map +1 -1
  1103. package/dist/services/workspace/active-workspace-root.d.ts +5 -0
  1104. package/dist/services/workspace/active-workspace-root.d.ts.map +1 -0
  1105. package/dist/services/workspace/active-workspace-root.js +24 -0
  1106. package/dist/services/workspace/active-workspace-root.js.map +1 -0
  1107. package/dist/services/workspace/parse-worktree-list.d.ts +24 -0
  1108. package/dist/services/workspace/parse-worktree-list.d.ts.map +1 -0
  1109. package/dist/services/workspace/parse-worktree-list.js +59 -0
  1110. package/dist/services/workspace/parse-worktree-list.js.map +1 -0
  1111. package/dist/services/workspace/worktree-inventory.d.ts +10 -0
  1112. package/dist/services/workspace/worktree-inventory.d.ts.map +1 -0
  1113. package/dist/services/workspace/worktree-inventory.js +28 -0
  1114. package/dist/services/workspace/worktree-inventory.js.map +1 -0
  1115. package/dist/services/workspace/worktree-transition.d.ts +85 -0
  1116. package/dist/services/workspace/worktree-transition.d.ts.map +1 -0
  1117. package/dist/services/workspace/worktree-transition.js +70 -0
  1118. package/dist/services/workspace/worktree-transition.js.map +1 -0
  1119. package/dist/test-helpers/conversation-session-with-adapter.d.ts +1 -1
  1120. package/dist/test-helpers/conversation-session-with-adapter.d.ts.map +1 -1
  1121. package/dist/test-helpers/conversation-session-with-adapter.js +5 -1
  1122. package/dist/test-helpers/conversation-session-with-adapter.js.map +1 -1
  1123. package/dist/test-helpers/ink-testing.d.ts.map +1 -1
  1124. package/dist/test-helpers/ink-testing.js +2 -1
  1125. package/dist/test-helpers/ink-testing.js.map +1 -1
  1126. package/dist/tools/agent/activate-skill.d.ts +6 -1
  1127. package/dist/tools/agent/activate-skill.d.ts.map +1 -1
  1128. package/dist/tools/agent/activate-skill.js.map +1 -1
  1129. package/dist/tools/agent/ask-mentor.d.ts +1 -1
  1130. package/dist/tools/agent/ask-mentor.d.ts.map +1 -1
  1131. package/dist/tools/agent/ask-mentor.js.map +1 -1
  1132. package/dist/tools/agent/ask-orchestrator.d.ts +1 -1
  1133. package/dist/tools/agent/ask-orchestrator.d.ts.map +1 -1
  1134. package/dist/tools/agent/ask-user-constants.d.ts +6 -0
  1135. package/dist/tools/agent/ask-user-constants.d.ts.map +1 -1
  1136. package/dist/tools/agent/ask-user-constants.js +6 -0
  1137. package/dist/tools/agent/ask-user-constants.js.map +1 -1
  1138. package/dist/tools/agent/run-subagent-async.d.ts +6 -6
  1139. package/dist/tools/agent/run-subagent-async.d.ts.map +1 -1
  1140. package/dist/tools/agent/run-subagent-async.js +34 -55
  1141. package/dist/tools/agent/run-subagent-async.js.map +1 -1
  1142. package/dist/tools/agent/run-subagent.d.ts +30 -14
  1143. package/dist/tools/agent/run-subagent.d.ts.map +1 -1
  1144. package/dist/tools/agent/run-subagent.js +191 -68
  1145. package/dist/tools/agent/run-subagent.js.map +1 -1
  1146. package/dist/tools/file/apply-patch.d.ts +3 -1
  1147. package/dist/tools/file/apply-patch.d.ts.map +1 -1
  1148. package/dist/tools/file/apply-patch.js +34 -10
  1149. package/dist/tools/file/apply-patch.js.map +1 -1
  1150. package/dist/tools/file/code-context.d.ts +2 -2
  1151. package/dist/tools/file/code-context.d.ts.map +1 -1
  1152. package/dist/tools/file/code-context.js +1 -1
  1153. package/dist/tools/file/code-context.js.map +1 -1
  1154. package/dist/tools/file/create-file.d.ts +4 -2
  1155. package/dist/tools/file/create-file.d.ts.map +1 -1
  1156. package/dist/tools/file/create-file.js +10 -7
  1157. package/dist/tools/file/create-file.js.map +1 -1
  1158. package/dist/tools/file/edit-healing.d.ts.map +1 -1
  1159. package/dist/tools/file/edit-healing.js +54 -35
  1160. package/dist/tools/file/edit-healing.js.map +1 -1
  1161. package/dist/tools/file/glob-target.d.ts +12 -0
  1162. package/dist/tools/file/glob-target.d.ts.map +1 -0
  1163. package/dist/tools/file/glob-target.js +22 -0
  1164. package/dist/tools/file/glob-target.js.map +1 -0
  1165. package/dist/tools/file/glob.d.ts +9 -2
  1166. package/dist/tools/file/glob.d.ts.map +1 -1
  1167. package/dist/tools/file/glob.js +12 -16
  1168. package/dist/tools/file/glob.js.map +1 -1
  1169. package/dist/tools/file/grep.d.ts +8 -1
  1170. package/dist/tools/file/grep.d.ts.map +1 -1
  1171. package/dist/tools/file/grep.js +60 -4
  1172. package/dist/tools/file/grep.js.map +1 -1
  1173. package/dist/tools/file/read-file.d.ts +7 -1
  1174. package/dist/tools/file/read-file.d.ts.map +1 -1
  1175. package/dist/tools/file/read-file.js +3 -4
  1176. package/dist/tools/file/read-file.js.map +1 -1
  1177. package/dist/tools/file/search-replace.d.ts +5 -3
  1178. package/dist/tools/file/search-replace.d.ts.map +1 -1
  1179. package/dist/tools/file/search-replace.js +29 -19
  1180. package/dist/tools/file/search-replace.js.map +1 -1
  1181. package/dist/tools/format-helpers.d.ts +4 -3
  1182. package/dist/tools/format-helpers.d.ts.map +1 -1
  1183. package/dist/tools/format-helpers.js +16 -17
  1184. package/dist/tools/format-helpers.js.map +1 -1
  1185. package/dist/tools/memory/memory-tools.d.ts.map +1 -1
  1186. package/dist/tools/memory/memory-tools.js +61 -49
  1187. package/dist/tools/memory/memory-tools.js.map +1 -1
  1188. package/dist/tools/run-agent-workflow.d.ts +1 -1
  1189. package/dist/tools/run-agent-workflow.d.ts.map +1 -1
  1190. package/dist/tools/system/shell.d.ts +80 -3
  1191. package/dist/tools/system/shell.d.ts.map +1 -1
  1192. package/dist/tools/system/shell.js +657 -152
  1193. package/dist/tools/system/shell.js.map +1 -1
  1194. package/dist/tools/system/worktree.d.ts +22 -0
  1195. package/dist/tools/system/worktree.d.ts.map +1 -0
  1196. package/dist/tools/system/worktree.js +138 -0
  1197. package/dist/tools/system/worktree.js.map +1 -0
  1198. package/dist/tools/types.d.ts +102 -5
  1199. package/dist/tools/types.d.ts.map +1 -1
  1200. package/dist/tools/types.js +4 -1
  1201. package/dist/tools/types.js.map +1 -1
  1202. package/dist/tools/utils.d.ts +18 -0
  1203. package/dist/tools/utils.d.ts.map +1 -1
  1204. package/dist/tools/utils.js +80 -1
  1205. package/dist/tools/utils.js.map +1 -1
  1206. package/dist/tools/web/web-fetch.d.ts +1 -1
  1207. package/dist/tools/web/web-fetch.d.ts.map +1 -1
  1208. package/dist/tools/web/web-fetch.js.map +1 -1
  1209. package/dist/tools/web/web-search.d.ts +1 -1
  1210. package/dist/tools/web/web-search.d.ts.map +1 -1
  1211. package/dist/tools/web/web-search.js.map +1 -1
  1212. package/dist/types/message.d.ts +2 -0
  1213. package/dist/types/message.d.ts.map +1 -1
  1214. package/dist/types/message.js.map +1 -1
  1215. package/dist/utils/ai/model-settings.d.ts.map +1 -1
  1216. package/dist/utils/ai/model-settings.js +0 -6
  1217. package/dist/utils/ai/model-settings.js.map +1 -1
  1218. package/dist/utils/ai/provider-credentials.d.ts +31 -2
  1219. package/dist/utils/ai/provider-credentials.d.ts.map +1 -1
  1220. package/dist/utils/ai/provider-credentials.js +119 -11
  1221. package/dist/utils/ai/provider-credentials.js.map +1 -1
  1222. package/dist/utils/ai/token-usage.d.ts +10 -5
  1223. package/dist/utils/ai/token-usage.d.ts.map +1 -1
  1224. package/dist/utils/ai/token-usage.js +48 -35
  1225. package/dist/utils/ai/token-usage.js.map +1 -1
  1226. package/dist/utils/apply-diff.d.ts +3 -0
  1227. package/dist/utils/apply-diff.d.ts.map +1 -0
  1228. package/dist/utils/apply-diff.js +192 -0
  1229. package/dist/utils/apply-diff.js.map +1 -0
  1230. package/dist/utils/conversation/conversation-event-handler.d.ts.map +1 -1
  1231. package/dist/utils/conversation/conversation-event-handler.js +72 -16
  1232. package/dist/utils/conversation/conversation-event-handler.js.map +1 -1
  1233. package/dist/utils/conversation/conversation-utils.d.ts +5 -0
  1234. package/dist/utils/conversation/conversation-utils.d.ts.map +1 -1
  1235. package/dist/utils/conversation/conversation-utils.js +1 -0
  1236. package/dist/utils/conversation/conversation-utils.js.map +1 -1
  1237. package/dist/utils/conversation/message-utils.d.ts +14 -2
  1238. package/dist/utils/conversation/message-utils.d.ts.map +1 -1
  1239. package/dist/utils/conversation/message-utils.js +55 -35
  1240. package/dist/utils/conversation/message-utils.js.map +1 -1
  1241. package/dist/utils/conversation/rewind-items.d.ts +32 -0
  1242. package/dist/utils/conversation/rewind-items.d.ts.map +1 -0
  1243. package/dist/utils/conversation/rewind-items.js +33 -0
  1244. package/dist/utils/conversation/rewind-items.js.map +1 -0
  1245. package/dist/utils/copy-selections.d.ts +8 -0
  1246. package/dist/utils/copy-selections.d.ts.map +1 -0
  1247. package/dist/utils/copy-selections.js +42 -0
  1248. package/dist/utils/copy-selections.js.map +1 -0
  1249. package/dist/utils/inject-warning-into-tool-output.d.ts +10 -0
  1250. package/dist/utils/inject-warning-into-tool-output.d.ts.map +1 -1
  1251. package/dist/utils/inject-warning-into-tool-output.js +17 -0
  1252. package/dist/utils/inject-warning-into-tool-output.js.map +1 -1
  1253. package/dist/utils/settings-command.d.ts.map +1 -1
  1254. package/dist/utils/settings-command.js +46 -4
  1255. package/dist/utils/settings-command.js.map +1 -1
  1256. package/dist/utils/shell/command-logger.js.map +1 -1
  1257. package/dist/utils/shell/command-safety/find-helpers.d.ts +3 -2
  1258. package/dist/utils/shell/command-safety/find-helpers.d.ts.map +1 -1
  1259. package/dist/utils/shell/command-safety/find-helpers.js +34 -17
  1260. package/dist/utils/shell/command-safety/find-helpers.js.map +1 -1
  1261. package/dist/utils/shell/command-safety/handlers/find-handler.d.ts.map +1 -1
  1262. package/dist/utils/shell/command-safety/handlers/find-handler.js +0 -2
  1263. package/dist/utils/shell/command-safety/handlers/find-handler.js.map +1 -1
  1264. package/dist/utils/shell/command-safety/handlers/git-handler.d.ts.map +1 -1
  1265. package/dist/utils/shell/command-safety/handlers/git-handler.js.map +1 -1
  1266. package/dist/utils/shell/command-safety/handlers/sed-handler.d.ts.map +1 -1
  1267. package/dist/utils/shell/command-safety/handlers/sed-handler.js +14 -9
  1268. package/dist/utils/shell/command-safety/handlers/sed-handler.js.map +1 -1
  1269. package/dist/utils/shell/command-safety/handlers/types.d.ts +5 -4
  1270. package/dist/utils/shell/command-safety/handlers/types.d.ts.map +1 -1
  1271. package/dist/utils/shell/command-safety/index.d.ts.map +1 -1
  1272. package/dist/utils/shell/command-safety/index.js +212 -88
  1273. package/dist/utils/shell/command-safety/index.js.map +1 -1
  1274. package/dist/utils/shell/command-safety/path-analysis.d.ts.map +1 -1
  1275. package/dist/utils/shell/command-safety/path-analysis.js +5 -1
  1276. package/dist/utils/shell/command-safety/path-analysis.js.map +1 -1
  1277. package/dist/utils/shell/command-safety/utils.d.ts +2 -1
  1278. package/dist/utils/shell/command-safety/utils.d.ts.map +1 -1
  1279. package/dist/utils/shell/command-safety/utils.js +5 -5
  1280. package/dist/utils/shell/command-safety/utils.js.map +1 -1
  1281. package/dist/utils/shell/execute-shell.d.ts +49 -3
  1282. package/dist/utils/shell/execute-shell.d.ts.map +1 -1
  1283. package/dist/utils/shell/execute-shell.js +245 -28
  1284. package/dist/utils/shell/execute-shell.js.map +1 -1
  1285. package/dist/utils/shell/sandbox/denied-read-stores.d.ts +1 -8
  1286. package/dist/utils/shell/sandbox/denied-read-stores.d.ts.map +1 -1
  1287. package/dist/utils/shell/sandbox/denied-read-stores.js +1 -8
  1288. package/dist/utils/shell/sandbox/denied-read-stores.js.map +1 -1
  1289. package/dist/utils/shell/sandbox/docker-host-control-grants.d.ts +36 -6
  1290. package/dist/utils/shell/sandbox/docker-host-control-grants.d.ts.map +1 -1
  1291. package/dist/utils/shell/sandbox/docker-host-control-grants.js +47 -17
  1292. package/dist/utils/shell/sandbox/docker-host-control-grants.js.map +1 -1
  1293. package/dist/utils/shell/sandbox/sandbox-env.d.ts.map +1 -1
  1294. package/dist/utils/shell/sandbox/sandbox-env.js +2 -1
  1295. package/dist/utils/shell/sandbox/sandbox-env.js.map +1 -1
  1296. package/dist/utils/shell/sandbox/sandbox-network-approval-coordinator.d.ts +21 -0
  1297. package/dist/utils/shell/sandbox/sandbox-network-approval-coordinator.d.ts.map +1 -0
  1298. package/dist/utils/shell/sandbox/sandbox-network-approval-coordinator.js +66 -0
  1299. package/dist/utils/shell/sandbox/sandbox-network-approval-coordinator.js.map +1 -0
  1300. package/dist/utils/shell/sandbox/sandbox-network-store.d.ts.map +1 -1
  1301. package/dist/utils/shell/sandbox/sandbox-network-store.js +3 -2
  1302. package/dist/utils/shell/sandbox/sandbox-network-store.js.map +1 -1
  1303. package/dist/utils/shell/sandbox/sandbox-policy.d.ts.map +1 -1
  1304. package/dist/utils/shell/sandbox/sandbox-policy.js +2 -1
  1305. package/dist/utils/shell/sandbox/sandbox-policy.js.map +1 -1
  1306. package/dist/utils/shell/shell-session.js.map +1 -1
  1307. package/dist/utils/slash-command-dispatch.d.ts +21 -0
  1308. package/dist/utils/slash-command-dispatch.d.ts.map +1 -0
  1309. package/dist/utils/slash-command-dispatch.js +34 -0
  1310. package/dist/utils/slash-command-dispatch.js.map +1 -0
  1311. package/dist/utils/streaming/extract-command-messages.d.ts.map +1 -1
  1312. package/dist/utils/streaming/extract-command-messages.js +29 -51
  1313. package/dist/utils/streaming/extract-command-messages.js.map +1 -1
  1314. package/dist/utils/value-suggestions.d.ts.map +1 -1
  1315. package/dist/utils/value-suggestions.js +6 -8
  1316. package/dist/utils/value-suggestions.js.map +1 -1
  1317. package/package.json +21 -19
  1318. package/dist/commands/retry-command.d.ts +0 -20
  1319. package/dist/commands/retry-command.d.ts.map +0 -1
  1320. package/dist/commands/retry-command.js +0 -39
  1321. package/dist/commands/retry-command.js.map +0 -1
  1322. package/dist/commands/undo-command.d.ts +0 -15
  1323. package/dist/commands/undo-command.d.ts.map +0 -1
  1324. package/dist/commands/undo-command.js +0 -28
  1325. package/dist/commands/undo-command.js.map +0 -1
  1326. package/dist/components/input/PopupManager.d.ts +0 -88
  1327. package/dist/components/input/PopupManager.d.ts.map +0 -1
  1328. package/dist/components/input/PopupManager.js +0 -21
  1329. package/dist/components/input/PopupManager.js.map +0 -1
  1330. package/dist/components/input/popup-key-navigation.d.ts +0 -18
  1331. package/dist/components/input/popup-key-navigation.d.ts.map +0 -1
  1332. package/dist/components/input/popup-key-navigation.js +0 -16
  1333. package/dist/components/input/popup-key-navigation.js.map +0 -1
  1334. package/dist/components/input/popup-props.d.ts +0 -24
  1335. package/dist/components/input/popup-props.d.ts.map +0 -1
  1336. package/dist/components/input/popup-props.js +0 -72
  1337. package/dist/components/input/popup-props.js.map +0 -1
  1338. package/dist/components/menu/UndoSelectionMenu.d.ts +0 -12
  1339. package/dist/components/menu/UndoSelectionMenu.d.ts.map +0 -1
  1340. package/dist/components/menu/UndoSelectionMenu.js +0 -19
  1341. package/dist/components/menu/UndoSelectionMenu.js.map +0 -1
  1342. package/dist/hooks/use-mode-handlers.d.ts +0 -79
  1343. package/dist/hooks/use-mode-handlers.d.ts.map +0 -1
  1344. package/dist/hooks/use-mode-handlers.js +0 -183
  1345. package/dist/hooks/use-mode-handlers.js.map +0 -1
  1346. package/dist/hooks/use-pending-turn-guards.d.ts +0 -43
  1347. package/dist/hooks/use-pending-turn-guards.d.ts.map +0 -1
  1348. package/dist/hooks/use-pending-turn-guards.js +0 -120
  1349. package/dist/hooks/use-pending-turn-guards.js.map +0 -1
  1350. package/dist/hooks/use-trigger-detection.d.ts +0 -49
  1351. package/dist/hooks/use-trigger-detection.d.ts.map +0 -1
  1352. package/dist/hooks/use-trigger-detection.js +0 -104
  1353. package/dist/hooks/use-trigger-detection.js.map +0 -1
  1354. package/dist/hooks/use-undo-selection.d.ts +0 -23
  1355. package/dist/hooks/use-undo-selection.d.ts.map +0 -1
  1356. package/dist/hooks/use-undo-selection.js.map +0 -1
  1357. package/dist/lib/agent-run-orchestrator.d.ts +0 -38
  1358. package/dist/lib/agent-run-orchestrator.d.ts.map +0 -1
  1359. package/dist/lib/agent-run-orchestrator.js +0 -266
  1360. package/dist/lib/agent-run-orchestrator.js.map +0 -1
  1361. package/dist/lib/retry-executor.d.ts +0 -16
  1362. package/dist/lib/retry-executor.d.ts.map +0 -1
  1363. package/dist/lib/retry-executor.js +0 -53
  1364. package/dist/lib/retry-executor.js.map +0 -1
  1365. package/dist/lib/runner-manager.d.ts +0 -22
  1366. package/dist/lib/runner-manager.d.ts.map +0 -1
  1367. package/dist/lib/runner-manager.js +0 -56
  1368. package/dist/lib/runner-manager.js.map +0 -1
  1369. package/dist/prompts/shell-sandbox.md +0 -18
  1370. package/dist/prompts/simple.md +0 -53
  1371. package/dist/prompts/simple_prev.md +0 -33
  1372. package/dist/prompts/simple_v2.md +0 -84
  1373. package/dist/prompts/simple_v3.md +0 -267
  1374. package/dist/prompts/subagents/researcher.md +0 -46
  1375. package/dist/providers/ai-sdk-agents-adapter.d.ts +0 -7
  1376. package/dist/providers/ai-sdk-agents-adapter.d.ts.map +0 -1
  1377. package/dist/providers/ai-sdk-agents-adapter.js +0 -80
  1378. package/dist/providers/ai-sdk-agents-adapter.js.map +0 -1
  1379. package/dist/providers/fallback-responses-model.d.ts +0 -46
  1380. package/dist/providers/fallback-responses-model.d.ts.map +0 -1
  1381. package/dist/providers/fallback-responses-model.js +0 -296
  1382. package/dist/providers/fallback-responses-model.js.map +0 -1
  1383. package/dist/services/stream-event-parsing.d.ts +0 -4
  1384. package/dist/services/stream-event-parsing.d.ts.map +0 -1
  1385. package/dist/services/stream-event-parsing.js +0 -79
  1386. package/dist/services/stream-event-parsing.js.map +0 -1
@@ -0,0 +1,3010 @@
1
+ export declare const CATALOG_META: {
2
+ readonly schemaVersion: 2;
3
+ readonly generatedAt: '2026-07-29T22:27:21.904Z';
4
+ readonly source: 'pi-ai@0.83.0';
5
+ };
6
+ export interface GeneratedCatalogModel {
7
+ contextWindow: number;
8
+ maxTokens?: number;
9
+ inputPricePerMTok?: number;
10
+ outputPricePerMTok?: number;
11
+ cacheReadPricePerMTok?: number;
12
+ cacheWritePricePerMTok?: number;
13
+ }
14
+ export declare const MODEL_CATALOG: {
15
+ readonly openai: {
16
+ readonly 'gpt-4': {
17
+ readonly contextWindow: 8192;
18
+ readonly maxTokens: 8192;
19
+ readonly inputPricePerMTok: 30;
20
+ readonly outputPricePerMTok: 60;
21
+ readonly cacheReadPricePerMTok: 0;
22
+ readonly cacheWritePricePerMTok: 0;
23
+ };
24
+ readonly 'gpt-4-turbo': {
25
+ readonly contextWindow: 128000;
26
+ readonly maxTokens: 4096;
27
+ readonly inputPricePerMTok: 10;
28
+ readonly outputPricePerMTok: 30;
29
+ readonly cacheReadPricePerMTok: 0;
30
+ readonly cacheWritePricePerMTok: 0;
31
+ };
32
+ readonly 'gpt-4.1': {
33
+ readonly contextWindow: 1047576;
34
+ readonly maxTokens: 32768;
35
+ readonly inputPricePerMTok: 2;
36
+ readonly outputPricePerMTok: 8;
37
+ readonly cacheReadPricePerMTok: 0.5;
38
+ readonly cacheWritePricePerMTok: 0;
39
+ };
40
+ readonly 'gpt-4.1-mini': {
41
+ readonly contextWindow: 1047576;
42
+ readonly maxTokens: 32768;
43
+ readonly inputPricePerMTok: 0.4;
44
+ readonly outputPricePerMTok: 1.6;
45
+ readonly cacheReadPricePerMTok: 0.1;
46
+ readonly cacheWritePricePerMTok: 0;
47
+ };
48
+ readonly 'gpt-4.1-nano': {
49
+ readonly contextWindow: 1047576;
50
+ readonly maxTokens: 32768;
51
+ readonly inputPricePerMTok: 0.1;
52
+ readonly outputPricePerMTok: 0.4;
53
+ readonly cacheReadPricePerMTok: 0.025;
54
+ readonly cacheWritePricePerMTok: 0;
55
+ };
56
+ readonly 'gpt-4o': {
57
+ readonly contextWindow: 128000;
58
+ readonly maxTokens: 16384;
59
+ readonly inputPricePerMTok: 2.5;
60
+ readonly outputPricePerMTok: 10;
61
+ readonly cacheReadPricePerMTok: 1.25;
62
+ readonly cacheWritePricePerMTok: 0;
63
+ };
64
+ readonly 'gpt-4o-2024-05-13': {
65
+ readonly contextWindow: 128000;
66
+ readonly maxTokens: 4096;
67
+ readonly inputPricePerMTok: 5;
68
+ readonly outputPricePerMTok: 15;
69
+ readonly cacheReadPricePerMTok: 0;
70
+ readonly cacheWritePricePerMTok: 0;
71
+ };
72
+ readonly 'gpt-4o-2024-08-06': {
73
+ readonly contextWindow: 128000;
74
+ readonly maxTokens: 16384;
75
+ readonly inputPricePerMTok: 2.5;
76
+ readonly outputPricePerMTok: 10;
77
+ readonly cacheReadPricePerMTok: 1.25;
78
+ readonly cacheWritePricePerMTok: 0;
79
+ };
80
+ readonly 'gpt-4o-2024-11-20': {
81
+ readonly contextWindow: 128000;
82
+ readonly maxTokens: 16384;
83
+ readonly inputPricePerMTok: 2.5;
84
+ readonly outputPricePerMTok: 10;
85
+ readonly cacheReadPricePerMTok: 1.25;
86
+ readonly cacheWritePricePerMTok: 0;
87
+ };
88
+ readonly 'gpt-4o-mini': {
89
+ readonly contextWindow: 128000;
90
+ readonly maxTokens: 16384;
91
+ readonly inputPricePerMTok: 0.15;
92
+ readonly outputPricePerMTok: 0.6;
93
+ readonly cacheReadPricePerMTok: 0.075;
94
+ readonly cacheWritePricePerMTok: 0;
95
+ };
96
+ readonly 'gpt-5': {
97
+ readonly contextWindow: 400000;
98
+ readonly maxTokens: 128000;
99
+ readonly inputPricePerMTok: 1.25;
100
+ readonly outputPricePerMTok: 10;
101
+ readonly cacheReadPricePerMTok: 0.125;
102
+ readonly cacheWritePricePerMTok: 0;
103
+ };
104
+ readonly 'gpt-5-chat-latest': {
105
+ readonly contextWindow: 128000;
106
+ readonly maxTokens: 16384;
107
+ readonly inputPricePerMTok: 1.25;
108
+ readonly outputPricePerMTok: 10;
109
+ readonly cacheReadPricePerMTok: 0.125;
110
+ readonly cacheWritePricePerMTok: 0;
111
+ };
112
+ readonly 'gpt-5-mini': {
113
+ readonly contextWindow: 400000;
114
+ readonly maxTokens: 128000;
115
+ readonly inputPricePerMTok: 0.25;
116
+ readonly outputPricePerMTok: 2;
117
+ readonly cacheReadPricePerMTok: 0.025;
118
+ readonly cacheWritePricePerMTok: 0;
119
+ };
120
+ readonly 'gpt-5-nano': {
121
+ readonly contextWindow: 400000;
122
+ readonly maxTokens: 128000;
123
+ readonly inputPricePerMTok: 0.05;
124
+ readonly outputPricePerMTok: 0.4;
125
+ readonly cacheReadPricePerMTok: 0.005;
126
+ readonly cacheWritePricePerMTok: 0;
127
+ };
128
+ readonly 'gpt-5-pro': {
129
+ readonly contextWindow: 400000;
130
+ readonly maxTokens: 128000;
131
+ readonly inputPricePerMTok: 15;
132
+ readonly outputPricePerMTok: 120;
133
+ readonly cacheReadPricePerMTok: 0;
134
+ readonly cacheWritePricePerMTok: 0;
135
+ };
136
+ readonly 'gpt-5.1': {
137
+ readonly contextWindow: 400000;
138
+ readonly maxTokens: 128000;
139
+ readonly inputPricePerMTok: 1.25;
140
+ readonly outputPricePerMTok: 10;
141
+ readonly cacheReadPricePerMTok: 0.125;
142
+ readonly cacheWritePricePerMTok: 0;
143
+ };
144
+ readonly 'gpt-5.2': {
145
+ readonly contextWindow: 400000;
146
+ readonly maxTokens: 128000;
147
+ readonly inputPricePerMTok: 1.75;
148
+ readonly outputPricePerMTok: 14;
149
+ readonly cacheReadPricePerMTok: 0.175;
150
+ readonly cacheWritePricePerMTok: 0;
151
+ };
152
+ readonly 'gpt-5.2-chat-latest': {
153
+ readonly contextWindow: 128000;
154
+ readonly maxTokens: 16384;
155
+ readonly inputPricePerMTok: 1.75;
156
+ readonly outputPricePerMTok: 14;
157
+ readonly cacheReadPricePerMTok: 0.175;
158
+ readonly cacheWritePricePerMTok: 0;
159
+ };
160
+ readonly 'gpt-5.2-pro': {
161
+ readonly contextWindow: 400000;
162
+ readonly maxTokens: 128000;
163
+ readonly inputPricePerMTok: 21;
164
+ readonly outputPricePerMTok: 168;
165
+ readonly cacheReadPricePerMTok: 0;
166
+ readonly cacheWritePricePerMTok: 0;
167
+ };
168
+ readonly 'gpt-5.3-chat-latest': {
169
+ readonly contextWindow: 128000;
170
+ readonly maxTokens: 16384;
171
+ readonly inputPricePerMTok: 1.75;
172
+ readonly outputPricePerMTok: 14;
173
+ readonly cacheReadPricePerMTok: 0.175;
174
+ readonly cacheWritePricePerMTok: 0;
175
+ };
176
+ readonly 'gpt-5.3-codex': {
177
+ readonly contextWindow: 400000;
178
+ readonly maxTokens: 128000;
179
+ readonly inputPricePerMTok: 1.75;
180
+ readonly outputPricePerMTok: 14;
181
+ readonly cacheReadPricePerMTok: 0.175;
182
+ readonly cacheWritePricePerMTok: 0;
183
+ };
184
+ readonly 'gpt-5.3-codex-spark': {
185
+ readonly contextWindow: 128000;
186
+ readonly maxTokens: 32000;
187
+ readonly inputPricePerMTok: 1.75;
188
+ readonly outputPricePerMTok: 14;
189
+ readonly cacheReadPricePerMTok: 0.175;
190
+ readonly cacheWritePricePerMTok: 0;
191
+ };
192
+ readonly 'gpt-5.4': {
193
+ readonly contextWindow: 272000;
194
+ readonly maxTokens: 128000;
195
+ readonly inputPricePerMTok: 2.5;
196
+ readonly outputPricePerMTok: 15;
197
+ readonly cacheReadPricePerMTok: 0.25;
198
+ readonly cacheWritePricePerMTok: 0;
199
+ };
200
+ readonly 'gpt-5.4-mini': {
201
+ readonly contextWindow: 400000;
202
+ readonly maxTokens: 128000;
203
+ readonly inputPricePerMTok: 0.75;
204
+ readonly outputPricePerMTok: 4.5;
205
+ readonly cacheReadPricePerMTok: 0.075;
206
+ readonly cacheWritePricePerMTok: 0;
207
+ };
208
+ readonly 'gpt-5.4-nano': {
209
+ readonly contextWindow: 400000;
210
+ readonly maxTokens: 128000;
211
+ readonly inputPricePerMTok: 0.2;
212
+ readonly outputPricePerMTok: 1.25;
213
+ readonly cacheReadPricePerMTok: 0.02;
214
+ readonly cacheWritePricePerMTok: 0;
215
+ };
216
+ readonly 'gpt-5.4-pro': {
217
+ readonly contextWindow: 1050000;
218
+ readonly maxTokens: 128000;
219
+ readonly inputPricePerMTok: 30;
220
+ readonly outputPricePerMTok: 180;
221
+ readonly cacheReadPricePerMTok: 0;
222
+ readonly cacheWritePricePerMTok: 0;
223
+ };
224
+ readonly 'gpt-5.5': {
225
+ readonly contextWindow: 272000;
226
+ readonly maxTokens: 128000;
227
+ readonly inputPricePerMTok: 5;
228
+ readonly outputPricePerMTok: 30;
229
+ readonly cacheReadPricePerMTok: 0.5;
230
+ readonly cacheWritePricePerMTok: 0;
231
+ };
232
+ readonly 'gpt-5.5-pro': {
233
+ readonly contextWindow: 1050000;
234
+ readonly maxTokens: 128000;
235
+ readonly inputPricePerMTok: 30;
236
+ readonly outputPricePerMTok: 180;
237
+ readonly cacheReadPricePerMTok: 0;
238
+ readonly cacheWritePricePerMTok: 0;
239
+ };
240
+ readonly 'gpt-5.6-luna': {
241
+ readonly contextWindow: 272000;
242
+ readonly maxTokens: 128000;
243
+ readonly inputPricePerMTok: 1;
244
+ readonly outputPricePerMTok: 6;
245
+ readonly cacheReadPricePerMTok: 0.1;
246
+ readonly cacheWritePricePerMTok: 1.25;
247
+ };
248
+ readonly 'gpt-5.6-sol': {
249
+ readonly contextWindow: 272000;
250
+ readonly maxTokens: 128000;
251
+ readonly inputPricePerMTok: 5;
252
+ readonly outputPricePerMTok: 30;
253
+ readonly cacheReadPricePerMTok: 0.5;
254
+ readonly cacheWritePricePerMTok: 6.25;
255
+ };
256
+ readonly 'gpt-5.6-terra': {
257
+ readonly contextWindow: 272000;
258
+ readonly maxTokens: 128000;
259
+ readonly inputPricePerMTok: 2.5;
260
+ readonly outputPricePerMTok: 15;
261
+ readonly cacheReadPricePerMTok: 0.25;
262
+ readonly cacheWritePricePerMTok: 3.125;
263
+ };
264
+ readonly 'gpt-realtime-2.1': {
265
+ readonly contextWindow: 128000;
266
+ readonly maxTokens: 32000;
267
+ readonly inputPricePerMTok: 4;
268
+ readonly outputPricePerMTok: 24;
269
+ readonly cacheReadPricePerMTok: 0.4;
270
+ readonly cacheWritePricePerMTok: 0;
271
+ };
272
+ readonly o1: {
273
+ readonly contextWindow: 200000;
274
+ readonly maxTokens: 100000;
275
+ readonly inputPricePerMTok: 15;
276
+ readonly outputPricePerMTok: 60;
277
+ readonly cacheReadPricePerMTok: 7.5;
278
+ readonly cacheWritePricePerMTok: 0;
279
+ };
280
+ readonly 'o1-pro': {
281
+ readonly contextWindow: 200000;
282
+ readonly maxTokens: 100000;
283
+ readonly inputPricePerMTok: 150;
284
+ readonly outputPricePerMTok: 600;
285
+ readonly cacheReadPricePerMTok: 0;
286
+ readonly cacheWritePricePerMTok: 0;
287
+ };
288
+ readonly o3: {
289
+ readonly contextWindow: 200000;
290
+ readonly maxTokens: 100000;
291
+ readonly inputPricePerMTok: 2;
292
+ readonly outputPricePerMTok: 8;
293
+ readonly cacheReadPricePerMTok: 0.5;
294
+ readonly cacheWritePricePerMTok: 0;
295
+ };
296
+ readonly 'o3-mini': {
297
+ readonly contextWindow: 200000;
298
+ readonly maxTokens: 100000;
299
+ readonly inputPricePerMTok: 1.1;
300
+ readonly outputPricePerMTok: 4.4;
301
+ readonly cacheReadPricePerMTok: 0.55;
302
+ readonly cacheWritePricePerMTok: 0;
303
+ };
304
+ readonly 'o3-pro': {
305
+ readonly contextWindow: 200000;
306
+ readonly maxTokens: 100000;
307
+ readonly inputPricePerMTok: 20;
308
+ readonly outputPricePerMTok: 80;
309
+ readonly cacheReadPricePerMTok: 0;
310
+ readonly cacheWritePricePerMTok: 0;
311
+ };
312
+ readonly 'o4-mini': {
313
+ readonly contextWindow: 200000;
314
+ readonly maxTokens: 100000;
315
+ readonly inputPricePerMTok: 1.1;
316
+ readonly outputPricePerMTok: 4.4;
317
+ readonly cacheReadPricePerMTok: 0.275;
318
+ readonly cacheWritePricePerMTok: 0;
319
+ };
320
+ };
321
+ readonly codex: {
322
+ readonly 'gpt-5.3-codex-spark': {
323
+ readonly contextWindow: 128000;
324
+ readonly maxTokens: 128000;
325
+ readonly inputPricePerMTok: 1.75;
326
+ readonly outputPricePerMTok: 14;
327
+ readonly cacheReadPricePerMTok: 0.175;
328
+ readonly cacheWritePricePerMTok: 0;
329
+ };
330
+ readonly 'gpt-5.4': {
331
+ readonly contextWindow: 272000;
332
+ readonly maxTokens: 128000;
333
+ readonly inputPricePerMTok: 2.5;
334
+ readonly outputPricePerMTok: 15;
335
+ readonly cacheReadPricePerMTok: 0.25;
336
+ readonly cacheWritePricePerMTok: 0;
337
+ };
338
+ readonly 'gpt-5.4-mini': {
339
+ readonly contextWindow: 272000;
340
+ readonly maxTokens: 128000;
341
+ readonly inputPricePerMTok: 0.75;
342
+ readonly outputPricePerMTok: 4.5;
343
+ readonly cacheReadPricePerMTok: 0.075;
344
+ readonly cacheWritePricePerMTok: 0;
345
+ };
346
+ readonly 'gpt-5.5': {
347
+ readonly contextWindow: 272000;
348
+ readonly maxTokens: 128000;
349
+ readonly inputPricePerMTok: 5;
350
+ readonly outputPricePerMTok: 30;
351
+ readonly cacheReadPricePerMTok: 0.5;
352
+ readonly cacheWritePricePerMTok: 0;
353
+ };
354
+ readonly 'gpt-5.6-luna': {
355
+ readonly contextWindow: 272000;
356
+ readonly maxTokens: 128000;
357
+ readonly inputPricePerMTok: 1;
358
+ readonly outputPricePerMTok: 6;
359
+ readonly cacheReadPricePerMTok: 0.1;
360
+ readonly cacheWritePricePerMTok: 1.25;
361
+ };
362
+ readonly 'gpt-5.6-sol': {
363
+ readonly contextWindow: 272000;
364
+ readonly maxTokens: 128000;
365
+ readonly inputPricePerMTok: 5;
366
+ readonly outputPricePerMTok: 30;
367
+ readonly cacheReadPricePerMTok: 0.5;
368
+ readonly cacheWritePricePerMTok: 6.25;
369
+ };
370
+ readonly 'gpt-5.6-terra': {
371
+ readonly contextWindow: 272000;
372
+ readonly maxTokens: 128000;
373
+ readonly inputPricePerMTok: 2.5;
374
+ readonly outputPricePerMTok: 15;
375
+ readonly cacheReadPricePerMTok: 0.25;
376
+ readonly cacheWritePricePerMTok: 3.125;
377
+ };
378
+ };
379
+ readonly openrouter: {
380
+ readonly 'ai21/jamba-large-1.7': {
381
+ readonly contextWindow: 256000;
382
+ readonly maxTokens: 4096;
383
+ readonly inputPricePerMTok: 2;
384
+ readonly outputPricePerMTok: 8;
385
+ readonly cacheReadPricePerMTok: 0;
386
+ readonly cacheWritePricePerMTok: 0;
387
+ };
388
+ readonly 'aion-labs/aion-2.0': {
389
+ readonly contextWindow: 131072;
390
+ readonly maxTokens: 32768;
391
+ readonly inputPricePerMTok: 0.8;
392
+ readonly outputPricePerMTok: 1.6;
393
+ readonly cacheReadPricePerMTok: 0.2;
394
+ readonly cacheWritePricePerMTok: 0;
395
+ };
396
+ readonly 'aion-labs/aion-3.0': {
397
+ readonly contextWindow: 131072;
398
+ readonly maxTokens: 32768;
399
+ readonly inputPricePerMTok: 3;
400
+ readonly outputPricePerMTok: 6;
401
+ readonly cacheReadPricePerMTok: 0.75;
402
+ readonly cacheWritePricePerMTok: 0;
403
+ };
404
+ readonly 'aion-labs/aion-3.0-mini': {
405
+ readonly contextWindow: 131072;
406
+ readonly maxTokens: 32768;
407
+ readonly inputPricePerMTok: 0.7;
408
+ readonly outputPricePerMTok: 1.4;
409
+ readonly cacheReadPricePerMTok: 0.18;
410
+ readonly cacheWritePricePerMTok: 0;
411
+ };
412
+ readonly 'amazon/nova-2-lite-v1': {
413
+ readonly contextWindow: 1000000;
414
+ readonly maxTokens: 65535;
415
+ readonly inputPricePerMTok: 0.3;
416
+ readonly outputPricePerMTok: 2.5;
417
+ readonly cacheReadPricePerMTok: 0;
418
+ readonly cacheWritePricePerMTok: 0;
419
+ };
420
+ readonly 'amazon/nova-lite-v1': {
421
+ readonly contextWindow: 300000;
422
+ readonly maxTokens: 5120;
423
+ readonly inputPricePerMTok: 0.06;
424
+ readonly outputPricePerMTok: 0.24;
425
+ readonly cacheReadPricePerMTok: 0;
426
+ readonly cacheWritePricePerMTok: 0;
427
+ };
428
+ readonly 'amazon/nova-micro-v1': {
429
+ readonly contextWindow: 128000;
430
+ readonly maxTokens: 5120;
431
+ readonly inputPricePerMTok: 0.035;
432
+ readonly outputPricePerMTok: 0.14;
433
+ readonly cacheReadPricePerMTok: 0;
434
+ readonly cacheWritePricePerMTok: 0;
435
+ };
436
+ readonly 'amazon/nova-premier-v1': {
437
+ readonly contextWindow: 1000000;
438
+ readonly maxTokens: 32000;
439
+ readonly inputPricePerMTok: 2.5;
440
+ readonly outputPricePerMTok: 12.5;
441
+ readonly cacheReadPricePerMTok: 0.625;
442
+ readonly cacheWritePricePerMTok: 0;
443
+ };
444
+ readonly 'amazon/nova-pro-v1': {
445
+ readonly contextWindow: 300000;
446
+ readonly maxTokens: 5120;
447
+ readonly inputPricePerMTok: 0.8;
448
+ readonly outputPricePerMTok: 3.2;
449
+ readonly cacheReadPricePerMTok: 0;
450
+ readonly cacheWritePricePerMTok: 0;
451
+ };
452
+ readonly 'anthropic/claude-3-haiku': {
453
+ readonly contextWindow: 200000;
454
+ readonly maxTokens: 4096;
455
+ readonly inputPricePerMTok: 0.25;
456
+ readonly outputPricePerMTok: 1.25;
457
+ readonly cacheReadPricePerMTok: 0.03;
458
+ readonly cacheWritePricePerMTok: 0.3;
459
+ };
460
+ readonly 'anthropic/claude-fable-5': {
461
+ readonly contextWindow: 1000000;
462
+ readonly maxTokens: 128000;
463
+ readonly inputPricePerMTok: 10;
464
+ readonly outputPricePerMTok: 50;
465
+ readonly cacheReadPricePerMTok: 1;
466
+ readonly cacheWritePricePerMTok: 12.5;
467
+ };
468
+ readonly 'anthropic/claude-fable-5:batch': {
469
+ readonly contextWindow: 1000000;
470
+ readonly maxTokens: 128000;
471
+ readonly inputPricePerMTok: 5;
472
+ readonly outputPricePerMTok: 25;
473
+ readonly cacheReadPricePerMTok: 0.5;
474
+ readonly cacheWritePricePerMTok: 6.25;
475
+ };
476
+ readonly 'anthropic/claude-haiku-4.5': {
477
+ readonly contextWindow: 200000;
478
+ readonly maxTokens: 64000;
479
+ readonly inputPricePerMTok: 1;
480
+ readonly outputPricePerMTok: 5;
481
+ readonly cacheReadPricePerMTok: 0.1;
482
+ readonly cacheWritePricePerMTok: 1.25;
483
+ };
484
+ readonly 'anthropic/claude-haiku-4.5:batch': {
485
+ readonly contextWindow: 200000;
486
+ readonly maxTokens: 64000;
487
+ readonly inputPricePerMTok: 0.5;
488
+ readonly outputPricePerMTok: 2.5;
489
+ readonly cacheReadPricePerMTok: 0.05;
490
+ readonly cacheWritePricePerMTok: 0.625;
491
+ };
492
+ readonly 'anthropic/claude-opus-4': {
493
+ readonly contextWindow: 200000;
494
+ readonly maxTokens: 32000;
495
+ readonly inputPricePerMTok: 15;
496
+ readonly outputPricePerMTok: 75;
497
+ readonly cacheReadPricePerMTok: 1.5;
498
+ readonly cacheWritePricePerMTok: 18.75;
499
+ };
500
+ readonly 'anthropic/claude-opus-4.1': {
501
+ readonly contextWindow: 200000;
502
+ readonly maxTokens: 32000;
503
+ readonly inputPricePerMTok: 15;
504
+ readonly outputPricePerMTok: 75;
505
+ readonly cacheReadPricePerMTok: 1.5;
506
+ readonly cacheWritePricePerMTok: 18.75;
507
+ };
508
+ readonly 'anthropic/claude-opus-4.1:batch': {
509
+ readonly contextWindow: 200000;
510
+ readonly maxTokens: 32000;
511
+ readonly inputPricePerMTok: 7.5;
512
+ readonly outputPricePerMTok: 37.5;
513
+ readonly cacheReadPricePerMTok: 0.75;
514
+ readonly cacheWritePricePerMTok: 9.375;
515
+ };
516
+ readonly 'anthropic/claude-opus-4.5': {
517
+ readonly contextWindow: 200000;
518
+ readonly maxTokens: 64000;
519
+ readonly inputPricePerMTok: 5;
520
+ readonly outputPricePerMTok: 25;
521
+ readonly cacheReadPricePerMTok: 0.5;
522
+ readonly cacheWritePricePerMTok: 6.25;
523
+ };
524
+ readonly 'anthropic/claude-opus-4.5:batch': {
525
+ readonly contextWindow: 200000;
526
+ readonly maxTokens: 64000;
527
+ readonly inputPricePerMTok: 2.5;
528
+ readonly outputPricePerMTok: 12.5;
529
+ readonly cacheReadPricePerMTok: 0.25;
530
+ readonly cacheWritePricePerMTok: 3.125;
531
+ };
532
+ readonly 'anthropic/claude-opus-4.6': {
533
+ readonly contextWindow: 1000000;
534
+ readonly maxTokens: 128000;
535
+ readonly inputPricePerMTok: 5;
536
+ readonly outputPricePerMTok: 25;
537
+ readonly cacheReadPricePerMTok: 0.5;
538
+ readonly cacheWritePricePerMTok: 6.25;
539
+ };
540
+ readonly 'anthropic/claude-opus-4.6:batch': {
541
+ readonly contextWindow: 1000000;
542
+ readonly maxTokens: 128000;
543
+ readonly inputPricePerMTok: 2.5;
544
+ readonly outputPricePerMTok: 12.5;
545
+ readonly cacheReadPricePerMTok: 0.25;
546
+ readonly cacheWritePricePerMTok: 3.125;
547
+ };
548
+ readonly 'anthropic/claude-opus-4.7': {
549
+ readonly contextWindow: 1000000;
550
+ readonly maxTokens: 128000;
551
+ readonly inputPricePerMTok: 5;
552
+ readonly outputPricePerMTok: 25;
553
+ readonly cacheReadPricePerMTok: 0.5;
554
+ readonly cacheWritePricePerMTok: 6.25;
555
+ };
556
+ readonly 'anthropic/claude-opus-4.7-fast': {
557
+ readonly contextWindow: 1000000;
558
+ readonly maxTokens: 128000;
559
+ readonly inputPricePerMTok: 30;
560
+ readonly outputPricePerMTok: 150;
561
+ readonly cacheReadPricePerMTok: 3;
562
+ readonly cacheWritePricePerMTok: 37.5;
563
+ };
564
+ readonly 'anthropic/claude-opus-4.7:batch': {
565
+ readonly contextWindow: 1000000;
566
+ readonly maxTokens: 128000;
567
+ readonly inputPricePerMTok: 2.5;
568
+ readonly outputPricePerMTok: 12.5;
569
+ readonly cacheReadPricePerMTok: 0.25;
570
+ readonly cacheWritePricePerMTok: 3.125;
571
+ };
572
+ readonly 'anthropic/claude-opus-4.8': {
573
+ readonly contextWindow: 1000000;
574
+ readonly maxTokens: 128000;
575
+ readonly inputPricePerMTok: 5;
576
+ readonly outputPricePerMTok: 25;
577
+ readonly cacheReadPricePerMTok: 0.5;
578
+ readonly cacheWritePricePerMTok: 6.25;
579
+ };
580
+ readonly 'anthropic/claude-opus-4.8-fast': {
581
+ readonly contextWindow: 1000000;
582
+ readonly maxTokens: 128000;
583
+ readonly inputPricePerMTok: 10;
584
+ readonly outputPricePerMTok: 50;
585
+ readonly cacheReadPricePerMTok: 1;
586
+ readonly cacheWritePricePerMTok: 12.5;
587
+ };
588
+ readonly 'anthropic/claude-opus-4.8:batch': {
589
+ readonly contextWindow: 1000000;
590
+ readonly maxTokens: 128000;
591
+ readonly inputPricePerMTok: 2.5;
592
+ readonly outputPricePerMTok: 12.5;
593
+ readonly cacheReadPricePerMTok: 0.25;
594
+ readonly cacheWritePricePerMTok: 3.125;
595
+ };
596
+ readonly 'anthropic/claude-opus-5': {
597
+ readonly contextWindow: 1000000;
598
+ readonly maxTokens: 128000;
599
+ readonly inputPricePerMTok: 5;
600
+ readonly outputPricePerMTok: 25;
601
+ readonly cacheReadPricePerMTok: 0.5;
602
+ readonly cacheWritePricePerMTok: 6.25;
603
+ };
604
+ readonly 'anthropic/claude-opus-5-fast': {
605
+ readonly contextWindow: 1000000;
606
+ readonly maxTokens: 128000;
607
+ readonly inputPricePerMTok: 10;
608
+ readonly outputPricePerMTok: 50;
609
+ readonly cacheReadPricePerMTok: 1;
610
+ readonly cacheWritePricePerMTok: 12.5;
611
+ };
612
+ readonly 'anthropic/claude-sonnet-4': {
613
+ readonly contextWindow: 200000;
614
+ readonly maxTokens: 64000;
615
+ readonly inputPricePerMTok: 3;
616
+ readonly outputPricePerMTok: 15;
617
+ readonly cacheReadPricePerMTok: 0.3;
618
+ readonly cacheWritePricePerMTok: 3.75;
619
+ };
620
+ readonly 'anthropic/claude-sonnet-4.5': {
621
+ readonly contextWindow: 1000000;
622
+ readonly maxTokens: 64000;
623
+ readonly inputPricePerMTok: 3;
624
+ readonly outputPricePerMTok: 15;
625
+ readonly cacheReadPricePerMTok: 0.3;
626
+ readonly cacheWritePricePerMTok: 3.75;
627
+ };
628
+ readonly 'anthropic/claude-sonnet-4.5:batch': {
629
+ readonly contextWindow: 1000000;
630
+ readonly maxTokens: 64000;
631
+ readonly inputPricePerMTok: 1.5;
632
+ readonly outputPricePerMTok: 7.5;
633
+ readonly cacheReadPricePerMTok: 0.15;
634
+ readonly cacheWritePricePerMTok: 1.875;
635
+ };
636
+ readonly 'anthropic/claude-sonnet-4.6': {
637
+ readonly contextWindow: 1000000;
638
+ readonly maxTokens: 128000;
639
+ readonly inputPricePerMTok: 3;
640
+ readonly outputPricePerMTok: 15;
641
+ readonly cacheReadPricePerMTok: 0.3;
642
+ readonly cacheWritePricePerMTok: 3.75;
643
+ };
644
+ readonly 'anthropic/claude-sonnet-5': {
645
+ readonly contextWindow: 1000000;
646
+ readonly maxTokens: 128000;
647
+ readonly inputPricePerMTok: 2;
648
+ readonly outputPricePerMTok: 10;
649
+ readonly cacheReadPricePerMTok: 0.2;
650
+ readonly cacheWritePricePerMTok: 2.5;
651
+ };
652
+ readonly 'anthropic/claude-sonnet-5:batch': {
653
+ readonly contextWindow: 1000000;
654
+ readonly maxTokens: 128000;
655
+ readonly inputPricePerMTok: 1;
656
+ readonly outputPricePerMTok: 5;
657
+ readonly cacheReadPricePerMTok: 0.1;
658
+ readonly cacheWritePricePerMTok: 1.25;
659
+ };
660
+ readonly 'arcee-ai/trinity-large-thinking': {
661
+ readonly contextWindow: 262144;
662
+ readonly maxTokens: 262144;
663
+ readonly inputPricePerMTok: 0.22;
664
+ readonly outputPricePerMTok: 0.85;
665
+ readonly cacheReadPricePerMTok: 0.06;
666
+ readonly cacheWritePricePerMTok: 0;
667
+ };
668
+ readonly 'arcee-ai/virtuoso-large': {
669
+ readonly contextWindow: 131072;
670
+ readonly maxTokens: 64000;
671
+ readonly inputPricePerMTok: 0.75;
672
+ readonly outputPricePerMTok: 1.2;
673
+ readonly cacheReadPricePerMTok: 0;
674
+ readonly cacheWritePricePerMTok: 0;
675
+ };
676
+ readonly auto: {
677
+ readonly contextWindow: 2000000;
678
+ readonly maxTokens: 30000;
679
+ readonly inputPricePerMTok: 0;
680
+ readonly outputPricePerMTok: 0;
681
+ readonly cacheReadPricePerMTok: 0;
682
+ readonly cacheWritePricePerMTok: 0;
683
+ };
684
+ readonly 'bytedance-seed/seed-1.6': {
685
+ readonly contextWindow: 262144;
686
+ readonly maxTokens: 32768;
687
+ readonly inputPricePerMTok: 0.25;
688
+ readonly outputPricePerMTok: 2;
689
+ readonly cacheReadPricePerMTok: 0;
690
+ readonly cacheWritePricePerMTok: 0;
691
+ };
692
+ readonly 'bytedance-seed/seed-1.6-flash': {
693
+ readonly contextWindow: 262144;
694
+ readonly maxTokens: 32768;
695
+ readonly inputPricePerMTok: 0.075;
696
+ readonly outputPricePerMTok: 0.3;
697
+ readonly cacheReadPricePerMTok: 0;
698
+ readonly cacheWritePricePerMTok: 0;
699
+ };
700
+ readonly 'bytedance-seed/seed-2.0-lite': {
701
+ readonly contextWindow: 262144;
702
+ readonly maxTokens: 131072;
703
+ readonly inputPricePerMTok: 0.25;
704
+ readonly outputPricePerMTok: 2;
705
+ readonly cacheReadPricePerMTok: 0;
706
+ readonly cacheWritePricePerMTok: 0;
707
+ };
708
+ readonly 'bytedance-seed/seed-2.0-mini': {
709
+ readonly contextWindow: 262144;
710
+ readonly maxTokens: 131072;
711
+ readonly inputPricePerMTok: 0.1;
712
+ readonly outputPricePerMTok: 0.4;
713
+ readonly cacheReadPricePerMTok: 0;
714
+ readonly cacheWritePricePerMTok: 0;
715
+ };
716
+ readonly 'cohere/command-r-08-2024': {
717
+ readonly contextWindow: 128000;
718
+ readonly maxTokens: 4000;
719
+ readonly inputPricePerMTok: 0.15;
720
+ readonly outputPricePerMTok: 0.6;
721
+ readonly cacheReadPricePerMTok: 0;
722
+ readonly cacheWritePricePerMTok: 0;
723
+ };
724
+ readonly 'cohere/command-r-plus-08-2024': {
725
+ readonly contextWindow: 128000;
726
+ readonly maxTokens: 4000;
727
+ readonly inputPricePerMTok: 2.5;
728
+ readonly outputPricePerMTok: 10;
729
+ readonly cacheReadPricePerMTok: 0;
730
+ readonly cacheWritePricePerMTok: 0;
731
+ };
732
+ readonly 'cohere/north-mini-code:free': {
733
+ readonly contextWindow: 256000;
734
+ readonly maxTokens: 64000;
735
+ readonly inputPricePerMTok: 0;
736
+ readonly outputPricePerMTok: 0;
737
+ readonly cacheReadPricePerMTok: 0;
738
+ readonly cacheWritePricePerMTok: 0;
739
+ };
740
+ readonly 'deepseek/deepseek-chat': {
741
+ readonly contextWindow: 128000;
742
+ readonly maxTokens: 16000;
743
+ readonly inputPricePerMTok: 0.2002;
744
+ readonly outputPricePerMTok: 0.8001;
745
+ readonly cacheReadPricePerMTok: 0;
746
+ readonly cacheWritePricePerMTok: 0;
747
+ };
748
+ readonly 'deepseek/deepseek-chat-v3-0324': {
749
+ readonly contextWindow: 163840;
750
+ readonly maxTokens: 65536;
751
+ readonly inputPricePerMTok: 0.27;
752
+ readonly outputPricePerMTok: 1.12;
753
+ readonly cacheReadPricePerMTok: 0.135;
754
+ readonly cacheWritePricePerMTok: 0;
755
+ };
756
+ readonly 'deepseek/deepseek-chat-v3.1': {
757
+ readonly contextWindow: 163840;
758
+ readonly maxTokens: 32768;
759
+ readonly inputPricePerMTok: 0.25;
760
+ readonly outputPricePerMTok: 0.95;
761
+ readonly cacheReadPricePerMTok: 0.13;
762
+ readonly cacheWritePricePerMTok: 0;
763
+ };
764
+ readonly 'deepseek/deepseek-r1': {
765
+ readonly contextWindow: 64000;
766
+ readonly maxTokens: 16000;
767
+ readonly inputPricePerMTok: 0.7;
768
+ readonly outputPricePerMTok: 2.5;
769
+ readonly cacheReadPricePerMTok: 0;
770
+ readonly cacheWritePricePerMTok: 0;
771
+ };
772
+ readonly 'deepseek/deepseek-r1-0528': {
773
+ readonly contextWindow: 163840;
774
+ readonly maxTokens: 32768;
775
+ readonly inputPricePerMTok: 0.5;
776
+ readonly outputPricePerMTok: 2.15;
777
+ readonly cacheReadPricePerMTok: 0.35;
778
+ readonly cacheWritePricePerMTok: 0;
779
+ };
780
+ readonly 'deepseek/deepseek-v3.1-terminus': {
781
+ readonly contextWindow: 131072;
782
+ readonly maxTokens: 32768;
783
+ readonly inputPricePerMTok: 0.27;
784
+ readonly outputPricePerMTok: 1;
785
+ readonly cacheReadPricePerMTok: 0.135;
786
+ readonly cacheWritePricePerMTok: 0;
787
+ };
788
+ readonly 'deepseek/deepseek-v3.2': {
789
+ readonly contextWindow: 163840;
790
+ readonly maxTokens: 65536;
791
+ readonly inputPricePerMTok: 0.269;
792
+ readonly outputPricePerMTok: 0.4;
793
+ readonly cacheReadPricePerMTok: 0.1345;
794
+ readonly cacheWritePricePerMTok: 0;
795
+ };
796
+ readonly 'deepseek/deepseek-v3.2-exp': {
797
+ readonly contextWindow: 163840;
798
+ readonly maxTokens: 65536;
799
+ readonly inputPricePerMTok: 0.27;
800
+ readonly outputPricePerMTok: 0.41;
801
+ readonly cacheReadPricePerMTok: 0;
802
+ readonly cacheWritePricePerMTok: 0;
803
+ };
804
+ readonly 'deepseek/deepseek-v4-flash': {
805
+ readonly contextWindow: 1048576;
806
+ readonly maxTokens: 393216;
807
+ readonly inputPricePerMTok: 0.14;
808
+ readonly outputPricePerMTok: 0.28;
809
+ readonly cacheReadPricePerMTok: 0.028;
810
+ readonly cacheWritePricePerMTok: 0;
811
+ };
812
+ readonly 'deepseek/deepseek-v4-pro': {
813
+ readonly contextWindow: 1048576;
814
+ readonly maxTokens: 384000;
815
+ readonly inputPricePerMTok: 0.435;
816
+ readonly outputPricePerMTok: 0.87;
817
+ readonly cacheReadPricePerMTok: 0.003625;
818
+ readonly cacheWritePricePerMTok: 0;
819
+ };
820
+ readonly 'google/gemini-2.5-flash': {
821
+ readonly contextWindow: 1048576;
822
+ readonly maxTokens: 65535;
823
+ readonly inputPricePerMTok: 0.3;
824
+ readonly outputPricePerMTok: 2.5;
825
+ readonly cacheReadPricePerMTok: 0.03;
826
+ readonly cacheWritePricePerMTok: 0.083333;
827
+ };
828
+ readonly 'google/gemini-2.5-flash-lite': {
829
+ readonly contextWindow: 1048576;
830
+ readonly maxTokens: 65535;
831
+ readonly inputPricePerMTok: 0.1;
832
+ readonly outputPricePerMTok: 0.4;
833
+ readonly cacheReadPricePerMTok: 0.01;
834
+ readonly cacheWritePricePerMTok: 0.083333;
835
+ };
836
+ readonly 'google/gemini-2.5-flash-lite:batch': {
837
+ readonly contextWindow: 1048576;
838
+ readonly maxTokens: 65535;
839
+ readonly inputPricePerMTok: 0.05;
840
+ readonly outputPricePerMTok: 0.2;
841
+ readonly cacheReadPricePerMTok: 0.01;
842
+ readonly cacheWritePricePerMTok: 0;
843
+ };
844
+ readonly 'google/gemini-2.5-flash:batch': {
845
+ readonly contextWindow: 1048576;
846
+ readonly maxTokens: 65535;
847
+ readonly inputPricePerMTok: 0.15;
848
+ readonly outputPricePerMTok: 1.25;
849
+ readonly cacheReadPricePerMTok: 0.03;
850
+ readonly cacheWritePricePerMTok: 0;
851
+ };
852
+ readonly 'google/gemini-2.5-pro': {
853
+ readonly contextWindow: 1048576;
854
+ readonly maxTokens: 65536;
855
+ readonly inputPricePerMTok: 1.25;
856
+ readonly outputPricePerMTok: 10;
857
+ readonly cacheReadPricePerMTok: 0.125;
858
+ readonly cacheWritePricePerMTok: 0.375;
859
+ };
860
+ readonly 'google/gemini-2.5-pro-preview': {
861
+ readonly contextWindow: 1048576;
862
+ readonly maxTokens: 65536;
863
+ readonly inputPricePerMTok: 1.25;
864
+ readonly outputPricePerMTok: 10;
865
+ readonly cacheReadPricePerMTok: 0.125;
866
+ readonly cacheWritePricePerMTok: 0.375;
867
+ };
868
+ readonly 'google/gemini-2.5-pro-preview-05-06': {
869
+ readonly contextWindow: 1048576;
870
+ readonly maxTokens: 65535;
871
+ readonly inputPricePerMTok: 1.25;
872
+ readonly outputPricePerMTok: 10;
873
+ readonly cacheReadPricePerMTok: 0.125;
874
+ readonly cacheWritePricePerMTok: 0.375;
875
+ };
876
+ readonly 'google/gemini-2.5-pro:batch': {
877
+ readonly contextWindow: 1048576;
878
+ readonly maxTokens: 65536;
879
+ readonly inputPricePerMTok: 0.625;
880
+ readonly outputPricePerMTok: 5;
881
+ readonly cacheReadPricePerMTok: 0.125;
882
+ readonly cacheWritePricePerMTok: 0;
883
+ };
884
+ readonly 'google/gemini-3-flash-preview': {
885
+ readonly contextWindow: 1048576;
886
+ readonly maxTokens: 65535;
887
+ readonly inputPricePerMTok: 0.5;
888
+ readonly outputPricePerMTok: 3;
889
+ readonly cacheReadPricePerMTok: 0.05;
890
+ readonly cacheWritePricePerMTok: 0.083333;
891
+ };
892
+ readonly 'google/gemini-3-flash-preview:batch': {
893
+ readonly contextWindow: 1048576;
894
+ readonly maxTokens: 65535;
895
+ readonly inputPricePerMTok: 0.25;
896
+ readonly outputPricePerMTok: 1.5;
897
+ readonly cacheReadPricePerMTok: 0;
898
+ readonly cacheWritePricePerMTok: 0;
899
+ };
900
+ readonly 'google/gemini-3-pro-image': {
901
+ readonly contextWindow: 65536;
902
+ readonly maxTokens: 32768;
903
+ readonly inputPricePerMTok: 2;
904
+ readonly outputPricePerMTok: 12;
905
+ readonly cacheReadPricePerMTok: 0.2;
906
+ readonly cacheWritePricePerMTok: 0.375;
907
+ };
908
+ readonly 'google/gemini-3.1-flash-lite': {
909
+ readonly contextWindow: 1048576;
910
+ readonly maxTokens: 65536;
911
+ readonly inputPricePerMTok: 0.25;
912
+ readonly outputPricePerMTok: 1.5;
913
+ readonly cacheReadPricePerMTok: 0.025;
914
+ readonly cacheWritePricePerMTok: 0.083333;
915
+ };
916
+ readonly 'google/gemini-3.1-flash-lite-preview': {
917
+ readonly contextWindow: 1048576;
918
+ readonly maxTokens: 65536;
919
+ readonly inputPricePerMTok: 0.25;
920
+ readonly outputPricePerMTok: 1.5;
921
+ readonly cacheReadPricePerMTok: 0.025;
922
+ readonly cacheWritePricePerMTok: 0.083333;
923
+ };
924
+ readonly 'google/gemini-3.1-flash-lite:batch': {
925
+ readonly contextWindow: 1048576;
926
+ readonly maxTokens: 65536;
927
+ readonly inputPricePerMTok: 0.125;
928
+ readonly outputPricePerMTok: 0.75;
929
+ readonly cacheReadPricePerMTok: 0.0125;
930
+ readonly cacheWritePricePerMTok: 0;
931
+ };
932
+ readonly 'google/gemini-3.1-pro-preview': {
933
+ readonly contextWindow: 1048576;
934
+ readonly maxTokens: 65536;
935
+ readonly inputPricePerMTok: 2;
936
+ readonly outputPricePerMTok: 12;
937
+ readonly cacheReadPricePerMTok: 0.2;
938
+ readonly cacheWritePricePerMTok: 0.375;
939
+ };
940
+ readonly 'google/gemini-3.1-pro-preview-customtools': {
941
+ readonly contextWindow: 1048576;
942
+ readonly maxTokens: 65536;
943
+ readonly inputPricePerMTok: 2;
944
+ readonly outputPricePerMTok: 12;
945
+ readonly cacheReadPricePerMTok: 0.2;
946
+ readonly cacheWritePricePerMTok: 0.375;
947
+ };
948
+ readonly 'google/gemini-3.1-pro-preview:batch': {
949
+ readonly contextWindow: 1048576;
950
+ readonly maxTokens: 65536;
951
+ readonly inputPricePerMTok: 1;
952
+ readonly outputPricePerMTok: 6;
953
+ readonly cacheReadPricePerMTok: 0;
954
+ readonly cacheWritePricePerMTok: 0;
955
+ };
956
+ readonly 'google/gemini-3.5-flash': {
957
+ readonly contextWindow: 1048576;
958
+ readonly maxTokens: 65536;
959
+ readonly inputPricePerMTok: 1.5;
960
+ readonly outputPricePerMTok: 9;
961
+ readonly cacheReadPricePerMTok: 0.15;
962
+ readonly cacheWritePricePerMTok: 0.083333;
963
+ };
964
+ readonly 'google/gemini-3.5-flash-lite': {
965
+ readonly contextWindow: 1048576;
966
+ readonly maxTokens: 65536;
967
+ readonly inputPricePerMTok: 0.3;
968
+ readonly outputPricePerMTok: 2.5;
969
+ readonly cacheReadPricePerMTok: 0.03;
970
+ readonly cacheWritePricePerMTok: 0.083333;
971
+ };
972
+ readonly 'google/gemini-3.5-flash-lite:batch': {
973
+ readonly contextWindow: 1048576;
974
+ readonly maxTokens: 65536;
975
+ readonly inputPricePerMTok: 0.15;
976
+ readonly outputPricePerMTok: 1.25;
977
+ readonly cacheReadPricePerMTok: 0.015;
978
+ readonly cacheWritePricePerMTok: 0;
979
+ };
980
+ readonly 'google/gemini-3.5-flash:batch': {
981
+ readonly contextWindow: 1048576;
982
+ readonly maxTokens: 65536;
983
+ readonly inputPricePerMTok: 0.75;
984
+ readonly outputPricePerMTok: 4.5;
985
+ readonly cacheReadPricePerMTok: 0.075;
986
+ readonly cacheWritePricePerMTok: 0;
987
+ };
988
+ readonly 'google/gemini-3.6-flash': {
989
+ readonly contextWindow: 1048576;
990
+ readonly maxTokens: 65536;
991
+ readonly inputPricePerMTok: 1.5;
992
+ readonly outputPricePerMTok: 7.5;
993
+ readonly cacheReadPricePerMTok: 0.15;
994
+ readonly cacheWritePricePerMTok: 0.083333;
995
+ };
996
+ readonly 'google/gemini-3.6-flash:batch': {
997
+ readonly contextWindow: 1048576;
998
+ readonly maxTokens: 65536;
999
+ readonly inputPricePerMTok: 0.75;
1000
+ readonly outputPricePerMTok: 3.75;
1001
+ readonly cacheReadPricePerMTok: 0.075;
1002
+ readonly cacheWritePricePerMTok: 0.083333;
1003
+ };
1004
+ readonly 'google/gemma-3-12b-it': {
1005
+ readonly contextWindow: 131072;
1006
+ readonly maxTokens: 16384;
1007
+ readonly inputPricePerMTok: 0.05;
1008
+ readonly outputPricePerMTok: 0.15;
1009
+ readonly cacheReadPricePerMTok: 0;
1010
+ readonly cacheWritePricePerMTok: 0;
1011
+ };
1012
+ readonly 'google/gemma-3-27b-it': {
1013
+ readonly contextWindow: 131072;
1014
+ readonly maxTokens: 131072;
1015
+ readonly inputPricePerMTok: 0.08;
1016
+ readonly outputPricePerMTok: 0.45;
1017
+ readonly cacheReadPricePerMTok: 0.04;
1018
+ readonly cacheWritePricePerMTok: 0;
1019
+ };
1020
+ readonly 'google/gemma-4-26b-a4b-it': {
1021
+ readonly contextWindow: 262144;
1022
+ readonly maxTokens: 16384;
1023
+ readonly inputPricePerMTok: 0.07;
1024
+ readonly outputPricePerMTok: 0.34;
1025
+ readonly cacheReadPricePerMTok: 0;
1026
+ readonly cacheWritePricePerMTok: 0;
1027
+ };
1028
+ readonly 'google/gemma-4-26b-a4b-it:free': {
1029
+ readonly contextWindow: 131072;
1030
+ readonly maxTokens: 32768;
1031
+ readonly inputPricePerMTok: 0;
1032
+ readonly outputPricePerMTok: 0;
1033
+ readonly cacheReadPricePerMTok: 0;
1034
+ readonly cacheWritePricePerMTok: 0;
1035
+ };
1036
+ readonly 'google/gemma-4-31b-it': {
1037
+ readonly contextWindow: 262144;
1038
+ readonly maxTokens: 262144;
1039
+ readonly inputPricePerMTok: 0.14;
1040
+ readonly outputPricePerMTok: 0.4;
1041
+ readonly cacheReadPricePerMTok: 0;
1042
+ readonly cacheWritePricePerMTok: 0;
1043
+ };
1044
+ readonly 'google/gemma-4-31b-it:free': {
1045
+ readonly contextWindow: 262144;
1046
+ readonly maxTokens: 32768;
1047
+ readonly inputPricePerMTok: 0;
1048
+ readonly outputPricePerMTok: 0;
1049
+ readonly cacheReadPricePerMTok: 0;
1050
+ readonly cacheWritePricePerMTok: 0;
1051
+ };
1052
+ readonly 'ibm-granite/granite-4.1-8b': {
1053
+ readonly contextWindow: 131072;
1054
+ readonly maxTokens: 131072;
1055
+ readonly inputPricePerMTok: 0.05;
1056
+ readonly outputPricePerMTok: 0.1;
1057
+ readonly cacheReadPricePerMTok: 0.05;
1058
+ readonly cacheWritePricePerMTok: 0;
1059
+ };
1060
+ readonly 'inception/mercury-2': {
1061
+ readonly contextWindow: 128000;
1062
+ readonly maxTokens: 50000;
1063
+ readonly inputPricePerMTok: 0.25;
1064
+ readonly outputPricePerMTok: 0.75;
1065
+ readonly cacheReadPricePerMTok: 0.025;
1066
+ readonly cacheWritePricePerMTok: 0;
1067
+ };
1068
+ readonly 'inclusionai/ling-2.6-1t': {
1069
+ readonly contextWindow: 262144;
1070
+ readonly maxTokens: 32768;
1071
+ readonly inputPricePerMTok: 0.075;
1072
+ readonly outputPricePerMTok: 0.625;
1073
+ readonly cacheReadPricePerMTok: 0.015;
1074
+ readonly cacheWritePricePerMTok: 0;
1075
+ };
1076
+ readonly 'inclusionai/ling-2.6-flash': {
1077
+ readonly contextWindow: 262144;
1078
+ readonly maxTokens: 32768;
1079
+ readonly inputPricePerMTok: 0.01;
1080
+ readonly outputPricePerMTok: 0.03;
1081
+ readonly cacheReadPricePerMTok: 0.002;
1082
+ readonly cacheWritePricePerMTok: 0;
1083
+ };
1084
+ readonly 'inclusionai/ling-3.0-flash:free': {
1085
+ readonly contextWindow: 262144;
1086
+ readonly maxTokens: 32768;
1087
+ readonly inputPricePerMTok: 0;
1088
+ readonly outputPricePerMTok: 0;
1089
+ readonly cacheReadPricePerMTok: 0;
1090
+ readonly cacheWritePricePerMTok: 0;
1091
+ };
1092
+ readonly 'inclusionai/ring-2.6-1t': {
1093
+ readonly contextWindow: 262144;
1094
+ readonly maxTokens: 65536;
1095
+ readonly inputPricePerMTok: 0.075;
1096
+ readonly outputPricePerMTok: 0.625;
1097
+ readonly cacheReadPricePerMTok: 0.015;
1098
+ readonly cacheWritePricePerMTok: 0;
1099
+ };
1100
+ readonly 'kwaipilot/kat-coder-air-v2.5': {
1101
+ readonly contextWindow: 256000;
1102
+ readonly maxTokens: 80000;
1103
+ readonly inputPricePerMTok: 0.15;
1104
+ readonly outputPricePerMTok: 0.6;
1105
+ readonly cacheReadPricePerMTok: 0.03;
1106
+ readonly cacheWritePricePerMTok: 0;
1107
+ };
1108
+ readonly 'kwaipilot/kat-coder-pro-v2': {
1109
+ readonly contextWindow: 256000;
1110
+ readonly maxTokens: 80000;
1111
+ readonly inputPricePerMTok: 0.3;
1112
+ readonly outputPricePerMTok: 1.2;
1113
+ readonly cacheReadPricePerMTok: 0.06;
1114
+ readonly cacheWritePricePerMTok: 0;
1115
+ };
1116
+ readonly 'kwaipilot/kat-coder-pro-v2.5': {
1117
+ readonly contextWindow: 256000;
1118
+ readonly maxTokens: 80000;
1119
+ readonly inputPricePerMTok: 0.74;
1120
+ readonly outputPricePerMTok: 2.96;
1121
+ readonly cacheReadPricePerMTok: 0.15;
1122
+ readonly cacheWritePricePerMTok: 0;
1123
+ };
1124
+ readonly 'meituan/longcat-2.0': {
1125
+ readonly contextWindow: 1048756;
1126
+ readonly maxTokens: 262144;
1127
+ readonly inputPricePerMTok: 0.3;
1128
+ readonly outputPricePerMTok: 1.2;
1129
+ readonly cacheReadPricePerMTok: 0.006;
1130
+ readonly cacheWritePricePerMTok: 0;
1131
+ };
1132
+ readonly 'meta-llama/llama-3.1-70b-instruct': {
1133
+ readonly contextWindow: 131072;
1134
+ readonly maxTokens: 16384;
1135
+ readonly inputPricePerMTok: 0.4;
1136
+ readonly outputPricePerMTok: 0.4;
1137
+ readonly cacheReadPricePerMTok: 0;
1138
+ readonly cacheWritePricePerMTok: 0;
1139
+ };
1140
+ readonly 'meta-llama/llama-3.1-8b-instruct': {
1141
+ readonly contextWindow: 131072;
1142
+ readonly maxTokens: 131072;
1143
+ readonly inputPricePerMTok: 0.05;
1144
+ readonly outputPricePerMTok: 0.08;
1145
+ readonly cacheReadPricePerMTok: 0.025;
1146
+ readonly cacheWritePricePerMTok: 0;
1147
+ };
1148
+ readonly 'meta-llama/llama-3.3-70b-instruct': {
1149
+ readonly contextWindow: 131072;
1150
+ readonly maxTokens: 128000;
1151
+ readonly inputPricePerMTok: 0.13;
1152
+ readonly outputPricePerMTok: 0.4;
1153
+ readonly cacheReadPricePerMTok: 0;
1154
+ readonly cacheWritePricePerMTok: 0;
1155
+ };
1156
+ readonly 'meta-llama/llama-4-maverick': {
1157
+ readonly contextWindow: 1048576;
1158
+ readonly maxTokens: 16384;
1159
+ readonly inputPricePerMTok: 0.2;
1160
+ readonly outputPricePerMTok: 0.8;
1161
+ readonly cacheReadPricePerMTok: 0;
1162
+ readonly cacheWritePricePerMTok: 0;
1163
+ };
1164
+ readonly 'meta-llama/llama-4-scout': {
1165
+ readonly contextWindow: 327680;
1166
+ readonly maxTokens: 16384;
1167
+ readonly inputPricePerMTok: 0.1;
1168
+ readonly outputPricePerMTok: 0.3;
1169
+ readonly cacheReadPricePerMTok: 0;
1170
+ readonly cacheWritePricePerMTok: 0;
1171
+ };
1172
+ readonly 'meta/muse-spark-1.1': {
1173
+ readonly contextWindow: 1048576;
1174
+ readonly maxTokens: 4096;
1175
+ readonly inputPricePerMTok: 1.25;
1176
+ readonly outputPricePerMTok: 4.25;
1177
+ readonly cacheReadPricePerMTok: 0.15;
1178
+ readonly cacheWritePricePerMTok: 0;
1179
+ };
1180
+ readonly 'minimax/minimax-m1': {
1181
+ readonly contextWindow: 1000000;
1182
+ readonly maxTokens: 40000;
1183
+ readonly inputPricePerMTok: 0.55;
1184
+ readonly outputPricePerMTok: 2.2;
1185
+ readonly cacheReadPricePerMTok: 0;
1186
+ readonly cacheWritePricePerMTok: 0;
1187
+ };
1188
+ readonly 'minimax/minimax-m2': {
1189
+ readonly contextWindow: 204800;
1190
+ readonly maxTokens: 131072;
1191
+ readonly inputPricePerMTok: 0.255;
1192
+ readonly outputPricePerMTok: 1.02;
1193
+ readonly cacheReadPricePerMTok: 0;
1194
+ readonly cacheWritePricePerMTok: 0;
1195
+ };
1196
+ readonly 'minimax/minimax-m2.1': {
1197
+ readonly contextWindow: 204800;
1198
+ readonly maxTokens: 131072;
1199
+ readonly inputPricePerMTok: 0.3;
1200
+ readonly outputPricePerMTok: 1.2;
1201
+ readonly cacheReadPricePerMTok: 0.03;
1202
+ readonly cacheWritePricePerMTok: 0;
1203
+ };
1204
+ readonly 'minimax/minimax-m2.5': {
1205
+ readonly contextWindow: 196608;
1206
+ readonly maxTokens: 196608;
1207
+ readonly inputPricePerMTok: 0.15;
1208
+ readonly outputPricePerMTok: 0.9;
1209
+ readonly cacheReadPricePerMTok: 0.05;
1210
+ readonly cacheWritePricePerMTok: 0;
1211
+ };
1212
+ readonly 'minimax/minimax-m2.7': {
1213
+ readonly contextWindow: 196608;
1214
+ readonly maxTokens: 131072;
1215
+ readonly inputPricePerMTok: 0.25;
1216
+ readonly outputPricePerMTok: 1;
1217
+ readonly cacheReadPricePerMTok: 0.05;
1218
+ readonly cacheWritePricePerMTok: 0;
1219
+ };
1220
+ readonly 'minimax/minimax-m3': {
1221
+ readonly contextWindow: 524288;
1222
+ readonly maxTokens: 512000;
1223
+ readonly inputPricePerMTok: 0.3;
1224
+ readonly outputPricePerMTok: 1.2;
1225
+ readonly cacheReadPricePerMTok: 0.06;
1226
+ readonly cacheWritePricePerMTok: 0;
1227
+ };
1228
+ readonly 'minimax/minimax-m3:batch': {
1229
+ readonly contextWindow: 524288;
1230
+ readonly maxTokens: 4096;
1231
+ readonly inputPricePerMTok: 0.15;
1232
+ readonly outputPricePerMTok: 0.6;
1233
+ readonly cacheReadPricePerMTok: 0.03;
1234
+ readonly cacheWritePricePerMTok: 0;
1235
+ };
1236
+ readonly 'mistralai/codestral-2508': {
1237
+ readonly contextWindow: 256000;
1238
+ readonly maxTokens: 4096;
1239
+ readonly inputPricePerMTok: 0.3;
1240
+ readonly outputPricePerMTok: 0.9;
1241
+ readonly cacheReadPricePerMTok: 0.03;
1242
+ readonly cacheWritePricePerMTok: 0;
1243
+ };
1244
+ readonly 'mistralai/devstral-2512': {
1245
+ readonly contextWindow: 262144;
1246
+ readonly maxTokens: 4096;
1247
+ readonly inputPricePerMTok: 0.4;
1248
+ readonly outputPricePerMTok: 2;
1249
+ readonly cacheReadPricePerMTok: 0.04;
1250
+ readonly cacheWritePricePerMTok: 0;
1251
+ };
1252
+ readonly 'mistralai/ministral-14b-2512': {
1253
+ readonly contextWindow: 262144;
1254
+ readonly maxTokens: 4096;
1255
+ readonly inputPricePerMTok: 0.2;
1256
+ readonly outputPricePerMTok: 0.2;
1257
+ readonly cacheReadPricePerMTok: 0.02;
1258
+ readonly cacheWritePricePerMTok: 0;
1259
+ };
1260
+ readonly 'mistralai/ministral-3b-2512': {
1261
+ readonly contextWindow: 131072;
1262
+ readonly maxTokens: 4096;
1263
+ readonly inputPricePerMTok: 0.1;
1264
+ readonly outputPricePerMTok: 0.1;
1265
+ readonly cacheReadPricePerMTok: 0.01;
1266
+ readonly cacheWritePricePerMTok: 0;
1267
+ };
1268
+ readonly 'mistralai/ministral-8b-2512': {
1269
+ readonly contextWindow: 262144;
1270
+ readonly maxTokens: 4096;
1271
+ readonly inputPricePerMTok: 0.15;
1272
+ readonly outputPricePerMTok: 0.15;
1273
+ readonly cacheReadPricePerMTok: 0.015;
1274
+ readonly cacheWritePricePerMTok: 0;
1275
+ };
1276
+ readonly 'mistralai/mistral-large': {
1277
+ readonly contextWindow: 128000;
1278
+ readonly maxTokens: 4096;
1279
+ readonly inputPricePerMTok: 2;
1280
+ readonly outputPricePerMTok: 6;
1281
+ readonly cacheReadPricePerMTok: 0.2;
1282
+ readonly cacheWritePricePerMTok: 0;
1283
+ };
1284
+ readonly 'mistralai/mistral-large-2407': {
1285
+ readonly contextWindow: 131072;
1286
+ readonly maxTokens: 4096;
1287
+ readonly inputPricePerMTok: 2;
1288
+ readonly outputPricePerMTok: 6;
1289
+ readonly cacheReadPricePerMTok: 0.2;
1290
+ readonly cacheWritePricePerMTok: 0;
1291
+ };
1292
+ readonly 'mistralai/mistral-large-2512': {
1293
+ readonly contextWindow: 262144;
1294
+ readonly maxTokens: 4096;
1295
+ readonly inputPricePerMTok: 0.5;
1296
+ readonly outputPricePerMTok: 1.5;
1297
+ readonly cacheReadPricePerMTok: 0.05;
1298
+ readonly cacheWritePricePerMTok: 0;
1299
+ };
1300
+ readonly 'mistralai/mistral-medium-3': {
1301
+ readonly contextWindow: 131072;
1302
+ readonly maxTokens: 4096;
1303
+ readonly inputPricePerMTok: 0.4;
1304
+ readonly outputPricePerMTok: 2;
1305
+ readonly cacheReadPricePerMTok: 0.04;
1306
+ readonly cacheWritePricePerMTok: 0;
1307
+ };
1308
+ readonly 'mistralai/mistral-medium-3-5': {
1309
+ readonly contextWindow: 262144;
1310
+ readonly maxTokens: 4096;
1311
+ readonly inputPricePerMTok: 1.5;
1312
+ readonly outputPricePerMTok: 7.5;
1313
+ readonly cacheReadPricePerMTok: 0;
1314
+ readonly cacheWritePricePerMTok: 0;
1315
+ };
1316
+ readonly 'mistralai/mistral-medium-3.1': {
1317
+ readonly contextWindow: 131072;
1318
+ readonly maxTokens: 4096;
1319
+ readonly inputPricePerMTok: 0.4;
1320
+ readonly outputPricePerMTok: 2;
1321
+ readonly cacheReadPricePerMTok: 0.04;
1322
+ readonly cacheWritePricePerMTok: 0;
1323
+ };
1324
+ readonly 'mistralai/mistral-nemo': {
1325
+ readonly contextWindow: 131072;
1326
+ readonly maxTokens: 16384;
1327
+ readonly inputPricePerMTok: 0.019;
1328
+ readonly outputPricePerMTok: 0.03;
1329
+ readonly cacheReadPricePerMTok: 0;
1330
+ readonly cacheWritePricePerMTok: 0;
1331
+ };
1332
+ readonly 'mistralai/mistral-saba': {
1333
+ readonly contextWindow: 32768;
1334
+ readonly maxTokens: 4096;
1335
+ readonly inputPricePerMTok: 0.2;
1336
+ readonly outputPricePerMTok: 0.6;
1337
+ readonly cacheReadPricePerMTok: 0.02;
1338
+ readonly cacheWritePricePerMTok: 0;
1339
+ };
1340
+ readonly 'mistralai/mistral-small-2603': {
1341
+ readonly contextWindow: 262144;
1342
+ readonly maxTokens: 4096;
1343
+ readonly inputPricePerMTok: 0.15;
1344
+ readonly outputPricePerMTok: 0.6;
1345
+ readonly cacheReadPricePerMTok: 0.015;
1346
+ readonly cacheWritePricePerMTok: 0;
1347
+ };
1348
+ readonly 'mistralai/mistral-small-3.2-24b-instruct': {
1349
+ readonly contextWindow: 131072;
1350
+ readonly maxTokens: 4096;
1351
+ readonly inputPricePerMTok: 0.1;
1352
+ readonly outputPricePerMTok: 0.3;
1353
+ readonly cacheReadPricePerMTok: 0.01;
1354
+ readonly cacheWritePricePerMTok: 0;
1355
+ };
1356
+ readonly 'mistralai/mixtral-8x22b-instruct': {
1357
+ readonly contextWindow: 65536;
1358
+ readonly maxTokens: 4096;
1359
+ readonly inputPricePerMTok: 2;
1360
+ readonly outputPricePerMTok: 6;
1361
+ readonly cacheReadPricePerMTok: 0.2;
1362
+ readonly cacheWritePricePerMTok: 0;
1363
+ };
1364
+ readonly 'mistralai/voxtral-small-24b-2507': {
1365
+ readonly contextWindow: 32000;
1366
+ readonly maxTokens: 4096;
1367
+ readonly inputPricePerMTok: 0.1;
1368
+ readonly outputPricePerMTok: 0.3;
1369
+ readonly cacheReadPricePerMTok: 0.01;
1370
+ readonly cacheWritePricePerMTok: 0;
1371
+ };
1372
+ readonly 'moonshotai/kimi-k2': {
1373
+ readonly contextWindow: 131072;
1374
+ readonly maxTokens: 100352;
1375
+ readonly inputPricePerMTok: 0.57;
1376
+ readonly outputPricePerMTok: 2.3;
1377
+ readonly cacheReadPricePerMTok: 0;
1378
+ readonly cacheWritePricePerMTok: 0;
1379
+ };
1380
+ readonly 'moonshotai/kimi-k2-0905': {
1381
+ readonly contextWindow: 262144;
1382
+ readonly maxTokens: 100352;
1383
+ readonly inputPricePerMTok: 0.6;
1384
+ readonly outputPricePerMTok: 2.5;
1385
+ readonly cacheReadPricePerMTok: 0;
1386
+ readonly cacheWritePricePerMTok: 0;
1387
+ };
1388
+ readonly 'moonshotai/kimi-k2-thinking': {
1389
+ readonly contextWindow: 262144;
1390
+ readonly maxTokens: 100352;
1391
+ readonly inputPricePerMTok: 0.6;
1392
+ readonly outputPricePerMTok: 2.5;
1393
+ readonly cacheReadPricePerMTok: 0.15;
1394
+ readonly cacheWritePricePerMTok: 0;
1395
+ };
1396
+ readonly 'moonshotai/kimi-k2.5': {
1397
+ readonly contextWindow: 262144;
1398
+ readonly maxTokens: 4096;
1399
+ readonly inputPricePerMTok: 0.41;
1400
+ readonly outputPricePerMTok: 2.06;
1401
+ readonly cacheReadPricePerMTok: 0.07;
1402
+ readonly cacheWritePricePerMTok: 0;
1403
+ };
1404
+ readonly 'moonshotai/kimi-k2.6': {
1405
+ readonly contextWindow: 262144;
1406
+ readonly maxTokens: 262144;
1407
+ readonly inputPricePerMTok: 0.646;
1408
+ readonly outputPricePerMTok: 2.72;
1409
+ readonly cacheReadPricePerMTok: 0.1088;
1410
+ readonly cacheWritePricePerMTok: 0;
1411
+ };
1412
+ readonly 'moonshotai/kimi-k2.7-code': {
1413
+ readonly contextWindow: 262144;
1414
+ readonly maxTokens: 262144;
1415
+ readonly inputPricePerMTok: 0.73;
1416
+ readonly outputPricePerMTok: 3.5;
1417
+ readonly cacheReadPricePerMTok: 0.15;
1418
+ readonly cacheWritePricePerMTok: 0;
1419
+ };
1420
+ readonly 'moonshotai/kimi-k3': {
1421
+ readonly contextWindow: 1048576;
1422
+ readonly maxTokens: 131072;
1423
+ readonly inputPricePerMTok: 3;
1424
+ readonly outputPricePerMTok: 15;
1425
+ readonly cacheReadPricePerMTok: 0.3;
1426
+ readonly cacheWritePricePerMTok: 0;
1427
+ };
1428
+ readonly 'nex-agi/nex-n2-mini': {
1429
+ readonly contextWindow: 262144;
1430
+ readonly maxTokens: 262144;
1431
+ readonly inputPricePerMTok: 0.025;
1432
+ readonly outputPricePerMTok: 0.1;
1433
+ readonly cacheReadPricePerMTok: 0.0025;
1434
+ readonly cacheWritePricePerMTok: 0;
1435
+ };
1436
+ readonly 'nex-agi/nex-n2-pro': {
1437
+ readonly contextWindow: 262144;
1438
+ readonly maxTokens: 262144;
1439
+ readonly inputPricePerMTok: 0.25;
1440
+ readonly outputPricePerMTok: 1;
1441
+ readonly cacheReadPricePerMTok: 0.025;
1442
+ readonly cacheWritePricePerMTok: 0;
1443
+ };
1444
+ readonly 'nvidia/nemotron-3-nano-30b-a3b': {
1445
+ readonly contextWindow: 262144;
1446
+ readonly maxTokens: 228000;
1447
+ readonly inputPricePerMTok: 0.05;
1448
+ readonly outputPricePerMTok: 0.2;
1449
+ readonly cacheReadPricePerMTok: 0.025;
1450
+ readonly cacheWritePricePerMTok: 0;
1451
+ };
1452
+ readonly 'nvidia/nemotron-3-nano-30b-a3b:free': {
1453
+ readonly contextWindow: 256000;
1454
+ readonly maxTokens: 4096;
1455
+ readonly inputPricePerMTok: 0;
1456
+ readonly outputPricePerMTok: 0;
1457
+ readonly cacheReadPricePerMTok: 0;
1458
+ readonly cacheWritePricePerMTok: 0;
1459
+ };
1460
+ readonly 'nvidia/nemotron-3-nano-omni-30b-a3b-reasoning:free': {
1461
+ readonly contextWindow: 256000;
1462
+ readonly maxTokens: 65536;
1463
+ readonly inputPricePerMTok: 0;
1464
+ readonly outputPricePerMTok: 0;
1465
+ readonly cacheReadPricePerMTok: 0;
1466
+ readonly cacheWritePricePerMTok: 0;
1467
+ };
1468
+ readonly 'nvidia/nemotron-3-super-120b-a12b': {
1469
+ readonly contextWindow: 262144;
1470
+ readonly maxTokens: 16384;
1471
+ readonly inputPricePerMTok: 0.085;
1472
+ readonly outputPricePerMTok: 0.4;
1473
+ readonly cacheReadPricePerMTok: 0;
1474
+ readonly cacheWritePricePerMTok: 0;
1475
+ };
1476
+ readonly 'nvidia/nemotron-3-super-120b-a12b:free': {
1477
+ readonly contextWindow: 262144;
1478
+ readonly maxTokens: 262144;
1479
+ readonly inputPricePerMTok: 0;
1480
+ readonly outputPricePerMTok: 0;
1481
+ readonly cacheReadPricePerMTok: 0;
1482
+ readonly cacheWritePricePerMTok: 0;
1483
+ };
1484
+ readonly 'nvidia/nemotron-3-ultra-550b-a55b': {
1485
+ readonly contextWindow: 262144;
1486
+ readonly maxTokens: 16384;
1487
+ readonly inputPricePerMTok: 0.5;
1488
+ readonly outputPricePerMTok: 2.2;
1489
+ readonly cacheReadPricePerMTok: 0.1;
1490
+ readonly cacheWritePricePerMTok: 0;
1491
+ };
1492
+ readonly 'nvidia/nemotron-3-ultra-550b-a55b:free': {
1493
+ readonly contextWindow: 1000000;
1494
+ readonly maxTokens: 65536;
1495
+ readonly inputPricePerMTok: 0;
1496
+ readonly outputPricePerMTok: 0;
1497
+ readonly cacheReadPricePerMTok: 0;
1498
+ readonly cacheWritePricePerMTok: 0;
1499
+ };
1500
+ readonly 'nvidia/nemotron-nano-12b-v2-vl:free': {
1501
+ readonly contextWindow: 128000;
1502
+ readonly maxTokens: 128000;
1503
+ readonly inputPricePerMTok: 0;
1504
+ readonly outputPricePerMTok: 0;
1505
+ readonly cacheReadPricePerMTok: 0;
1506
+ readonly cacheWritePricePerMTok: 0;
1507
+ };
1508
+ readonly 'nvidia/nemotron-nano-9b-v2:free': {
1509
+ readonly contextWindow: 128000;
1510
+ readonly maxTokens: 4096;
1511
+ readonly inputPricePerMTok: 0;
1512
+ readonly outputPricePerMTok: 0;
1513
+ readonly cacheReadPricePerMTok: 0;
1514
+ readonly cacheWritePricePerMTok: 0;
1515
+ };
1516
+ readonly 'openai/gpt-3.5-turbo': {
1517
+ readonly contextWindow: 16385;
1518
+ readonly maxTokens: 4096;
1519
+ readonly inputPricePerMTok: 0.5;
1520
+ readonly outputPricePerMTok: 1.5;
1521
+ readonly cacheReadPricePerMTok: 0;
1522
+ readonly cacheWritePricePerMTok: 0;
1523
+ };
1524
+ readonly 'openai/gpt-3.5-turbo-0613': {
1525
+ readonly contextWindow: 4095;
1526
+ readonly maxTokens: 4096;
1527
+ readonly inputPricePerMTok: 1;
1528
+ readonly outputPricePerMTok: 2;
1529
+ readonly cacheReadPricePerMTok: 0;
1530
+ readonly cacheWritePricePerMTok: 0;
1531
+ };
1532
+ readonly 'openai/gpt-3.5-turbo-16k': {
1533
+ readonly contextWindow: 16385;
1534
+ readonly maxTokens: 4096;
1535
+ readonly inputPricePerMTok: 3;
1536
+ readonly outputPricePerMTok: 4;
1537
+ readonly cacheReadPricePerMTok: 0;
1538
+ readonly cacheWritePricePerMTok: 0;
1539
+ };
1540
+ readonly 'openai/gpt-4': {
1541
+ readonly contextWindow: 8191;
1542
+ readonly maxTokens: 4096;
1543
+ readonly inputPricePerMTok: 30;
1544
+ readonly outputPricePerMTok: 60;
1545
+ readonly cacheReadPricePerMTok: 0;
1546
+ readonly cacheWritePricePerMTok: 0;
1547
+ };
1548
+ readonly 'openai/gpt-4-turbo': {
1549
+ readonly contextWindow: 128000;
1550
+ readonly maxTokens: 4096;
1551
+ readonly inputPricePerMTok: 10;
1552
+ readonly outputPricePerMTok: 30;
1553
+ readonly cacheReadPricePerMTok: 0;
1554
+ readonly cacheWritePricePerMTok: 0;
1555
+ };
1556
+ readonly 'openai/gpt-4-turbo-preview': {
1557
+ readonly contextWindow: 128000;
1558
+ readonly maxTokens: 4096;
1559
+ readonly inputPricePerMTok: 10;
1560
+ readonly outputPricePerMTok: 30;
1561
+ readonly cacheReadPricePerMTok: 0;
1562
+ readonly cacheWritePricePerMTok: 0;
1563
+ };
1564
+ readonly 'openai/gpt-4.1': {
1565
+ readonly contextWindow: 1047576;
1566
+ readonly maxTokens: 32768;
1567
+ readonly inputPricePerMTok: 2;
1568
+ readonly outputPricePerMTok: 8;
1569
+ readonly cacheReadPricePerMTok: 0.5;
1570
+ readonly cacheWritePricePerMTok: 0;
1571
+ };
1572
+ readonly 'openai/gpt-4.1-mini': {
1573
+ readonly contextWindow: 1047576;
1574
+ readonly maxTokens: 32768;
1575
+ readonly inputPricePerMTok: 0.4;
1576
+ readonly outputPricePerMTok: 1.6;
1577
+ readonly cacheReadPricePerMTok: 0.1;
1578
+ readonly cacheWritePricePerMTok: 0;
1579
+ };
1580
+ readonly 'openai/gpt-4.1-nano': {
1581
+ readonly contextWindow: 1047576;
1582
+ readonly maxTokens: 32768;
1583
+ readonly inputPricePerMTok: 0.1;
1584
+ readonly outputPricePerMTok: 0.4;
1585
+ readonly cacheReadPricePerMTok: 0.025;
1586
+ readonly cacheWritePricePerMTok: 0;
1587
+ };
1588
+ readonly 'openai/gpt-4o': {
1589
+ readonly contextWindow: 128000;
1590
+ readonly maxTokens: 16384;
1591
+ readonly inputPricePerMTok: 2.5;
1592
+ readonly outputPricePerMTok: 10;
1593
+ readonly cacheReadPricePerMTok: 1.25;
1594
+ readonly cacheWritePricePerMTok: 0;
1595
+ };
1596
+ readonly 'openai/gpt-4o-2024-05-13': {
1597
+ readonly contextWindow: 128000;
1598
+ readonly maxTokens: 4096;
1599
+ readonly inputPricePerMTok: 5;
1600
+ readonly outputPricePerMTok: 15;
1601
+ readonly cacheReadPricePerMTok: 0;
1602
+ readonly cacheWritePricePerMTok: 0;
1603
+ };
1604
+ readonly 'openai/gpt-4o-2024-08-06': {
1605
+ readonly contextWindow: 128000;
1606
+ readonly maxTokens: 16384;
1607
+ readonly inputPricePerMTok: 2.5;
1608
+ readonly outputPricePerMTok: 10;
1609
+ readonly cacheReadPricePerMTok: 1.25;
1610
+ readonly cacheWritePricePerMTok: 0;
1611
+ };
1612
+ readonly 'openai/gpt-4o-2024-11-20': {
1613
+ readonly contextWindow: 128000;
1614
+ readonly maxTokens: 16384;
1615
+ readonly inputPricePerMTok: 2.5;
1616
+ readonly outputPricePerMTok: 10;
1617
+ readonly cacheReadPricePerMTok: 1.25;
1618
+ readonly cacheWritePricePerMTok: 0;
1619
+ };
1620
+ readonly 'openai/gpt-4o-mini': {
1621
+ readonly contextWindow: 128000;
1622
+ readonly maxTokens: 16384;
1623
+ readonly inputPricePerMTok: 0.15;
1624
+ readonly outputPricePerMTok: 0.6;
1625
+ readonly cacheReadPricePerMTok: 0.075;
1626
+ readonly cacheWritePricePerMTok: 0;
1627
+ };
1628
+ readonly 'openai/gpt-4o-mini-2024-07-18': {
1629
+ readonly contextWindow: 128000;
1630
+ readonly maxTokens: 16384;
1631
+ readonly inputPricePerMTok: 0.15;
1632
+ readonly outputPricePerMTok: 0.6;
1633
+ readonly cacheReadPricePerMTok: 0.075;
1634
+ readonly cacheWritePricePerMTok: 0;
1635
+ };
1636
+ readonly 'openai/gpt-5': {
1637
+ readonly contextWindow: 400000;
1638
+ readonly maxTokens: 128000;
1639
+ readonly inputPricePerMTok: 1.25;
1640
+ readonly outputPricePerMTok: 10;
1641
+ readonly cacheReadPricePerMTok: 0.125;
1642
+ readonly cacheWritePricePerMTok: 0;
1643
+ };
1644
+ readonly 'openai/gpt-5-codex': {
1645
+ readonly contextWindow: 400000;
1646
+ readonly maxTokens: 128000;
1647
+ readonly inputPricePerMTok: 1.25;
1648
+ readonly outputPricePerMTok: 10;
1649
+ readonly cacheReadPricePerMTok: 0.125;
1650
+ readonly cacheWritePricePerMTok: 0;
1651
+ };
1652
+ readonly 'openai/gpt-5-mini': {
1653
+ readonly contextWindow: 400000;
1654
+ readonly maxTokens: 128000;
1655
+ readonly inputPricePerMTok: 0.25;
1656
+ readonly outputPricePerMTok: 2;
1657
+ readonly cacheReadPricePerMTok: 0.025;
1658
+ readonly cacheWritePricePerMTok: 0;
1659
+ };
1660
+ readonly 'openai/gpt-5-mini:batch': {
1661
+ readonly contextWindow: 400000;
1662
+ readonly maxTokens: 128000;
1663
+ readonly inputPricePerMTok: 0.125;
1664
+ readonly outputPricePerMTok: 1;
1665
+ readonly cacheReadPricePerMTok: 0.0125;
1666
+ readonly cacheWritePricePerMTok: 0;
1667
+ };
1668
+ readonly 'openai/gpt-5-nano': {
1669
+ readonly contextWindow: 400000;
1670
+ readonly maxTokens: 128000;
1671
+ readonly inputPricePerMTok: 0.05;
1672
+ readonly outputPricePerMTok: 0.4;
1673
+ readonly cacheReadPricePerMTok: 0.005;
1674
+ readonly cacheWritePricePerMTok: 0;
1675
+ };
1676
+ readonly 'openai/gpt-5-nano:batch': {
1677
+ readonly contextWindow: 400000;
1678
+ readonly maxTokens: 128000;
1679
+ readonly inputPricePerMTok: 0.025;
1680
+ readonly outputPricePerMTok: 0.2;
1681
+ readonly cacheReadPricePerMTok: 0.0025;
1682
+ readonly cacheWritePricePerMTok: 0;
1683
+ };
1684
+ readonly 'openai/gpt-5-pro': {
1685
+ readonly contextWindow: 400000;
1686
+ readonly maxTokens: 128000;
1687
+ readonly inputPricePerMTok: 15;
1688
+ readonly outputPricePerMTok: 120;
1689
+ readonly cacheReadPricePerMTok: 0;
1690
+ readonly cacheWritePricePerMTok: 0;
1691
+ };
1692
+ readonly 'openai/gpt-5.1': {
1693
+ readonly contextWindow: 400000;
1694
+ readonly maxTokens: 128000;
1695
+ readonly inputPricePerMTok: 1.25;
1696
+ readonly outputPricePerMTok: 10;
1697
+ readonly cacheReadPricePerMTok: 0.125;
1698
+ readonly cacheWritePricePerMTok: 0;
1699
+ };
1700
+ readonly 'openai/gpt-5.1-chat': {
1701
+ readonly contextWindow: 128000;
1702
+ readonly maxTokens: 32000;
1703
+ readonly inputPricePerMTok: 1.25;
1704
+ readonly outputPricePerMTok: 10;
1705
+ readonly cacheReadPricePerMTok: 0.13;
1706
+ readonly cacheWritePricePerMTok: 0;
1707
+ };
1708
+ readonly 'openai/gpt-5.1-codex': {
1709
+ readonly contextWindow: 400000;
1710
+ readonly maxTokens: 128000;
1711
+ readonly inputPricePerMTok: 1.25;
1712
+ readonly outputPricePerMTok: 10;
1713
+ readonly cacheReadPricePerMTok: 0.13;
1714
+ readonly cacheWritePricePerMTok: 0;
1715
+ };
1716
+ readonly 'openai/gpt-5.1-codex-max': {
1717
+ readonly contextWindow: 400000;
1718
+ readonly maxTokens: 128000;
1719
+ readonly inputPricePerMTok: 1.25;
1720
+ readonly outputPricePerMTok: 10;
1721
+ readonly cacheReadPricePerMTok: 0.125;
1722
+ readonly cacheWritePricePerMTok: 0;
1723
+ };
1724
+ readonly 'openai/gpt-5.1-codex-mini': {
1725
+ readonly contextWindow: 400000;
1726
+ readonly maxTokens: 128000;
1727
+ readonly inputPricePerMTok: 0.25;
1728
+ readonly outputPricePerMTok: 2;
1729
+ readonly cacheReadPricePerMTok: 0.03;
1730
+ readonly cacheWritePricePerMTok: 0;
1731
+ };
1732
+ readonly 'openai/gpt-5.1:batch': {
1733
+ readonly contextWindow: 400000;
1734
+ readonly maxTokens: 128000;
1735
+ readonly inputPricePerMTok: 0.625;
1736
+ readonly outputPricePerMTok: 5;
1737
+ readonly cacheReadPricePerMTok: 0.0625;
1738
+ readonly cacheWritePricePerMTok: 0;
1739
+ };
1740
+ readonly 'openai/gpt-5.2': {
1741
+ readonly contextWindow: 400000;
1742
+ readonly maxTokens: 128000;
1743
+ readonly inputPricePerMTok: 1.75;
1744
+ readonly outputPricePerMTok: 14;
1745
+ readonly cacheReadPricePerMTok: 0.175;
1746
+ readonly cacheWritePricePerMTok: 0;
1747
+ };
1748
+ readonly 'openai/gpt-5.2-chat': {
1749
+ readonly contextWindow: 128000;
1750
+ readonly maxTokens: 16384;
1751
+ readonly inputPricePerMTok: 1.75;
1752
+ readonly outputPricePerMTok: 14;
1753
+ readonly cacheReadPricePerMTok: 0.175;
1754
+ readonly cacheWritePricePerMTok: 0;
1755
+ };
1756
+ readonly 'openai/gpt-5.2-codex': {
1757
+ readonly contextWindow: 400000;
1758
+ readonly maxTokens: 128000;
1759
+ readonly inputPricePerMTok: 1.75;
1760
+ readonly outputPricePerMTok: 14;
1761
+ readonly cacheReadPricePerMTok: 0.175;
1762
+ readonly cacheWritePricePerMTok: 0;
1763
+ };
1764
+ readonly 'openai/gpt-5.2-pro': {
1765
+ readonly contextWindow: 400000;
1766
+ readonly maxTokens: 128000;
1767
+ readonly inputPricePerMTok: 21;
1768
+ readonly outputPricePerMTok: 168;
1769
+ readonly cacheReadPricePerMTok: 0;
1770
+ readonly cacheWritePricePerMTok: 0;
1771
+ };
1772
+ readonly 'openai/gpt-5.2:batch': {
1773
+ readonly contextWindow: 400000;
1774
+ readonly maxTokens: 128000;
1775
+ readonly inputPricePerMTok: 0.875;
1776
+ readonly outputPricePerMTok: 7;
1777
+ readonly cacheReadPricePerMTok: 0.0875;
1778
+ readonly cacheWritePricePerMTok: 0;
1779
+ };
1780
+ readonly 'openai/gpt-5.3-chat': {
1781
+ readonly contextWindow: 128000;
1782
+ readonly maxTokens: 16384;
1783
+ readonly inputPricePerMTok: 1.75;
1784
+ readonly outputPricePerMTok: 14;
1785
+ readonly cacheReadPricePerMTok: 0.175;
1786
+ readonly cacheWritePricePerMTok: 0;
1787
+ };
1788
+ readonly 'openai/gpt-5.3-codex': {
1789
+ readonly contextWindow: 400000;
1790
+ readonly maxTokens: 128000;
1791
+ readonly inputPricePerMTok: 1.75;
1792
+ readonly outputPricePerMTok: 14;
1793
+ readonly cacheReadPricePerMTok: 0.175;
1794
+ readonly cacheWritePricePerMTok: 0;
1795
+ };
1796
+ readonly 'openai/gpt-5.4': {
1797
+ readonly contextWindow: 1050000;
1798
+ readonly maxTokens: 128000;
1799
+ readonly inputPricePerMTok: 2.5;
1800
+ readonly outputPricePerMTok: 15;
1801
+ readonly cacheReadPricePerMTok: 0.25;
1802
+ readonly cacheWritePricePerMTok: 0;
1803
+ };
1804
+ readonly 'openai/gpt-5.4-mini': {
1805
+ readonly contextWindow: 400000;
1806
+ readonly maxTokens: 128000;
1807
+ readonly inputPricePerMTok: 0.75;
1808
+ readonly outputPricePerMTok: 4.5;
1809
+ readonly cacheReadPricePerMTok: 0.075;
1810
+ readonly cacheWritePricePerMTok: 0;
1811
+ };
1812
+ readonly 'openai/gpt-5.4-mini:batch': {
1813
+ readonly contextWindow: 400000;
1814
+ readonly maxTokens: 128000;
1815
+ readonly inputPricePerMTok: 0.375;
1816
+ readonly outputPricePerMTok: 2.25;
1817
+ readonly cacheReadPricePerMTok: 0.0375;
1818
+ readonly cacheWritePricePerMTok: 0;
1819
+ };
1820
+ readonly 'openai/gpt-5.4-nano': {
1821
+ readonly contextWindow: 400000;
1822
+ readonly maxTokens: 128000;
1823
+ readonly inputPricePerMTok: 0.2;
1824
+ readonly outputPricePerMTok: 1.25;
1825
+ readonly cacheReadPricePerMTok: 0.02;
1826
+ readonly cacheWritePricePerMTok: 0;
1827
+ };
1828
+ readonly 'openai/gpt-5.4-nano:batch': {
1829
+ readonly contextWindow: 400000;
1830
+ readonly maxTokens: 128000;
1831
+ readonly inputPricePerMTok: 0.1;
1832
+ readonly outputPricePerMTok: 0.625;
1833
+ readonly cacheReadPricePerMTok: 0.01;
1834
+ readonly cacheWritePricePerMTok: 0;
1835
+ };
1836
+ readonly 'openai/gpt-5.4-pro': {
1837
+ readonly contextWindow: 1050000;
1838
+ readonly maxTokens: 128000;
1839
+ readonly inputPricePerMTok: 30;
1840
+ readonly outputPricePerMTok: 180;
1841
+ readonly cacheReadPricePerMTok: 0;
1842
+ readonly cacheWritePricePerMTok: 0;
1843
+ };
1844
+ readonly 'openai/gpt-5.4:batch': {
1845
+ readonly contextWindow: 1050000;
1846
+ readonly maxTokens: 128000;
1847
+ readonly inputPricePerMTok: 1.25;
1848
+ readonly outputPricePerMTok: 7.5;
1849
+ readonly cacheReadPricePerMTok: 0.125;
1850
+ readonly cacheWritePricePerMTok: 0;
1851
+ };
1852
+ readonly 'openai/gpt-5.5': {
1853
+ readonly contextWindow: 1050000;
1854
+ readonly maxTokens: 128000;
1855
+ readonly inputPricePerMTok: 5;
1856
+ readonly outputPricePerMTok: 30;
1857
+ readonly cacheReadPricePerMTok: 0.5;
1858
+ readonly cacheWritePricePerMTok: 0;
1859
+ };
1860
+ readonly 'openai/gpt-5.5-pro': {
1861
+ readonly contextWindow: 1050000;
1862
+ readonly maxTokens: 128000;
1863
+ readonly inputPricePerMTok: 30;
1864
+ readonly outputPricePerMTok: 180;
1865
+ readonly cacheReadPricePerMTok: 0;
1866
+ readonly cacheWritePricePerMTok: 0;
1867
+ };
1868
+ readonly 'openai/gpt-5.5:batch': {
1869
+ readonly contextWindow: 1050000;
1870
+ readonly maxTokens: 128000;
1871
+ readonly inputPricePerMTok: 2.5;
1872
+ readonly outputPricePerMTok: 15;
1873
+ readonly cacheReadPricePerMTok: 0.25;
1874
+ readonly cacheWritePricePerMTok: 0;
1875
+ };
1876
+ readonly 'openai/gpt-5.6-luna': {
1877
+ readonly contextWindow: 1050000;
1878
+ readonly maxTokens: 128000;
1879
+ readonly inputPricePerMTok: 0.5;
1880
+ readonly outputPricePerMTok: 3;
1881
+ readonly cacheReadPricePerMTok: 0.05;
1882
+ readonly cacheWritePricePerMTok: 0.625;
1883
+ };
1884
+ readonly 'openai/gpt-5.6-luna-pro': {
1885
+ readonly contextWindow: 1050000;
1886
+ readonly maxTokens: 128000;
1887
+ readonly inputPricePerMTok: 0.5;
1888
+ readonly outputPricePerMTok: 3;
1889
+ readonly cacheReadPricePerMTok: 0.05;
1890
+ readonly cacheWritePricePerMTok: 0.625;
1891
+ };
1892
+ readonly 'openai/gpt-5.6-sol': {
1893
+ readonly contextWindow: 1050000;
1894
+ readonly maxTokens: 128000;
1895
+ readonly inputPricePerMTok: 5;
1896
+ readonly outputPricePerMTok: 30;
1897
+ readonly cacheReadPricePerMTok: 0.5;
1898
+ readonly cacheWritePricePerMTok: 6.25;
1899
+ };
1900
+ readonly 'openai/gpt-5.6-sol-pro': {
1901
+ readonly contextWindow: 1050000;
1902
+ readonly maxTokens: 128000;
1903
+ readonly inputPricePerMTok: 5;
1904
+ readonly outputPricePerMTok: 30;
1905
+ readonly cacheReadPricePerMTok: 0.5;
1906
+ readonly cacheWritePricePerMTok: 6.25;
1907
+ };
1908
+ readonly 'openai/gpt-5.6-terra': {
1909
+ readonly contextWindow: 1050000;
1910
+ readonly maxTokens: 128000;
1911
+ readonly inputPricePerMTok: 1.25;
1912
+ readonly outputPricePerMTok: 7.5;
1913
+ readonly cacheReadPricePerMTok: 0.125;
1914
+ readonly cacheWritePricePerMTok: 1.5625;
1915
+ };
1916
+ readonly 'openai/gpt-5.6-terra-pro': {
1917
+ readonly contextWindow: 1050000;
1918
+ readonly maxTokens: 128000;
1919
+ readonly inputPricePerMTok: 1.25;
1920
+ readonly outputPricePerMTok: 7.5;
1921
+ readonly cacheReadPricePerMTok: 0.125;
1922
+ readonly cacheWritePricePerMTok: 1.5625;
1923
+ };
1924
+ readonly 'openai/gpt-5:batch': {
1925
+ readonly contextWindow: 400000;
1926
+ readonly maxTokens: 128000;
1927
+ readonly inputPricePerMTok: 0.625;
1928
+ readonly outputPricePerMTok: 5;
1929
+ readonly cacheReadPricePerMTok: 0.0625;
1930
+ readonly cacheWritePricePerMTok: 0;
1931
+ };
1932
+ readonly 'openai/gpt-audio': {
1933
+ readonly contextWindow: 128000;
1934
+ readonly maxTokens: 16384;
1935
+ readonly inputPricePerMTok: 2.5;
1936
+ readonly outputPricePerMTok: 10;
1937
+ readonly cacheReadPricePerMTok: 0;
1938
+ readonly cacheWritePricePerMTok: 0;
1939
+ };
1940
+ readonly 'openai/gpt-audio-mini': {
1941
+ readonly contextWindow: 128000;
1942
+ readonly maxTokens: 16384;
1943
+ readonly inputPricePerMTok: 0.6;
1944
+ readonly outputPricePerMTok: 2.4;
1945
+ readonly cacheReadPricePerMTok: 0;
1946
+ readonly cacheWritePricePerMTok: 0;
1947
+ };
1948
+ readonly 'openai/gpt-chat-latest': {
1949
+ readonly contextWindow: 400000;
1950
+ readonly maxTokens: 128000;
1951
+ readonly inputPricePerMTok: 5;
1952
+ readonly outputPricePerMTok: 30;
1953
+ readonly cacheReadPricePerMTok: 0.5;
1954
+ readonly cacheWritePricePerMTok: 0;
1955
+ };
1956
+ readonly 'openai/gpt-oss-120b': {
1957
+ readonly contextWindow: 131072;
1958
+ readonly maxTokens: 131072;
1959
+ readonly inputPricePerMTok: 0.037;
1960
+ readonly outputPricePerMTok: 0.17;
1961
+ readonly cacheReadPricePerMTok: 0;
1962
+ readonly cacheWritePricePerMTok: 0;
1963
+ };
1964
+ readonly 'openai/gpt-oss-20b': {
1965
+ readonly contextWindow: 131072;
1966
+ readonly maxTokens: 131072;
1967
+ readonly inputPricePerMTok: 0.03;
1968
+ readonly outputPricePerMTok: 0.13;
1969
+ readonly cacheReadPricePerMTok: 0.03;
1970
+ readonly cacheWritePricePerMTok: 0;
1971
+ };
1972
+ readonly 'openai/gpt-oss-20b:free': {
1973
+ readonly contextWindow: 131072;
1974
+ readonly maxTokens: 32768;
1975
+ readonly inputPricePerMTok: 0;
1976
+ readonly outputPricePerMTok: 0;
1977
+ readonly cacheReadPricePerMTok: 0;
1978
+ readonly cacheWritePricePerMTok: 0;
1979
+ };
1980
+ readonly 'openai/gpt-oss-safeguard-20b': {
1981
+ readonly contextWindow: 131072;
1982
+ readonly maxTokens: 65536;
1983
+ readonly inputPricePerMTok: 0.075;
1984
+ readonly outputPricePerMTok: 0.3;
1985
+ readonly cacheReadPricePerMTok: 0.0375;
1986
+ readonly cacheWritePricePerMTok: 0;
1987
+ };
1988
+ readonly 'openai/o1': {
1989
+ readonly contextWindow: 200000;
1990
+ readonly maxTokens: 100000;
1991
+ readonly inputPricePerMTok: 15;
1992
+ readonly outputPricePerMTok: 60;
1993
+ readonly cacheReadPricePerMTok: 7.5;
1994
+ readonly cacheWritePricePerMTok: 0;
1995
+ };
1996
+ readonly 'openai/o3': {
1997
+ readonly contextWindow: 200000;
1998
+ readonly maxTokens: 100000;
1999
+ readonly inputPricePerMTok: 2;
2000
+ readonly outputPricePerMTok: 8;
2001
+ readonly cacheReadPricePerMTok: 0.5;
2002
+ readonly cacheWritePricePerMTok: 0;
2003
+ };
2004
+ readonly 'openai/o3-deep-research': {
2005
+ readonly contextWindow: 200000;
2006
+ readonly maxTokens: 100000;
2007
+ readonly inputPricePerMTok: 10;
2008
+ readonly outputPricePerMTok: 40;
2009
+ readonly cacheReadPricePerMTok: 2.5;
2010
+ readonly cacheWritePricePerMTok: 0;
2011
+ };
2012
+ readonly 'openai/o3-mini': {
2013
+ readonly contextWindow: 200000;
2014
+ readonly maxTokens: 100000;
2015
+ readonly inputPricePerMTok: 1.1;
2016
+ readonly outputPricePerMTok: 4.4;
2017
+ readonly cacheReadPricePerMTok: 0.55;
2018
+ readonly cacheWritePricePerMTok: 0;
2019
+ };
2020
+ readonly 'openai/o3-mini-high': {
2021
+ readonly contextWindow: 200000;
2022
+ readonly maxTokens: 100000;
2023
+ readonly inputPricePerMTok: 1.1;
2024
+ readonly outputPricePerMTok: 4.4;
2025
+ readonly cacheReadPricePerMTok: 0.55;
2026
+ readonly cacheWritePricePerMTok: 0;
2027
+ };
2028
+ readonly 'openai/o3-pro': {
2029
+ readonly contextWindow: 200000;
2030
+ readonly maxTokens: 100000;
2031
+ readonly inputPricePerMTok: 20;
2032
+ readonly outputPricePerMTok: 80;
2033
+ readonly cacheReadPricePerMTok: 0;
2034
+ readonly cacheWritePricePerMTok: 0;
2035
+ };
2036
+ readonly 'openai/o4-mini': {
2037
+ readonly contextWindow: 200000;
2038
+ readonly maxTokens: 100000;
2039
+ readonly inputPricePerMTok: 1.1;
2040
+ readonly outputPricePerMTok: 4.4;
2041
+ readonly cacheReadPricePerMTok: 0.275;
2042
+ readonly cacheWritePricePerMTok: 0;
2043
+ };
2044
+ readonly 'openai/o4-mini-deep-research': {
2045
+ readonly contextWindow: 200000;
2046
+ readonly maxTokens: 100000;
2047
+ readonly inputPricePerMTok: 2;
2048
+ readonly outputPricePerMTok: 8;
2049
+ readonly cacheReadPricePerMTok: 0.5;
2050
+ readonly cacheWritePricePerMTok: 0;
2051
+ };
2052
+ readonly 'openai/o4-mini-high': {
2053
+ readonly contextWindow: 200000;
2054
+ readonly maxTokens: 100000;
2055
+ readonly inputPricePerMTok: 1.1;
2056
+ readonly outputPricePerMTok: 4.4;
2057
+ readonly cacheReadPricePerMTok: 0.275;
2058
+ readonly cacheWritePricePerMTok: 0;
2059
+ };
2060
+ readonly 'openrouter/auto': {
2061
+ readonly contextWindow: 2000000;
2062
+ readonly maxTokens: 4096;
2063
+ readonly inputPricePerMTok: -1000000;
2064
+ readonly outputPricePerMTok: -1000000;
2065
+ readonly cacheReadPricePerMTok: 0;
2066
+ readonly cacheWritePricePerMTok: 0;
2067
+ };
2068
+ readonly 'openrouter/auto-beta': {
2069
+ readonly contextWindow: 2000000;
2070
+ readonly maxTokens: 4096;
2071
+ readonly inputPricePerMTok: -1000000;
2072
+ readonly outputPricePerMTok: -1000000;
2073
+ readonly cacheReadPricePerMTok: 0;
2074
+ readonly cacheWritePricePerMTok: 0;
2075
+ };
2076
+ readonly 'openrouter/free': {
2077
+ readonly contextWindow: 200000;
2078
+ readonly maxTokens: 4096;
2079
+ readonly inputPricePerMTok: 0;
2080
+ readonly outputPricePerMTok: 0;
2081
+ readonly cacheReadPricePerMTok: 0;
2082
+ readonly cacheWritePricePerMTok: 0;
2083
+ };
2084
+ readonly 'openrouter/fusion': {
2085
+ readonly contextWindow: 1000000;
2086
+ readonly maxTokens: 30000;
2087
+ readonly inputPricePerMTok: 0;
2088
+ readonly outputPricePerMTok: 0;
2089
+ readonly cacheReadPricePerMTok: 0;
2090
+ readonly cacheWritePricePerMTok: 0;
2091
+ };
2092
+ readonly 'poolside/laguna-s-2.1': {
2093
+ readonly contextWindow: 1048576;
2094
+ readonly maxTokens: 131072;
2095
+ readonly inputPricePerMTok: 0.1;
2096
+ readonly outputPricePerMTok: 0.2;
2097
+ readonly cacheReadPricePerMTok: 0.01;
2098
+ readonly cacheWritePricePerMTok: 0;
2099
+ };
2100
+ readonly 'poolside/laguna-s-2.1:free': {
2101
+ readonly contextWindow: 262144;
2102
+ readonly maxTokens: 32768;
2103
+ readonly inputPricePerMTok: 0;
2104
+ readonly outputPricePerMTok: 0;
2105
+ readonly cacheReadPricePerMTok: 0;
2106
+ readonly cacheWritePricePerMTok: 0;
2107
+ };
2108
+ readonly 'poolside/laguna-xs-2.1': {
2109
+ readonly contextWindow: 262144;
2110
+ readonly maxTokens: 32768;
2111
+ readonly inputPricePerMTok: 0.06;
2112
+ readonly outputPricePerMTok: 0.12;
2113
+ readonly cacheReadPricePerMTok: 0.03;
2114
+ readonly cacheWritePricePerMTok: 0;
2115
+ };
2116
+ readonly 'poolside/laguna-xs-2.1:free': {
2117
+ readonly contextWindow: 262144;
2118
+ readonly maxTokens: 32768;
2119
+ readonly inputPricePerMTok: 0;
2120
+ readonly outputPricePerMTok: 0;
2121
+ readonly cacheReadPricePerMTok: 0;
2122
+ readonly cacheWritePricePerMTok: 0;
2123
+ };
2124
+ readonly 'qwen/qwen-2.5-72b-instruct': {
2125
+ readonly contextWindow: 32768;
2126
+ readonly maxTokens: 16384;
2127
+ readonly inputPricePerMTok: 0.36;
2128
+ readonly outputPricePerMTok: 0.4;
2129
+ readonly cacheReadPricePerMTok: 0;
2130
+ readonly cacheWritePricePerMTok: 0;
2131
+ };
2132
+ readonly 'qwen/qwen-2.5-7b-instruct': {
2133
+ readonly contextWindow: 32768;
2134
+ readonly maxTokens: 32768;
2135
+ readonly inputPricePerMTok: 0.04;
2136
+ readonly outputPricePerMTok: 0.1;
2137
+ readonly cacheReadPricePerMTok: 0;
2138
+ readonly cacheWritePricePerMTok: 0;
2139
+ };
2140
+ readonly 'qwen/qwen-plus': {
2141
+ readonly contextWindow: 1000000;
2142
+ readonly maxTokens: 32768;
2143
+ readonly inputPricePerMTok: 0.26;
2144
+ readonly outputPricePerMTok: 0.78;
2145
+ readonly cacheReadPricePerMTok: 0.052;
2146
+ readonly cacheWritePricePerMTok: 0.325;
2147
+ };
2148
+ readonly 'qwen/qwen-plus-2025-07-28': {
2149
+ readonly contextWindow: 1000000;
2150
+ readonly maxTokens: 32768;
2151
+ readonly inputPricePerMTok: 0.26;
2152
+ readonly outputPricePerMTok: 0.78;
2153
+ readonly cacheReadPricePerMTok: 0;
2154
+ readonly cacheWritePricePerMTok: 0;
2155
+ };
2156
+ readonly 'qwen/qwen-plus-2025-07-28:thinking': {
2157
+ readonly contextWindow: 1000000;
2158
+ readonly maxTokens: 32768;
2159
+ readonly inputPricePerMTok: 0.4;
2160
+ readonly outputPricePerMTok: 1.2;
2161
+ readonly cacheReadPricePerMTok: 0;
2162
+ readonly cacheWritePricePerMTok: 0.5;
2163
+ };
2164
+ readonly 'qwen/qwen3-14b': {
2165
+ readonly contextWindow: 131072;
2166
+ readonly maxTokens: 8192;
2167
+ readonly inputPricePerMTok: 0.2275;
2168
+ readonly outputPricePerMTok: 0.91;
2169
+ readonly cacheReadPricePerMTok: 0;
2170
+ readonly cacheWritePricePerMTok: 0;
2171
+ };
2172
+ readonly 'qwen/qwen3-235b-a22b': {
2173
+ readonly contextWindow: 131072;
2174
+ readonly maxTokens: 8192;
2175
+ readonly inputPricePerMTok: 0.455;
2176
+ readonly outputPricePerMTok: 1.82;
2177
+ readonly cacheReadPricePerMTok: 0;
2178
+ readonly cacheWritePricePerMTok: 0;
2179
+ };
2180
+ readonly 'qwen/qwen3-235b-a22b-2507': {
2181
+ readonly contextWindow: 262144;
2182
+ readonly maxTokens: 16384;
2183
+ readonly inputPricePerMTok: 0.09;
2184
+ readonly outputPricePerMTok: 0.55;
2185
+ readonly cacheReadPricePerMTok: 0;
2186
+ readonly cacheWritePricePerMTok: 0;
2187
+ };
2188
+ readonly 'qwen/qwen3-235b-a22b-thinking-2507': {
2189
+ readonly contextWindow: 131072;
2190
+ readonly maxTokens: 32768;
2191
+ readonly inputPricePerMTok: 0.3;
2192
+ readonly outputPricePerMTok: 3;
2193
+ readonly cacheReadPricePerMTok: 0;
2194
+ readonly cacheWritePricePerMTok: 0;
2195
+ };
2196
+ readonly 'qwen/qwen3-30b-a3b': {
2197
+ readonly contextWindow: 40960;
2198
+ readonly maxTokens: 16384;
2199
+ readonly inputPricePerMTok: 0.12;
2200
+ readonly outputPricePerMTok: 0.5;
2201
+ readonly cacheReadPricePerMTok: 0;
2202
+ readonly cacheWritePricePerMTok: 0;
2203
+ };
2204
+ readonly 'qwen/qwen3-30b-a3b-instruct-2507': {
2205
+ readonly contextWindow: 128000;
2206
+ readonly maxTokens: 32000;
2207
+ readonly inputPricePerMTok: 0.04815;
2208
+ readonly outputPricePerMTok: 0.19305;
2209
+ readonly cacheReadPricePerMTok: 0;
2210
+ readonly cacheWritePricePerMTok: 0;
2211
+ };
2212
+ readonly 'qwen/qwen3-30b-a3b-thinking-2507': {
2213
+ readonly contextWindow: 81920;
2214
+ readonly maxTokens: 32768;
2215
+ readonly inputPricePerMTok: 0.2;
2216
+ readonly outputPricePerMTok: 2.4;
2217
+ readonly cacheReadPricePerMTok: 0;
2218
+ readonly cacheWritePricePerMTok: 0;
2219
+ };
2220
+ readonly 'qwen/qwen3-32b': {
2221
+ readonly contextWindow: 40960;
2222
+ readonly maxTokens: 16384;
2223
+ readonly inputPricePerMTok: 0.08;
2224
+ readonly outputPricePerMTok: 0.28;
2225
+ readonly cacheReadPricePerMTok: 0;
2226
+ readonly cacheWritePricePerMTok: 0;
2227
+ };
2228
+ readonly 'qwen/qwen3-8b': {
2229
+ readonly contextWindow: 131072;
2230
+ readonly maxTokens: 8192;
2231
+ readonly inputPricePerMTok: 0.117;
2232
+ readonly outputPricePerMTok: 0.455;
2233
+ readonly cacheReadPricePerMTok: 0;
2234
+ readonly cacheWritePricePerMTok: 0;
2235
+ };
2236
+ readonly 'qwen/qwen3-coder': {
2237
+ readonly contextWindow: 262144;
2238
+ readonly maxTokens: 65536;
2239
+ readonly inputPricePerMTok: 0.3;
2240
+ readonly outputPricePerMTok: 1;
2241
+ readonly cacheReadPricePerMTok: 0.1;
2242
+ readonly cacheWritePricePerMTok: 0;
2243
+ };
2244
+ readonly 'qwen/qwen3-coder-30b-a3b-instruct': {
2245
+ readonly contextWindow: 160000;
2246
+ readonly maxTokens: 32768;
2247
+ readonly inputPricePerMTok: 0.07;
2248
+ readonly outputPricePerMTok: 0.27;
2249
+ readonly cacheReadPricePerMTok: 0;
2250
+ readonly cacheWritePricePerMTok: 0;
2251
+ };
2252
+ readonly 'qwen/qwen3-coder-flash': {
2253
+ readonly contextWindow: 1000000;
2254
+ readonly maxTokens: 65536;
2255
+ readonly inputPricePerMTok: 0.195;
2256
+ readonly outputPricePerMTok: 0.975;
2257
+ readonly cacheReadPricePerMTok: 0.039;
2258
+ readonly cacheWritePricePerMTok: 0.24375;
2259
+ };
2260
+ readonly 'qwen/qwen3-coder-next': {
2261
+ readonly contextWindow: 262144;
2262
+ readonly maxTokens: 262144;
2263
+ readonly inputPricePerMTok: 0.12;
2264
+ readonly outputPricePerMTok: 0.8;
2265
+ readonly cacheReadPricePerMTok: 0.07;
2266
+ readonly cacheWritePricePerMTok: 0;
2267
+ };
2268
+ readonly 'qwen/qwen3-coder-plus': {
2269
+ readonly contextWindow: 1000000;
2270
+ readonly maxTokens: 65536;
2271
+ readonly inputPricePerMTok: 0.65;
2272
+ readonly outputPricePerMTok: 3.25;
2273
+ readonly cacheReadPricePerMTok: 0.13;
2274
+ readonly cacheWritePricePerMTok: 0.8125;
2275
+ };
2276
+ readonly 'qwen/qwen3-max': {
2277
+ readonly contextWindow: 262144;
2278
+ readonly maxTokens: 65536;
2279
+ readonly inputPricePerMTok: 0.78;
2280
+ readonly outputPricePerMTok: 3.9;
2281
+ readonly cacheReadPricePerMTok: 0.156;
2282
+ readonly cacheWritePricePerMTok: 0.975;
2283
+ };
2284
+ readonly 'qwen/qwen3-max-thinking': {
2285
+ readonly contextWindow: 262144;
2286
+ readonly maxTokens: 65536;
2287
+ readonly inputPricePerMTok: 0.78;
2288
+ readonly outputPricePerMTok: 3.9;
2289
+ readonly cacheReadPricePerMTok: 0;
2290
+ readonly cacheWritePricePerMTok: 0;
2291
+ };
2292
+ readonly 'qwen/qwen3-next-80b-a3b-instruct': {
2293
+ readonly contextWindow: 262144;
2294
+ readonly maxTokens: 262144;
2295
+ readonly inputPricePerMTok: 0.1;
2296
+ readonly outputPricePerMTok: 1.1;
2297
+ readonly cacheReadPricePerMTok: 0.07;
2298
+ readonly cacheWritePricePerMTok: 0;
2299
+ };
2300
+ readonly 'qwen/qwen3-next-80b-a3b-thinking': {
2301
+ readonly contextWindow: 131072;
2302
+ readonly maxTokens: 32768;
2303
+ readonly inputPricePerMTok: 0.15;
2304
+ readonly outputPricePerMTok: 1.2;
2305
+ readonly cacheReadPricePerMTok: 0;
2306
+ readonly cacheWritePricePerMTok: 0;
2307
+ };
2308
+ readonly 'qwen/qwen3-vl-235b-a22b-instruct': {
2309
+ readonly contextWindow: 131072;
2310
+ readonly maxTokens: 32768;
2311
+ readonly inputPricePerMTok: 0.21;
2312
+ readonly outputPricePerMTok: 1.9;
2313
+ readonly cacheReadPricePerMTok: 0.1;
2314
+ readonly cacheWritePricePerMTok: 0;
2315
+ };
2316
+ readonly 'qwen/qwen3-vl-235b-a22b-thinking': {
2317
+ readonly contextWindow: 131072;
2318
+ readonly maxTokens: 32768;
2319
+ readonly inputPricePerMTok: 0.4;
2320
+ readonly outputPricePerMTok: 4;
2321
+ readonly cacheReadPricePerMTok: 0;
2322
+ readonly cacheWritePricePerMTok: 0;
2323
+ };
2324
+ readonly 'qwen/qwen3-vl-30b-a3b-instruct': {
2325
+ readonly contextWindow: 131072;
2326
+ readonly maxTokens: 32768;
2327
+ readonly inputPricePerMTok: 0.13;
2328
+ readonly outputPricePerMTok: 0.52;
2329
+ readonly cacheReadPricePerMTok: 0;
2330
+ readonly cacheWritePricePerMTok: 0;
2331
+ };
2332
+ readonly 'qwen/qwen3-vl-30b-a3b-thinking': {
2333
+ readonly contextWindow: 131072;
2334
+ readonly maxTokens: 32768;
2335
+ readonly inputPricePerMTok: 0.2;
2336
+ readonly outputPricePerMTok: 2.4;
2337
+ readonly cacheReadPricePerMTok: 0;
2338
+ readonly cacheWritePricePerMTok: 0;
2339
+ };
2340
+ readonly 'qwen/qwen3-vl-32b-instruct': {
2341
+ readonly contextWindow: 131072;
2342
+ readonly maxTokens: 32768;
2343
+ readonly inputPricePerMTok: 0.104;
2344
+ readonly outputPricePerMTok: 0.416;
2345
+ readonly cacheReadPricePerMTok: 0;
2346
+ readonly cacheWritePricePerMTok: 0;
2347
+ };
2348
+ readonly 'qwen/qwen3-vl-8b-instruct': {
2349
+ readonly contextWindow: 131072;
2350
+ readonly maxTokens: 32768;
2351
+ readonly inputPricePerMTok: 0.117;
2352
+ readonly outputPricePerMTok: 0.455;
2353
+ readonly cacheReadPricePerMTok: 0;
2354
+ readonly cacheWritePricePerMTok: 0;
2355
+ };
2356
+ readonly 'qwen/qwen3-vl-8b-thinking': {
2357
+ readonly contextWindow: 131072;
2358
+ readonly maxTokens: 32768;
2359
+ readonly inputPricePerMTok: 0.18;
2360
+ readonly outputPricePerMTok: 2.1;
2361
+ readonly cacheReadPricePerMTok: 0;
2362
+ readonly cacheWritePricePerMTok: 0;
2363
+ };
2364
+ readonly 'qwen/qwen3.5-122b-a10b': {
2365
+ readonly contextWindow: 262144;
2366
+ readonly maxTokens: 65536;
2367
+ readonly inputPricePerMTok: 0.26;
2368
+ readonly outputPricePerMTok: 2.08;
2369
+ readonly cacheReadPricePerMTok: 0;
2370
+ readonly cacheWritePricePerMTok: 0;
2371
+ };
2372
+ readonly 'qwen/qwen3.5-27b': {
2373
+ readonly contextWindow: 262144;
2374
+ readonly maxTokens: 65536;
2375
+ readonly inputPricePerMTok: 0.195;
2376
+ readonly outputPricePerMTok: 1.56;
2377
+ readonly cacheReadPricePerMTok: 0;
2378
+ readonly cacheWritePricePerMTok: 0;
2379
+ };
2380
+ readonly 'qwen/qwen3.5-35b-a3b': {
2381
+ readonly contextWindow: 262144;
2382
+ readonly maxTokens: 262144;
2383
+ readonly inputPricePerMTok: 0.14;
2384
+ readonly outputPricePerMTok: 1;
2385
+ readonly cacheReadPricePerMTok: 0;
2386
+ readonly cacheWritePricePerMTok: 0;
2387
+ };
2388
+ readonly 'qwen/qwen3.5-397b-a17b': {
2389
+ readonly contextWindow: 262144;
2390
+ readonly maxTokens: 65536;
2391
+ readonly inputPricePerMTok: 0.39;
2392
+ readonly outputPricePerMTok: 2.34;
2393
+ readonly cacheReadPricePerMTok: 0;
2394
+ readonly cacheWritePricePerMTok: 0;
2395
+ };
2396
+ readonly 'qwen/qwen3.5-9b': {
2397
+ readonly contextWindow: 262144;
2398
+ readonly maxTokens: 262144;
2399
+ readonly inputPricePerMTok: 0.1;
2400
+ readonly outputPricePerMTok: 0.15;
2401
+ readonly cacheReadPricePerMTok: 0;
2402
+ readonly cacheWritePricePerMTok: 0;
2403
+ };
2404
+ readonly 'qwen/qwen3.5-flash-02-23': {
2405
+ readonly contextWindow: 1000000;
2406
+ readonly maxTokens: 65536;
2407
+ readonly inputPricePerMTok: 0.065;
2408
+ readonly outputPricePerMTok: 0.26;
2409
+ readonly cacheReadPricePerMTok: 0;
2410
+ readonly cacheWritePricePerMTok: 0;
2411
+ };
2412
+ readonly 'qwen/qwen3.5-plus-02-15': {
2413
+ readonly contextWindow: 1000000;
2414
+ readonly maxTokens: 65536;
2415
+ readonly inputPricePerMTok: 0.26;
2416
+ readonly outputPricePerMTok: 1.56;
2417
+ readonly cacheReadPricePerMTok: 0;
2418
+ readonly cacheWritePricePerMTok: 0;
2419
+ };
2420
+ readonly 'qwen/qwen3.5-plus-20260420': {
2421
+ readonly contextWindow: 1000000;
2422
+ readonly maxTokens: 65536;
2423
+ readonly inputPricePerMTok: 0.3;
2424
+ readonly outputPricePerMTok: 1.8;
2425
+ readonly cacheReadPricePerMTok: 0;
2426
+ readonly cacheWritePricePerMTok: 0.375;
2427
+ };
2428
+ readonly 'qwen/qwen3.6-27b': {
2429
+ readonly contextWindow: 262144;
2430
+ readonly maxTokens: 65536;
2431
+ readonly inputPricePerMTok: 0.3;
2432
+ readonly outputPricePerMTok: 2;
2433
+ readonly cacheReadPricePerMTok: 0.15;
2434
+ readonly cacheWritePricePerMTok: 0;
2435
+ };
2436
+ readonly 'qwen/qwen3.6-35b-a3b': {
2437
+ readonly contextWindow: 262144;
2438
+ readonly maxTokens: 262144;
2439
+ readonly inputPricePerMTok: 0.14;
2440
+ readonly outputPricePerMTok: 1;
2441
+ readonly cacheReadPricePerMTok: 0;
2442
+ readonly cacheWritePricePerMTok: 0;
2443
+ };
2444
+ readonly 'qwen/qwen3.6-flash': {
2445
+ readonly contextWindow: 1000000;
2446
+ readonly maxTokens: 65536;
2447
+ readonly inputPricePerMTok: 0.1875;
2448
+ readonly outputPricePerMTok: 1.125;
2449
+ readonly cacheReadPricePerMTok: 0;
2450
+ readonly cacheWritePricePerMTok: 0.234375;
2451
+ };
2452
+ readonly 'qwen/qwen3.6-max-preview': {
2453
+ readonly contextWindow: 262144;
2454
+ readonly maxTokens: 65536;
2455
+ readonly inputPricePerMTok: 1.027;
2456
+ readonly outputPricePerMTok: 6.162;
2457
+ readonly cacheReadPricePerMTok: 0;
2458
+ readonly cacheWritePricePerMTok: 1.28375;
2459
+ };
2460
+ readonly 'qwen/qwen3.6-plus': {
2461
+ readonly contextWindow: 1000000;
2462
+ readonly maxTokens: 65536;
2463
+ readonly inputPricePerMTok: 0.325;
2464
+ readonly outputPricePerMTok: 1.95;
2465
+ readonly cacheReadPricePerMTok: 0;
2466
+ readonly cacheWritePricePerMTok: 0.40625;
2467
+ };
2468
+ readonly 'qwen/qwen3.7-flash': {
2469
+ readonly contextWindow: 1000000;
2470
+ readonly maxTokens: 65536;
2471
+ readonly inputPricePerMTok: 0.03;
2472
+ readonly outputPricePerMTok: 0.13;
2473
+ readonly cacheReadPricePerMTok: 0.006;
2474
+ readonly cacheWritePricePerMTok: 0.038;
2475
+ };
2476
+ readonly 'qwen/qwen3.7-max': {
2477
+ readonly contextWindow: 1000000;
2478
+ readonly maxTokens: 65536;
2479
+ readonly inputPricePerMTok: 1.475;
2480
+ readonly outputPricePerMTok: 4.425;
2481
+ readonly cacheReadPricePerMTok: 0.295;
2482
+ readonly cacheWritePricePerMTok: 1.84375;
2483
+ };
2484
+ readonly 'qwen/qwen3.7-plus': {
2485
+ readonly contextWindow: 1000000;
2486
+ readonly maxTokens: 65536;
2487
+ readonly inputPricePerMTok: 0.32;
2488
+ readonly outputPricePerMTok: 1.28;
2489
+ readonly cacheReadPricePerMTok: 0.064;
2490
+ readonly cacheWritePricePerMTok: 0.4;
2491
+ };
2492
+ readonly 'rekaai/reka-edge': {
2493
+ readonly contextWindow: 16384;
2494
+ readonly maxTokens: 16384;
2495
+ readonly inputPricePerMTok: 0.1;
2496
+ readonly outputPricePerMTok: 0.1;
2497
+ readonly cacheReadPricePerMTok: 0;
2498
+ readonly cacheWritePricePerMTok: 0;
2499
+ };
2500
+ readonly 'relace/relace-search': {
2501
+ readonly contextWindow: 256000;
2502
+ readonly maxTokens: 128000;
2503
+ readonly inputPricePerMTok: 1;
2504
+ readonly outputPricePerMTok: 3;
2505
+ readonly cacheReadPricePerMTok: 0;
2506
+ readonly cacheWritePricePerMTok: 0;
2507
+ };
2508
+ readonly 'sakana/fugu-ultra': {
2509
+ readonly contextWindow: 1000000;
2510
+ readonly maxTokens: 128000;
2511
+ readonly inputPricePerMTok: 5;
2512
+ readonly outputPricePerMTok: 30;
2513
+ readonly cacheReadPricePerMTok: 0.5;
2514
+ readonly cacheWritePricePerMTok: 0;
2515
+ };
2516
+ readonly 'sao10k/l3.1-euryale-70b': {
2517
+ readonly contextWindow: 131072;
2518
+ readonly maxTokens: 16384;
2519
+ readonly inputPricePerMTok: 0.85;
2520
+ readonly outputPricePerMTok: 0.85;
2521
+ readonly cacheReadPricePerMTok: 0;
2522
+ readonly cacheWritePricePerMTok: 0;
2523
+ };
2524
+ readonly 'stepfun/step-3.5-flash': {
2525
+ readonly contextWindow: 262144;
2526
+ readonly maxTokens: 65536;
2527
+ readonly inputPricePerMTok: 0.1;
2528
+ readonly outputPricePerMTok: 0.3;
2529
+ readonly cacheReadPricePerMTok: 0;
2530
+ readonly cacheWritePricePerMTok: 0;
2531
+ };
2532
+ readonly 'stepfun/step-3.7-flash': {
2533
+ readonly contextWindow: 256000;
2534
+ readonly maxTokens: 256000;
2535
+ readonly inputPricePerMTok: 0.2;
2536
+ readonly outputPricePerMTok: 1.15;
2537
+ readonly cacheReadPricePerMTok: 0.04;
2538
+ readonly cacheWritePricePerMTok: 0;
2539
+ };
2540
+ readonly 'tencent/hy3': {
2541
+ readonly contextWindow: 262144;
2542
+ readonly maxTokens: 128000;
2543
+ readonly inputPricePerMTok: 0.132;
2544
+ readonly outputPricePerMTok: 0.528;
2545
+ readonly cacheReadPricePerMTok: 0.033;
2546
+ readonly cacheWritePricePerMTok: 0;
2547
+ };
2548
+ readonly 'tencent/hy3-preview': {
2549
+ readonly contextWindow: 262144;
2550
+ readonly maxTokens: 4096;
2551
+ readonly inputPricePerMTok: 0.063;
2552
+ readonly outputPricePerMTok: 0.21;
2553
+ readonly cacheReadPricePerMTok: 0.021;
2554
+ readonly cacheWritePricePerMTok: 0;
2555
+ };
2556
+ readonly 'thedrummer/unslopnemo-12b': {
2557
+ readonly contextWindow: 32768;
2558
+ readonly maxTokens: 32768;
2559
+ readonly inputPricePerMTok: 0.4;
2560
+ readonly outputPricePerMTok: 0.4;
2561
+ readonly cacheReadPricePerMTok: 0;
2562
+ readonly cacheWritePricePerMTok: 0;
2563
+ };
2564
+ readonly 'thinkingmachines/inkling': {
2565
+ readonly contextWindow: 524288;
2566
+ readonly maxTokens: 4096;
2567
+ readonly inputPricePerMTok: 1;
2568
+ readonly outputPricePerMTok: 4.05;
2569
+ readonly cacheReadPricePerMTok: 0.17;
2570
+ readonly cacheWritePricePerMTok: 0;
2571
+ };
2572
+ readonly 'upstage/solar-pro-3': {
2573
+ readonly contextWindow: 128000;
2574
+ readonly maxTokens: 4096;
2575
+ readonly inputPricePerMTok: 0.15;
2576
+ readonly outputPricePerMTok: 0.6;
2577
+ readonly cacheReadPricePerMTok: 0.015;
2578
+ readonly cacheWritePricePerMTok: 0;
2579
+ };
2580
+ readonly 'x-ai/grok-4.20': {
2581
+ readonly contextWindow: 2000000;
2582
+ readonly maxTokens: 4096;
2583
+ readonly inputPricePerMTok: 1.25;
2584
+ readonly outputPricePerMTok: 2.5;
2585
+ readonly cacheReadPricePerMTok: 0.2;
2586
+ readonly cacheWritePricePerMTok: 0;
2587
+ };
2588
+ readonly 'x-ai/grok-4.3': {
2589
+ readonly contextWindow: 1000000;
2590
+ readonly maxTokens: 4096;
2591
+ readonly inputPricePerMTok: 1.25;
2592
+ readonly outputPricePerMTok: 2.5;
2593
+ readonly cacheReadPricePerMTok: 0.2;
2594
+ readonly cacheWritePricePerMTok: 0;
2595
+ };
2596
+ readonly 'x-ai/grok-4.5': {
2597
+ readonly contextWindow: 500000;
2598
+ readonly maxTokens: 4096;
2599
+ readonly inputPricePerMTok: 2;
2600
+ readonly outputPricePerMTok: 6;
2601
+ readonly cacheReadPricePerMTok: 0.3;
2602
+ readonly cacheWritePricePerMTok: 0;
2603
+ };
2604
+ readonly 'x-ai/grok-build-0.1': {
2605
+ readonly contextWindow: 256000;
2606
+ readonly maxTokens: 4096;
2607
+ readonly inputPricePerMTok: 1;
2608
+ readonly outputPricePerMTok: 2;
2609
+ readonly cacheReadPricePerMTok: 0.2;
2610
+ readonly cacheWritePricePerMTok: 0;
2611
+ };
2612
+ readonly 'xiaomi/mimo-v2.5': {
2613
+ readonly contextWindow: 1048576;
2614
+ readonly maxTokens: 131072;
2615
+ readonly inputPricePerMTok: 0.14;
2616
+ readonly outputPricePerMTok: 0.28;
2617
+ readonly cacheReadPricePerMTok: 0.0028;
2618
+ readonly cacheWritePricePerMTok: 0;
2619
+ };
2620
+ readonly 'xiaomi/mimo-v2.5-pro': {
2621
+ readonly contextWindow: 1048576;
2622
+ readonly maxTokens: 131072;
2623
+ readonly inputPricePerMTok: 0.435;
2624
+ readonly outputPricePerMTok: 0.87;
2625
+ readonly cacheReadPricePerMTok: 0.0036;
2626
+ readonly cacheWritePricePerMTok: 0;
2627
+ };
2628
+ readonly 'z-ai/glm-4.5': {
2629
+ readonly contextWindow: 131072;
2630
+ readonly maxTokens: 98304;
2631
+ readonly inputPricePerMTok: 0.6;
2632
+ readonly outputPricePerMTok: 2.2;
2633
+ readonly cacheReadPricePerMTok: 0.11;
2634
+ readonly cacheWritePricePerMTok: 0;
2635
+ };
2636
+ readonly 'z-ai/glm-4.5-air': {
2637
+ readonly contextWindow: 131072;
2638
+ readonly maxTokens: 98304;
2639
+ readonly inputPricePerMTok: 0.13;
2640
+ readonly outputPricePerMTok: 0.85;
2641
+ readonly cacheReadPricePerMTok: 0.025;
2642
+ readonly cacheWritePricePerMTok: 0;
2643
+ };
2644
+ readonly 'z-ai/glm-4.5v': {
2645
+ readonly contextWindow: 65536;
2646
+ readonly maxTokens: 16384;
2647
+ readonly inputPricePerMTok: 0.6;
2648
+ readonly outputPricePerMTok: 1.8;
2649
+ readonly cacheReadPricePerMTok: 0.11;
2650
+ readonly cacheWritePricePerMTok: 0;
2651
+ };
2652
+ readonly 'z-ai/glm-4.6': {
2653
+ readonly contextWindow: 202752;
2654
+ readonly maxTokens: 131072;
2655
+ readonly inputPricePerMTok: 0.5;
2656
+ readonly outputPricePerMTok: 2;
2657
+ readonly cacheReadPricePerMTok: 0.1;
2658
+ readonly cacheWritePricePerMTok: 0;
2659
+ };
2660
+ readonly 'z-ai/glm-4.6v': {
2661
+ readonly contextWindow: 131072;
2662
+ readonly maxTokens: 32768;
2663
+ readonly inputPricePerMTok: 0.3;
2664
+ readonly outputPricePerMTok: 0.9;
2665
+ readonly cacheReadPricePerMTok: 0.055;
2666
+ readonly cacheWritePricePerMTok: 0;
2667
+ };
2668
+ readonly 'z-ai/glm-4.7': {
2669
+ readonly contextWindow: 202752;
2670
+ readonly maxTokens: 131072;
2671
+ readonly inputPricePerMTok: 0.4;
2672
+ readonly outputPricePerMTok: 1.75;
2673
+ readonly cacheReadPricePerMTok: 0.08;
2674
+ readonly cacheWritePricePerMTok: 0;
2675
+ };
2676
+ readonly 'z-ai/glm-4.7-flash': {
2677
+ readonly contextWindow: 202752;
2678
+ readonly maxTokens: 16384;
2679
+ readonly inputPricePerMTok: 0.06;
2680
+ readonly outputPricePerMTok: 0.4;
2681
+ readonly cacheReadPricePerMTok: 0.01;
2682
+ readonly cacheWritePricePerMTok: 0;
2683
+ };
2684
+ readonly 'z-ai/glm-5': {
2685
+ readonly contextWindow: 204800;
2686
+ readonly maxTokens: 131072;
2687
+ readonly inputPricePerMTok: 0.6;
2688
+ readonly outputPricePerMTok: 1.9;
2689
+ readonly cacheReadPricePerMTok: 0.119;
2690
+ readonly cacheWritePricePerMTok: 0;
2691
+ };
2692
+ readonly 'z-ai/glm-5-turbo': {
2693
+ readonly contextWindow: 202752;
2694
+ readonly maxTokens: 131072;
2695
+ readonly inputPricePerMTok: 1.2;
2696
+ readonly outputPricePerMTok: 4;
2697
+ readonly cacheReadPricePerMTok: 0.24;
2698
+ readonly cacheWritePricePerMTok: 0;
2699
+ };
2700
+ readonly 'z-ai/glm-5.1': {
2701
+ readonly contextWindow: 200000;
2702
+ readonly maxTokens: 128000;
2703
+ readonly inputPricePerMTok: 0.966;
2704
+ readonly outputPricePerMTok: 3.036;
2705
+ readonly cacheReadPricePerMTok: 0.1794;
2706
+ readonly cacheWritePricePerMTok: 0;
2707
+ };
2708
+ readonly 'z-ai/glm-5.2': {
2709
+ readonly contextWindow: 1048576;
2710
+ readonly maxTokens: 131072;
2711
+ readonly inputPricePerMTok: 0.6818;
2712
+ readonly outputPricePerMTok: 2.1428;
2713
+ readonly cacheReadPricePerMTok: 0.12662;
2714
+ readonly cacheWritePricePerMTok: 0;
2715
+ };
2716
+ readonly 'z-ai/glm-5v-turbo': {
2717
+ readonly contextWindow: 202752;
2718
+ readonly maxTokens: 131072;
2719
+ readonly inputPricePerMTok: 1.2;
2720
+ readonly outputPricePerMTok: 4;
2721
+ readonly cacheReadPricePerMTok: 0.24;
2722
+ readonly cacheWritePricePerMTok: 0;
2723
+ };
2724
+ readonly '~anthropic/claude-fable-latest': {
2725
+ readonly contextWindow: 1000000;
2726
+ readonly maxTokens: 128000;
2727
+ readonly inputPricePerMTok: 10;
2728
+ readonly outputPricePerMTok: 50;
2729
+ readonly cacheReadPricePerMTok: 1;
2730
+ readonly cacheWritePricePerMTok: 12.5;
2731
+ };
2732
+ readonly '~anthropic/claude-haiku-latest': {
2733
+ readonly contextWindow: 200000;
2734
+ readonly maxTokens: 64000;
2735
+ readonly inputPricePerMTok: 1;
2736
+ readonly outputPricePerMTok: 5;
2737
+ readonly cacheReadPricePerMTok: 0.1;
2738
+ readonly cacheWritePricePerMTok: 1.25;
2739
+ };
2740
+ readonly '~anthropic/claude-opus-latest': {
2741
+ readonly contextWindow: 1000000;
2742
+ readonly maxTokens: 128000;
2743
+ readonly inputPricePerMTok: 5;
2744
+ readonly outputPricePerMTok: 25;
2745
+ readonly cacheReadPricePerMTok: 0.5;
2746
+ readonly cacheWritePricePerMTok: 6.25;
2747
+ };
2748
+ readonly '~anthropic/claude-sonnet-latest': {
2749
+ readonly contextWindow: 1000000;
2750
+ readonly maxTokens: 128000;
2751
+ readonly inputPricePerMTok: 2;
2752
+ readonly outputPricePerMTok: 10;
2753
+ readonly cacheReadPricePerMTok: 0.2;
2754
+ readonly cacheWritePricePerMTok: 2.5;
2755
+ };
2756
+ readonly '~google/gemini-flash-latest': {
2757
+ readonly contextWindow: 1048576;
2758
+ readonly maxTokens: 65536;
2759
+ readonly inputPricePerMTok: 1.5;
2760
+ readonly outputPricePerMTok: 7.5;
2761
+ readonly cacheReadPricePerMTok: 0.15;
2762
+ readonly cacheWritePricePerMTok: 0.083333;
2763
+ };
2764
+ readonly '~google/gemini-pro-latest': {
2765
+ readonly contextWindow: 1048576;
2766
+ readonly maxTokens: 65536;
2767
+ readonly inputPricePerMTok: 2;
2768
+ readonly outputPricePerMTok: 12;
2769
+ readonly cacheReadPricePerMTok: 0.2;
2770
+ readonly cacheWritePricePerMTok: 0.375;
2771
+ };
2772
+ readonly '~moonshotai/kimi-latest': {
2773
+ readonly contextWindow: 1048576;
2774
+ readonly maxTokens: 131072;
2775
+ readonly inputPricePerMTok: 3;
2776
+ readonly outputPricePerMTok: 15;
2777
+ readonly cacheReadPricePerMTok: 0.3;
2778
+ readonly cacheWritePricePerMTok: 0;
2779
+ };
2780
+ readonly '~openai/gpt-latest': {
2781
+ readonly contextWindow: 1050000;
2782
+ readonly maxTokens: 128000;
2783
+ readonly inputPricePerMTok: 5;
2784
+ readonly outputPricePerMTok: 30;
2785
+ readonly cacheReadPricePerMTok: 0.5;
2786
+ readonly cacheWritePricePerMTok: 6.25;
2787
+ };
2788
+ readonly '~openai/gpt-mini-latest': {
2789
+ readonly contextWindow: 400000;
2790
+ readonly maxTokens: 128000;
2791
+ readonly inputPricePerMTok: 0.75;
2792
+ readonly outputPricePerMTok: 4.5;
2793
+ readonly cacheReadPricePerMTok: 0.075;
2794
+ readonly cacheWritePricePerMTok: 0;
2795
+ };
2796
+ readonly '~x-ai/grok-latest': {
2797
+ readonly contextWindow: 500000;
2798
+ readonly maxTokens: 4096;
2799
+ readonly inputPricePerMTok: 2;
2800
+ readonly outputPricePerMTok: 6;
2801
+ readonly cacheReadPricePerMTok: 0.3;
2802
+ readonly cacheWritePricePerMTok: 0;
2803
+ };
2804
+ };
2805
+ readonly anthropic: {
2806
+ readonly 'claude-fable-5': {
2807
+ readonly contextWindow: 1000000;
2808
+ readonly maxTokens: 128000;
2809
+ readonly inputPricePerMTok: 10;
2810
+ readonly outputPricePerMTok: 50;
2811
+ readonly cacheReadPricePerMTok: 1;
2812
+ readonly cacheWritePricePerMTok: 12.5;
2813
+ };
2814
+ readonly 'claude-haiku-4-5': {
2815
+ readonly contextWindow: 200000;
2816
+ readonly maxTokens: 64000;
2817
+ readonly inputPricePerMTok: 1;
2818
+ readonly outputPricePerMTok: 5;
2819
+ readonly cacheReadPricePerMTok: 0.1;
2820
+ readonly cacheWritePricePerMTok: 1.25;
2821
+ };
2822
+ readonly 'claude-haiku-4-5-20251001': {
2823
+ readonly contextWindow: 200000;
2824
+ readonly maxTokens: 64000;
2825
+ readonly inputPricePerMTok: 1;
2826
+ readonly outputPricePerMTok: 5;
2827
+ readonly cacheReadPricePerMTok: 0.1;
2828
+ readonly cacheWritePricePerMTok: 1.25;
2829
+ };
2830
+ readonly 'claude-opus-4-1': {
2831
+ readonly contextWindow: 200000;
2832
+ readonly maxTokens: 32000;
2833
+ readonly inputPricePerMTok: 15;
2834
+ readonly outputPricePerMTok: 75;
2835
+ readonly cacheReadPricePerMTok: 1.5;
2836
+ readonly cacheWritePricePerMTok: 18.75;
2837
+ };
2838
+ readonly 'claude-opus-4-1-20250805': {
2839
+ readonly contextWindow: 200000;
2840
+ readonly maxTokens: 32000;
2841
+ readonly inputPricePerMTok: 15;
2842
+ readonly outputPricePerMTok: 75;
2843
+ readonly cacheReadPricePerMTok: 1.5;
2844
+ readonly cacheWritePricePerMTok: 18.75;
2845
+ };
2846
+ readonly 'claude-opus-4-5': {
2847
+ readonly contextWindow: 200000;
2848
+ readonly maxTokens: 64000;
2849
+ readonly inputPricePerMTok: 5;
2850
+ readonly outputPricePerMTok: 25;
2851
+ readonly cacheReadPricePerMTok: 0.5;
2852
+ readonly cacheWritePricePerMTok: 6.25;
2853
+ };
2854
+ readonly 'claude-opus-4-5-20251101': {
2855
+ readonly contextWindow: 200000;
2856
+ readonly maxTokens: 64000;
2857
+ readonly inputPricePerMTok: 5;
2858
+ readonly outputPricePerMTok: 25;
2859
+ readonly cacheReadPricePerMTok: 0.5;
2860
+ readonly cacheWritePricePerMTok: 6.25;
2861
+ };
2862
+ readonly 'claude-opus-4-6': {
2863
+ readonly contextWindow: 1000000;
2864
+ readonly maxTokens: 128000;
2865
+ readonly inputPricePerMTok: 5;
2866
+ readonly outputPricePerMTok: 25;
2867
+ readonly cacheReadPricePerMTok: 0.5;
2868
+ readonly cacheWritePricePerMTok: 6.25;
2869
+ };
2870
+ readonly 'claude-opus-4-7': {
2871
+ readonly contextWindow: 1000000;
2872
+ readonly maxTokens: 128000;
2873
+ readonly inputPricePerMTok: 5;
2874
+ readonly outputPricePerMTok: 25;
2875
+ readonly cacheReadPricePerMTok: 0.5;
2876
+ readonly cacheWritePricePerMTok: 6.25;
2877
+ };
2878
+ readonly 'claude-opus-4-8': {
2879
+ readonly contextWindow: 1000000;
2880
+ readonly maxTokens: 128000;
2881
+ readonly inputPricePerMTok: 5;
2882
+ readonly outputPricePerMTok: 25;
2883
+ readonly cacheReadPricePerMTok: 0.5;
2884
+ readonly cacheWritePricePerMTok: 6.25;
2885
+ };
2886
+ readonly 'claude-opus-5': {
2887
+ readonly contextWindow: 1000000;
2888
+ readonly maxTokens: 128000;
2889
+ readonly inputPricePerMTok: 5;
2890
+ readonly outputPricePerMTok: 25;
2891
+ readonly cacheReadPricePerMTok: 0.5;
2892
+ readonly cacheWritePricePerMTok: 6.25;
2893
+ };
2894
+ readonly 'claude-sonnet-4-5': {
2895
+ readonly contextWindow: 1000000;
2896
+ readonly maxTokens: 64000;
2897
+ readonly inputPricePerMTok: 3;
2898
+ readonly outputPricePerMTok: 15;
2899
+ readonly cacheReadPricePerMTok: 0.3;
2900
+ readonly cacheWritePricePerMTok: 3.75;
2901
+ };
2902
+ readonly 'claude-sonnet-4-5-20250929': {
2903
+ readonly contextWindow: 1000000;
2904
+ readonly maxTokens: 64000;
2905
+ readonly inputPricePerMTok: 3;
2906
+ readonly outputPricePerMTok: 15;
2907
+ readonly cacheReadPricePerMTok: 0.3;
2908
+ readonly cacheWritePricePerMTok: 3.75;
2909
+ };
2910
+ readonly 'claude-sonnet-4-6': {
2911
+ readonly contextWindow: 1000000;
2912
+ readonly maxTokens: 128000;
2913
+ readonly inputPricePerMTok: 3;
2914
+ readonly outputPricePerMTok: 15;
2915
+ readonly cacheReadPricePerMTok: 0.3;
2916
+ readonly cacheWritePricePerMTok: 3.75;
2917
+ };
2918
+ readonly 'claude-sonnet-5': {
2919
+ readonly contextWindow: 1000000;
2920
+ readonly maxTokens: 128000;
2921
+ readonly inputPricePerMTok: 2;
2922
+ readonly outputPricePerMTok: 10;
2923
+ readonly cacheReadPricePerMTok: 0.2;
2924
+ readonly cacheWritePricePerMTok: 2.5;
2925
+ };
2926
+ };
2927
+ readonly moonshotai: {
2928
+ readonly 'kimi-k2-0711-preview': {
2929
+ readonly contextWindow: 131072;
2930
+ readonly maxTokens: 16384;
2931
+ readonly inputPricePerMTok: 0.6;
2932
+ readonly outputPricePerMTok: 2.5;
2933
+ readonly cacheReadPricePerMTok: 0.15;
2934
+ readonly cacheWritePricePerMTok: 0;
2935
+ };
2936
+ readonly 'kimi-k2-0905-preview': {
2937
+ readonly contextWindow: 262144;
2938
+ readonly maxTokens: 262144;
2939
+ readonly inputPricePerMTok: 0.6;
2940
+ readonly outputPricePerMTok: 2.5;
2941
+ readonly cacheReadPricePerMTok: 0.15;
2942
+ readonly cacheWritePricePerMTok: 0;
2943
+ };
2944
+ readonly 'kimi-k2-thinking': {
2945
+ readonly contextWindow: 262144;
2946
+ readonly maxTokens: 262144;
2947
+ readonly inputPricePerMTok: 0.6;
2948
+ readonly outputPricePerMTok: 2.5;
2949
+ readonly cacheReadPricePerMTok: 0.15;
2950
+ readonly cacheWritePricePerMTok: 0;
2951
+ };
2952
+ readonly 'kimi-k2-thinking-turbo': {
2953
+ readonly contextWindow: 262144;
2954
+ readonly maxTokens: 262144;
2955
+ readonly inputPricePerMTok: 1.15;
2956
+ readonly outputPricePerMTok: 8;
2957
+ readonly cacheReadPricePerMTok: 0.15;
2958
+ readonly cacheWritePricePerMTok: 0;
2959
+ };
2960
+ readonly 'kimi-k2-turbo-preview': {
2961
+ readonly contextWindow: 262144;
2962
+ readonly maxTokens: 262144;
2963
+ readonly inputPricePerMTok: 2.4;
2964
+ readonly outputPricePerMTok: 10;
2965
+ readonly cacheReadPricePerMTok: 0.6;
2966
+ readonly cacheWritePricePerMTok: 0;
2967
+ };
2968
+ readonly 'kimi-k2.5': {
2969
+ readonly contextWindow: 262144;
2970
+ readonly maxTokens: 262144;
2971
+ readonly inputPricePerMTok: 0.6;
2972
+ readonly outputPricePerMTok: 3;
2973
+ readonly cacheReadPricePerMTok: 0.1;
2974
+ readonly cacheWritePricePerMTok: 0;
2975
+ };
2976
+ readonly 'kimi-k2.6': {
2977
+ readonly contextWindow: 262144;
2978
+ readonly maxTokens: 262144;
2979
+ readonly inputPricePerMTok: 0.95;
2980
+ readonly outputPricePerMTok: 4;
2981
+ readonly cacheReadPricePerMTok: 0.16;
2982
+ readonly cacheWritePricePerMTok: 0;
2983
+ };
2984
+ readonly 'kimi-k2.7-code': {
2985
+ readonly contextWindow: 262144;
2986
+ readonly maxTokens: 262144;
2987
+ readonly inputPricePerMTok: 0.95;
2988
+ readonly outputPricePerMTok: 4;
2989
+ readonly cacheReadPricePerMTok: 0.19;
2990
+ readonly cacheWritePricePerMTok: 0;
2991
+ };
2992
+ readonly 'kimi-k2.7-code-highspeed': {
2993
+ readonly contextWindow: 262144;
2994
+ readonly maxTokens: 262144;
2995
+ readonly inputPricePerMTok: 1.9;
2996
+ readonly outputPricePerMTok: 8;
2997
+ readonly cacheReadPricePerMTok: 0.38;
2998
+ readonly cacheWritePricePerMTok: 0;
2999
+ };
3000
+ readonly 'kimi-k3': {
3001
+ readonly contextWindow: 1048576;
3002
+ readonly maxTokens: 131072;
3003
+ readonly inputPricePerMTok: 3;
3004
+ readonly outputPricePerMTok: 15;
3005
+ readonly cacheReadPricePerMTok: 0.3;
3006
+ readonly cacheWritePricePerMTok: 0;
3007
+ };
3008
+ };
3009
+ };
3010
+ //# sourceMappingURL=catalog.generated.d.ts.map