@eddyskywalker/dsh-chatgpt-subscription 0.34.0 → 0.36.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (189) hide show
  1. package/CHANGELOG.md +76 -110
  2. package/README.md +6 -6
  3. package/lib/client.js +2741 -2177
  4. package/lib/client.js.map +1 -1
  5. package/lib/index.js +3224 -9314
  6. package/lib/types/client/CodexSubscriptionSection.d.ts.map +1 -1
  7. package/lib/types/client/ProviderHubSection.d.ts.map +1 -1
  8. package/lib/types/client/antigravity/AntigravitySection.d.ts.map +1 -1
  9. package/lib/types/client/antigravity/locales.d.ts +2 -5
  10. package/lib/types/client/antigravity/locales.d.ts.map +1 -1
  11. package/lib/types/client/claude/ClaudeSection.d.ts.map +1 -1
  12. package/lib/types/client/claude/locales.d.ts +2 -5
  13. package/lib/types/client/claude/locales.d.ts.map +1 -1
  14. package/lib/types/client/claude/styles.d.ts +2 -2
  15. package/lib/types/client/claude/useClaudeSection.d.ts.map +1 -1
  16. package/lib/types/client/cline-pass/ClinePassSection.d.ts.map +1 -1
  17. package/lib/types/client/cline-pass/locales.d.ts +0 -6
  18. package/lib/types/client/cline-pass/locales.d.ts.map +1 -1
  19. package/lib/types/client/command-code/CommandCodeSection.d.ts.map +1 -1
  20. package/lib/types/client/command-code/locales.d.ts +2 -5
  21. package/lib/types/client/command-code/locales.d.ts.map +1 -1
  22. package/lib/types/client/common/AccountPoolSection.d.ts +3 -2
  23. package/lib/types/client/common/AccountPoolSection.d.ts.map +1 -1
  24. package/lib/types/client/common/account-pool-labels.d.ts +0 -2
  25. package/lib/types/client/common/account-pool-labels.d.ts.map +1 -1
  26. package/lib/types/client/common/format.d.ts +2 -2
  27. package/lib/types/client/common/line-locale.d.ts +21 -0
  28. package/lib/types/client/common/line-locale.d.ts.map +1 -0
  29. package/lib/types/client/common/styles.d.ts.map +1 -1
  30. package/lib/types/client/glm-coding-plan/GlmCodingPlanSection.d.ts +1 -1
  31. package/lib/types/client/glm-coding-plan/GlmCodingPlanSection.d.ts.map +1 -1
  32. package/lib/types/client/glm-coding-plan/locales.d.ts +2 -5
  33. package/lib/types/client/glm-coding-plan/locales.d.ts.map +1 -1
  34. package/lib/types/client/glm-coding-plan/styles.d.ts +3 -2
  35. package/lib/types/client/glm-coding-plan/styles.d.ts.map +1 -1
  36. package/lib/types/client/glm-coding-plan/useGlmCodingPlanSection.d.ts.map +1 -1
  37. package/lib/types/client/hub/UpdateCheck.d.ts +9 -0
  38. package/lib/types/client/hub/UpdateCheck.d.ts.map +1 -0
  39. package/lib/types/client/hub/brand-icons.d.ts +1 -1
  40. package/lib/types/client/hub/brand-icons.d.ts.map +1 -1
  41. package/lib/types/client/hub/brand-svg.d.ts +0 -4
  42. package/lib/types/client/hub/brand-svg.d.ts.map +1 -1
  43. package/lib/types/client/hub/hub-styles.d.ts.map +1 -1
  44. package/lib/types/client/hub/providers.d.ts.map +1 -1
  45. package/lib/types/client/index.d.ts +0 -2
  46. package/lib/types/client/index.d.ts.map +1 -1
  47. package/lib/types/client/kimi-code/KimiCodeSection.d.ts.map +1 -1
  48. package/lib/types/client/kimi-code/KimiModelCapabilities.d.ts.map +1 -1
  49. package/lib/types/client/kimi-code/locales.d.ts +2 -5
  50. package/lib/types/client/kimi-code/locales.d.ts.map +1 -1
  51. package/lib/types/client/locales-ru/account-pool.d.ts +11 -0
  52. package/lib/types/client/locales-ru/account-pool.d.ts.map +1 -0
  53. package/lib/types/client/locales-ru/antigravity.d.ts +10 -0
  54. package/lib/types/client/locales-ru/antigravity.d.ts.map +1 -0
  55. package/lib/types/client/locales-ru/claude.d.ts +3 -0
  56. package/lib/types/client/locales-ru/claude.d.ts.map +1 -0
  57. package/lib/types/client/locales-ru/cline-pass.d.ts +11 -0
  58. package/lib/types/client/locales-ru/cline-pass.d.ts.map +1 -0
  59. package/lib/types/client/locales-ru/command-code.d.ts +9 -0
  60. package/lib/types/client/locales-ru/command-code.d.ts.map +1 -0
  61. package/lib/types/client/locales-ru/glm-coding-plan.d.ts +10 -0
  62. package/lib/types/client/locales-ru/glm-coding-plan.d.ts.map +1 -0
  63. package/lib/types/client/locales-ru/hub.d.ts +3 -0
  64. package/lib/types/client/locales-ru/hub.d.ts.map +1 -0
  65. package/lib/types/client/locales-ru/index.d.ts +27 -0
  66. package/lib/types/client/locales-ru/index.d.ts.map +1 -0
  67. package/lib/types/client/locales-ru/kimi-code.d.ts +10 -0
  68. package/lib/types/client/locales-ru/kimi-code.d.ts.map +1 -0
  69. package/lib/types/client/locales-ru/minimax-code.d.ts +9 -0
  70. package/lib/types/client/locales-ru/minimax-code.d.ts.map +1 -0
  71. package/lib/types/client/locales-ru/ollama.d.ts +10 -0
  72. package/lib/types/client/locales-ru/ollama.d.ts.map +1 -0
  73. package/lib/types/client/locales-ru/opendesign.d.ts +10 -0
  74. package/lib/types/client/locales-ru/opendesign.d.ts.map +1 -0
  75. package/lib/types/client/locales-ru/progress-updates.d.ts +8 -0
  76. package/lib/types/client/locales-ru/progress-updates.d.ts.map +1 -0
  77. package/lib/types/client/locales-ru/qoder.d.ts +11 -0
  78. package/lib/types/client/locales-ru/qoder.d.ts.map +1 -0
  79. package/lib/types/client/locales-ru/step-code.d.ts +9 -0
  80. package/lib/types/client/locales-ru/step-code.d.ts.map +1 -0
  81. package/lib/types/client/locales.d.ts +39 -3
  82. package/lib/types/client/locales.d.ts.map +1 -1
  83. package/lib/types/client/minimax-code/locales.d.ts +2 -5
  84. package/lib/types/client/minimax-code/locales.d.ts.map +1 -1
  85. package/lib/types/client/minimax-code/useMinimaxCodeSection.d.ts +2 -2
  86. package/lib/types/client/minimax-code/useMinimaxCodeSection.d.ts.map +1 -1
  87. package/lib/types/client/ollama/OllamaSection.d.ts.map +1 -1
  88. package/lib/types/client/ollama/locales.d.ts +0 -6
  89. package/lib/types/client/ollama/locales.d.ts.map +1 -1
  90. package/lib/types/client/opendesign/OpenDesignSection.d.ts +4 -3
  91. package/lib/types/client/opendesign/OpenDesignSection.d.ts.map +1 -1
  92. package/lib/types/client/opendesign/locales.d.ts +108 -48
  93. package/lib/types/client/opendesign/locales.d.ts.map +1 -1
  94. package/lib/types/client/opendesign/styles.d.ts.map +1 -1
  95. package/lib/types/client/qoder/QoderSection.d.ts +3 -2
  96. package/lib/types/client/qoder/QoderSection.d.ts.map +1 -1
  97. package/lib/types/client/qoder/locales.d.ts +1 -3
  98. package/lib/types/client/qoder/locales.d.ts.map +1 -1
  99. package/lib/types/client/qoder/useQoderSection.d.ts.map +1 -1
  100. package/lib/types/client/step-code/StepCodeComposerQuota.d.ts +2 -2
  101. package/lib/types/client/step-code/StepCodeSection.d.ts +1 -1
  102. package/lib/types/client/step-code/StepCodeSection.d.ts.map +1 -1
  103. package/lib/types/client/step-code/locales.d.ts +2 -5
  104. package/lib/types/client/step-code/locales.d.ts.map +1 -1
  105. package/lib/types/client/step-code/styles.d.ts +1 -1
  106. package/lib/types/client/step-code/useStepCodeSection.d.ts.map +1 -1
  107. package/lib/types/host/claude/account-pool.d.ts +2 -2
  108. package/lib/types/host/claude/account-pool.d.ts.map +1 -1
  109. package/lib/types/host/claude/routes.d.ts +1 -1
  110. package/lib/types/host/common/capabilities.d.ts.map +1 -1
  111. package/lib/types/host/common/credential-read-cache.d.ts +2 -3
  112. package/lib/types/host/common/credential-read-cache.d.ts.map +1 -1
  113. package/lib/types/host/common/model-request-control.d.ts +1 -1
  114. package/lib/types/host/common/model-request-control.d.ts.map +1 -1
  115. package/lib/types/host/common/request-diagnostics.d.ts +2 -2
  116. package/lib/types/host/common/request-diagnostics.d.ts.map +1 -1
  117. package/lib/types/host/glm-coding-plan/mapper-openai.d.ts +1 -1
  118. package/lib/types/host/glm-coding-plan/model-catalog.d.ts +4 -4
  119. package/lib/types/host/minimax-code/account-pool.d.ts +6 -7
  120. package/lib/types/host/minimax-code/account-pool.d.ts.map +1 -1
  121. package/lib/types/host/minimax-code/checkin.d.ts +7 -8
  122. package/lib/types/host/minimax-code/checkin.d.ts.map +1 -1
  123. package/lib/types/host/minimax-code/routes.d.ts +1 -1
  124. package/lib/types/host/opendesign/client.d.ts +53 -0
  125. package/lib/types/host/opendesign/client.d.ts.map +1 -1
  126. package/lib/types/host/opendesign/routes.d.ts +4 -3
  127. package/lib/types/host/opendesign/routes.d.ts.map +1 -1
  128. package/lib/types/host/opendesign/types.d.ts +10 -0
  129. package/lib/types/host/opendesign/types.d.ts.map +1 -1
  130. package/lib/types/host/step-code/adapter.d.ts +1 -1
  131. package/lib/types/host/step-code/client.d.ts +1 -1
  132. package/lib/types/host/step-code/mapper.d.ts +3 -3
  133. package/lib/types/host/step-code/oauth.d.ts +1 -1
  134. package/lib/types/host/update-check.d.ts +118 -0
  135. package/lib/types/host/update-check.d.ts.map +1 -0
  136. package/lib/types/index.d.ts +0 -6
  137. package/lib/types/index.d.ts.map +1 -1
  138. package/lib/types/shared/account-pool-contracts.d.ts +0 -24
  139. package/lib/types/shared/account-pool-contracts.d.ts.map +1 -1
  140. package/lib/types/shared/hub-contracts.d.ts +1 -1
  141. package/lib/types/shared/hub-contracts.d.ts.map +1 -1
  142. package/lib/types/shared/minimax-code-contracts.d.ts +2 -2
  143. package/lib/types/shared/opendesign-contracts.d.ts +35 -2
  144. package/lib/types/shared/opendesign-contracts.d.ts.map +1 -1
  145. package/lib/types/shared/update-contracts.d.ts +124 -0
  146. package/lib/types/shared/update-contracts.d.ts.map +1 -0
  147. package/package.json +1 -1
  148. package/lib/types/client/workbuddy/WorkBuddyComposerQuota.d.ts +0 -22
  149. package/lib/types/client/workbuddy/WorkBuddyComposerQuota.d.ts.map +0 -1
  150. package/lib/types/client/workbuddy/WorkBuddySection.d.ts +0 -50
  151. package/lib/types/client/workbuddy/WorkBuddySection.d.ts.map +0 -1
  152. package/lib/types/client/workbuddy/locales.d.ts +0 -635
  153. package/lib/types/client/workbuddy/locales.d.ts.map +0 -1
  154. package/lib/types/client/workbuddy/styles.d.ts +0 -15
  155. package/lib/types/client/workbuddy/styles.d.ts.map +0 -1
  156. package/lib/types/client/workbuddy/useWorkBuddySection.d.ts +0 -149
  157. package/lib/types/client/workbuddy/useWorkBuddySection.d.ts.map +0 -1
  158. package/lib/types/host/workbuddy/account-pool.d.ts +0 -235
  159. package/lib/types/host/workbuddy/account-pool.d.ts.map +0 -1
  160. package/lib/types/host/workbuddy/adapter.d.ts +0 -129
  161. package/lib/types/host/workbuddy/adapter.d.ts.map +0 -1
  162. package/lib/types/host/workbuddy/atrest.d.ts +0 -98
  163. package/lib/types/host/workbuddy/atrest.d.ts.map +0 -1
  164. package/lib/types/host/workbuddy/checkin.d.ts +0 -150
  165. package/lib/types/host/workbuddy/checkin.d.ts.map +0 -1
  166. package/lib/types/host/workbuddy/client.d.ts +0 -169
  167. package/lib/types/host/workbuddy/client.d.ts.map +0 -1
  168. package/lib/types/host/workbuddy/dsml.d.ts +0 -55
  169. package/lib/types/host/workbuddy/dsml.d.ts.map +0 -1
  170. package/lib/types/host/workbuddy/guardrails.d.ts +0 -111
  171. package/lib/types/host/workbuddy/guardrails.d.ts.map +0 -1
  172. package/lib/types/host/workbuddy/identity.d.ts +0 -71
  173. package/lib/types/host/workbuddy/identity.d.ts.map +0 -1
  174. package/lib/types/host/workbuddy/mapper.d.ts +0 -131
  175. package/lib/types/host/workbuddy/mapper.d.ts.map +0 -1
  176. package/lib/types/host/workbuddy/model-catalog.d.ts +0 -217
  177. package/lib/types/host/workbuddy/model-catalog.d.ts.map +0 -1
  178. package/lib/types/host/workbuddy/oauth.d.ts +0 -47
  179. package/lib/types/host/workbuddy/oauth.d.ts.map +0 -1
  180. package/lib/types/host/workbuddy/outbound-identity.d.ts +0 -66
  181. package/lib/types/host/workbuddy/outbound-identity.d.ts.map +0 -1
  182. package/lib/types/host/workbuddy/routes.d.ts +0 -56
  183. package/lib/types/host/workbuddy/routes.d.ts.map +0 -1
  184. package/lib/types/host/workbuddy/token-store.d.ts +0 -360
  185. package/lib/types/host/workbuddy/token-store.d.ts.map +0 -1
  186. package/lib/types/host/workbuddy/types.d.ts +0 -161
  187. package/lib/types/host/workbuddy/types.d.ts.map +0 -1
  188. package/lib/types/shared/workbuddy-contracts.d.ts +0 -353
  189. package/lib/types/shared/workbuddy-contracts.d.ts.map +0 -1
