@eddyskywalker/dsh-chatgpt-subscription 0.4.0 → 0.5.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 (78) hide show
  1. package/CHANGELOG.md +23 -0
  2. package/lib/client.js +703 -534
  3. package/lib/client.js.map +1 -1
  4. package/lib/index.js +5106 -3793
  5. package/lib/types/client/CodexSubscriptionSection.d.ts +1 -1
  6. package/lib/types/client/CodexSubscriptionSection.d.ts.map +1 -1
  7. package/lib/types/client/antigravity/AntigravitySection.d.ts.map +1 -1
  8. package/lib/types/client/antigravity/locales.d.ts +24 -192
  9. package/lib/types/client/antigravity/locales.d.ts.map +1 -1
  10. package/lib/types/client/api.d.ts +13 -1
  11. package/lib/types/client/api.d.ts.map +1 -1
  12. package/lib/types/client/command-code/CommandCodeSection.d.ts.map +1 -1
  13. package/lib/types/client/command-code/locales.d.ts +66 -201
  14. package/lib/types/client/command-code/locales.d.ts.map +1 -1
  15. package/lib/types/client/common/AccountPoolSection.d.ts +41 -0
  16. package/lib/types/client/common/AccountPoolSection.d.ts.map +1 -0
  17. package/lib/types/client/common/account-pool-labels.d.ts +43 -0
  18. package/lib/types/client/common/account-pool-labels.d.ts.map +1 -0
  19. package/lib/types/client/common/styles.d.ts +11 -0
  20. package/lib/types/client/common/styles.d.ts.map +1 -0
  21. package/lib/types/client/index.d.ts.map +1 -1
  22. package/lib/types/client/kimi-code/KimiCodeSection.d.ts.map +1 -1
  23. package/lib/types/client/kimi-code/locales.d.ts +63 -336
  24. package/lib/types/client/kimi-code/locales.d.ts.map +1 -1
  25. package/lib/types/client/locales.d.ts +41 -1
  26. package/lib/types/client/locales.d.ts.map +1 -1
  27. package/lib/types/host/antigravity/account-pool.d.ts +15 -5
  28. package/lib/types/host/antigravity/account-pool.d.ts.map +1 -1
  29. package/lib/types/host/antigravity/routes.d.ts.map +1 -1
  30. package/lib/types/host/codex-account-pool.d.ts +64 -0
  31. package/lib/types/host/codex-account-pool.d.ts.map +1 -0
  32. package/lib/types/host/command-code/account-pool.d.ts +60 -0
  33. package/lib/types/host/command-code/account-pool.d.ts.map +1 -0
  34. package/lib/types/host/command-code/adapter.d.ts +11 -1
  35. package/lib/types/host/command-code/adapter.d.ts.map +1 -1
  36. package/lib/types/host/command-code/client.d.ts +17 -1
  37. package/lib/types/host/command-code/client.d.ts.map +1 -1
  38. package/lib/types/host/command-code/oauth.d.ts +4 -1
  39. package/lib/types/host/command-code/oauth.d.ts.map +1 -1
  40. package/lib/types/host/command-code/routes.d.ts +11 -2
  41. package/lib/types/host/command-code/routes.d.ts.map +1 -1
  42. package/lib/types/host/common/account-pool.d.ts +179 -0
  43. package/lib/types/host/common/account-pool.d.ts.map +1 -0
  44. package/lib/types/host/common/home.d.ts +8 -0
  45. package/lib/types/host/common/home.d.ts.map +1 -0
  46. package/lib/types/host/kimi-code/account-pool.d.ts +48 -0
  47. package/lib/types/host/kimi-code/account-pool.d.ts.map +1 -0
  48. package/lib/types/host/kimi-code/adapter.d.ts +10 -1
  49. package/lib/types/host/kimi-code/adapter.d.ts.map +1 -1
  50. package/lib/types/host/kimi-code/client.d.ts +16 -0
  51. package/lib/types/host/kimi-code/client.d.ts.map +1 -1
  52. package/lib/types/host/kimi-code/oauth.d.ts +2 -0
  53. package/lib/types/host/kimi-code/oauth.d.ts.map +1 -1
  54. package/lib/types/host/kimi-code/routes.d.ts +10 -2
  55. package/lib/types/host/kimi-code/routes.d.ts.map +1 -1
  56. package/lib/types/host/oauth-service.d.ts +41 -2
  57. package/lib/types/host/oauth-service.d.ts.map +1 -1
  58. package/lib/types/host/preset-sync.d.ts +7 -1
  59. package/lib/types/host/preset-sync.d.ts.map +1 -1
  60. package/lib/types/host/responses-client.d.ts +15 -0
  61. package/lib/types/host/responses-client.d.ts.map +1 -1
  62. package/lib/types/host/routes.d.ts +2 -1
  63. package/lib/types/host/routes.d.ts.map +1 -1
  64. package/lib/types/host/usage-service.d.ts +15 -0
  65. package/lib/types/host/usage-service.d.ts.map +1 -1
  66. package/lib/types/index.d.ts +5 -0
  67. package/lib/types/index.d.ts.map +1 -1
  68. package/lib/types/shared/account-pool-contracts.d.ts +47 -0
  69. package/lib/types/shared/account-pool-contracts.d.ts.map +1 -0
  70. package/lib/types/shared/antigravity-contracts.d.ts +4 -10
  71. package/lib/types/shared/antigravity-contracts.d.ts.map +1 -1
  72. package/lib/types/shared/command-code-contracts.d.ts +14 -0
  73. package/lib/types/shared/command-code-contracts.d.ts.map +1 -1
  74. package/lib/types/shared/contracts.d.ts +6 -0
  75. package/lib/types/shared/contracts.d.ts.map +1 -1
  76. package/lib/types/shared/kimi-code-contracts.d.ts +14 -0
  77. package/lib/types/shared/kimi-code-contracts.d.ts.map +1 -1
  78. package/package.json +1 -1
