@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,583 @@
1
+ /**
2
+ * The Claude subscription line's account pool.
3
+ *
4
+ * ---------------------------------------------------------------------------
5
+ * TWO KINDS OF ACCOUNT, AND ONLY ONE OF THEM MAY BE REFRESHED
6
+ * ---------------------------------------------------------------------------
7
+ *
8
+ * A row in this pool is one of:
9
+ *
10
+ * - **managed** — signed in through this plugin. Its credential lives in the
11
+ * pool's encrypted storage AND in the pre-pool credential document beside it,
12
+ * it is refreshable, and deleting it is this plugin's business.
13
+ * - **adopted** — a SNAPSHOT read out of a local Claude Code sign-in by
14
+ * 'adopt.ts' (marker 'adopted: true', source 'claude-code'). It is used only
15
+ * while its own access token is still valid.
16
+ *
17
+ * An adopted snapshot is NEVER refreshed, and the reason is not an optimisation:
18
+ * Claude Code's refresh token ROTATES. Every refresh consumes the stored token
19
+ * and issues a new one, so two processes refreshing the same grant invalidate
20
+ * each other — whoever loses the race holds a token the server has already
21
+ * retired, and the user ends up signed OUT of Claude Code by this plugin's good
22
+ * intentions. An in-process single-flight cannot fix that, because the race is
23
+ * across PROCESSES: this plugin and Claude Code are separate programs, and the
24
+ * only shared state between them is a file that 'adopt.ts' must never write.
25
+ * Once such a snapshot is expired the pool takes it out of rotation and
26
+ * surfaces ADOPTED_CREDENTIAL_EXPIRED_HINT — sign in again in CLAUDE CODE and
27
+ * re-import, not here.
28
+ *
29
+ * The rule is enforced twice on purpose:
30
+ *
31
+ * 1. {@link claudeNeedsRefresh} returns false for an adopted credential no
32
+ * matter what its expiry says, so neither the routing path nor the auxiliary
33
+ * credential path ever reaches for a refresh.
34
+ * 2. the refresh hook itself refuses one ({@link ClaudeAdoptedCredentialError}),
35
+ * so a future caller that forgets rule 1 fails loudly instead of silently
36
+ * spending a grant that is not ours to spend.
37
+ *
38
+ * ---------------------------------------------------------------------------
39
+ * ONE ACCOUNT, ONE KEY
40
+ * ---------------------------------------------------------------------------
41
+ *
42
+ * 'token-store.ts' keys a stored account by an immutable internalId
43
+ * ('cl_' + 20 hex) and keeps identity aliases ('uuid:..', 'email:..',
44
+ * 'seed:<sha256(refreshToken)>') as an APPEND-ONLY set hanging off it. This pool
45
+ * adopts that same id rather than minting its own, and it resolves every
46
+ * identity question THROUGH it:
47
+ *
48
+ * - {@link ClaudeAccountPool.recordIdFor} turns a credential's strongest alias
49
+ * into the owning record's internalId, never into an alias string and never
50
+ * into a token digest. Both the dedupeKey and the accountId hook return that
51
+ * id, so the pool and the credential document cannot drift into two key
52
+ * spaces — which is how ghost accounts appear: one account, two rows, one of
53
+ * them stale forever.
54
+ * - 'seed:' aliases are LOOKUP keys only. A seed is a digest of a rotating
55
+ * token, so it is never returned, never stored as an account id, and never
56
+ * compared for equality between two credentials.
57
+ *
58
+ * The single accepted limitation is inherited from the store and restated here
59
+ * so nobody has to rediscover it: a credential that states NEITHER a uuid NOR an
60
+ * address has only its token seed as identity, so a re-login produces a
61
+ * different seed and a second record. {@link ClaudeAccountPool.mergeAccounts} is
62
+ * the remedy, and it is a deliberate user action rather than a guess.
63
+ *
64
+ * ---------------------------------------------------------------------------
65
+ * THE DOCUMENT SEAM (why an adapter class exists here)
66
+ * ---------------------------------------------------------------------------
67
+ *
68
+ * 'oauth.ts' signs in and refreshes against a minimal two-method store (read /
69
+ * write of ONE credential), because that module deliberately knows nothing about
70
+ * how accounts are laid out on disk. This line's store is
71
+ * {@link FileCredentialStore} — a MULTI-account document. The bridge is
72
+ * {@link ClaudeCredentialStoreAdapter}: it addresses exactly one record by
73
+ * internalId on read and writes back into that record's own entry (through
74
+ * saveAccount(credentials, { internalId }), which MERGES identity aliases
75
+ * instead of replacing them). Every caller that needs the two-method surface —
76
+ * the sign-in flow, and a later route that acts on one account — gets it from
77
+ * {@link ClaudeAccountPool.credentialStoreFor}.
78
+ *
79
+ * The pool's own refresh deliberately calls 'oauth.ts''s refreshAccessToken
80
+ * rather than its higher-level ensureAccessToken. That is not a shortcut: the
81
+ * single-flight in ensureAccessToken is ONE MODULE-LEVEL PROMISE shared by every
82
+ * caller in the process, so with a pool it would hand the second account the
83
+ * first account's freshly rotated credential — and, through the adapter above,
84
+ * write it into the second account's record. The pool therefore keeps its OWN
85
+ * single-flight, per pool file and account, which preserves the property
86
+ * the frozen module wanted (one rotation per expiry, no two callers spending the
87
+ * same rotating token) without the cross-account contamination.
88
+ *
89
+ * ---------------------------------------------------------------------------
90
+ * MANAGED WINS A CONFLICT
91
+ * ---------------------------------------------------------------------------
92
+ *
93
+ * The same Claude account can reach the pool twice: as a plugin sign-in and as
94
+ * an adopted snapshot. The two rows merge into one, and the MANAGED one wins the
95
+ * refresh right — it is the only one that is allowed to refresh at all. When
96
+ * they merge the adopted marker must NOT survive, because a surviving
97
+ * 'adopted: true' would silently freeze the merged record out of refreshing
98
+ * forever. That is why this class writes the marker (including its false case)
99
+ * on EVERY account it creates, rather than only on the adopted ones: the core
100
+ * merges a re-authorization as { ...existing, ...created }, so an omitted key
101
+ * would leave the stored marker in place.
102
+ */
103
+ import { AccountPoolCore, type PoolAccountShape, type PoolData } from '../common/account-pool.ts';
104
+ import type { CredentialStore } from '../token-store.ts';
105
+ import type { AccountAuthStatus, PoolAccountQuotaDto, PoolAccountSummaryDto } from '../../shared/account-pool-contracts.ts';
106
+ import { FileCredentialStore, type ClaudeCredentials } from './token-store.ts';
107
+ import { ClaudeUnauthorizedError, type ClaudeTokenStore } from './oauth.ts';
108
+ import { CLAUDE_CODE_CREDENTIAL_SOURCE } from './adopt.ts';
109
+ import { type ClaudeAccountQuota, type ClaudeFailure } from './client.ts';
110
+ /**
111
+ * How early this pool refreshes, mirroring 'oauth.ts''s own REFRESH_MARGIN_MS.
112
+ *
113
+ * A mirror rather than an import because the frozen module keeps that constant
114
+ * private, and this chunk's rule is to mirror the five-minute margin rather than
115
+ * invent one. The consequence is stated rather than hidden: 'oauth.ts' ALREADY
116
+ * subtracts the same five minutes when it stamps expiresAt, so a credential this
117
+ * pool refreshes is refreshed roughly ten minutes ahead of the real expiry. That
118
+ * direction is the safe one for this line — a refresh that arrives early costs
119
+ * one rotation, while one that arrives late costs a 401 in the middle of a turn.
120
+ */
121
+ export declare const CLAUDE_REFRESH_MARGIN_MS = 300000;
122
+ /**
123
+ * Message raised when the pool holds no account at all.
124
+ *
125
+ * Word for word the string 'oauth.ts' raises when its store is empty, so a user
126
+ * who reads either one is sent to the same place.
127
+ */
128
+ export declare const CLAUDE_EMPTY_POOL_MESSAGE = "Not signed in to Claude. Sign in from Settings > Claude.";
129
+ /**
130
+ * Message for a credential that cannot reach /v1/messages at all.
131
+ *
132
+ * 'user:inference' is the scope that makes a token a SUBSCRIPTION credential;
133
+ * without it the credential authenticates but is not entitled to the routes this
134
+ * provider exists to serve, so the account is listed and refused rather than
135
+ * retried.
136
+ */
137
+ export declare function claudeNonSubscriptionReason(): string;
138
+ /**
139
+ * Message raised if a refresh of a still-valid adopted snapshot were ever
140
+ * attempted.
141
+ *
142
+ * Unreachable through this pool's own paths (see the module comment); it exists
143
+ * because 'unreachable' is a claim the guard has to be able to make good on.
144
+ */
145
+ export declare const ADOPTED_NEVER_REFRESHED_MESSAGE: string;
146
+ /**
147
+ * The adoption markers, as they hang off a credential stored by this pool.
148
+ *
149
+ * FLATTENED onto the credential, unlike the snapshot 'adopt.ts' returns, which
150
+ * nests the token under 'credentials'. Two reasons, both structural:
151
+ *
152
+ * - the pool's hooks (needsRefresh, refresh, authRejectedReason) receive the
153
+ * CREDENTIAL and never the account record, so the marker has to be reachable
154
+ * from there;
155
+ * - every other field this line reads (expiresAt, accessToken) sits at the top
156
+ * level, and a second nesting level would mean two shapes for one account.
157
+ *
158
+ * The predicate is therefore {@link isAdoptedPoolCredential} rather than
159
+ * 'adopt.ts''s own isAdoptedClaudeCredential, which additionally requires that
160
+ * nested 'credentials' record and so answers false for this spelling. The FIELDS
161
+ * it tests — adopted === true and source === 'claude-code' — are the same two,
162
+ * and the source constant is imported from that module rather than re-typed.
163
+ */
164
+ export interface ClaudeAdoptedCredentialMarkers {
165
+ adopted?: true;
166
+ source?: string;
167
+ sourcePath?: string;
168
+ }
169
+ /** One pooled credential: the stored credential, plus the markers above. */
170
+ export type ClaudePoolCredentials = ClaudeCredentials & ClaudeAdoptedCredentialMarkers;
171
+ /** Where a pooled account's credential came from. */
172
+ export type ClaudePoolAccountSource = 'managed' | typeof CLAUDE_CODE_CREDENTIAL_SOURCE;
173
+ /** One pooled Claude account: the credential plus the facts the card renders. */
174
+ export interface ClaudePoolAccount extends PoolAccountShape<ClaudeCredentials> {
175
+ /**
176
+ * Append-only alias set, mirroring the credential document's own.
177
+ *
178
+ * Kept on the row so a merge (or the explicit
179
+ * {@link ClaudeAccountPool.mergeAccounts}) can carry an alias across instead of
180
+ * losing the only handle a seed-only snapshot has.
181
+ */
182
+ identityKeys: string[];
183
+ /** Which store owns the credential. Only managed rows may be refreshed. */
184
+ source: ClaudePoolAccountSource;
185
+ /**
186
+ * Whether this row is a borrowed snapshot.
187
+ *
188
+ * Required rather than optional: every construction site has to state it, which
189
+ * is what keeps a stale true from surviving an in-place re-authorization.
190
+ */
191
+ adopted: boolean;
192
+ /** Claude Code file an adopted snapshot was read from; absent for managed rows. */
193
+ sourcePath?: string;
194
+ /** Address the sign-in reported, when it reported one. */
195
+ email?: string;
196
+ /** Subscription tier the exchange reported, verbatim ('max', 'pro', ...). */
197
+ subscriptionType?: string;
198
+ /** Display form of {@link subscriptionType}; the card's plan badge. */
199
+ planLabel?: string;
200
+ }
201
+ /**
202
+ * One account as the Claude settings card renders it.
203
+ *
204
+ * Declared here rather than under 'src/shared/': this slice is the pool's own
205
+ * vocabulary, and a later chunk imports it from this module instead of growing a
206
+ * second copy that drifts.
207
+ */
208
+ export interface ClaudeAccountSummaryDto extends PoolAccountSummaryDto {
209
+ /** Where the credential came from; a card offers different actions per source. */
210
+ source?: ClaudePoolAccountSource;
211
+ /** Whether this row is a snapshot borrowed from a local Claude Code sign-in. */
212
+ adopted?: boolean;
213
+ /** The Claude Code file an adopted snapshot was read from. */
214
+ sourcePath?: string;
215
+ /** Subscription tier, from the credential itself. */
216
+ subscriptionType?: string;
217
+ }
218
+ /** Encrypted pool file this line owns; the credential document stays the mirror. */
219
+ export declare function claudePoolPath(): string;
220
+ /**
221
+ * Parse one stored credential TOLERANTLY; null when the row cannot serve.
222
+ *
223
+ * Deliberately not 'token-store.ts''s parseClaudeCredentials, and the difference
224
+ * is the point:
225
+ *
226
+ * - that parser is STRICT and refuses a credential with no 'user:inference'
227
+ * scope, which is right for the document it guards but would DELETE the row
228
+ * here. This pool has to be able to LIST a credential it refuses, so the
229
+ * refusal can be reported with a reason (see {@link claudeAuthRejectedReason})
230
+ * instead of the account silently vanishing from the card.
231
+ * - an adopted snapshot states no scopes at all when Claude Code's document did
232
+ * not, and 'adopt.ts' refuses to invent them.
233
+ *
234
+ * What is still refused, because such a row could never serve a request: a
235
+ * missing token, or an expiry that is not a finite number.
236
+ */
237
+ export declare function parseClaudePoolCredentials(value: unknown): ClaudePoolCredentials | null;
238
+ /**
239
+ * Prefix of the id this pool gives a borrowed snapshot.
240
+ *
241
+ * A snapshot has no credential-document record, so there is no internalId to
242
+ * adopt; the pool has to name it. The name is WHERE IT CAME FROM rather than a
243
+ * digest of its tokens, and that choice is load-bearing: Claude Code refreshes
244
+ * its own file, so a re-import of an unchanged sign-in carries a DIFFERENT
245
+ * refresh token and therefore a different 'seed:' alias. Keying on the source
246
+ * file is what makes "import it again after signing in again in Claude Code" an
247
+ * UPDATE of the row the user already has, instead of a new row every time.
248
+ *
249
+ * The residual, stated rather than hidden: two accounts imported one after the
250
+ * other from the SAME path are one row, because the row means 'the sign-in that
251
+ * file currently holds' — which is exactly what a borrowed snapshot is. And a
252
+ * snapshot whose route did not record a path at all shares the 'unstated' name
253
+ * with any other such snapshot, so those collapse into one row too.
254
+ */
255
+ export declare const ADOPTED_ACCOUNT_KEY_PREFIX = "adopted:";
256
+ /** The pool's own name for a borrowed snapshot. Never a token digest. */
257
+ export declare function adoptedPoolAccountKey(credentials: ClaudeCredentials): string;
258
+ /**
259
+ * Whether a pooled credential is an adopted snapshot.
260
+ *
261
+ * The two fields, and only those two: a plain credential has no 'adopted' field
262
+ * and must never be mistaken for a snapshot, because treating a plugin-owned
263
+ * account as disposable would refuse to refresh an account the user added here.
264
+ */
265
+ export declare function isAdoptedPoolCredential(credentials: ClaudeCredentials): boolean;
266
+ /**
267
+ * Whether a credential must be refreshed before the next request.
268
+ *
269
+ * FALSE for every adopted snapshot, valid or expired. That is this chunk's core
270
+ * rule: an adopted credential is borrowed for exactly as long as Claude Code
271
+ * vouched for it, and this pool has no business rotating a token another process
272
+ * is rotating too. See the module comment.
273
+ */
274
+ export declare function claudeNeedsRefresh(credentials: ClaudeCredentials, now: number): boolean;
275
+ /**
276
+ * Why a stored credential is already known to be unusable, or nothing.
277
+ *
278
+ * Reported purely — nothing is written here — and consulted by the core for both
279
+ * routing eligibility and credential usability, which is what makes an expired
280
+ * snapshot non-routable without a write on every read.
281
+ *
282
+ * Order matters: the expired-snapshot hint comes first because it is the
283
+ * actionable one (the remedy is in Claude Code, not here).
284
+ */
285
+ export declare function claudeAuthRejectedReason(credentials: ClaudeCredentials): string | undefined;
286
+ /** Validate and normalize one whole pool document. */
287
+ export declare function parseClaudePoolData(value: unknown): PoolData<ClaudePoolAccount>;
288
+ /**
289
+ * The two-method credential store 'oauth.ts' wants, addressed at ONE account.
290
+ *
291
+ * See the module comment for why this bridge exists at all. The id is the
292
+ * document's own immutable internalId, which is also the pool row's id, so a
293
+ * refresh driven through here lands in the very record the pool lists — no
294
+ * second key space.
295
+ *
296
+ * write goes through saveAccount(credentials, { internalId }) rather than
297
+ * replacing the document, so the record keeps its append-only alias set and
298
+ * whatever a later chunk hung on it. It does NOT special-case an adopted
299
+ * snapshot: nothing in the pool ever asks this adapter to write one (the refresh
300
+ * guard refuses first), and silently discarding a caller's write would be a
301
+ * worse failure than the store's own strict validation.
302
+ */
303
+ export declare class ClaudeCredentialStoreAdapter implements ClaudeTokenStore {
304
+ private readonly store;
305
+ private readonly internalId;
306
+ constructor(store: FileCredentialStore, internalId: string);
307
+ read(): Promise<ClaudeCredentials | null>;
308
+ write(credentials: ClaudeCredentials): Promise<void>;
309
+ }
310
+ /**
311
+ * What the adapter must do with the account that produced a failed request.
312
+ *
313
+ * THE CONTRACT, and it is the adapter's to honour rather than this module's to
314
+ * enforce:
315
+ *
316
+ * - switch accounts, or cool one down, ONLY for a CREDENTIAL failure or an
317
+ * ACCOUNT-SCOPED rate limit. Both are attributable to one account, so another
318
+ * account can plausibly serve the same request.
319
+ * - NEVER rotate on a global rate limit, an overload (529), a server error, a
320
+ * transport failure, or a malformed request. None of them is any account's
321
+ * fault, and rotating would spend the whole pool against a wall every account
322
+ * is behind — while cooling accounts down would take the line offline with a
323
+ * cooldown nobody earned.
324
+ *
325
+ * The rule is NOT re-derived here: 'client.ts' classifyFailure already answers
326
+ * it, and ClaudeFailure.accountScoped is precisely 'this is THIS account's own
327
+ * spent window' (true only for rate_limit_account, and a 429 carrying no unified
328
+ * rate-limit header is deliberately classified GLOBAL). The helper below is that
329
+ * flag applied to a decision, so the adapter has one place to ask.
330
+ */
331
+ export type ClaudeAccountRotationAction = {
332
+ action: 'mark-auth-failed';
333
+ status: AccountAuthStatus;
334
+ } | {
335
+ action: 'cool-down';
336
+ durationMs: number;
337
+ } | {
338
+ action: 'none';
339
+ };
340
+ /**
341
+ * Fallback cooldown for an account-scoped 429 that named no retry-after.
342
+ *
343
+ * Fifteen minutes mirrors the core's own assumption in its all-unavailable
344
+ * message, so a pool that falls back computes the wait a user would have been
345
+ * shown anyway.
346
+ */
347
+ export declare const CLAUDE_DEFAULT_COOLDOWN_MS = 900000;
348
+ /**
349
+ * The rotation decision for one classified failure.
350
+ *
351
+ * @param failure - a 'client.ts' ClaudeFailure, or the three fields of one.
352
+ */
353
+ export declare function claudeAccountRotationAction(failure: Pick<ClaudeFailure, 'kind' | 'accountScoped' | 'retryAfterMs'>, options?: {
354
+ fallbackCooldownMs?: number;
355
+ }): ClaudeAccountRotationAction;
356
+ /** Raised when a refresh of an adopted snapshot is attempted. Never a 401. */
357
+ export declare class ClaudeAdoptedCredentialError extends ClaudeUnauthorizedError {
358
+ constructor(message: string);
359
+ }
360
+ export interface ClaudeAccountPoolOptions {
361
+ /** Pre-pool credential document the pool mirrors its accounts into. */
362
+ store?: FileCredentialStore;
363
+ /** Test seam; production builds the platform backend from the pool path. */
364
+ backend?: CredentialStore<PoolData<ClaudePoolAccount>>;
365
+ /** Accounts this pool accepts; defaults to the core's limit. */
366
+ maxAccounts?: number;
367
+ /** The account the card pinned, or null for automatic selection. */
368
+ preferAccountId?: () => string | null;
369
+ /**
370
+ * Test seam for the token exchange itself.
371
+ *
372
+ * Replacing it does NOT bypass the adopted guard or the per-account
373
+ * single-flight above it, and the document write-back still happens: the seam
374
+ * is the network call, not the policy.
375
+ */
376
+ refreshCredentials?: (credentials: ClaudeCredentials, fetchFn: typeof fetch) => Promise<ClaudeCredentials>;
377
+ }
378
+ /**
379
+ * One account's own newest quota snapshot, in the shape the account card draws.
380
+ *
381
+ * The snapshot comes from 'client.ts''s per-account cache, and this is where
382
+ * this line's own numbers are translated into the shared shape. Every judgement
383
+ * below trades a possibly-nice-looking bar for an honest one:
384
+ *
385
+ * - a window whose consumed share nobody measured is DROPPED (`quotaWindow`
386
+ * returns null), because "0% used" and "not stated" are different claims;
387
+ * - the share falls back to `100 - remainingPercent` only when that field was
388
+ * stated; when the payload stated NEITHER share there is nothing to draw;
389
+ * - the read time is the full read's own `fetchedAt`, or — for a snapshot that
390
+ * only response headers ever kept warm, which performed no full read — the
391
+ * `observedAt` instant those numbers arrived. Either way it is when this line
392
+ * saw the numbers, never when upstream served them.
393
+ *
394
+ * A null snapshot means "this account was never read", which `poolQuota` reports
395
+ * as undefined so the card can say exactly that instead of drawing a zero.
396
+ */
397
+ export declare function claudePoolQuota(snapshot: ClaudeAccountQuota | null): PoolAccountQuotaDto | undefined;
398
+ /**
399
+ * The Claude subscription account pool.
400
+ *
401
+ * Read the module comment first: it carries the two rules this class exists to
402
+ * enforce — an adopted snapshot is never refreshed, and one account has one key
403
+ * — together with the reasoning behind both.
404
+ */
405
+ export declare class ClaudeAccountPool extends AccountPoolCore<ClaudeCredentials, ClaudePoolAccount, ClaudeAccountSummaryDto> {
406
+ private readonly store;
407
+ private readonly refreshSeam;
408
+ /**
409
+ * Identity alias -> internalId of the record that owns it.
410
+ *
411
+ * Rebuilt from the pool's own rows on every {@link read}, and additionally fed
412
+ * by {@link addAccount} from the credential document, which is what lets an
413
+ * incoming credential be resolved to an existing record BEFORE the core has to
414
+ * decide whether this is a new account.
415
+ *
416
+ * Entries are never pruned, deliberately. Dropping a live row's alias would
417
+ * make the very next credential for that account look new, which is the ghost
418
+ * row this index exists to prevent; a stale entry is overwritten by the next
419
+ * {@link read}, because a live row always re-indexes its own aliases.
420
+ */
421
+ private readonly recordIds;
422
+ /**
423
+ * One in-flight refresh per account.
424
+ *
425
+ * The refresh token rotates, so two concurrent callers refreshing one account
426
+ * would spend it twice: the second exchange carries a token the first already
427
+ * rotated away, the endpoint answers with a final verdict, and the account is
428
+ * marked expired immediately after a refresh that in fact succeeded. Keyed by
429
+ * the record's id — never by a token — so it cannot mix two accounts up.
430
+ */
431
+ constructor(options?: ClaudeAccountPoolOptions);
432
+ /** The credential document this pool mirrors into. */
433
+ mirrorStore(): FileCredentialStore;
434
+ /**
435
+ * The two-method store 'oauth.ts' needs, addressed at one account.
436
+ *
437
+ * The seam in one place: the sign-in flow (and any later route that acts on a
438
+ * single account) never has to know the document layout.
439
+ */
440
+ credentialStoreFor(accountId: string): ClaudeTokenStore;
441
+ /**
442
+ * Read the pool, re-indexing the identity aliases on the way.
443
+ *
444
+ * Every routing decision goes through this method, so this is where the index
445
+ * {@link recordIdsFor} reads is kept in step with the rows that actually exist.
446
+ * See the recordIds field for why entries are not pruned.
447
+ */
448
+ protected loadPoolData(): Promise<PoolData<ClaudePoolAccount>>;
449
+ /**
450
+ * Add or re-authorize one account.
451
+ *
452
+ * The override exists for ONE reason: the account's id must be the credential
453
+ * document's internalId, and only this method can look that value up before
454
+ * the core has decided whether the account is new. See the module comment's
455
+ * 'one account, one key' section.
456
+ */
457
+ addAccount(credentials: ClaudeCredentials, alias?: string): Promise<ClaudePoolAccount>;
458
+ private addManagedAccount;
459
+ /**
460
+ * Add, or re-import, one borrowed Claude Code snapshot.
461
+ *
462
+ * A snapshot is never written into this plugin's credential document — it is
463
+ * not this line's sign-in to keep — so its row is named by WHERE IT CAME FROM
464
+ * (see {@link adoptedPoolAccountKey}) and there is nothing to reconcile with
465
+ * the document.
466
+ *
467
+ * MANAGED BEATS ADOPTED, and this is where the two actually meet. A snapshot
468
+ * resolves to an existing row through its token seed, which is how an account
469
+ * imported here and then signed in through THIS plugin is recognized as one
470
+ * account: the row it lands on is already plugin-owned, and overwriting it with
471
+ * a borrowed credential would freeze that account until the snapshot expired —
472
+ * silently, and for no reason the user could see. So the snapshot contributes
473
+ * only what is new evidence (its aliases) and refuses to touch anything else.
474
+ *
475
+ * The id is resolved BEFORE the core is asked whether the account is already
476
+ * pooled, because the core computes the dedupe key at the TOP of its own
477
+ * addAccount: a key that only becomes known afterwards misses its one chance to
478
+ * answer, and every repeated import would add a row.
479
+ */
480
+ private addAdoptedAccount;
481
+ /**
482
+ * Merge two rows that are one account.
483
+ *
484
+ * This is the user's remedy for the identity limitation 'token-store.ts'
485
+ * documents: a credential stating neither a uuid nor an address has only a
486
+ * token digest to go on, so a re-login produces a second record, and nothing
487
+ * can tell that apart from a genuinely different account. The same applies to
488
+ * an imported snapshot, which Claude Code's document gives no identity to.
489
+ *
490
+ * THE MANAGED ROW WINS THE CREDENTIAL — by construction, not by argument
491
+ * order. Only a plugin-owned credential may ever be refreshed, so a merge that
492
+ * kept a snapshot's tokens would leave the account frozen until it expired, for
493
+ * no reason the user could see. When BOTH rows are snapshots there is nothing
494
+ * to promote and the marker survives; otherwise the merged record is
495
+ * plugin-owned and refreshable again.
496
+ *
497
+ * The keeper's id, alias and ordering are kept, since those are what the
498
+ * settings document pins and what the user recognizes.
499
+ */
500
+ mergeAccounts(keepAccountId: string, dropAccountId: string): Promise<ClaudePoolAccount>;
501
+ private mergeAccountsInPool;
502
+ /**
503
+ * Fold two document records into the one the merged pool row points at.
504
+ *
505
+ * The alias sets are unioned rather than replaced, mirroring the document's own
506
+ * append-only rule: the discarded record's aliases are the only handles a
507
+ * seed-only credential has, and losing them would make the merged account
508
+ * unrecognizable to its own next refresh.
509
+ */
510
+ private reconcileMergedDocument;
511
+ /**
512
+ * Drop an imported snapshot from the pool.
513
+ *
514
+ * A separate action because {@link deleteAccount} refuses one: the row is a
515
+ * borrowed snapshot, and a card must not destroy an account this plugin did
516
+ * not create with the same button that deletes its own. This is what an
517
+ * import card's 'remove import' calls; Claude Code's own file is touched by
518
+ * neither path.
519
+ */
520
+ removeImportedAccount(accountId: string): Promise<void>;
521
+ /**
522
+ * Delete one plugin-owned account.
523
+ *
524
+ * Refused for an imported snapshot, which this plugin did not sign in: the
525
+ * card offers
526
+ * {@link removeImportedAccount} there instead. A managed account is removed
527
+ * from the credential document as well, so the two stores cannot disagree
528
+ * about which accounts exist — the pre-pool projection would otherwise hand
529
+ * back a credential the user just deleted.
530
+ */
531
+ deleteAccount(accountId: string): Promise<void>;
532
+ /**
533
+ * The immutable id of the record that owns a credential, or nothing.
534
+ *
535
+ * Resolution order mirrors 'token-store.ts''s own identity rules, minus the
536
+ * part that must never be a key: a strong alias ('uuid:..', 'email:..') is
537
+ * looked up first, and the 'seed:' digest is consulted ONLY as a lookup, so a
538
+ * credential stating no real identity still finds its record without the pool
539
+ * ever keying an account on a rotating token.
540
+ */
541
+ private recordIdFor;
542
+ /**
543
+ * The key the pool files a credential under, or nothing.
544
+ *
545
+ * A MANAGED credential is named by the credential document's immutable
546
+ * internalId, so the pool and the document agree on one key — and that value is
547
+ * already known here, because a managed credential reaches this point only
548
+ * after the document has stored it and handed its id back.
549
+ *
550
+ * A BORROWED SNAPSHOT has no document record, so it cannot be named by one. It
551
+ * is named by its source file instead ({@link adoptedPoolAccountKey}), which is
552
+ * a fact the credential always carries. Answering `undefined` here for a
553
+ * snapshot would be fatal rather than cautious: the core treats `undefined` as
554
+ * `no dedupe key`, so every import would land as a brand new row — including
555
+ * the re-import this line's own instructions tell the user to perform after
556
+ * signing in again in Claude Code.
557
+ */
558
+ private poolKeyFor;
559
+ /**
560
+ * The id this process already knows for a credential, or nothing.
561
+ *
562
+ * Resolution order mirrors 'token-store.ts''s own identity rules, minus the
563
+ * part that must never be a key: a strong alias ('uuid:..', 'email:..') is
564
+ * looked up first, and the 'seed:' digest is consulted ONLY as a lookup, so a
565
+ * credential stating no real identity still finds its record without the pool
566
+ * ever keying an account on a rotating token.
567
+ */
568
+ private recordIdsFor;
569
+ private indexCredential;
570
+ private indexRecord;
571
+ private indexAccount;
572
+ /**
573
+ * Refresh one account's credential, and nothing else.
574
+ *
575
+ * Two guards live here and both are load-bearing:
576
+ *
577
+ * 1. an adopted snapshot is refused outright (see the module comment);
578
+ * 2. a second caller for the SAME account joins the first one's rotation
579
+ * instead of spending the rotating token twice.
580
+ */
581
+ private refreshCredentials;
582
+ }
583
+ //# sourceMappingURL=account-pool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-pool.d.ts","sour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