@eddyskywalker/dsh-chatgpt-subscription 0.12.6 → 0.13.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 (143) hide show
  1. package/CHANGELOG.md +637 -619
  2. package/lib/client.js +3975 -4521
  3. package/lib/client.js.map +1 -1
  4. package/lib/index.js +1146 -299
  5. package/lib/types/client/CodexComposerQuota.d.ts.map +1 -1
  6. package/lib/types/client/CodexSubscriptionSection.d.ts +1 -3
  7. package/lib/types/client/CodexSubscriptionSection.d.ts.map +1 -1
  8. package/lib/types/client/ProviderHubSection.d.ts +6 -5
  9. package/lib/types/client/ProviderHubSection.d.ts.map +1 -1
  10. package/lib/types/client/antigravity/AntigravityComposerQuota.d.ts +22 -1
  11. package/lib/types/client/antigravity/AntigravityComposerQuota.d.ts.map +1 -1
  12. package/lib/types/client/antigravity/AntigravitySection.d.ts +0 -2
  13. package/lib/types/client/antigravity/AntigravitySection.d.ts.map +1 -1
  14. package/lib/types/client/antigravity/locales.d.ts +33 -26
  15. package/lib/types/client/antigravity/locales.d.ts.map +1 -1
  16. package/lib/types/client/antigravity/styles.d.ts.map +1 -1
  17. package/lib/types/client/claude/ClaudeComposerQuota.d.ts +3 -7
  18. package/lib/types/client/claude/ClaudeComposerQuota.d.ts.map +1 -1
  19. package/lib/types/client/claude/ClaudeSection.d.ts +10 -9
  20. package/lib/types/client/claude/ClaudeSection.d.ts.map +1 -1
  21. package/lib/types/client/claude/locales.d.ts +29 -29
  22. package/lib/types/client/claude/locales.d.ts.map +1 -1
  23. package/lib/types/client/claude/useClaudeSection.d.ts +93 -0
  24. package/lib/types/client/claude/useClaudeSection.d.ts.map +1 -0
  25. package/lib/types/client/command-code/CommandCodeComposerQuota.d.ts +3 -7
  26. package/lib/types/client/command-code/CommandCodeComposerQuota.d.ts.map +1 -1
  27. package/lib/types/client/command-code/CommandCodeSection.d.ts +0 -3
  28. package/lib/types/client/command-code/CommandCodeSection.d.ts.map +1 -1
  29. package/lib/types/client/command-code/locales.d.ts +32 -29
  30. package/lib/types/client/command-code/locales.d.ts.map +1 -1
  31. package/lib/types/client/common/AccountPoolSection.d.ts +16 -4
  32. package/lib/types/client/common/AccountPoolSection.d.ts.map +1 -1
  33. package/lib/types/client/common/ComposerQuotaBadge.d.ts +35 -0
  34. package/lib/types/client/common/ComposerQuotaBadge.d.ts.map +1 -0
  35. package/lib/types/client/common/ContextWindowEditor.d.ts +69 -0
  36. package/lib/types/client/common/ContextWindowEditor.d.ts.map +1 -0
  37. package/lib/types/client/common/ModelChecklist.d.ts +29 -0
  38. package/lib/types/client/common/ModelChecklist.d.ts.map +1 -0
  39. package/lib/types/client/common/account-pool-labels.d.ts +18 -2
  40. package/lib/types/client/common/account-pool-labels.d.ts.map +1 -1
  41. package/lib/types/client/common/account-quota.d.ts +60 -0
  42. package/lib/types/client/common/account-quota.d.ts.map +1 -0
  43. package/lib/types/client/common/format.d.ts +30 -0
  44. package/lib/types/client/common/format.d.ts.map +1 -0
  45. package/lib/types/client/common/line-api.d.ts +8 -0
  46. package/lib/types/client/common/line-api.d.ts.map +1 -0
  47. package/lib/types/client/common/model-checklist-styles.d.ts +2 -0
  48. package/lib/types/client/common/model-checklist-styles.d.ts.map +1 -0
  49. package/lib/types/client/common/styles.d.ts.map +1 -1
  50. package/lib/types/client/common/use-store.d.ts +3 -0
  51. package/lib/types/client/common/use-store.d.ts.map +1 -0
  52. package/lib/types/client/hub/HubOverview.d.ts +14 -0
  53. package/lib/types/client/hub/HubOverview.d.ts.map +1 -0
  54. package/lib/types/client/hub/brand-icons.d.ts +46 -0
  55. package/lib/types/client/hub/brand-icons.d.ts.map +1 -0
  56. package/lib/types/client/hub/brand-svg.d.ts +51 -0
  57. package/lib/types/client/hub/brand-svg.d.ts.map +1 -0
  58. package/lib/types/client/hub/hub-styles.d.ts +2 -0
  59. package/lib/types/client/hub/hub-styles.d.ts.map +1 -0
  60. package/lib/types/client/hub/providers.d.ts +38 -0
  61. package/lib/types/client/hub/providers.d.ts.map +1 -0
  62. package/lib/types/client/index.d.ts +20 -6
  63. package/lib/types/client/index.d.ts.map +1 -1
  64. package/lib/types/client/kimi-code/KimiCodeComposerQuota.d.ts +3 -7
  65. package/lib/types/client/kimi-code/KimiCodeComposerQuota.d.ts.map +1 -1
  66. package/lib/types/client/kimi-code/KimiCodeSection.d.ts +0 -3
  67. package/lib/types/client/kimi-code/KimiCodeSection.d.ts.map +1 -1
  68. package/lib/types/client/kimi-code/locales.d.ts +32 -32
  69. package/lib/types/client/kimi-code/locales.d.ts.map +1 -1
  70. package/lib/types/client/kimi-code/styles.d.ts.map +1 -1
  71. package/lib/types/client/locales.d.ts +45 -35
  72. package/lib/types/client/locales.d.ts.map +1 -1
  73. package/lib/types/client/minimax-code/MinimaxCodeComposerQuota.d.ts +4 -8
  74. package/lib/types/client/minimax-code/MinimaxCodeComposerQuota.d.ts.map +1 -1
  75. package/lib/types/client/minimax-code/MinimaxCodeSection.d.ts +8 -37
  76. package/lib/types/client/minimax-code/MinimaxCodeSection.d.ts.map +1 -1
  77. package/lib/types/client/minimax-code/api.d.ts +3 -3
  78. package/lib/types/client/minimax-code/api.d.ts.map +1 -1
  79. package/lib/types/client/minimax-code/locales.d.ts +29 -56
  80. package/lib/types/client/minimax-code/locales.d.ts.map +1 -1
  81. package/lib/types/client/minimax-code/useMinimaxCodeSection.d.ts +115 -0
  82. package/lib/types/client/minimax-code/useMinimaxCodeSection.d.ts.map +1 -0
  83. package/lib/types/client/ollama/OllamaSection.d.ts +2 -2
  84. package/lib/types/client/ollama/OllamaSection.d.ts.map +1 -1
  85. package/lib/types/client/ollama/locales.d.ts +54 -24
  86. package/lib/types/client/ollama/locales.d.ts.map +1 -1
  87. package/lib/types/client/styles.d.ts.map +1 -1
  88. package/lib/types/client/workbuddy/WorkBuddyComposerQuota.d.ts +3 -7
  89. package/lib/types/client/workbuddy/WorkBuddyComposerQuota.d.ts.map +1 -1
  90. package/lib/types/client/workbuddy/WorkBuddySection.d.ts +10 -37
  91. package/lib/types/client/workbuddy/WorkBuddySection.d.ts.map +1 -1
  92. package/lib/types/client/workbuddy/locales.d.ts +0 -66
  93. package/lib/types/client/workbuddy/locales.d.ts.map +1 -1
  94. package/lib/types/client/workbuddy/useWorkBuddySection.d.ts +141 -0
  95. package/lib/types/client/workbuddy/useWorkBuddySection.d.ts.map +1 -0
  96. package/lib/types/host/antigravity/account-pool.d.ts +18 -1
  97. package/lib/types/host/antigravity/account-pool.d.ts.map +1 -1
  98. package/lib/types/host/antigravity/client.d.ts.map +1 -1
  99. package/lib/types/host/claude/account-pool.d.ts +22 -2
  100. package/lib/types/host/claude/account-pool.d.ts.map +1 -1
  101. package/lib/types/host/claude/client.d.ts +37 -5
  102. package/lib/types/host/claude/client.d.ts.map +1 -1
  103. package/lib/types/host/claude/routes.d.ts.map +1 -1
  104. package/lib/types/host/codex-account-pool.d.ts +26 -1
  105. package/lib/types/host/codex-account-pool.d.ts.map +1 -1
  106. package/lib/types/host/command-code/account-pool.d.ts +13 -1
  107. package/lib/types/host/command-code/account-pool.d.ts.map +1 -1
  108. package/lib/types/host/command-code/client.d.ts +2 -1
  109. package/lib/types/host/command-code/client.d.ts.map +1 -1
  110. package/lib/types/host/common/account-quota.d.ts +44 -0
  111. package/lib/types/host/common/account-quota.d.ts.map +1 -0
  112. package/lib/types/host/common/catalog-snapshot.d.ts +9 -0
  113. package/lib/types/host/common/catalog-snapshot.d.ts.map +1 -1
  114. package/lib/types/host/common/provider-route.d.ts +56 -0
  115. package/lib/types/host/common/provider-route.d.ts.map +1 -0
  116. package/lib/types/host/hub-overview.d.ts +26 -0
  117. package/lib/types/host/hub-overview.d.ts.map +1 -0
  118. package/lib/types/host/kimi-code/account-pool.d.ts +24 -1
  119. package/lib/types/host/kimi-code/account-pool.d.ts.map +1 -1
  120. package/lib/types/host/kimi-code/client.d.ts +23 -2
  121. package/lib/types/host/kimi-code/client.d.ts.map +1 -1
  122. package/lib/types/host/minimax-code/account-pool.d.ts +34 -2
  123. package/lib/types/host/minimax-code/account-pool.d.ts.map +1 -1
  124. package/lib/types/host/minimax-code/client.d.ts +23 -0
  125. package/lib/types/host/minimax-code/client.d.ts.map +1 -1
  126. package/lib/types/host/minimax-code/routes.d.ts.map +1 -1
  127. package/lib/types/host/oauth-service.d.ts +16 -0
  128. package/lib/types/host/oauth-service.d.ts.map +1 -1
  129. package/lib/types/host/usage-service.d.ts +27 -2
  130. package/lib/types/host/usage-service.d.ts.map +1 -1
  131. package/lib/types/host/workbuddy/account-pool.d.ts +13 -1
  132. package/lib/types/host/workbuddy/account-pool.d.ts.map +1 -1
  133. package/lib/types/host/workbuddy/client.d.ts +15 -0
  134. package/lib/types/host/workbuddy/client.d.ts.map +1 -1
  135. package/lib/types/host/workbuddy/routes.d.ts.map +1 -1
  136. package/lib/types/index.d.ts.map +1 -1
  137. package/lib/types/shared/account-pool-contracts.d.ts +44 -0
  138. package/lib/types/shared/account-pool-contracts.d.ts.map +1 -1
  139. package/lib/types/shared/antigravity-contracts.d.ts +9 -3
  140. package/lib/types/shared/antigravity-contracts.d.ts.map +1 -1
  141. package/lib/types/shared/hub-contracts.d.ts +37 -0
  142. package/lib/types/shared/hub-contracts.d.ts.map +1 -0
  143. package/package.json +1 -1
