@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,185 @@
1
+ /**
2
+ * Static facts about the WorkBuddy / CodeBuddy subscription backend.
3
+ *
4
+ * WorkBuddy is Tencent's CodeBuddy IDE subscription. Its model backend is a
5
+ * plain OpenAI-compatible `/chat/completions` endpoint that the official IDE
6
+ * calls directly; this plugin speaks the same wire instead of going through a
7
+ * converter process.
8
+ *
9
+ * Everything asserted here was measured against a live subscription (see the
10
+ * comments on each constant); the surprising constraints are that the endpoint
11
+ * is **stream-only** and that the international region requires the first
12
+ * message to be a system prompt.
13
+ */
14
+ import type { WorkBuddyRegion } from '../../shared/workbuddy-contracts.ts';
15
+ export declare const PROVIDER_ID = "workbuddy-subscription";
16
+ export declare const PROVIDER_NAME = "WorkBuddy\uFF08CodeBuddy \u8BA2\u9605\uFF09";
17
+ /** Domestic backend. */
18
+ export declare const CN_BACKEND = "https://copilot.tencent.com";
19
+ /**
20
+ * Domains whose accounts live on a region-specific backend.
21
+ *
22
+ * A credential's `auth.domain` decides both the backend host and the region:
23
+ * `*.workbuddy.ai` / `*.codebuddy.ai` are international, anything else is the
24
+ * domestic `copilot.tencent.com` deployment.
25
+ */
26
+ export declare const INTL_DOMAIN_SUFFIXES: readonly [".workbuddy.ai", ".codebuddy.ai"];
27
+ /** Default auth domain when a credential does not record one. */
28
+ export declare const DEFAULT_DOMAIN = "www.codebuddy.cn";
29
+ /** Chat surface, appended to a region backend. */
30
+ export declare const CHAT_PATH = "/v2/chat/completions";
31
+ /**
32
+ * Anthropic Messages surface, appended to a region backend.
33
+ *
34
+ * Only the domestic deployment serves it, and only for the Claude models —
35
+ * see `workBuddyModelRoute` in the shared contracts, which is what decides
36
+ * whether a request may be built against this path at all. Source:
37
+ * `magpie-community/plugins@1e7122e1` `packages/workbuddy/index.mjs` L141
38
+ * (`apiMessages = <endpoint>/v1`) and L132-157.
39
+ */
40
+ export declare const MESSAGES_PATH = "/v1/messages";
41
+ /**
42
+ * Gateway configuration/catalog surface.
43
+ *
44
+ * This is where the real model list lives: the chat host answers 404 to
45
+ * `/v1/models`, but `/v3/config` returns every model with its context window,
46
+ * output cap, image support, and accepted reasoning ladder. The official CLI
47
+ * reads it at startup.
48
+ */
49
+ export declare const CONFIG_PATH = "/v3/config";
50
+ /** Token refresh surface; the official IDE posts the refresh token here. */
51
+ export declare const REFRESH_PATH = "/v2/plugin/auth/token/refresh";
52
+ /** Billing/allowance surface; answers the per-package credit picture. */
53
+ export declare const BILLING_PATH = "/billing/meter/get-user-resource";
54
+ /**
55
+ * Current-account surface.
56
+ *
57
+ * The browser-authorization token response carries only the `auth` block, so
58
+ * the signed-in account's uid / nickname / UIN come from here — the same
59
+ * endpoint the official client reads its account from. Measured live on both
60
+ * deployments: it answers with the full account record for a valid bearer.
61
+ */
62
+ export declare const ACCOUNT_PATH = "/v2/plugin/account";
63
+ /** Browser authorization state and credential-poll surfaces used by the CLI. */
64
+ export declare const LOGIN_STATE_PATH = "/v2/plugin/auth/state";
65
+ export declare const LOGIN_TOKEN_PATH = "/v2/plugin/auth/token";
66
+ export declare const LOGIN_PLATFORM = "cli";
67
+ export declare const LOGIN_PENDING_CODE = 11217;
68
+ export declare const LOGIN_POLL_INTERVAL_MS = 1500;
69
+ export declare const LOGIN_TIMEOUT_MS: number;
70
+ /**
71
+ * User-Agent every request carries.
72
+ *
73
+ * Measured: `CodeBuddyIDE` is accepted by the chat endpoint but rejected by
74
+ * `/v3/config` with 400 `code 12403` ("check ua, get coding copilot version
75
+ * error"), and the international chat endpoint answers 401 to it outright. The
76
+ * CLI identity is accepted by all three surfaces on both regions, so it is the
77
+ * single identity this route uses rather than switching per endpoint.
78
+ */
79
+ export declare const CLIENT_USER_AGENT = "CLI/2.63.2 CodeBuddy/2.63.2";
80
+ /** Client identity headers the gateway gates on. */
81
+ export declare const HEADER_USER_ID = "x-user-id";
82
+ export declare const HEADER_ENTERPRISE_ID = "x-enterprise-id";
83
+ export declare const HEADER_TENANT_ID = "x-tenant-id";
84
+ export declare const HEADER_DOMAIN = "x-domain";
85
+ export declare const HEADER_PRODUCT = "x-product";
86
+ export declare const HEADER_IDE_NAME = "x-ide-name";
87
+ export declare const HEADER_REQUESTED_WITH = "x-requested-with";
88
+ export declare const CLIENT_PRODUCT = "SaaS";
89
+ /**
90
+ * Conversation header group the international gateway gates on.
91
+ *
92
+ * Measured 2026-10 on `www.workbuddy.ai`: a request carrying the identity
93
+ * headers alone answers 400 `code 11128` whatever its message shape, while
94
+ * adding exactly these five answers 200 with a normal SSE body. The other
95
+ * headers the official client sends (trace context, `X-Agent-Intent`,
96
+ * `X-Agent-Purpose`, `x-codebuddy-request`, its own user agent) were added one
97
+ * at a time and each left the outcome unchanged, so this group is the minimal
98
+ * sufficient set rather than a copy of the whole client.
99
+ */
100
+ export declare const HEADER_CONVERSATION_ID = "x-conversation-id";
101
+ export declare const HEADER_CONVERSATION_REQUEST_ID = "x-conversation-request-id";
102
+ export declare const HEADER_CONVERSATION_MESSAGE_ID = "x-conversation-message-id";
103
+ export declare const HEADER_REQUEST_ID = "x-request-id";
104
+ export declare const HEADER_ACP_CONNECTION_ID = "acp-connection-id";
105
+ /** Refresh-token header the token endpoint reads. */
106
+ export declare const HEADER_REFRESH_TOKEN = "x-refresh-token";
107
+ /** Refresh origin marker; `workbuddy` for the .ai domains, `plugin` otherwise. */
108
+ export declare const HEADER_REFRESH_SOURCE = "x-auth-refresh-source";
109
+ /** Timeouts and cache lifetimes. */
110
+ export declare const DISCOVERY_TIMEOUT_MS = 20000;
111
+ export declare const CHAT_TIMEOUT_MS = 300000;
112
+ export declare const QUOTA_CACHE_TTL_MS: number;
113
+ /**
114
+ * Idle ceiling for one streaming response before it is declared stalled.
115
+ *
116
+ * Strictly inside the transport's own 300 s stream timeout; see
117
+ * `host/common/idle-watchdog.ts` for the measured basis.
118
+ */
119
+ export declare const STREAM_IDLE_TIMEOUT_MS = 120000;
120
+ export declare const STREAM_IDLE_TIMEOUT_CODE = "LLM_STREAM_IDLE_TIMEOUT";
121
+ export declare const DEFAULT_MAX_TOKENS = 32768;
122
+ export declare const DEFAULT_CONTEXT_WINDOW = 128000;
123
+ /**
124
+ * Output cap for the models the catalog does not pin individually.
125
+ *
126
+ * The subscription models are served by several upstream vendors whose own
127
+ * published caps differ; this is the conservative ceiling the request builder
128
+ * uses when nothing more specific is known.
129
+ */
130
+ export declare const FALLBACK_MAX_TOKENS = 32768;
131
+ /** Subscription backend error codes, all measured. */
132
+ export declare const ERROR_CODE: {
133
+ /** Request parameters rejected (bad image payload, unsupported field). */
134
+ readonly BAD_REQUEST: 11101;
135
+ /** Model not served in this region — a wrong-region request. */
136
+ readonly MODEL_UNAVAILABLE: 11102;
137
+ /**
138
+ * Gateway channel verification refused the request.
139
+ *
140
+ * The code is overloaded upstream, so the message — not the code — decides
141
+ * what it means. Measured 2026-09: the international chat endpoint answers it
142
+ * for a request that does not open with a system turn. Measured 2026-10: the
143
+ * same code, with `msg: "conversation id missing"`, is the answer to *every*
144
+ * request that omits the {@link HEADER_CONVERSATION_ID} group, whatever its
145
+ * message shape. Read `msg` before concluding the history is at fault.
146
+ */
147
+ readonly SECURITY_BLOCKED: 11128;
148
+ /** Provider rejected the parameters, e.g. an unsupported image for that model. */
149
+ readonly PROVIDER_REJECTED: 11133;
150
+ /** Upstream vendor error. */
151
+ readonly UPSTREAM_ERROR: 11134;
152
+ /** Image could not be decoded or is not an accepted format. */
153
+ readonly INVALID_IMAGE: 11135;
154
+ /** Unsupported reasoning effort value. */
155
+ readonly INVALID_REASONING: 11150;
156
+ /**
157
+ * The account itself is barred from being served.
158
+ *
159
+ * Not a model park and not a usage window: the pool must stop selecting this
160
+ * account. The constant (and its provenance note) lives in the shared
161
+ * contracts because the settings card names the same code.
162
+ */
163
+ readonly ACCOUNT_RESTRICTED: 11140;
164
+ /** Usage exceeds the frequency limit; the message carries the reset instant. */
165
+ readonly RATE_LIMITED: 6004;
166
+ /** Generic usage-limit signal seen alongside 429s. */
167
+ readonly USAGE_LIMIT: 14003;
168
+ };
169
+ /** Whether an auth domain belongs to the international deployment. */
170
+ export declare function isIntlDomain(domain: string): boolean;
171
+ /** Region one credential belongs to, decided by its auth domain. */
172
+ export declare function regionForDomain(domain: string): WorkBuddyRegion;
173
+ /**
174
+ * Backend base URL for an auth domain.
175
+ *
176
+ * International accounts are served from the same apex as their auth domain
177
+ * (`www.workbuddy.ai`, `www.codebuddy.ai`); everything else uses the domestic
178
+ * gateway.
179
+ */
180
+ export declare function backendForDomain(domain: string): string;
181
+ /** Refresh-source marker the token endpoint expects for one domain. */
182
+ export declare function refreshSourceForDomain(domain: string): string;
183
+ /** `www.workbuddy.ai` / `www.codebuddy.ai` origin used for CORS headers. */
184
+ export declare function originForDomain(domain: string): string;
185
+ //# sourceMappingURL=types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/host/workbuddy/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,qCAAqC,CAAA;AAI1E,eAAO,MAAM,WAAW,2BAA2B,CAAA;AACnD,eAAO,MAAM,aAAa,gDAA4B,CAAA;AAEtD,wBAAwB;AACxB,eAAO,MAAM,UAAU,gCAAgC,CAAA;AA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import z from '@deepseek-ai/schemastery';
3
+ import type { PromptCacheOverride } from './host/common/prompt-cache-policy.ts';
4
+ import type { PoolStorageMode } from './shared/contracts.ts';
5
+ interface Volatile<T> {
6
+ get(): T;
7
+ }
8
+ /**
9
+ * 运行期配置形状:标了 `volatile()` 的字段在 loader 解析之后是**活引用**。
10
+ *
11
+ * 这一份是插件体在 `apply` 里真正拿到的形状,也是 {@link Config} schema 的输出
12
+ * 类型;{@link ConfigInput} 才是 profile 里写的普通值。
13
+ */
14
+ export interface Config {
15
+ /**
16
+ * 「账号缓存亲和」开关:Kimi Code 号池在轮换时优先选「这条前缀的缓存还热着」
17
+ * 的账号,前提是该账号剩余额度不低于 20%。默认开启;关闭后完全按原轮换策略。
18
+ */
19
+ cacheAffinity?: Volatile<boolean>;
20
+ /** 部署级缓存语义覆盖;非 volatile,修改后重载插件。 */
21
+ promptCacheOverrides?: Record<string, PromptCacheOverride>;
22
+ /** Independent web fetch selection; auto preserves proxy/search-driven selection.
23
+ * Plugin mode uses the plugin destination policy, not DSH DNS pinning, even without a proxy. */
24
+ fetchProvider?: 'auto' | 'plugin' | 'dsh';
25
+ /** Plugin fetch decoded character limit (positive safe integer); the DSH tool may truncate again. */
26
+ fetchMaxBodyChars?: number;
27
+ /** Plugin fetch response byte limit (positive safe integer). */
28
+ fetchMaxResponseBytes?: number;
29
+ /**
30
+ * Idle budget for one Codex Responses stream, in milliseconds.
31
+ *
32
+ * Counted on transport activity rather than on visible chunks, so status
33
+ * frames and truncated reasoning keep the connection alive. `0` is not a
34
+ * disable switch: the floor is 1ms, and a real stall still times out.
35
+ */
36
+ codexStreamIdleTimeoutMs?: number;
37
+ /**
38
+ * Where every provider line's account pool is stored.
39
+ *
40
+ * `keyring` (default) is the platform store — DPAPI on Windows, the Keychain on
41
+ * macOS, the Secret Service on Linux — which is what every existing install has.
42
+ * `credentials` puts the pool in DSH's own credential store through the
43
+ * credentials seam, which is the value a server without a desktop keyring needs:
44
+ * there the keyring is absent, and the account could not be saved at all.
45
+ *
46
+ * The settings card writes its own choice into the plugin's storage document,
47
+ * which then takes precedence over this value; a profile that never mentions the
48
+ * key keeps the default.
49
+ */
50
+ poolStorage?: PoolStorageMode;
51
+ /**
52
+ * Skip the automatic session-title request on this plugin's own lines.
53
+ *
54
+ * DSH titles a fresh session with one extra auxiliary `llm/stream` call
55
+ * (`purpose: 'session-title'`) through the conversation's own provider, charged
56
+ * to that subscription's quota. Skipping it short-circuits the call at the
57
+ * `llm/stream` waterfall, so the adapter is never dispatched and nothing is
58
+ * spent; the sidebar falls back to DSH's deterministic first-message title.
59
+ * Default on.
60
+ */
61
+ skipSessionTitle?: Volatile<boolean>;
62
+ }
63
+ /**
64
+ * profile 里写的配置形状:volatile 字段在这里仍是普通值。
65
+ *
66
+ * 两者必须分开声明——schemastery 的 `z<S, T>` 是「输入 / 输出」二元组,写成一个
67
+ * 合并的接口会让 schema 与声明互相矛盾(`volatile()` 的字段输出是引用,输入是
68
+ * 值)。分开放还有一个好处:测试与部署方写配置时用的是 {@link ConfigInput},
69
+ * 手写活引用不会被误认为合法部署配置。
70
+ */
71
+ export interface ConfigInput {
72
+ /** Independent web fetch selection; auto preserves proxy/search-driven selection.
73
+ * Plugin mode uses the plugin destination policy, not DSH DNS pinning, even without a proxy. */
74
+ fetchProvider?: 'auto' | 'plugin' | 'dsh';
75
+ /** Plugin fetch decoded character limit (positive safe integer); the DSH tool may truncate again. */
76
+ fetchMaxBodyChars?: number;
77
+ /** Plugin fetch response byte limit (positive safe integer). */
78
+ fetchMaxResponseBytes?: number;
79
+ /** 「账号缓存亲和」开关(默认开启;轮换优先选前缀缓存还热的账号)。 */
80
+ cacheAffinity?: boolean;
81
+ /** 部署级缓存语义覆盖;非 volatile,修改后重载插件。 */
82
+ promptCacheOverrides?: Record<string, PromptCacheOverride>;
83
+ /** Idle budget for one Codex Responses stream, in milliseconds. */
84
+ codexStreamIdleTimeoutMs?: number;
85
+ /**
86
+ * 号池存储后端:`keyring`(默认,平台密钥环)或 `credentials`(DSH 凭据库,服务器推荐)。
87
+ *
88
+ * 没有 `auto`:按探测结果换存储会让一个号池在两份存储之间来回搬,而「号池搬家了」
89
+ * 和「号池里的账号丢了」在界面上长得一模一样。不可用的选择照实报错,不替换。
90
+ */
91
+ poolStorage?: PoolStorageMode;
92
+ /**
93
+ * 跳过本插件自有线路上的自动会话标题请求(默认开启)。
94
+ *
95
+ * DSH 在首条消息之后再发一次辅助 `llm/stream`(`purpose: 'session-title'`),
96
+ * 走会话当前线路、花同一份订阅额度。开启后在 `llm/stream` 瀑布层短路这次请求,
97
+ * 不触达适配器、零消耗,标题改用 DSH 的确定性首条消息回退标题。
98
+ */
99
+ skipSessionTitle?: boolean;
100
+ }
101
+ export declare const Config: z<ConfigInput, Config>;
102
+ /**
103
+ * Whether a Session belongs to a delegated agent, as the Claude line asks it to
104
+ * pick a prompt-cache tier.
105
+ *
106
+ * Read through `ctx.get('agents')` rather than declared in `inject`: this plugin
107
+ * does not depend on the agent package, and injecting a service it only consults
108
+ * optionally would hold the whole plugin back on a host that does not ship it.
109
+ *
110
+ * The verdict is durable Session data — `origin === 'subagent'` or a non-zero
111
+ * `delegationDepth`, both written by the harness on every in-process child
112
+ * (subagent/child-agent.ts) and both surviving a restart (SessionHeader). The
113
+ * live-host fallbacks a dispatch guard needs — `subagents.rootOf` and
114
+ * `agents.roots()` — are not consulted: this asks about a Session's lineage, not
115
+ * about who dispatched a call. Anything unreadable — no service, an id that is
116
+ * not a live Session here, a lookup that throws — counts as a main conversation:
117
+ * demoting a main turn to the shorter cache tier costs real cache hits, while
118
+ * keeping a subagent on the longer one only costs a little.
119
+ *
120
+ * The service is resolved on EVERY call for the same reason the credentials seam
121
+ * is read lazily: `agents` is not in `inject`, so nothing orders it before this
122
+ * `apply`, and a service captured here would stay `undefined` for the life of the
123
+ * process on a host that mounts it a moment later.
124
+ */
125
+ export declare function delegatedSessionLookup(ctx: Context): (sessionId: string) => boolean;
126
+ export declare const inject: string[];
127
+ export declare function apply(ctx: Context, pluginConfig?: Config): void;
128
+ export { ProxyManager, detectSystemProxy } from './host/proxy-manager.ts';
129
+ export { OAuthService } from './host/oauth-service.ts';
130
+ export { CodexAccountPool, codexPoolPath, parseCodexPoolData, type CodexPoolAccount, type CodexTokenRefresher, } from './host/codex-account-pool.ts';
131
+ export { AccountPoolCore, normalizeRotationStrategy } from './host/common/account-pool.ts';
132
+ export { dshHomeDir } from './host/common/home.ts';
133
+ export { CodexChatGptAdapter } from './host/adapter.ts';
134
+ export { createCodexSearchProvider } from './host/codex-search.ts';
135
+ export { createCodexFetchProvider } from './host/codex-fetch.ts';
136
+ export { SearchProviderSwitcher, type SearchProviderSwitcherStatus } from './host/search-provider-switcher.ts';
137
+ export { ResponsesClient, parseResponsesStream } from './host/responses-client.ts';
138
+ export { UsageService, mapCodexUsage, parseCodexUsage } from './host/usage-service.ts';
139
+ export { createPlatformTokenStore } from './host/platform-token-store.ts';
140
+ export { MacKeychainTokenStore } from './host/token-store-macos.ts';
141
+ export { LinuxFileTokenStore } from './host/token-store-linux.ts';
142
+ export { WindowsDpapiTokenStore } from './host/token-store-windows.ts';
143
+ export type { TokenStore, StoredOAuthCredentials } from './host/token-store.ts';
144
+ export { CommandCodeAccountPool, commandCodePoolPath, commandCodeAccountKey, parseCommandCodePoolData, type CommandCodePoolAccount, type CommandCodeAccountSummaryDto, } from './host/command-code/account-pool.ts';
145
+ export { CommandCodeAdapter } from './host/command-code/adapter.ts';
146
+ export { FileCredentialStore as CommandCodeCredentialStore, FileModelSettingsStore as CommandCodeModelSettingsStore, credentialPath as commandCodeCredentialPath, modelSettingsPath as commandCodeModelSettingsPath, registerCommandCodePreferenceStore, } from './host/command-code/token-store.ts';
147
+ export { beginWebLogin as startCommandCodeLogin, getWebLoginStatus as getCommandCodeLoginStatus, saveApiKey as saveCommandCodeApiKey, } from './host/command-code/oauth.ts';
148
+ export { getCommandCodeWebStatus, registerCommandCodeRoutes } from './host/command-code/routes.ts';
149
+ export { fetchAccountQuota as fetchCommandCodeQuota, clearCachedQuota as clearCommandCodeQuota, getCachedQuota as getCommandCodeQuota, loadProviderModels as loadCommandCodeModels, } from './host/command-code/client.ts';
150
+ export { KimiCodeAdapter, classifyKimiFailure, KIMI_CODE_RETRY_POLICY_CONFIG } from './host/kimi-code/adapter.ts';
151
+ export { FileCredentialStore as KimiCodeCredentialStore, FileModelSettingsStore as KimiCodeModelSettingsStore, credentialPath as kimiCodeCredentialPath, modelSettingsPath as kimiCodeModelSettingsPath, registerKimiCodePreferenceStore, resolveRegion as resolveKimiCodeRegion, } from './host/kimi-code/token-store.ts';
152
+ export { beginWebLogin as beginKimiCodeLogin, ensureAccessToken as ensureKimiCodeAccessToken, getWebLoginStatus as getKimiCodeLoginStatus, refreshAccessToken as refreshKimiCodeToken, requestDeviceAuthorization as requestKimiCodeDeviceAuthorization, } from './host/kimi-code/oauth.ts';
153
+ export { fetchAccountQuota as fetchKimiCodeQuota, fetchUserInfo as fetchKimiCodeUserInfo, loadProviderModels as loadKimiCodeModels, clearCachedQuota as clearKimiCodeQuota, getCachedQuota as getKimiCodeQuota, } from './host/kimi-code/client.ts';
154
+ export { getKimiCodeWebStatus, registerKimiCodeRoutes } from './host/kimi-code/routes.ts';
155
+ export { MinimaxCodeCheckinService } from './host/minimax-code/checkin.ts';
156
+ export { ClaudeAdapter, codeForFailure as claudeCodeForFailure, toLlmError as claudeToLlmError, } from './host/claude/adapter.ts';
157
+ export { ClaudeAccountPool, claudePoolPath, parseClaudePoolData, adoptedPoolAccountKey, isAdoptedPoolCredential, type ClaudePoolAccount, type ClaudeAccountSummaryDto, } from './host/claude/account-pool.ts';
158
+ export { FileCredentialStore as ClaudeCredentialStore, FileModelSettingsStore as ClaudeModelSettingsStore, credentialPath as claudeCredentialPath, modelSettingsPath as claudeModelSettingsPath, parseClaudeCredentials, parseClaudeCredentialDocument, registerClaudePreferenceStore, type ClaudeCredentials, type ClaudeModelSettings, type ClaudePreferenceStore, } from './host/claude/token-store.ts';
159
+ export { beginLogin as beginClaudeLogin, cancelLogin as cancelClaudeLogin, ensureAccessToken as ensureClaudeAccessToken, getLoginStatus as getClaudeLoginStatus, refreshAccessToken as refreshClaudeToken, resolveLoginInput as resolveClaudeLoginInput, submitLoginInput as submitClaudeLoginInput, } from './host/claude/oauth.ts';
160
+ export { claudeCodeCredentialPaths, claudeCodeCredentialPresence, isAdoptedClaudeCredential, isAdoptedCredentialExpired, readClaudeCodeCredentials, ADOPTED_CREDENTIAL_EXPIRED_HINT as CLAUDE_ADOPTED_CREDENTIAL_EXPIRED_HINT, } from './host/claude/adopt.ts';
161
+ export { clearCachedCatalog as clearClaudeCatalog, clearCachedQuota as clearClaudeQuota, classifyFailure as classifyClaudeFailure, fetchAccountQuota as fetchClaudeQuota, getCachedQuota as getClaudeQuota, loadCatalog as loadClaudeCatalog, parseUsagePayload as parseClaudeUsagePayload, probeConnection as probeClaudeConnection, } from './host/claude/client.ts';
162
+ export { getClaudeWebStatus, registerClaudeRoutes, ROUTE_PREFIX as CLAUDE_ROUTE_PREFIX, buildClaudeModelOptions as buildClaudeModelOptions, resolveEnabledModelIds as resolveClaudeEnabledModelIds, } from './host/claude/routes.ts';
163
+ export { CLAUDE_MODELS, CLAUDE_MODEL_IDS, DEFAULT_VISIBLE_MODEL_IDS as CLAUDE_DEFAULT_VISIBLE_MODELS, FALLBACK_MODELS as CLAUDE_FALLBACK_MODELS, claudeModelCanDisableThinking, claudeModelSupportsImage, claudeModelSupportsTemperature, claudeReasoningEfforts, claudeThinkingMode, defaultContextWindowFor as claudeDefaultContextWindow, maxOutputTokensFor as claudeMaxOutputTokens, resolveClaudeModel, type ClaudeModelEntry, } from './host/claude/model-catalog.ts';
164
+ export { API_BASE as CLAUDE_API_BASE, MESSAGES_PATH as CLAUDE_MESSAGES_PATH, PROVIDER_ID as CLAUDE_PROVIDER_ID, PROVIDER_NAME as CLAUDE_PROVIDER_NAME, QUOTA_CACHE_TTL_MS as CLAUDE_QUOTA_CACHE_TTL_MS, claudeCliVersion, setClaudeCliVersion, } from './host/claude/types.ts';
165
+ export { CLAUDE_REASONING_EFFORTS, isClaudeReasoningEffort, type ClaudeAccountQuota, type ClaudeConnectionDto, type ClaudeLoginFlowDto, type ClaudeModelOption, type ClaudeQuotaWindow, type ClaudeReasoningEffort, type ClaudeSettingsUpdateDto, type ClaudeWebStatus, } from './shared/claude-contracts.ts';
166
+ export { KimiCodeAccountPool, kimiCodePoolPath, parseKimiCodePoolData, type KimiCodePoolAccount, } from './host/kimi-code/account-pool.ts';
167
+ export { KIMI_CODE_MODELS, kimiCodeModelDef, } from './host/kimi-code/model-catalog.ts';
168
+ export { GlmCodingPlanAdapter, GLM_CODING_PLAN_RETRY_POLICY_CONFIG, GLM_POOL_COOLDOWN_MS, buildGlmRequestPlan, glmCooldownDecision, readGlmResetAt, type GlmRequestPlan, } from './host/glm-coding-plan/adapter.ts';
169
+ export { GlmAdoptedCredentialRefreshError, GlmCodingPlanAccountPool, glmCodingPlanPoolIdentity, glmCodingPlanPoolPath, glmCodingPlanPoolQuota, glmCodingPlanPoolStatus, parseGlmCodingPlanPoolData, type GlmCodingPlanAccountSummary, type GlmCodingPlanPoolAccount, type GlmCodingPlanPoolStatus, } from './host/glm-coding-plan/account-pool.ts';
170
+ export { GLM_CODING_PLAN_PREFERENCES_NAMESPACE, GlmCodingPlanCredentialStore, GlmCodingPlanModelSettingsStore, credentialPath as glmCodingPlanCredentialPath, credentialsFromAdopt, credentialsFromCliLogin, isAdoptedCredential as isAdoptedGlmCodingPlanCredential, mergeGlmCodingPlanSettings, modelSettingsPath as glmCodingPlanModelSettingsPath, parseGlmCodingPlanCredentials, registerGlmCodingPlanPreferenceStore, type GlmCodingPlanCredentialOrigin, type GlmCodingPlanCredentials, type GlmCodingPlanModelSettings, type GlmCodingPlanPreferenceStore, type GlmCodingPlanSettingsPatch, } from './host/glm-coding-plan/token-store.ts';
171
+ export { getGlmCodingPlanStatus, glmCatalogSize, glmCodingPlanSettingsSource, glmSubPathOf, registerGlmCodingPlanRoutes, type GlmCodingPlanRouteOptions, type GlmCodingPlanSettingsSource, } from './host/glm-coding-plan/routes.ts';
172
+ export { GLM_MODEL_CATALOG, GLM_MODEL_IDS, catalogModelOptions, catalogSize as glmCodingPlanCatalogCount, modelsForRegion as glmCodingPlanModelsForRegion, resolveGlmModel, type GlmModelEntry as GlmCodingPlanModelEntry, } from './host/glm-coding-plan/model-catalog.ts';
173
+ export { PROVIDER_ID as GLM_CODING_PLAN_ROUTE_PROVIDER_ID, PROVIDER_NAME as GLM_CODING_PLAN_ROUTE_PROVIDER_NAME, QUOTA_WINDOW_MINUTES as GLM_CODING_PLAN_QUOTA_WINDOW_MINUTES, authorizeUrl as glmCodingPlanAuthorizeUrl, convergeGlmEffort, isGlmReasoningEffort, normalizeRegion as normalizeGlmCodingPlanRegion, } from './host/glm-coding-plan/types.ts';
174
+ export { adoptZcodeSignIn as adoptGlmZcodeSignIn, isAdoptedZcodeCredential as isAdoptedGlmZcodeCredential, zcodeCredentialsPath, } from './host/glm-coding-plan/adopt.ts';
175
+ export { fetchGlmQuota, getCachedQuota as getCachedGlmCodingPlanQuota, loadCatalog as loadGlmCodingPlanCatalog, verifyCodingPlanKey as verifyGlmCodingPlanKey, } from './host/glm-coding-plan/client.ts';
176
+ export { MinimaxCodeAdapter, classifyMinimaxFailure, MINIMAX_CODE_RETRY_POLICY_CONFIG } from './host/minimax-code/adapter.ts';
177
+ export { MinimaxCodeAccountPool, minimaxCodePoolPath, minimaxCodePoolIdentity, minimaxCodePoolStatus, parseMinimaxCodePoolData, createMinimaxCodeAccountsHandler, type MinimaxCodePoolAccount, type MinimaxCodeAccountSummaryDto, } from './host/minimax-code/account-pool.ts';
178
+ export { MinimaxCodeCredentialStore, MinimaxCodeModelSettingsStore, authJsonPath as minimaxCodeAuthJsonPath, authStateJsonPath as minimaxCodeAuthStateJsonPath, credentialIsFresh as minimaxCodeCredentialIsFresh, minimaxHomeDir as minimaxCodeHomeDir, modelSettingsPath as minimaxCodeModelSettingsPath, parseMinimaxCodeCredentials, pluginCredentialPath as minimaxCodePluginCredentialPath, registerMinimaxCodePreferenceStore, type MinimaxCodeCredentialSource, type MinimaxCodeCredentials, type MinimaxCodeModelSettings, type MinimaxCodePreferenceStore, } from './host/minimax-code/token-store.ts';
179
+ export { accountFromCredentials as minimaxCodeAccountFromCredentials, beginWebLogin as beginMinimaxCodeLogin, cancelWebLogin as cancelMinimaxCodeLogin, ensureAccessToken as ensureMinimaxCodeAccessToken, getWebLogin as getMinimaxCodeLogin, isRefreshTokenRejected as isMinimaxCodeRefreshTokenRejected, pollWebLogin as pollMinimaxCodeLogin, refreshAccessToken as refreshMinimaxCodeToken, requestDeviceAuthorization as requestMinimaxCodeDeviceAuthorization, resetWebLogins as resetMinimaxCodeLogins, revokeToken as revokeMinimaxCodeToken, createPkcePair as createMinimaxCodePkcePair, type DeviceAuthorization as MinimaxCodeDeviceAuthorization, type MinimaxToken, } from './host/minimax-code/oauth.ts';
180
+ export { PROBE_MODEL as MINIMAX_CODE_PROBE_MODEL, catalogSize as minimaxCodeCatalogSize, createMessage as createMinimaxCodeMessage, describeCredentials as describeMinimaxCodeCredentials, listModelIds as listMinimaxCodeModelIds, modelRequestHeaders as minimaxCodeModelRequestHeaders, parseAnthropicUsage as parseMinimaxCodeUsage, testConnection as testMinimaxCodeConnection, summarizeFailureBody as summarizeMinimaxCodeFailureBody, clearCachedQuota as clearMinimaxCodeQuota, fetchTokenPlanQuota as fetchMinimaxCodeQuota, getCachedQuota as getMinimaxCodeQuota, parseTokenPlanQuota as parseMinimaxCodeQuota, quotaRequestHeaders as minimaxCodeQuotaRequestHeaders, resolveQuotaCounts as resolveMinimaxCodeQuotaCounts, type MinimaxProbeResult, type MinimaxUsage, } from './host/minimax-code/client.ts';
181
+ export { MINIMAX_CODE_MODELS, buildMinimaxCodeModelOptions, contextWindowForModel, effortForModel as minimaxCodeEffortForModel, isThinkingDisabledEffort, minimaxCodeModelDef, minimaxCodeModelIds, minimaxCodeModelName, resolveMinimaxCodeEnabledModelIds, resolveMinimaxCodeModelId, type MinimaxCodeCatalogModel, type MinimaxCodeThinkingMode, } from './host/minimax-code/model-catalog.ts';
182
+ export { assertRequestBodyFits as assertMinimaxCodeBodyFits, assertStreamComplete as assertMinimaxCodeStreamComplete, buildMinimaxRequest, clampOutputToContext as clampMinimaxCodeOutputToContext, closeMinimaxStream, createStreamState as createMinimaxCodeStreamState, DEFAULT_MAX_MESSAGE_BODY_BYTES as MINIMAX_CODE_MAX_MESSAGE_BODY_BYTES, maxMessageBodyBytes as minimaxCodeMaxMessageBodyBytes, maxOutputTokensFor as minimaxCodeMaxOutputTokens, processMinimaxStreamLine, outputConfigFor as minimaxCodeOutputConfig, type MinimaxStreamState, } from './host/minimax-code/mapper.ts';
183
+ export { getMinimaxCodeWebStatus, registerMinimaxCodeRoutes, subPathOf as minimaxCodeSubPathOf, } from './host/minimax-code/routes.ts';
184
+ export { AGENT_LLM_PREFIX as MINIMAX_CODE_AGENT_LLM_PREFIX, MESSAGES_PATH as MINIMAX_CODE_MESSAGES_PATH, REGION_HOSTS as MINIMAX_CODE_REGION_HOSTS, accountHost as minimaxCodeAccountHost, agentBaseUrl as minimaxCodeAgentBaseUrl, isMinimaxCodeReasoningEffort, quotaHostCandidates as minimaxCodeQuotaHostCandidates, tokenPlanRemainsUrl as minimaxCodeTokenPlanRemainsUrl, messagesUrl as minimaxCodeMessagesUrl, redactToken as redactMinimaxCodeToken, } from './host/minimax-code/types.ts';
185
+ export { MINIMAX_CODE_PROVIDER_ID, MINIMAX_CODE_PROVIDER_NAME, MINIMAX_CODE_REASONING_EFFORTS, MINIMAX_CODE_ROUTE_PREFIX, type MinimaxCodeAccount, type MinimaxCodeCredentialStorage, type MinimaxCodeModelOption, type MinimaxCodeQuota, type MinimaxCodeReasoningEffort, type MinimaxCodeRegion, type MinimaxCodeThinkingModeDto, type MinimaxCodeWebLogin, type MinimaxCodeWebStatus, } from './shared/minimax-code-contracts.ts';
186
+ export { StepCodeAdapter, STEP_CODE_POOL_COOLDOWN_MS, STEP_CODE_RETRY_POLICY_CONFIG, cachedStepCodeModelCatalog, readStepCodeCacheStats, rememberStepCodeCacheUsage, stepCodeCatalogSize, stepCodeModelCatalogFrom, type StepCodeAdapterOptions, type StepCodePickedCredential, } from './host/step-code/adapter.ts';
187
+ export { StepCodeAccountPool, StepCodeCredentialRefreshError, stepCodePoolIdentity, stepCodePoolPath, stepCodePoolQuota, stepCodePoolStatus, stepCodePoolStatusSlice, type StepCodePoolAccount, type StepCodePoolStatus, } from './host/step-code/account-pool.ts';
188
+ export { getStepCodeStatus, registerStepCodeRoutes, stepCodeSettingsSource, stepCodeSubPathOf, type StepCodePoolSlice, type StepCodeRouteOptions, type StepCodeSettingsSource, type StepCodeStatusSources, } from './host/step-code/routes.ts';
189
+ export { StepCodeCredentialStore, StepCodeModelSettingsStore, StepCodeQuotaCredentialStore, credentialPath as stepCodeCredentialPath, modelSettingsPath as stepCodeModelSettingsPath, quotaCredentialPath as stepCodeQuotaCredentialPath, registerStepCodePreferenceStore, type StepCodeCredentials, type StepCodeModelSettings, type StepCodePreferenceStore, type StepCodeQuotaCredential, type StepCodeSettingsPatch, } from './host/step-code/token-store.ts';
190
+ export { STEP_CODE_PROVIDER_ID, STEP_CODE_PROVIDER_NAME, STEP_CODE_ROUTE_PREFIX, STEP_CODE_PROFILES, type StepCodeAccountSummaryDto, type StepCodeAdoptResultDto, type StepCodeCacheStatsDto, type StepCodeConnectionDto, type StepCodeLoginFlowStatus, type StepCodeModelOption, type StepCodeProfile, type StepCodeQuotaSnapshotDto, type StepCodeReasoningEffort, type StepCodeStatusDto, } from './shared/step-code-contracts.ts';
191
+ export { ClinePassAdapter, type ClinePassAdapterOptions, } from './host/cline-pass/adapter.ts';
192
+ export { ClinePassEngine, type ClinePassAccount, type ClinePassEngineOptions, } from './host/cline-pass/engine.ts';
193
+ export { CLINE_PASS_API_KEY_ENV, ClinePassAccountPool, clinePassAccountKey, clinePassPoolPath, parseClinePassPoolData, type ClinePassPoolAccount, } from './host/cline-pass/account-pool.ts';
194
+ export { CLINE_PASS_ROUTES, getClinePassWebStatus, registerClinePassRoutes, type ClinePassRouteOptions, } from './host/cline-pass/routes.ts';
195
+ export { ClinePassModelSettingsStore, FileCredentialStore as ClinePassCredentialStore, credentialPath as clinePassCredentialPath, modelSettingsPath as clinePassModelSettingsPath, parseClinePassCredentials, parseClinePassModelSettings, type ClinePassCatalogModel, type ClinePassCredentials, type ClinePassModelSettings, type ClinePassPreferenceStore, } from './host/cline-pass/token-store.ts';
196
+ export { createClinePassLine, clinePassKnownModelIds, clinePassVisibleModelIds, type ClinePassLine, type ClinePassLineOptions, } from './host/cline-pass/line.ts';
197
+ export { createClinePassStore, type ClinePassStore } from './host/cline-pass/store.ts';
198
+ export { chatCompletion as clinePassChatCompletion, chatURL as clinePassChatURL, fetchGatewayCatalog as fetchClinePassGatewayCatalog, fetchOfficialModels as fetchClinePassOfficialModels, fetchUsageLimits as fetchClinePassUsageLimits, openChatStream as openClinePassChatStream, sendJSON as sendClinePassJSON, trimBase as trimClinePassBase, type ClinePassHttpResult, type ClinePassRawUsageLimit, } from './host/cline-pass/client.ts';
199
+ export { buildClinePassBody, mapFinishReason, mapUsage, parseServerSentEvents, reasoningOf, serializeMessages, streamErrorCode, translate, type ClinePassWireBody, type ClinePassWireMessage, } from './host/cline-pass/mapper.ts';
200
+ export { parseRouting, type RoutingFacts, } from './host/cline-pass/protocol.ts';
201
+ export { DEFAULT_BASE_URL as CLINE_PASS_DEFAULT_BASE_URL, DEFAULT_MODELS as CLINE_PASS_DEFAULT_MODELS, MODEL_CATALOG as CLINE_PASS_MODEL_CATALOG, POOL_COOLDOWN_MS as CLINE_PASS_POOL_COOLDOWN_MS, REASONING_EFFORTS as CLINE_PASS_REASONING_EFFORTS, catalogEntry as clinePassCatalogEntry, type ClinePassConnection, type ClinePassModelInfo, type ClinePassModelMeta, type ClinePassReasoningEffort, } from './host/cline-pass/types.ts';
202
+ export { CLINE_PASS_PROVIDER_ID as CLINE_PASS_ROUTE_PROVIDER_ID, CLINE_PASS_PROVIDER_NAME as CLINE_PASS_ROUTE_PROVIDER_NAME, CLINE_PASS_ROUTE_PREFIX, clinePassAccountQuota, clinePassWindowDurationMins, clinePassWindowLabel, type ClinePassAccountAction, type ClinePassAccountSummaryDto, type ClinePassAuthResult, type ClinePassHistoryRowDto, type ClinePassModelDto, type ClinePassPoolStatusDto, type ClinePassSettingsDto, type ClinePassSettingsUpdateDto, type ClinePassTestResultDto, type ClinePassUsageAccountDto, type ClinePassUsageDto, type ClinePassUsageWindowDto, type ClinePassWebStatus, } from './shared/cline-pass-contracts.ts';
203
+ export { QoderAdapter, QODER_POOL_COOLDOWN_MS, QODER_RETRY_POLICY_CONFIG, cachedQoderModelCatalog, qoderCatalogSize, readQoderCacheStats, rememberQoderCacheUsage, type QoderAdapterOptions, type QoderPickedCredential, } from './host/qoder/adapter.ts';
204
+ export { QoderAccountPool, qoderPoolIdentity, qoderPoolPath, qoderPoolQuota, qoderPoolStatus, qoderPoolStatusSlice, qoderRefreshFailureStatus, type QoderPoolAccount, type QoderPoolStatus, } from './host/qoder/account-pool.ts';
205
+ export { getQoderStatus, qoderSettingsSource, qoderSubPathOf, registerQoderRoutes, warmQoderCatalogOnStartup, type QoderPoolSlice, type QoderRouteOptions, type QoderSettingsSource, type QoderStatusSources, } from './host/qoder/routes.ts';
206
+ export { QoderCredentialStore, QoderModelSettingsStore, credentialPath as qoderCredentialPath, modelSettingsPath as qoderModelSettingsPath, parseQoderCredentials, qoderCredentialsExpireAt, qoderCredentialsNeedRefresh, registerQoderPreferenceStore, type QoderCredentials, type QoderModelSettings, type QoderPreferenceStore, type QoderSettingsPatch, } from './host/qoder/token-store.ts';
207
+ export { QODER_PROVIDER_ID, QODER_PROVIDER_NAME, QODER_ROUTE_PREFIX, QODER_REGIONS, type QoderAccountSummaryDto, type QoderAdoptResultDto, type QoderCacheStatsDto, type QoderConnectionDto, type QoderLoginFlowStatus, type QoderModelOption, type QoderQuotaSnapshotDto, type QoderReasoningEffort, type QoderRegion, type QoderStatusDto, } from './shared/qoder-contracts.ts';
208
+ export { OpenDesignAdapter, REASONING_EFFORT_IDS as OPENDESIGN_REASONING_EFFORT_IDS, type OpenDesignAdapterOptions, } from './host/opendesign/adapter.ts';
209
+ export { OpenDesignAccountPool, OPENDESIGN_API_KEY_ENV, opendesignAccountKey, opendesignPoolPath, parseOpenDesignPoolData, type OpenDesignAccountPoolOptions, type OpenDesignPoolAccount, type OpenDesignPoolStatusDto, } from './host/opendesign/account-pool.ts';
210
+ export { resolveModelInfo as resolveOpenDesignModelInfo, resolveOutputBudget as resolveOpenDesignOutputBudget, } from './host/opendesign/catalog.ts';
211
+ export { chatURL as openDesignChatURL, fetchGatewayCatalog as fetchOpenDesignGatewayCatalog, firstMessage as openDesignFirstMessage, modelsURL as openDesignModelsURL, openChatStream as openOpenDesignChatStream, sendJSON as sendOpenDesignJSON, testApiKey as testOpenDesignApiKey, trimBase as trimOpenDesignBase, withTimeout as withOpenDesignTimeout, type OpenDesignHttpResult, } from './host/opendesign/client.ts';
212
+ export { buildOpenDesignBody, isAuthenticationError as isOpenDesignAuthenticationError, mapFinishReason as mapOpenDesignFinishReason, mapUsage as mapOpenDesignUsage, NO_ANSWER_PHRASE as OPENDESIGN_NO_ANSWER_PHRASE, parseServerSentEvents as parseOpenDesignServerSentEvents, reasoningOf as openDesignReasoningOf, serializeMessages as serializeOpenDesignMessages, streamErrorCode as openDesignStreamErrorCode, translate as translateOpenDesignStream, type OpenDesignWireBody, type OpenDesignWireMessage, } from './host/opendesign/mapper.ts';
213
+ export { getOpenDesignWebStatus, OPENDESIGN_ROUTES, registerOpenDesignRoutes, type OpenDesignRouteOptions, } from './host/opendesign/routes.ts';
214
+ export { bearerFor as openDesignBearerFor, credentialPath as openDesignCredentialPath, credentialsIdentity as openDesignCredentialsIdentity, defaultOpenDesignModelSettings, FileCredentialStore as OpenDesignCredentialStore, modelSettingsPath as openDesignModelSettingsPath, OpenDesignModelSettingsStore, parseOpenDesignCredentials, parseOpenDesignModelSettings, type OpenDesignApiKeyCredentials, type OpenDesignCatalogModel, type OpenDesignCredentials, type OpenDesignModelSettings, type OpenDesignPreferenceStore, } from './host/opendesign/token-store.ts';
215
+ export { createOpenDesignLine, openDesignKnownModelIds, openDesignVisibleModelIds, type OpenDesignLine, type OpenDesignLineOptions, } from './host/opendesign/line.ts';
216
+ export { catalogEntry as openDesignCatalogEntry, DEFAULT_BASE_URL as OPENDESIGN_DEFAULT_BASE_URL, DEFAULT_CONTEXT_WINDOW as OPENDESIGN_DEFAULT_CONTEXT_WINDOW, DEFAULT_MAX_CONCURRENT_REQUESTS as OPENDESIGN_DEFAULT_MAX_CONCURRENT_REQUESTS, DEFAULT_MAX_TOKENS as OPENDESIGN_DEFAULT_MAX_TOKENS, DEFAULT_MODELS as OPENDESIGN_DEFAULT_MODELS, DEFAULT_STREAM_IDLE_TIMEOUT_MS as OPENDESIGN_DEFAULT_STREAM_IDLE_TIMEOUT_MS, MODEL_CATALOG as OPENDESIGN_MODEL_CATALOG, MODEL_PRICES_URL as OPENDESIGN_MODEL_PRICES_URL, POOL_COOLDOWN_MS as OPENDESIGN_POOL_COOLDOWN_MS, PROVIDER_ID as OPENDESIGN_HOST_PROVIDER_ID, PROVIDER_NAME as OPENDESIGN_HOST_PROVIDER_NAME, type OpenDesignDiscoveredModel, type OpenDesignModelInfo, type OpenDesignModelMeta, } from './host/opendesign/types.ts';
217
+ export { OPENDESIGN_CONSOLE_URL, OPENDESIGN_PROVIDER_ID, OPENDESIGN_PROVIDER_NAME, OPENDESIGN_ROUTE_PREFIX, type OpenDesignAccountAction, type OpenDesignAccountSummaryDto, type OpenDesignAuthResult, type OpenDesignModelDto, type OpenDesignModelPricingDto, type OpenDesignPoolStatusDto as OpenDesignPoolStatusDtoContract, type OpenDesignSettingsDto, type OpenDesignSettingsUpdateDto, type OpenDesignWebStatus, } from './shared/opendesign-contracts.ts';
218
+ export { WorkBuddyAdapter, classifyFailure as classifyWorkBuddyFailure } from './host/workbuddy/adapter.ts';
219
+ export { FileCredentialStore as WorkBuddyCredentialStore, FileModelSettingsStore as WorkBuddyModelSettingsStore, modelSettingsPath as workBuddyModelSettingsPath, parseCredentialFile as parseWorkBuddyCredential, registerWorkBuddyPreferenceStore, scanCredentials as scanWorkBuddyCredentials, } from './host/workbuddy/token-store.ts';
220
+ export { fetchAccountQuota as fetchWorkBuddyQuota, clearCachedQuota as clearWorkBuddyQuota, getCachedQuota as getWorkBuddyQuota, clearCachedCatalog as clearWorkBuddyCatalog, loadConfigCatalog as loadWorkBuddyModels, parseConfigModels as parseWorkBuddyConfigModels, refreshCredentials as refreshWorkBuddyCredentials, parseBilling as parseWorkBuddyBilling, } from './host/workbuddy/client.ts';
221
+ export { getWorkBuddyWebStatus, registerWorkBuddyRoutes } from './host/workbuddy/routes.ts';
222
+ export { WorkBuddyCheckinService } from './host/workbuddy/checkin.ts';
223
+ export { FALLBACK_MODELS as WORKBUDDY_MODELS, WORKBUDDY_MODEL_IDS, resolveWorkBuddyModel, modelsForRegion as workBuddyModelsForRegion, } from './host/workbuddy/model-catalog.ts';
224
+ export { QianwenTokenPlanAdapter, readQianwenCacheHint } from './host/qianwen-token-plan/adapter.ts';
225
+ export { registerQianwenTokenPlanRoutes, getQianwenTokenPlanWebStatus } from './host/qianwen-token-plan/routes.ts';
226
+ export { QianwenCredentialStore, QianwenSettingsStore } from './host/qianwen-token-plan/token-store.ts';
227
+ export { QIANWEN_MODEL_CATALOG } from './host/qianwen-token-plan/model-catalog.ts';
228
+ export * from './shared/qianwen-token-plan-contracts.ts';
229
+ export { RelayOneAdapter } from './host/relayone/adapter.ts';
230
+ export { registerRelayOneRoutes, getRelayOneWebStatus, warmRelayOneCatalogOnStartup } from './host/relayone/routes.ts';
231
+ export { RelayOneCredentialStore, RelayOneSettingsStore } from './host/relayone/token-store.ts';
232
+ export { RelayOneCatalogManager } from './host/relayone/catalog-manager.ts';
233
+ export { RelayOneQuotaReader } from './host/relayone/quota.ts';
234
+ export * from './shared/relayone-contracts.ts';
235
+ export { OpenCodeGoAdapter } from './host/opencode-go/adapter.ts';
236
+ export { OpenCodeGoAccountPool, parseOpenCodeGoPoolData } from './host/opencode-go/account-pool.ts';
237
+ export { OpenCodeGoCatalogManager } from './host/opencode-go/model-catalog.ts';
238
+ export { OpenCodeGoSettingsStore } from './host/opencode-go/token-store.ts';
239
+ export { registerOpenCodeGoRoutes, getOpenCodeGoWebStatus } from './host/opencode-go/routes.ts';
240
+ export * from './shared/opencode-go-contracts.ts';
241
+ export { ClaudeApiAdapter } from './host/claude-api/adapter.ts';
242
+ export { registerClaudeApiRoutes, getClaudeApiWebStatus, warmClaudeApiCatalogOnStartup } from './host/claude-api/routes.ts';
243
+ export { ClaudeApiCredentialStore, ClaudeApiSettingsStore } from './host/claude-api/token-store.ts';
244
+ export { ClaudeApiCatalogManager } from './host/claude-api/catalog-manager.ts';
245
+ export { ClaudeApiClientVersionResolver } from './host/claude-api/client-version.ts';
246
+ export { ClaudeApiCompactionStore } from './host/claude-api/compaction-store.ts';
247
+ export * from './shared/claude-api-contracts.ts';
248
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAA;AAElD,OAAO,CAAC,MAAM,0BAA0B,CAAA;AAsBxC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,sCAAsC,CAAA;AAyG/E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAuD5D,UAAU,QAAQ,CAAC,CAAC;IAClB,GAAG,IAAI,CAAC,CAAA;CACT;AAED;;;;;GAKG;AACH,MAAM,WAAW,MAAM;IACrB;;;OAGG;IACH,aAAa,CAAC,EAAE,QAAQ,CAAC,OAAO,CAAC,CAAA;IACjC,oC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qC,CAAA;AAC9E,OAAO,EAAE,uBAAuB,EAAE,MAAM,mCAAmC,CAAA;AAC3E,OAAO,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AAC/F,cAAc,mCAAmC,CAAA;AACjD,OAAO,EAAE,gBAAgB,EAAE,MAAM,8BAA8B,CAAA;AAC/D,OAAO,EAAE,uBAAuB,EAAE,qBAAqB,EAAE,6BAA6B,EAAE,MAAM,6BAA6B,CAAA;AAC3H,OAAO,EAAE,wBAAwB,EAAE,sBAAsB,EAAE,MAAM,kCAAkC,CAAA;AACnG,OAAO,EAAE,uBAAuB,EAAE,MAAM,sCAAsC,CAAA;AAC9E,OAAO,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAA;AACpF,OAAO,EAAE,wBAAwB,EAAE,MAAM,uCAAuC,CAAA;AAChF,cAAc,kCAAkC,CAAA"}
@@ -0,0 +1,99 @@
1
+ /**
2
+ * Shared wire contracts for the multi-account pools every provider line uses.
3
+ *
4
+ * Everything here is public: no credential ever crosses this boundary, only the
5
+ * non-secret facts a settings card needs to render an account list.
6
+ */
7
+ /**
8
+ * How the pool picks the account for the next request.
9
+ *
10
+ * - `sequential` — drain the primary account first, fail over when it cools down.
11
+ * - `round-robin` — spread requests over eligible accounts, least recently used first.
12
+ * - `sticky` — keep the account that served the previous request while it stays eligible.
13
+ */
14
+ export type AccountRotationStrategy = 'sequential' | 'round-robin' | 'sticky';
15
+ /**
16
+ * Permanent routing state of one pooled account.
17
+ *
18
+ * `expired` / `invalid` mean the stored credential can no longer authenticate and
19
+ * the account must be signed in again. The account is kept, not deleted, because
20
+ * signing into it again is what restores it.
21
+ */
22
+ export type AccountAuthStatus = 'ok' | 'expired' | 'invalid';
23
+ /** One account as the settings card renders it. Never carries a secret. */
24
+ export interface PoolAccountSummaryDto {
25
+ id: string;
26
+ alias: string;
27
+ isPrimary: boolean;
28
+ email?: string;
29
+ planLabel?: string;
30
+ /** Unix milliseconds the account last served a request. */
31
+ lastUsedAt?: number;
32
+ /** Unix milliseconds a 429 cooldown lifts; absent when the account is eligible. */
33
+ cooldownUntil?: number;
34
+ cooldownReason?: string;
35
+ /** Permanent auth state; `ok` or absent means routable. */
36
+ authStatus?: AccountAuthStatus;
37
+ authFailedReason?: string;
38
+ /** Unix milliseconds the stored access token expires, when the provider has one. */
39
+ expiresAt?: number;
40
+ /**
41
+ * The newest quota snapshot the host already holds for THIS account.
42
+ *
43
+ * Quota follows the account, not the line: a rotation moves which account
44
+ * spends the next request, so a single line-level quota figure describes
45
+ * whichever account happened to be active when it was read. Every line
46
+ * remembers the snapshot it read per account identity and reports it here, so
47
+ * the account card can draw each account's own progress.
48
+ *
49
+ * Absent means nothing was ever read for this account — which is a different
50
+ * statement from "nothing used", and the reason this field is optional rather
51
+ * than an empty snapshot. Reading quota for every pooled account when the
52
+ * settings page opens would cost one upstream request per account; nothing
53
+ * here triggers a read.
54
+ */
55
+ quota?: PoolAccountQuotaDto;
56
+ /**
57
+ * Whether the card may offer to delete this account.
58
+ *
59
+ * Absent means deletable, which is what every account this plugin signed in
60
+ * is. A provider that adopts accounts it does not own sets this to false so
61
+ * the card offers its own action instead of destroying someone else's file.
62
+ */
63
+ removable?: boolean;
64
+ }
65
+ /**
66
+ * One quota window, normalized so every line's account row draws the same bar.
67
+ *
68
+ * The lines disagree about the wire (buckets, groups, meters, ISO strings,
69
+ * unix seconds, remaining fractions); they agree about this: a window has a
70
+ * name, a consumed share, and usually a moment it reopens.
71
+ */
72
+ export interface PoolAccountQuotaWindowDto {
73
+ /** Display label the line already has, e.g. `5 小时` / `Weekly (7 days)`. */
74
+ label: string;
75
+ /** Share of the window consumed, 0-100. */
76
+ usedPercent: number;
77
+ /** Nominal window length in minutes, when the source stated one. */
78
+ windowDurationMins?: number | null;
79
+ /** Unix milliseconds the window reopens, when the source stated one. */
80
+ resetsAt?: number | null;
81
+ }
82
+ /** The newest quota snapshot one line holds for one account. */
83
+ export interface PoolAccountQuotaDto {
84
+ /**
85
+ * Windows in the order the line's own card lists them, unlabeled ones
86
+ * included: no code sorts this list, and the lines that know a window's length
87
+ * happen to state the shortest first.
88
+ */
89
+ windows: PoolAccountQuotaWindowDto[];
90
+ /** Unix milliseconds this snapshot was read, never when it was served. */
91
+ fetchedAt: number;
92
+ }
93
+ /** The pool slice every provider status DTO carries. */
94
+ export interface AccountPoolStatusDto {
95
+ accounts: PoolAccountSummaryDto[];
96
+ activeAccountId?: string;
97
+ rotationStrategy: AccountRotationStrategy;
98
+ }
99
+ //# sourceMappingURL=account-pool-contracts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-pool-contracts.d.ts","sourceRoot":"","sources":["../../../src/shared/account-pool-contracts.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH;;;;;;GAMG;AACH,MAAM,MAAM,uBAAuB,GAAG,YAAY,GAAG,aAAa,GAAG,QAAQ,CAAA;AAE7E;;;;;;GAMG;AACH,MAAM,MAAM,iBAAiB,GAAG,IAAI,GAAG,SAAS,GAAG,SAAS,CAAA;AAE5D,2EAA2E;AAC3E,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,MAAM,CAAA;IACb,SAAS,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,2DAA2D;IAC3D,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,mFAAmF;IACnF,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,cAAc,CAAC,EAAE,MAAM,CAAA;IACvB,2DAA2D;IAC3D,UAAU,CAAC,EAAE,iBAAiB,CAAA;IAC9B,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,oFAAoF;IACpF,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB;;;;;;;;;;;;;;OAcG;IACH,KAAK,CAAC,EAAE,mBAAmB,CAAA;IAC3B;;;;;;OAMG;IACH,SAAS,C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