@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,172 @@
1
+ /**
2
+ * Chinese copy for everything the Host says on its own.
3
+ *
4
+ * The key set here is the source of truth: `en` and `ru` are typed against
5
+ * `keyof typeof zh`, so a key added here fails to compile until both other
6
+ * languages carry it too. Values keep the exact wording the plugin shipped
7
+ * before it spoke three languages — `zh` is the default locale, and a
8
+ * regression in Chinese is a regression for every existing install.
9
+ */
10
+ export declare const zh: {
11
+ readonly 'provider.codex-chatgpt': "Codex(ChatGPT 订阅)";
12
+ readonly 'provider.claude': "Claude(订阅)";
13
+ readonly 'provider.workbuddy': "WorkBuddy(CodeBuddy 订阅)";
14
+ readonly 'provider.glm-coding-plan': "GLM(ZCode 账号)";
15
+ readonly 'provider.minimax-code': "MiniMax Code(编程订阅)";
16
+ readonly 'provider.qoder': "Qoder(订阅)";
17
+ readonly 'provider.step-code': "Step Code(Step Plan 订阅)";
18
+ readonly 'pool.maxAccounts': "{provider} 号池最多支持 {max} 个账号,请先删除不再使用的账号。";
19
+ readonly 'pool.notSignedIn': "未登录 {provider} 账号,请先在设置页添加账号。";
20
+ readonly 'pool.allNeedSignIn': "全部 {count} 个 {provider} 账号均需要重新登录。";
21
+ readonly 'pool.credentialRejected': "{provider} 账号的凭据已被拒绝,需要重新登录。";
22
+ readonly 'pool.allUnavailable': "全部 {count} 个 {provider} 账号当前都不可用,且没有处于冷却中的账号。";
23
+ readonly 'pool.allCoolingDown': "全部 {count} 个 {provider} 账号均处于配额限制或冷却中 (429)。最短预计在 {minutes} 分钟后解除冷却。";
24
+ readonly 'codex.refresherNotReady': "ChatGPT 凭据刷新服务尚未就绪";
25
+ readonly 'codex.notSignedIn': "未登录 ChatGPT 账号,请在「设置 → 订阅服务 → ChatGPT」中添加并登录账号。";
26
+ readonly 'codex.accountGone': "ChatGPT 账号已不在号池中";
27
+ readonly 'wb.oauth.loginInitFailed': "{provider} 登录初始化失败(HTTP {status}):{detail}";
28
+ readonly 'wb.oauth.loginMissingState': "{provider} 登录响应缺少 state 或 authUrl";
29
+ readonly 'wb.oauth.loginPollInvalid': "{provider} 登录轮询响应无效";
30
+ readonly 'wb.oauth.loginFailed': "{provider} 登录失败:{detail}";
31
+ readonly 'wb.oauth.loginMissingToken': "{provider} 登录成功响应缺少 access token";
32
+ readonly 'wb.oauth.loginPollFailed': "{provider} 登录轮询失败(HTTP {status}):{detail}";
33
+ readonly 'wb.oauth.loginPollNotJson': "{provider} 登录轮询返回了非 JSON 响应";
34
+ readonly 'wb.oauth.waitingBrowser': "等待浏览器授权…";
35
+ readonly 'wb.oauth.waitingBrowserElapsed': "等待浏览器授权…({seconds} 秒)";
36
+ readonly 'wb.oauth.authorized': "授权完成";
37
+ readonly 'wb.oauth.loginTimeout': "登录超时,请重新添加账号。";
38
+ readonly 'wb.pool.pausedDefault': "号池已暂停。";
39
+ readonly 'wb.pool.accountLabel': "账号 {position}";
40
+ readonly 'wb.pool.paused': "{provider} 号池已暂停:{reason} 预计 {minutes} 分钟后自动恢复;被上游限制的账号需要重新登录后才能回到轮换。";
41
+ readonly 'wb.pool.notAccountScoped': "{provider} 号池只记录账号级限制({expected}),收到业务码 {code};11128 与 11158 不是账号级拒绝,必须由协议层分别处理。";
42
+ readonly 'wb.pool.upstreamRefused': "上游以 {code} 在 {minutes} 分钟内拒绝了 {count} 个不同账号";
43
+ readonly 'wb.pool.desktopAccountUndeletable': "桌面账号由 CodeBuddy 客户端所有,只能隐藏,不能删除。";
44
+ readonly 'qo.modelResolveAborted': "{provider} 模型解析已取消";
45
+ readonly 'qo.requestAborted': "{provider} 请求已取消";
46
+ readonly 'qo.requestFailed': "{provider} 请求失败:{detail}";
47
+ readonly 'qo.emptyBody': "{provider} 返回了空响应体";
48
+ readonly 'qo.noBrowserOutsideGlobal': "{provider} 全球区以外的部署不支持浏览器登录";
49
+ readonly 'qo.devicePollFailed': "{provider} 设备轮询失败(HTTP {status}){detail}";
50
+ readonly 'qo.devicePollNotJson': "{provider} 设备轮询响应不是 JSON 对象";
51
+ readonly 'qo.devicePollNoToken': "{provider} 设备轮询的 200 响应里没有 token";
52
+ readonly 'qo.patEmpty': "{provider} 的 PAT 是空的。";
53
+ readonly 'qo.noRefreshToken': "{provider} 的这份凭据没有刷新令牌,只有重新登录才能续期。";
54
+ readonly 'qo.cnNoBrowserLogin': "{provider} 中国站不支持浏览器登录,请改用 PAT({patPage})或导入本机 qodercli 登录态。";
55
+ readonly 'qo.waitingBrowserPoll': "等待浏览器授权…(每 {seconds} 秒查询一次)";
56
+ readonly 'qo.loginTimeout': "{provider} 登录超时:没有在有效期内完成浏览器授权。";
57
+ readonly 'qo.authorized': "授权完成";
58
+ readonly 'qo.cancelled': "操作已取消";
59
+ readonly 'qo.poolPayloadInvalid': "{provider} 号池载荷无效";
60
+ readonly 'qo.poolEmpty': "{provider} 号池中没有账号。";
61
+ readonly 'qo.userinfoFailed': "{provider} userinfo 请求失败(HTTP {status}){detail}";
62
+ readonly 'qo.userinfoNotJson': "{provider} userinfo 响应不是 JSON 对象";
63
+ readonly 'qo.patExchangeNotJson': "{provider} PAT 兑换响应不是 JSON 对象";
64
+ readonly 'qo.patExchangeNoToken': "{provider} PAT 兑换响应里没有 token";
65
+ readonly 'qo.refreshFailed': "{provider} 令牌刷新失败(HTTP {status})";
66
+ readonly 'qo.refreshNotJson': "{provider} 令牌刷新响应不是 JSON 对象";
67
+ readonly 'qo.refreshNoToken': "{provider} 令牌刷新响应里没有 token";
68
+ readonly 'qo.quotaHttp': "额度接口返回 HTTP {status}{detail}";
69
+ readonly 'qo.quotaNoBucket': "额度响应里没有认识的额度桶(上游可能改版)。";
70
+ readonly 'qo.poolNotInstalled': "账号池未安装。";
71
+ readonly 'qo.unknownStrategy': "未知的轮转策略。";
72
+ readonly 'qo.unknownAccountAction': "未知的账号操作:{action}";
73
+ readonly 'qo.pastePat': "请粘贴一个 Personal Access Token(pt-...)。";
74
+ readonly 'qo.notSignedIn': "还没有登录 {provider} 账号。";
75
+ readonly 'qo.catalogHttp': "目录接口返回 HTTP {status}";
76
+ readonly 'qo.credentialFieldInvalid': "{provider} 凭据字段无效:{key}";
77
+ readonly 'qo.credentialPayloadInvalid': "{provider} 凭据载荷无效";
78
+ readonly 'qo.credentialNoToken': "{provider} 凭据缺少 accessToken";
79
+ readonly 'qo.credentialRegionInvalid': "{provider} 凭据的 region 无效";
80
+ readonly 'qo.storeUnsupportedPlatform': "{label} 凭据存储只支持 Windows、macOS 或 Linux。";
81
+ readonly 'qo.encryptedWriteVerifyFailed': "{provider} 加密凭据写入校验失败";
82
+ readonly 'qo.modelSettingsWriteFailed': "{provider} 模型设置写入失败:落盘的选择与刚写入的不一致";
83
+ readonly 'sc.poolAccountFieldInvalid': "{provider} 号池账号字段无效:{key}";
84
+ readonly 'sc.poolCredentialInvalid': "{provider} 号池凭据无效";
85
+ readonly 'sc.poolCredentialNoAccess': "{provider} 号池凭据缺少 access";
86
+ readonly 'sc.poolCredentialProfileInvalid': "{provider} 号池凭据的 profile 无效";
87
+ readonly 'sc.poolPayloadInvalid': "{provider} 号池载荷无效";
88
+ readonly 'sc.poolEmpty': "{provider} 号池中没有账号。";
89
+ readonly 'sc.modelResolveAborted': "{provider} 模型解析已取消";
90
+ readonly 'sc.requestAborted': "{provider} 请求已取消";
91
+ readonly 'sc.requestFailed': "{provider} 请求失败:{detail}";
92
+ readonly 'sc.noResponse': "{provider} 没有返回任何响应";
93
+ readonly 'sc.emptyBody': "{provider} 返回了空响应体";
94
+ readonly 'sc.poolNotInstalled': "账号池未安装。";
95
+ readonly 'sc.unknownStrategy': "未知的轮转策略。";
96
+ readonly 'sc.unknownAccountAction': "未知的账号操作:{action}";
97
+ readonly 'sc.pastePlatformKey': "请粘贴一个 Platform API Key。";
98
+ readonly 'sc.missingAccount': "请填写账号。";
99
+ readonly 'sc.missingPassword': "请填写密码。";
100
+ readonly 'sc.unknownQuotaCredentialMode': "未知的额度凭据提交方式:{mode}";
101
+ readonly 'sc.notSignedIn': "还没有登录 {provider} 账号。";
102
+ readonly 'sc.catalogHttp': "目录接口返回 HTTP {status}";
103
+ readonly 'sc.loginPhaseFailed': "{provider} 登录 {phase} {detail}";
104
+ readonly 'sc.loginRequestTimeout': "{provider} 登录请求超时";
105
+ readonly 'sc.authorizeUrlInvalid': "{provider} 的授权地址不是合法 URL:{value}";
106
+ readonly 'sc.authorizeUrlNotHttps': "{provider} 的授权地址必须使用 https";
107
+ readonly 'sc.authorizeUrlHasCredentials': "{provider} 的授权地址不得包含用户名或密码";
108
+ readonly 'sc.cancelled': "操作已取消";
109
+ readonly 'sc.loginTimeout': "{provider} 登录超时:没有在有效期内完成浏览器授权。";
110
+ readonly 'sc.pollTokenEmpty': "{provider} 登录的 poll_token 不能为空";
111
+ readonly 'sc.loginNoApiKey': "{provider} 登录成功但没有拿到 api_key";
112
+ readonly 'sc.apiKeyEmpty': "{provider} API Key 是空的。";
113
+ readonly 'sc.waitingBrowserPoll': "等待浏览器授权…(每 {seconds} 秒查询一次)";
114
+ readonly 'sc.authorized': "授权完成";
115
+ readonly 'sc.credentialFieldInvalid': "{provider} 凭据字段无效:{key}";
116
+ readonly 'sc.credentialPayloadInvalid': "{provider} 凭据载荷无效";
117
+ readonly 'sc.credentialNoApiKey': "{provider} 凭据缺少 apiKey";
118
+ readonly 'sc.credentialProfileInvalid': "{provider} 凭据的 profile 无效";
119
+ readonly 'sc.storeUnsupportedPlatform': "{label} 凭据存储只支持 Windows、macOS 或 Linux。";
120
+ readonly 'sc.encryptedWriteVerifyFailed': "{provider} 加密凭据写入校验失败";
121
+ readonly 'sc.quotaCredentialPayloadInvalid': "{provider} 额度凭据载荷无效";
122
+ readonly 'sc.quotaCredentialNoToken': "{provider} 额度凭据缺少 Oasis-Token";
123
+ readonly 'sc.quotaCredentialNoDeviceId': "{provider} 额度凭据缺少 Oasis-Webid";
124
+ readonly 'sc.quotaCredentialWriteVerifyFailed': "{provider} 额度凭据写入校验失败";
125
+ readonly 'sc.modelSettingsWriteFailed': "{provider} 模型设置写入失败:落盘的选择与刚写入的不一致";
126
+ readonly 'glm.quotaNeedsKey': "{provider} 的配额接口需要一把 Coding Plan Key(裸值,不加 Bearer);空凭据不会变成一个能通过鉴权的请求。";
127
+ readonly 'glm.catalogNotJson': "{provider} 返回的模型目录不是可读的 JSON:{url}";
128
+ readonly 'glm.quotaNeedsKeyShort': "{provider} 的配额读取需要一把 Coding Plan Key(裸值,不加 Bearer)。";
129
+ readonly 'glm.quotaUnreachable': "配额接口不可达:{detail}";
130
+ readonly 'glm.quotaHttp': "配额查询失败(HTTP {status})";
131
+ readonly 'glm.quotaNotJson': "配额查询返回的不是 JSON。";
132
+ readonly 'glm.quotaNoWindow': "上游没有返回可显示的额度窗口。";
133
+ readonly 'glm.cooldownUntilReset': "{provider} 429:用量窗口将于 {at} 重置";
134
+ readonly 'glm.cooldownRetryAfter': "{provider} 429:上游要求 {seconds} 秒后再试";
135
+ readonly 'glm.cooldownNoReset': "{provider} 429:上游未给重置时刻,按 5 分钟冷却";
136
+ readonly 'glm.modelResolveAborted': "{provider} 模型解析已取消";
137
+ readonly 'glm.requestAborted': "{provider} 请求已取消";
138
+ readonly 'glm.requestFailed': "{provider} 请求失败:{detail}";
139
+ readonly 'glm.noResponse': "{provider} 没有返回任何响应";
140
+ readonly 'glm.emptyBody': "{provider} 返回了空响应体";
141
+ readonly 'glm.anthropicEmpty': "{provider} 的 Anthropic 面没有返回任何内容";
142
+ readonly 'glm.waitingBrowser': "等待你在浏览器里完成授权…";
143
+ readonly 'glm.connectingUpstream': "连接上游失败,正在重试…";
144
+ readonly 'glm.upstreamUnavailable': "上游暂时不可用(HTTP {status}),正在重试…";
145
+ readonly 'glm.upstreamRetryLater': "上游要求稍后再试(HTTP {status}),正在重试…";
146
+ readonly 'glm.pollRejected': "ZCode 登录轮询被拒绝(HTTP {status}):{url}";
147
+ readonly 'glm.unparsableRetry': "上游返回了无法解析的响应,正在重试…";
148
+ readonly 'glm.pollBusinessCode': "ZCode 登录轮询返回业务错误码 {code}{detail}";
149
+ readonly 'glm.readyNoToken': "就绪响应缺少 access_token,正在重试…";
150
+ readonly 'glm.sessionCancelled': "这次登录已经取消或已经过期,请重新发起登录。";
151
+ readonly 'glm.loginTimeout': "登录超时:上游在 {at} 之前没有完成授权。";
152
+ readonly 'glm.noSession': "当前没有进行中的 GLM 登录流程可供补全。";
153
+ readonly 'glm.authorizationDenied': "授权被拒绝:{denial}";
154
+ readonly 'glm.notAuthorizationCode': "这看起来不是授权码,也不是完整的回调链接(里面没有 code 参数)。";
155
+ readonly 'glm.callbackReceived': "已收到回调,正在向上游确认…";
156
+ readonly 'glm.poolNotInstalled': "账号池未安装。";
157
+ readonly 'glm.unknownStrategy': "未知的轮转策略。";
158
+ readonly 'glm.unknownAccountAction': "未知的账号操作:{action}";
159
+ readonly 'glm.pasteCallback': "请粘贴回调链接或授权码。";
160
+ readonly 'glm.noLoginInProgress': "当前没有进行中的登录流程,请先点击登录。";
161
+ readonly 'glm.notSignedIn': "还没有登录 {provider} 账号。";
162
+ readonly 'provider.qianwen-token-plan': "Qwen Token Plan(千问)";
163
+ readonly 'provider.relayone': "RelayOne";
164
+ readonly 'provider.claude-api': "Claude API";
165
+ readonly 'provider.opencode-go': "OpenCode Go(订阅)";
166
+ readonly 'qwen.notConfigured': "请先在设置页配置 Qwen Token Plan API Key。";
167
+ readonly 'qwen.invalidApiKey': "Qwen Token Plan API Key 为空或长度无效。";
168
+ readonly 'qwen.responseMissingChoices': "千问上游应答缺少 choices。";
169
+ };
170
+ /** Every Host copy key this plugin has. */
171
+ export type HostLocaleKey = keyof typeof zh;
172
+ //# sourceMappingURL=zh.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"zh.d.ts","sourceRoot":"","sources":["../../../../../src/host/common/i18n/zh.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2KL,CAAA;AAEV,2CAA2C;AAC3C,MAAM,MAAM,aAAa,GAAG,MAAM,OAAO,EAAE,CAAA"}
@@ -0,0 +1,58 @@
1
+ /**
2
+ * How long one stream may go without a single byte before it is called stalled.
3
+ *
4
+ * Strictly INSIDE the transport's own deadline on purpose. undici answers a
5
+ * stalled HTTP/2 stream at exactly 300 s, so the 300 s every line used to carry
6
+ * never decided anything: the watchdog and the transport expired together, the
7
+ * transport error won the race, and the turn paid the full five minutes of
8
+ * silence before DSH could retry — reported as a severed connection rather than
9
+ * as a stalled one. Two minutes is measured rather than guessed: over the 104
10
+ * requests of the session that prompted this value, the longest wait from a step
11
+ * starting to its first chunk was 65 s (a 210k-token prompt), and the longest
12
+ * silence once chunks were flowing was 6.4 s across 6,539 measured gaps. The
13
+ * adapters also pulse the watchdog when the response headers arrive, so a slow
14
+ * prefill is budgeted apart from in-stream silence instead of being read as a
15
+ * dead stream.
16
+ *
17
+ * `ollama/types.ts` deliberately keeps a longer budget: local inference is
18
+ * compute-bound, and a large prompt can legitimately take minutes to answer.
19
+ */
20
+ export declare const DEFAULT_STREAM_IDLE_TIMEOUT_MS = 120000;
21
+ export declare const STREAM_IDLE_TIMEOUT_CODE = "LLM_STREAM_IDLE_TIMEOUT";
22
+ /**
23
+ * The same budget under the name every provider adapter passes it by.
24
+ *
25
+ * Six provider `types.ts` files each declare their own
26
+ * `STREAM_IDLE_TIMEOUT_MS`, so one line ended up importing a sibling line's copy
27
+ * just to name the same number. This alias is the single home: an adapter that
28
+ * took the constant from another line can take it from here without renaming its
29
+ * local usage, and a line whose budget is its own (ollama) says so in its own
30
+ * `types.ts`.
31
+ */
32
+ export declare const STREAM_IDLE_TIMEOUT_MS = 120000;
33
+ /**
34
+ * 传输层活动上报器。
35
+ *
36
+ * 计时以「收到传输层数据」为判据,而不是「解析器是否 yield 了可展示片段」:
37
+ * 业务过滤、展示缓冲、摘要截断都只影响展示,不改变连接是否活着。
38
+ */
39
+ export interface StreamActivity {
40
+ /** 上报一次不产生消费端可见 chunk 的传输活动,用于重新计时。 */
41
+ pulse(): void;
42
+ }
43
+ /** 看门狗包裹的流工厂:第二个参数可选,旧的单参调用点仍然合法。 */
44
+ export type WatchdogSource<T> = (signal: AbortSignal, activity: StreamActivity) => AsyncIterable<T>;
45
+ /**
46
+ * 为异步流包裹可复位的空闲超时看门狗。
47
+ *
48
+ * 当流式 chunk 产出之间的间隔超过 `timeoutMs` 时,主动终止并抛出带有 TIMEOUT 的
49
+ * LlmError。
50
+ *
51
+ * 可选的 `firstValueTimeoutMs` 给「第一个值之前」换一个窗口:响应头回到、首个
52
+ * chunk 尚未产出的那段静默,是模型在预填充或思考,长度随模型与上下文变化,与
53
+ * 「流已经开始却卡住」不是同一件事。首个 chunk 一出去就切回 `timeoutMs`,所以
54
+ * 放宽首帧窗口不会让真正卡住的流多等。省略该参数(或传入与 `timeoutMs` 相等的
55
+ * 值)时只有一段窗口,行为与此前完全一致。
56
+ */
57
+ export declare function wrapStreamWithWatchdog<T>(source: WatchdogSource<T>, upstreamSignal: AbortSignal | undefined, timeoutMs?: number, timeoutCode?: string, providerTag?: string, firstValueTimeoutMs?: number): AsyncIterable<T>;
58
+ //# sourceMappingURL=idle-watchdog.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"idle-watchdog.d.ts","sourceRoot":"","sources":["../../../../src/host/common/idle-watchdog.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;GAkBG;AACH,eAAO,MAAM,8BAA8B,SAAU,CAAA;AACrD,eAAO,MAAM,wBAAwB,4BAA4B,CAAA;AAEjE;;;;;;;;;GASG;AACH,eAAO,MAAM,sBAAsB,SAAiC,CAAA;AAEpE;;;;;GAKG;AACH,MAAM,WAAW,cAAc;IAC7B,uCAAuC;IACvC,KAAK,IAAI,IAAI,CAAA;CACd;AAED,qCAAqC;AACrC,MAAM,MAAM,cAAc,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,WAAW,EAAE,QAAQ,EAAE,cAAc,KAAK,aAAa,CAAC,CAAC,CAAC,CAAA;AA0BnG;;;;;;;;;;;GAWG;AACH,wBAAuB,sBAAsB,CAAC,CAAC,EAC7C,MAAM,EAAE,cAAc,CAAC,CAAC,CAAC,EACzB,cAAc,EAAE,WAAW,GAAG,SAAS,EACvC,SAAS,GAAE,MAAuC,EAClD,WAAW,GAAE,MAAiC,EAC9C,WAAW,GAAE,MAAc,EAC3B,mBAAmB,CAAC,EAAE,MAAM,GAC3B,aAAa,CAAC,CAAC,CAAC,CA8DlB"}
@@ -0,0 +1,29 @@
1
+ /**
2
+ * One-time import of the preferences earlier releases kept in the harness's own
3
+ * settings document.
4
+ *
5
+ * Before harness 0.1.7 the plugin registered the `dsh-chatgpt-subscription`
6
+ * namespace, so the harness persisted these preferences into
7
+ * `$DSH_HOME/settings.yaml`. That document no longer exists from 0.1.7 on — the
8
+ * plugin owns its storage there — so a generation without the register seam reads
9
+ * the old section once and seeds the plugin document from it. A harness that
10
+ * moved the document itself renames it to `settings.yaml.imported`, which is why
11
+ * both names are read.
12
+ *
13
+ * The section is read from text rather than through a YAML dependency: this
14
+ * package ships no YAML parser, and only its own four shapes ever appear under
15
+ * that key — scalars, one nested map (`contextWindowOverrides`), block sequences
16
+ * (`visibleModelIds`), and inline flow arrays. Anything the reader cannot make
17
+ * sense of is left out, and the schema that validates the document decides what
18
+ * the values mean.
19
+ * @module dsh-multi-provider/legacy-preferences
20
+ */
21
+ /**
22
+ * Read the plugin's preferences out of the settings documents of earlier releases.
23
+ *
24
+ * @param homeDir - Harness home holding the documents; defaults to the live one.
25
+ * @returns The stored preference values, or `undefined` when no document carries
26
+ * a non-empty section for this plugin.
27
+ */
28
+ export declare function readLegacyPreferences(homeDir?: string): Promise<Record<string, unknown> | undefined>;
29
+ //# sourceMappingURL=legacy-preferences.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"legacy-preferences.d.ts","sourceRoot":"","sources":["../../../../src/host/common/legacy-preferences.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAUH;;;;;;GAMG;AACH,wBAAsB,qBAAqB,CAAC,OAAO,SAAe,GAAG,OAAO,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,SAAS,CAAC,CAQhH"}
@@ -0,0 +1,157 @@
1
+ /**
2
+ * Version bridge for the harness conversation model.
3
+ *
4
+ * Harness 0.1.7 flattened tool results: `tool-result` stopped being a content
5
+ * block inside a user-role message and became a first-class `role: 'tool'`
6
+ * message carrying `toolCallId`/`isError` directly, while
7
+ * `GenerateOptions.messages` widened from `Message[]` to `RequestMessage[]` and
8
+ * `MessageSourceMap` lost its catch-all `plugin` kind.
9
+ *
10
+ * Every mapper in this package reads the pre-0.1.7 vocabulary, so the request
11
+ * path normalizes once at the adapter boundary ({@link normalizeGenerateOptions})
12
+ * and the mappers keep one vocabulary on every supported harness generation.
13
+ * The types below are that vocabulary: real harness block types for everything
14
+ * the two generations share, plus this package's own `tool-result` block.
15
+ *
16
+ * @module dsh-multi-provider/llm-compat
17
+ */
18
+ import { LlmError as HarnessLlmError, type ContentBlock as HarnessContentBlock, type GenerateOptions as HarnessGenerateOptions, type ToolSchema as HarnessToolSchema } from '@deepseek-ai/dsh-llm';
19
+ import type { ContextFormed } from '@deepseek-ai/dsh-llm/message';
20
+ export { type FinishReason, type StreamChunk, type TokenUsage, } from '@deepseek-ai/dsh-llm';
21
+ export type LlmErrorOptionsCompat = ConstructorParameters<typeof HarnessLlmError>[2];
22
+ export interface LlmErrorConstructorCompat {
23
+ new (message: string, code: string, options?: LlmErrorOptionsCompat): HarnessLlmError;
24
+ readonly prototype: HarnessLlmError;
25
+ }
26
+ export type LlmError = HarnessLlmError;
27
+ /**
28
+ * `@deepseek-ai/dsh-llm@0.2.2-rc.3` 将 `new LlmError(msg, code, options)` 的第 2 参数收窄为
29
+ * `BuiltinLlmFailureCode`,但运行时构造函数与 `LlmFailure.code` 仍接受任意非空字符串,
30
+ * 且插件各线路长期使用 `PROVIDER_ERROR` / `UPSTREAM` 等自定义码。这里保持同一运行时引用,
31
+ * 仅在编译期将 `code` 放宽为 `string` 以同时兼容全世代 harness。
32
+ */
33
+ export declare const LlmError: LlmErrorConstructorCompat;
34
+ declare module '@deepseek-ai/dsh-llm' {
35
+ interface MessageSourceMap {
36
+ /** Content this package injects into a request no user turn produced. */
37
+ 'dsh-multi-provider': {
38
+ kind: 'dsh-multi-provider';
39
+ } & ContextFormed;
40
+ }
41
+ }
42
+ /** This package's kind in the harness message-source map. */
43
+ export declare const PLUGIN_MESSAGE_SOURCE_KIND: "dsh-multi-provider";
44
+ /** The result of a tool invocation as every harness generation before 0.1.7 carried it. */
45
+ export interface ToolResultBlock {
46
+ type: 'tool-result';
47
+ toolCallId: string;
48
+ content: ContentBlock[];
49
+ isError?: boolean;
50
+ }
51
+ export interface ToolAdditionBlock {
52
+ type: 'tool-addition';
53
+ toolName: string;
54
+ }
55
+ export interface ToolRemovalBlock {
56
+ type: 'tool-removal';
57
+ toolName: string;
58
+ }
59
+ /**
60
+ * Every content block the mappers read.
61
+ *
62
+ * Harness blocks the two generations share stay harness-typed — 0.1.7 dropped
63
+ * the harness's own `tool-result` arm, and `Exclude` removes it where an older
64
+ * harness still declares one — and {@link ToolResultBlock} supplies the single
65
+ * spelling the mappers pattern-match on.
66
+ */
67
+ export type ContentBlock = Exclude<HarnessContentBlock, {
68
+ type: 'tool-result';
69
+ }> | ToolResultBlock | ToolAdditionBlock | ToolRemovalBlock;
70
+ /**
71
+ * Blocks this package hands back to the harness.
72
+ *
73
+ * Emission sites build text, reasoning, tool-call, and image blocks only; the
74
+ * harness has no `tool-result` block to accept one, so outbound values are the
75
+ * shared harness blocks without it.
76
+ */
77
+ export type OutboundContentBlock = Exclude<ContentBlock, ToolResultBlock | ToolAdditionBlock | ToolRemovalBlock>;
78
+ /** Producer-declared provenance, read for `kind` and the model replay envelope. */
79
+ export interface MessageSource {
80
+ readonly kind: string;
81
+ readonly callId?: unknown;
82
+ readonly provider?: unknown;
83
+ readonly replayState?: unknown;
84
+ readonly complete?: unknown;
85
+ readonly reset?: unknown;
86
+ readonly sections?: readonly unknown[];
87
+ }
88
+ /** One conversation message in the vocabulary the mappers read. */
89
+ export interface Message {
90
+ readonly id?: unknown;
91
+ readonly role: 'system' | 'developer' | 'user' | 'assistant';
92
+ readonly content: ContentBlock[];
93
+ readonly source?: MessageSource;
94
+ }
95
+ type HarnessToolHistory = HarnessGenerateOptions extends {
96
+ toolHistory?: infer History;
97
+ } ? History : unknown;
98
+ /** Request options carrying the normalized conversation. */
99
+ export type GenerateOptions = Omit<HarnessGenerateOptions, 'messages' | 'tools' | 'purpose'> & {
100
+ messages: Message[];
101
+ tools?: Array<HarnessToolSchema & {
102
+ deferLoading?: true;
103
+ }>;
104
+ toolHistory?: HarnessToolHistory;
105
+ /** Forward auxiliary-request metadata without requiring each producer's declaration at this boundary. */
106
+ purpose?: string;
107
+ };
108
+ /**
109
+ * Extract system-message text blocks joined by blank lines, matching DSH 0.2.3+
110
+ * `extractTextContent(content, { separator: '\n\n', trim: true })` (PR #6941).
111
+ *
112
+ * Since DSH 0.2.3-alpha.1 a single `system/message` can hold one `TextBlock`
113
+ * per prompt section with no trailing newline. Joining blocks with `''` glues
114
+ * sections together; joining trimmed non-empty blocks with `'\n\n'` preserves
115
+ * section boundaries for every provider line.
116
+ */
117
+ export declare function extractSystemText(content: unknown, sanitize?: (text: string) => string): string;
118
+ /**
119
+ * End index (exclusive) of the leading contiguous `role: 'system'` prefix.
120
+ *
121
+ * Only messages before this index belong to the initial top-level system prompt;
122
+ * any `role: 'system'` message at or after this index is a mid-conversation
123
+ * incremental update that must stay in-position to preserve prompt prefix caches.
124
+ */
125
+ export declare function leadingSystemEndIndex(messages: readonly Message[], includeLeading?: (message: Message) => boolean): number;
126
+ /**
127
+ * Wrap a mid-conversation `role: 'system'` update as a `<system-reminder>` tag,
128
+ * matching DSH's own pi-ai fallback (`packages/llm/llm-pi-ai/src/context.ts`).
129
+ */
130
+ export declare function formatMidConversationSystemReminder(text: string): string;
131
+ /**
132
+ * Convert a mid-conversation `role: 'system'` message into an in-place `user`
133
+ * `<system-reminder>` message, preserving any non-text blocks (e.g. images) if present.
134
+ * Returns `undefined` when the message carries neither non-empty text nor non-text blocks.
135
+ */
136
+ export declare function midConversationSystemToUserMessage(message: Message, sanitize?: (text: string) => string): Message | undefined;
137
+ /**
138
+ * Normalize one harness message list into {@link Message}.
139
+ *
140
+ * A 0.1.7 `role: 'tool'` message is re-wrapped as the user-role message holding
141
+ * one {@link ToolResultBlock} that the mappers expect, keeping the tool
142
+ * provenance (`kind: 'tool'`) they use to tell a real tool result from a user
143
+ * turn. A message that already carries that block keeps its own body instead of
144
+ * nesting a second `tool-result` around it. A 0.2.3+ multi-block text-only
145
+ * `role: 'system'` message is pre-joined with `'\n\n'` so downstream consumers
146
+ * never glue sections together. Everything else keeps its own shape.
147
+ * @param messages - Messages straight off the request options, in either generation's shape.
148
+ * @returns The same conversation in the pre-0.1.7 vocabulary.
149
+ */
150
+ export declare function normalizeMessages(messages: readonly unknown[] | undefined): Message[];
151
+ /**
152
+ * Normalize request options for the mappers.
153
+ * @param options - Request options the harness handed the adapter.
154
+ * @returns The same options with {@link Message} history.
155
+ */
156
+ export declare function normalizeGenerateOptions(options: HarnessGenerateOptions): GenerateOptions;
157
+ //# sourceMappingURL=llm-compat.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"llm-compat.d.ts","sourceRoot":"","sources":["../../../../src/host/common/llm-compat.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EACL,QAAQ,IAAI,eAAe,EAC3B,KAAK,YAAY,IAAI,mBAAmB,EACxC,KAAK,eAAe,IAAI,sBAAsB,EAC9C,KAAK,UAAU,IAAI,iBAAiB,EACrC,MAAM,sBAAsB,CAAA;AAC7B,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,8BAA8B,CAAA;AAEjE,OAAO,EACL,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,UAAU,GAChB,MAAM,sBAAsB,CAAA;AAE7B,MAAM,MAAM,qBAAqB,GAAG,qBAAqB,CAAC,OAAO,eAAe,CAAC,CAAC,CAAC,CAAC,CAAA;AAEpF,MAAM,WAAW,yBAAyB;IACxC,KAAK,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,qBAAqB,GAAG,eAAe,CAAA;IACrF,QAAQ,CAAC,SAAS,EAAE,eAAe,CAAA;CACpC;AAED,MAAM,MAAM,QAAQ,GAAG,eAAe,CAAA;AAEtC;;;;;GAKG;AACH,eAAO,MAAM,QAAQ,EAAE,yBACkC,CAAA;AAEzD,OAAO,QAAQ,sBAAsB,CAAC;IACpC,UAAU,gBAAgB;QACxB,yEAAyE;QACzE,oBAAoB,EAAE;YAAE,IAAI,EAAE,oBAAoB,CAAA;SAAE,GAAG,aAAa,CAAA;KACrE;CACF;AAED,6DAA6D;AAC7D,eAAO,MAAM,0BAA0B,EAAG,oBAA6B,CAAA;AAEvE,2FAA2F;AAC3F,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,aAAa,CAAA;IACnB,UAAU,EAAE,MAAM,CAAA;IAClB,OAAO,EAAE,YAAY,EAAE,CAAA;IACvB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB;AAED,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,eAAe,CAAA;IACrB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,cAAc,CAAA;IACpB,QAAQ,EAAE,MAAM,CAAA;CACjB;AAED;;;;;;;GAOG;AACH,MAAM,MAAM,YAAY,GAAG,OAAO,CAAC,mBAAmB,EAAE;IAAE,IAAI,EAAE,aAAa,CAAA;CAAE,CAAC,GAC5E,eAAe,GACf,iBAAiB,GACjB,gBAAgB,CAAA;AAEpB;;;;;;GAMG;AACH,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC,YAAY,EAAE,eAAe,GAAG,iBAAiB,GAAG,gBAAgB,CAAC,CAAA;AAEhH,mFAAmF;AACnF,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAA;IACrB,QAAQ,CAAC,MAAM,CAAC,EAAE,OAAO,CAAA;IACzB,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAC3B,QAAQ,CAAC,WAAW,CAAC,EAAE,OAAO,CAAA;IAC9B,QAAQ,CAAC,QAAQ,CAAC,EAAE,OAAO,CAAA;IAC3B,QAAQ,CAAC,KAAK,CAAC,EAAE,OAAO,CAAA;IACxB,QAAQ,CAAC,QAAQ,CAAC,EAAE,SAAS,OAAO,EAAE,CAAA;CACvC;AAED,mEAAmE;AACnE,MAAM,WAAW,OAAO;IACtB,QAAQ,CAAC,EAAE,CAAC,EAAE,OAAO,CAAA;IACrB,QAAQ,CAAC,IAAI,EAAE,QAAQ,GAAG,WAAW,GAAG,MAAM,GAAG,WAAW,CAAA;IAC5D,QAAQ,CAAC,OAAO,EAAE,YAAY,EAAE,CAAA;IAChC,QAAQ,CAAC,MAAM,CAAC,EAAE,aAAa,CAAA;CAChC;AAED,KAAK,kBAAkB,GAAG,sBAAsB,SAAS;IAAE,WAAW,CAAC,EAAE,MAAM,OAAO,CAAA;CAAE,GAAG,OAAO,GAAG,OAAO,CAAA;AAE5G,4DAA4D;AAC5D,MAAM,MAAM,eAAe,GAAG,IAAI,CAAC,sBAAsB,EAAE,UAAU,GAAG,OAAO,GAAG,SAAS,CAAC,GAAG;IAC7F,QAAQ,EAAE,OAAO,EAAE,CAAA;IACnB,KAAK,CAAC,EAAE,KAAK,CAAC,iBAAiB,GAAG;QAAE,YAAY,CAAC,EAAE,IAAI,CAAA;KAAE,CAAC,CAAA;IAC1D,WAAW,CAAC,EAAE,kBAAkB,CAAA;IAChC,yGAAyG;IACzG,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB,CAAA;AAuDD;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,OAAO,EAChB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAClC,MAAM,CAWR;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CACnC,QAAQ,EAAE,SAAS,OAAO,EAAE,EAC5B,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,GAC7C,MAAM,CASR;AAED;;;GAGG;AACH,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAGxE;AAED;;;;GAIG;AACH,wBAAgB,kCAAkC,CAChD,OAAO,EAAE,OAAO,EAChB,QAAQ,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,MAAM,GAClC,OAAO,GAAG,SAAS,CAWrB;AAED;;;;;;;;;;;;GAYG;AACH,wBAAgB,iBAAiB,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,GAAG,SAAS,GAAG,OAAO,EAAE,CAoCrF;AAED;;;;GAIG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,sBAAsB,GAAG,eAAe,CAEzF"}
@@ -0,0 +1,21 @@
1
+ import { ConcurrencyGate } from './concurrency-gate.ts';
2
+ export declare const CONTROLLED_PROVIDERS: readonly ["codex-chatgpt", "claude", "kimi-code", "minimax-code", "command-code", "ollama", "glm-coding-plan", "step-code", "cline-pass", "qoder", "opendesign", "workbuddy-subscription", "qianwen-token-plan", "relayone", "claude-api", "opencode-go"];
3
+ export type ControlledProvider = typeof CONTROLLED_PROVIDERS[number];
4
+ export interface ModelRequestLimits {
5
+ /** Per credential limits, not guessed subscription entitlements. Zero disables. */
6
+ default?: number;
7
+ providers?: Partial<Record<ControlledProvider, number>>;
8
+ queueTimeoutMs?: number;
9
+ }
10
+ /** Explicit deployment configuration. Invalid values fail closed at startup. */
11
+ export declare function readModelRequestLimits(env?: NodeJS.ProcessEnv): ModelRequestLimits;
12
+ /** Only generation POSTs are limited; token refresh/catalog/quota must never wait behind them. */
13
+ export declare function isModelRequest(input: Parameters<typeof fetch>[0], init?: RequestInit): boolean;
14
+ export interface ModelRequestControlOptions {
15
+ provider: ControlledProvider;
16
+ limits: ModelRequestLimits;
17
+ gate?: ConcurrencyGate;
18
+ }
19
+ /** Hold a slot until EOF, cancel, abort or failure, never merely until response headers. */
20
+ export declare function createControlledModelFetch(baseFetch: typeof fetch, options: ModelRequestControlOptions): typeof fetch;
21
+ //# sourceMappingURL=model-request-control.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model-request-control.d.ts","sourceRoot":"","sources":["../../../../src/host/common/model-request-control.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAA;AAEvD,eAAO,MAAM,oBAAoB,2PAA4P,CAAA;AAC7R,MAAM,MAAM,kBAAkB,GAAG,OAAO,oBAAoB,CAAC,MAAM,CAAC,CAAA;AACpE,MAAM,WAAW,kBAAkB;IACjC,mFAAmF;IACnF,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,SAAS,CAAC,EAAE,OAAO,CAAC,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAAC,CAAC,CAAA;IACvD,cAAc,CAAC,EAAE,MAAM,CAAA;CACxB;AAED,gFAAgF;AAChF,wBAAgB,sBAAsB,CAAC,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,kBAAkB,CAqB/F;AAkBD,kGAAkG;AAClG,wBAAgB,cAAc,CAAC,KAAK,EAAE,UAAU,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,EAAE,IAAI,CAAC,EAAE,WAAW,GAAG,OAAO,CAQ9F;AAED,MAAM,WAAW,0BAA0B;IACzC,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,MAAM,EAAE,kBAAkB,CAAA;IAC1B,IAAI,CAAC,EAAE,eAAe,CAAA;CACvB;AAED,4FAA4F;AAC5F,wBAAgB,0BAA0B,CAAC,SAAS,EAAE,OAAO,KAAK,EAAE,OAAO,EAAE,0BAA0B,GAAG,OAAO,KAAK,CAmErH"}
@@ -0,0 +1,47 @@
1
+ /**
2
+ * 丢掉没有配对的工具调用块,让 Anthropic Messages 形状的请求体始终自洽。
3
+ *
4
+ * 这类端点对工具消息序列是**强校验**的:`tool_result` 必须紧跟在发出对应 `tool_use` 的
5
+ * assistant 消息之后,且每个 `tool_use` 都要有结果。少一个配对,整个请求就是
6
+ * `400 invalid params`(MiniMax 上是错误码 2013),而且不可重试——同一份请求体再发一次还是
7
+ * 400,整段会话就此卡死,只能换 provider 或新开会话。
8
+ *
9
+ * 孤儿从哪来都有:
10
+ *
11
+ * - 模型叫了一个**它工具清单里根本没有**的名字。催促文案可能点名一个未注册或已下线的
12
+ * 工具名,调用没有被派发,历史就此留下一个没有结果的 `tool_use`(issue #89)。
13
+ * - 一个工具调用还没派发,会话就断了。
14
+ * - 一段历史在压缩或换 provider 时只剩结果、没了调用。
15
+ *
16
+ * 这里只做**配对**,不做别的判断:配不上的 `tool_use` 与 `tool_result` 一起丢掉,消息因此
17
+ * 空掉的就整条去掉。
18
+ *
19
+ * ## 为什么折叠是参数,不是本模块的一部分
20
+ *
21
+ * 各线的「相邻同角色折叠」语义并不一致(Claude 的 system 轮永不合并,见
22
+ * `claude/mapper.ts` 的 `mergeClaudeMessages`)。把折叠写死在这里,等于用一套语义去改另一
23
+ * 条线的请求体。所以本模块只负责配对,折叠由调用方把自己的那一份传进来——清理可能让某条
24
+ * 消息整个消失,于是原本不相邻的两条同角色消息会贴到一起,必须再折一次。
25
+ *
26
+ * @module dsh-multi-provider/host/common/orphan-tool-calls
27
+ */
28
+ /** 一条 wire 形状的消息:角色 + Anthropic 内容块。 */
29
+ export interface ToolPairingTurn {
30
+ /** `assistant` 发起调用,其余角色应答。 */
31
+ role: string;
32
+ /** Anthropic 内容块(线上就是普通 JSON 对象)。 */
33
+ content: Array<Record<string, unknown>>;
34
+ }
35
+ /**
36
+ * 清掉没有配对的工具调用。
37
+ *
38
+ * 配对规则只有一条:`tool_use` 必须被**后面第一条** user 轮里的同名 `tool_result` 应答;
39
+ * 到了下一条 assistant 轮还没被应答,它就是孤儿。反向也一样——`tool_result` 找不到仍在
40
+ * 等待的同名调用,它就是无主结果(线上报的是「tool call result does not follow tool call」)。
41
+ *
42
+ * @param messages - 已折叠过的消息列表。
43
+ * @param refold - 调用方自己的相邻同角色折叠,清理后需要再折一次。
44
+ * @returns 配对完整、且没有空消息的消息列表;清理会把整段历史清空时原样返回。
45
+ */
46
+ export declare function cleanOrphanedToolCalls<T extends ToolPairingTurn>(messages: T[], refold: (entries: T[]) => T[]): T[];
47
+ //# sourceMappingURL=orphan-tool-calls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"orphan-tool-calls.d.ts","sourceRoot":"","sources":["../../../../src/host/common/orphan-tool-calls.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,wCAAwC;AACxC,MAAM,WAAW,eAAe;IAC9B,+BAA+B;IAC/B,IAAI,EAAE,MAAM,CAAA;IACZ,qCAAqC;IACrC,OAAO,EAAE,KAAK,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAA;CACxC;AAkBD;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CAAC,CAAC,SAAS,eAAe,EAC9D,QAAQ,EAAE,CAAC,EAAE,EACb,MAAM,EAAE,CAAC,OAAO,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,GAC5B,CAAC,EAAE,CAkEL"}
@@ -0,0 +1,11 @@
1
+ /**
2
+ * Keep fixed defaults only when they fit DSH compaction-basic's default policy.
3
+ * This is host metadata, NEVER a wire cap. Callers must retain their original
4
+ * wire fallback when the metadata is omitted. Explicit request caps still win.
5
+ * Custom compaction policies and windows too small even at zero reservation
6
+ * require deployment configuration; do not invent a larger context window.
7
+ */
8
+ export declare function outputReservation(contextWindow: number, maxTokens: number): {
9
+ defaultMaxTokens?: number;
10
+ };
11
+ //# sourceMappingURL=output-reservation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"output-reservation.d.ts","sourceRoot":"","sources":["../../../../src/host/common/output-reservation.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,wBAAgB,iBAAiB,CAAC,aAAa,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,GAAG;IAAE,gBAAgB,CAAC,EAAE,MAAM,CAAA;CAAE,CAOzG"}
@@ -0,0 +1,41 @@
1
+ /**
2
+ * Where the account-pool storage choice is remembered between restarts.
3
+ *
4
+ * The profile's `poolStorage` is the deployment's default, and the settings card
5
+ * writes the operator's own answer here instead of rewriting `cordis.yml`: that
6
+ * file is the harness composition, and a card that edited it would be rewriting
7
+ * the deployment to change a preference. The document lives beside the plugin's
8
+ * other storage under the harness home, is written atomically, validated with the
9
+ * same schema machinery as the preferences, and — because it stores `null` until
10
+ * somebody chooses — the profile's value keeps winning until a card actually says
11
+ * otherwise.
12
+ * @module dsh-multi-provider/pool-storage-settings
13
+ */
14
+ import type { PoolStorageMode } from '../../shared/contracts.ts';
15
+ /** Where the card's choice is kept. */
16
+ export declare function poolStorageSettingsPath(): string;
17
+ /** The choice the settings card writes, and the pools read. */
18
+ export declare class PoolStorageSettings {
19
+ private readonly store;
20
+ constructor(filePath?: string);
21
+ /** Load the document once; a missing or corrupt one counts as "nothing chosen". */
22
+ hydrate(): Promise<void>;
23
+ /** The chosen mode, or `null` while the profile's value stands. */
24
+ chosen(): PoolStorageMode | null;
25
+ /**
26
+ * The mode to use: the card's choice, else the profile's value, else the default.
27
+ *
28
+ * @param configured - `poolStorage` from the profile, when it carries one.
29
+ */
30
+ effective(configured?: PoolStorageMode): PoolStorageMode;
31
+ /**
32
+ * Persist one choice and tell the pools to resolve their backend again.
33
+ *
34
+ * The announcement is part of the write rather than the route's job: a caller
35
+ * that stores a mode without invalidating the caches would leave every pool on
36
+ * the old store until the host restarted, which is the one failure this whole
37
+ * option exists to avoid — reading and writing in different places.
38
+ */
39
+ update(mode: PoolStorageMode): Promise<void>;
40
+ }
41
+ //# sourceMappingURL=pool-storage-settings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pool-storage-settings.d.ts","sourceRoot":"","sources":["../../../../src/host/common/pool-storage-settings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAOH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAA;AAEhE,uCAAuC;AACvC,wBAAgB,uBAAuB,IAAI,MAAM,CAEhD;AAYD,+DAA+D;AAC/D,qBAAa,mBAAmB;IAC9B,OAAO,CAAC,QAAQ,CAAC,KAAK,CAA2C;gBAErD,QAAQ,SAA4B;IAIhD,mFAAmF;IACnF,OAAO,IAAI,OAAO,CAAC,IAAI,CAAC;IAIxB,mEAAmE;IACnE,MAAM,IAAI,eAAe,GAAG,IAAI;IAIhC;;;;OAIG;IACH,SAAS,CAAC,UAAU,CAAC,EAAE,eAAe,GAAG,eAAe;IAIxD;;;;;;;OAOG;IACG,MAAM,CAAC,IAAI,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC;CAInD"}