@@ -0,0 +1,46 @@
1
+ /**
2
+ * Provider and vendor brand marks for the hub overview cards and the shared
3
+ * model checklist.
4
+ *
5
+ * The artwork lives in brand-svg.ts as inline strings (extracted from the
6
+ * vendored combine lockups); this module adds the presentation: a rounded,
7
+ * brand-tinted tile for provider cards, a bare mark for model rows, and the
8
+ * ordered model-id → vendor rules. A model no rule claims draws no mark at
9
+ * all — a wrong vendor's mark reads as a wrong answer, not a missing one
10
+ * (the same principle claude-style's brand.js documents).
11
+ */
12
+ import { type BrandMarkKey } from './brand-svg.ts';
13
+ export type HubProviderId = 'chatgpt' | 'antigravity' | 'command-code' | 'kimi-code' | 'workbuddy' | 'minimax-code' | 'claude' | 'ollama';
14
+ interface ProviderBrand {
15
+ /** Key into BRAND_MARKS; absent for monogram-only providers. */
16
+ mark?: BrandMarkKey;
17
+ /**
18
+ * Text color for artwork that draws in currentColor (OpenAI's knot, Kimi's
19
+ * K, Claude's mark). Self-colored artwork (gradients, multi-fill marks)
20
+ * leaves this undefined.
21
+ */
22
+ color?: string;
23
+ /** Brand color the tile's tinted background is mixed from. */
24
+ tile: string;
25
+ /** Monogram for providers without vendored artwork. */
26
+ monogram?: string;
27
+ }
28
+ export declare const PROVIDER_BRANDS: Record<HubProviderId, ProviderBrand>;
29
+ /** One brand mark at a given box size; the artwork is decorative. */
30
+ export declare function BrandMark({ mark, color, size }: {
31
+ mark: BrandMarkKey;
32
+ color?: string;
33
+ size?: number;
34
+ }): React.JSX.Element;
35
+ /**
36
+ * The overview card's logo tile: the mark centered on a rounded square tinted
37
+ * with the brand color, in the QQ-mail idiom. The tile element doubles as the
38
+ * fallback surface for monogram providers.
39
+ */
40
+ export declare function BrandTile({ id, size }: {
41
+ id: HubProviderId;
42
+ size?: number;
43
+ }): React.JSX.Element;
44
+ export declare function modelBrandMark(modelId: string): BrandMarkKey | null;
45
+ export {};
46
+ //# sourceMappingURL=brand-icons.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brand-icons.d.ts","sourceRoot":"","sources":["../../../../src/client/hub/brand-icons.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAe,KAAK,YAAY,EAAE,MAAM,gBAAgB,CAAA;AAE/D,MAAM,MAAM,aAAa,GACrB,SAAS,GAAG,aAAa,GAAG,cAAc,GAAG,WAAW,GACxD,WAAW,GAAG,cAAc,GAAG,QAAQ,GAAG,QAAQ,CAAA;AAEtD,UAAU,aAAa;IACrB,gEAAgE;IAChE,IAAI,CAAC,EAAE,YAAY,CAAA;IACnB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,8DAA8D;IAC9D,IAAI,EAAE,MAAM,CAAA;IACZ,uDAAuD;IACvD,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,eAAO,MAAM,eAAe,EAAE,MAAM,CAAC,aAAa,EAAE,aAAa,CAShE,CAAA;AAED,qEAAqE;AACrE,wBAAgB,SAAS,CAAC,EAAE,IAAI,EAAE,KAAK,EAAE,IAAS,EAAE,EAAE;IAAE,IAAI,EAAE,YAAY,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAU9H;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,EAAE,EAAE,EAAE,IAAS,EAAE,EAAE;IAAE,EAAE,EAAE,aAAa,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAWpG;AAiBD,wBAAgB,cAAc,CAAC,OAAO,EAAE,MAAM,GAAG,YAAY,GAAG,IAAI,CAMnE"}
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Inline brand marks, extracted from the vendored combine lockups
3
+ * (dsh-claude-style/src/assets/icons/combine). Each entry is the
4
+ * mark-color group's inner artwork with its original transform, cropped
5
+ * to a square, mark-centered viewBox measured against the rendered lockup.
6
+ * Regenerate with temp/gen-brand-svg.cjs; do not hand-edit the artwork.
7
+ */
8
+ export interface BrandMarkSvg {
9
+ viewBox: string;
10
+ body: string;
11
+ }
12
+ export declare const BRAND_MARKS: {
13
+ readonly openai: {
14
+ readonly viewBox: "0 -0.225 1.45 1.45";
15
+ readonly body: "<g transform=\"translate(-0.2852 -2.0104) scale(0.002787)\"><g fill=\"currentColor\"><path d=\"M583.793,841.346c11.778,-44.127 0.356,-93.159 -34.264,-127.777c-34.616,-34.618 -83.65,-46.041 -127.777,-34.264c-32.329,-32.262 -80.503,-46.887 -127.794,-34.215c-47.289,12.672 -81.694,49.424 -93.563,93.526c-44.102,11.866 -80.854,46.274 -93.523,93.564c-12.673,47.289 1.952,95.462 34.214,127.791c-11.776,44.126 -0.354,93.16 34.264,127.777c34.618,34.62 83.651,46.041 127.779,34.264c32.329,32.263 80.503,46.888 127.79,34.215c47.289,-12.672 81.695,-49.425 93.564,-93.526c44.104,-11.865 80.857,-46.274 93.526,-93.563c12.672,-47.291 -1.952,-95.462 -34.216,-127.792Zm-179.693,-124.105c39.682,-22.943 91.303,-17.439 125.254,16.511c23.963,23.965 33.748,56.745 29.367,87.904l-111.77,-64.53c-4.415,-2.549 -9.855,-2.549 -14.27,0l-130.876,75.563l0,-50.806c0,-3.427 1.837,-6.63 4.803,-8.343l97.49,-56.297l0.002,-0.002Zm-41.659,113.397l60.638,35.01l0,70.02l-60.638,35.01l-60.639,-35.01l0,-70.02l60.639,-35.01Zm-138.015,-57.766c-0.029,-45.836 30.549,-87.793 76.926,-100.217c32.734,-8.773 66.015,-0.856 90.81,18.518l-111.768,64.53c-4.415,2.549 -7.134,7.261 -7.134,12.359l0,151.125l-44.001,-25.405c-2.967,-1.715 -4.824,-4.909 -4.824,-8.332l-0.009,-112.576l0,-0.002Zm-89.99,66.69c8.773,-32.735 32.268,-57.601 61.443,-69.386l0,129.056c0,5.099 2.719,9.81 7.134,12.359l130.877,75.564l-44.002,25.405c-2.964,1.713 -6.661,1.724 -9.627,0.011l-97.498,-56.279c-39.71,-22.893 -60.754,-70.353 -48.329,-116.727l0.002,-0.003Zm186.345,244.515c-39.681,22.943 -91.303,17.437 -125.253,-16.512c-23.965,-23.965 -33.749,-56.745 -29.368,-87.904l111.769,64.53c4.414,2.549 9.856,2.549 14.271,0l130.876,-75.564l0,50.807c0,3.429 -1.837,6.632 -4.803,8.343l-97.49,56.298l-0.002,0.002Zm179.675,-55.631c0.028,45.837 -30.55,87.793 -76.927,100.216c-32.736,8.774 -66.017,0.856 -90.81,-18.519l111.767,-64.529c4.417,-2.549 7.136,-7.262 7.136,-12.359l0,-151.123l44.001,25.404c2.965,1.713 4.824,4.909 4.824,8.332l0.009,112.578Zm89.986,-66.691c-8.773,32.735 -32.268,57.601 -61.444,69.387l0,-129.058c0,-5.097 -2.718,-9.808 -7.133,-12.359l-130.878,-75.562l44.002,-25.405c2.965,-1.714 6.662,-1.726 9.628,-0.012l97.497,56.278c39.712,22.893 60.754,70.355 48.329,116.729l-0.001,0.002Z\" style=\"\"/></g></g>";
16
+ };
17
+ readonly gemini: {
18
+ readonly viewBox: "0 -0.1644 1.329 1.329";
19
+ readonly body: "<g transform=\"translate(-0.0604 -0.2250) scale(0.060417)\"><g><path d=\"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z\" fill=\"#3186FF\"></path><path d=\"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z\" fill=\"url(#lobe-icons-gemini-0-_R_0_)\"></path><path d=\"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z\" fill=\"url(#lobe-icons-gemini-1-_R_0_)\"></path><path d=\"M20.616 10.835a14.147 14.147 0 01-4.45-3.001 14.111 14.111 0 01-3.678-6.452.503.503 0 00-.975 0 14.134 14.134 0 01-3.679 6.452 14.155 14.155 0 01-4.45 3.001c-.65.28-1.318.505-2.002.678a.502.502 0 000 .975c.684.172 1.35.397 2.002.677a14.147 14.147 0 014.45 3.001 14.112 14.112 0 013.679 6.453.502.502 0 00.975 0c.172-.685.397-1.351.677-2.003a14.145 14.145 0 013.001-4.45 14.113 14.113 0 016.453-3.678.503.503 0 000-.975 13.245 13.245 0 01-2.003-.678z\" fill=\"url(#lobe-icons-gemini-2-_R_0_)\"></path><defs><linearGradient gradientUnits=\"userSpaceOnUse\" id=\"lobe-icons-gemini-0-_R_0_\" x1=\"7\" x2=\"11\" y1=\"15.5\" y2=\"12\"><stop stop-color=\"#08B962\"></stop><stop offset=\"1\" stop-color=\"#08B962\" stop-opacity=\"0\"></stop></linearGradient><linearGradient gradientUnits=\"userSpaceOnUse\" id=\"lobe-icons-gemini-1-_R_0_\" x1=\"8\" x2=\"11.5\" y1=\"5.5\" y2=\"11\"><stop stop-color=\"#F94543\"></stop><stop offset=\"1\" stop-color=\"#F94543\" stop-opacity=\"0\"></stop></linearGradient><linearGradient gradientUnits=\"userSpaceOnUse\" id=\"lobe-icons-gemini-2-_R_0_\" x1=\"3.5\" x2=\"17.5\" y1=\"13.5\" y2=\"12\"><stop stop-color=\"#FABC12\"></stop><stop offset=\".46\" stop-color=\"#FABC12\" stop-opacity=\"0\"></stop></linearGradient></defs></g></g>";
20
+ };
21
+ readonly kimi: {
22
+ readonly viewBox: "0.0488 -0.225 1.2083 1.2083";
23
+ readonly body: "<g transform=\"translate(-0.1812 -0.2250) scale(0.060417)\"><g><path d=\"M21.846 0a1.923 1.923 0 110 3.846H20.15a.226.226 0 01-.227-.226V1.923C19.923.861 20.784 0 21.846 0z\" fill=\"#1783FF\"></path><path d=\"M11.065 11.199l7.257-7.2c.137-.136.06-.41-.116-.41H14.3a.164.164 0 00-.117.051l-7.82 7.756c-.122.12-.302.013-.302-.179V3.82c0-.127-.083-.23-.185-.23H3.186c-.103 0-.186.103-.186.23V19.77c0 .128.083.23.186.23h2.69c.103 0 .186-.102.186-.23v-3.25c0-.069.025-.135.069-.178l2.424-2.406a.158.158 0 01.205-.023l6.484 4.772a7.677 7.677 0 003.453 1.283c.108.012.2-.095.2-.23v-3.06c0-.117-.07-.212-.164-.227a5.028 5.028 0 01-2.027-.807l-5.613-4.064c-.117-.078-.132-.279-.028-.381z\" fill=\"currentColor\"></path></g></g>";
24
+ };
25
+ readonly minimax: {
26
+ readonly viewBox: "0 -0.225 1.45 1.45";
27
+ readonly body: "<g transform=\"translate(-0.0000 -0.2250) scale(0.060417)\"><g><defs><linearGradient id=\"lobe-icons-minimax-_R_0_\" x1=\"0%\" x2=\"100.182%\" y1=\"50.057%\" y2=\"50.057%\"><stop offset=\"0%\" stop-color=\"#E2167E\"></stop><stop offset=\"100%\" stop-color=\"#FE603C\"></stop></linearGradient></defs><path d=\"M16.278 2c1.156 0 2.093.927 2.093 2.07v12.501a.74.74 0 00.744.709.74.74 0 00.743-.709V9.099a2.06 2.06 0 012.071-2.049A2.06 2.06 0 0124 9.1v6.561a.649.649 0 01-.652.645.649.649 0 01-.653-.645V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v7.472a2.037 2.037 0 01-2.048 2.026 2.037 2.037 0 01-2.048-2.026v-12.5a.785.785 0 00-.788-.753.785.785 0 00-.789.752l-.001 15.904A2.037 2.037 0 0113.441 22a2.037 2.037 0 01-2.048-2.026V18.04c0-.356.292-.645.652-.645.36 0 .652.289.652.645v1.934c0 .263.142.506.372.638.23.131.514.131.744 0a.734.734 0 00.372-.638V4.07c0-1.143.937-2.07 2.093-2.07zm-5.674 0c1.156 0 2.093.927 2.093 2.07v11.523a.648.648 0 01-.652.645.648.648 0 01-.652-.645V4.07a.785.785 0 00-.789-.78.785.785 0 00-.789.78v14.013a2.06 2.06 0 01-2.07 2.048 2.06 2.06 0 01-2.071-2.048V9.1a.762.762 0 00-.766-.758.762.762 0 00-.766.758v3.8a2.06 2.06 0 01-2.071 2.049A2.06 2.06 0 010 12.9v-1.378c0-.357.292-.646.652-.646.36 0 .653.29.653.646V12.9c0 .418.343.757.766.757s.766-.339.766-.757V9.099a2.06 2.06 0 012.07-2.048 2.06 2.06 0 012.071 2.048v8.984c0 .419.343.758.767.758.423 0 .766-.339.766-.758V4.07c0-1.143.937-2.07 2.093-2.07z\" fill=\"url(#lobe-icons-minimax-_R_0_)\" fill-rule=\"nonzero\"></path></g></g>";
28
+ };
29
+ readonly tencent: {
30
+ readonly viewBox: "0 -0.225 1.45 1.45";
31
+ readonly body: "<g transform=\"translate(-0.0000 -0.2250) scale(0.060417)\"><g><circle cx=\"12\" cy=\"12\" fill=\"#0055E9\" r=\"12\"></circle><path d=\"M12 0c.518 0 1.028.033 1.528.096A6.188 6.188 0 0112.12 12.28l-.12.001c-2.99 0-5.242 2.179-5.554 5.11-.223 2.086.353 4.412 2.242 6.146C3.672 22.1 0 17.479 0 12 0 5.373 5.373 0 12 0z\" fill=\"currentColor\"></path><path d=\"M5.286 5a2.438 2.438 0 01.682 3.38c-3.962 5.966-3.215 10.743 2.648 15.136C3.636 22.056 0 17.452 0 12c0-1.787.39-3.482 1.09-5.006.253-.435.525-.872.817-1.311A2.438 2.438 0 015.286 5z\" fill=\"#0055E9\"></path><path d=\"M12.98.04c.272.021.543.053.81.093.583.106 1.117.254 1.538.44 6.638 2.927 8.07 10.052 1.748 15.642a4.125 4.125 0 01-5.822-.358c-1.51-1.706-1.3-4.184.357-5.822.858-.848 3.108-1.223 4.045-2.441 1.257-1.634 2.122-6.009-2.523-7.506L12.98.039z\" fill=\"#00BCFF\"></path><path d=\"M13.528.096A6.187 6.187 0 0112 12.281a5.75 5.75 0 00-1.71.255c.147-.905.595-1.784 1.321-2.501.858-.848 3.108-1.223 4.045-2.441 1.27-1.651 2.14-6.104-2.676-7.554.184.014.367.033.548.056z\" fill=\"#ECECEE\"></path></g></g>";
32
+ };
33
+ readonly qwen: {
34
+ readonly viewBox: "-0.0125 -0.1646 1.3417 1.3417";
35
+ readonly body: "<g transform=\"translate(-0.0604 -0.2250) scale(0.060417)\"><g><path d=\"M12.604 1.34c.393.69.784 1.382 1.174 2.075a.18.18 0 00.157.091h5.552c.174 0 .322.11.446.327l1.454 2.57c.19.337.24.478.024.837-.26.43-.513.864-.76 1.3l-.367.658c-.106.196-.223.28-.04.512l2.652 4.637c.172.301.111.494-.043.77-.437.785-.882 1.564-1.335 2.34-.159.272-.352.375-.68.37-.777-.016-1.552-.01-2.327.016a.099.099 0 00-.081.05 575.097 575.097 0 01-2.705 4.74c-.169.293-.38.363-.725.364-.997.003-2.002.004-3.017.002a.537.537 0 01-.465-.271l-1.335-2.323a.09.09 0 00-.083-.049H4.982c-.285.03-.553-.001-.805-.092l-1.603-2.77a.543.543 0 01-.002-.54l1.207-2.12a.198.198 0 000-.197 550.951 550.951 0 01-1.875-3.272l-.79-1.395c-.16-.31-.173-.496.095-.965.465-.813.927-1.625 1.387-2.436.132-.234.304-.334.584-.335a338.3 338.3 0 012.589-.001.124.124 0 00.107-.063l2.806-4.895a.488.488 0 01.422-.246c.524-.001 1.053 0 1.583-.006L11.704 1c.341-.003.724.032.9.34zm-3.432.403a.06.06 0 00-.052.03L6.254 6.788a.157.157 0 01-.135.078H3.253c-.056 0-.07.025-.041.074l5.81 10.156c.025.042.013.062-.034.063l-2.795.015a.218.218 0 00-.2.116l-1.32 2.31c-.044.078-.021.118.068.118l5.716.008c.046 0 .08.02.104.061l1.403 2.454c.046.081.092.082.139 0l5.006-8.76.783-1.382a.055.055 0 01.096 0l1.424 2.53a.122.122 0 00.107.062l2.763-.02a.04.04 0 00.035-.02.041.041 0 000-.04l-2.9-5.086a.108.108 0 010-.113l.293-.507 1.12-1.977c.024-.041.012-.062-.035-.062H9.2c-.059 0-.073-.026-.043-.077l1.434-2.505a.107.107 0 000-.114L9.225 1.774a.06.06 0 00-.053-.031zm6.29 8.02c.046 0 .058.02.034.06l-.832 1.465-2.613 4.585a.056.056 0 01-.05.029.058.058 0 01-.05-.029L8.498 9.841c-.02-.034-.01-.052.028-.054l.216-.012 6.722-.012z\" fill=\"url(#lobe-icons-qwen-_R_0_)\" fill-rule=\"nonzero\"></path><defs><linearGradient id=\"lobe-icons-qwen-_R_0_\" x1=\"0%\" x2=\"100%\" y1=\"0%\" y2=\"0%\"><stop offset=\"0%\" stop-color=\"#6336E7\" stop-opacity=\".84\"></stop><stop offset=\"100%\" stop-color=\"#6F69F7\" stop-opacity=\".84\"></stop></linearGradient></defs></g></g>";
36
+ };
37
+ readonly deepseek: {
38
+ readonly viewBox: "0 -0.2352 1.45 1.45";
39
+ readonly body: "<g transform=\"translate(-0.0000 -0.2250) scale(0.060417)\"><g><path d=\"M23.748 4.482c-.254-.124-.364.113-.512.234-.051.039-.094.09-.137.136-.372.397-.806.657-1.373.626-.829-.046-1.537.214-2.163.848-.133-.782-.575-1.248-1.247-1.548-.352-.156-.708-.311-.955-.65-.172-.241-.219-.51-.305-.774-.055-.16-.11-.323-.293-.35-.2-.031-.278.136-.356.276-.313.572-.434 1.202-.422 1.84.027 1.436.633 2.58 1.838 3.393.137.093.172.187.129.323-.082.28-.18.552-.266.833-.055.179-.137.217-.329.14a5.526 5.526 0 01-1.736-1.18c-.857-.828-1.631-1.742-2.597-2.458a11.365 11.365 0 00-.689-.471c-.985-.957.13-1.743.388-1.836.27-.098.093-.432-.779-.428-.872.004-1.67.295-2.687.684a3.055 3.055 0 01-.465.137 9.597 9.597 0 00-2.883-.102c-1.885.21-3.39 1.102-4.497 2.623C.082 8.606-.231 10.684.152 12.85c.403 2.284 1.569 4.175 3.36 5.653 1.858 1.533 3.997 2.284 6.438 2.14 1.482-.085 3.133-.284 4.994-1.86.47.234.962.327 1.78.397.63.059 1.236-.03 1.705-.128.735-.156.684-.837.419-.961-2.155-1.004-1.682-.595-2.113-.926 1.096-1.296 2.746-2.642 3.392-7.003.05-.347.007-.565 0-.845-.004-.17.035-.237.23-.256a4.173 4.173 0 001.545-.475c1.396-.763 1.96-2.015 2.093-3.517.02-.23-.004-.467-.247-.588zM11.581 18c-2.089-1.642-3.102-2.183-3.52-2.16-.392.024-.321.471-.235.763.09.288.207.486.371.739.114.167.192.416-.113.603-.673.416-1.842-.14-1.897-.167-1.361-.802-2.5-1.86-3.301-3.307-.774-1.393-1.224-2.887-1.298-4.482-.02-.386.093-.522.477-.592a4.696 4.696 0 011.529-.039c2.132.312 3.946 1.265 5.468 2.774.868.86 1.525 1.887 2.202 2.891.72 1.066 1.494 2.082 2.48 2.914.348.292.625.514.891.677-.802.09-2.14.11-3.054-.614zm1-6.44a.306.306 0 01.415-.287.302.302 0 01.2.288.306.306 0 01-.31.307.303.303 0 01-.304-.308zm3.11 1.596c-.2.081-.399.151-.59.16a1.245 1.245 0 01-.798-.254c-.274-.23-.47-.358-.552-.758a1.73 1.73 0 01.016-.588c.07-.327-.008-.537-.239-.727-.187-.156-.426-.199-.688-.199a.559.559 0 01-.254-.078c-.11-.054-.2-.19-.114-.358.028-.054.16-.186.192-.21.356-.202.767-.136 1.146.016.352.144.618.408 1.001.782.391.451.462.576.685.914.176.265.336.537.445.848.067.195-.019.354-.25.452z\" fill=\"#4D6BFE\"></path></g></g>";
40
+ };
41
+ readonly grok: {
42
+ readonly viewBox: "0 -0.2237 1.45 1.45";
43
+ readonly body: "<g transform=\"translate(-0.0000 -0.2250) scale(0.060417)\"><g fill=\"#000\" fill-rule=\"evenodd\"><path d=\"M9.27 15.29l7.978-5.897c.391-.29.95-.177 1.137.272.98 2.369.542 5.215-1.41 7.169-1.951 1.954-4.667 2.382-7.149 1.406l-2.711 1.257c3.889 2.661 8.611 2.003 11.562-.953 2.341-2.344 3.066-5.539 2.388-8.42l.006.007c-.983-4.232.242-5.924 2.75-9.383.06-.082.12-.164.179-.248l-3.301 3.305v-.01L9.267 15.292M7.623 16.723c-2.792-2.67-2.31-6.801.071-9.184 1.761-1.763 4.647-2.483 7.166-1.425l2.705-1.25a7.808 7.808 0 00-1.829-1A8.975 8.975 0 005.984 5.83c-2.533 2.536-3.33 6.436-1.962 9.764 1.022 2.487-.653 4.246-2.34 6.022-.599.63-1.199 1.259-1.682 1.925l7.62-6.815\"></path></g></g>";
44
+ };
45
+ readonly claude: {
46
+ readonly viewBox: "0 0 148.09 148.18";
47
+ readonly body: "<g transform='translate(-75.96,-223.53)'><path d='m 105.01,322.07 29.14,-16.35 0.49,-1.42 -0.49,-0.79 h -1.42 l -4.87,-0.3 -16.65,-0.45 -14.44,-0.6 -13.99,-0.75 -3.52,-0.75 -3.3,-4.35 0.34,-2.17 2.96,-1.99 4.24,0.37 9.37,0.64 14.06,0.97 10.2,0.6 15.11,1.57 h 2.4 l 0.34,-0.97 -0.82,-0.6 -0.64,-0.6 -14.55,-9.86 -15.75,-10.42 -8.25,-6 -4.46,-3.04 -2.25,-2.85 -0.97,-6.22 4.05,-4.46 5.44,0.37 1.39,0.37 5.51,4.24 11.77,9.11 15.37,11.32 2.25,1.87 0.9,-0.64 0.11,-0.45 -1.01,-1.69 -8.36,-15.11 -8.92,-15.37 -3.97,-6.37 -1.05,-3.82 c -0.37,-1.57 -0.64,-2.89 -0.64,-4.5 l 4.61,-6.26 2.55,-0.82 6.15,0.82 2.59,2.25 3.82,8.74 6.19,13.76 9.6,18.71 2.81,5.55 1.5,5.14 0.56,1.57 h 0.97 v -0.9 l 0.79,-10.54 1.46,-12.94 1.42,-16.65 0.49,-4.69 2.32,-5.62 4.61,-3.04 3.6,1.72 2.96,4.24 -0.41,2.74 -1.76,11.44 -3.45,17.92 -2.25,12 h 1.31 l 1.5,-1.5 6.07,-8.06 10.2,-12.75 4.5,-5.06 5.25,-5.59 3.37,-2.66 h 6.37 l 4.69,6.97 -2.1,7.2 -6.56,8.32 -5.44,7.05 -7.8,10.5 -4.87,8.4 0.45,0.67 1.16,-0.11 17.62,-3.75 9.52,-1.72 11.36,-1.95 5.14,2.4 0.56,2.44 -2.02,4.99 -12.15,3 -14.25,2.85 -21.22,5.02 -0.26,0.19 0.3,0.37 9.56,0.9 4.09,0.22 h 10.01 l 18.64,1.39 4.87,3.22 2.92,3.94 -0.49,3 -7.5,3.82 -10.12,-2.4 -23.62,-5.62 -8.1,-2.02 h -1.12 v 0.67 l 6.75,6.6 12.37,11.17 15.49,14.4 0.79,3.56 -1.99,2.81 -2.1,-0.3 -13.61,-10.24 -5.25,-4.61 -11.89,-10.01 h -0.79 v 1.05 l 2.74,4.01 14.47,21.75 0.75,6.67 -1.05,2.17 -3.75,1.31 -4.12,-0.75 -8.47,-11.89 -8.74,-13.39 -7.05,-12 -0.86,0.49 -4.16,44.81 -1.95,2.29 -4.5,1.72 -3.75,-2.85 -1.99,-4.61 1.99,-9.11 2.4,-11.89 1.95,-9.45 1.76,-11.74 1.05,-3.9 -0.07,-0.26 -0.86,0.11 -8.85,12.15 -13.46,18.19 -10.65,11.4 -2.55,1.01 -4.42,-2.29 0.41,-4.09 2.47,-3.64 14.74,-18.75 8.89,-11.62 5.74,-6.71 -0.04,-0.97 h -0.34 l -39.15,25.42 -6.97,0.9 -3,-2.81 0.37,-4.61 1.42,-1.5 11.77,-8.1 -0.04,0.04 z'/></g>";
48
+ };
49
+ };
50
+ export type BrandMarkKey = keyof typeof BRAND_MARKS;
51
+ //# sourceMappingURL=brand-svg.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"brand-svg.d.ts","sourceRoot":"","sources":["../../../../src/client/hub/brand-svg.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,MAAM,WAAW,YAAY;IAAG,OAAO,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE;AAE/D,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqCyB,CAAA;AAEjD,MAAM,MAAM,YAAY,GAAG,MAAM,OAAO,WAAW,CAAA"}
@@ -0,0 +1,2 @@
1
+ export declare function installHubStyles(): void;
2
+ //# sourceMappingURL=hub-styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hub-styles.d.ts","sourceRoot":"","sources":["../../../../src/client/hub/hub-styles.ts"],"names":[],"mappings":"AAmDA,wBAAgB,gBAAgB,IAAI,IAAI,CAEvC"}
@@ -0,0 +1,38 @@
1
+ /**
2
+ * The hub's provider registry: one descriptor per subscription line.
3
+ *
4
+ * This is the single place the overview learns what a line is called, what
5
+ * its card looks like, how its enable switch talks to the host, and which
6
+ * section the detail page mounts. Adding a line to the hub means adding one
7
+ * entry here — the overview, the navigation and the card rendering all read
8
+ * this table.
9
+ */
10
+ import type { ReactElement } from 'react';
11
+ import type { PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots';
12
+ import type { HubProviderId } from './brand-icons.tsx';
13
+ /** What the detail page hands to a mounted section. */
14
+ export interface HubDetailRenderProps {
15
+ t: (key: any) => string;
16
+ onModelChange?: () => void;
17
+ /** The settings.section runtime props (close, etc.) the host slot passes in. */
18
+ runtime: PropsRuntime<'settings.section'>;
19
+ }
20
+ export interface HubProviderDescriptor {
21
+ id: HubProviderId;
22
+ /** Display name; brand names stay literal, matching the former tabs. */
23
+ name: string;
24
+ /**
25
+ * Commit an enable/disable to the line's own settings endpoint.
26
+ *
27
+ * The overview deliberately reuses each line's existing mutation route
28
+ * rather than adding a second mutator to the aggregated overview route —
29
+ * the aggregated route stays read-only, and every line keeps exactly one
30
+ * place that writes its `enabled` flag. Null when the line has no switch.
31
+ */
32
+ setEnabled: ((enabled: boolean) => Promise<void>) | null;
33
+ renderDetail(props: HubDetailRenderProps): ReactElement;
34
+ }
35
+ /** Card order on the overview; also the former tab order. */
36
+ export declare const HUB_PROVIDERS: readonly HubProviderDescriptor[];
37
+ export declare function hubProviderDescriptor(id: string): HubProviderDescriptor | undefined;
38
+ //# sourceMappingURL=providers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../../../../src/client/hub/providers.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAWpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEtD,uDAAuD;AACvD,MAAM,WAAW,oBAAoB;IACnC,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,MAAM,CAAA;IACvB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,gFAAgF;IAChF,OAAO,EAAE,YAAY,CAAC,kBAAkB,CAAC,CAAA;CAC1C;AAED,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,aAAa,CAAA;IACjB,wEAAwE;IACxE,IAAI,EAAE,MAAM,CAAA;IACZ;;;;;;;OAOG;IACH,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAA;IACxD,YAAY,CAAC,KAAK,EAAE,oBAAoB,GAAG,YAAY,CAAA;CACxD;AA4BD,6DAA6D;AAC7D,eAAO,MAAM,aAAa,EAAE,SAAS,qBAAqB,EAiDzD,CAAA;AAED,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,qBAAqB,GAAG,SAAS,CAEnF"}
@@ -1,16 +1,30 @@
1
1
  import type { Context as ClientContext } from '@deepseek-ai/cordis';
2
2
  import { type LocaleKey } from './locales.ts';
3
+ import { type AntigravityLocaleKey } from './antigravity/locales.ts';
4
+ import { type ClaudeLocaleKey } from './claude/locales.ts';
5
+ import { type CommandCodeLocaleKey } from './command-code/locales.ts';
6
+ import { type KimiCodeLocaleKey } from './kimi-code/locales.ts';
3
7
  import { type MinimaxCodeLocaleKey } from './minimax-code/locales.ts';
8
+ import { type WorkBuddyLocaleKey } from './workbuddy/locales.ts';
9
+ import { type OllamaLocaleKey } from './ollama/locales.ts';
4
10
  declare module '@deepseek-ai/dsh-client-ui-slots' {
11
+ /**
12
+ * Every namespace this plugin registers, typed by that line's own dictionary.
13
+ *
14
+ * These were `any`, which made a renamed or misspelled key invisible to the
15
+ * compiler: the card rendered the key name itself and only a human noticed.
16
+ * Each line exports its key union beside its dictionaries, so this map is now
17
+ * the compile-time half of the locale contract.
18
+ */
5
19
  interface LocaleNamespaceMap {
6
20
  'dsh-chatgpt-subscription': LocaleKey;
7
- 'dsh-antigravity': any;
8
- 'dsh-claude': any;
9
- 'dsh-command-code': any;
10
- 'dsh-kimi-code': any;
21
+ 'dsh-antigravity': AntigravityLocaleKey;
22
+ 'dsh-claude': ClaudeLocaleKey;
23
+ 'dsh-command-code': CommandCodeLocaleKey;
24
+ 'dsh-kimi-code': KimiCodeLocaleKey;
11
25
  'dsh-minimax-code': MinimaxCodeLocaleKey;
12
- 'dsh-workbuddy': any;
13
- 'dsh-ollama': any;
26
+ 'dsh-workbuddy': WorkBuddyLocaleKey;
27
+ 'dsh-ollama': OllamaLocaleKey;
14
28
  }
15
29
  }
16
30
  export declare const inject: string[];
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAenE,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAA;AAe/D,OAAO,EAAqD,KAAK,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAQxH,OAAO,QAAQ,kCAAkC,CAAC;IAChD,UAAU,kBAAkB;QAC1B,0BAA0B,EAAE,SAAS,CAAA;QACrC,iBAAiB,EAAE,GAAG,CAAA;QACtB,YAAY,EAAE,GAAG,CAAA;QACjB,kBAAkB,EAAE,GAAG,CAAA;QACvB,eAAe,EAAE,GAAG,CAAA;QACpB,kBAAkB,EAAE,oBAAoB,CAAA;QACxC,eAAe,EAAE,GAAG,CAAA;QACpB,YAAY,EAAE,GAAG,CAAA;KAClB;CACF;AAED,eAAO,MAAM,MAAM,UAQlB,CAAA;AAED,wBAAgB,KAAK,CAAC,GAAG,EAAE,aAAa,GAAG,IAAI,CAuL9C"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/client/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,qBAAqB,CAAA;AAenE,OAAO,EAAoB,KAAK,SAAS,EAAE,MAAM,cAAc,CAAA;AAM/D,OAAO,EAAoD,KAAK,oBAAoB,EAAE,MAAM,0BAA0B,CAAA;AAGtH,OAAO,EAA0C,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAGlG,OAAO,EAAqD,KAAK,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAExH,OAAO,EAA+C,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAG5G,OAAO,EAAqD,KAAK,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAGxH,OAAO,EAAgD,KAAK,kBAAkB,EAAE,MAAM,wBAAwB,CAAA;AAE9G,OAAO,EAA0C,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAGlG,OAAO,QAAQ,kCAAkC,CAAC;IAChD;;;;;;;OAOG;IACH,UAAU,kBAAkB;QAC1B,0BAA0B,EAAE,SAAS,CAAA;QACrC,iBAAiB,EAAE,oBAAoB,CAAA;QACvC,YAAY,EAAE,eAAe,CAAA;QAC7B,kBAAkB,EAAE,oBAAoB,CAAA;QACxC,eAAe,EAAE,iBAAiB,CAAA;QAClC,kBAAkB,EAAE,oBAAoB,CAAA;QACxC,eAAe,EAAE,kBAAkB,CAAA;QACnC,YAAY,EAAE,eAAe,CAAA;KAC9B;CACF;AAED,eAAO,MAAM,MAAM,UAQlB,CAAA;AAED,wBAAgB,KAAK,CAAC,GAAG,EAAE,aAAa,GAAG,IAAI,CA8G9C"}
@@ -1,17 +1,13 @@
1
1
  import type { ModelDirectoryState } from '@deepseek-ai/dsh-client-ui-model-selection/client';
