@alm-allen/dsh-multi-provider 0.0.0-stage → 0.90.2

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 (857) hide show
  1. package/CHANGELOG.md +70 -0
  2. package/LICENSE +21 -0
  3. package/README.md +229 -2
  4. package/cordis.patch.yml +6 -0
  5. package/icon.svg +28 -0
  6. package/lib/client.js +25708 -0
  7. package/lib/client.js.map +1 -0
  8. package/lib/index.js +93587 -0
  9. package/lib/types/client/CodexComposerQuota.d.ts +13 -0
  10. package/lib/types/client/CodexComposerQuota.d.ts.map +1 -0
  11. package/lib/types/client/CodexSubscriptionSection.d.ts +42 -0
  12. package/lib/types/client/CodexSubscriptionSection.d.ts.map +1 -0
  13. package/lib/types/client/ProviderHubSection.d.ts +21 -0
  14. package/lib/types/client/ProviderHubSection.d.ts.map +1 -0
  15. package/lib/types/client/api.d.ts +66 -0
  16. package/lib/types/client/api.d.ts.map +1 -0
  17. package/lib/types/client/claude/ClaudeComposerQuota.d.ts +29 -0
  18. package/lib/types/client/claude/ClaudeComposerQuota.d.ts.map +1 -0
  19. package/lib/types/client/claude/ClaudeSection.d.ts +12 -0
  20. package/lib/types/client/claude/ClaudeSection.d.ts.map +1 -0
  21. package/lib/types/client/claude/locales.d.ts +489 -0
  22. package/lib/types/client/claude/locales.d.ts.map +1 -0
  23. package/lib/types/client/claude/styles.d.ts +15 -0
  24. package/lib/types/client/claude/styles.d.ts.map +1 -0
  25. package/lib/types/client/claude/useClaudeSection.d.ts +106 -0
  26. package/lib/types/client/claude/useClaudeSection.d.ts.map +1 -0
  27. package/lib/types/client/claude-api/ClaudeApiSection.d.ts +5 -0
  28. package/lib/types/client/claude-api/ClaudeApiSection.d.ts.map +1 -0
  29. package/lib/types/client/claude-api/api.d.ts +23 -0
  30. package/lib/types/client/claude-api/api.d.ts.map +1 -0
  31. package/lib/types/client/claude-api/locales.d.ts +161 -0
  32. package/lib/types/client/claude-api/locales.d.ts.map +1 -0
  33. package/lib/types/client/claude-api/styles.d.ts +4 -0
  34. package/lib/types/client/claude-api/styles.d.ts.map +1 -0
  35. package/lib/types/client/claude-api/useClaudeApiSection.d.ts +37 -0
  36. package/lib/types/client/claude-api/useClaudeApiSection.d.ts.map +1 -0
  37. package/lib/types/client/cline-pass/ClinePassComposerQuota.d.ts +23 -0
  38. package/lib/types/client/cline-pass/ClinePassComposerQuota.d.ts.map +1 -0
  39. package/lib/types/client/cline-pass/ClinePassSection.d.ts +17 -0
  40. package/lib/types/client/cline-pass/ClinePassSection.d.ts.map +1 -0
  41. package/lib/types/client/cline-pass/api.d.ts +85 -0
  42. package/lib/types/client/cline-pass/api.d.ts.map +1 -0
  43. package/lib/types/client/cline-pass/locales.d.ts +911 -0
  44. package/lib/types/client/cline-pass/locales.d.ts.map +1 -0
  45. package/lib/types/client/cline-pass/styles.d.ts +7 -0
  46. package/lib/types/client/cline-pass/styles.d.ts.map +1 -0
  47. package/lib/types/client/command-code/CommandCodeComposerQuota.d.ts +20 -0
  48. package/lib/types/client/command-code/CommandCodeComposerQuota.d.ts.map +1 -0
  49. package/lib/types/client/command-code/CommandCodeSection.d.ts +8 -0
  50. package/lib/types/client/command-code/CommandCodeSection.d.ts.map +1 -0
  51. package/lib/types/client/command-code/locales.d.ts +305 -0
  52. package/lib/types/client/command-code/locales.d.ts.map +1 -0
  53. package/lib/types/client/common/AccountPoolSection.d.ts +104 -0
  54. package/lib/types/client/common/AccountPoolSection.d.ts.map +1 -0
  55. package/lib/types/client/common/ComposerQuotaBadge.d.ts +63 -0
  56. package/lib/types/client/common/ComposerQuotaBadge.d.ts.map +1 -0
  57. package/lib/types/client/common/ContextWindowEditor.d.ts +71 -0
  58. package/lib/types/client/common/ContextWindowEditor.d.ts.map +1 -0
  59. package/lib/types/client/common/LineProxySection.d.ts +78 -0
  60. package/lib/types/client/common/LineProxySection.d.ts.map +1 -0
  61. package/lib/types/client/common/ModelChecklist.d.ts +29 -0
  62. package/lib/types/client/common/ModelChecklist.d.ts.map +1 -0
  63. package/lib/types/client/common/account-pool-labels.d.ts +74 -0
  64. package/lib/types/client/common/account-pool-labels.d.ts.map +1 -0
  65. package/lib/types/client/common/account-quota.d.ts +60 -0
  66. package/lib/types/client/common/account-quota.d.ts.map +1 -0
  67. package/lib/types/client/common/format.d.ts +70 -0
  68. package/lib/types/client/common/format.d.ts.map +1 -0
  69. package/lib/types/client/common/host-locale-mirror.d.ts +24 -0
  70. package/lib/types/client/common/host-locale-mirror.d.ts.map +1 -0
  71. package/lib/types/client/common/line-api.d.ts +8 -0
  72. package/lib/types/client/common/line-api.d.ts.map +1 -0
  73. package/lib/types/client/common/line-locale.d.ts +21 -0
  74. package/lib/types/client/common/line-locale.d.ts.map +1 -0
  75. package/lib/types/client/common/model-checklist-styles.d.ts +2 -0
  76. package/lib/types/client/common/model-checklist-styles.d.ts.map +1 -0
  77. package/lib/types/client/common/plugin-style.d.ts +23 -0
  78. package/lib/types/client/common/plugin-style.d.ts.map +1 -0
  79. package/lib/types/client/common/quota-follow-up.d.ts +30 -0
  80. package/lib/types/client/common/quota-follow-up.d.ts.map +1 -0
  81. package/lib/types/client/common/styles.d.ts +11 -0
  82. package/lib/types/client/common/styles.d.ts.map +1 -0
  83. package/lib/types/client/common/use-store.d.ts +3 -0
  84. package/lib/types/client/common/use-store.d.ts.map +1 -0
  85. package/lib/types/client/glm-coding-plan/GlmCodingPlanComposerQuota.d.ts +27 -0
  86. package/lib/types/client/glm-coding-plan/GlmCodingPlanComposerQuota.d.ts.map +1 -0
  87. package/lib/types/client/glm-coding-plan/GlmCodingPlanSection.d.ts +22 -0
  88. package/lib/types/client/glm-coding-plan/GlmCodingPlanSection.d.ts.map +1 -0
  89. package/lib/types/client/glm-coding-plan/api.d.ts +4 -0
  90. package/lib/types/client/glm-coding-plan/api.d.ts.map +1 -0
  91. package/lib/types/client/glm-coding-plan/locales.d.ts +409 -0
  92. package/lib/types/client/glm-coding-plan/locales.d.ts.map +1 -0
  93. package/lib/types/client/glm-coding-plan/styles.d.ts +16 -0
  94. package/lib/types/client/glm-coding-plan/styles.d.ts.map +1 -0
  95. package/lib/types/client/glm-coding-plan/useGlmCodingPlanSection.d.ts +65 -0
  96. package/lib/types/client/glm-coding-plan/useGlmCodingPlanSection.d.ts.map +1 -0
  97. package/lib/types/client/hub/HubOverview.d.ts +16 -0
  98. package/lib/types/client/hub/HubOverview.d.ts.map +1 -0
  99. package/lib/types/client/hub/brand-icons.d.ts +64 -0
  100. package/lib/types/client/hub/brand-icons.d.ts.map +1 -0
  101. package/lib/types/client/hub/brand-svg.d.ts +51 -0
  102. package/lib/types/client/hub/brand-svg.d.ts.map +1 -0
  103. package/lib/types/client/hub/hub-styles.d.ts +2 -0
  104. package/lib/types/client/hub/hub-styles.d.ts.map +1 -0
  105. package/lib/types/client/hub/providers.d.ts +55 -0
  106. package/lib/types/client/hub/providers.d.ts.map +1 -0
  107. package/lib/types/client/index.d.ts +67 -0
  108. package/lib/types/client/index.d.ts.map +1 -0
  109. package/lib/types/client/kimi-code/KimiCodeComposerQuota.d.ts +21 -0
  110. package/lib/types/client/kimi-code/KimiCodeComposerQuota.d.ts.map +1 -0
  111. package/lib/types/client/kimi-code/KimiCodeSection.d.ts +8 -0
  112. package/lib/types/client/kimi-code/KimiCodeSection.d.ts.map +1 -0
  113. package/lib/types/client/kimi-code/KimiModelCapabilities.d.ts +16 -0
  114. package/lib/types/client/kimi-code/KimiModelCapabilities.d.ts.map +1 -0
  115. package/lib/types/client/kimi-code/KimiQuotaCard.d.ts +31 -0
  116. package/lib/types/client/kimi-code/KimiQuotaCard.d.ts.map +1 -0
  117. package/lib/types/client/kimi-code/labels.d.ts +66 -0
  118. package/lib/types/client/kimi-code/labels.d.ts.map +1 -0
  119. package/lib/types/client/kimi-code/locales.d.ts +640 -0
  120. package/lib/types/client/kimi-code/locales.d.ts.map +1 -0
  121. package/lib/types/client/kimi-code/staff-art.d.ts +19 -0
  122. package/lib/types/client/kimi-code/staff-art.d.ts.map +1 -0
  123. package/lib/types/client/kimi-code/styles.d.ts +4 -0
  124. package/lib/types/client/kimi-code/styles.d.ts.map +1 -0
  125. package/lib/types/client/locales-ru/account-pool.d.ts +11 -0
  126. package/lib/types/client/locales-ru/account-pool.d.ts.map +1 -0
  127. package/lib/types/client/locales-ru/claude-api.d.ts +3 -0
  128. package/lib/types/client/locales-ru/claude-api.d.ts.map +1 -0
  129. package/lib/types/client/locales-ru/claude.d.ts +3 -0
  130. package/lib/types/client/locales-ru/claude.d.ts.map +1 -0
  131. package/lib/types/client/locales-ru/cline-pass.d.ts +11 -0
  132. package/lib/types/client/locales-ru/cline-pass.d.ts.map +1 -0
  133. package/lib/types/client/locales-ru/command-code.d.ts +9 -0
  134. package/lib/types/client/locales-ru/command-code.d.ts.map +1 -0
  135. package/lib/types/client/locales-ru/glm-coding-plan.d.ts +10 -0
  136. package/lib/types/client/locales-ru/glm-coding-plan.d.ts.map +1 -0
  137. package/lib/types/client/locales-ru/hub.d.ts +3 -0
  138. package/lib/types/client/locales-ru/hub.d.ts.map +1 -0
  139. package/lib/types/client/locales-ru/index.d.ts +26 -0
  140. package/lib/types/client/locales-ru/index.d.ts.map +1 -0
  141. package/lib/types/client/locales-ru/kimi-code.d.ts +10 -0
  142. package/lib/types/client/locales-ru/kimi-code.d.ts.map +1 -0
  143. package/lib/types/client/locales-ru/minimax-code.d.ts +9 -0
  144. package/lib/types/client/locales-ru/minimax-code.d.ts.map +1 -0
  145. package/lib/types/client/locales-ru/ollama.d.ts +10 -0
  146. package/lib/types/client/locales-ru/ollama.d.ts.map +1 -0
  147. package/lib/types/client/locales-ru/opencode-go.d.ts +3 -0
  148. package/lib/types/client/locales-ru/opencode-go.d.ts.map +1 -0
  149. package/lib/types/client/locales-ru/opendesign.d.ts +10 -0
  150. package/lib/types/client/locales-ru/opendesign.d.ts.map +1 -0
  151. package/lib/types/client/locales-ru/qianwen-token-plan.d.ts +3 -0
  152. package/lib/types/client/locales-ru/qianwen-token-plan.d.ts.map +1 -0
  153. package/lib/types/client/locales-ru/qoder.d.ts +11 -0
  154. package/lib/types/client/locales-ru/qoder.d.ts.map +1 -0
  155. package/lib/types/client/locales-ru/relayone.d.ts +3 -0
  156. package/lib/types/client/locales-ru/relayone.d.ts.map +1 -0
  157. package/lib/types/client/locales-ru/step-code.d.ts +9 -0
  158. package/lib/types/client/locales-ru/step-code.d.ts.map +1 -0
  159. package/lib/types/client/locales-ru/workbuddy.d.ts +10 -0
  160. package/lib/types/client/locales-ru/workbuddy.d.ts.map +1 -0
  161. package/lib/types/client/locales.d.ts +497 -0
  162. package/lib/types/client/locales.d.ts.map +1 -0
  163. package/lib/types/client/minimax-code/MinimaxCodeComposerQuota.d.ts +23 -0
  164. package/lib/types/client/minimax-code/MinimaxCodeComposerQuota.d.ts.map +1 -0
  165. package/lib/types/client/minimax-code/MinimaxCodeSection.d.ts +23 -0
  166. package/lib/types/client/minimax-code/MinimaxCodeSection.d.ts.map +1 -0
  167. package/lib/types/client/minimax-code/api.d.ts +35 -0
  168. package/lib/types/client/minimax-code/api.d.ts.map +1 -0
  169. package/lib/types/client/minimax-code/commands-contract.d.ts +46 -0
  170. package/lib/types/client/minimax-code/commands-contract.d.ts.map +1 -0
  171. package/lib/types/client/minimax-code/locales.d.ts +422 -0
  172. package/lib/types/client/minimax-code/locales.d.ts.map +1 -0
  173. package/lib/types/client/minimax-code/styles.d.ts +12 -0
  174. package/lib/types/client/minimax-code/styles.d.ts.map +1 -0
  175. package/lib/types/client/minimax-code/useMinimaxCodeSection.d.ts +164 -0
  176. package/lib/types/client/minimax-code/useMinimaxCodeSection.d.ts.map +1 -0
  177. package/lib/types/client/ollama/OllamaSection.d.ts +25 -0
  178. package/lib/types/client/ollama/OllamaSection.d.ts.map +1 -0
  179. package/lib/types/client/ollama/api.d.ts +49 -0
  180. package/lib/types/client/ollama/api.d.ts.map +1 -0
  181. package/lib/types/client/ollama/locales.d.ts +479 -0
  182. package/lib/types/client/ollama/locales.d.ts.map +1 -0
  183. package/lib/types/client/opencode-go/OpenCodeGoQuotaCard.d.ts +20 -0
  184. package/lib/types/client/opencode-go/OpenCodeGoQuotaCard.d.ts.map +1 -0
  185. package/lib/types/client/opencode-go/OpenCodeGoSection.d.ts +8 -0
  186. package/lib/types/client/opencode-go/OpenCodeGoSection.d.ts.map +1 -0
  187. package/lib/types/client/opencode-go/locales.d.ts +210 -0
  188. package/lib/types/client/opencode-go/locales.d.ts.map +1 -0
  189. package/lib/types/client/opencode-go/styles.d.ts +10 -0
  190. package/lib/types/client/opencode-go/styles.d.ts.map +1 -0
  191. package/lib/types/client/opendesign/OpenDesignComposerQuota.d.ts +26 -0
  192. package/lib/types/client/opendesign/OpenDesignComposerQuota.d.ts.map +1 -0
  193. package/lib/types/client/opendesign/OpenDesignSection.d.ts +19 -0
  194. package/lib/types/client/opendesign/OpenDesignSection.d.ts.map +1 -0
  195. package/lib/types/client/opendesign/api.d.ts +45 -0
  196. package/lib/types/client/opendesign/api.d.ts.map +1 -0
  197. package/lib/types/client/opendesign/locales.d.ts +815 -0
  198. package/lib/types/client/opendesign/locales.d.ts.map +1 -0
  199. package/lib/types/client/opendesign/styles.d.ts +16 -0
  200. package/lib/types/client/opendesign/styles.d.ts.map +1 -0
  201. package/lib/types/client/qianwen-token-plan/QianwenComposerQuota.d.ts +14 -0
  202. package/lib/types/client/qianwen-token-plan/QianwenComposerQuota.d.ts.map +1 -0
  203. package/lib/types/client/qianwen-token-plan/QianwenTokenPlanSection.d.ts +4 -0
  204. package/lib/types/client/qianwen-token-plan/QianwenTokenPlanSection.d.ts.map +1 -0
  205. package/lib/types/client/qianwen-token-plan/api.d.ts +5 -0
  206. package/lib/types/client/qianwen-token-plan/api.d.ts.map +1 -0
  207. package/lib/types/client/qianwen-token-plan/locales.d.ts +158 -0
  208. package/lib/types/client/qianwen-token-plan/locales.d.ts.map +1 -0
  209. package/lib/types/client/qianwen-token-plan/styles.d.ts +3 -0
  210. package/lib/types/client/qianwen-token-plan/styles.d.ts.map +1 -0
  211. package/lib/types/client/qianwen-token-plan/useQianwenSection.d.ts +32 -0
  212. package/lib/types/client/qianwen-token-plan/useQianwenSection.d.ts.map +1 -0
  213. package/lib/types/client/qoder/QoderComposerQuota.d.ts +41 -0
  214. package/lib/types/client/qoder/QoderComposerQuota.d.ts.map +1 -0
  215. package/lib/types/client/qoder/QoderSection.d.ts +37 -0
  216. package/lib/types/client/qoder/QoderSection.d.ts.map +1 -0
  217. package/lib/types/client/qoder/api.d.ts +4 -0
  218. package/lib/types/client/qoder/api.d.ts.map +1 -0
  219. package/lib/types/client/qoder/locales.d.ts +322 -0
  220. package/lib/types/client/qoder/locales.d.ts.map +1 -0
  221. package/lib/types/client/qoder/styles.d.ts +16 -0
  222. package/lib/types/client/qoder/styles.d.ts.map +1 -0
  223. package/lib/types/client/qoder/useQoderSection.d.ts +97 -0
  224. package/lib/types/client/qoder/useQoderSection.d.ts.map +1 -0
  225. package/lib/types/client/quota.d.ts +9 -0
  226. package/lib/types/client/quota.d.ts.map +1 -0
  227. package/lib/types/client/relayone/RelayOneComposerQuota.d.ts +14 -0
  228. package/lib/types/client/relayone/RelayOneComposerQuota.d.ts.map +1 -0
  229. package/lib/types/client/relayone/RelayOneSection.d.ts +4 -0
  230. package/lib/types/client/relayone/RelayOneSection.d.ts.map +1 -0
  231. package/lib/types/client/relayone/api.d.ts +5 -0
  232. package/lib/types/client/relayone/api.d.ts.map +1 -0
  233. package/lib/types/client/relayone/locales.d.ts +221 -0
  234. package/lib/types/client/relayone/locales.d.ts.map +1 -0
  235. package/lib/types/client/relayone/quota-format.d.ts +6 -0
  236. package/lib/types/client/relayone/quota-format.d.ts.map +1 -0
  237. package/lib/types/client/relayone/styles.d.ts +3 -0
  238. package/lib/types/client/relayone/styles.d.ts.map +1 -0
  239. package/lib/types/client/relayone/useRelayOneSection.d.ts +32 -0
  240. package/lib/types/client/relayone/useRelayOneSection.d.ts.map +1 -0
  241. package/lib/types/client/step-code/StepCodeComposerQuota.d.ts +50 -0
  242. package/lib/types/client/step-code/StepCodeComposerQuota.d.ts.map +1 -0
  243. package/lib/types/client/step-code/StepCodeSection.d.ts +28 -0
  244. package/lib/types/client/step-code/StepCodeSection.d.ts.map +1 -0
  245. package/lib/types/client/step-code/api.d.ts +4 -0
  246. package/lib/types/client/step-code/api.d.ts.map +1 -0
  247. package/lib/types/client/step-code/locales.d.ts +657 -0
  248. package/lib/types/client/step-code/locales.d.ts.map +1 -0
  249. package/lib/types/client/step-code/styles.d.ts +28 -0
  250. package/lib/types/client/step-code/styles.d.ts.map +1 -0
  251. package/lib/types/client/step-code/useStepCodeSection.d.ts +122 -0
  252. package/lib/types/client/step-code/useStepCodeSection.d.ts.map +1 -0
  253. package/lib/types/client/store.d.ts +19 -0
  254. package/lib/types/client/store.d.ts.map +1 -0
  255. package/lib/types/client/styles.d.ts +26 -0
  256. package/lib/types/client/styles.d.ts.map +1 -0
  257. package/lib/types/client/workbuddy/WorkBuddyComposerQuota.d.ts +34 -0
  258. package/lib/types/client/workbuddy/WorkBuddyComposerQuota.d.ts.map +1 -0
  259. package/lib/types/client/workbuddy/WorkBuddySection.d.ts +91 -0
  260. package/lib/types/client/workbuddy/WorkBuddySection.d.ts.map +1 -0
  261. package/lib/types/client/workbuddy/locales.d.ts +768 -0
  262. package/lib/types/client/workbuddy/locales.d.ts.map +1 -0
  263. package/lib/types/client/workbuddy/styles.d.ts +21 -0
  264. package/lib/types/client/workbuddy/styles.d.ts.map +1 -0
  265. package/lib/types/client/workbuddy/useWorkBuddySection.d.ts +149 -0
  266. package/lib/types/client/workbuddy/useWorkBuddySection.d.ts.map +1 -0
  267. package/lib/types/compat.d.ts +139 -0
  268. package/lib/types/compat.d.ts.map +1 -0
  269. package/lib/types/host/adapter.d.ts +43 -0
  270. package/lib/types/host/adapter.d.ts.map +1 -0
  271. package/lib/types/host/callback-server.d.ts +22 -0
  272. package/lib/types/host/callback-server.d.ts.map +1 -0
  273. package/lib/types/host/claude/account-pool.d.ts +583 -0
  274. package/lib/types/host/claude/account-pool.d.ts.map +1 -0
  275. package/lib/types/host/claude/adapter.d.ts +424 -0
  276. package/lib/types/host/claude/adapter.d.ts.map +1 -0
  277. package/lib/types/host/claude/adopt.d.ts +292 -0
  278. package/lib/types/host/claude/adopt.d.ts.map +1 -0
  279. package/lib/types/host/claude/client.d.ts +579 -0
  280. package/lib/types/host/claude/client.d.ts.map +1 -0
  281. package/lib/types/host/claude/mapper.d.ts +802 -0
  282. package/lib/types/host/claude/mapper.d.ts.map +1 -0
  283. package/lib/types/host/claude/model-catalog.d.ts +560 -0
  284. package/lib/types/host/claude/model-catalog.d.ts.map +1 -0
  285. package/lib/types/host/claude/oauth.d.ts +419 -0
  286. package/lib/types/host/claude/oauth.d.ts.map +1 -0
  287. package/lib/types/host/claude/routes.d.ts +131 -0
  288. package/lib/types/host/claude/routes.d.ts.map +1 -0
  289. package/lib/types/host/claude/token-store.d.ts +347 -0
  290. package/lib/types/host/claude/token-store.d.ts.map +1 -0
  291. package/lib/types/host/claude/types.d.ts +417 -0
  292. package/lib/types/host/claude/types.d.ts.map +1 -0
  293. package/lib/types/host/claude-api/adapter.d.ts +70 -0
  294. package/lib/types/host/claude-api/adapter.d.ts.map +1 -0
  295. package/lib/types/host/claude-api/capability-memory.d.ts +4 -0
  296. package/lib/types/host/claude-api/capability-memory.d.ts.map +1 -0
  297. package/lib/types/host/claude-api/catalog-manager.d.ts +57 -0
  298. package/lib/types/host/claude-api/catalog-manager.d.ts.map +1 -0
  299. package/lib/types/host/claude-api/client-version.d.ts +4 -0
  300. package/lib/types/host/claude-api/client-version.d.ts.map +1 -0
  301. package/lib/types/host/claude-api/client.d.ts +55 -0
  302. package/lib/types/host/claude-api/client.d.ts.map +1 -0
  303. package/lib/types/host/claude-api/compaction-instruction.d.ts +23 -0
  304. package/lib/types/host/claude-api/compaction-instruction.d.ts.map +1 -0
  305. package/lib/types/host/claude-api/compaction-store.d.ts +62 -0
  306. package/lib/types/host/claude-api/compaction-store.d.ts.map +1 -0
  307. package/lib/types/host/claude-api/compaction.d.ts +47 -0
  308. package/lib/types/host/claude-api/compaction.d.ts.map +1 -0
  309. package/lib/types/host/claude-api/mapper.d.ts +61 -0
  310. package/lib/types/host/claude-api/mapper.d.ts.map +1 -0
  311. package/lib/types/host/claude-api/model-catalog.d.ts +76 -0
  312. package/lib/types/host/claude-api/model-catalog.d.ts.map +1 -0
  313. package/lib/types/host/claude-api/routes.d.ts +22 -0
  314. package/lib/types/host/claude-api/routes.d.ts.map +1 -0
  315. package/lib/types/host/claude-api/stream.d.ts +88 -0
  316. package/lib/types/host/claude-api/stream.d.ts.map +1 -0
  317. package/lib/types/host/claude-api/token-store.d.ts +60 -0
  318. package/lib/types/host/claude-api/token-store.d.ts.map +1 -0
  319. package/lib/types/host/claude-api/types.d.ts +68 -0
  320. package/lib/types/host/claude-api/types.d.ts.map +1 -0
  321. package/lib/types/host/cline-pass/account-pool.d.ts +63 -0
  322. package/lib/types/host/cline-pass/account-pool.d.ts.map +1 -0
  323. package/lib/types/host/cline-pass/adapter.d.ts +60 -0
  324. package/lib/types/host/cline-pass/adapter.d.ts.map +1 -0
  325. package/lib/types/host/cline-pass/catalog.d.ts +49 -0
  326. package/lib/types/host/cline-pass/catalog.d.ts.map +1 -0
  327. package/lib/types/host/cline-pass/client.d.ts +109 -0
  328. package/lib/types/host/cline-pass/client.d.ts.map +1 -0
  329. package/lib/types/host/cline-pass/engine.d.ts +93 -0
  330. package/lib/types/host/cline-pass/engine.d.ts.map +1 -0
  331. package/lib/types/host/cline-pass/line.d.ts +55 -0
  332. package/lib/types/host/cline-pass/line.d.ts.map +1 -0
  333. package/lib/types/host/cline-pass/mapper.d.ts +138 -0
  334. package/lib/types/host/cline-pass/mapper.d.ts.map +1 -0
  335. package/lib/types/host/cline-pass/oauth.d.ts +134 -0
  336. package/lib/types/host/cline-pass/oauth.d.ts.map +1 -0
  337. package/lib/types/host/cline-pass/protocol.d.ts +44 -0
  338. package/lib/types/host/cline-pass/protocol.d.ts.map +1 -0
  339. package/lib/types/host/cline-pass/routes.d.ts +92 -0
  340. package/lib/types/host/cline-pass/routes.d.ts.map +1 -0
  341. package/lib/types/host/cline-pass/store.d.ts +75 -0
  342. package/lib/types/host/cline-pass/store.d.ts.map +1 -0
  343. package/lib/types/host/cline-pass/token-store.d.ts +170 -0
  344. package/lib/types/host/cline-pass/token-store.d.ts.map +1 -0
  345. package/lib/types/host/cline-pass/tools.d.ts +21 -0
  346. package/lib/types/host/cline-pass/tools.d.ts.map +1 -0
  347. package/lib/types/host/cline-pass/types.d.ts +127 -0
  348. package/lib/types/host/cline-pass/types.d.ts.map +1 -0
  349. package/lib/types/host/codex-account-pool.d.ts +223 -0
  350. package/lib/types/host/codex-account-pool.d.ts.map +1 -0
  351. package/lib/types/host/codex-adopt.d.ts +255 -0
  352. package/lib/types/host/codex-adopt.d.ts.map +1 -0
  353. package/lib/types/host/codex-catalog.d.ts +69 -0
  354. package/lib/types/host/codex-catalog.d.ts.map +1 -0
  355. package/lib/types/host/codex-fetch.d.ts +17 -0
  356. package/lib/types/host/codex-fetch.d.ts.map +1 -0
  357. package/lib/types/host/codex-file-import.d.ts +35 -0
  358. package/lib/types/host/codex-file-import.d.ts.map +1 -0
  359. package/lib/types/host/codex-identity.d.ts +132 -0
  360. package/lib/types/host/codex-identity.d.ts.map +1 -0
  361. package/lib/types/host/codex-remote-compaction.d.ts +41 -0
  362. package/lib/types/host/codex-remote-compaction.d.ts.map +1 -0
  363. package/lib/types/host/codex-search.d.ts +11 -0
  364. package/lib/types/host/codex-search.d.ts.map +1 -0
  365. package/lib/types/host/command-code/account-pool.d.ts +72 -0
  366. package/lib/types/host/command-code/account-pool.d.ts.map +1 -0
  367. package/lib/types/host/command-code/adapter.d.ts +89 -0
  368. package/lib/types/host/command-code/adapter.d.ts.map +1 -0
  369. package/lib/types/host/command-code/client.d.ts +126 -0
  370. package/lib/types/host/command-code/client.d.ts.map +1 -0
  371. package/lib/types/host/command-code/mapper.d.ts +199 -0
  372. package/lib/types/host/command-code/mapper.d.ts.map +1 -0
  373. package/lib/types/host/command-code/model-catalog.d.ts +90 -0
  374. package/lib/types/host/command-code/model-catalog.d.ts.map +1 -0
  375. package/lib/types/host/command-code/oauth.d.ts +95 -0
  376. package/lib/types/host/command-code/oauth.d.ts.map +1 -0
  377. package/lib/types/host/command-code/plans.d.ts +40 -0
  378. package/lib/types/host/command-code/plans.d.ts.map +1 -0
  379. package/lib/types/host/command-code/routes.d.ts +44 -0
  380. package/lib/types/host/command-code/routes.d.ts.map +1 -0
  381. package/lib/types/host/command-code/token-store.d.ts +100 -0
  382. package/lib/types/host/command-code/token-store.d.ts.map +1 -0
  383. package/lib/types/host/command-code/types.d.ts +222 -0
  384. package/lib/types/host/command-code/types.d.ts.map +1 -0
  385. package/lib/types/host/common/account-pool.d.ts +584 -0
  386. package/lib/types/host/common/account-pool.d.ts.map +1 -0
  387. package/lib/types/host/common/account-quota.d.ts +44 -0
  388. package/lib/types/host/common/account-quota.d.ts.map +1 -0
  389. package/lib/types/host/common/brand-compat.d.ts +4 -0
  390. package/lib/types/host/common/brand-compat.d.ts.map +1 -0
  391. package/lib/types/host/common/cache-activity.d.ts +16 -0
  392. package/lib/types/host/common/cache-activity.d.ts.map +1 -0
  393. package/lib/types/host/common/cache-affinity.d.ts +23 -0
  394. package/lib/types/host/common/cache-affinity.d.ts.map +1 -0
  395. package/lib/types/host/common/cache-hint.d.ts +18 -0
  396. package/lib/types/host/common/cache-hint.d.ts.map +1 -0
  397. package/lib/types/host/common/capabilities.d.ts +100 -0
  398. package/lib/types/host/common/capabilities.d.ts.map +1 -0
  399. package/lib/types/host/common/catalog-snapshot.d.ts +80 -0
  400. package/lib/types/host/common/catalog-snapshot.d.ts.map +1 -0
  401. package/lib/types/host/common/claude-capability-memory.d.ts +51 -0
  402. package/lib/types/host/common/claude-capability-memory.d.ts.map +1 -0
  403. package/lib/types/host/common/claude-code-cch.d.ts +28 -0
  404. package/lib/types/host/common/claude-code-cch.d.ts.map +1 -0
  405. package/lib/types/host/common/claude-code-corrections.d.ts +6 -0
  406. package/lib/types/host/common/claude-code-corrections.d.ts.map +1 -0
  407. package/lib/types/host/common/claude-code-first-party.d.ts +68 -0
  408. package/lib/types/host/common/claude-code-first-party.d.ts.map +1 -0
  409. package/lib/types/host/common/claude-code-version.d.ts +90 -0
  410. package/lib/types/host/common/claude-code-version.d.ts.map +1 -0
  411. package/lib/types/host/common/concurrency-gate.d.ts +46 -0
  412. package/lib/types/host/common/concurrency-gate.d.ts.map +1 -0
  413. package/lib/types/host/common/context-budget-fetch.d.ts +7 -0
  414. package/lib/types/host/common/context-budget-fetch.d.ts.map +1 -0
  415. package/lib/types/host/common/context-overflow.d.ts +7 -0
  416. package/lib/types/host/common/context-overflow.d.ts.map +1 -0
  417. package/lib/types/host/common/context-window-overrides.d.ts +12 -0
  418. package/lib/types/host/common/context-window-overrides.d.ts.map +1 -0
  419. package/lib/types/host/common/credential-read-cache.d.ts +82 -0
  420. package/lib/types/host/common/credential-read-cache.d.ts.map +1 -0
  421. package/lib/types/host/common/credentials-compat.d.ts +73 -0
  422. package/lib/types/host/common/credentials-compat.d.ts.map +1 -0
  423. package/lib/types/host/common/failure-classification.d.ts +21 -0
  424. package/lib/types/host/common/failure-classification.d.ts.map +1 -0
  425. package/lib/types/host/common/file-preferences.d.ts +49 -0
  426. package/lib/types/host/common/file-preferences.d.ts.map +1 -0
  427. package/lib/types/host/common/gpt-engineering-guidance.d.ts +16 -0
  428. package/lib/types/host/common/gpt-engineering-guidance.d.ts.map +1 -0
  429. package/lib/types/host/common/home.d.ts +8 -0
  430. package/lib/types/host/common/home.d.ts.map +1 -0
  431. package/lib/types/host/common/hosted-media.d.ts +36 -0
  432. package/lib/types/host/common/hosted-media.d.ts.map +1 -0
  433. package/lib/types/host/common/i18n/en.d.ts +9 -0
  434. package/lib/types/host/common/i18n/en.d.ts.map +1 -0
  435. package/lib/types/host/common/i18n/index.d.ts +13 -0
  436. package/lib/types/host/common/i18n/index.d.ts.map +1 -0
  437. package/lib/types/host/common/i18n/provider-name.d.ts +10 -0
  438. package/lib/types/host/common/i18n/provider-name.d.ts.map +1 -0
  439. package/lib/types/host/common/i18n/ru.d.ts +10 -0
  440. package/lib/types/host/common/i18n/ru.d.ts.map +1 -0
  441. package/lib/types/host/common/i18n/runtime.d.ts +54 -0
  442. package/lib/types/host/common/i18n/runtime.d.ts.map +1 -0
  443. package/lib/types/host/common/i18n/t.d.ts +38 -0
  444. package/lib/types/host/common/i18n/t.d.ts.map +1 -0
  445. package/lib/types/host/common/i18n/zh.d.ts +172 -0
  446. package/lib/types/host/common/i18n/zh.d.ts.map +1 -0
  447. package/lib/types/host/common/idle-watchdog.d.ts +58 -0
  448. package/lib/types/host/common/idle-watchdog.d.ts.map +1 -0
  449. package/lib/types/host/common/legacy-preferences.d.ts +29 -0
  450. package/lib/types/host/common/legacy-preferences.d.ts.map +1 -0
  451. package/lib/types/host/common/llm-compat.d.ts +157 -0
  452. package/lib/types/host/common/llm-compat.d.ts.map +1 -0
  453. package/lib/types/host/common/model-request-control.d.ts +21 -0
  454. package/lib/types/host/common/model-request-control.d.ts.map +1 -0
  455. package/lib/types/host/common/orphan-tool-calls.d.ts +47 -0
  456. package/lib/types/host/common/orphan-tool-calls.d.ts.map +1 -0
  457. package/lib/types/host/common/output-reservation.d.ts +11 -0
  458. package/lib/types/host/common/output-reservation.d.ts.map +1 -0
  459. package/lib/types/host/common/pool-storage-settings.d.ts +41 -0
  460. package/lib/types/host/common/pool-storage-settings.d.ts.map +1 -0
  461. package/lib/types/host/common/pool-storage.d.ts +143 -0
  462. package/lib/types/host/common/pool-storage.d.ts.map +1 -0
  463. package/lib/types/host/common/prefix-request-coordinator.d.ts +46 -0
  464. package/lib/types/host/common/prefix-request-coordinator.d.ts.map +1 -0
  465. package/lib/types/host/common/prefix-stability.d.ts +24 -0
  466. package/lib/types/host/common/prefix-stability.d.ts.map +1 -0
  467. package/lib/types/host/common/prompt-cache-policy.d.ts +47 -0
  468. package/lib/types/host/common/prompt-cache-policy.d.ts.map +1 -0
  469. package/lib/types/host/common/prompt-estimate.d.ts +22 -0
  470. package/lib/types/host/common/prompt-estimate.d.ts.map +1 -0
  471. package/lib/types/host/common/provider-route.d.ts +56 -0
  472. package/lib/types/host/common/provider-route.d.ts.map +1 -0
  473. package/lib/types/host/common/quota-refresh.d.ts +35 -0
  474. package/lib/types/host/common/quota-refresh.d.ts.map +1 -0
  475. package/lib/types/host/common/reasoning-dialect.d.ts +24 -0
  476. package/lib/types/host/common/reasoning-dialect.d.ts.map +1 -0
  477. package/lib/types/host/common/reasoning-efforts.d.ts +2 -0
  478. package/lib/types/host/common/reasoning-efforts.d.ts.map +1 -0
  479. package/lib/types/host/common/request-diagnostics.d.ts +79 -0
  480. package/lib/types/host/common/request-diagnostics.d.ts.map +1 -0
  481. package/lib/types/host/common/request-images.d.ts +275 -0
  482. package/lib/types/host/common/request-images.d.ts.map +1 -0
  483. package/lib/types/host/common/same-origin.d.ts +30 -0
  484. package/lib/types/host/common/same-origin.d.ts.map +1 -0
  485. package/lib/types/host/common/session-cache-state.d.ts +29 -0
  486. package/lib/types/host/common/session-cache-state.d.ts.map +1 -0
  487. package/lib/types/host/common/session-effort-memory.d.ts +35 -0
  488. package/lib/types/host/common/session-effort-memory.d.ts.map +1 -0
  489. package/lib/types/host/common/settings-compat.d.ts +55 -0
  490. package/lib/types/host/common/settings-compat.d.ts.map +1 -0
  491. package/lib/types/host/common/sticky-image-budget.d.ts +10 -0
  492. package/lib/types/host/common/sticky-image-budget.d.ts.map +1 -0
  493. package/lib/types/host/common/stream-error.d.ts +93 -0
  494. package/lib/types/host/common/stream-error.d.ts.map +1 -0
  495. package/lib/types/host/common/tool-schema.d.ts +27 -0
  496. package/lib/types/host/common/tool-schema.d.ts.map +1 -0
  497. package/lib/types/host/common/video-request.d.ts +81 -0
  498. package/lib/types/host/common/video-request.d.ts.map +1 -0
  499. package/lib/types/host/common/video.d.ts +90 -0
  500. package/lib/types/host/common/video.d.ts.map +1 -0
  501. package/lib/types/host/common/webserver-compat.d.ts +7 -0
  502. package/lib/types/host/common/webserver-compat.d.ts.map +1 -0
  503. package/lib/types/host/credential-store-secret-service.d.ts +66 -0
  504. package/lib/types/host/credential-store-secret-service.d.ts.map +1 -0
  505. package/lib/types/host/fetch-address-policy.d.ts +79 -0
  506. package/lib/types/host/fetch-address-policy.d.ts.map +1 -0
  507. package/lib/types/host/fetch-configuration.d.ts +6 -0
  508. package/lib/types/host/fetch-configuration.d.ts.map +1 -0
  509. package/lib/types/host/glm-coding-plan/account-pool.d.ts +152 -0
  510. package/lib/types/host/glm-coding-plan/account-pool.d.ts.map +1 -0
  511. package/lib/types/host/glm-coding-plan/adapter.d.ts +169 -0
  512. package/lib/types/host/glm-coding-plan/adapter.d.ts.map +1 -0
  513. package/lib/types/host/glm-coding-plan/adopt.d.ts +354 -0
  514. package/lib/types/host/glm-coding-plan/adopt.d.ts.map +1 -0
  515. package/lib/types/host/glm-coding-plan/biz-token-cache.d.ts +99 -0
  516. package/lib/types/host/glm-coding-plan/biz-token-cache.d.ts.map +1 -0
  517. package/lib/types/host/glm-coding-plan/client.d.ts +218 -0
  518. package/lib/types/host/glm-coding-plan/client.d.ts.map +1 -0
  519. package/lib/types/host/glm-coding-plan/exchange.d.ts +223 -0
  520. package/lib/types/host/glm-coding-plan/exchange.d.ts.map +1 -0
  521. package/lib/types/host/glm-coding-plan/mapper-anthropic.d.ts +312 -0
  522. package/lib/types/host/glm-coding-plan/mapper-anthropic.d.ts.map +1 -0
  523. package/lib/types/host/glm-coding-plan/mapper-openai.d.ts +213 -0
  524. package/lib/types/host/glm-coding-plan/mapper-openai.d.ts.map +1 -0
  525. package/lib/types/host/glm-coding-plan/model-catalog.d.ts +241 -0
  526. package/lib/types/host/glm-coding-plan/model-catalog.d.ts.map +1 -0
  527. package/lib/types/host/glm-coding-plan/oauth.d.ts +211 -0
  528. package/lib/types/host/glm-coding-plan/oauth.d.ts.map +1 -0
  529. package/lib/types/host/glm-coding-plan/routes.d.ts +93 -0
  530. package/lib/types/host/glm-coding-plan/routes.d.ts.map +1 -0
  531. package/lib/types/host/glm-coding-plan/token-store.d.ts +202 -0
  532. package/lib/types/host/glm-coding-plan/token-store.d.ts.map +1 -0
  533. package/lib/types/host/glm-coding-plan/types.d.ts +492 -0
  534. package/lib/types/host/glm-coding-plan/types.d.ts.map +1 -0
  535. package/lib/types/host/hub-overview.d.ts +32 -0
  536. package/lib/types/host/hub-overview.d.ts.map +1 -0
  537. package/lib/types/host/kimi-code/account-pool.d.ts +124 -0
  538. package/lib/types/host/kimi-code/account-pool.d.ts.map +1 -0
  539. package/lib/types/host/kimi-code/adapter.d.ts +451 -0
  540. package/lib/types/host/kimi-code/adapter.d.ts.map +1 -0
  541. package/lib/types/host/kimi-code/api-key.d.ts +55 -0
  542. package/lib/types/host/kimi-code/api-key.d.ts.map +1 -0
  543. package/lib/types/host/kimi-code/cache-affinity.d.ts +112 -0
  544. package/lib/types/host/kimi-code/cache-affinity.d.ts.map +1 -0
  545. package/lib/types/host/kimi-code/cache-hint.d.ts +65 -0
  546. package/lib/types/host/kimi-code/cache-hint.d.ts.map +1 -0
  547. package/lib/types/host/kimi-code/client.d.ts +306 -0
  548. package/lib/types/host/kimi-code/client.d.ts.map +1 -0
  549. package/lib/types/host/kimi-code/mapper.d.ts +913 -0
  550. package/lib/types/host/kimi-code/mapper.d.ts.map +1 -0
  551. package/lib/types/host/kimi-code/media-files.d.ts +206 -0
  552. package/lib/types/host/kimi-code/media-files.d.ts.map +1 -0
  553. package/lib/types/host/kimi-code/modalities.d.ts +23 -0
  554. package/lib/types/host/kimi-code/modalities.d.ts.map +1 -0
  555. package/lib/types/host/kimi-code/model-catalog.d.ts +125 -0
  556. package/lib/types/host/kimi-code/model-catalog.d.ts.map +1 -0
  557. package/lib/types/host/kimi-code/oauth.d.ts +213 -0
  558. package/lib/types/host/kimi-code/oauth.d.ts.map +1 -0
  559. package/lib/types/host/kimi-code/routes.d.ts +52 -0
  560. package/lib/types/host/kimi-code/routes.d.ts.map +1 -0
  561. package/lib/types/host/kimi-code/session-cache-state.d.ts +156 -0
  562. package/lib/types/host/kimi-code/session-cache-state.d.ts.map +1 -0
  563. package/lib/types/host/kimi-code/token-store.d.ts +182 -0
  564. package/lib/types/host/kimi-code/token-store.d.ts.map +1 -0
  565. package/lib/types/host/kimi-code/tool-argument-guard.d.ts +43 -0
  566. package/lib/types/host/kimi-code/tool-argument-guard.d.ts.map +1 -0
  567. package/lib/types/host/kimi-code/types.d.ts +458 -0
  568. package/lib/types/host/kimi-code/types.d.ts.map +1 -0
  569. package/lib/types/host/kimi-code/warmup-streak.d.ts +66 -0
  570. package/lib/types/host/kimi-code/warmup-streak.d.ts.map +1 -0
  571. package/lib/types/host/minimax-code/account-pool.d.ts +309 -0
  572. package/lib/types/host/minimax-code/account-pool.d.ts.map +1 -0
  573. package/lib/types/host/minimax-code/adapter.d.ts +207 -0
  574. package/lib/types/host/minimax-code/adapter.d.ts.map +1 -0
  575. package/lib/types/host/minimax-code/checkin-gateway.d.ts +145 -0
  576. package/lib/types/host/minimax-code/checkin-gateway.d.ts.map +1 -0
  577. package/lib/types/host/minimax-code/checkin.d.ts +207 -0
  578. package/lib/types/host/minimax-code/checkin.d.ts.map +1 -0
  579. package/lib/types/host/minimax-code/client.d.ts +242 -0
  580. package/lib/types/host/minimax-code/client.d.ts.map +1 -0
  581. package/lib/types/host/minimax-code/files-api.d.ts +117 -0
  582. package/lib/types/host/minimax-code/files-api.d.ts.map +1 -0
  583. package/lib/types/host/minimax-code/iso-bmff-duration.d.ts +84 -0
  584. package/lib/types/host/minimax-code/iso-bmff-duration.d.ts.map +1 -0
  585. package/lib/types/host/minimax-code/mapper.d.ts +351 -0
  586. package/lib/types/host/minimax-code/mapper.d.ts.map +1 -0
  587. package/lib/types/host/minimax-code/matrix-client.d.ts +168 -0
  588. package/lib/types/host/minimax-code/matrix-client.d.ts.map +1 -0
  589. package/lib/types/host/minimax-code/modalities.d.ts +20 -0
  590. package/lib/types/host/minimax-code/modalities.d.ts.map +1 -0
  591. package/lib/types/host/minimax-code/model-catalog.d.ts +227 -0
  592. package/lib/types/host/minimax-code/model-catalog.d.ts.map +1 -0
  593. package/lib/types/host/minimax-code/oauth.d.ts +220 -0
  594. package/lib/types/host/minimax-code/oauth.d.ts.map +1 -0
  595. package/lib/types/host/minimax-code/reset-card.d.ts +136 -0
  596. package/lib/types/host/minimax-code/reset-card.d.ts.map +1 -0
  597. package/lib/types/host/minimax-code/routes.d.ts +82 -0
  598. package/lib/types/host/minimax-code/routes.d.ts.map +1 -0
  599. package/lib/types/host/minimax-code/token-store.d.ts +328 -0
  600. package/lib/types/host/minimax-code/token-store.d.ts.map +1 -0
  601. package/lib/types/host/minimax-code/tool-argument-repair.d.ts +72 -0
  602. package/lib/types/host/minimax-code/tool-argument-repair.d.ts.map +1 -0
  603. package/lib/types/host/minimax-code/types.d.ts +378 -0
  604. package/lib/types/host/minimax-code/types.d.ts.map +1 -0
  605. package/lib/types/host/model-catalog.d.ts +43 -0
  606. package/lib/types/host/model-catalog.d.ts.map +1 -0
  607. package/lib/types/host/oauth-service.d.ts +242 -0
  608. package/lib/types/host/oauth-service.d.ts.map +1 -0
  609. package/lib/types/host/ollama/account-pool.d.ts +65 -0
  610. package/lib/types/host/ollama/account-pool.d.ts.map +1 -0
  611. package/lib/types/host/ollama/adapter.d.ts +90 -0
  612. package/lib/types/host/ollama/adapter.d.ts.map +1 -0
  613. package/lib/types/host/ollama/client.d.ts +166 -0
  614. package/lib/types/host/ollama/client.d.ts.map +1 -0
  615. package/lib/types/host/ollama/mapper.d.ts +49 -0
  616. package/lib/types/host/ollama/mapper.d.ts.map +1 -0
  617. package/lib/types/host/ollama/routes.d.ts +22 -0
  618. package/lib/types/host/ollama/routes.d.ts.map +1 -0
  619. package/lib/types/host/ollama/token-store.d.ts +78 -0
  620. package/lib/types/host/ollama/token-store.d.ts.map +1 -0
  621. package/lib/types/host/ollama/types.d.ts +247 -0
  622. package/lib/types/host/ollama/types.d.ts.map +1 -0
  623. package/lib/types/host/opencode-go/account-pool.d.ts +50 -0
  624. package/lib/types/host/opencode-go/account-pool.d.ts.map +1 -0
  625. package/lib/types/host/opencode-go/adapter.d.ts +38 -0
  626. package/lib/types/host/opencode-go/adapter.d.ts.map +1 -0
  627. package/lib/types/host/opencode-go/client.d.ts +13 -0
  628. package/lib/types/host/opencode-go/client.d.ts.map +1 -0
  629. package/lib/types/host/opencode-go/mapper-gemini.d.ts +13 -0
  630. package/lib/types/host/opencode-go/mapper-gemini.d.ts.map +1 -0
  631. package/lib/types/host/opencode-go/mapper-messages.d.ts +8 -0
  632. package/lib/types/host/opencode-go/mapper-messages.d.ts.map +1 -0
  633. package/lib/types/host/opencode-go/mapper-responses.d.ts +9 -0
  634. package/lib/types/host/opencode-go/mapper-responses.d.ts.map +1 -0
  635. package/lib/types/host/opencode-go/mapper.d.ts +38 -0
  636. package/lib/types/host/opencode-go/mapper.d.ts.map +1 -0
  637. package/lib/types/host/opencode-go/model-catalog.d.ts +57 -0
  638. package/lib/types/host/opencode-go/model-catalog.d.ts.map +1 -0
  639. package/lib/types/host/opencode-go/native-shared.d.ts +31 -0
  640. package/lib/types/host/opencode-go/native-shared.d.ts.map +1 -0
  641. package/lib/types/host/opencode-go/protocol.d.ts +13 -0
  642. package/lib/types/host/opencode-go/protocol.d.ts.map +1 -0
  643. package/lib/types/host/opencode-go/routes.d.ts +13 -0
  644. package/lib/types/host/opencode-go/routes.d.ts.map +1 -0
  645. package/lib/types/host/opencode-go/token-store.d.ts +29 -0
  646. package/lib/types/host/opencode-go/token-store.d.ts.map +1 -0
  647. package/lib/types/host/opencode-go/types.d.ts +20 -0
  648. package/lib/types/host/opencode-go/types.d.ts.map +1 -0
  649. package/lib/types/host/opendesign/account-pool.d.ts +54 -0
  650. package/lib/types/host/opendesign/account-pool.d.ts.map +1 -0
  651. package/lib/types/host/opendesign/adapter.d.ts +88 -0
  652. package/lib/types/host/opendesign/adapter.d.ts.map +1 -0
  653. package/lib/types/host/opendesign/catalog.d.ts +58 -0
  654. package/lib/types/host/opendesign/catalog.d.ts.map +1 -0
  655. package/lib/types/host/opendesign/client.d.ts +304 -0
  656. package/lib/types/host/opendesign/client.d.ts.map +1 -0
  657. package/lib/types/host/opendesign/line.d.ts +60 -0
  658. package/lib/types/host/opendesign/line.d.ts.map +1 -0
  659. package/lib/types/host/opendesign/mapper.d.ts +218 -0
  660. package/lib/types/host/opendesign/mapper.d.ts.map +1 -0
  661. package/lib/types/host/opendesign/oauth.d.ts +105 -0
  662. package/lib/types/host/opendesign/oauth.d.ts.map +1 -0
  663. package/lib/types/host/opendesign/routes.d.ts +75 -0
  664. package/lib/types/host/opendesign/routes.d.ts.map +1 -0
  665. package/lib/types/host/opendesign/token-store.d.ts +241 -0
  666. package/lib/types/host/opendesign/token-store.d.ts.map +1 -0
  667. package/lib/types/host/opendesign/types.d.ts +235 -0
  668. package/lib/types/host/opendesign/types.d.ts.map +1 -0
  669. package/lib/types/host/platform-token-store.d.ts +3 -0
  670. package/lib/types/host/platform-token-store.d.ts.map +1 -0
  671. package/lib/types/host/preferences.d.ts +26 -0
  672. package/lib/types/host/preferences.d.ts.map +1 -0
  673. package/lib/types/host/proxy-manager.d.ts +261 -0
  674. package/lib/types/host/proxy-manager.d.ts.map +1 -0
  675. package/lib/types/host/qianwen-token-plan/adapter.d.ts +37 -0
  676. package/lib/types/host/qianwen-token-plan/adapter.d.ts.map +1 -0
  677. package/lib/types/host/qianwen-token-plan/cache-stats.d.ts +17 -0
  678. package/lib/types/host/qianwen-token-plan/cache-stats.d.ts.map +1 -0
  679. package/lib/types/host/qianwen-token-plan/client.d.ts +5 -0
  680. package/lib/types/host/qianwen-token-plan/client.d.ts.map +1 -0
  681. package/lib/types/host/qianwen-token-plan/mapper.d.ts +71 -0
  682. package/lib/types/host/qianwen-token-plan/mapper.d.ts.map +1 -0
  683. package/lib/types/host/qianwen-token-plan/model-catalog.d.ts +28 -0
  684. package/lib/types/host/qianwen-token-plan/model-catalog.d.ts.map +1 -0
  685. package/lib/types/host/qianwen-token-plan/routes.d.ts +12 -0
  686. package/lib/types/host/qianwen-token-plan/routes.d.ts.map +1 -0
  687. package/lib/types/host/qianwen-token-plan/token-store.d.ts +56 -0
  688. package/lib/types/host/qianwen-token-plan/token-store.d.ts.map +1 -0
  689. package/lib/types/host/qianwen-token-plan/types.d.ts +13 -0
  690. package/lib/types/host/qianwen-token-plan/types.d.ts.map +1 -0
  691. package/lib/types/host/qoder/account-pool.d.ts +141 -0
  692. package/lib/types/host/qoder/account-pool.d.ts.map +1 -0
  693. package/lib/types/host/qoder/adapter.d.ts +167 -0
  694. package/lib/types/host/qoder/adapter.d.ts.map +1 -0
  695. package/lib/types/host/qoder/adopt.d.ts +146 -0
  696. package/lib/types/host/qoder/adopt.d.ts.map +1 -0
  697. package/lib/types/host/qoder/client.d.ts +323 -0
  698. package/lib/types/host/qoder/client.d.ts.map +1 -0
  699. package/lib/types/host/qoder/cosy.d.ts +173 -0
  700. package/lib/types/host/qoder/cosy.d.ts.map +1 -0
  701. package/lib/types/host/qoder/mapper.d.ts +332 -0
  702. package/lib/types/host/qoder/mapper.d.ts.map +1 -0
  703. package/lib/types/host/qoder/model-catalog.d.ts +231 -0
  704. package/lib/types/host/qoder/model-catalog.d.ts.map +1 -0
  705. package/lib/types/host/qoder/oauth.d.ts +151 -0
  706. package/lib/types/host/qoder/oauth.d.ts.map +1 -0
  707. package/lib/types/host/qoder/routes.d.ts +119 -0
  708. package/lib/types/host/qoder/routes.d.ts.map +1 -0
  709. package/lib/types/host/qoder/token-store.d.ts +280 -0
  710. package/lib/types/host/qoder/token-store.d.ts.map +1 -0
  711. package/lib/types/host/qoder/types.d.ts +262 -0
  712. package/lib/types/host/qoder/types.d.ts.map +1 -0
  713. package/lib/types/host/relayone/account-pool.d.ts +129 -0
  714. package/lib/types/host/relayone/account-pool.d.ts.map +1 -0
  715. package/lib/types/host/relayone/adapter.d.ts +87 -0
  716. package/lib/types/host/relayone/adapter.d.ts.map +1 -0
  717. package/lib/types/host/relayone/catalog-manager.d.ts +45 -0
  718. package/lib/types/host/relayone/catalog-manager.d.ts.map +1 -0
  719. package/lib/types/host/relayone/client.d.ts +5 -0
  720. package/lib/types/host/relayone/client.d.ts.map +1 -0
  721. package/lib/types/host/relayone/mapper-anthropic.d.ts +49 -0
  722. package/lib/types/host/relayone/mapper-anthropic.d.ts.map +1 -0
  723. package/lib/types/host/relayone/mapper-openai.d.ts +36 -0
  724. package/lib/types/host/relayone/mapper-openai.d.ts.map +1 -0
  725. package/lib/types/host/relayone/mapper-shared.d.ts +25 -0
  726. package/lib/types/host/relayone/mapper-shared.d.ts.map +1 -0
  727. package/lib/types/host/relayone/model-catalog.d.ts +70 -0
  728. package/lib/types/host/relayone/model-catalog.d.ts.map +1 -0
  729. package/lib/types/host/relayone/quota.d.ts +29 -0
  730. package/lib/types/host/relayone/quota.d.ts.map +1 -0
  731. package/lib/types/host/relayone/routes.d.ts +33 -0
  732. package/lib/types/host/relayone/routes.d.ts.map +1 -0
  733. package/lib/types/host/relayone/token-store.d.ts +49 -0
  734. package/lib/types/host/relayone/token-store.d.ts.map +1 -0
  735. package/lib/types/host/relayone/types.d.ts +22 -0
  736. package/lib/types/host/relayone/types.d.ts.map +1 -0
  737. package/lib/types/host/responses-client.d.ts +125 -0
  738. package/lib/types/host/responses-client.d.ts.map +1 -0
  739. package/lib/types/host/responses-mapper.d.ts +133 -0
  740. package/lib/types/host/responses-mapper.d.ts.map +1 -0
  741. package/lib/types/host/routes.d.ts +30 -0
  742. package/lib/types/host/routes.d.ts.map +1 -0
  743. package/lib/types/host/search-provider-switcher.d.ts +45 -0
  744. package/lib/types/host/search-provider-switcher.d.ts.map +1 -0
  745. package/lib/types/host/session-title-guard/index.d.ts +80 -0
  746. package/lib/types/host/session-title-guard/index.d.ts.map +1 -0
  747. package/lib/types/host/step-code/account-pool.d.ts +187 -0
  748. package/lib/types/host/step-code/account-pool.d.ts.map +1 -0
  749. package/lib/types/host/step-code/adapter.d.ts +156 -0
  750. package/lib/types/host/step-code/adapter.d.ts.map +1 -0
  751. package/lib/types/host/step-code/adopt.d.ts +201 -0
  752. package/lib/types/host/step-code/adopt.d.ts.map +1 -0
  753. package/lib/types/host/step-code/cache-stats.d.ts +181 -0
  754. package/lib/types/host/step-code/cache-stats.d.ts.map +1 -0
  755. package/lib/types/host/step-code/client.d.ts +339 -0
  756. package/lib/types/host/step-code/client.d.ts.map +1 -0
  757. package/lib/types/host/step-code/mapper.d.ts +305 -0
  758. package/lib/types/host/step-code/mapper.d.ts.map +1 -0
  759. package/lib/types/host/step-code/model-catalog.d.ts +247 -0
  760. package/lib/types/host/step-code/model-catalog.d.ts.map +1 -0
  761. package/lib/types/host/step-code/oauth.d.ts +265 -0
  762. package/lib/types/host/step-code/oauth.d.ts.map +1 -0
  763. package/lib/types/host/step-code/routes.d.ts +129 -0
  764. package/lib/types/host/step-code/routes.d.ts.map +1 -0
  765. package/lib/types/host/step-code/token-store.d.ts +325 -0
  766. package/lib/types/host/step-code/token-store.d.ts.map +1 -0
  767. package/lib/types/host/step-code/types.d.ts +492 -0
  768. package/lib/types/host/step-code/types.d.ts.map +1 -0
  769. package/lib/types/host/token-store-linux.d.ts +20 -0
  770. package/lib/types/host/token-store-linux.d.ts.map +1 -0
  771. package/lib/types/host/token-store-macos.d.ts +39 -0
  772. package/lib/types/host/token-store-macos.d.ts.map +1 -0
  773. package/lib/types/host/token-store-windows.d.ts +26 -0
  774. package/lib/types/host/token-store-windows.d.ts.map +1 -0
  775. package/lib/types/host/token-store.d.ts +81 -0
  776. package/lib/types/host/token-store.d.ts.map +1 -0
  777. package/lib/types/host/usage-service.d.ts +109 -0
  778. package/lib/types/host/usage-service.d.ts.map +1 -0
  779. package/lib/types/host/web-provider-reconciler.d.ts +34 -0
  780. package/lib/types/host/web-provider-reconciler.d.ts.map +1 -0
  781. package/lib/types/host/wire-auth.d.ts +63 -0
  782. package/lib/types/host/wire-auth.d.ts.map +1 -0
  783. package/lib/types/host/workbuddy/account-pool.d.ts +389 -0
  784. package/lib/types/host/workbuddy/account-pool.d.ts.map +1 -0
  785. package/lib/types/host/workbuddy/adapter.d.ts +248 -0
  786. package/lib/types/host/workbuddy/adapter.d.ts.map +1 -0
  787. package/lib/types/host/workbuddy/atrest.d.ts +98 -0
  788. package/lib/types/host/workbuddy/atrest.d.ts.map +1 -0
  789. package/lib/types/host/workbuddy/checkin.d.ts +150 -0
  790. package/lib/types/host/workbuddy/checkin.d.ts.map +1 -0
  791. package/lib/types/host/workbuddy/client.d.ts +214 -0
  792. package/lib/types/host/workbuddy/client.d.ts.map +1 -0
  793. package/lib/types/host/workbuddy/dsml.d.ts +55 -0
  794. package/lib/types/host/workbuddy/dsml.d.ts.map +1 -0
  795. package/lib/types/host/workbuddy/guardrails.d.ts +111 -0
  796. package/lib/types/host/workbuddy/guardrails.d.ts.map +1 -0
  797. package/lib/types/host/workbuddy/identity.d.ts +71 -0
  798. package/lib/types/host/workbuddy/identity.d.ts.map +1 -0
  799. package/lib/types/host/workbuddy/mapper.d.ts +238 -0
  800. package/lib/types/host/workbuddy/mapper.d.ts.map +1 -0
  801. package/lib/types/host/workbuddy/model-catalog.d.ts +239 -0
  802. package/lib/types/host/workbuddy/model-catalog.d.ts.map +1 -0
  803. package/lib/types/host/workbuddy/oauth.d.ts +47 -0
  804. package/lib/types/host/workbuddy/oauth.d.ts.map +1 -0
  805. package/lib/types/host/workbuddy/outbound-identity.d.ts +139 -0
  806. package/lib/types/host/workbuddy/outbound-identity.d.ts.map +1 -0
  807. package/lib/types/host/workbuddy/routes.d.ts +56 -0
  808. package/lib/types/host/workbuddy/routes.d.ts.map +1 -0
  809. package/lib/types/host/workbuddy/token-store.d.ts +370 -0
  810. package/lib/types/host/workbuddy/token-store.d.ts.map +1 -0
  811. package/lib/types/host/workbuddy/types.d.ts +185 -0
  812. package/lib/types/host/workbuddy/types.d.ts.map +1 -0
  813. package/lib/types/index.d.ts +248 -0
  814. package/lib/types/index.d.ts.map +1 -0
  815. package/lib/types/shared/account-pool-contracts.d.ts +99 -0
  816. package/lib/types/shared/account-pool-contracts.d.ts.map +1 -0
  817. package/lib/types/shared/claude-api-contracts.d.ts +98 -0
  818. package/lib/types/shared/claude-api-contracts.d.ts.map +1 -0
  819. package/lib/types/shared/claude-contracts.d.ts +370 -0
  820. package/lib/types/shared/claude-contracts.d.ts.map +1 -0
  821. package/lib/types/shared/cline-pass-contracts.d.ts +234 -0
  822. package/lib/types/shared/cline-pass-contracts.d.ts.map +1 -0
  823. package/lib/types/shared/command-code-contracts.d.ts +163 -0
  824. package/lib/types/shared/command-code-contracts.d.ts.map +1 -0
  825. package/lib/types/shared/contracts.d.ts +343 -0
  826. package/lib/types/shared/contracts.d.ts.map +1 -0
  827. package/lib/types/shared/glm-coding-plan-contracts.d.ts +315 -0
  828. package/lib/types/shared/glm-coding-plan-contracts.d.ts.map +1 -0
  829. package/lib/types/shared/hub-contracts.d.ts +37 -0
  830. package/lib/types/shared/hub-contracts.d.ts.map +1 -0
  831. package/lib/types/shared/i18n-contracts.d.ts +35 -0
  832. package/lib/types/shared/i18n-contracts.d.ts.map +1 -0
  833. package/lib/types/shared/kimi-code-contracts.d.ts +435 -0
  834. package/lib/types/shared/kimi-code-contracts.d.ts.map +1 -0
  835. package/lib/types/shared/minimax-code-contracts.d.ts +263 -0
  836. package/lib/types/shared/minimax-code-contracts.d.ts.map +1 -0
  837. package/lib/types/shared/model-catalog.d.ts +302 -0
  838. package/lib/types/shared/model-catalog.d.ts.map +1 -0
  839. package/lib/types/shared/ollama-contracts.d.ts +73 -0
  840. package/lib/types/shared/ollama-contracts.d.ts.map +1 -0
  841. package/lib/types/shared/opencode-go-contracts.d.ts +80 -0
  842. package/lib/types/shared/opencode-go-contracts.d.ts.map +1 -0
  843. package/lib/types/shared/opendesign-contracts.d.ts +262 -0
  844. package/lib/types/shared/opendesign-contracts.d.ts.map +1 -0
  845. package/lib/types/shared/preferences.d.ts +60 -0
  846. package/lib/types/shared/preferences.d.ts.map +1 -0
  847. package/lib/types/shared/qianwen-token-plan-contracts.d.ts +94 -0
  848. package/lib/types/shared/qianwen-token-plan-contracts.d.ts.map +1 -0
  849. package/lib/types/shared/qoder-contracts.d.ts +342 -0
  850. package/lib/types/shared/qoder-contracts.d.ts.map +1 -0
  851. package/lib/types/shared/relayone-contracts.d.ts +95 -0
  852. package/lib/types/shared/relayone-contracts.d.ts.map +1 -0
  853. package/lib/types/shared/step-code-contracts.d.ts +443 -0
  854. package/lib/types/shared/step-code-contracts.d.ts.map +1 -0
  855. package/lib/types/shared/workbuddy-contracts.d.ts +531 -0
  856. package/lib/types/shared/workbuddy-contracts.d.ts.map +1 -0
  857. package/package.json +147 -4