@@ -1,50 +0,0 @@
1
- /**
2
- * The WorkBuddy subscription settings card.
3
- *
4
- * Markup only: every piece of state, every effect and every request this card
5
- * makes lives in 'useWorkBuddySection.ts', which returns one named shape the JSX
6
- * below reads. The two files are the split of a single 885-line component — the
7
- * behaviour is unchanged, and this one should stay render-shaped.
8
- */
9
- import React from 'react';
10
- import type { WorkBuddyModelCredits, WorkBuddyRegion } from '../../shared/workbuddy-contracts.ts';
11
- import { type WorkBuddySectionProps } from './useWorkBuddySection.ts';
12
- /**
13
- * The consumption rate of one model, as the settings row states it.
14
- *
15
- * The gateway publishes one rate per region and the official CodeBuddy picker
16
- * spells it beside a model as `6.67x`; the row uses the same shape behind the
17
- * section's own label. Which rates reach the row depends on what the card knows
18
- * about the account, and the two cases are deliberately different:
19
- *
20
- * - A KNOWN region shows that region's rate and nothing else. Borrowing the
21
- * sibling region's number would state a price this account never pays —
22
- * measured 2026-10-09, `deepseek-v4.1-flash` is `0.11` on cn against `0.00`
23
- * on intl, and the backends reject a model asked of the wrong region anyway.
24
- * - An UNKNOWN region (no account read back yet) shows both rates when the
25
- * backends disagree, so the row is honest about the range instead of picking
26
- * one of them. When they agree there is nothing to disambiguate.
27
- *
28
- * The two-region form is assembled entirely from the caller's labels: the
29
- * qualifier comes from `labels.region(value, key)` and the join from
30
- * `labels.pair(first, second)`, so the dictionary owns the region nouns, the
31
- * bracket glyphs AND the separator. Nothing about the two-region string is
32
- * spelled in this file, which is the point — the glyphs differ per language
33
- * (`倍率 0.11x(国区) / 0.00x(国际区)` in Chinese,
34
- * `Multiplier 0.11x (China) / 0.00x (International)` in English) and a
35
- * separator chosen here would be right in at most one of them.
36
- *
37
- * `null` means "this row states no rate"; the caller drops it from the hint
38
- * array rather than rendering a placeholder, because a guessed rate on a spend
39
- * figure is worse than a missing one. `'0.00'` is a declaration — this model
40
- * consumes no allowance — so it renders like any other value.
41
- */
42
- export declare function creditMultiplierHint(credits: WorkBuddyModelCredits | undefined, region: WorkBuddyRegion | null, labels: {
43
- multiplier: string;
44
- region: (value: string, key: WorkBuddyRegion) => string;
45
- pair: (first: string, second: string) => string;
46
- }): string | null;
47
- /** Mask a UIN so the card shows identity without publishing the full number. */
48
- export declare function maskUin(uin?: string | null): string;
49
- export declare function WorkBuddySection({ onModelChange, loadModelDirectory }: WorkBuddySectionProps): React.ReactElement;
50
- //# sourceMappingURL=WorkBuddySection.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"WorkBuddySection.d.ts","sourceRoot":"","sources":["../../../../src/client/workbuddy/WorkBuddySection.tsx"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAmB,MAAM,OAAO,CAAA;AACvC,OAAO,KAAK,EAEV,qBAAqB,EAIrB,eAAe,EAChB,MAAM,qCAAqC,CAAA;AAK5C,OAAO,EAAuB,KAAK,qBAAqB,EAAE,MAAM,0BAA0B,CAAA;AAmB1F;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AACH,wBAAgB,oBAAoB,CAClC,OAAO,EAAE,qBAAqB,GAAG,SAAS,EAC1C,MAAM,EAAE,eAAe,GAAG,IAAI,EAC9B,MAAM,EAAE;IACN,UAAU,EAAE,MAAM,CAAA;IAClB,MAAM,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,eAAe,KAAK,MAAM,CAAA;IACvD,IAAI,EAAE,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,KAAK,MAAM,CAAA;CAChD,GACA,MAAM,GAAG,IAAI,CA4Bf;AAED,gFAAgF;AAChF,wBAAgB,OAAO,CAAC,GAAG,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAInD;AAED,wBAAgB,gBAAgB,CAAC,EAAE,aAAa,EAAE,kBAAkB,EAAE,EAAE,qBAAqB,GAAG,KAAK,CAAC,YAAY,CAidjH"}