2
2
  import type { PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots';
3
3
  import type { KimiCodeWebStatus } from '../../shared/kimi-code-contracts.ts';
4
+ import { type ComposerQuotaFacts } from '../common/ComposerQuotaBadge.tsx';
4
5
  import type { SnapshotStore } from '../store.ts';
5
6
  import { NS_KIMI_CODE } from './locales.ts';
6
7
  type Props = PropsRuntime<'conversation.input.right'> & PropsLocale<typeof NS_KIMI_CODE> & {
7
8
  directory: SnapshotStore<ModelDirectoryState>;
8
9
  loadModelDirectory: () => void;
9
10
  };
10
- interface BadgeFacts {
11
- text: string;
12
- tooltip: string;
13
- level: 'normal' | 'warning' | 'danger';
14
- }
15
11
  /**
16
12
  * Pick the most meaningful number for the badge.
17
13
  *
@@ -19,7 +15,7 @@ interface BadgeFacts {
19
15
  * blocks work soonest, so it wins over the longer pools; the 7-day allowance
20
16
  * shows only when no 5-hour window is reported.
21
17
  */
22
- export declare function selectBadgeFacts(status: KimiCodeWebStatus | null): BadgeFacts | null;
23
- export declare function KimiCodeComposerQuota({ directory, loadModelDirectory }: Props): React.JSX.Element | null;
18
+ export declare function selectBadgeFacts(status: KimiCodeWebStatus | null): ComposerQuotaFacts | null;
19
+ export declare function KimiCodeComposerQuota({ directory, loadModelDirectory, t }: Props): React.JSX.Element | null;
24
20
  export {};
25
21
  //# sourceMappingURL=KimiCodeComposerQuota.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"KimiCodeComposerQuota.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/KimiCodeComposerQuota.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAA;AAC5F,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACjF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAA;AAC5E,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAmB3C,KAAK,KAAK,GAAG,YAAY,CAAC,0BAA0B,CAAC,GACnD,WAAW,CAAC,OAAO,YAAY,CAAC,GAAG;IACjC,SAAS,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAA;IAC7C,kBAAkB,EAAE,MAAM,IAAI,CAAA;CAC/B,CAAA;AAEH,UAAU,UAAU;IAClB,IAAI,EAAE,MAAM,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,QAAQ,GAAG,SAAS,GAAG,QAAQ,CAAA;CACvC;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,iBAAiB,GAAG,IAAI,GAAG,UAAU,GAAG,IAAI,CA+BpF;AAED,wBAAgB,qBAAqB,CAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,CAgExG"}
1
+ {"version":3,"file":"KimiCodeComposerQuota.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/KimiCodeComposerQuota.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAA;AAC5F,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACjF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAA;AAC5E,OAAO,EAAkC,KAAK,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;AAE1G,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAI3C,KAAK,KAAK,GAAG,YAAY,CAAC,0BAA0B,CAAC,GAAG,WAAW,CAAC,OAAO,YAAY,CAAC,GAAG;IACzF,SAAS,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAA;IAC7C,kBAAkB,EAAE,MAAM,IAAI,CAAA;CAC/B,CAAA;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,iBAAiB,GAAG,IAAI,GAAG,kBAAkB,GAAG,IAAI,CA+B5F;AAED,wBAAgB,qBAAqB,CAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,CAW3G"}
@@ -3,9 +3,6 @@ interface Props {
3
3
  onModelChange?: () => void;
4
4
  loadModelDirectory?: () => void;
5
5
  }
6
- /** Parse "1M", "512K", "200000" into a positive integer token count. */
7
- export declare function parsePositiveCapacity(value: string): number | null;
8
- export declare function formatCapacity(value: number): string;
9
6
  export declare function KimiCodeSection({ onModelChange, loadModelDirectory }: Props): React.ReactElement;
10
7
  export {};
11
8
  //# sourceMappingURL=KimiCodeSection.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"KimiCodeSection.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/KimiCodeSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAA;AAiBvE,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC;AAiBD,wEAAwE;AACxE,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAOlE;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIpD;AAsED,wBAAgB,eAAe,CAAC,EAAE,aAAa,EAAE,kBAAkB,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CAqwBhG"}
1
+ {"version":3,"file":"KimiCodeSection.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/KimiCodeSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAA;AAsBvE,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC;AAoCD,wBAAgB,eAAe,CAAC,EAAE,aAAa,EAAE,kBAAkB,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CA6qBhG"}
@@ -13,8 +13,6 @@ export declare const zh: {
13
13
  readonly regionMainland: "中国大陆 (kimi.com)";
14
14
  readonly regionGlobal: "国际 (kimi.ai)";
15
15
  readonly authenticatedAt: "登录时间";
16
- readonly storage: "凭据存储";
17
- readonly storageNotice: "OAuth 凭据由 Host 保存在本地安全存储 ($DSH_HOME/storages/kimi-code-credentials.json),不会进入浏览器。访问令牌会自动刷新。";
18
16
  readonly refreshRejected: "刷新令牌已被拒绝,请重新登录。";
19
17
  readonly signIn: "设备码登录";
20
18
  readonly signInAgain: "重新登录";
@@ -31,13 +29,8 @@ export declare const zh: {
31
29
  readonly waitingAuthorization: "等待浏览器授权...";
32
30
  readonly requestingCode: "正在申请设备码...";
33
31
  readonly connection: "连接";
34
- readonly provider: "Provider";
35
- readonly providerValue: "Kimi Code · kimi-code";
36
32
  readonly oauthHost: "OAuth 主机";
37
33
  readonly codingEndpoint: "模型接口";
38
- readonly connectionState: "连接状态";
39
- readonly connected: "已连接";
40
- readonly untested: "未测试";
41
34
  readonly testConnection: "测试连接";
42
35
  readonly testingConnection: "测试中...";
43
36
  readonly testSuccess: "连接正常";
@@ -45,8 +38,7 @@ export declare const zh: {
45
38
  readonly routeOwned: "模型路由由本插件提供";
46
39
  readonly routeConflict: "模型路由已被其他 Provider 占用:{detail}。请在 DSH 设置中移除重复的 Provider 配置后重试。";
47
40
  readonly modelsSection: "模型";
48
- readonly enableProvider: "启用此供应商";
49
- readonly modelsHint: "勾选后模型才会出现在对话页的模型选择列表中;全部取消勾选或关闭上方开关可在列表中隐藏该供应商。";
41
+ readonly modelsHint: "勾选后模型才会出现在对话页的模型选择列表中;全部取消勾选或关闭概览卡片上的开关可在列表中隐藏该供应商。";
50
42
  readonly refreshCatalog: "刷新模型目录";
51
43
  readonly refreshingCatalog: "刷新中...";
52
44
  readonly selectAll: "全选";
@@ -122,7 +114,6 @@ export declare const zh: {
122
114
  readonly quotaWallet: "加油包余额";
123
115
  readonly quotaWalletLimit: "月度上限";
124
116
  readonly quotaWalletUsed: "本月已用";
125
- readonly quotaUnlimited: "不限量";
126
117
  readonly updatedAt: "更新时间:{time}";
127
118
  readonly resetAt: "重置:{time}";
128
119
  readonly loading: "加载中...";
@@ -149,6 +140,15 @@ export declare const zh: {
149
140
  readonly expires: string;
150
141
  readonly lastUsed: string;
151
142
  readonly accountId: string;
143
+ readonly accountQuota: string;
144
+ readonly quotaNone: string;
145
+ readonly quotaSnapshot: string;
146
+ readonly quotaResets: string;
147
+ readonly quotaExhausted: string;
148
+ readonly quotaWindow: string;
149
+ readonly quotaUsed: string;
150
+ readonly quotaFactsScope: string;
151
+ readonly composerLabel: string;
152
152
  };
153
153
  export declare const en: Record<keyof typeof zh, string>;
154
154
  export declare const dictionaries: {
@@ -166,8 +166,6 @@ export declare const dictionaries: {
166
166
  readonly regionMainland: "中国大陆 (kimi.com)";
167
167
  readonly regionGlobal: "国际 (kimi.ai)";
168
168
  readonly authenticatedAt: "登录时间";
169
- readonly storage: "凭据存储";
170
- readonly storageNotice: "OAuth 凭据由 Host 保存在本地安全存储 ($DSH_HOME/storages/kimi-code-credentials.json),不会进入浏览器。访问令牌会自动刷新。";
171
169
  readonly refreshRejected: "刷新令牌已被拒绝,请重新登录。";
172
170
  readonly signIn: "设备码登录";
173
171
  readonly signInAgain: "重新登录";
@@ -184,13 +182,8 @@ export declare const dictionaries: {
184
182
  readonly waitingAuthorization: "等待浏览器授权...";
185
183
  readonly requestingCode: "正在申请设备码...";
186
184
  readonly connection: "连接";
187
- readonly provider: "Provider";
188
- readonly providerValue: "Kimi Code · kimi-code";
189
185
  readonly oauthHost: "OAuth 主机";
190
186
  readonly codingEndpoint: "模型接口";
191
- readonly connectionState: "连接状态";
192
- readonly connected: "已连接";
193
- readonly untested: "未测试";
194
187
  readonly testConnection: "测试连接";
195
188
  readonly testingConnection: "测试中...";
196
189
  readonly testSuccess: "连接正常";
@@ -198,8 +191,7 @@ export declare const dictionaries: {
198
191
  readonly routeOwned: "模型路由由本插件提供";
199
192
  readonly routeConflict: "模型路由已被其他 Provider 占用:{detail}。请在 DSH 设置中移除重复的 Provider 配置后重试。";
200
193
  readonly modelsSection: "模型";
201
- readonly enableProvider: "启用此供应商";
202
- readonly modelsHint: "勾选后模型才会出现在对话页的模型选择列表中;全部取消勾选或关闭上方开关可在列表中隐藏该供应商。";
194
+ readonly modelsHint: "勾选后模型才会出现在对话页的模型选择列表中;全部取消勾选或关闭概览卡片上的开关可在列表中隐藏该供应商。";
203
195
  readonly refreshCatalog: "刷新模型目录";
204
196
  readonly refreshingCatalog: "刷新中...";
205
197
  readonly selectAll: "全选";
@@ -275,7 +267,6 @@ export declare const dictionaries: {
275
267
  readonly quotaWallet: "加油包余额";
276
268
  readonly quotaWalletLimit: "月度上限";
277
269
  readonly quotaWalletUsed: "本月已用";
278
- readonly quotaUnlimited: "不限量";
279
270
  readonly updatedAt: "更新时间:{time}";
280
271
  readonly resetAt: "重置:{time}";
281
272
  readonly loading: "加载中...";
@@ -302,6 +293,15 @@ export declare const dictionaries: {
302
293
  readonly expires: string;
303
294
  readonly lastUsed: string;
304
295
  readonly accountId: string;
296
+ readonly accountQuota: string;
297
+ readonly quotaNone: string;
298
+ readonly quotaSnapshot: string;
299
+ readonly quotaResets: string;
300
+ readonly quotaExhausted: string;
301
+ readonly quotaWindow: string;
302
+ readonly quotaUsed: string;
303
+ readonly quotaFactsScope: string;
304
+ readonly composerLabel: string;
305
305
  };
306
306
  'zh-CN': {
307
307
  readonly title: "Kimi Code";
@@ -317,8 +317,6 @@ export declare const dictionaries: {
317
317
  readonly regionMainland: "中国大陆 (kimi.com)";
318
318
  readonly regionGlobal: "国际 (kimi.ai)";
319
319
  readonly authenticatedAt: "登录时间";
320
- readonly storage: "凭据存储";
321
- readonly storageNotice: "OAuth 凭据由 Host 保存在本地安全存储 ($DSH_HOME/storages/kimi-code-credentials.json),不会进入浏览器。访问令牌会自动刷新。";
322
320
  readonly refreshRejected: "刷新令牌已被拒绝,请重新登录。";
323
321
  readonly signIn: "设备码登录";
324
322
  readonly signInAgain: "重新登录";
@@ -335,13 +333,8 @@ export declare const dictionaries: {
335
333
  readonly waitingAuthorization: "等待浏览器授权...";
336
334
  readonly requestingCode: "正在申请设备码...";
337
335
  readonly connection: "连接";
338
- readonly provider: "Provider";
339
- readonly providerValue: "Kimi Code · kimi-code";
340
336
  readonly oauthHost: "OAuth 主机";
341
337
  readonly codingEndpoint: "模型接口";
342
- readonly connectionState: "连接状态";
343
- readonly connected: "已连接";
344
- readonly untested: "未测试";
345
338
  readonly testConnection: "测试连接";
346
339
  readonly testingConnection: "测试中...";
347
340
  readonly testSuccess: "连接正常";
@@ -349,8 +342,7 @@ export declare const dictionaries: {
349
342
  readonly routeOwned: "模型路由由本插件提供";
350
343
  readonly routeConflict: "模型路由已被其他 Provider 占用:{detail}。请在 DSH 设置中移除重复的 Provider 配置后重试。";
351
344
  readonly modelsSection: "模型";
352
- readonly enableProvider: "启用此供应商";
353
- readonly modelsHint: "勾选后模型才会出现在对话页的模型选择列表中;全部取消勾选或关闭上方开关可在列表中隐藏该供应商。";
345
+ readonly modelsHint: "勾选后模型才会出现在对话页的模型选择列表中;全部取消勾选或关闭概览卡片上的开关可在列表中隐藏该供应商。";
354
346
  readonly refreshCatalog: "刷新模型目录";
355
347
  readonly refreshingCatalog: "刷新中...";
356
348
  readonly selectAll: "全选";
@@ -426,7 +418,6 @@ export declare const dictionaries: {
426
418
  readonly quotaWallet: "加油包余额";
427
419
  readonly quotaWalletLimit: "月度上限";
428
420
  readonly quotaWalletUsed: "本月已用";
429
- readonly quotaUnlimited: "不限量";
430
421
  readonly updatedAt: "更新时间:{time}";
431
422
  readonly resetAt: "重置:{time}";
432
423
  readonly loading: "加载中...";
@@ -453,9 +444,18 @@ export declare const dictionaries: {
453
444
  readonly expires: string;
454
445
  readonly lastUsed: string;
455
446
  readonly accountId: string;
447
+ readonly accountQuota: string;
448
+ readonly quotaNone: string;
449
+ readonly quotaSnapshot: string;
450
+ readonly quotaResets: string;
451
+ readonly quotaExhausted: string;
452
+ readonly quotaWindow: string;
453
+ readonly quotaUsed: string;
454
+ readonly quotaFactsScope: string;
455
+ readonly composerLabel: string;
456
456
  };
457
- en: Record<"account" | "storage" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "signedOut" | "signedIn" | "plan" | "expires" | "signIn" | "signInAgain" | "signOut" | "loading" | "connection" | "provider" | "connectionState" | "connected" | "untested" | "testConnection" | "enableProvider" | "selectAll" | "unselectAll" | "modelsHint" | "contextWindowReset" | "contextWindowResetAll" | "contextWindowResetAllConfirm" | "save" | "refreshQuota" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "storageNotice" | "email" | "lastUsed" | "pageDesc" | "signingIn" | "providerValue" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "contextWindowSection" | "contextWindowHint" | "contextWindowNoneEnabled" | "saved" | "saving" | "quotaSection" | "quotaDesc" | "refreshingQuota" | "quotaEmpty" | "updatedAt" | "loginFailed" | "planUnknown" | "cancelSignIn" | "testingConnection" | "testSuccess" | "testFailed" | "routeOwned" | "routeConflict" | "modelsSection" | "refreshCatalog" | "refreshingCatalog" | "cacheTtl" | "cacheTtlHint" | "cacheTtl1h" | "cacheTtl5m" | "effortLow" | "effortHigh" | "effortMax" | "resetAt" | "copied" | "authenticatedAt" | "openSignInPage" | "wireAnthropic" | "wireOpenai" | "quotaUnlimited" | "nickname" | "region" | "regionMainland" | "regionGlobal" | "refreshRejected" | "deviceCodeSection" | "deviceCodeHint" | "copyCode" | "userCode" | "codeExpires" | "waitingAuthorization" | "requestingCode" | "oauthHost" | "codingEndpoint" | "capVideo" | "capDynamicTools" | "capImageOnly" | "capNone" | "capVideoFootnote" | "capabilitiesTitle" | "capColMedia" | "capColTools" | "capColNotes" | "capPlan" | "capInputCap" | "capNoTools" | "speedRegular" | "speedHighspeed" | "quotaCost" | "minimumPlan" | "cacheTtlDefault" | "effortNone" | "contextWindowPlan" | "cacheSection" | "cacheDesc" | "cacheEmpty" | "cacheHitRatio" | "cacheCached" | "cacheFresh" | "cacheOutput" | "cacheRequests" | "cacheHint" | "cacheExpired" | "cacheDrift" | "cacheDriftFirst" | "cacheDriftStable" | "cacheDriftSystemPrompt" | "cacheDriftTools" | "cacheDriftCacheKey" | "cacheDriftColdKey" | "preserveThinking" | "preserveOn" | "preserveOff" | "outputCap" | "quotaPlan" | "quotaWallet" | "quotaWalletLimit" | "quotaWalletUsed" | "requests", string>;
458
- 'en-US': Record<"account" | "storage" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "signedOut" | "signedIn" | "plan" | "expires" | "signIn" | "signInAgain" | "signOut" | "loading" | "connection" | "provider" | "connectionState" | "connected" | "untested" | "testConnection" | "enableProvider" | "selectAll" | "unselectAll" | "modelsHint" | "contextWindowReset" | "contextWindowResetAll" | "contextWindowResetAllConfirm" | "save" | "refreshQuota" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "storageNotice" | "email" | "lastUsed" | "pageDesc" | "signingIn" | "providerValue" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "contextWindowSection" | "contextWindowHint" | "contextWindowNoneEnabled" | "saved" | "saving" | "quotaSection" | "quotaDesc" | "refreshingQuota" | "quotaEmpty" | "updatedAt" | "loginFailed" | "planUnknown" | "cancelSignIn" | "testingConnection" | "testSuccess" | "testFailed" | "routeOwned" | "routeConflict" | "modelsSection" | "refreshCatalog" | "refreshingCatalog" | "cacheTtl" | "cacheTtlHint" | "cacheTtl1h" | "cacheTtl5m" | "effortLow" | "effortHigh" | "effortMax" | "resetAt" | "copied" | "authenticatedAt" | "openSignInPage" | "wireAnthropic" | "wireOpenai" | "quotaUnlimited" | "nickname" | "region" | "regionMainland" | "regionGlobal" | "refreshRejected" | "deviceCodeSection" | "deviceCodeHint" | "copyCode" | "userCode" | "codeExpires" | "waitingAuthorization" | "requestingCode" | "oauthHost" | "codingEndpoint" | "capVideo" | "capDynamicTools" | "capImageOnly" | "capNone" | "capVideoFootnote" | "capabilitiesTitle" | "capColMedia" | "capColTools" | "capColNotes" | "capPlan" | "capInputCap" | "capNoTools" | "speedRegular" | "speedHighspeed" | "quotaCost" | "minimumPlan" | "cacheTtlDefault" | "effortNone" | "contextWindowPlan" | "cacheSection" | "cacheDesc" | "cacheEmpty" | "cacheHitRatio" | "cacheCached" | "cacheFresh" | "cacheOutput" | "cacheRequests" | "cacheHint" | "cacheExpired" | "cacheDrift" | "cacheDriftFirst" | "cacheDriftStable" | "cacheDriftSystemPrompt" | "cacheDriftTools" | "cacheDriftCacheKey" | "cacheDriftColdKey" | "preserveThinking" | "preserveOn" | "preserveOff" | "outputCap" | "quotaPlan" | "quotaWallet" | "quotaWalletLimit" | "quotaWalletUsed" | "requests", string>;
457
+ en: Record<"tokens" | "title" | "account" | "signedOut" | "signedIn" | "plan" | "accountId" | "expires" | "signIn" | "signInAgain" | "signOut" | "loading" | "connection" | "testConnection" | "selectAll" | "unselectAll" | "modelsHint" | "contextWindowReset" | "contextWindowResetAll" | "contextWindowResetAllConfirm" | "save" | "refreshQuota" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "clearCooldown" | "needsRelogin" | "relogin" | "rotationStrategy" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "email" | "lastUsed" | "accountQuota" | "quotaNone" | "quotaSnapshot" | "quotaResets" | "quotaExhausted" | "quotaWindow" | "quotaUsed" | "quotaFactsScope" | "composerLabel" | "pageDesc" | "signingIn" | "modelsSection" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "contextWindowSection" | "contextWindowHint" | "contextWindowNoneEnabled" | "saved" | "saving" | "quotaSection" | "quotaDesc" | "refreshingQuota" | "quotaEmpty" | "updatedAt" | "loginFailed" | "planUnknown" | "cancelSignIn" | "testingConnection" | "testSuccess" | "testFailed" | "routeOwned" | "routeConflict" | "refreshCatalog" | "refreshingCatalog" | "cacheTtl" | "cacheTtlHint" | "cacheTtl1h" | "cacheTtl5m" | "effortLow" | "effortHigh" | "effortMax" | "resetAt" | "copied" | "authenticatedAt" | "openSignInPage" | "wireAnthropic" | "wireOpenai" | "nickname" | "region" | "regionMainland" | "regionGlobal" | "refreshRejected" | "deviceCodeSection" | "deviceCodeHint" | "copyCode" | "userCode" | "codeExpires" | "waitingAuthorization" | "requestingCode" | "oauthHost" | "codingEndpoint" | "capVideo" | "capDynamicTools" | "capImageOnly" | "capNone" | "capVideoFootnote" | "capabilitiesTitle" | "capColMedia" | "capColTools" | "capColNotes" | "capPlan" | "capInputCap" | "capNoTools" | "speedRegular" | "speedHighspeed" | "quotaCost" | "minimumPlan" | "cacheTtlDefault" | "effortNone" | "contextWindowPlan" | "cacheSection" | "cacheDesc" | "cacheEmpty" | "cacheHitRatio" | "cacheCached" | "cacheFresh" | "cacheOutput" | "cacheRequests" | "cacheHint" | "cacheExpired" | "cacheDrift" | "cacheDriftFirst" | "cacheDriftStable" | "cacheDriftSystemPrompt" | "cacheDriftTools" | "cacheDriftCacheKey" | "cacheDriftColdKey" | "preserveThinking" | "preserveOn" | "preserveOff" | "outputCap" | "quotaPlan" | "quotaWallet" | "quotaWalletLimit" | "quotaWalletUsed" | "requests", string>;
458
+ 'en-US': Record<"tokens" | "title" | "account" | "signedOut" | "signedIn" | "plan" | "accountId" | "expires" | "signIn" | "signInAgain" | "signOut" | "loading" | "connection" | "testConnection" | "selectAll" | "unselectAll" | "modelsHint" | "contextWindowReset" | "contextWindowResetAll" | "contextWindowResetAllConfirm" | "save" | "refreshQuota" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "clearCooldown" | "needsRelogin" | "relogin" | "rotationStrategy" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "email" | "lastUsed" | "accountQuota" | "quotaNone" | "quotaSnapshot" | "quotaResets" | "quotaExhausted" | "quotaWindow" | "quotaUsed" | "quotaFactsScope" | "composerLabel" | "pageDesc" | "signingIn" | "modelsSection" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "contextWindowSection" | "contextWindowHint" | "contextWindowNoneEnabled" | "saved" | "saving" | "quotaSection" | "quotaDesc" | "refreshingQuota" | "quotaEmpty" | "updatedAt" | "loginFailed" | "planUnknown" | "cancelSignIn" | "testingConnection" | "testSuccess" | "testFailed" | "routeOwned" | "routeConflict" | "refreshCatalog" | "refreshingCatalog" | "cacheTtl" | "cacheTtlHint" | "cacheTtl1h" | "cacheTtl5m" | "effortLow" | "effortHigh" | "effortMax" | "resetAt" | "copied" | "authenticatedAt" | "openSignInPage" | "wireAnthropic" | "wireOpenai" | "nickname" | "region" | "regionMainland" | "regionGlobal" | "refreshRejected" | "deviceCodeSection" | "deviceCodeHint" | "copyCode" | "userCode" | "codeExpires" | "waitingAuthorization" | "requestingCode" | "oauthHost" | "codingEndpoint" | "capVideo" | "capDynamicTools" | "capImageOnly" | "capNone" | "capVideoFootnote" | "capabilitiesTitle" | "capColMedia" | "capColTools" | "capColNotes" | "capPlan" | "capInputCap" | "capNoTools" | "speedRegular" | "speedHighspeed" | "quotaCost" | "minimumPlan" | "cacheTtlDefault" | "effortNone" | "contextWindowPlan" | "cacheSection" | "cacheDesc" | "cacheEmpty" | "cacheHitRatio" | "cacheCached" | "cacheFresh" | "cacheOutput" | "cacheRequests" | "cacheHint" | "cacheExpired" | "cacheDrift" | "cacheDriftFirst" | "cacheDriftStable" | "cacheDriftSystemPrompt" | "cacheDriftTools" | "cacheDriftCacheKey" | "cacheDriftColdKey" | "preserveThinking" | "preserveOn" | "preserveOff" | "outputCap" | "quotaPlan" | "quotaWallet" | "quotaWalletLimit" | "quotaWalletUsed" | "requests", string>;
459
459
  };
460
460
  export type KimiCodeLocaleKey = keyof typeof zh;
461
461
  //# sourceMappingURL=locales.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/locales.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,kBAAkB,CAAA;AAE3C,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoIL,CAAA;AAEV,eAAO,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,OAAO,EAAE,EAAE,MAAM,CAmIrC,CAAA;AAEV,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKxB,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,MAAM,OAAO,EAAE,CAAA"}
1
+ {"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/locales.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,kBAAkB,CAAA;AAE3C,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA2HL,CAAA;AAEV,eAAO,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,OAAO,EAAE,EAAE,MAAM,CA0HrC,CAAA;AAEV,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKxB,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,MAAM,OAAO,EAAE,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,iCAAiC,CAAA;AA2FtD,uEAAuE;AACvE,wBAAgB,qBAAqB,IAAI,IAAI,CAE5C"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,iCAAiC,CAAA;AAqFtD,uEAAuE;AACvE,wBAAgB,qBAAqB,IAAI,IAAI,CAE5C"}