@qduc/term2 0.11.1 → 0.12.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 (1258) hide show
  1. package/README.md +6 -4
  2. package/dist/agent.d.ts +21 -24
  3. package/dist/agent.d.ts.map +1 -1
  4. package/dist/agent.js +73 -21
  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 +283 -128
  9. package/dist/app.js.map +1 -1
  10. package/dist/cli.js +91 -27
  11. package/dist/cli.js.map +1 -1
  12. package/dist/commands/auto-approve-command.js.map +1 -1
  13. package/dist/commands/mode-commands.js.map +1 -1
  14. package/dist/commands/retry-tool-command.d.ts +13 -0
  15. package/dist/commands/retry-tool-command.d.ts.map +1 -0
  16. package/dist/commands/retry-tool-command.js +20 -0
  17. package/dist/commands/retry-tool-command.js.map +1 -0
  18. package/dist/commands/rewind-command.d.ts +37 -0
  19. package/dist/commands/rewind-command.d.ts.map +1 -0
  20. package/dist/commands/rewind-command.js +97 -0
  21. package/dist/commands/rewind-command.js.map +1 -0
  22. package/dist/commands/sandbox-command.js.map +1 -1
  23. package/dist/components/InputBox.d.ts +18 -32
  24. package/dist/components/InputBox.d.ts.map +1 -1
  25. package/dist/components/InputBox.js +178 -579
  26. package/dist/components/InputBox.js.map +1 -1
  27. package/dist/components/input/ApplicationInputSurface.d.ts +37 -0
  28. package/dist/components/input/ApplicationInputSurface.d.ts.map +1 -0
  29. package/dist/components/input/ApplicationInputSurface.js +78 -0
  30. package/dist/components/input/ApplicationInputSurface.js.map +1 -0
  31. package/dist/components/input/MenuStackHost.d.ts +12 -0
  32. package/dist/components/input/MenuStackHost.d.ts.map +1 -0
  33. package/dist/components/input/MenuStackHost.js +13 -0
  34. package/dist/components/input/MenuStackHost.js.map +1 -0
  35. package/dist/components/input/MenuSurface.d.ts +13 -0
  36. package/dist/components/input/MenuSurface.d.ts.map +1 -0
  37. package/dist/components/input/MenuSurface.js +86 -0
  38. package/dist/components/input/MenuSurface.js.map +1 -0
  39. package/dist/components/input/ModelMenuSession.d.ts +19 -0
  40. package/dist/components/input/ModelMenuSession.d.ts.map +1 -0
  41. package/dist/components/input/ModelMenuSession.js +144 -0
  42. package/dist/components/input/ModelMenuSession.js.map +1 -0
  43. package/dist/components/input/PathMenuSession.d.ts +16 -0
  44. package/dist/components/input/PathMenuSession.d.ts.map +1 -0
  45. package/dist/components/input/PathMenuSession.js +68 -0
  46. package/dist/components/input/PathMenuSession.js.map +1 -0
  47. package/dist/components/input/PendingQueueList.d.ts +20 -0
  48. package/dist/components/input/PendingQueueList.d.ts.map +1 -0
  49. package/dist/components/input/PendingQueueList.js +26 -0
  50. package/dist/components/input/PendingQueueList.js.map +1 -0
  51. package/dist/components/input/ProviderMenuSession.d.ts +16 -0
  52. package/dist/components/input/ProviderMenuSession.d.ts.map +1 -0
  53. package/dist/components/input/ProviderMenuSession.js +93 -0
  54. package/dist/components/input/ProviderMenuSession.js.map +1 -0
  55. package/dist/components/input/RewindMenuSession.d.ts +14 -0
  56. package/dist/components/input/RewindMenuSession.d.ts.map +1 -0
  57. package/dist/components/input/RewindMenuSession.js +77 -0
  58. package/dist/components/input/RewindMenuSession.js.map +1 -0
  59. package/dist/components/input/SettingsMenuSession.d.ts +17 -0
  60. package/dist/components/input/SettingsMenuSession.d.ts.map +1 -0
  61. package/dist/components/input/SettingsMenuSession.js +136 -0
  62. package/dist/components/input/SettingsMenuSession.js.map +1 -0
  63. package/dist/components/input/SettingsValueMenuSession.d.ts +19 -0
  64. package/dist/components/input/SettingsValueMenuSession.d.ts.map +1 -0
  65. package/dist/components/input/SettingsValueMenuSession.js +113 -0
  66. package/dist/components/input/SettingsValueMenuSession.js.map +1 -0
  67. package/dist/components/input/SkillsMenuSession.d.ts +16 -0
  68. package/dist/components/input/SkillsMenuSession.d.ts.map +1 -0
  69. package/dist/components/input/SkillsMenuSession.js +64 -0
  70. package/dist/components/input/SkillsMenuSession.js.map +1 -0
  71. package/dist/components/input/SlashMenuSession.d.ts +17 -0
  72. package/dist/components/input/SlashMenuSession.d.ts.map +1 -0
  73. package/dist/components/input/SlashMenuSession.js +57 -0
  74. package/dist/components/input/SlashMenuSession.js.map +1 -0
  75. package/dist/components/input/determine-active-menu.d.ts +2 -0
  76. package/dist/components/input/determine-active-menu.d.ts.map +1 -1
  77. package/dist/components/input/determine-active-menu.js +12 -4
  78. package/dist/components/input/determine-active-menu.js.map +1 -1
  79. package/dist/components/input/insertions.d.ts +0 -13
  80. package/dist/components/input/insertions.d.ts.map +1 -1
  81. package/dist/components/input/insertions.js +0 -26
  82. package/dist/components/input/insertions.js.map +1 -1
  83. package/dist/components/input/menu-controller.d.ts +52 -0
  84. package/dist/components/input/menu-controller.d.ts.map +1 -0
  85. package/dist/components/input/menu-controller.js +690 -0
  86. package/dist/components/input/menu-controller.js.map +1 -0
  87. package/dist/components/input/menu-editor.d.ts +9 -0
  88. package/dist/components/input/menu-editor.d.ts.map +1 -0
  89. package/dist/components/input/menu-editor.js +45 -0
  90. package/dist/components/input/menu-editor.js.map +1 -0
  91. package/dist/components/input/menu-registry.d.ts +20 -0
  92. package/dist/components/input/menu-registry.d.ts.map +1 -0
  93. package/dist/components/input/menu-registry.js +25 -0
  94. package/dist/components/input/menu-registry.js.map +1 -0
  95. package/dist/components/input/menu-types.d.ts +320 -0
  96. package/dist/components/input/menu-types.d.ts.map +1 -0
  97. package/dist/components/input/menu-types.js +2 -0
  98. package/dist/components/input/menu-types.js.map +1 -0
  99. package/dist/components/input/settings-intent-host.d.ts +22 -0
  100. package/dist/components/input/settings-intent-host.d.ts.map +1 -0
  101. package/dist/components/input/settings-intent-host.js +69 -0
  102. package/dist/components/input/settings-intent-host.js.map +1 -0
  103. package/dist/components/input/triggers.d.ts +3 -0
  104. package/dist/components/input/triggers.d.ts.map +1 -1
  105. package/dist/components/input/triggers.js +258 -0
  106. package/dist/components/input/triggers.js.map +1 -1
  107. package/dist/components/layout/BackgroundTaskManager.d.ts +16 -0
  108. package/dist/components/layout/BackgroundTaskManager.d.ts.map +1 -0
  109. package/dist/components/layout/BackgroundTaskManager.js +236 -0
  110. package/dist/components/layout/BackgroundTaskManager.js.map +1 -0
  111. package/dist/components/layout/BackgroundTasksPanel.d.ts +2 -2
  112. package/dist/components/layout/BackgroundTasksPanel.d.ts.map +1 -1
  113. package/dist/components/layout/BackgroundTasksPanel.js +54 -33
  114. package/dist/components/layout/BackgroundTasksPanel.js.map +1 -1
  115. package/dist/components/layout/Banner.js.map +1 -1
  116. package/dist/components/layout/BottomArea.d.ts +23 -19
  117. package/dist/components/layout/BottomArea.d.ts.map +1 -1
  118. package/dist/components/layout/BottomArea.js +74 -48
  119. package/dist/components/layout/BottomArea.js.map +1 -1
  120. package/dist/components/layout/StatusBar.d.ts +3 -1
  121. package/dist/components/layout/StatusBar.d.ts.map +1 -1
  122. package/dist/components/layout/StatusBar.js +102 -83
  123. package/dist/components/layout/StatusBar.js.map +1 -1
  124. package/dist/components/menu/ModelSelectionMenu.js.map +1 -1
  125. package/dist/components/menu/RewindMenu.d.ts +18 -0
  126. package/dist/components/menu/RewindMenu.d.ts.map +1 -0
  127. package/dist/components/menu/RewindMenu.js +59 -0
  128. package/dist/components/menu/RewindMenu.js.map +1 -0
  129. package/dist/components/message/ChatMessage.d.ts +2 -1
  130. package/dist/components/message/ChatMessage.d.ts.map +1 -1
  131. package/dist/components/message/ChatMessage.js +1 -1
  132. package/dist/components/message/ChatMessage.js.map +1 -1
  133. package/dist/components/message/CommandMessage.d.ts.map +1 -1
  134. package/dist/components/message/CommandMessage.js +138 -17
  135. package/dist/components/message/CommandMessage.js.map +1 -1
  136. package/dist/components/message/MemoryRenderer.d.ts.map +1 -1
  137. package/dist/components/message/MemoryRenderer.js +16 -10
  138. package/dist/components/message/MemoryRenderer.js.map +1 -1
  139. package/dist/components/message/MessageList.d.ts +20 -3
  140. package/dist/components/message/MessageList.d.ts.map +1 -1
  141. package/dist/components/message/MessageList.js +1 -1
  142. package/dist/components/message/MessageList.js.map +1 -1
  143. package/dist/components/message/SubagentActivityMessage.d.ts +5 -1
  144. package/dist/components/message/SubagentActivityMessage.d.ts.map +1 -1
  145. package/dist/components/message/SubagentActivityMessage.js +12 -4
  146. package/dist/components/message/SubagentActivityMessage.js.map +1 -1
  147. package/dist/components/message/command-message-helpers.d.ts +37 -0
  148. package/dist/components/message/command-message-helpers.d.ts.map +1 -1
  149. package/dist/components/message/command-message-helpers.js +49 -8
  150. package/dist/components/message/command-message-helpers.js.map +1 -1
  151. package/dist/components/prompt/ApprovalPrompt.d.ts +1 -0
  152. package/dist/components/prompt/ApprovalPrompt.d.ts.map +1 -1
  153. package/dist/components/prompt/ApprovalPrompt.js +136 -59
  154. package/dist/components/prompt/ApprovalPrompt.js.map +1 -1
  155. package/dist/context/InputContext.d.ts +15 -8
  156. package/dist/context/InputContext.d.ts.map +1 -1
  157. package/dist/context/InputContext.js +92 -15
  158. package/dist/context/InputContext.js.map +1 -1
  159. package/dist/contracts/application-stream.d.ts +38 -0
  160. package/dist/contracts/application-stream.d.ts.map +1 -0
  161. package/dist/contracts/application-stream.js +2 -0
  162. package/dist/contracts/application-stream.js.map +1 -0
  163. package/dist/contracts/continuation-handle.d.ts +18 -0
  164. package/dist/contracts/continuation-handle.d.ts.map +1 -0
  165. package/dist/contracts/continuation-handle.js +22 -0
  166. package/dist/contracts/continuation-handle.js.map +1 -0
  167. package/dist/contracts/conversation-items.d.ts +47 -0
  168. package/dist/contracts/conversation-items.d.ts.map +1 -0
  169. package/dist/contracts/conversation-items.js +2 -0
  170. package/dist/contracts/conversation-items.js.map +1 -0
  171. package/dist/contracts/conversation.d.ts +44 -4
  172. package/dist/contracts/conversation.d.ts.map +1 -1
  173. package/dist/contracts/conversation.js +9 -0
  174. package/dist/contracts/conversation.js.map +1 -1
  175. package/dist/contracts/model-errors.d.ts +10 -0
  176. package/dist/contracts/model-errors.d.ts.map +1 -0
  177. package/dist/contracts/model-errors.js +15 -0
  178. package/dist/contracts/model-errors.js.map +1 -0
  179. package/dist/contracts/model-types.d.ts +16 -0
  180. package/dist/contracts/model-types.d.ts.map +1 -0
  181. package/dist/contracts/model-types.js +2 -0
  182. package/dist/contracts/model-types.js.map +1 -0
  183. package/dist/contracts/patch.d.ts +17 -0
  184. package/dist/contracts/patch.d.ts.map +1 -0
  185. package/dist/contracts/patch.js +2 -0
  186. package/dist/contracts/patch.js.map +1 -0
  187. package/dist/contracts/provider-input.d.ts +34 -0
  188. package/dist/contracts/provider-input.d.ts.map +1 -0
  189. package/dist/contracts/provider-input.js +2 -0
  190. package/dist/contracts/provider-input.js.map +1 -0
  191. package/dist/contracts/streamed-model-turn.d.ts +230 -0
  192. package/dist/contracts/streamed-model-turn.d.ts.map +1 -0
  193. package/dist/contracts/streamed-model-turn.js +2 -0
  194. package/dist/contracts/streamed-model-turn.js.map +1 -0
  195. package/dist/env-setup.js +1 -1
  196. package/dist/hooks/conversation-ui-reducer.d.ts +22 -4
  197. package/dist/hooks/conversation-ui-reducer.d.ts.map +1 -1
  198. package/dist/hooks/conversation-ui-reducer.js +43 -4
  199. package/dist/hooks/conversation-ui-reducer.js.map +1 -1
  200. package/dist/hooks/handoff-flow-reducer.d.ts +1 -36
  201. package/dist/hooks/handoff-flow-reducer.d.ts.map +1 -1
  202. package/dist/hooks/handoff-flow-reducer.js +3 -57
  203. package/dist/hooks/handoff-flow-reducer.js.map +1 -1
  204. package/dist/hooks/settings-completion-config.d.ts +1 -0
  205. package/dist/hooks/settings-completion-config.d.ts.map +1 -1
  206. package/dist/hooks/settings-completion-config.js +30 -6
  207. package/dist/hooks/settings-completion-config.js.map +1 -1
  208. package/dist/hooks/use-app-commands.d.ts +13 -11
  209. package/dist/hooks/use-app-commands.d.ts.map +1 -1
  210. package/dist/hooks/use-app-commands.js +90 -63
  211. package/dist/hooks/use-app-commands.js.map +1 -1
  212. package/dist/hooks/use-app-keyboard-shortcuts.d.ts +18 -1
  213. package/dist/hooks/use-app-keyboard-shortcuts.d.ts.map +1 -1
  214. package/dist/hooks/use-app-keyboard-shortcuts.js +77 -8
  215. package/dist/hooks/use-app-keyboard-shortcuts.js.map +1 -1
  216. package/dist/hooks/use-conversation.d.ts +30 -13
  217. package/dist/hooks/use-conversation.d.ts.map +1 -1
  218. package/dist/hooks/use-conversation.js +84 -18
  219. package/dist/hooks/use-conversation.js.map +1 -1
  220. package/dist/hooks/use-escape-key.d.ts +4 -32
  221. package/dist/hooks/use-escape-key.d.ts.map +1 -1
  222. package/dist/hooks/use-escape-key.js +27 -68
  223. package/dist/hooks/use-escape-key.js.map +1 -1
  224. package/dist/hooks/use-handoff-flow.d.ts +6 -6
  225. package/dist/hooks/use-handoff-flow.d.ts.map +1 -1
  226. package/dist/hooks/use-handoff-flow.js +110 -118
  227. package/dist/hooks/use-handoff-flow.js.map +1 -1
  228. package/dist/hooks/use-model-selection.d.ts.map +1 -1
  229. package/dist/hooks/use-model-selection.js +50 -59
  230. package/dist/hooks/use-model-selection.js.map +1 -1
  231. package/dist/hooks/use-path-completion.d.ts.map +1 -1
  232. package/dist/hooks/use-path-completion.js +20 -11
  233. package/dist/hooks/use-path-completion.js.map +1 -1
  234. package/dist/hooks/use-provider-selection.d.ts.map +1 -1
  235. package/dist/hooks/use-provider-selection.js +19 -16
  236. package/dist/hooks/use-provider-selection.js.map +1 -1
  237. package/dist/hooks/use-rewind-selection.d.ts +30 -0
  238. package/dist/hooks/use-rewind-selection.d.ts.map +1 -0
  239. package/dist/hooks/{use-undo-selection.js → use-rewind-selection.js} +37 -28
  240. package/dist/hooks/use-rewind-selection.js.map +1 -0
  241. package/dist/hooks/use-runtime-settings.d.ts.map +1 -1
  242. package/dist/hooks/use-runtime-settings.js +4 -3
  243. package/dist/hooks/use-runtime-settings.js.map +1 -1
  244. package/dist/hooks/use-selection.d.ts +1 -0
  245. package/dist/hooks/use-selection.d.ts.map +1 -1
  246. package/dist/hooks/use-selection.js +1 -1
  247. package/dist/hooks/use-selection.js.map +1 -1
  248. package/dist/hooks/use-setting.d.ts +3 -2
  249. package/dist/hooks/use-setting.d.ts.map +1 -1
  250. package/dist/hooks/use-setting.js +1 -1
  251. package/dist/hooks/use-setting.js.map +1 -1
  252. package/dist/hooks/use-settings-completion.d.ts +1 -0
  253. package/dist/hooks/use-settings-completion.d.ts.map +1 -1
  254. package/dist/hooks/use-settings-completion.js +22 -15
  255. package/dist/hooks/use-settings-completion.js.map +1 -1
  256. package/dist/hooks/use-settings-value-completion.d.ts.map +1 -1
  257. package/dist/hooks/use-settings-value-completion.js +40 -28
  258. package/dist/hooks/use-settings-value-completion.js.map +1 -1
  259. package/dist/hooks/use-shell-mode.d.ts +3 -13
  260. package/dist/hooks/use-shell-mode.d.ts.map +1 -1
  261. package/dist/hooks/use-shell-mode.js +14 -53
  262. package/dist/hooks/use-shell-mode.js.map +1 -1
  263. package/dist/hooks/use-skill-selection.d.ts.map +1 -1
  264. package/dist/hooks/use-skill-selection.js +17 -11
  265. package/dist/hooks/use-skill-selection.js.map +1 -1
  266. package/dist/hooks/use-slash-commands.d.ts.map +1 -1
  267. package/dist/hooks/use-slash-commands.js +11 -10
  268. package/dist/hooks/use-slash-commands.js.map +1 -1
  269. package/dist/hooks/use-terminal-focus-notifier.js.map +1 -1
  270. package/dist/lib/agent-chat-service.d.ts +12 -8
  271. package/dist/lib/agent-chat-service.d.ts.map +1 -1
  272. package/dist/lib/agent-chat-service.js +79 -44
  273. package/dist/lib/agent-chat-service.js.map +1 -1
  274. package/dist/lib/agent-client.d.ts +93 -17
  275. package/dist/lib/agent-client.d.ts.map +1 -1
  276. package/dist/lib/agent-client.js +398 -37
  277. package/dist/lib/agent-client.js.map +1 -1
  278. package/dist/lib/agent-configuration.d.ts +33 -15
  279. package/dist/lib/agent-configuration.d.ts.map +1 -1
  280. package/dist/lib/agent-configuration.js +104 -9
  281. package/dist/lib/agent-configuration.js.map +1 -1
  282. package/dist/lib/agent-factory.d.ts +22 -4
  283. package/dist/lib/agent-factory.d.ts.map +1 -1
  284. package/dist/lib/agent-factory.js +137 -101
  285. package/dist/lib/agent-factory.js.map +1 -1
  286. package/dist/lib/chained-input-filter.d.ts +7 -1
  287. package/dist/lib/chained-input-filter.d.ts.map +1 -1
  288. package/dist/lib/chained-input-filter.js +46 -62
  289. package/dist/lib/chained-input-filter.js.map +1 -1
  290. package/dist/lib/continuation-projection-mode.d.ts +3 -0
  291. package/dist/lib/continuation-projection-mode.d.ts.map +1 -0
  292. package/dist/lib/continuation-projection-mode.js +2 -0
  293. package/dist/lib/continuation-projection-mode.js.map +1 -0
  294. package/dist/lib/editor-impl.d.ts +1 -1
  295. package/dist/lib/editor-impl.d.ts.map +1 -1
  296. package/dist/lib/editor-impl.js +1 -1
  297. package/dist/lib/editor-impl.js.map +1 -1
  298. package/dist/lib/harness-invariant-error.d.ts +22 -0
  299. package/dist/lib/harness-invariant-error.d.ts.map +1 -0
  300. package/dist/lib/harness-invariant-error.js +30 -0
  301. package/dist/lib/harness-invariant-error.js.map +1 -0
  302. package/dist/lib/input-owner.d.ts +64 -0
  303. package/dist/lib/input-owner.d.ts.map +1 -0
  304. package/dist/lib/input-owner.js +34 -0
  305. package/dist/lib/input-owner.js.map +1 -0
  306. package/dist/lib/openai-strict-tool-schema.d.ts +7 -4
  307. package/dist/lib/openai-strict-tool-schema.d.ts.map +1 -1
  308. package/dist/lib/openai-strict-tool-schema.js +8 -0
  309. package/dist/lib/openai-strict-tool-schema.js.map +1 -1
  310. package/dist/lib/subagent-bridge.d.ts +36 -4
  311. package/dist/lib/subagent-bridge.d.ts.map +1 -1
  312. package/dist/lib/subagent-bridge.js +92 -20
  313. package/dist/lib/subagent-bridge.js.map +1 -1
  314. package/dist/lib/tool-invoke.d.ts +18 -10
  315. package/dist/lib/tool-invoke.d.ts.map +1 -1
  316. package/dist/lib/tool-invoke.js +92 -44
  317. package/dist/lib/tool-invoke.js.map +1 -1
  318. package/dist/non-interactive.d.ts +14 -4
  319. package/dist/non-interactive.d.ts.map +1 -1
  320. package/dist/non-interactive.js +91 -84
  321. package/dist/non-interactive.js.map +1 -1
  322. package/dist/prompts/async-subagent-delegation.d.ts +1 -4
  323. package/dist/prompts/async-subagent-delegation.d.ts.map +1 -1
  324. package/dist/prompts/async-subagent-delegation.js +9 -47
  325. package/dist/prompts/async-subagent-delegation.js.map +1 -1
  326. package/dist/prompts/async-subagent-delegation.ts +9 -58
  327. package/dist/prompts/memory.md +1 -1
  328. package/dist/prompts/orchestrator-prompt.test.ts +15 -0
  329. package/dist/prompts/orchestrator.md +7 -5
  330. package/dist/prompts/plan-mode-info.md +1 -1
  331. package/dist/prompts/prompt-constructor.d.ts +1 -0
  332. package/dist/prompts/prompt-constructor.d.ts.map +1 -1
  333. package/dist/prompts/prompt-constructor.js +5 -7
  334. package/dist/prompts/prompt-constructor.js.map +1 -1
  335. package/dist/prompts/prompt-constructor.test.ts +9 -8
  336. package/dist/prompts/prompt-constructor.ts +6 -7
  337. package/dist/prompts/shell-auto-approval.d.ts +2 -2
  338. package/dist/prompts/shell-auto-approval.d.ts.map +1 -1
  339. package/dist/prompts/shell-auto-approval.js +20 -5
  340. package/dist/prompts/shell-auto-approval.js.map +1 -1
  341. package/dist/prompts/shell-auto-approval.ts +20 -5
  342. package/dist/prompts/steering-notice.d.ts +16 -0
  343. package/dist/prompts/steering-notice.d.ts.map +1 -0
  344. package/dist/prompts/steering-notice.js +24 -0
  345. package/dist/prompts/steering-notice.js.map +1 -0
  346. package/dist/prompts/steering-notice.ts +24 -0
  347. package/dist/prompts/subagent-delegation.d.ts +6 -5
  348. package/dist/prompts/subagent-delegation.d.ts.map +1 -1
  349. package/dist/prompts/subagent-delegation.js +36 -13
  350. package/dist/prompts/subagent-delegation.js.map +1 -1
  351. package/dist/prompts/subagent-delegation.test.ts +9 -2
  352. package/dist/prompts/subagent-delegation.ts +54 -14
  353. package/dist/prompts/subagents/explorer.md +24 -14
  354. package/dist/prompts/subagents/worker-prompt.test.ts +2 -2
  355. package/dist/prompts/worktree-hygiene.md +1 -0
  356. package/dist/providers/ai-sdk-anthropic.provider.d.ts +3 -3
  357. package/dist/providers/ai-sdk-anthropic.provider.d.ts.map +1 -1
  358. package/dist/providers/ai-sdk-anthropic.provider.js +8 -4
  359. package/dist/providers/ai-sdk-anthropic.provider.js.map +1 -1
  360. package/dist/providers/ai-sdk-google.provider.d.ts +5 -4
  361. package/dist/providers/ai-sdk-google.provider.d.ts.map +1 -1
  362. package/dist/providers/ai-sdk-google.provider.js +23 -3
  363. package/dist/providers/ai-sdk-google.provider.js.map +1 -1
  364. package/dist/providers/ai-sdk-message-normalizer.d.ts +3 -7
  365. package/dist/providers/ai-sdk-message-normalizer.d.ts.map +1 -1
  366. package/dist/providers/ai-sdk-message-normalizer.js +27 -11
  367. package/dist/providers/ai-sdk-message-normalizer.js.map +1 -1
  368. package/dist/providers/ai-sdk-openrouter.provider.d.ts +5 -4
  369. package/dist/providers/ai-sdk-openrouter.provider.d.ts.map +1 -1
  370. package/dist/providers/ai-sdk-openrouter.provider.js +25 -3
  371. package/dist/providers/ai-sdk-openrouter.provider.js.map +1 -1
  372. package/dist/providers/ai-sdk-provider-settings.d.ts +10 -0
  373. package/dist/providers/ai-sdk-provider-settings.d.ts.map +1 -0
  374. package/dist/providers/ai-sdk-provider-settings.js +37 -0
  375. package/dist/providers/ai-sdk-provider-settings.js.map +1 -0
  376. package/dist/providers/ai-sdk-streamed-model.d.ts +5 -0
  377. package/dist/providers/ai-sdk-streamed-model.d.ts.map +1 -0
  378. package/dist/providers/ai-sdk-streamed-model.js +338 -0
  379. package/dist/providers/ai-sdk-streamed-model.js.map +1 -0
  380. package/dist/providers/codex-responses-model.d.ts +39 -12
  381. package/dist/providers/codex-responses-model.d.ts.map +1 -1
  382. package/dist/providers/codex-responses-model.js +656 -155
  383. package/dist/providers/codex-responses-model.js.map +1 -1
  384. package/dist/providers/codex-turn-converter.d.ts +12 -0
  385. package/dist/providers/codex-turn-converter.d.ts.map +1 -0
  386. package/dist/providers/codex-turn-converter.js +168 -0
  387. package/dist/providers/codex-turn-converter.js.map +1 -0
  388. package/dist/providers/codex.provider.d.ts +21 -0
  389. package/dist/providers/codex.provider.d.ts.map +1 -1
  390. package/dist/providers/codex.provider.js +57 -27
  391. package/dist/providers/codex.provider.js.map +1 -1
  392. package/dist/providers/common/openai-compatible-message-contract.d.ts +8 -0
  393. package/dist/providers/common/openai-compatible-message-contract.d.ts.map +1 -0
  394. package/dist/providers/common/openai-compatible-message-contract.js +23 -0
  395. package/dist/providers/common/openai-compatible-message-contract.js.map +1 -0
  396. package/dist/providers/common/openai-compatible-messages.d.ts +0 -4
  397. package/dist/providers/common/openai-compatible-messages.d.ts.map +1 -1
  398. package/dist/providers/common/openai-compatible-messages.js +0 -288
  399. package/dist/providers/common/openai-compatible-messages.js.map +1 -1
  400. package/dist/providers/fetch/composer.d.ts.map +1 -1
  401. package/dist/providers/fetch/composer.js +1 -0
  402. package/dist/providers/fetch/composer.js.map +1 -1
  403. package/dist/providers/model-catalog/catalog.d.ts +31 -0
  404. package/dist/providers/model-catalog/catalog.d.ts.map +1 -0
  405. package/dist/providers/model-catalog/catalog.generated.d.ts +3010 -0
  406. package/dist/providers/model-catalog/catalog.generated.d.ts.map +1 -0
  407. package/dist/providers/model-catalog/catalog.generated.js +3004 -0
  408. package/dist/providers/model-catalog/catalog.generated.js.map +1 -0
  409. package/dist/providers/model-catalog/catalog.js +62 -0
  410. package/dist/providers/model-catalog/catalog.js.map +1 -0
  411. package/dist/providers/model-catalog/generate-catalog.d.ts +42 -0
  412. package/dist/providers/model-catalog/generate-catalog.d.ts.map +1 -0
  413. package/dist/providers/model-catalog/generate-catalog.js +96 -0
  414. package/dist/providers/model-catalog/generate-catalog.js.map +1 -0
  415. package/dist/providers/openai-chained-input-compatibility.d.ts +36 -0
  416. package/dist/providers/openai-chained-input-compatibility.d.ts.map +1 -0
  417. package/dist/providers/openai-chained-input-compatibility.js +60 -0
  418. package/dist/providers/openai-chained-input-compatibility.js.map +1 -0
  419. package/dist/providers/openai-chat-completions-model.d.ts +12 -0
  420. package/dist/providers/openai-chat-completions-model.d.ts.map +1 -0
  421. package/dist/providers/openai-chat-completions-model.js +271 -0
  422. package/dist/providers/openai-chat-completions-model.js.map +1 -0
  423. package/dist/providers/openai-compatible-lazy.d.ts +1 -1
  424. package/dist/providers/openai-compatible-lazy.d.ts.map +1 -1
  425. package/dist/providers/openai-compatible-lazy.js +24 -36
  426. package/dist/providers/openai-compatible-lazy.js.map +1 -1
  427. package/dist/providers/openai-compatible-middleware.d.ts +4 -1
  428. package/dist/providers/openai-compatible-middleware.d.ts.map +1 -1
  429. package/dist/providers/openai-compatible-middleware.js +15 -14
  430. package/dist/providers/openai-compatible-middleware.js.map +1 -1
  431. package/dist/providers/openai-compatible-response-normalizer.d.ts +10 -1
  432. package/dist/providers/openai-compatible-response-normalizer.d.ts.map +1 -1
  433. package/dist/providers/openai-compatible-response-normalizer.js +15 -4
  434. package/dist/providers/openai-compatible-response-normalizer.js.map +1 -1
  435. package/dist/providers/openai-compatible.provider.d.ts +7 -10
  436. package/dist/providers/openai-compatible.provider.d.ts.map +1 -1
  437. package/dist/providers/openai-compatible.provider.js +80 -78
  438. package/dist/providers/openai-compatible.provider.js.map +1 -1
  439. package/dist/providers/openai-request-prefix-binding.d.ts +28 -0
  440. package/dist/providers/openai-request-prefix-binding.d.ts.map +1 -0
  441. package/dist/providers/openai-request-prefix-binding.js +78 -0
  442. package/dist/providers/openai-request-prefix-binding.js.map +1 -0
  443. package/dist/providers/openai-responses-model.d.ts +43 -0
  444. package/dist/providers/openai-responses-model.d.ts.map +1 -0
  445. package/dist/providers/openai-responses-model.js +564 -0
  446. package/dist/providers/openai-responses-model.js.map +1 -0
  447. package/dist/providers/openai.provider.d.ts +11 -8
  448. package/dist/providers/openai.provider.d.ts.map +1 -1
  449. package/dist/providers/openai.provider.js +43 -91
  450. package/dist/providers/openai.provider.js.map +1 -1
  451. package/dist/providers/opencode-routing.d.ts +1 -1
  452. package/dist/providers/opencode-routing.d.ts.map +1 -1
  453. package/dist/providers/opencode-routing.js +4 -2
  454. package/dist/providers/opencode-routing.js.map +1 -1
  455. package/dist/providers/opencode-session.d.ts.map +1 -1
  456. package/dist/providers/opencode-session.js +28 -3
  457. package/dist/providers/opencode-session.js.map +1 -1
  458. package/dist/providers/openrouter.provider.d.ts.map +1 -1
  459. package/dist/providers/openrouter.provider.js +33 -33
  460. package/dist/providers/openrouter.provider.js.map +1 -1
  461. package/dist/providers/provider-request-capture.d.ts +35 -0
  462. package/dist/providers/provider-request-capture.d.ts.map +1 -0
  463. package/dist/providers/provider-request-capture.js +22 -0
  464. package/dist/providers/provider-request-capture.js.map +1 -0
  465. package/dist/providers/provider-service.d.ts +9 -7
  466. package/dist/providers/provider-service.d.ts.map +1 -1
  467. package/dist/providers/provider-service.js +29 -28
  468. package/dist/providers/provider-service.js.map +1 -1
  469. package/dist/providers/registry.d.ts +14 -9
  470. package/dist/providers/registry.d.ts.map +1 -1
  471. package/dist/providers/registry.js.map +1 -1
  472. package/dist/providers/retrying-model.d.ts +8 -6
  473. package/dist/providers/retrying-model.d.ts.map +1 -1
  474. package/dist/providers/retrying-model.js +7 -20
  475. package/dist/providers/retrying-model.js.map +1 -1
  476. package/dist/providers/web-search/exa.provider.js.map +1 -1
  477. package/dist/providers/web-search/registry.js.map +1 -1
  478. package/dist/providers/web-search/tavily.provider.js.map +1 -1
  479. package/dist/providers/websocket-receive-watchdog.d.ts.map +1 -1
  480. package/dist/providers/websocket-receive-watchdog.js +9 -1
  481. package/dist/providers/websocket-receive-watchdog.js.map +1 -1
  482. package/dist/scripts/eval-auto-approval/runner.js +2 -0
  483. package/dist/scripts/eval-auto-approval/runner.js.map +1 -1
  484. package/dist/services/agent-runtime/application-run-loop.d.ts +205 -0
  485. package/dist/services/agent-runtime/application-run-loop.d.ts.map +1 -0
  486. package/dist/services/agent-runtime/application-run-loop.js +1236 -0
  487. package/dist/services/agent-runtime/application-run-loop.js.map +1 -0
  488. package/dist/services/agent-runtime/compose-agent-runtime.d.ts +3 -0
  489. package/dist/services/agent-runtime/compose-agent-runtime.d.ts.map +1 -1
  490. package/dist/services/agent-runtime/compose-agent-runtime.js +4 -0
  491. package/dist/services/agent-runtime/compose-agent-runtime.js.map +1 -1
  492. package/dist/services/agent-runtime/generation-guard.d.ts +69 -0
  493. package/dist/services/agent-runtime/generation-guard.d.ts.map +1 -0
  494. package/dist/services/agent-runtime/generation-guard.js +270 -0
  495. package/dist/services/agent-runtime/generation-guard.js.map +1 -0
  496. package/dist/services/agent-runtime/model-resolver.d.ts.map +1 -1
  497. package/dist/services/agent-runtime/model-resolver.js +7 -6
  498. package/dist/services/agent-runtime/model-resolver.js.map +1 -1
  499. package/dist/services/agent-runtime/structured-output.d.ts.map +1 -1
  500. package/dist/services/agent-runtime/structured-output.js +1 -21
  501. package/dist/services/agent-runtime/structured-output.js.map +1 -1
  502. package/dist/services/agent-runtime/tool-invocation-context.d.ts +73 -0
  503. package/dist/services/agent-runtime/tool-invocation-context.d.ts.map +1 -0
  504. package/dist/services/agent-runtime/tool-invocation-context.js +66 -0
  505. package/dist/services/agent-runtime/tool-invocation-context.js.map +1 -0
  506. package/dist/services/agent-stream.d.ts +41 -2
  507. package/dist/services/agent-stream.d.ts.map +1 -1
  508. package/dist/services/agent-stream.js +46 -1
  509. package/dist/services/agent-stream.js.map +1 -1
  510. package/dist/services/approval/approval-decision-executor.d.ts +42 -0
  511. package/dist/services/approval/approval-decision-executor.d.ts.map +1 -0
  512. package/dist/services/approval/approval-decision-executor.js +207 -0
  513. package/dist/services/approval/approval-decision-executor.js.map +1 -0
  514. package/dist/services/approval/approval-flow-coordinator.d.ts +25 -8
  515. package/dist/services/approval/approval-flow-coordinator.d.ts.map +1 -1
  516. package/dist/services/approval/approval-flow-coordinator.js +34 -167
  517. package/dist/services/approval/approval-flow-coordinator.js.map +1 -1
  518. package/dist/services/approval/approval-replay.d.ts +52 -0
  519. package/dist/services/approval/approval-replay.d.ts.map +1 -0
  520. package/dist/services/approval/approval-replay.js +68 -0
  521. package/dist/services/approval/approval-replay.js.map +1 -0
  522. package/dist/services/approval/approval-state.d.ts +3 -6
  523. package/dist/services/approval/approval-state.d.ts.map +1 -1
  524. package/dist/services/approval/approval-state.js +0 -10
  525. package/dist/services/approval/approval-state.js.map +1 -1
  526. package/dist/services/approval/background-subagent-approval-controller.d.ts +25 -0
  527. package/dist/services/approval/background-subagent-approval-controller.d.ts.map +1 -0
  528. package/dist/services/approval/background-subagent-approval-controller.js +65 -0
  529. package/dist/services/approval/background-subagent-approval-controller.js.map +1 -0
  530. package/dist/services/approval/background-subagent-approval-queue.d.ts +137 -0
  531. package/dist/services/approval/background-subagent-approval-queue.d.ts.map +1 -0
  532. package/dist/services/approval/background-subagent-approval-queue.js +200 -0
  533. package/dist/services/approval/background-subagent-approval-queue.js.map +1 -0
  534. package/dist/services/approval/non-interactive-approval-policy.d.ts +33 -0
  535. package/dist/services/approval/non-interactive-approval-policy.d.ts.map +1 -0
  536. package/dist/services/approval/non-interactive-approval-policy.js +85 -0
  537. package/dist/services/approval/non-interactive-approval-policy.js.map +1 -0
  538. package/dist/services/approval/session-read-access.d.ts +10 -0
  539. package/dist/services/approval/session-read-access.d.ts.map +1 -1
  540. package/dist/services/approval/session-read-access.js +12 -0
  541. package/dist/services/approval/session-read-access.js.map +1 -1
  542. package/dist/services/approval/session-read-grant-target.d.ts +7 -0
  543. package/dist/services/approval/session-read-grant-target.d.ts.map +1 -0
  544. package/dist/services/approval/session-read-grant-target.js +36 -0
  545. package/dist/services/approval/session-read-grant-target.js.map +1 -0
  546. package/dist/services/approval/shell-auto-approval-evaluator.d.ts +11 -3
  547. package/dist/services/approval/shell-auto-approval-evaluator.d.ts.map +1 -1
  548. package/dist/services/approval/shell-auto-approval-evaluator.js +140 -46
  549. package/dist/services/approval/shell-auto-approval-evaluator.js.map +1 -1
  550. package/dist/services/approval/shell-auto-approval-resolver.d.ts +13 -0
  551. package/dist/services/approval/shell-auto-approval-resolver.d.ts.map +1 -1
  552. package/dist/services/approval/shell-auto-approval-resolver.js +74 -6
  553. package/dist/services/approval/shell-auto-approval-resolver.js.map +1 -1
  554. package/dist/services/approval/shell-sandbox-approval.d.ts +22 -1
  555. package/dist/services/approval/shell-sandbox-approval.d.ts.map +1 -1
  556. package/dist/services/approval/shell-sandbox-approval.js +31 -4
  557. package/dist/services/approval/shell-sandbox-approval.js.map +1 -1
  558. package/dist/services/approval/tool-approval-batch-coordinator.d.ts +9 -0
  559. package/dist/services/approval/tool-approval-batch-coordinator.d.ts.map +1 -1
  560. package/dist/services/approval/tool-approval-batch-coordinator.js +20 -4
  561. package/dist/services/approval/tool-approval-batch-coordinator.js.map +1 -1
  562. package/dist/services/approval/tool-owner.d.ts +5 -2
  563. package/dist/services/approval/tool-owner.d.ts.map +1 -1
  564. package/dist/services/approval/tool-owner.js +0 -56
  565. package/dist/services/approval/tool-owner.js.map +1 -1
  566. package/dist/services/approval/tool-ownership-registry.d.ts +25 -0
  567. package/dist/services/approval/tool-ownership-registry.d.ts.map +1 -0
  568. package/dist/services/approval/tool-ownership-registry.js +63 -0
  569. package/dist/services/approval/tool-ownership-registry.js.map +1 -0
  570. package/dist/services/command-message-streaming.d.ts +8 -4
  571. package/dist/services/command-message-streaming.d.ts.map +1 -1
  572. package/dist/services/command-message-streaming.js +13 -52
  573. package/dist/services/command-message-streaming.js.map +1 -1
  574. package/dist/services/conversation/conversation-adapter-factory.d.ts.map +1 -1
  575. package/dist/services/conversation/conversation-adapter-factory.js +1 -0
  576. package/dist/services/conversation/conversation-adapter-factory.js.map +1 -1
  577. package/dist/services/conversation/conversation-adapter.d.ts +112 -13
  578. package/dist/services/conversation/conversation-adapter.d.ts.map +1 -1
  579. package/dist/services/conversation/conversation-adapter.js +270 -47
  580. package/dist/services/conversation/conversation-adapter.js.map +1 -1
  581. package/dist/services/conversation/conversation-admission-workflow.d.ts +69 -0
  582. package/dist/services/conversation/conversation-admission-workflow.d.ts.map +1 -0
  583. package/dist/services/conversation/conversation-admission-workflow.js +110 -0
  584. package/dist/services/conversation/conversation-admission-workflow.js.map +1 -0
  585. package/dist/services/conversation/conversation-decoder.d.ts +14 -0
  586. package/dist/services/conversation/conversation-decoder.d.ts.map +1 -0
  587. package/dist/services/conversation/conversation-decoder.js +149 -0
  588. package/dist/services/conversation/conversation-decoder.js.map +1 -0
  589. package/dist/services/conversation/conversation-events.d.ts +50 -26
  590. package/dist/services/conversation/conversation-events.d.ts.map +1 -1
  591. package/dist/services/conversation/conversation-history-repair.d.ts.map +1 -1
  592. package/dist/services/conversation/conversation-history-repair.js +34 -37
  593. package/dist/services/conversation/conversation-history-repair.js.map +1 -1
  594. package/dist/services/conversation/conversation-message-projection.d.ts +27 -0
  595. package/dist/services/conversation/conversation-message-projection.d.ts.map +1 -0
  596. package/dist/services/conversation/conversation-message-projection.js +59 -0
  597. package/dist/services/conversation/conversation-message-projection.js.map +1 -0
  598. package/dist/services/conversation/conversation-orchestrator.d.ts +23 -14
  599. package/dist/services/conversation/conversation-orchestrator.d.ts.map +1 -1
  600. package/dist/services/conversation/conversation-orchestrator.js +358 -159
  601. package/dist/services/conversation/conversation-orchestrator.js.map +1 -1
  602. package/dist/services/conversation/conversation-orchestrator.types.d.ts +14 -11
  603. package/dist/services/conversation/conversation-orchestrator.types.d.ts.map +1 -1
  604. package/dist/services/conversation/conversation-persistence-types.d.ts +15 -38
  605. package/dist/services/conversation/conversation-persistence-types.d.ts.map +1 -1
  606. package/dist/services/conversation/conversation-persistence.d.ts +3 -10
  607. package/dist/services/conversation/conversation-persistence.d.ts.map +1 -1
  608. package/dist/services/conversation/conversation-persistence.js +66 -15
  609. package/dist/services/conversation/conversation-persistence.js.map +1 -1
  610. package/dist/services/conversation/conversation-replay.d.ts +7 -5
  611. package/dist/services/conversation/conversation-replay.d.ts.map +1 -1
  612. package/dist/services/conversation/conversation-replay.js +127 -66
  613. package/dist/services/conversation/conversation-replay.js.map +1 -1
  614. package/dist/services/conversation/conversation-result-builder.d.ts +16 -2
  615. package/dist/services/conversation/conversation-result-builder.d.ts.map +1 -1
  616. package/dist/services/conversation/conversation-result-builder.js +51 -15
  617. package/dist/services/conversation/conversation-result-builder.js.map +1 -1
  618. package/dist/services/conversation/conversation-runtime-factory.d.ts +18 -0
  619. package/dist/services/conversation/conversation-runtime-factory.d.ts.map +1 -1
  620. package/dist/services/conversation/conversation-runtime-factory.js.map +1 -1
  621. package/dist/services/conversation/conversation-service.d.ts +65 -12
  622. package/dist/services/conversation/conversation-service.d.ts.map +1 -1
  623. package/dist/services/conversation/conversation-service.js +129 -16
  624. package/dist/services/conversation/conversation-service.js.map +1 -1
  625. package/dist/services/conversation/conversation-state-projector.d.ts +3 -3
  626. package/dist/services/conversation/conversation-state-projector.d.ts.map +1 -1
  627. package/dist/services/conversation/conversation-state-projector.js +18 -0
  628. package/dist/services/conversation/conversation-state-projector.js.map +1 -1
  629. package/dist/services/conversation/conversation-store.d.ts +69 -12
  630. package/dist/services/conversation/conversation-store.d.ts.map +1 -1
  631. package/dist/services/conversation/conversation-store.js +216 -119
  632. package/dist/services/conversation/conversation-store.js.map +1 -1
  633. package/dist/services/conversation/conversation-turn-items.d.ts +8 -2
  634. package/dist/services/conversation/conversation-turn-items.d.ts.map +1 -1
  635. package/dist/services/conversation/conversation-turn-items.js +96 -275
  636. package/dist/services/conversation/conversation-turn-items.js.map +1 -1
  637. package/dist/services/conversation/journal-to-ledger.d.ts.map +1 -1
  638. package/dist/services/conversation/journal-to-ledger.js +4 -24
  639. package/dist/services/conversation/journal-to-ledger.js.map +1 -1
  640. package/dist/services/conversation/run-item-normalizer.d.ts +5 -0
  641. package/dist/services/conversation/run-item-normalizer.d.ts.map +1 -0
  642. package/dist/services/conversation/run-item-normalizer.js +245 -0
  643. package/dist/services/conversation/run-item-normalizer.js.map +1 -0
  644. package/dist/services/conversation/user-turn-item.d.ts +14 -0
  645. package/dist/services/conversation/user-turn-item.d.ts.map +1 -0
  646. package/dist/services/conversation/user-turn-item.js +27 -0
  647. package/dist/services/conversation/user-turn-item.js.map +1 -0
  648. package/dist/services/conversation-agent-client.d.ts +77 -6
  649. package/dist/services/conversation-agent-client.d.ts.map +1 -1
  650. package/dist/services/cost/model-cost.d.ts +147 -0
  651. package/dist/services/cost/model-cost.d.ts.map +1 -0
  652. package/dist/services/cost/model-cost.js +217 -0
  653. package/dist/services/cost/model-cost.js.map +1 -0
  654. package/dist/services/cost/pricing-overlay.d.ts +26 -0
  655. package/dist/services/cost/pricing-overlay.d.ts.map +1 -0
  656. package/dist/services/cost/pricing-overlay.js +39 -0
  657. package/dist/services/cost/pricing-overlay.js.map +1 -0
  658. package/dist/services/cost/pricing.d.ts +13 -0
  659. package/dist/services/cost/pricing.d.ts.map +1 -0
  660. package/dist/services/cost/pricing.js +76 -0
  661. package/dist/services/cost/pricing.js.map +1 -0
  662. package/dist/services/handoff/handoff-flow-reducer.d.ts +27 -0
  663. package/dist/services/handoff/handoff-flow-reducer.d.ts.map +1 -0
  664. package/dist/services/handoff/handoff-flow-reducer.js +26 -0
  665. package/dist/services/handoff/handoff-flow-reducer.js.map +1 -0
  666. package/dist/services/handoff/handoff-session.d.ts +35 -0
  667. package/dist/services/handoff/handoff-session.d.ts.map +1 -0
  668. package/dist/services/handoff/handoff-session.js +136 -0
  669. package/dist/services/handoff/handoff-session.js.map +1 -0
  670. package/dist/services/hooks/hook-contracts.d.ts +124 -0
  671. package/dist/services/hooks/hook-contracts.d.ts.map +1 -0
  672. package/dist/services/hooks/hook-contracts.js +92 -0
  673. package/dist/services/hooks/hook-contracts.js.map +1 -0
  674. package/dist/services/hooks/hook-discovery.d.ts +45 -0
  675. package/dist/services/hooks/hook-discovery.d.ts.map +1 -0
  676. package/dist/services/hooks/hook-discovery.js +255 -0
  677. package/dist/services/hooks/hook-discovery.js.map +1 -0
  678. package/dist/services/hooks/hook-editor-shim.d.ts +6 -0
  679. package/dist/services/hooks/hook-editor-shim.d.ts.map +1 -0
  680. package/dist/services/hooks/hook-editor-shim.js +190 -0
  681. package/dist/services/hooks/hook-editor-shim.js.map +1 -0
  682. package/dist/services/hooks/hook-event-factory.d.ts +19 -0
  683. package/dist/services/hooks/hook-event-factory.d.ts.map +1 -0
  684. package/dist/services/hooks/hook-event-factory.js +45 -0
  685. package/dist/services/hooks/hook-event-factory.js.map +1 -0
  686. package/dist/services/hooks/hook-module-loader.d.ts +38 -0
  687. package/dist/services/hooks/hook-module-loader.d.ts.map +1 -0
  688. package/dist/services/hooks/hook-module-loader.js +69 -0
  689. package/dist/services/hooks/hook-module-loader.js.map +1 -0
  690. package/dist/services/hooks/hook-registry.d.ts +47 -0
  691. package/dist/services/hooks/hook-registry.d.ts.map +1 -0
  692. package/dist/services/hooks/hook-registry.js +185 -0
  693. package/dist/services/hooks/hook-registry.js.map +1 -0
  694. package/dist/services/hooks/hook-service.d.ts +44 -0
  695. package/dist/services/hooks/hook-service.d.ts.map +1 -0
  696. package/dist/services/hooks/hook-service.js +138 -0
  697. package/dist/services/hooks/hook-service.js.map +1 -0
  698. package/dist/services/hooks/hook-tool-lifecycle.d.ts +6 -0
  699. package/dist/services/hooks/hook-tool-lifecycle.d.ts.map +1 -0
  700. package/dist/services/hooks/hook-tool-lifecycle.js +33 -0
  701. package/dist/services/hooks/hook-tool-lifecycle.js.map +1 -0
  702. package/dist/services/hooks/index.d.ts +2 -0
  703. package/dist/services/hooks/index.d.ts.map +1 -0
  704. package/dist/services/hooks/index.js +2 -0
  705. package/dist/services/hooks/index.js.map +1 -0
  706. package/dist/services/input-surge-guard.d.ts.map +1 -1
  707. package/dist/services/input-surge-guard.js +13 -34
  708. package/dist/services/input-surge-guard.js.map +1 -1
  709. package/dist/services/logging/assistant-turn-journal.d.ts +1 -1
  710. package/dist/services/logging/assistant-turn-journal.d.ts.map +1 -1
  711. package/dist/services/logging/assistant-turn-journal.js +21 -36
  712. package/dist/services/logging/assistant-turn-journal.js.map +1 -1
  713. package/dist/services/logging/conversation-log-events.d.ts +62 -7
  714. package/dist/services/logging/conversation-log-events.d.ts.map +1 -1
  715. package/dist/services/logging/conversation-log-events.js +9 -0
  716. package/dist/services/logging/conversation-log-events.js.map +1 -1
  717. package/dist/services/logging/conversation-log-writer.d.ts +9 -4
  718. package/dist/services/logging/conversation-log-writer.d.ts.map +1 -1
  719. package/dist/services/logging/conversation-log-writer.js +183 -56
  720. package/dist/services/logging/conversation-log-writer.js.map +1 -1
  721. package/dist/services/logging/conversation-logger.d.ts.map +1 -1
  722. package/dist/services/logging/conversation-logger.js +24 -1
  723. package/dist/services/logging/conversation-logger.js.map +1 -1
  724. package/dist/services/logging/logging-service.d.ts.map +1 -1
  725. package/dist/services/logging/logging-service.js +6 -2
  726. package/dist/services/logging/logging-service.js.map +1 -1
  727. package/dist/services/logging/provider-traffic.d.ts +2 -1
  728. package/dist/services/logging/provider-traffic.d.ts.map +1 -1
  729. package/dist/services/logging/provider-traffic.js +81 -5
  730. package/dist/services/logging/provider-traffic.js.map +1 -1
  731. package/dist/services/memory/memory-capabilities.d.ts.map +1 -1
  732. package/dist/services/memory/memory-capabilities.js +13 -8
  733. package/dist/services/memory/memory-capabilities.js.map +1 -1
  734. package/dist/services/model-service.d.ts +3 -0
  735. package/dist/services/model-service.d.ts.map +1 -1
  736. package/dist/services/model-service.js +3 -1
  737. package/dist/services/model-service.js.map +1 -1
  738. package/dist/services/models/model-catalog-session.d.ts +24 -0
  739. package/dist/services/models/model-catalog-session.d.ts.map +1 -0
  740. package/dist/services/models/model-catalog-session.js +70 -0
  741. package/dist/services/models/model-catalog-session.js.map +1 -0
  742. package/dist/services/openai-candidate-observer.d.ts +18 -0
  743. package/dist/services/openai-candidate-observer.d.ts.map +1 -0
  744. package/dist/services/openai-candidate-observer.js +56 -0
  745. package/dist/services/openai-candidate-observer.js.map +1 -0
  746. package/dist/services/openai-root-checkpoint-lifecycle-observer.d.ts +20 -0
  747. package/dist/services/openai-root-checkpoint-lifecycle-observer.d.ts.map +1 -0
  748. package/dist/services/openai-root-checkpoint-lifecycle-observer.js +21 -0
  749. package/dist/services/openai-root-checkpoint-lifecycle-observer.js.map +1 -0
  750. package/dist/services/openai-root-provider-identity.d.ts +11 -0
  751. package/dist/services/openai-root-provider-identity.d.ts.map +1 -0
  752. package/dist/services/openai-root-provider-identity.js +16 -0
  753. package/dist/services/openai-root-provider-identity.js.map +1 -0
  754. package/dist/services/openai-root-selector-parity-observer.d.ts +53 -0
  755. package/dist/services/openai-root-selector-parity-observer.d.ts.map +1 -0
  756. package/dist/services/openai-root-selector-parity-observer.js +62 -0
  757. package/dist/services/openai-root-selector-parity-observer.js.map +1 -0
  758. package/dist/services/plan-mode-interceptor.js +2 -2
  759. package/dist/services/plan-mode-interceptor.js.map +1 -1
  760. package/dist/services/provider-continuity.d.ts +79 -0
  761. package/dist/services/provider-continuity.d.ts.map +1 -1
  762. package/dist/services/provider-continuity.js +170 -0
  763. package/dist/services/provider-continuity.js.map +1 -1
  764. package/dist/services/providers/provider-management-session.d.ts +12 -0
  765. package/dist/services/providers/provider-management-session.d.ts.map +1 -0
  766. package/dist/services/providers/provider-management-session.js +21 -0
  767. package/dist/services/providers/provider-management-session.js.map +1 -0
  768. package/dist/services/queue/queue-controller.d.ts +9 -14
  769. package/dist/services/queue/queue-controller.d.ts.map +1 -1
  770. package/dist/services/queue/queue-controller.js +75 -60
  771. package/dist/services/queue/queue-controller.js.map +1 -1
  772. package/dist/services/retry/conversation-retry-policy.js +3 -3
  773. package/dist/services/retry/conversation-retry-policy.js.map +1 -1
  774. package/dist/services/retry/recovery-executor.d.ts.map +1 -1
  775. package/dist/services/retry/recovery-executor.js +7 -8
  776. package/dist/services/retry/recovery-executor.js.map +1 -1
  777. package/dist/services/retry/recovery-policy.d.ts.map +1 -1
  778. package/dist/services/retry/recovery-policy.js +4 -1
  779. package/dist/services/retry/recovery-policy.js.map +1 -1
  780. package/dist/services/retry/retry-classifier.d.ts.map +1 -1
  781. package/dist/services/retry/retry-classifier.js +2 -1
  782. package/dist/services/retry/retry-classifier.js.map +1 -1
  783. package/dist/services/retry/retry-contracts.d.ts +3 -5
  784. package/dist/services/retry/retry-contracts.d.ts.map +1 -1
  785. package/dist/services/retry/retry-error-classification.d.ts +1 -0
  786. package/dist/services/retry/retry-error-classification.d.ts.map +1 -1
  787. package/dist/services/retry/retry-error-classification.js +28 -0
  788. package/dist/services/retry/retry-error-classification.js.map +1 -1
  789. package/dist/services/retry/retry-event-presenter.d.ts.map +1 -1
  790. package/dist/services/retry/retry-event-presenter.js +4 -1
  791. package/dist/services/retry/retry-event-presenter.js.map +1 -1
  792. package/dist/services/retry/upstream-retry-policy.js +3 -3
  793. package/dist/services/rtk-service.d.ts.map +1 -1
  794. package/dist/services/rtk-service.js +3 -15
  795. package/dist/services/rtk-service.js.map +1 -1
  796. package/dist/services/runtime-setting-router.d.ts +19 -0
  797. package/dist/services/runtime-setting-router.d.ts.map +1 -1
  798. package/dist/services/runtime-setting-router.js +33 -0
  799. package/dist/services/runtime-setting-router.js.map +1 -1
  800. package/dist/services/service-interfaces.d.ts +19 -2
  801. package/dist/services/service-interfaces.d.ts.map +1 -1
  802. package/dist/services/session/background-task-control.d.ts +123 -0
  803. package/dist/services/session/background-task-control.d.ts.map +1 -0
  804. package/dist/services/session/background-task-control.js +183 -0
  805. package/dist/services/session/background-task-control.js.map +1 -0
  806. package/dist/services/session/continuation-call-id-resolver.d.ts +16 -9
  807. package/dist/services/session/continuation-call-id-resolver.d.ts.map +1 -1
  808. package/dist/services/session/continuation-call-id-resolver.js +34 -48
  809. package/dist/services/session/continuation-call-id-resolver.js.map +1 -1
  810. package/dist/services/session/continuation-plan-applier.d.ts.map +1 -1
  811. package/dist/services/session/continuation-plan-applier.js +1 -3
  812. package/dist/services/session/continuation-plan-applier.js.map +1 -1
  813. package/dist/services/session/continuation-recovery-handler.d.ts.map +1 -1
  814. package/dist/services/session/continuation-recovery-handler.js +0 -2
  815. package/dist/services/session/continuation-recovery-handler.js.map +1 -1
  816. package/dist/services/session/continuation-state.d.ts +9 -5
  817. package/dist/services/session/continuation-state.d.ts.map +1 -1
  818. package/dist/services/session/continuation-state.js +1 -1
  819. package/dist/services/session/continuation-state.js.map +1 -1
  820. package/dist/services/session/live-run.d.ts +29 -0
  821. package/dist/services/session/live-run.d.ts.map +1 -0
  822. package/dist/services/session/live-run.js +111 -0
  823. package/dist/services/session/live-run.js.map +1 -0
  824. package/dist/services/session/nested-tool-compatibility-state.d.ts +20 -0
  825. package/dist/services/session/nested-tool-compatibility-state.d.ts.map +1 -0
  826. package/dist/services/session/nested-tool-compatibility-state.js +29 -0
  827. package/dist/services/session/nested-tool-compatibility-state.js.map +1 -0
  828. package/dist/services/session/pending-interaction-state.d.ts +60 -0
  829. package/dist/services/session/pending-interaction-state.d.ts.map +1 -0
  830. package/dist/services/session/pending-interaction-state.js +132 -0
  831. package/dist/services/session/pending-interaction-state.js.map +1 -0
  832. package/dist/services/session/post-execute-pause-capability.d.ts +17 -0
  833. package/dist/services/session/post-execute-pause-capability.d.ts.map +1 -0
  834. package/dist/services/session/post-execute-pause-capability.js +27 -0
  835. package/dist/services/session/post-execute-pause-capability.js.map +1 -0
  836. package/dist/services/session/post-execute-pause-policy.d.ts +20 -0
  837. package/dist/services/session/post-execute-pause-policy.d.ts.map +1 -0
  838. package/dist/services/session/post-execute-pause-policy.js +34 -0
  839. package/dist/services/session/post-execute-pause-policy.js.map +1 -0
  840. package/dist/services/session/post-execute-pending-registry.d.ts +63 -0
  841. package/dist/services/session/post-execute-pending-registry.d.ts.map +1 -0
  842. package/dist/services/session/post-execute-pending-registry.js +123 -0
  843. package/dist/services/session/post-execute-pending-registry.js.map +1 -0
  844. package/dist/services/session/session-access-state.d.ts +24 -0
  845. package/dist/services/session/session-access-state.d.ts.map +1 -0
  846. package/dist/services/session/session-access-state.js +91 -0
  847. package/dist/services/session/session-access-state.js.map +1 -0
  848. package/dist/services/session/session-client-factory.d.ts +61 -0
  849. package/dist/services/session/session-client-factory.d.ts.map +1 -0
  850. package/dist/services/session/session-client-factory.js +103 -0
  851. package/dist/services/session/session-client-factory.js.map +1 -0
  852. package/dist/services/session/session-composition.d.ts +58 -0
  853. package/dist/services/session/session-composition.d.ts.map +1 -1
  854. package/dist/services/session/session-composition.js +178 -13
  855. package/dist/services/session/session-composition.js.map +1 -1
  856. package/dist/services/session/session-input-planner.d.ts +6 -2
  857. package/dist/services/session/session-input-planner.d.ts.map +1 -1
  858. package/dist/services/session/session-input-planner.js +4 -0
  859. package/dist/services/session/session-input-planner.js.map +1 -1
  860. package/dist/services/session/session-lifecycle.d.ts +5 -0
  861. package/dist/services/session/session-lifecycle.d.ts.map +1 -1
  862. package/dist/services/session/session-lifecycle.js +16 -6
  863. package/dist/services/session/session-lifecycle.js.map +1 -1
  864. package/dist/services/session/session-manager.d.ts +11 -1
  865. package/dist/services/session/session-manager.d.ts.map +1 -1
  866. package/dist/services/session/session-manager.js +16 -3
  867. package/dist/services/session/session-manager.js.map +1 -1
  868. package/dist/services/session/session-stream-processor.d.ts +5 -0
  869. package/dist/services/session/session-stream-processor.d.ts.map +1 -1
  870. package/dist/services/session/session-stream-processor.js +164 -35
  871. package/dist/services/session/session-stream-processor.js.map +1 -1
  872. package/dist/services/session/session-tool-tracker.d.ts +10 -21
  873. package/dist/services/session/session-tool-tracker.d.ts.map +1 -1
  874. package/dist/services/session/session-tool-tracker.js +12 -52
  875. package/dist/services/session/session-tool-tracker.js.map +1 -1
  876. package/dist/services/session/terminal-result-collector.d.ts +8 -0
  877. package/dist/services/session/terminal-result-collector.d.ts.map +1 -1
  878. package/dist/services/session/terminal-result-collector.js +18 -4
  879. package/dist/services/session/terminal-result-collector.js.map +1 -1
  880. package/dist/services/session/test-helpers/conversation-session-fixtures.d.ts.map +1 -1
  881. package/dist/services/session/test-helpers/conversation-session-fixtures.js +8 -1
  882. package/dist/services/session/test-helpers/conversation-session-fixtures.js.map +1 -1
  883. package/dist/services/session/turn-attempt-factory.d.ts +2 -2
  884. package/dist/services/session/turn-attempt-factory.d.ts.map +1 -1
  885. package/dist/services/session/turn-attempt.d.ts +4 -2
  886. package/dist/services/session/turn-attempt.d.ts.map +1 -1
  887. package/dist/services/session/turn-attempt.js +5 -0
  888. package/dist/services/session/turn-attempt.js.map +1 -1
  889. package/dist/services/session/turn-coordinator.d.ts +32 -2
  890. package/dist/services/session/turn-coordinator.d.ts.map +1 -1
  891. package/dist/services/session/turn-coordinator.js +180 -9
  892. package/dist/services/session/turn-coordinator.js.map +1 -1
  893. package/dist/services/session/turn-status-machine.d.ts +21 -6
  894. package/dist/services/session/turn-status-machine.d.ts.map +1 -1
  895. package/dist/services/session/turn-status-machine.js +50 -13
  896. package/dist/services/session/turn-status-machine.js.map +1 -1
  897. package/dist/services/session/turn-workflow.d.ts +35 -0
  898. package/dist/services/session/turn-workflow.d.ts.map +1 -1
  899. package/dist/services/session/turn-workflow.js +373 -27
  900. package/dist/services/session/turn-workflow.js.map +1 -1
  901. package/dist/services/settings/ancillary-settings-migration.js +3 -3
  902. package/dist/services/settings/ancillary-settings-migration.js.map +1 -1
  903. package/dist/services/settings/custom-provider-normalization.d.ts +10 -0
  904. package/dist/services/settings/custom-provider-normalization.d.ts.map +1 -1
  905. package/dist/services/settings/custom-provider-normalization.js +35 -2
  906. package/dist/services/settings/custom-provider-normalization.js.map +1 -1
  907. package/dist/services/settings/settings-env.d.ts +3 -0
  908. package/dist/services/settings/settings-env.d.ts.map +1 -1
  909. package/dist/services/settings/settings-env.js +3 -3
  910. package/dist/services/settings/settings-env.js.map +1 -1
  911. package/dist/services/settings/settings-merger.d.ts +6 -5
  912. package/dist/services/settings/settings-merger.d.ts.map +1 -1
  913. package/dist/services/settings/settings-merger.js +9 -4
  914. package/dist/services/settings/settings-merger.js.map +1 -1
  915. package/dist/services/settings/settings-persistence.d.ts +17 -6
  916. package/dist/services/settings/settings-persistence.d.ts.map +1 -1
  917. package/dist/services/settings/settings-persistence.js +155 -28
  918. package/dist/services/settings/settings-persistence.js.map +1 -1
  919. package/dist/services/settings/settings-schema.d.ts +100 -4
  920. package/dist/services/settings/settings-schema.d.ts.map +1 -1
  921. package/dist/services/settings/settings-schema.js +78 -8
  922. package/dist/services/settings/settings-schema.js.map +1 -1
  923. package/dist/services/settings/settings-service.d.ts +34 -5
  924. package/dist/services/settings/settings-service.d.ts.map +1 -1
  925. package/dist/services/settings/settings-service.js +200 -8
  926. package/dist/services/settings/settings-service.js.map +1 -1
  927. package/dist/services/settings/settings-sources.d.ts.map +1 -1
  928. package/dist/services/settings/settings-sources.js +6 -0
  929. package/dist/services/settings/settings-sources.js.map +1 -1
  930. package/dist/services/shell/background-shell-registry.d.ts +110 -0
  931. package/dist/services/shell/background-shell-registry.d.ts.map +1 -0
  932. package/dist/services/shell/background-shell-registry.js +326 -0
  933. package/dist/services/shell/background-shell-registry.js.map +1 -0
  934. package/dist/services/shell/shell-interaction-session.d.ts +43 -0
  935. package/dist/services/shell/shell-interaction-session.d.ts.map +1 -0
  936. package/dist/services/shell/shell-interaction-session.js +113 -0
  937. package/dist/services/shell/shell-interaction-session.js.map +1 -0
  938. package/dist/services/stream-event-processor.d.ts +11 -12
  939. package/dist/services/stream-event-processor.d.ts.map +1 -1
  940. package/dist/services/stream-event-processor.js +115 -352
  941. package/dist/services/stream-event-processor.js.map +1 -1
  942. package/dist/services/stream-snapshot.d.ts +0 -1
  943. package/dist/services/stream-snapshot.d.ts.map +1 -1
  944. package/dist/services/stream-snapshot.js +0 -1
  945. package/dist/services/stream-snapshot.js.map +1 -1
  946. package/dist/services/subagents/codename-run-id.d.ts +43 -0
  947. package/dist/services/subagents/codename-run-id.d.ts.map +1 -0
  948. package/dist/services/subagents/codename-run-id.js +683 -0
  949. package/dist/services/subagents/codename-run-id.js.map +1 -0
  950. package/dist/services/subagents/execution-runner.d.ts +2 -0
  951. package/dist/services/subagents/execution-runner.d.ts.map +1 -1
  952. package/dist/services/subagents/execution-runner.js +13 -3
  953. package/dist/services/subagents/execution-runner.js.map +1 -1
  954. package/dist/services/subagents/foreground-subagent-lease.d.ts +77 -0
  955. package/dist/services/subagents/foreground-subagent-lease.d.ts.map +1 -0
  956. package/dist/services/subagents/foreground-subagent-lease.js +156 -0
  957. package/dist/services/subagents/foreground-subagent-lease.js.map +1 -0
  958. package/dist/services/subagents/mentor-runner.d.ts.map +1 -1
  959. package/dist/services/subagents/mentor-runner.js +43 -31
  960. package/dist/services/subagents/mentor-runner.js.map +1 -1
  961. package/dist/services/subagents/nested-runner.d.ts +47 -23
  962. package/dist/services/subagents/nested-runner.d.ts.map +1 -1
  963. package/dist/services/subagents/nested-runner.js +263 -64
  964. package/dist/services/subagents/nested-runner.js.map +1 -1
  965. package/dist/services/subagents/role-loader.d.ts +3 -3
  966. package/dist/services/subagents/role-loader.d.ts.map +1 -1
  967. package/dist/services/subagents/role-loader.js +6 -7
  968. package/dist/services/subagents/role-loader.js.map +1 -1
  969. package/dist/services/subagents/runtime.d.ts +10 -0
  970. package/dist/services/subagents/runtime.d.ts.map +1 -1
  971. package/dist/services/subagents/runtime.js +15 -1
  972. package/dist/services/subagents/runtime.js.map +1 -1
  973. package/dist/services/subagents/subagent-async-registry.d.ts +21 -2
  974. package/dist/services/subagents/subagent-async-registry.d.ts.map +1 -1
  975. package/dist/services/subagents/subagent-async-registry.js +156 -10
  976. package/dist/services/subagents/subagent-async-registry.js.map +1 -1
  977. package/dist/services/subagents/subagent-client-types.d.ts +2 -0
  978. package/dist/services/subagents/subagent-client-types.d.ts.map +1 -1
  979. package/dist/services/subagents/subagent-manager.d.ts +26 -7
  980. package/dist/services/subagents/subagent-manager.d.ts.map +1 -1
  981. package/dist/services/subagents/subagent-manager.js +31 -1
  982. package/dist/services/subagents/subagent-manager.js.map +1 -1
  983. package/dist/services/subagents/subagent-notification-store.d.ts +72 -6
  984. package/dist/services/subagents/subagent-notification-store.d.ts.map +1 -1
  985. package/dist/services/subagents/subagent-notification-store.js +118 -10
  986. package/dist/services/subagents/subagent-notification-store.js.map +1 -1
  987. package/dist/services/subagents/subagent-session.d.ts +12 -7
  988. package/dist/services/subagents/subagent-session.d.ts.map +1 -1
  989. package/dist/services/subagents/subagent-session.js +13 -14
  990. package/dist/services/subagents/subagent-session.js.map +1 -1
  991. package/dist/services/subagents/test-helpers/subagent-manager-fixtures.d.ts +4 -5
  992. package/dist/services/subagents/test-helpers/subagent-manager-fixtures.d.ts.map +1 -1
  993. package/dist/services/subagents/test-helpers/subagent-manager-fixtures.js +66 -65
  994. package/dist/services/subagents/test-helpers/subagent-manager-fixtures.js.map +1 -1
  995. package/dist/services/subagents/tool-policy.d.ts +19 -17
  996. package/dist/services/subagents/tool-policy.d.ts.map +1 -1
  997. package/dist/services/subagents/tool-policy.js +89 -53
  998. package/dist/services/subagents/tool-policy.js.map +1 -1
  999. package/dist/services/subagents/types.d.ts +22 -3
  1000. package/dist/services/subagents/types.d.ts.map +1 -1
  1001. package/dist/services/subagents/types.js +2 -2
  1002. package/dist/services/subagents/types.js.map +1 -1
  1003. package/dist/services/subagents/utils.d.ts +8 -1
  1004. package/dist/services/subagents/utils.d.ts.map +1 -1
  1005. package/dist/services/subagents/utils.js +43 -16
  1006. package/dist/services/subagents/utils.js.map +1 -1
  1007. package/dist/services/test-helpers/mock-stream.d.ts +3 -0
  1008. package/dist/services/test-helpers/mock-stream.d.ts.map +1 -1
  1009. package/dist/services/test-helpers/mock-stream.js +8 -0
  1010. package/dist/services/test-helpers/mock-stream.js.map +1 -1
  1011. package/dist/services/tool-execution-ledger.d.ts +2 -0
  1012. package/dist/services/tool-execution-ledger.d.ts.map +1 -1
  1013. package/dist/services/tool-execution-ledger.js +59 -81
  1014. package/dist/services/tool-execution-ledger.js.map +1 -1
  1015. package/dist/test-helpers/conversation-session-with-adapter.d.ts +1 -1
  1016. package/dist/test-helpers/conversation-session-with-adapter.d.ts.map +1 -1
  1017. package/dist/test-helpers/conversation-session-with-adapter.js +5 -1
  1018. package/dist/test-helpers/conversation-session-with-adapter.js.map +1 -1
  1019. package/dist/test-helpers/ink-testing.d.ts.map +1 -1
  1020. package/dist/test-helpers/ink-testing.js +2 -1
  1021. package/dist/test-helpers/ink-testing.js.map +1 -1
  1022. package/dist/tools/agent/activate-skill.d.ts +6 -1
  1023. package/dist/tools/agent/activate-skill.d.ts.map +1 -1
  1024. package/dist/tools/agent/activate-skill.js.map +1 -1
  1025. package/dist/tools/agent/ask-mentor.d.ts +1 -1
  1026. package/dist/tools/agent/ask-mentor.d.ts.map +1 -1
  1027. package/dist/tools/agent/ask-mentor.js.map +1 -1
  1028. package/dist/tools/agent/ask-orchestrator.d.ts +1 -1
  1029. package/dist/tools/agent/ask-orchestrator.d.ts.map +1 -1
  1030. package/dist/tools/agent/ask-user-constants.d.ts +6 -0
  1031. package/dist/tools/agent/ask-user-constants.d.ts.map +1 -1
  1032. package/dist/tools/agent/ask-user-constants.js +6 -0
  1033. package/dist/tools/agent/ask-user-constants.js.map +1 -1
  1034. package/dist/tools/agent/run-subagent-async.d.ts +6 -6
  1035. package/dist/tools/agent/run-subagent-async.d.ts.map +1 -1
  1036. package/dist/tools/agent/run-subagent-async.js +16 -52
  1037. package/dist/tools/agent/run-subagent-async.js.map +1 -1
  1038. package/dist/tools/agent/run-subagent.d.ts +28 -14
  1039. package/dist/tools/agent/run-subagent.d.ts.map +1 -1
  1040. package/dist/tools/agent/run-subagent.js +173 -68
  1041. package/dist/tools/agent/run-subagent.js.map +1 -1
  1042. package/dist/tools/file/apply-patch.d.ts +3 -1
  1043. package/dist/tools/file/apply-patch.d.ts.map +1 -1
  1044. package/dist/tools/file/apply-patch.js +34 -10
  1045. package/dist/tools/file/apply-patch.js.map +1 -1
  1046. package/dist/tools/file/code-context.d.ts +2 -2
  1047. package/dist/tools/file/code-context.d.ts.map +1 -1
  1048. package/dist/tools/file/code-context.js +1 -1
  1049. package/dist/tools/file/code-context.js.map +1 -1
  1050. package/dist/tools/file/create-file.d.ts +4 -2
  1051. package/dist/tools/file/create-file.d.ts.map +1 -1
  1052. package/dist/tools/file/create-file.js +10 -7
  1053. package/dist/tools/file/create-file.js.map +1 -1
  1054. package/dist/tools/file/edit-healing.d.ts.map +1 -1
  1055. package/dist/tools/file/edit-healing.js +54 -35
  1056. package/dist/tools/file/edit-healing.js.map +1 -1
  1057. package/dist/tools/file/glob-target.d.ts +12 -0
  1058. package/dist/tools/file/glob-target.d.ts.map +1 -0
  1059. package/dist/tools/file/glob-target.js +22 -0
  1060. package/dist/tools/file/glob-target.js.map +1 -0
  1061. package/dist/tools/file/glob.d.ts +9 -2
  1062. package/dist/tools/file/glob.d.ts.map +1 -1
  1063. package/dist/tools/file/glob.js +12 -16
  1064. package/dist/tools/file/glob.js.map +1 -1
  1065. package/dist/tools/file/grep.d.ts +8 -1
  1066. package/dist/tools/file/grep.d.ts.map +1 -1
  1067. package/dist/tools/file/grep.js +60 -4
  1068. package/dist/tools/file/grep.js.map +1 -1
  1069. package/dist/tools/file/read-file.d.ts +7 -1
  1070. package/dist/tools/file/read-file.d.ts.map +1 -1
  1071. package/dist/tools/file/read-file.js +3 -4
  1072. package/dist/tools/file/read-file.js.map +1 -1
  1073. package/dist/tools/file/search-replace.d.ts +5 -3
  1074. package/dist/tools/file/search-replace.d.ts.map +1 -1
  1075. package/dist/tools/file/search-replace.js +29 -19
  1076. package/dist/tools/file/search-replace.js.map +1 -1
  1077. package/dist/tools/format-helpers.d.ts +4 -3
  1078. package/dist/tools/format-helpers.d.ts.map +1 -1
  1079. package/dist/tools/format-helpers.js +16 -17
  1080. package/dist/tools/format-helpers.js.map +1 -1
  1081. package/dist/tools/memory/memory-tools.d.ts.map +1 -1
  1082. package/dist/tools/memory/memory-tools.js +61 -49
  1083. package/dist/tools/memory/memory-tools.js.map +1 -1
  1084. package/dist/tools/run-agent-workflow.d.ts +1 -1
  1085. package/dist/tools/run-agent-workflow.d.ts.map +1 -1
  1086. package/dist/tools/system/shell.d.ts +39 -3
  1087. package/dist/tools/system/shell.d.ts.map +1 -1
  1088. package/dist/tools/system/shell.js +380 -149
  1089. package/dist/tools/system/shell.js.map +1 -1
  1090. package/dist/tools/types.d.ts +102 -5
  1091. package/dist/tools/types.d.ts.map +1 -1
  1092. package/dist/tools/types.js +4 -1
  1093. package/dist/tools/types.js.map +1 -1
  1094. package/dist/tools/utils.d.ts +18 -0
  1095. package/dist/tools/utils.d.ts.map +1 -1
  1096. package/dist/tools/utils.js +78 -0
  1097. package/dist/tools/utils.js.map +1 -1
  1098. package/dist/tools/web/web-fetch.d.ts +1 -1
  1099. package/dist/tools/web/web-fetch.d.ts.map +1 -1
  1100. package/dist/tools/web/web-fetch.js.map +1 -1
  1101. package/dist/tools/web/web-search.d.ts +1 -1
  1102. package/dist/tools/web/web-search.d.ts.map +1 -1
  1103. package/dist/tools/web/web-search.js.map +1 -1
  1104. package/dist/types/message.d.ts +2 -0
  1105. package/dist/types/message.d.ts.map +1 -1
  1106. package/dist/types/message.js.map +1 -1
  1107. package/dist/utils/ai/model-settings.d.ts.map +1 -1
  1108. package/dist/utils/ai/model-settings.js +0 -6
  1109. package/dist/utils/ai/model-settings.js.map +1 -1
  1110. package/dist/utils/ai/token-usage.d.ts +10 -5
  1111. package/dist/utils/ai/token-usage.d.ts.map +1 -1
  1112. package/dist/utils/ai/token-usage.js +48 -35
  1113. package/dist/utils/ai/token-usage.js.map +1 -1
  1114. package/dist/utils/apply-diff.d.ts +3 -0
  1115. package/dist/utils/apply-diff.d.ts.map +1 -0
  1116. package/dist/utils/apply-diff.js +192 -0
  1117. package/dist/utils/apply-diff.js.map +1 -0
  1118. package/dist/utils/conversation/conversation-event-handler.d.ts.map +1 -1
  1119. package/dist/utils/conversation/conversation-event-handler.js +72 -16
  1120. package/dist/utils/conversation/conversation-event-handler.js.map +1 -1
  1121. package/dist/utils/conversation/conversation-utils.d.ts +5 -0
  1122. package/dist/utils/conversation/conversation-utils.d.ts.map +1 -1
  1123. package/dist/utils/conversation/conversation-utils.js +1 -0
  1124. package/dist/utils/conversation/conversation-utils.js.map +1 -1
  1125. package/dist/utils/conversation/message-utils.d.ts +6 -0
  1126. package/dist/utils/conversation/message-utils.d.ts.map +1 -1
  1127. package/dist/utils/conversation/message-utils.js +17 -14
  1128. package/dist/utils/conversation/message-utils.js.map +1 -1
  1129. package/dist/utils/conversation/rewind-items.d.ts +32 -0
  1130. package/dist/utils/conversation/rewind-items.d.ts.map +1 -0
  1131. package/dist/utils/conversation/rewind-items.js +33 -0
  1132. package/dist/utils/conversation/rewind-items.js.map +1 -0
  1133. package/dist/utils/inject-warning-into-tool-output.d.ts +10 -0
  1134. package/dist/utils/inject-warning-into-tool-output.d.ts.map +1 -1
  1135. package/dist/utils/inject-warning-into-tool-output.js +17 -0
  1136. package/dist/utils/inject-warning-into-tool-output.js.map +1 -1
  1137. package/dist/utils/settings-command.d.ts.map +1 -1
  1138. package/dist/utils/settings-command.js +41 -4
  1139. package/dist/utils/settings-command.js.map +1 -1
  1140. package/dist/utils/shell/command-logger.js.map +1 -1
  1141. package/dist/utils/shell/command-safety/find-helpers.d.ts +3 -2
  1142. package/dist/utils/shell/command-safety/find-helpers.d.ts.map +1 -1
  1143. package/dist/utils/shell/command-safety/find-helpers.js +34 -17
  1144. package/dist/utils/shell/command-safety/find-helpers.js.map +1 -1
  1145. package/dist/utils/shell/command-safety/handlers/find-handler.d.ts.map +1 -1
  1146. package/dist/utils/shell/command-safety/handlers/find-handler.js +0 -2
  1147. package/dist/utils/shell/command-safety/handlers/find-handler.js.map +1 -1
  1148. package/dist/utils/shell/command-safety/handlers/git-handler.d.ts.map +1 -1
  1149. package/dist/utils/shell/command-safety/handlers/git-handler.js.map +1 -1
  1150. package/dist/utils/shell/command-safety/handlers/sed-handler.d.ts.map +1 -1
  1151. package/dist/utils/shell/command-safety/handlers/sed-handler.js +14 -9
  1152. package/dist/utils/shell/command-safety/handlers/sed-handler.js.map +1 -1
  1153. package/dist/utils/shell/command-safety/handlers/types.d.ts +5 -4
  1154. package/dist/utils/shell/command-safety/handlers/types.d.ts.map +1 -1
  1155. package/dist/utils/shell/command-safety/index.d.ts.map +1 -1
  1156. package/dist/utils/shell/command-safety/index.js +212 -88
  1157. package/dist/utils/shell/command-safety/index.js.map +1 -1
  1158. package/dist/utils/shell/command-safety/utils.d.ts +2 -1
  1159. package/dist/utils/shell/command-safety/utils.d.ts.map +1 -1
  1160. package/dist/utils/shell/command-safety/utils.js +5 -5
  1161. package/dist/utils/shell/command-safety/utils.js.map +1 -1
  1162. package/dist/utils/shell/execute-shell.d.ts +24 -3
  1163. package/dist/utils/shell/execute-shell.d.ts.map +1 -1
  1164. package/dist/utils/shell/execute-shell.js +228 -28
  1165. package/dist/utils/shell/execute-shell.js.map +1 -1
  1166. package/dist/utils/shell/sandbox/denied-read-stores.d.ts +1 -8
  1167. package/dist/utils/shell/sandbox/denied-read-stores.d.ts.map +1 -1
  1168. package/dist/utils/shell/sandbox/denied-read-stores.js +1 -8
  1169. package/dist/utils/shell/sandbox/denied-read-stores.js.map +1 -1
  1170. package/dist/utils/shell/sandbox/docker-host-control-grants.d.ts +36 -6
  1171. package/dist/utils/shell/sandbox/docker-host-control-grants.d.ts.map +1 -1
  1172. package/dist/utils/shell/sandbox/docker-host-control-grants.js +47 -17
  1173. package/dist/utils/shell/sandbox/docker-host-control-grants.js.map +1 -1
  1174. package/dist/utils/shell/sandbox/sandbox-network-approval-coordinator.d.ts +21 -0
  1175. package/dist/utils/shell/sandbox/sandbox-network-approval-coordinator.d.ts.map +1 -0
  1176. package/dist/utils/shell/sandbox/sandbox-network-approval-coordinator.js +66 -0
  1177. package/dist/utils/shell/sandbox/sandbox-network-approval-coordinator.js.map +1 -0
  1178. package/dist/utils/shell/shell-session.js.map +1 -1
  1179. package/dist/utils/slash-command-dispatch.d.ts +21 -0
  1180. package/dist/utils/slash-command-dispatch.d.ts.map +1 -0
  1181. package/dist/utils/slash-command-dispatch.js +34 -0
  1182. package/dist/utils/slash-command-dispatch.js.map +1 -0
  1183. package/dist/utils/streaming/extract-command-messages.d.ts.map +1 -1
  1184. package/dist/utils/streaming/extract-command-messages.js +29 -51
  1185. package/dist/utils/streaming/extract-command-messages.js.map +1 -1
  1186. package/dist/utils/value-suggestions.d.ts.map +1 -1
  1187. package/dist/utils/value-suggestions.js +0 -8
  1188. package/dist/utils/value-suggestions.js.map +1 -1
  1189. package/package.json +21 -19
  1190. package/dist/commands/retry-command.d.ts +0 -20
  1191. package/dist/commands/retry-command.d.ts.map +0 -1
  1192. package/dist/commands/retry-command.js +0 -39
  1193. package/dist/commands/retry-command.js.map +0 -1
  1194. package/dist/commands/undo-command.d.ts +0 -15
  1195. package/dist/commands/undo-command.d.ts.map +0 -1
  1196. package/dist/commands/undo-command.js +0 -28
  1197. package/dist/commands/undo-command.js.map +0 -1
  1198. package/dist/components/input/PopupManager.d.ts +0 -88
  1199. package/dist/components/input/PopupManager.d.ts.map +0 -1
  1200. package/dist/components/input/PopupManager.js +0 -21
  1201. package/dist/components/input/PopupManager.js.map +0 -1
  1202. package/dist/components/input/popup-key-navigation.d.ts +0 -18
  1203. package/dist/components/input/popup-key-navigation.d.ts.map +0 -1
  1204. package/dist/components/input/popup-key-navigation.js +0 -16
  1205. package/dist/components/input/popup-key-navigation.js.map +0 -1
  1206. package/dist/components/input/popup-props.d.ts +0 -24
  1207. package/dist/components/input/popup-props.d.ts.map +0 -1
  1208. package/dist/components/input/popup-props.js +0 -72
  1209. package/dist/components/input/popup-props.js.map +0 -1
  1210. package/dist/components/menu/UndoSelectionMenu.d.ts +0 -12
  1211. package/dist/components/menu/UndoSelectionMenu.d.ts.map +0 -1
  1212. package/dist/components/menu/UndoSelectionMenu.js +0 -19
  1213. package/dist/components/menu/UndoSelectionMenu.js.map +0 -1
  1214. package/dist/hooks/use-mode-handlers.d.ts +0 -79
  1215. package/dist/hooks/use-mode-handlers.d.ts.map +0 -1
  1216. package/dist/hooks/use-mode-handlers.js +0 -183
  1217. package/dist/hooks/use-mode-handlers.js.map +0 -1
  1218. package/dist/hooks/use-pending-turn-guards.d.ts +0 -43
  1219. package/dist/hooks/use-pending-turn-guards.d.ts.map +0 -1
  1220. package/dist/hooks/use-pending-turn-guards.js +0 -120
  1221. package/dist/hooks/use-pending-turn-guards.js.map +0 -1
  1222. package/dist/hooks/use-trigger-detection.d.ts +0 -49
  1223. package/dist/hooks/use-trigger-detection.d.ts.map +0 -1
  1224. package/dist/hooks/use-trigger-detection.js +0 -104
  1225. package/dist/hooks/use-trigger-detection.js.map +0 -1
  1226. package/dist/hooks/use-undo-selection.d.ts +0 -23
  1227. package/dist/hooks/use-undo-selection.d.ts.map +0 -1
  1228. package/dist/hooks/use-undo-selection.js.map +0 -1
  1229. package/dist/lib/agent-run-orchestrator.d.ts +0 -38
  1230. package/dist/lib/agent-run-orchestrator.d.ts.map +0 -1
  1231. package/dist/lib/agent-run-orchestrator.js +0 -266
  1232. package/dist/lib/agent-run-orchestrator.js.map +0 -1
  1233. package/dist/lib/retry-executor.d.ts +0 -16
  1234. package/dist/lib/retry-executor.d.ts.map +0 -1
  1235. package/dist/lib/retry-executor.js +0 -53
  1236. package/dist/lib/retry-executor.js.map +0 -1
  1237. package/dist/lib/runner-manager.d.ts +0 -22
  1238. package/dist/lib/runner-manager.d.ts.map +0 -1
  1239. package/dist/lib/runner-manager.js +0 -56
  1240. package/dist/lib/runner-manager.js.map +0 -1
  1241. package/dist/prompts/shell-sandbox.md +0 -18
  1242. package/dist/prompts/simple.md +0 -53
  1243. package/dist/prompts/simple_prev.md +0 -33
  1244. package/dist/prompts/simple_v2.md +0 -84
  1245. package/dist/prompts/simple_v3.md +0 -267
  1246. package/dist/prompts/subagents/researcher.md +0 -46
  1247. package/dist/providers/ai-sdk-agents-adapter.d.ts +0 -7
  1248. package/dist/providers/ai-sdk-agents-adapter.d.ts.map +0 -1
  1249. package/dist/providers/ai-sdk-agents-adapter.js +0 -80
  1250. package/dist/providers/ai-sdk-agents-adapter.js.map +0 -1
  1251. package/dist/providers/fallback-responses-model.d.ts +0 -46
  1252. package/dist/providers/fallback-responses-model.d.ts.map +0 -1
  1253. package/dist/providers/fallback-responses-model.js +0 -296
  1254. package/dist/providers/fallback-responses-model.js.map +0 -1
  1255. package/dist/services/stream-event-parsing.d.ts +0 -4
  1256. package/dist/services/stream-event-parsing.d.ts.map +0 -1
  1257. package/dist/services/stream-event-parsing.js +0 -79
  1258. 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