@@ -2,7 +2,7 @@ import type { PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots
2
2
  import type { CredentialStorageDto, PluginStatusDto, QuotaWindowDto } from '../shared/contracts.ts';
3
3
  import { NS } from './locales.ts';
4
4
  type Props = PropsRuntime<'settings.section'> & PropsLocale<typeof NS>;
5
- type BusyAction = 'login' | 'token' | 'quota' | 'reset-credit' | 'test' | 'logout' | 'preferences' | null;
5
+ type BusyAction = 'login' | 'token' | 'quota' | 'reset-credit' | 'test' | 'logout' | 'preferences' | 'set-primary' | 'delete' | 'clear-cooldown' | 'strategy' | null;
6
6
  type Translate = Props['t'];
7
7
  export declare function CodexSubscriptionSection({ t }: Props): React.JSX.Element;
8
8
  export declare function storageLabel(storage: CredentialStorageDto | undefined, t: Translate): string;
@@ -1 +1 @@
1
- {"version":3,"file":"CodexSubscriptionSection.d.ts","sourceRoot":"","sources":["../../../src/client/CodexSubscriptionSection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACjF,OAAO,KAAK,EAAyB,oBAAoB,EAAE,eAAe,EAAkB,cAAc,EAA8D,MAAM,wBAAwB,CAAA;A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C,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAOlE;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIpD;AAuBD,wBAAgB,kBAAkB,CAAC,EAAE,aAAa,EAAE,kBAAkB,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CAkmBnG"}
1
+ {"version":3,"file":"AntigravitySection.d.ts","sourceRoot":"","sources":["../../../../src/client/antigravity/AntigravitySection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAA;AAW/D,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC;AAiBD,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAOlE;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIpD;AAuBD,wBAAgB,kBAAkB,CAAC,EAAE,aAAa,EAAE,kBAAkB,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CA0gBnG"}
@@ -16,6 +16,7 @@ export declare const zh: {
16
16
  rotationStrategy: string;
17
17
  strategySequential: string;
18
18
  strategyRoundRobin: string;
19
+ strategySticky: string;
19
20
  noAccounts: string;
20
21
  plan: string;
21
22
  accountId: string;
@@ -62,71 +63,14 @@ export declare const zh: {
62
63
  loading: string;
63
64
  loginFailed: string;
64
65
  tokens: string;
66
+ accountCount: string;
67
+ cooldownLeft: string;
68
+ needsRelogin: string;
69
+ relogin: string;
70
+ email: string;
71
+ lastUsed: string;
65
72
  };
66
- export declare const en: {
67
- title: string;
68
- pageDesc: string;
69
- account: string;
70
- signedIn: string;
71
- signedOut: string;
72
- accountPool: string;
73
- addAccount: string;
74
- primaryAccount: string;
75
- activeAccount: string;
76
- setPrimary: string;
77
- deleteAccount: string;
78
- cooling: string;
79
- clearCooldown: string;
80
- rotationStrategy: string;
81
- strategySequential: string;
82
- strategyRoundRobin: string;
83
- noAccounts: string;
84
- plan: string;
85
- accountId: string;
86
- expires: string;
87
- storage: string;
88
- storageNotice: string;
89
- signInAgain: string;
90
- refreshToken: string;
91
- signOut: string;
92
- signIn: string;
93
- signingIn: string;
94
- connection: string;
95
- provider: string;
96
- providerValue: string;
97
- connectionState: string;
98
- connected: string;
99
- untested: string;
100
- enableProvider: string;
101
- modelsHint: string;
102
- selectAll: string;
103
- unselectAll: string;
104
- enhanced: string;
105
- defaultReasoningEffort: string;
106
- defaultReasoningEffortHint: string;
107
- defaultEffortAuto: string;
108
- contextWindowSection: string;
109
- contextWindowHint: string;
110
- save: string;
111
- saved: string;
112
- saving: string;
113
- quotaSection: string;
114
- quotaDesc: string;
115
- refreshQuota: string;
116
- refreshingQuota: string;
117
- quotaEmpty: string;
118
- googleValidation: string;
119
- resetPrefix: string;
120
- resetUnavailable: string;
121
- resetNow: string;
122
- timeDayHour: string;
123
- timeHourMin: string;
124
- timeMin: string;
125
- updatedAt: string;
126
- loading: string;
127
- loginFailed: string;
128
- tokens: string;
129
- };
73
+ export declare const en: Record<keyof typeof zh, string>;
130
74
  export declare const dictionaries: {
131
75
  zh: {
132
76
  title: string;
@@ -145,6 +89,7 @@ export declare const dictionaries: {
145
89
  rotationStrategy: string;
146
90
  strategySequential: string;
147
91
  strategyRoundRobin: string;
92
+ strategySticky: string;
148
93
  noAccounts: string;
149
94
  plan: string;
150
95
  accountId: string;
@@ -191,6 +136,12 @@ export declare const dictionaries: {
191
136
  loading: string;
192
137
  loginFailed: string;
193
138
  tokens: string;
139
+ accountCount: string;
140
+ cooldownLeft: string;
141
+ needsRelogin: string;
142
+ relogin: string;
143
+ email: string;
144
+ lastUsed: string;
194
145
  };
195
146
  'zh-CN': {
196
147
  title: string;
@@ -209,6 +160,7 @@ export declare const dictionaries: {
209
160
  rotationStrategy: string;
210
161
  strategySequential: string;
211
162
  strategyRoundRobin: string;
163
+ strategySticky: string;
212
164
  noAccounts: string;
213
165
  plan: string;
214
166
  accountId: string;
@@ -255,134 +207,14 @@ export declare const dictionaries: {
255
207
  loading: string;
256
208
  loginFailed: string;
257
209
  tokens: string;
210
+ accountCount: string;
211
+ cooldownLeft: string;
212
+ needsRelogin: string;
213
+ relogin: string;
214
+ email: string;
215
+ lastUsed: string;
258
216
  };
259
- en: {
260
- title: string;
261
- pageDesc: string;
262
- account: string;
263
- signedIn: string;
264
- signedOut: string;
265
- accountPool: string;
266
- addAccount: string;
267
- primaryAccount: string;
268
- activeAccount: string;
269
- setPrimary: string;
270
- deleteAccount: string;
271
- cooling: string;
272
- clearCooldown: string;
273
- rotationStrategy: string;
274
- strategySequential: string;
275
- strategyRoundRobin: string;
276
- noAccounts: string;
277
- plan: string;
278
- accountId: string;
279
- expires: string;
280
- storage: string;
281
- storageNotice: string;
282
- signInAgain: string;
283
- refreshToken: string;
284
- signOut: string;
285
- signIn: string;
286
- signingIn: string;
287
- connection: string;
288
- provider: string;
289
- providerValue: string;
290
- connectionState: string;
291
- connected: string;
292
- untested: string;
293
- enableProvider: string;
294
- modelsHint: string;
295
- selectAll: string;
296
- unselectAll: string;
297
- enhanced: string;
298
- defaultReasoningEffort: string;
299
- defaultReasoningEffortHint: string;
300
- defaultEffortAuto: string;
301
- contextWindowSection: string;
302
- contextWindowHint: string;
303
- save: string;
304
- saved: string;
305
- saving: string;
306
- quotaSection: string;
307
- quotaDesc: string;
308
- refreshQuota: string;
309
- refreshingQuota: string;
310
- quotaEmpty: string;
311
- googleValidation: string;
312
- resetPrefix: string;
313
- resetUnavailable: string;
314
- resetNow: string;
315
- timeDayHour: string;
316
- timeHourMin: string;
317
- timeMin: string;
318
- updatedAt: string;
319
- loading: string;
320
- loginFailed: string;
321
- tokens: string;
322
- };
323
- 'en-US': {
324
- title: string;
325
- pageDesc: string;
326
- account: string;
327
- signedIn: string;
328
- signedOut: string;
329
- accountPool: string;
330
- addAccount: string;
331
- primaryAccount: string;
332
- activeAccount: string;
333
- setPrimary: string;
334
- deleteAccount: string;
335
- cooling: string;
336
- clearCooldown: string;
337
- rotationStrategy: string;
338
- strategySequential: string;
339
- strategyRoundRobin: string;
340
- noAccounts: string;
341
- plan: string;
342
- accountId: string;
343
- expires: string;
344
- storage: string;
345
- storageNotice: string;
346
- signInAgain: string;
347
- refreshToken: string;
348
- signOut: string;
349
- signIn: string;
350
- signingIn: string;
351
- connection: string;
352
- provider: string;
353
- providerValue: string;
354
- connectionState: string;
355
- connected: string;
356
- untested: string;
357
- enableProvider: string;
358
- modelsHint: string;
359
- selectAll: string;
360
- unselectAll: string;
361
- enhanced: string;
362
- defaultReasoningEffort: string;
363
- defaultReasoningEffortHint: string;
364
- defaultEffortAuto: string;
365
- contextWindowSection: string;
366
- contextWindowHint: string;
367
- save: string;
368
- saved: string;
369
- saving: string;
370
- quotaSection: string;
371
- quotaDesc: string;
372
- refreshQuota: string;
373
- refreshingQuota: string;
374
- quotaEmpty: string;
375
- googleValidation: string;
376
- resetPrefix: string;
377
- resetUnavailable: string;
378
- resetNow: string;
379
- timeDayHour: string;
380
- timeHourMin: string;
381
- timeMin: string;
382
- updatedAt: string;
383
- loading: string;
384
- loginFailed: string;
385
- tokens: string;
386
- };
217
+ en: Record<"tokens" | "title" | "pageDesc" | "account" | "signedIn" | "signedOut" | "accountPool" | "addAccount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "clearCooldown" | "rotationStrategy" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "plan" | "accountId" | "expires" | "storage" | "storageNotice" | "signInAgain" | "refreshToken" | "signOut" | "signIn" | "signingIn" | "connection" | "provider" | "providerValue" | "connectionState" | "connected" | "untested" | "enableProvider" | "modelsHint" | "selectAll" | "unselectAll" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "contextWindowSection" | "contextWindowHint" | "save" | "saved" | "saving" | "quotaSection" | "quotaDesc" | "refreshQuota" | "refreshingQuota" | "quotaEmpty" | "googleValidation" | "resetPrefix" | "resetUnavailable" | "resetNow" | "timeDayHour" | "timeHourMin" | "timeMin" | "updatedAt" | "loading" | "loginFailed" | "accountCount" | "cooldownLeft" | "needsRelogin" | "relogin" | "email" | "lastUsed", string>;
218
+ 'en-US': Record<"tokens" | "title" | "pageDesc" | "account" | "signedIn" | "signedOut" | "accountPool" | "addAccount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "clearCooldown" | "rotationStrategy" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "plan" | "accountId" | "expires" | "storage" | "storageNotice" | "signInAgain" | "refreshToken" | "signOut" | "signIn" | "signingIn" | "connection" | "provider" | "providerValue" | "connectionState" | "connected" | "untested" | "enableProvider" | "modelsHint" | "selectAll" | "unselectAll" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "contextWindowSection" | "contextWindowHint" | "save" | "saved" | "saving" | "quotaSection" | "quotaDesc" | "refreshQuota" | "refreshingQuota" | "quotaEmpty" | "googleValidation" | "resetPrefix" | "resetUnavailable" | "resetNow" | "timeDayHour" | "timeHourMin" | "timeMin" | "updatedAt" | "loading" | "loginFailed" | "accountCount" | "cooldownLeft" | "needsRelogin" | "relogin" | "email" | "lastUsed", string>;
387
219
  };
388
220
  //# sourceMappingURL=locales.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../../src/client/antigravity/locales.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,oBAAoB,CAAA;AAE/C,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+Dd,CAAA;AAED,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+Dd,CAAA;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKxB,CAAA"}
1
+ {"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../../src/client/antigravity/locales.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,oBAAoB,CAAA;AAI/C,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkEd,CAAA;AAED,eAAO,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,OAAO,EAAE,EAAE,MAAM,CAiE9C,CAAA;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKxB,CAAA"}
@@ -5,9 +5,21 @@ export declare class SubscriptionApi {
5
5
  cancelLogin(loginId: string): Promise<{
6
6
  cancelled: boolean;
7
7
  }>;
8
- logout(): Promise<{
8
+ /** Sign out one pooled account; without an id, the active one. */
9
+ logout(accountId?: string): Promise<{
9
10
  authenticated: false;
10
11
  }>;
12
+ /**
13
+ * One account-pool action, returning the refreshed status.
14
+ *
15
+ * The host answers with the same envelope the status route uses, so the card
16
+ * never has to guess what the pool looks like after a change.
17
+ */
18
+ accountAction(action: 'set-primary' | 'set-alias' | 'delete' | 'clear-cooldown' | 'strategy' | 'relogin', body?: {
19
+ accountId?: string;
20
+ alias?: string;
21
+ strategy?: string;
22
+ }): Promise<PluginStatusDto>;
11
23
  refresh(): Promise<PluginStatusDto>;
12
24
  refreshQuota(): Promise<QuotaStatusDto>;
13
25
  useResetCredit(): Promise<QuotaStatusDto>;
@@ -1 +1 @@
1
- {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/client/api.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,aAAa,EACb,aAAa,EACb,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,0BAA0B,EAC1B,gCAAgC,EACjC,MAAM,wBAAwB,CAAA;AAE/B,qBAAa,eAAe;IAC1B,MAAM,IAAI,OAAO,CAAC,eAAe,CAAC;IAIlC,UAAU,IAAI,OAAO,CAAC,aAAa,CAAC;IAIpC,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;QAAE,SAAS,EAAE,OAAO,CAAA;KAAE,CAAC;IAI7D,MAAM,IAAI,OAAO,CAAC;QAAE,aAAa,EAAE,KAAK,CAAA;KAAE,CAAC;IAI3C,OAAO,IAAI,OAAO,CAAC,eAAe,CAAC;IAInC,YAAY,IAAI,OAAO,CAAC,cAAc,CAAC;IAIvC,cAAc,IAAI,OAAO,CAAC,cAAc,CAAC;IAIzC,cAAc,IAAI,OAAO,CAAC,iBAAiB,CAAC;IAI5C,iBAAiB,CAAC,KAAK,EAAE,gCAAgC,GAAG,OAAO,CAAC,0BAA0B,CAAC;IAI/F,MAAM,CAAC,OAAO,EAAE,MAAM,GAAG,WAAW;CAGrC;AAmBD,wBAAgB,eAAe,CAAC,KAAK,EAAE,YAAY,CAAC,MAAM,CAAC,GAAG,aAAa,GAAG,IAAI,CAOjF"}
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../src/client/api.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAEV,aAAa,EACb,aAAa,EACb,eAAe,EACf,cAAc,EACd,iBAAiB,EACjB,0BAA0B,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AE,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;AA8BD,wBAAgB,kBAAkB,CAAC,EAAE,aAAa,EAAE,kBAAkB,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CAojBnG"}
1
+ {"version":3,"file":"CommandCodeSection.d.ts","sourceRoot":"","sources":["../../../../src/client/command-code/CommandCodeSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAA;AA0B/D,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;AA8BD,wBAAgB,kBAAkB,CAAC,EAAE,aAAa,EAAE,kBAAkB,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CAgjBnG"}
@@ -65,74 +65,29 @@ export declare const zh: {
65
65
  readonly loading: "加载中...";
66
66
  readonly loginFailed: "登录失败";
67
67
  readonly tokens: "tokens";
68
+ readonly accountPool: string;
69
+ readonly addAccount: string;
70
+ readonly accountCount: string;
71
+ readonly primaryAccount: string;
72
+ readonly activeAccount: string;
73
+ readonly setPrimary: string;
74
+ readonly deleteAccount: string;
75
+ readonly cooling: string;
76
+ readonly cooldownLeft: string;
77
+ readonly clearCooldown: string;
78
+ readonly needsRelogin: string;
79
+ readonly relogin: string;
80
+ readonly rotationStrategy: string;
81
+ readonly strategySequential: string;
82
+ readonly strategyRoundRobin: string;
83
+ readonly strategySticky: string;
84
+ readonly noAccounts: string;
85
+ readonly email: string;
86
+ readonly expires: string;
87
+ readonly lastUsed: string;
88
+ readonly accountId: string;
68
89
  };
69
- export declare const en: {
70
- readonly title: "Command Code";
71
- readonly pageDesc: "Sign in to Command Code and manage models, context windows, and quota.";
72
- readonly account: "Account";
73
- readonly signedIn: "Signed in";
74
- readonly signedOut: "Not signed in";
75
- readonly keyName: "Key name";
76
- readonly organization: "Organization";
77
- readonly plan: "Plan";
78
- readonly planUnknown: "—";
79
- readonly subscription: "Subscription";
80
- readonly renews: "renews";
81
- readonly authenticatedAt: "Signed in at";
82
- readonly storage: "Credential storage";
83
- readonly storageNotice: "The API key is stored locally by the Host ($DSH_HOME/storages/command-code-credentials.json) and never reaches the browser.";
84
- readonly signIn: "Sign in with browser";
85
- readonly signInAgain: "Sign in again";
86
- readonly signingIn: "Signing in...";
87
- readonly signOut: "Sign out";
88
- readonly cancelSignIn: "Cancel";
89
- readonly openSignInPage: "Open the sign-in page";
90
- readonly apiKeySection: "Paste an API key";
91
- readonly apiKeyHint: "Create a key in Command Code Studio and paste it here; use this when the browser flow is unavailable.";
92
- readonly apiKeyPlaceholder: "Command Code API key";
93
- readonly apiKeySave: "Save and verify";
94
- readonly apiKeySaving: "Verifying...";
95
- readonly apiKeySaved: "Saved";
96
- readonly connection: "Connection";
97
- readonly provider: "Provider";
98
- readonly providerValue: "Command Code · command-code";
99
- readonly connectionState: "Connection state";
100
- readonly connected: "Connected";
101
- readonly untested: "Untested";
102
- readonly testConnection: "Test connection";
103
- readonly testingConnection: "Testing...";
104
- readonly routeOwned: "This plugin serves the model route";
105
- readonly routeConflict: "Another provider already owns the model route: {detail}. Remove the duplicate provider configuration in DSH settings and reload.";
106
- readonly modelsSection: "Models";
107
- readonly enableProvider: "Enable this provider";
108
- readonly modelsHint: "Checked models appear in the DSH conversation model list; unchecking all or turning off the switch hides this provider.";
109
- readonly refreshCatalog: "Refresh catalog";
110
- readonly refreshingCatalog: "Refreshing...";
111
- readonly selectAll: "Select all";
112
- readonly unselectAll: "Deselect all";
113
- readonly wireAnthropic: "Anthropic";
114
- readonly wireOpenai: "OpenAI";
115
- readonly enhanced: "Enhanced features";
116
- readonly defaultReasoningEffort: "Default reasoning effort";
117
- readonly defaultReasoningEffortHint: "Reasoning effort for models that support it when the conversation does not specify one. Anthropic models map it to a thinking budget.";
118
- readonly defaultEffortAuto: "Use provider default";
119
- readonly contextWindowSection: "Model context window";
120
- readonly contextWindowHint: "Defaults to the context length in the Command Code catalog; override it with the capacity DSH should use for compaction and overflow decisions (e.g., 1M, 512K, 200K).";
121
- readonly save: "Save";
122
- readonly saved: "Saved";
123
- readonly saving: "Saving...";
124
- readonly quotaSection: "Usage & quota";
125
- readonly quotaDesc: "Read from the Command Code account endpoints; refreshes at most once every 60 seconds while visible.";
126
- readonly refreshQuota: "Refresh quota";
127
- readonly refreshingQuota: "Refreshing...";
128
- readonly quotaEmpty: "No quota data yet — use “Refresh quota” to retry.";
129
- readonly quotaCredits: "Remaining credits";
130
- readonly quotaUnlimited: "Unlimited";
131
- readonly updatedAt: "Updated at: {time}";
132
- readonly loading: "Loading...";
133
- readonly loginFailed: "Sign-in failed";
134
- readonly tokens: "tokens";
135
- };
90
+ export declare const en: Record<keyof typeof zh, string>;
136
91
  export declare const dictionaries: {
137
92
  zh: {
138
93
  readonly title: "Command Code";
@@ -200,6 +155,27 @@ export declare const dictionaries: {
200
155
  readonly loading: "加载中...";
201
156
  readonly loginFailed: "登录失败";
202
157
  readonly tokens: "tokens";
158
+ readonly accountPool: string;
159
+ readonly addAccount: string;
160
+ readonly accountCount: string;
161
+ readonly primaryAccount: string;
162
+ readonly activeAccount: string;
163
+ readonly setPrimary: string;
164
+ readonly deleteAccount: string;
165
+ readonly cooling: string;
166
+ readonly cooldownLeft: string;
167
+ readonly clearCooldown: string;
168
+ readonly needsRelogin: string;
169
+ readonly relogin: string;
170
+ readonly rotationStrategy: string;
171
+ readonly strategySequential: string;
172
+ readonly strategyRoundRobin: string;
173
+ readonly strategySticky: string;
174
+ readonly noAccounts: string;
175
+ readonly email: string;
176
+ readonly expires: string;
177
+ readonly lastUsed: string;
178
+ readonly accountId: string;
203
179
  };
204
180
  'zh-CN': {
205
181
  readonly title: "Command Code";
@@ -267,141 +243,30 @@ export declare const dictionaries: {
267
243
  readonly loading: "加载中...";
268
244
  readonly loginFailed: "登录失败";
269
245
  readonly tokens: "tokens";
246
+ readonly accountPool: string;
247
+ readonly addAccount: string;
248
+ readonly accountCount: string;
249
+ readonly primaryAccount: string;
250
+ readonly activeAccount: string;
251
+ readonly setPrimary: string;
252
+ readonly deleteAccount: string;
253
+ readonly cooling: string;
254
+ readonly cooldownLeft: string;
255
+ readonly clearCooldown: string;
256
+ readonly needsRelogin: string;
257
+ readonly relogin: string;
258
+ readonly rotationStrategy: string;
259
+ readonly strategySequential: string;
260
+ readonly strategyRoundRobin: string;
261
+ readonly strategySticky: string;
262
+ readonly noAccounts: string;
263
+ readonly email: string;
264
+ readonly expires: string;
265
+ readonly lastUsed: string;
266
+ readonly accountId: string;
270
267
  };
271
- en: {
272
- readonly title: "Command Code";
273
- readonly pageDesc: "Sign in to Command Code and manage models, context windows, and quota.";
274
- readonly account: "Account";
275
- readonly signedIn: "Signed in";
276
- readonly signedOut: "Not signed in";
277
- readonly keyName: "Key name";
278
- readonly organization: "Organization";
279
- readonly plan: "Plan";
280
- readonly planUnknown: "—";
281
- readonly subscription: "Subscription";
282
- readonly renews: "renews";
283
- readonly authenticatedAt: "Signed in at";
284
- readonly storage: "Credential storage";
285
- readonly storageNotice: "The API key is stored locally by the Host ($DSH_HOME/storages/command-code-credentials.json) and never reaches the browser.";
286
- readonly signIn: "Sign in with browser";
287
- readonly signInAgain: "Sign in again";
288
- readonly signingIn: "Signing in...";
289
- readonly signOut: "Sign out";
290
- readonly cancelSignIn: "Cancel";
291
- readonly openSignInPage: "Open the sign-in page";
292
- readonly apiKeySection: "Paste an API key";
293
- readonly apiKeyHint: "Create a key in Command Code Studio and paste it here; use this when the browser flow is unavailable.";
294
- readonly apiKeyPlaceholder: "Command Code API key";
295
- readonly apiKeySave: "Save and verify";
296
- readonly apiKeySaving: "Verifying...";
297
- readonly apiKeySaved: "Saved";
298
- readonly connection: "Connection";
299
- readonly provider: "Provider";
300
- readonly providerValue: "Command Code · command-code";
301
- readonly connectionState: "Connection state";
302
- readonly connected: "Connected";
303
- readonly untested: "Untested";
304
- readonly testConnection: "Test connection";
305
- readonly testingConnection: "Testing...";
306
- readonly routeOwned: "This plugin serves the model route";
307
- readonly routeConflict: "Another provider already owns the model route: {detail}. Remove the duplicate provider configuration in DSH settings and reload.";
308
- readonly modelsSection: "Models";
309
- readonly enableProvider: "Enable this provider";
310
- readonly modelsHint: "Checked models appear in the DSH conversation model list; unchecking all or turning off the switch hides this provider.";
311
- readonly refreshCatalog: "Refresh catalog";
312
- readonly refreshingCatalog: "Refreshing...";
313
- readonly selectAll: "Select all";
314
- readonly unselectAll: "Deselect all";
315
- readonly wireAnthropic: "Anthropic";
316
- readonly wireOpenai: "OpenAI";
317
- readonly enhanced: "Enhanced features";
318
- readonly defaultReasoningEffort: "Default reasoning effort";
319
- readonly defaultReasoningEffortHint: "Reasoning effort for models that support it when the conversation does not specify one. Anthropic models map it to a thinking budget.";
320
- readonly defaultEffortAuto: "Use provider default";
321
- readonly contextWindowSection: "Model context window";
322
- readonly contextWindowHint: "Defaults to the context length in the Command Code catalog; override it with the capacity DSH should use for compaction and overflow decisions (e.g., 1M, 512K, 200K).";
323
- readonly save: "Save";
324
- readonly saved: "Saved";
325
- readonly saving: "Saving...";
326
- readonly quotaSection: "Usage & quota";
327
- readonly quotaDesc: "Read from the Command Code account endpoints; refreshes at most once every 60 seconds while visible.";
328
- readonly refreshQuota: "Refresh quota";
329
- readonly refreshingQuota: "Refreshing...";
330
- readonly quotaEmpty: "No quota data yet — use “Refresh quota” to retry.";
331
- readonly quotaCredits: "Remaining credits";
332
- readonly quotaUnlimited: "Unlimited";
333
- readonly updatedAt: "Updated at: {time}";
334
- readonly loading: "Loading...";
335
- readonly loginFailed: "Sign-in failed";
336
- readonly tokens: "tokens";
337
- };
338
- 'en-US': {
339
- readonly title: "Command Code";
340
- readonly pageDesc: "Sign in to Command Code and manage models, context windows, and quota.";
341
- readonly account: "Account";
342
- readonly signedIn: "Signed in";
343
- readonly signedOut: "Not signed in";
344
- readonly keyName: "Key name";
345
- readonly organization: "Organization";
346
- readonly plan: "Plan";
347
- readonly planUnknown: "—";
348
- readonly subscription: "Subscription";
349
- readonly renews: "renews";
350
- readonly authenticatedAt: "Signed in at";
351
- readonly storage: "Credential storage";
352
- readonly storageNotice: "The API key is stored locally by the Host ($DSH_HOME/storages/command-code-credentials.json) and never reaches the browser.";
353
- readonly signIn: "Sign in with browser";
354
- readonly signInAgain: "Sign in again";
355
- readonly signingIn: "Signing in...";
356
- readonly signOut: "Sign out";
357
- readonly cancelSignIn: "Cancel";
358
- readonly openSignInPage: "Open the sign-in page";
359
- readonly apiKeySection: "Paste an API key";
360
- readonly apiKeyHint: "Create a key in Command Code Studio and paste it here; use this when the browser flow is unavailable.";
361
- readonly apiKeyPlaceholder: "Command Code API key";
362
- readonly apiKeySave: "Save and verify";
363
- readonly apiKeySaving: "Verifying...";
364
- readonly apiKeySaved: "Saved";
365
- readonly connection: "Connection";
366
- readonly provider: "Provider";
367
- readonly providerValue: "Command Code · command-code";
368
- readonly connectionState: "Connection state";
369
- readonly connected: "Connected";
370
- readonly untested: "Untested";
371
- readonly testConnection: "Test connection";
372
- readonly testingConnection: "Testing...";
373
- readonly routeOwned: "This plugin serves the model route";
374
- readonly routeConflict: "Another provider already owns the model route: {detail}. Remove the duplicate provider configuration in DSH settings and reload.";
375
- readonly modelsSection: "Models";
376
- readonly enableProvider: "Enable this provider";
377
- readonly modelsHint: "Checked models appear in the DSH conversation model list; unchecking all or turning off the switch hides this provider.";
378
- readonly refreshCatalog: "Refresh catalog";
379
- readonly refreshingCatalog: "Refreshing...";
380
- readonly selectAll: "Select all";
381
- readonly unselectAll: "Deselect all";
382
- readonly wireAnthropic: "Anthropic";
383
- readonly wireOpenai: "OpenAI";
384
- readonly enhanced: "Enhanced features";
385
- readonly defaultReasoningEffort: "Default reasoning effort";
386
- readonly defaultReasoningEffortHint: "Reasoning effort for models that support it when the conversation does not specify one. Anthropic models map it to a thinking budget.";
387
- readonly defaultEffortAuto: "Use provider default";
388
- readonly contextWindowSection: "Model context window";
389
- readonly contextWindowHint: "Defaults to the context length in the Command Code catalog; override it with the capacity DSH should use for compaction and overflow decisions (e.g., 1M, 512K, 200K).";
390
- readonly save: "Save";
391
- readonly saved: "Saved";
392
- readonly saving: "Saving...";
393
- readonly quotaSection: "Usage & quota";
394
- readonly quotaDesc: "Read from the Command Code account endpoints; refreshes at most once every 60 seconds while visible.";
395
- readonly refreshQuota: "Refresh quota";
396
- readonly refreshingQuota: "Refreshing...";
397
- readonly quotaEmpty: "No quota data yet — use “Refresh quota” to retry.";
398
- readonly quotaCredits: "Remaining credits";
399
- readonly quotaUnlimited: "Unlimited";
400
- readonly updatedAt: "Updated at: {time}";
401
- readonly loading: "Loading...";
402
- readonly loginFailed: "Sign-in failed";
403
- readonly tokens: "tokens";
404
- };
268
+ en: Record<"tokens" | "title" | "pageDesc" | "account" | "signedIn" | "signedOut" | "accountPool" | "addAccount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "clearCooldown" | "rotationStrategy" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "plan" | "accountId" | "expires" | "storage" | "storageNotice" | "signInAgain" | "signOut" | "signIn" | "signingIn" | "connection" | "provider" | "providerValue" | "connectionState" | "connected" | "untested" | "enableProvider" | "modelsHint" | "selectAll" | "unselectAll" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "contextWindowSection" | "contextWindowHint" | "save" | "saved" | "saving" | "quotaSection" | "quotaDesc" | "refreshQuota" | "refreshingQuota" | "quotaEmpty" | "updatedAt" | "loading" | "loginFailed" | "keyName" | "organization" | "planUnknown" | "subscription" | "renews" | "authenticatedAt" | "cancelSignIn" | "openSignInPage" | "apiKeySection" | "apiKeyHint" | "apiKeyPlaceholder" | "apiKeySave" | "apiKeySaving" | "apiKeySaved" | "testConnection" | "testingConnection" | "routeOwned" | "routeConflict" | "modelsSection" | "refreshCatalog" | "refreshingCatalog" | "wireAnthropic" | "wireOpenai" | "quotaCredits" | "quotaUnlimited" | "accountCount" | "cooldownLeft" | "needsRelogin" | "relogin" | "email" | "lastUsed", string>;
269
+ 'en-US': Record<"tokens" | "title" | "pageDesc" | "account" | "signedIn" | "signedOut" | "accountPool" | "addAccount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "clearCooldown" | "rotationStrategy" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "plan" | "accountId" | "expires" | "storage" | "storageNotice" | "signInAgain" | "signOut" | "signIn" | "signingIn" | "connection" | "provider" | "providerValue" | "connectionState" | "connected" | "untested" | "enableProvider" | "modelsHint" | "selectAll" | "unselectAll" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "contextWindowSection" | "contextWindowHint" | "save" | "saved" | "saving" | "quotaSection" | "quotaDesc" | "refreshQuota" | "refreshingQuota" | "quotaEmpty" | "updatedAt" | "loading" | "loginFailed" | "keyName" | "organization" | "planUnknown" | "subscription" | "renews" | "authenticatedAt" | "cancelSignIn" | "openSignInPage" | "apiKeySection" | "apiKeyHint" | "apiKeyPlaceholder" | "apiKeySave" | "apiKeySaving" | "apiKeySaved" | "testConnection" | "testingConnection" | "routeOwned" | "routeConflict" | "modelsSection" | "refreshCatalog" | "refreshingCatalog" | "wireAnthropic" | "wireOpenai" | "quotaCredits" | "quotaUnlimited" | "accountCount" | "cooldownLeft" | "needsRelogin" | "relogin" | "email" | "lastUsed", string>;
405
270
  };
406
271
  export type CommandCodeLocaleKey = keyof typeof zh;
407
272
  //# sourceMappingURL=locales.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../../src/client/command-code/locales.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,qBAAqB,CAAA;AAEjD,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkEL,CAAA;AAEV,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkEL,CAAA;AAEV,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKxB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,EAAE,CAAA"}
1
+ {"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../../src/client/command-code/locales.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,qBAAqB,CAAA;AAEjD,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqEL,CAAA;AAEV,eAAO,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,OAAO,EAAE,EAAE,MAAM,CAmErC,CAAA;AAEV,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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