@@ -0,0 +1,263 @@
1
+ /**
2
+ * MiniMax Code(编程订阅)线路的共享契约。
3
+ *
4
+ * host 与 client 两半只依赖本文件的类型与常量,互不 import。
5
+ * 本文件由调度者冻结:类型名与常量名不得更改,可追加。
6
+ */
7
+ import type { AccountRotationStrategy, PoolAccountSummaryDto } from './account-pool-contracts.ts';
8
+ export declare const MINIMAX_CODE_PROVIDER_ID = "minimax-code";
9
+ export declare const MINIMAX_CODE_PROVIDER_NAME = "MiniMax Code\uFF08\u7F16\u7A0B\u8BA2\u9605\uFF09";
10
+ /** 区域。cn 用 account.minimax.cn / agent.minimax.cn;global 用对应 .io 域名。 */
11
+ export type MinimaxCodeRegion = 'cn' | 'global';
12
+ /**
13
+ * 思考档位;M2.7 恒定开启且没有档位,M3 为开关二态,M3.1 强制开启并可选档位。
14
+ *
15
+ * **这里没有 `default` 档**,是重新基线后的结论,不是遗漏:
16
+ *
17
+ * - 上游的模型目录(models.dev 快照,`filecdn.minimax.chat/public/models-dev/api.json`)
18
+ * 里 MiniMax 的 `reasoning_options` 对 M3 只写 `[{"type":"toggle"}]`,对 M2.7 系列是
19
+ * `[]`,**任何模型都没有名为 default 的档位**;
20
+ * - harness 自己的档位词表(`off|minimal|low|medium|high|xhigh|max`)同样没有它。
21
+ *
22
+ * 插件曾经自造过一个本地拼写来表达「调用方没选」,但它从不上线——官方文档说
23
+ * 省略 effort 即 max——于是「没选 = 最贵档」这件事对用户完全不可见,而模型卡片
24
+ * 上还挂着一个永远选不中的假档位。现在「没选」由每个模型真实的默认档承担
25
+ * (M3 与 M3.1 都是 max),不再需要假档位。
26
+ */
27
+ export type MinimaxCodeReasoningEffort = 'low' | 'medium' | 'high' | 'xhigh' | 'max';
28
+ /**
29
+ * 全线共用的思考档位,按从小到大的顺序排列。
30
+ *
31
+ * 设置卡片只渲染这一份列表:档位是线路级的词汇表(`isMinimaxCodeReasoningEffort`
32
+ * 就是按它校验的),而不是单个模型的能力表。某个模型实际接受哪些档位由
33
+ * `MinimaxCodeModelOption.reasoningEfforts` 单独给出——把两者合成一份会让卡片
34
+ * 在给一个只认 high 的模型显示 max 时无从判断是模型不支持还是文案没写。
35
+ */
36
+ export declare const MINIMAX_CODE_REASONING_EFFORTS: readonly MinimaxCodeReasoningEffort[];
37
+ /**
38
+ * 路由前缀(host 暴露、client 消费)。
39
+ *
40
+ * 与其余各订阅线路一致:每条线路把自己的设置面挂在 `/<line>/api` 下
41
+ * (claude / command-code / kimi-code 都是如此),
42
+ * 而不是挂到 Codex 那条线路的 `/api/dsh-multi-provider` 前缀下面。
43
+ * 唯一的 `/api/dsh-multi-provider` 前缀属于 Codex 自己的路由表。
44
+ */
45
+ export declare const MINIMAX_CODE_ROUTE_PREFIX = "/minimax-code/api";
46
+ export interface MinimaxCodeAccount {
47
+ id: string;
48
+ label: string;
49
+ email?: string;
50
+ /** 凭据代数,每次刷新自增;用于诊断两侧刷新争用。 */
51
+ generation: number;
52
+ expiresAtMs: number;
53
+ }
54
+ export interface MinimaxCodeCredentialStorage {
55
+ /** minimax-native = 直接复用 MiniMax Code 的 auth.json;其余为插件自持。 */
56
+ kind: 'minimax-native' | 'dpapi' | 'file';
57
+ path?: string;
58
+ }
59
+ export interface MinimaxCodeWebLogin {
60
+ loginId: string;
61
+ userCode: string;
62
+ verificationUri: string;
63
+ expiresInSec: number;
64
+ }
65
+ /**
66
+ * 一个配额窗口。
67
+ *
68
+ * Token Plan 同时给两个窗口:5 小时滚动窗口与每周窗口。两者都要单独呈现,
69
+ * 因为周窗口还带一个显示倍率(服务端返回 percentage 与 boost 两个值,渲染值
70
+ * 是两者相乘),而把两个窗口合成一个数字会让用户无法判断是哪一边快用完了。
71
+ */
72
+ export interface MinimaxCodeQuotaWindow {
73
+ /** 稳定标识,由客户端本地化成窗口名;不要在这里放展示文案。 */
74
+ key: 'interval' | 'weekly';
75
+ /** 剩余百分比(周窗口已乘上 boost)。服务端未给出时为 null。 */
76
+ remainingPercent: number | null;
77
+ /** 已用百分比;由剩余百分比取反得到。 */
78
+ usedPercent?: number;
79
+ /** 已用/总量;仅当服务端计数与其百分比自洽时才有值(见 host 侧消歧说明)。 */
80
+ used?: number;
81
+ total?: number;
82
+ /** 该窗口重置的绝对时刻(Unix 毫秒)。 */
83
+ resetsAtMs?: number;
84
+ /** 服务端把该窗口标为不限量。 */
85
+ unlimited?: boolean;
86
+ }
87
+ export interface MinimaxCodeQuota {
88
+ label: string;
89
+ usedPercent?: number;
90
+ resetsAtMs?: number;
91
+ /** 每个窗口的明细;服务端只给了一个数字时缺省。 */
92
+ windows?: MinimaxCodeQuotaWindow[];
93
+ /** 本快照读取时刻(Unix 毫秒),便于卡片判断数据新旧。 */
94
+ fetchedAtMs?: number;
95
+ }
96
+ /** 一条模型行的思考形态;取值与 host 目录里的 MinimaxCodeThinkingMode 一致。 */
97
+ export type MinimaxCodeThinkingModeDto = 'always-on' | 'toggle' | 'forced-effort';
98
+ /**
99
+ * 设置卡片渲染的一行模型。
100
+ *
101
+ * 硬编码目录(host 的 `MINIMAX_CODE_MODELS`)带的是「模型是什么」,这里带的是
102
+ * 「这个安装当前怎么用它」:启用与否、生效的上下文窗口、请求缺省输出上限。
103
+ * 两者分开是因为前者随代码发布、后者随用户设置变化;把设置混进目录会让一份
104
+ * 用户数据看起来像一条已发布的目录项。
105
+ */
106
+ export interface MinimaxCodeModelOption {
107
+ id: string;
108
+ name: string;
109
+ /** 是否由 DSH 提供给会话模型选择器。 */
110
+ enabled: boolean;
111
+ /** 目录声明的默认上下文窗口。 */
112
+ defaultContextWindow: number;
113
+ /** 生效窗口:有覆盖值时用覆盖值,否则等于 `defaultContextWindow`。 */
114
+ contextWindow: number;
115
+ /** 调用方不指定时,本线路请求的输出上限。 */
116
+ defaultMaxTokens: number;
117
+ /** 本模型接受的思考档位;没有可选档位时缺省。 */
118
+ reasoningEfforts?: string[];
119
+ /** 会话未指定档位时使用的档位。 */
120
+ defaultReasoningEffort?: string;
121
+ /** 思考形态:恒定开启 / 开关二态 / 强制带档位。 */
122
+ thinking: MinimaxCodeThinkingModeDto;
123
+ description: string | null;
124
+ }
125
+ /**
126
+ * 每日签到偏好。
127
+ *
128
+ * 签到面同时覆盖 cn 与 global 两个区域(官方 CLI 的 public-gateway 对两个
129
+ * region 各有源站),因此这里不只限国区:账号自己的
130
+ * region 决定走哪个源站。没有可配置的窗口:宿主启动后的第一次 tick
131
+ * 就是当天签到。
132
+ */
133
+ export interface MinimaxCodeCheckinSettings {
134
+ /** 是否由进程内调度器自动签到。 */
135
+ enabled: boolean;
136
+ }
137
+ /**
138
+ * 设置卡片渲染的签到聚合。
139
+ *
140
+ * 有意不带账号身份:卡片只显示一行「今日已签 x/y」,不做逐账号明细。
141
+ */
142
+ export interface MinimaxCodeCheckinSummary {
143
+ enabled: boolean;
144
+ /** 参与签到的账号数(号池中当前可选的账号)。 */
145
+ totalAccounts: number;
146
+ /** 今日已确认签到的账号数(本已签过,或由某次运行签成)。 */
147
+ doneToday: number;
148
+ /** 今日签到面报告不可签的账号数(当日格非「可领」状态,按小时复查)。 */
149
+ skippedToday: number;
150
+ /** 今日重试次数耗尽仍未签成的账号数。 */
151
+ failedToday: number;
152
+ /** 调度器上次运行时刻(Unix 毫秒),自动或手动。 */
153
+ lastRunAt: number | null;
154
+ /** 已签到账号当前连续签到天数的最大值;今天还没人签时缺省。 */
155
+ streakDays?: number;
156
+ /** 最近一次运行实际领到的积分;本轮没人新签时缺省。 */
157
+ claimedPoints?: number;
158
+ }
159
+ export interface MinimaxCodeWebStatus {
160
+ /** 线路总开关;关闭时适配器不暴露任何模型。 */
161
+ enabled: boolean;
162
+ authenticated: boolean;
163
+ providerId: typeof MINIMAX_CODE_PROVIDER_ID;
164
+ region: MinimaxCodeRegion;
165
+ storage: MinimaxCodeCredentialStorage;
166
+ account?: MinimaxCodeAccount;
167
+ login?: MinimaxCodeWebLogin;
168
+ /** 硬编码目录渲染成的模型行(远端 `/v1/models` 不可用)。 */
169
+ models: MinimaxCodeModelOption[];
170
+ /** 每条被覆盖的模型当前保存的上下文窗口;未被覆盖的模型不出现。 */
171
+ contextWindowOverrides: Record<string, number>;
172
+ /** 未指定时的全局思考档位;null 表示各模型用自己的默认档位。 */
173
+ defaultReasoningEffort: MinimaxCodeReasoningEffort | null;
174
+ /** 无可用用量快照时为 undefined,UI 应优雅降级。 */
175
+ quota?: MinimaxCodeQuota;
176
+ /**
177
+ * 用量快照缺失、且原因值得告诉用户时给出。
178
+ *
179
+ * - `credential-not-accepted`:端点应答了,但**拒绝本线路持有的凭据类型**——
180
+ * `/v1/token_plan/remains` 只接受平台 API 密钥,MiniMax Code 的
181
+ * `mcode-public` 登录态在四种认证写法下都被拒(`base_resp.status_code: 1004`)。
182
+ * - `unreachable`:没有任何候选主机给出可用应答。
183
+ * - `token-expired`:所有候选主机都以 401/403 拒绝了 bearer,且随后那一次
184
+ * 续期也失败了。注意这**不等于**未登录:access token 一小时到期是常态,
185
+ * 账号仍然是登录态,UI 不应据此提示重新登录。
186
+ * - `stale`:本次读取失败,但卡片仍在渲染上一次成功解析出的数值——数值是真的,
187
+ * 只是不再新鲜。
188
+ */
189
+ quotaUnavailable?: 'credential-not-accepted' | 'unreachable' | 'token-expired' | 'stale';
190
+ /**
191
+ * 本次应答背后是否正在刷新用量。
192
+ *
193
+ * 卡片先用已有快照作答、不等待上游请求;该值为 true 时客户端应当稍后
194
+ * 再问一次,让刷新后的快照尽快上屏。
195
+ */
196
+ quotaRefreshing?: boolean;
197
+ /** 本插件是否正在服务该 Provider 路由;被别的适配器占用时为 false。 */
198
+ serving: boolean;
199
+ /** 路由被别的适配器占用时的诊断文案。 */
200
+ conflict: string | null;
201
+ /**
202
+ * 凭据是否由本插件自己持有(即本插件设备码登录写下的那一份)。
203
+ *
204
+ * false 有两种情况:尚未登录,或当前登录态属于 MiniMax Code 桌面端自己
205
+ * (`~/.minimax/auth`)。后者本插件**会**在需要时续期并原子写回(只读优先),
206
+ * 但**不会删除**它——删掉等于把用户从正在运行的官方客户端里踢下线。因此
207
+ * 「登出」对它无效,卡片必须据此禁用按钮并说明原因,而不是给出一个按下去
208
+ * 没有效果的按钮。
209
+ */
210
+ ownedByPlugin: boolean;
211
+ /**
212
+ * 号池里的账号,供设置卡片的「账号管理」渲染。
213
+ *
214
+ * 与其余各线路同构(复用同一个共享卡片与同一份 DTO):每条元素只带非机密的
215
+ * 展示信息,令牌永远不过这条边界。桌面端自有账号在其中会被标为
216
+ * `removable: false`——它归 MiniMax Code 所有,本插件只读与续期。
217
+ */
218
+ accounts?: PoolAccountSummaryDto[];
219
+ /** 下一个请求会使用的账号。 */
220
+ activeAccountId?: string;
221
+ /** 号池调度策略;无号池时缺省为顺序耗尽。 */
222
+ rotationStrategy?: AccountRotationStrategy;
223
+ /** 本进程是否装载了号池。false 时卡片按单凭据模式渲染。 */
224
+ poolInstalled?: boolean;
225
+ /** 每日签到聚合;未装载签到调度器时为 null。 */
226
+ checkin?: MinimaxCodeCheckinSummary | null;
227
+ }
228
+ /** 一张可用的重置卡。 */
229
+ export interface MinimaxCodeResetCardDto {
230
+ cardId: string;
231
+ /** 卡的来源,消费时原样回传。 */
232
+ sourceType: string;
233
+ /** 到期时刻(Unix 毫秒)。 */
234
+ expiresAtMs: number;
235
+ createdAtMs: number;
236
+ /** 幂等键:消费时原样回传,服务端据此去重。 */
237
+ outBizNo: string;
238
+ }
239
+ /** 近 30 天重置卡流水的一条记录。 */
240
+ export interface MinimaxCodeResetCardFlowDto {
241
+ cardId: string;
242
+ eventType: 'GRANT' | 'USE';
243
+ createdAtMs: number;
244
+ }
245
+ /** 重置卡面板:可用卡 + 流水。 */
246
+ export interface MinimaxCodeResetCardsDto {
247
+ cards: MinimaxCodeResetCardDto[];
248
+ flows: MinimaxCodeResetCardFlowDto[];
249
+ fetchedAtMs: number;
250
+ }
251
+ /**
252
+ * 消费一张卡的结果。
253
+ *
254
+ * 服务端用 out_biz_no 去重,所以客户端必须能区分「成功了」与「不确定」:
255
+ * REPLAYED / LOCK_BUSY / RETRYABLE_FAIL 都要求用户用同一张卡重试来确认结果,
256
+ * 而不是换一张卡——换卡会真的多消费一张。
257
+ */
258
+ export type MinimaxCodeResetOutcome = 'SUCCESS' | 'REPLAYED' | 'EXPIRED' | 'NOT_FOUND' | 'RETRYABLE_FAIL' | 'LOCK_BUSY';
259
+ export interface MinimaxCodeResetResultDto {
260
+ outcome: MinimaxCodeResetOutcome;
261
+ cards: MinimaxCodeResetCardsDto;
262
+ }
263
+ //# sourceMappingURL=minimax-code-contracts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"minimax-code-contracts.d.ts","sourceRoot":"","sources":["../../../src/shared/minimax-code-contracts.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EACV,uBAAuB,EACvB,qBAAqB,EACtB,MAAM,6BAA6B,CAAA;AAEpC,eAAO,MAAM,wBAAwB,iBAAiB,CAAA;AACtD,eAAO,MAAM,0BAA0B,qDAAuB,CAAA;AAE9D,uEAAuE;AACvE,MAAM,MAAM,iBAAiB,GAAG,IAAI,GAAG,QAAQ,CAAA;AAE/C;;;;;;;;;;;;;;GAcG;AACH,MAAM,MAAM,0BAA0B,GAAG,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,OAA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W,EAAE,MAAM,CAAA;IACnB,2BAA2B;IAC3B,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,wBAAwB;AACxB,MAAM,WAAW,2BAA2B;IAC1C,MAAM,EAAE,MAAM,CAAA;IACd,SAAS,EAAE,OAAO,GAAG,KAAK,CAAA;IAC1B,WAAW,EAAE,MAAM,CAAA;CACpB;AAED,sBAAsB;AACtB,MAAM,WAAW,wBAAwB;IACvC,KAAK,EAAE,uBAAuB,EAAE,CAAA;IAChC,KAAK,EAAE,2BAA2B,EAAE,CAAA;IACpC,WAAW,EAAE,MAAM,CAAA;CACpB;AAED;;;;;;GAMG;AACH,MAAM,MAAM,uBAAuB,GAC/B,SAAS,GACT,UAAU,GACV,SAAS,GACT,WAAW,GACX,gBAAgB,GAChB,WAAW,CAAA;AAEf,MAAM,WAAW,yBAAyB;IACxC,OAAO,EAAE,uBAAuB,CAAA;IAChC,KAAK,EAAE,wBAAwB,CAAA;CAChC"}
@@ -0,0 +1,302 @@
1
+ import type { CodexOutputVerbosity } from './contracts.ts';
2
+ export type CodexModelModality = 'text' | 'image';
3
+ export declare const GPT_56_MAX_CONTEXT_WINDOW = 1000000;
4
+ export declare const GPT_6_MAX_CONTEXT_WINDOW = 872000;
5
+ /** Default context for GPT-6 models other than the 500K GPT-6.1 Terra entry. */
6
+ export declare const GPT_6_DEFAULT_CONTEXT_WINDOW = 272000;
7
+ /** Output cap of the GPT-6 family; the vendor declares 128K for all three. */
8
+ export declare const GPT_6_MAX_TOKENS = 128000;
9
+ /** Output cap for the models predating the GPT-6 family. */
10
+ export declare const CODEX_DEFAULT_MAX_TOKENS = 32768;
11
+ /**
12
+ * What one model speaks on the wire.
13
+ *
14
+ * Kept apart from the catalog entry on purpose: this is a property of the
15
+ * PROTOCOL the model speaks, not of the account's entitlement to it, and the
16
+ * request builder needs it per attempt rather than per picker row.
17
+ */
18
+ export interface CodexWireCapabilities {
19
+ /** Whether the model speaks the Responses Lite protocol. */
20
+ useResponsesLite: boolean;
21
+ /** Catalog context window used to derive the native compaction threshold. */
22
+ contextWindow?: number | null;
23
+ /** Catalog-provided automatic compaction threshold, when present. */
24
+ autoCompactTokenLimit?: number | null;
25
+ /** Opaque model-configuration compatibility key for native checkpoints. */
26
+ compHash?: string | null;
27
+ }
28
+ export interface CodexModelCatalogEntry {
29
+ id: string;
30
+ name: string;
31
+ contextWindow: number;
32
+ inputModalities: readonly CodexModelModality[];
33
+ defaultReasoningEffort: string;
34
+ reasoningProfile: 'standard' | 'gpt-5.6' | 'gpt-6';
35
+ supportsReasoningSummary: boolean;
36
+ /**
37
+ * Whether the Responses `text.verbosity` control applies to this model.
38
+ *
39
+ * Official Codex gates the field on the catalog's own `support_verbosity`:
40
+ * a model that does not accept it is sent none, and the official client warns
41
+ * instead of guessing. An absent flag therefore means "not established" — this
42
+ * line will not invent the field for a model it has no evidence about.
43
+ */
44
+ supportsOutputVerbosity?: boolean;
45
+ /**
46
+ * Verbosity the official client sends when the user has chosen none.
47
+ *
48
+ * Read from the same catalog: every model the backend currently lists declares
49
+ * `default_verbosity: "low"`, so "follow the provider" means low — not the
50
+ * server's own (medium) fallback, which is what omitting the field gets.
51
+ */
52
+ defaultOutputVerbosity?: CodexOutputVerbosity;
53
+ /** Output cap when the caller omits one; falls back to {@link CODEX_DEFAULT_MAX_TOKENS}. */
54
+ maxTokens?: number;
55
+ fallbackModelId?: string;
56
+ /**
57
+ * Whether the model speaks the Responses Lite protocol.
58
+ *
59
+ * Lite is a different request SHAPE, not a different endpoint: the tool
60
+ * declarations travel inside `input` as an `additional_tools` item instead of
61
+ * a top-level `tools` array, the request carries a Lite header, and the
62
+ * reasoning block asks for the whole conversation as context.
63
+ *
64
+ * The official catalog states this per model, and the backend's live listing
65
+ * states it too, so a model this table has never heard of is NOT Lite: an
66
+ * absent flag means "not established", and inventing the Lite shape for a
67
+ * model that does not speak it is a request the backend cannot answer.
68
+ */
69
+ useResponsesLite?: boolean;
70
+ }
71
+ export declare const CODEX_MODEL_CATALOG: readonly [{
72
+ readonly id: "gpt-5.6-sol";
73
+ readonly name: "5.6 Sol";
74
+ readonly contextWindow: 272000;
75
+ readonly inputModalities: readonly ["text", "image"];
76
+ readonly defaultReasoningEffort: "low";
77
+ readonly reasoningProfile: "gpt-5.6";
78
+ readonly supportsReasoningSummary: true;
79
+ readonly fallbackModelId: "gpt-5.6-terra";
80
+ readonly supportsOutputVerbosity: true;
81
+ readonly defaultOutputVerbosity: "low";
82
+ readonly useResponsesLite: true;
83
+ }, {
84
+ readonly id: "gpt-6-astra";
85
+ readonly name: "6 Astra";
86
+ readonly contextWindow: 272000;
87
+ readonly inputModalities: readonly ["text", "image"];
88
+ readonly defaultReasoningEffort: "low";
89
+ readonly reasoningProfile: "gpt-6";
90
+ readonly supportsReasoningSummary: true;
91
+ readonly maxTokens: 128000;
92
+ readonly supportsOutputVerbosity: true;
93
+ readonly defaultOutputVerbosity: "low";
94
+ readonly useResponsesLite: true;
95
+ }, {
96
+ readonly id: "gpt-6.1-sol";
97
+ readonly name: "6.1 Sol";
98
+ readonly contextWindow: 272000;
99
+ readonly inputModalities: readonly ["text", "image"];
100
+ readonly defaultReasoningEffort: "low";
101
+ readonly reasoningProfile: "gpt-6";
102
+ readonly supportsReasoningSummary: true;
103
+ readonly maxTokens: 128000;
104
+ readonly supportsOutputVerbosity: true;
105
+ readonly defaultOutputVerbosity: "low";
106
+ readonly useResponsesLite: true;
107
+ }, {
108
+ readonly id: "gpt-6.1-terra";
109
+ readonly name: "6.1 Terra";
110
+ readonly contextWindow: 500000;
111
+ readonly inputModalities: readonly ["text", "image"];
112
+ readonly defaultReasoningEffort: "low";
113
+ readonly reasoningProfile: "gpt-6";
114
+ readonly supportsReasoningSummary: true;
115
+ readonly maxTokens: 128000;
116
+ readonly supportsOutputVerbosity: true;
117
+ readonly defaultOutputVerbosity: "low";
118
+ readonly useResponsesLite: true;
119
+ }, {
120
+ readonly id: "gpt-6-sol";
121
+ readonly name: "6 Sol";
122
+ readonly contextWindow: 272000;
123
+ readonly inputModalities: readonly ["text", "image"];
124
+ readonly defaultReasoningEffort: "medium";
125
+ readonly reasoningProfile: "gpt-6";
126
+ readonly supportsReasoningSummary: true;
127
+ readonly maxTokens: 128000;
128
+ readonly supportsOutputVerbosity: true;
129
+ readonly defaultOutputVerbosity: "low";
130
+ readonly useResponsesLite: true;
131
+ }, {
132
+ readonly id: "gpt-6-luna";
133
+ readonly name: "6 Luna";
134
+ readonly contextWindow: 272000;
135
+ readonly inputModalities: readonly ["text", "image"];
136
+ readonly defaultReasoningEffort: "medium";
137
+ readonly reasoningProfile: "gpt-6";
138
+ readonly supportsReasoningSummary: true;
139
+ readonly maxTokens: 128000;
140
+ readonly supportsOutputVerbosity: true;
141
+ readonly defaultOutputVerbosity: "low";
142
+ readonly useResponsesLite: true;
143
+ }, {
144
+ readonly id: "gpt-5.6-terra";
145
+ readonly name: "5.6 Terra";
146
+ readonly contextWindow: 272000;
147
+ readonly inputModalities: readonly ["text", "image"];
148
+ readonly defaultReasoningEffort: "medium";
149
+ readonly reasoningProfile: "gpt-5.6";
150
+ readonly supportsReasoningSummary: true;
151
+ readonly fallbackModelId: "gpt-5.5";
152
+ readonly supportsOutputVerbosity: true;
153
+ readonly defaultOutputVerbosity: "low";
154
+ readonly useResponsesLite: true;
155
+ }, {
156
+ readonly id: "gpt-5.6-luna";
157
+ readonly name: "5.6 Luna";
158
+ readonly contextWindow: 272000;
159
+ readonly inputModalities: readonly ["text", "image"];
160
+ readonly defaultReasoningEffort: "medium";
161
+ readonly reasoningProfile: "gpt-5.6";
162
+ readonly supportsReasoningSummary: true;
163
+ readonly fallbackModelId: "gpt-5.5";
164
+ readonly supportsOutputVerbosity: true;
165
+ readonly defaultOutputVerbosity: "low";
166
+ readonly useResponsesLite: true;
167
+ }, {
168
+ readonly id: "gpt-5.5";
169
+ readonly name: "5.5";
170
+ readonly contextWindow: 272000;
171
+ readonly inputModalities: readonly ["text", "image"];
172
+ readonly defaultReasoningEffort: "medium";
173
+ readonly reasoningProfile: "standard";
174
+ readonly supportsReasoningSummary: true;
175
+ readonly supportsOutputVerbosity: true;
176
+ readonly defaultOutputVerbosity: "low";
177
+ }, {
178
+ readonly id: "gpt-5.4";
179
+ readonly name: "5.4";
180
+ readonly contextWindow: 272000;
181
+ readonly inputModalities: readonly ["text", "image"];
182
+ readonly defaultReasoningEffort: "none";
183
+ readonly reasoningProfile: "standard";
184
+ readonly supportsReasoningSummary: true;
185
+ readonly fallbackModelId: "gpt-5.4-mini";
186
+ }, {
187
+ readonly id: "gpt-5.4-mini";
188
+ readonly name: "5.4 Mini";
189
+ readonly contextWindow: 272000;
190
+ readonly inputModalities: readonly ["text", "image"];
191
+ readonly defaultReasoningEffort: "none";
192
+ readonly reasoningProfile: "standard";
193
+ readonly supportsReasoningSummary: true;
194
+ }, {
195
+ readonly id: "gpt-5.3-codex-spark";
196
+ readonly name: "5.3 Codex Spark";
197
+ readonly contextWindow: 258000;
198
+ readonly inputModalities: readonly ["text"];
199
+ readonly defaultReasoningEffort: "high";
200
+ readonly reasoningProfile: "standard";
201
+ readonly supportsReasoningSummary: false;
202
+ }, {
203
+ readonly id: "gpt-6.2-astra";
204
+ readonly name: "6.2 Astra";
205
+ readonly contextWindow: 272000;
206
+ readonly inputModalities: readonly ["text", "image"];
207
+ readonly defaultReasoningEffort: "low";
208
+ readonly reasoningProfile: "gpt-6";
209
+ readonly supportsReasoningSummary: true;
210
+ readonly maxTokens: 128000;
211
+ readonly supportsOutputVerbosity: true;
212
+ readonly defaultOutputVerbosity: "low";
213
+ readonly useResponsesLite: true;
214
+ }, {
215
+ readonly id: "gpt-6.2-sol";
216
+ readonly name: "6.2 Sol";
217
+ readonly contextWindow: 500000;
218
+ readonly inputModalities: readonly ["text", "image"];
219
+ readonly defaultReasoningEffort: "low";
220
+ readonly reasoningProfile: "gpt-6";
221
+ readonly supportsReasoningSummary: true;
222
+ readonly maxTokens: 128000;
223
+ readonly supportsOutputVerbosity: true;
224
+ readonly defaultOutputVerbosity: "low";
225
+ readonly useResponsesLite: true;
226
+ }];
227
+ export type CodexModelId = typeof CODEX_MODEL_CATALOG[number]['id'];
228
+ export declare const DEFAULT_VISIBLE_CODEX_MODEL_IDS: readonly ["gpt-6-astra", "gpt-6.1-sol", "gpt-6.1-terra", "gpt-6-sol", "gpt-6-luna", "gpt-5.6-sol", "gpt-5.6-terra", "gpt-5.6-luna", "gpt-6.2-astra", "gpt-6.2-sol"];
229
+ export declare const DEFAULT_CODEX_MODEL: {
230
+ readonly id: "gpt-5.6-sol";
231
+ readonly name: "5.6 Sol";
232
+ readonly contextWindow: 272000;
233
+ readonly inputModalities: readonly ["text", "image"];
234
+ readonly defaultReasoningEffort: "low";
235
+ readonly reasoningProfile: "gpt-5.6";
236
+ readonly supportsReasoningSummary: true;
237
+ readonly fallbackModelId: "gpt-5.6-terra";
238
+ readonly supportsOutputVerbosity: true;
239
+ readonly defaultOutputVerbosity: "low";
240
+ readonly useResponsesLite: true;
241
+ };
242
+ export declare const STANDARD_REASONING_EFFORTS: readonly ["none", "low", "medium", "high", "xhigh"];
243
+ export declare const GPT_56_REASONING_EFFORTS: readonly ["none", "low", "medium", "high", "xhigh", "max"];
244
+ export declare const GPT_6_REASONING_EFFORTS: readonly ["low", "medium", "high", "xhigh", "max"];
245
+ export type CodexReasoningEffort = typeof GPT_56_REASONING_EFFORTS[number];
246
+ export declare function reasoningEffortsForModel(model: string): readonly CodexReasoningEffort[];
247
+ export declare function isCodexReasoningEffort(value: unknown): value is CodexReasoningEffort;
248
+ export declare function modelSupportsReasoningEffort(model: string, effort: unknown): effort is CodexReasoningEffort;
249
+ export declare function isCodexModelId(model: unknown): model is CodexModelId;
250
+ /**
251
+ * Upper bound for one model's context window override. The Codex subscription
252
+ * caps the whole GPT-6 family at 872K and everything older at 1M, so a model's
253
+ * catalog default is where the number starts, not where it has to stay.
254
+ */
255
+ export declare function contextWindowLimitForModel(model: CodexModelId): number;
256
+ export declare function resolveCodexCatalogEntry(model: string): CodexModelCatalogEntry;
257
+ export declare function codexModelSupportsImageInput(model: string): boolean;
258
+ export declare function codexModelSupportsReasoningSummary(model: string): boolean;
259
+ /**
260
+ * Whether the shipped table says this model speaks the Responses Lite protocol.
261
+ *
262
+ * An id this table has never heard of is NOT Lite. The official catalog states
263
+ * the flag per model and the backend's live listing states it too, so a model
264
+ * with no statement has no established Lite shape - and sending the Lite body
265
+ * to a model that does not speak it is a request the backend cannot answer.
266
+ *
267
+ * @param model - the model id.
268
+ * @returns whether the model is a Lite model.
269
+ */
270
+ export declare function codexModelUsesResponsesLite(model: string): boolean;
271
+ /**
272
+ * Verbosity to send when the user has not chosen one.
273
+ *
274
+ * "Follow the provider" has to mean what the provider's own client sends. The
275
+ * official catalog declares `default_verbosity: "low"` for every model it
276
+ * lists, so the answer is low — not the server's implicit medium, which is what
277
+ * omitting the field gets.
278
+ *
279
+ * @returns the verbosity to send, or `undefined` to omit the field entirely.
280
+ */
281
+ export declare function codexDefaultOutputVerbosity(model: string): CodexOutputVerbosity | undefined;
282
+ /**
283
+ * Declared output ceiling for one model, or the pre-GPT-6 default when it
284
+ * declares none.
285
+ *
286
+ * This is NOT a request field. The subscription Responses endpoint rejects
287
+ * `max_output_tokens` outright (400 Unsupported parameter, issue #29 — and the
288
+ * official CLI's own request struct has no such field), so nothing is sent to
289
+ * the wire from here. The value reaches DSH only as the adapter's
290
+ * `defaultMaxTokens`, which compaction uses as a local completion reservation
291
+ * when it plans a fold; that number never leaves this process.
292
+ */
293
+ export declare function codexModelMaxTokens(model: string): number;
294
+ /**
295
+ * The effort the Responses wire accepts for one model. The GPT-6 family dropped
296
+ * `none`/`minimal`, so a request that still carries one — a session started on an
297
+ * older model, or the `none` default of a model this route no longer offers — is
298
+ * sent as `low` instead of being rejected.
299
+ */
300
+ export declare function codexWireReasoningEffort(model: string, effort: string): string;
301
+ export declare function resolveCodexFallbackModel(model: string): CodexModelCatalogEntry | undefined;
302
+ //# sourceMappingURL=model-catalog.d.ts.map
@@ -0,0 +1 @@
1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CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAEzE;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAElE;AAeD;;;;;;;;;GASG;AACH,wBAAgB,2BAA2B,CAAC,KAAK,EAAE,MAAM,GAAG,oBAAoB,GAAG,SAAS,CAI3F;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAEzD;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAG9E;AAED,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,sBAAsB,GAAG,SAAS,CAI3F"}
@@ -0,0 +1,73 @@
1
+ import type { AccountPoolStatusDto, PoolAccountSummaryDto } from './account-pool-contracts.ts';
2
+ export interface OllamaUsageDto {
3
+ inputTokens: number;
4
+ outputTokens: number;
5
+ requestCount: number;
6
+ /** Unix milliseconds the last completed turn was counted. */
7
+ lastCountedAt?: number;
8
+ }
9
+ /** One account as the Ollama card renders it. Never carries the key. */
10
+ export interface OllamaAccountSummaryDto extends PoolAccountSummaryDto {
11
+ /** Model id this account last served, when the adapter recorded one. */
12
+ lastModelId?: string;
13
+ usage?: OllamaUsageDto;
14
+ }
15
+ /** The whole pool slice the card needs. */
16
+ export interface OllamaPoolStatusDto {
17
+ accounts: OllamaAccountSummaryDto[];
18
+ activeAccountId?: string;
19
+ rotationStrategy: AccountPoolStatusDto['rotationStrategy'];
20
+ }
21
+ /** Everything the settings card renders for the Ollama tab. */
22
+ export interface OllamaWebStatus {
23
+ pool: OllamaPoolStatusDto;
24
+ /** Model ids synced from the service's own tag list. */
25
+ models: {
26
+ id: string;
27
+ name?: string;
28
+ }[];
29
+ /**
30
+ * Which of them the user has switched on: null is 'no filter', i.e. every
31
+ * model in the list — modelling 'all' this way rather than as an explicit
32
+ * all-ids list means a model the service adds later is not silently hidden
33
+ * by a selection made before it existed. An array is an explicit selection,
34
+ * and an empty one switches every model off.
35
+ */
36
+ enabledModelIds: string[] | null;
37
+ /** True when at least one account can currently serve a request. */
38
+ usable: boolean;
39
+ catalogSynced: boolean;
40
+ /**
41
+ * The thinking level the user picked in the settings card; null is 'do not
42
+ * specify', which leaves each model on its own default.
43
+ */
44
+ defaultReasoningEffort: string | null;
45
+ }
46
+ /**
47
+ * The thinking levels this line's card offers.
48
+ *
49
+ * Deliberately narrower than the union of what every model accepts. Ollama's
50
+ * thinking control comes in three shapes (see {@link thinkingModeForModel} in
51
+ * src/host/ollama/types.ts): gpt-oss takes low/medium/high, the boolean models
52
+ * (deepseek-r1, qwq, qwen3) take only on/off, and every other model takes no
53
+ * thinking control at all. These four strings are the vocabulary both shapes can
54
+ * be expressed with, so one dropdown covers the whole line.
55
+ *
56
+ * Whether a given model can actually honour a level is decided by the host, not
57
+ * by this list: {@link thinkForModel} in src/host/ollama/types.ts drops what a
58
+ * model cannot express, so picking 'high' is safe for a user whose catalog holds
59
+ * a mixture of families.
60
+ */
61
+ export declare const OLLAMA_REASONING_EFFORTS: readonly ["none", "low", "medium", "high"];
62
+ export type OllamaReasoningEffort = typeof OLLAMA_REASONING_EFFORTS[number];
63
+ /**
64
+ * Whether a submitted value names a level this line accepts.
65
+ *
66
+ * The route uses this to refuse an unknown level outright. Storing one anyway
67
+ * would be silently useless: {@link thinkForModel} drops a level a model cannot
68
+ * express, so the card would keep showing a choice that does nothing at all.
69
+ */
70
+ export declare function isOllamaReasoningEffort(value: unknown): value is OllamaReasoningEffort;
71
+ /** Actions the accounts endpoint accepts. */
72
+ export type OllamaAccountAction = 'add' | 'set-primary' | 'set-alias' | 'delete' | 'clear-cooldown' | 'strategy';
73
+ //# sourceMappingURL=ollama-contracts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ollama-contracts.d.ts","sourceRoot":"","sources":["../../../src/shared/ollama-contracts.ts"],"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