@eddyskywalker/dsh-chatgpt-subscription 0.10.0 → 0.10.5

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 (52) hide show
  1. package/CHANGELOG.md +58 -0
  2. package/README.md +39 -1
  3. package/lib/client.js +1675 -208
  4. package/lib/client.js.map +1 -1
  5. package/lib/index.js +5891 -1342
  6. package/lib/types/client/ProviderHubSection.d.ts.map +1 -1
  7. package/lib/types/client/index.d.ts +2 -0
  8. package/lib/types/client/index.d.ts.map +1 -1
  9. package/lib/types/client/minimax-code/MinimaxCodeComposerQuota.d.ts +27 -0
  10. package/lib/types/client/minimax-code/MinimaxCodeComposerQuota.d.ts.map +1 -0
  11. package/lib/types/client/minimax-code/MinimaxCodeSection.d.ts +49 -0
  12. package/lib/types/client/minimax-code/MinimaxCodeSection.d.ts.map +1 -0
  13. package/lib/types/client/minimax-code/api.d.ts +5 -0
  14. package/lib/types/client/minimax-code/api.d.ts.map +1 -0
  15. package/lib/types/client/minimax-code/locales.d.ts +377 -0
  16. package/lib/types/client/minimax-code/locales.d.ts.map +1 -0
  17. package/lib/types/client/minimax-code/styles.d.ts +12 -0
  18. package/lib/types/client/minimax-code/styles.d.ts.map +1 -0
  19. package/lib/types/client/styles.d.ts.map +1 -1
  20. package/lib/types/compat.d.ts +1 -0
  21. package/lib/types/compat.d.ts.map +1 -1
  22. package/lib/types/host/minimax-code/account-pool.d.ts +219 -0
  23. package/lib/types/host/minimax-code/account-pool.d.ts.map +1 -0
  24. package/lib/types/host/minimax-code/adapter.d.ts +168 -0
  25. package/lib/types/host/minimax-code/adapter.d.ts.map +1 -0
  26. package/lib/types/host/minimax-code/checkin-gateway.d.ts +109 -0
  27. package/lib/types/host/minimax-code/checkin-gateway.d.ts.map +1 -0
  28. package/lib/types/host/minimax-code/checkin.d.ts +150 -0
  29. package/lib/types/host/minimax-code/checkin.d.ts.map +1 -0
  30. package/lib/types/host/minimax-code/client.d.ts +184 -0
  31. package/lib/types/host/minimax-code/client.d.ts.map +1 -0
  32. package/lib/types/host/minimax-code/mapper.d.ts +172 -0
  33. package/lib/types/host/minimax-code/mapper.d.ts.map +1 -0
  34. package/lib/types/host/minimax-code/model-catalog.d.ts +146 -0
  35. package/lib/types/host/minimax-code/model-catalog.d.ts.map +1 -0
  36. package/lib/types/host/minimax-code/oauth.d.ts +204 -0
  37. package/lib/types/host/minimax-code/oauth.d.ts.map +1 -0
  38. package/lib/types/host/minimax-code/routes.d.ts +82 -0
  39. package/lib/types/host/minimax-code/routes.d.ts.map +1 -0
  40. package/lib/types/host/minimax-code/token-store.d.ts +253 -0
  41. package/lib/types/host/minimax-code/token-store.d.ts.map +1 -0
  42. package/lib/types/host/minimax-code/types.d.ts +222 -0
  43. package/lib/types/host/minimax-code/types.d.ts.map +1 -0
  44. package/lib/types/index.d.ts +11 -0
  45. package/lib/types/index.d.ts.map +1 -1
  46. package/lib/types/shared/minimax-code-contracts.d.ts +202 -0
  47. package/lib/types/shared/minimax-code-contracts.d.ts.map +1 -0
  48. package/package.json +31 -31
  49. package/lib/types/host/claude/__probe-assert.d.ts +0 -2
  50. package/lib/types/host/claude/__probe-assert.d.ts.map +0 -1
  51. package/lib/types/shared/__probe-claude-import.d.ts +0 -2
  52. package/lib/types/shared/__probe-claude-import.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ProviderHubSection.d.ts","sourceRoot":"","sources":["../../../src/client/ProviderHubSection.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAOjF,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAA;AAEjC,KAAK,KAAK,GAAG,YAAY,CAAC,kBAAkB,CAAC,GAAG,WAAW,CAAC,OAAO,EAAE,CAAC,GAAG;IACvE,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;CAC3B,CAAA;AAgBD;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,CAAC,EAAE,aAAa,EAAE,GAAG,OAAO,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAwC7F"}
1
+ {"version":3,"file":"ProviderHubSection.d.ts","sourceRoot":"","sources":["../../../src/client/ProviderHubSection.tsx"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAQjF,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAA;AAEjC,KAAK,KAAK,GAAG,YAAY,CAAC,kBAAkB,CAAC,GAAG,WAAW,CAAC,OAAO,EAAE,CAAC,GAAG;IACvE,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;CAC3B,CAAA;AAiBD;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,EAAE,CAAC,EAAE,aAAa,EAAE,GAAG,OAAO,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAgE7F"}
@@ -1,5 +1,6 @@
1
1
  import type { Context as ClientContext } from '@deepseek-ai/cordis';
2
2
  import { type LocaleKey } from './locales.ts';
3
+ import { type MinimaxCodeLocaleKey } from './minimax-code/locales.ts';
3
4
  declare module '@deepseek-ai/dsh-client-ui-slots' {
4
5
  interface LocaleNamespaceMap {
5
6
  'dsh-chatgpt-subscription': LocaleKey;
@@ -7,6 +8,7 @@ declare module '@deepseek-ai/dsh-client-ui-slots' {
7
8
  'dsh-claude': any;
8
9
  'dsh-command-code': any;
9
10
  'dsh-kimi-code': any;
11
+ 'dsh-minimax-code': MinimaxCodeLocaleKey;
10
12
  'dsh-workbuddy': any;
11
13
  }
12
14
  }
@@ -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;AAmB/D,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,eAAe,EAAE,GAAG,CAAA;KACrB;CACF;AAED,eAAO,MAAM,MAAM,UAQlB,CAAA;AAED,wBAAgB,KAAK,CAAC,GAAG,EAAE,aAAa,GAAG,IAAI,CAkK9C"}
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;AAOxH,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;KACrB;CACF;AAED,eAAO,MAAM,MAAM,UAQlB,CAAA;AAED,wBAAgB,KAAK,CAAC,GAAG,EAAE,aAAa,GAAG,IAAI,CAsL9C"}
@@ -0,0 +1,27 @@
1
+ import type { ModelDirectoryState } from '@deepseek-ai/dsh-client-ui-model-selection/client';
2
+ import type { PropsLocale, PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots';
3
+ import { type MinimaxCodeWebStatus } from '../../shared/minimax-code-contracts.ts';
4
+ import type { SnapshotStore } from '../store.ts';
5
+ import { NS_MINIMAX_CODE } from './locales.ts';
6
+ type Props = PropsRuntime<'conversation.input.right'> & PropsLocale<typeof NS_MINIMAX_CODE> & {
7
+ directory: SnapshotStore<ModelDirectoryState>;
8
+ loadModelDirectory: () => void;
9
+ };
10
+ interface BadgeFacts {
11
+ text: string;
12
+ tooltip: string;
13
+ level: 'normal' | 'warning' | 'danger';
14
+ }
15
+ /**
16
+ * Pick the badge facts for one status answer, or nothing at all.
17
+ *
18
+ * Quota is optional in the contract, and the usage read is allowed to fail (the
19
+ * endpoint is undocumented and which host serves this subscription is
20
+ * unmeasured), so a status without quota means the badge has nothing to say: it
21
+ * is not rendered, rather than showing a placeholder that would read as a broken
22
+ * meter. Callers must treat null as "hide the badge".
23
+ */
24
+ export declare function selectBadgeFacts(status: MinimaxCodeWebStatus | null): BadgeFacts | null;
25
+ export declare function MinimaxCodeComposerQuota({ t, directory, loadModelDirectory }: Props): React.JSX.Element | null;
26
+ export {};
27
+ //# sourceMappingURL=MinimaxCodeComposerQuota.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MinimaxCodeComposerQuota.d.ts","sourceRoot":"","sources":["../../../../src/client/minimax-code/MinimaxCodeComposerQuota.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,EAEL,KAAK,oBAAoB,EAC1B,MAAM,wCAAwC,CAAA;AAC/C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAE9C,KAAK,KAAK,GAAG,YAAY,CAAC,0BAA0B,CAAC,GACnD,WAAW,CAAC,OAAO,eAAe,CAAC,GAAG;IACpC,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;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,oBAAoB,GAAG,IAAI,GAAG,UAAU,GAAG,IAAI,CAgBvF;AAED,wBAAgB,wBAAwB,CAAC,EAAE,CAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,CAwE9G"}
@@ -0,0 +1,49 @@
1
+ import React from 'react';
2
+ import { type MinimaxCodeCredentialStorage } from '../../shared/minimax-code-contracts.ts';
3
+ import { zh } from './locales.ts';
4
+ /**
5
+ * Parse "1M", "512K", "200000" into a positive integer token count.
6
+ *
7
+ * Every provider card carries its own copy of this pair rather than importing one
8
+ * from a shared module; the value is user input in a free-text field and a bad
9
+ * parse silently corrupts the overflow judgement, so it stays next to the only
10
+ * field that produces it.
11
+ */
12
+ export declare function parsePositiveCapacity(value: string): number | null;
13
+ /** Render a token capacity the way the capacity field seeds itself. */
14
+ export declare function formatCapacity(value: number): string;
15
+ /**
16
+ * Props this card accepts.
17
+ *
18
+ * Deliberately the same shape every sibling tab declares: the hub hands each tab
19
+ * only the refresh callback. The card does not take the hub's `settings.section`
20
+ * runtime seat or its locale seat, because it renders its own dictionary (see
21
+ * below) and needs none of that scope's other props.
22
+ */
23
+ interface Props {
24
+ onModelChange?: () => void;
25
+ }
26
+ /**
27
+ * The keys this card renders.
28
+ *
29
+ * The provider hub hosts every provider tab inside one settings section whose
30
+ * injected `t` seat is bound to the hub's own namespace, and every sibling tab
31
+ * therefore renders its own dictionary instead of that seat (see KimiCodeSection,
32
+ * WorkBuddySection and CommandCodeSection, none of which declare a locale prop).
33
+ * This card must do the same: its keys are not a subset of the hub's, so using the
34
+ * hub's seat resolves the overlap to ChatGPT wording ("使用 ChatGPT 登录" on the
35
+ * MiniMax tab) and every other key to the literal key text.
36
+ */
37
+ type Translate = (key: keyof typeof zh) => string;
38
+ /**
39
+ * Hours still left on the access token, or null once it has run out.
40
+ *
41
+ * MiniMax Code's token lives about 24 hours, so hours are the unit the card
42
+ * reports; a value worth a fraction of an hour keeps one decimal instead of
43
+ * rounding down to 0.
44
+ */
45
+ export declare function remainingHours(expiresAtMs: number | undefined): string | null;
46
+ export declare function storageLabel(storage: MinimaxCodeCredentialStorage | undefined, t: Translate): string;
47
+ export declare function MinimaxCodeSection({ onModelChange }: Props): React.JSX.Element;
48
+ export {};
49
+ //# sourceMappingURL=MinimaxCodeSection.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"MinimaxCodeSection.d.ts","sourceRoot":"","sources":["../../../../src/client/minimax-code/MinimaxCodeSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAA;AACvE,OAAO,EAIL,KAAK,4BAA4B,EAGlC,MAAM,wCAAwC,CAAA;AAa/C,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAA;AAgDjC;;;;;;;GAOG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAOlE;AAED,uEAAuE;AACvE,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIpD;AA0CD;;;;;;;GAOG;AACH,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;CAC3B;AAED;;;;;;;;;;GAUG;AACH,KAAK,SAAS,GAAG,CAAC,GAAG,EAAE,MAAM,OAAO,EAAE,KAAK,MAAM,CAAA;AAKjD;;;;;;GAMG;AACH,wBAAgB,cAAc,CAAC,WAAW,EAAE,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,IAAI,CAK7E;AAED,wBAAgB,YAAY,CAAC,OAAO,EAAE,4BAA4B,GAAG,SAAS,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CAOpG;AAWD,wBAAgB,kBAAkB,CAAC,EAAE,aAAa,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAk2B9E"}
@@ -0,0 +1,5 @@
1
+ export declare function request<T>(path: string, init?: RequestInit): Promise<T>;
2
+ export declare function get<T>(path: string): Promise<T>;
3
+ export declare function post<T>(path: string, body?: object): Promise<T>;
4
+ export declare function messageOf(cause: unknown): string;
5
+ //# sourceMappingURL=api.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/client/minimax-code/api.ts"],"names":[],"mappings":"AA0BA,wBAAsB,OAAO,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,WAAW,GAAG,OAAO,CAAC,CAAC,CAAC,CAwB7E;AAED,wBAAgB,GAAG,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,CAAC,CAAC,CAE/C;AAED,wBAAgB,IAAI,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE,MAAW,GAAG,OAAO,CAAC,CAAC,CAAC,CAEnE;AAED,wBAAgB,SAAS,CAAC,KAAK,EAAE,OAAO,GAAG,MAAM,CAEhD"}
@@ -0,0 +1,377 @@
1
+ export declare const NS_MINIMAX_CODE = "dsh-minimax-code";
2
+ export declare const zh: {
3
+ readonly title: "MiniMax Code";
4
+ readonly pageDesc: "登录 MiniMax Code 编程订阅(设备码 OAuth),复用本机 MiniMax Code 的登录态,管理账号、连接与模型。";
5
+ readonly account: "账号";
6
+ readonly signedIn: "已登录";
7
+ readonly signedOut: "未登录";
8
+ readonly accountLabel: "账号标签";
9
+ readonly accountId: "账号 ID";
10
+ readonly email: "邮箱";
11
+ readonly region: "区域";
12
+ readonly regionCn: "中国大陆 (minimax.cn)";
13
+ readonly regionGlobal: "国际 (minimax.io)";
14
+ readonly storage: "凭据存储";
15
+ readonly storageNative: "MiniMax Code 原生凭据(~/.minimax/auth)";
16
+ readonly storageDpapi: "Windows DPAPI(当前用户加密)";
17
+ readonly storageFile: "本地凭据文件";
18
+ readonly storagePath: "凭据路径";
19
+ readonly expiresAt: "令牌到期";
20
+ readonly expiresRemaining: "剩余 {hours} 小时";
21
+ readonly expiresExpired: "已过期";
22
+ readonly expiresHint: "访问令牌约 24 小时有效;Host 会在令牌过期或上游返回 401 时自动刷新。刷新被拒绝时请回到 MiniMax Code 重新登录。";
23
+ readonly signIn: "登录 MiniMax Code";
24
+ readonly signingIn: "正在申请设备码...";
25
+ readonly signOut: "登出";
26
+ readonly cancelSignIn: "取消登录";
27
+ readonly deviceCodeSection: "设备码授权";
28
+ readonly deviceCodeHint: "在浏览器中打开下方链接(用户码已单独列出,可复制),用你的 MiniMax 账号确认授权。";
29
+ readonly userCode: "用户码";
30
+ readonly copyCode: "复制用户码";
31
+ readonly copied: "已复制";
32
+ readonly openSignInPage: "打开授权页面";
33
+ readonly codeExpires: "设备码有效期";
34
+ readonly codeMinutes: "剩余 {minutes} 分钟";
35
+ readonly waitingAuthorization: "等待浏览器授权...";
36
+ readonly loginFailed: "登录失败";
37
+ readonly loginExpired: "设备码已过期,请重新发起登录。";
38
+ readonly loginDenied: "授权被拒绝。";
39
+ readonly logoutOwnedByApp: "当前登录态属于 MiniMax Code 桌面端:本插件复用它并会在需要时续期写回,但不会撤销或删除它(那会把你从正在运行的 MiniMax Code 里踢下线)。请在 MiniMax Code 应用中退出登录。";
40
+ readonly connection: "连接";
41
+ readonly provider: "Provider";
42
+ readonly connectionState: "连接状态";
43
+ readonly connected: "已连接";
44
+ readonly untested: "未测试";
45
+ readonly routeOwned: "本插件正在服务该模型路由。";
46
+ readonly routeConflict: "模型路由已被其他 Provider 占用:{detail}。请在 DSH 设置中移除重复的 Provider 配置后重新加载。";
47
+ readonly testConnection: "测试连接";
48
+ readonly testingConnection: "测试中...";
49
+ readonly testSuccess: "连接正常";
50
+ readonly testSuccessModel: "连接正常({model})";
51
+ readonly testFailed: "连接失败";
52
+ readonly modelsSection: "模型";
53
+ readonly modelsHint: "模型目录由本线路硬编码(MiniMax Code 未开放 /v1/models 接口),当前共 {count} 个可用模型。勾选后模型才会出现在对话页的模型选择列表中;未勾选或关闭下方「启用此供应商」可在列表中隐藏该线路。";
54
+ readonly modelsUnavailable: "暂无可显示的模型。";
55
+ readonly quotaSection: "用量与配额";
56
+ readonly dailyCheckin: "每日签到";
57
+ readonly checkinHint: "用本线路自己的登录态签到(与官方 MiniMax Code 客户端同一条接口)。DSH 启动时自动签到一次,运行期间每 10 分钟补检,进程关闭的当天不会签到。";
58
+ readonly checkinAuto: "自动签到";
59
+ readonly checkinToday: "今日已签 {done}/{total}";
60
+ readonly checkinSkipped: "{count} 个暂不可签";
61
+ readonly checkinFailed: "{count} 个失败";
62
+ readonly checkinStreak: "连续 {days} 天";
63
+ readonly checkinClaimed: "本轮 +{points} 积分";
64
+ readonly checkinLastRun: "上次运行:{time}";
65
+ readonly checkinNever: "尚未运行";
66
+ readonly checkinNow: "立即签到";
67
+ readonly checkinRunning: "签到中…";
68
+ readonly quotaUnavailable: "暂时没有用量数据。";
69
+ readonly quotaNeedsApiKey: "上游拒绝了这个登录态读取用量(官方客户端的用量端点要求带官方客户端标识头,本插件默认不伪造)。请在 MiniMax 控制台的用量条里查看 Token Plan 用量;如果你接受该取舍,可设 DSH_MINIMAX_CODE_QUOTA_ATTRIBUTION=1 后重试。";
70
+ readonly quotaUnreachable: "暂时读不到用量(用量端点未应答),稍后会自动重试。";
71
+ readonly quotaUsed: "已用 {percent}%";
72
+ readonly quotaRemaining: "剩余 {percent}%";
73
+ readonly quotaReset: "重置:{time}";
74
+ readonly quotaRefresh: "刷新用量";
75
+ readonly quotaRefreshing: "刷新中...";
76
+ readonly quotaWindowInterval: "5 小时窗口";
77
+ readonly quotaWindowWeekly: "每周窗口";
78
+ readonly quotaUnlimited: "不限量";
79
+ readonly quotaCounts: "已用 {used} / {total}";
80
+ readonly composerLabel: "额度";
81
+ readonly enableProvider: "启用此供应商";
82
+ readonly selectAll: "全选";
83
+ readonly unselectAll: "全不选";
84
+ readonly enhanced: "增强功能";
85
+ readonly defaultReasoningEffort: "默认思考深度";
86
+ readonly defaultReasoningEffortHint: "控制支持推理的模型在未单独指定时的思考强度。";
87
+ readonly defaultEffortAuto: "自动(各模型默认)";
88
+ readonly contextWindowSection: "模型上下文窗口";
89
+ readonly contextWindowHint: "默认值来自订阅网关的模型目录(每个模型的真实上下文上限);可覆盖为自定义容量,该值用于 DSH 的压缩与溢出判断,可输入 1M、512K、200K 等容量。";
90
+ readonly contextWindowNoneEnabled: "尚未勾选任何模型,先在上方「模型」中勾选。";
91
+ readonly contextWindowReset: "恢复默认";
92
+ readonly contextWindowResetAll: "全部恢复默认";
93
+ readonly tokens: "tokens";
94
+ readonly save: "保存";
95
+ readonly saving: "保存中...";
96
+ readonly invalidCapacity: "容量格式无效:{value}";
97
+ readonly thinkingAlwaysOn: "恒定开启(无档位)";
98
+ readonly thinkingToggle: "可关闭";
99
+ readonly thinkingForced: "强制开启(可选档位)";
100
+ readonly capText: "文本";
101
+ readonly capImage: "图片";
102
+ readonly loading: "加载中...";
103
+ readonly unknown: "—";
104
+ readonly accountPool: string;
105
+ readonly addAccount: string;
106
+ readonly accountCount: string;
107
+ readonly primaryAccount: string;
108
+ readonly activeAccount: string;
109
+ readonly setPrimary: string;
110
+ readonly deleteAccount: string;
111
+ readonly cooling: string;
112
+ readonly cooldownLeft: string;
113
+ readonly clearCooldown: string;
114
+ readonly needsRelogin: string;
115
+ readonly relogin: string;
116
+ readonly rotationStrategy: string;
117
+ readonly strategySequential: string;
118
+ readonly strategyRoundRobin: string;
119
+ readonly strategySticky: string;
120
+ readonly noAccounts: string;
121
+ readonly storageNotice: string;
122
+ readonly expires: string;
123
+ readonly lastUsed: string;
124
+ };
125
+ export declare const en: Record<keyof typeof zh, string>;
126
+ export declare const dictionaries: {
127
+ zh: {
128
+ readonly title: "MiniMax Code";
129
+ readonly pageDesc: "登录 MiniMax Code 编程订阅(设备码 OAuth),复用本机 MiniMax Code 的登录态,管理账号、连接与模型。";
130
+ readonly account: "账号";
131
+ readonly signedIn: "已登录";
132
+ readonly signedOut: "未登录";
133
+ readonly accountLabel: "账号标签";
134
+ readonly accountId: "账号 ID";
135
+ readonly email: "邮箱";
136
+ readonly region: "区域";
137
+ readonly regionCn: "中国大陆 (minimax.cn)";
138
+ readonly regionGlobal: "国际 (minimax.io)";
139
+ readonly storage: "凭据存储";
140
+ readonly storageNative: "MiniMax Code 原生凭据(~/.minimax/auth)";
141
+ readonly storageDpapi: "Windows DPAPI(当前用户加密)";
142
+ readonly storageFile: "本地凭据文件";
143
+ readonly storagePath: "凭据路径";
144
+ readonly expiresAt: "令牌到期";
145
+ readonly expiresRemaining: "剩余 {hours} 小时";
146
+ readonly expiresExpired: "已过期";
147
+ readonly expiresHint: "访问令牌约 24 小时有效;Host 会在令牌过期或上游返回 401 时自动刷新。刷新被拒绝时请回到 MiniMax Code 重新登录。";
148
+ readonly signIn: "登录 MiniMax Code";
149
+ readonly signingIn: "正在申请设备码...";
150
+ readonly signOut: "登出";
151
+ readonly cancelSignIn: "取消登录";
152
+ readonly deviceCodeSection: "设备码授权";
153
+ readonly deviceCodeHint: "在浏览器中打开下方链接(用户码已单独列出,可复制),用你的 MiniMax 账号确认授权。";
154
+ readonly userCode: "用户码";
155
+ readonly copyCode: "复制用户码";
156
+ readonly copied: "已复制";
157
+ readonly openSignInPage: "打开授权页面";
158
+ readonly codeExpires: "设备码有效期";
159
+ readonly codeMinutes: "剩余 {minutes} 分钟";
160
+ readonly waitingAuthorization: "等待浏览器授权...";
161
+ readonly loginFailed: "登录失败";
162
+ readonly loginExpired: "设备码已过期,请重新发起登录。";
163
+ readonly loginDenied: "授权被拒绝。";
164
+ readonly logoutOwnedByApp: "当前登录态属于 MiniMax Code 桌面端:本插件复用它并会在需要时续期写回,但不会撤销或删除它(那会把你从正在运行的 MiniMax Code 里踢下线)。请在 MiniMax Code 应用中退出登录。";
165
+ readonly connection: "连接";
166
+ readonly provider: "Provider";
167
+ readonly connectionState: "连接状态";
168
+ readonly connected: "已连接";
169
+ readonly untested: "未测试";
170
+ readonly routeOwned: "本插件正在服务该模型路由。";
171
+ readonly routeConflict: "模型路由已被其他 Provider 占用:{detail}。请在 DSH 设置中移除重复的 Provider 配置后重新加载。";
172
+ readonly testConnection: "测试连接";
173
+ readonly testingConnection: "测试中...";
174
+ readonly testSuccess: "连接正常";
175
+ readonly testSuccessModel: "连接正常({model})";
176
+ readonly testFailed: "连接失败";
177
+ readonly modelsSection: "模型";
178
+ readonly modelsHint: "模型目录由本线路硬编码(MiniMax Code 未开放 /v1/models 接口),当前共 {count} 个可用模型。勾选后模型才会出现在对话页的模型选择列表中;未勾选或关闭下方「启用此供应商」可在列表中隐藏该线路。";
179
+ readonly modelsUnavailable: "暂无可显示的模型。";
180
+ readonly quotaSection: "用量与配额";
181
+ readonly dailyCheckin: "每日签到";
182
+ readonly checkinHint: "用本线路自己的登录态签到(与官方 MiniMax Code 客户端同一条接口)。DSH 启动时自动签到一次,运行期间每 10 分钟补检,进程关闭的当天不会签到。";
183
+ readonly checkinAuto: "自动签到";
184
+ readonly checkinToday: "今日已签 {done}/{total}";
185
+ readonly checkinSkipped: "{count} 个暂不可签";
186
+ readonly checkinFailed: "{count} 个失败";
187
+ readonly checkinStreak: "连续 {days} 天";
188
+ readonly checkinClaimed: "本轮 +{points} 积分";
189
+ readonly checkinLastRun: "上次运行:{time}";
190
+ readonly checkinNever: "尚未运行";
191
+ readonly checkinNow: "立即签到";
192
+ readonly checkinRunning: "签到中…";
193
+ readonly quotaUnavailable: "暂时没有用量数据。";
194
+ readonly quotaNeedsApiKey: "上游拒绝了这个登录态读取用量(官方客户端的用量端点要求带官方客户端标识头,本插件默认不伪造)。请在 MiniMax 控制台的用量条里查看 Token Plan 用量;如果你接受该取舍,可设 DSH_MINIMAX_CODE_QUOTA_ATTRIBUTION=1 后重试。";
195
+ readonly quotaUnreachable: "暂时读不到用量(用量端点未应答),稍后会自动重试。";
196
+ readonly quotaUsed: "已用 {percent}%";
197
+ readonly quotaRemaining: "剩余 {percent}%";
198
+ readonly quotaReset: "重置:{time}";
199
+ readonly quotaRefresh: "刷新用量";
200
+ readonly quotaRefreshing: "刷新中...";
201
+ readonly quotaWindowInterval: "5 小时窗口";
202
+ readonly quotaWindowWeekly: "每周窗口";
203
+ readonly quotaUnlimited: "不限量";
204
+ readonly quotaCounts: "已用 {used} / {total}";
205
+ readonly composerLabel: "额度";
206
+ readonly enableProvider: "启用此供应商";
207
+ readonly selectAll: "全选";
208
+ readonly unselectAll: "全不选";
209
+ readonly enhanced: "增强功能";
210
+ readonly defaultReasoningEffort: "默认思考深度";
211
+ readonly defaultReasoningEffortHint: "控制支持推理的模型在未单独指定时的思考强度。";
212
+ readonly defaultEffortAuto: "自动(各模型默认)";
213
+ readonly contextWindowSection: "模型上下文窗口";
214
+ readonly contextWindowHint: "默认值来自订阅网关的模型目录(每个模型的真实上下文上限);可覆盖为自定义容量,该值用于 DSH 的压缩与溢出判断,可输入 1M、512K、200K 等容量。";
215
+ readonly contextWindowNoneEnabled: "尚未勾选任何模型,先在上方「模型」中勾选。";
216
+ readonly contextWindowReset: "恢复默认";
217
+ readonly contextWindowResetAll: "全部恢复默认";
218
+ readonly tokens: "tokens";
219
+ readonly save: "保存";
220
+ readonly saving: "保存中...";
221
+ readonly invalidCapacity: "容量格式无效:{value}";
222
+ readonly thinkingAlwaysOn: "恒定开启(无档位)";
223
+ readonly thinkingToggle: "可关闭";
224
+ readonly thinkingForced: "强制开启(可选档位)";
225
+ readonly capText: "文本";
226
+ readonly capImage: "图片";
227
+ readonly loading: "加载中...";
228
+ readonly unknown: "—";
229
+ readonly accountPool: string;
230
+ readonly addAccount: string;
231
+ readonly accountCount: string;
232
+ readonly primaryAccount: string;
233
+ readonly activeAccount: string;
234
+ readonly setPrimary: string;
235
+ readonly deleteAccount: string;
236
+ readonly cooling: string;
237
+ readonly cooldownLeft: string;
238
+ readonly clearCooldown: string;
239
+ readonly needsRelogin: string;
240
+ readonly relogin: string;
241
+ readonly rotationStrategy: string;
242
+ readonly strategySequential: string;
243
+ readonly strategyRoundRobin: string;
244
+ readonly strategySticky: string;
245
+ readonly noAccounts: string;
246
+ readonly storageNotice: string;
247
+ readonly expires: string;
248
+ readonly lastUsed: string;
249
+ };
250
+ 'zh-CN': {
251
+ readonly title: "MiniMax Code";
252
+ readonly pageDesc: "登录 MiniMax Code 编程订阅(设备码 OAuth),复用本机 MiniMax Code 的登录态,管理账号、连接与模型。";
253
+ readonly account: "账号";
254
+ readonly signedIn: "已登录";
255
+ readonly signedOut: "未登录";
256
+ readonly accountLabel: "账号标签";
257
+ readonly accountId: "账号 ID";
258
+ readonly email: "邮箱";
259
+ readonly region: "区域";
260
+ readonly regionCn: "中国大陆 (minimax.cn)";
261
+ readonly regionGlobal: "国际 (minimax.io)";
262
+ readonly storage: "凭据存储";
263
+ readonly storageNative: "MiniMax Code 原生凭据(~/.minimax/auth)";
264
+ readonly storageDpapi: "Windows DPAPI(当前用户加密)";
265
+ readonly storageFile: "本地凭据文件";
266
+ readonly storagePath: "凭据路径";
267
+ readonly expiresAt: "令牌到期";
268
+ readonly expiresRemaining: "剩余 {hours} 小时";
269
+ readonly expiresExpired: "已过期";
270
+ readonly expiresHint: "访问令牌约 24 小时有效;Host 会在令牌过期或上游返回 401 时自动刷新。刷新被拒绝时请回到 MiniMax Code 重新登录。";
271
+ readonly signIn: "登录 MiniMax Code";
272
+ readonly signingIn: "正在申请设备码...";
273
+ readonly signOut: "登出";
274
+ readonly cancelSignIn: "取消登录";
275
+ readonly deviceCodeSection: "设备码授权";
276
+ readonly deviceCodeHint: "在浏览器中打开下方链接(用户码已单独列出,可复制),用你的 MiniMax 账号确认授权。";
277
+ readonly userCode: "用户码";
278
+ readonly copyCode: "复制用户码";
279
+ readonly copied: "已复制";
280
+ readonly openSignInPage: "打开授权页面";
281
+ readonly codeExpires: "设备码有效期";
282
+ readonly codeMinutes: "剩余 {minutes} 分钟";
283
+ readonly waitingAuthorization: "等待浏览器授权...";
284
+ readonly loginFailed: "登录失败";
285
+ readonly loginExpired: "设备码已过期,请重新发起登录。";
286
+ readonly loginDenied: "授权被拒绝。";
287
+ readonly logoutOwnedByApp: "当前登录态属于 MiniMax Code 桌面端:本插件复用它并会在需要时续期写回,但不会撤销或删除它(那会把你从正在运行的 MiniMax Code 里踢下线)。请在 MiniMax Code 应用中退出登录。";
288
+ readonly connection: "连接";
289
+ readonly provider: "Provider";
290
+ readonly connectionState: "连接状态";
291
+ readonly connected: "已连接";
292
+ readonly untested: "未测试";
293
+ readonly routeOwned: "本插件正在服务该模型路由。";
294
+ readonly routeConflict: "模型路由已被其他 Provider 占用:{detail}。请在 DSH 设置中移除重复的 Provider 配置后重新加载。";
295
+ readonly testConnection: "测试连接";
296
+ readonly testingConnection: "测试中...";
297
+ readonly testSuccess: "连接正常";
298
+ readonly testSuccessModel: "连接正常({model})";
299
+ readonly testFailed: "连接失败";
300
+ readonly modelsSection: "模型";
301
+ readonly modelsHint: "模型目录由本线路硬编码(MiniMax Code 未开放 /v1/models 接口),当前共 {count} 个可用模型。勾选后模型才会出现在对话页的模型选择列表中;未勾选或关闭下方「启用此供应商」可在列表中隐藏该线路。";
302
+ readonly modelsUnavailable: "暂无可显示的模型。";
303
+ readonly quotaSection: "用量与配额";
304
+ readonly dailyCheckin: "每日签到";
305
+ readonly checkinHint: "用本线路自己的登录态签到(与官方 MiniMax Code 客户端同一条接口)。DSH 启动时自动签到一次,运行期间每 10 分钟补检,进程关闭的当天不会签到。";
306
+ readonly checkinAuto: "自动签到";
307
+ readonly checkinToday: "今日已签 {done}/{total}";
308
+ readonly checkinSkipped: "{count} 个暂不可签";
309
+ readonly checkinFailed: "{count} 个失败";
310
+ readonly checkinStreak: "连续 {days} 天";
311
+ readonly checkinClaimed: "本轮 +{points} 积分";
312
+ readonly checkinLastRun: "上次运行:{time}";
313
+ readonly checkinNever: "尚未运行";
314
+ readonly checkinNow: "立即签到";
315
+ readonly checkinRunning: "签到中…";
316
+ readonly quotaUnavailable: "暂时没有用量数据。";
317
+ readonly quotaNeedsApiKey: "上游拒绝了这个登录态读取用量(官方客户端的用量端点要求带官方客户端标识头,本插件默认不伪造)。请在 MiniMax 控制台的用量条里查看 Token Plan 用量;如果你接受该取舍,可设 DSH_MINIMAX_CODE_QUOTA_ATTRIBUTION=1 后重试。";
318
+ readonly quotaUnreachable: "暂时读不到用量(用量端点未应答),稍后会自动重试。";
319
+ readonly quotaUsed: "已用 {percent}%";
320
+ readonly quotaRemaining: "剩余 {percent}%";
321
+ readonly quotaReset: "重置:{time}";
322
+ readonly quotaRefresh: "刷新用量";
323
+ readonly quotaRefreshing: "刷新中...";
324
+ readonly quotaWindowInterval: "5 小时窗口";
325
+ readonly quotaWindowWeekly: "每周窗口";
326
+ readonly quotaUnlimited: "不限量";
327
+ readonly quotaCounts: "已用 {used} / {total}";
328
+ readonly composerLabel: "额度";
329
+ readonly enableProvider: "启用此供应商";
330
+ readonly selectAll: "全选";
331
+ readonly unselectAll: "全不选";
332
+ readonly enhanced: "增强功能";
333
+ readonly defaultReasoningEffort: "默认思考深度";
334
+ readonly defaultReasoningEffortHint: "控制支持推理的模型在未单独指定时的思考强度。";
335
+ readonly defaultEffortAuto: "自动(各模型默认)";
336
+ readonly contextWindowSection: "模型上下文窗口";
337
+ readonly contextWindowHint: "默认值来自订阅网关的模型目录(每个模型的真实上下文上限);可覆盖为自定义容量,该值用于 DSH 的压缩与溢出判断,可输入 1M、512K、200K 等容量。";
338
+ readonly contextWindowNoneEnabled: "尚未勾选任何模型,先在上方「模型」中勾选。";
339
+ readonly contextWindowReset: "恢复默认";
340
+ readonly contextWindowResetAll: "全部恢复默认";
341
+ readonly tokens: "tokens";
342
+ readonly save: "保存";
343
+ readonly saving: "保存中...";
344
+ readonly invalidCapacity: "容量格式无效:{value}";
345
+ readonly thinkingAlwaysOn: "恒定开启(无档位)";
346
+ readonly thinkingToggle: "可关闭";
347
+ readonly thinkingForced: "强制开启(可选档位)";
348
+ readonly capText: "文本";
349
+ readonly capImage: "图片";
350
+ readonly loading: "加载中...";
351
+ readonly unknown: "—";
352
+ readonly accountPool: string;
353
+ readonly addAccount: string;
354
+ readonly accountCount: string;
355
+ readonly primaryAccount: string;
356
+ readonly activeAccount: string;
357
+ readonly setPrimary: string;
358
+ readonly deleteAccount: string;
359
+ readonly cooling: string;
360
+ readonly cooldownLeft: string;
361
+ readonly clearCooldown: string;
362
+ readonly needsRelogin: string;
363
+ readonly relogin: string;
364
+ readonly rotationStrategy: string;
365
+ readonly strategySequential: string;
366
+ readonly strategyRoundRobin: string;
367
+ readonly strategySticky: string;
368
+ readonly noAccounts: string;
369
+ readonly storageNotice: string;
370
+ readonly expires: string;
371
+ readonly lastUsed: string;
372
+ };
373
+ en: Record<"account" | "storage" | "quotaRefreshing" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "signedOut" | "signedIn" | "expires" | "signIn" | "signOut" | "loading" | "connection" | "provider" | "connectionState" | "connected" | "untested" | "testConnection" | "enableProvider" | "selectAll" | "unselectAll" | "modelsHint" | "contextWindowReset" | "contextWindowResetAll" | "save" | "unknown" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "storageNotice" | "email" | "lastUsed" | "pageDesc" | "signingIn" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "contextWindowSection" | "contextWindowHint" | "contextWindowNoneEnabled" | "saving" | "quotaSection" | "loginFailed" | "cancelSignIn" | "testingConnection" | "testSuccess" | "testFailed" | "routeOwned" | "routeConflict" | "modelsSection" | "capImage" | "copied" | "openSignInPage" | "quotaUnlimited" | "region" | "regionGlobal" | "deviceCodeSection" | "deviceCodeHint" | "copyCode" | "userCode" | "codeExpires" | "waitingAuthorization" | "accountLabel" | "regionCn" | "storageNative" | "storageDpapi" | "storageFile" | "storagePath" | "expiresAt" | "expiresRemaining" | "expiresExpired" | "expiresHint" | "codeMinutes" | "loginExpired" | "loginDenied" | "logoutOwnedByApp" | "testSuccessModel" | "modelsUnavailable" | "dailyCheckin" | "checkinHint" | "checkinAuto" | "checkinToday" | "checkinSkipped" | "checkinFailed" | "checkinStreak" | "checkinClaimed" | "checkinLastRun" | "checkinNever" | "checkinNow" | "checkinRunning" | "quotaUnavailable" | "quotaNeedsApiKey" | "quotaUnreachable" | "quotaUsed" | "quotaRemaining" | "quotaReset" | "quotaRefresh" | "quotaWindowInterval" | "quotaWindowWeekly" | "quotaCounts" | "composerLabel" | "invalidCapacity" | "thinkingAlwaysOn" | "thinkingToggle" | "thinkingForced" | "capText", string>;
374
+ 'en-US': Record<"account" | "storage" | "quotaRefreshing" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "signedOut" | "signedIn" | "expires" | "signIn" | "signOut" | "loading" | "connection" | "provider" | "connectionState" | "connected" | "untested" | "testConnection" | "enableProvider" | "selectAll" | "unselectAll" | "modelsHint" | "contextWindowReset" | "contextWindowResetAll" | "save" | "unknown" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "storageNotice" | "email" | "lastUsed" | "pageDesc" | "signingIn" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "contextWindowSection" | "contextWindowHint" | "contextWindowNoneEnabled" | "saving" | "quotaSection" | "loginFailed" | "cancelSignIn" | "testingConnection" | "testSuccess" | "testFailed" | "routeOwned" | "routeConflict" | "modelsSection" | "capImage" | "copied" | "openSignInPage" | "quotaUnlimited" | "region" | "regionGlobal" | "deviceCodeSection" | "deviceCodeHint" | "copyCode" | "userCode" | "codeExpires" | "waitingAuthorization" | "accountLabel" | "regionCn" | "storageNative" | "storageDpapi" | "storageFile" | "storagePath" | "expiresAt" | "expiresRemaining" | "expiresExpired" | "expiresHint" | "codeMinutes" | "loginExpired" | "loginDenied" | "logoutOwnedByApp" | "testSuccessModel" | "modelsUnavailable" | "dailyCheckin" | "checkinHint" | "checkinAuto" | "checkinToday" | "checkinSkipped" | "checkinFailed" | "checkinStreak" | "checkinClaimed" | "checkinLastRun" | "checkinNever" | "checkinNow" | "checkinRunning" | "quotaUnavailable" | "quotaNeedsApiKey" | "quotaUnreachable" | "quotaUsed" | "quotaRemaining" | "quotaReset" | "quotaRefresh" | "quotaWindowInterval" | "quotaWindowWeekly" | "quotaCounts" | "composerLabel" | "invalidCapacity" | "thinkingAlwaysOn" | "thinkingToggle" | "thinkingForced" | "capText", string>;
375
+ };
376
+ export type MinimaxCodeLocaleKey = keyof typeof zh;
377
+ //# sourceMappingURL=locales.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../../src/client/minimax-code/locales.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,qBAAqB,CAAA;AAEjD,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0GL,CAAA;AAEV,eAAO,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,OAAO,EAAE,EAAE,MAAM,CAuG9C,CAAA;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKxB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,EAAE,CAAA"}
@@ -0,0 +1,12 @@
1
+ export declare const STYLE_ID = "dsh-minimax-code-settings-style";
2
+ /**
3
+ * MiniMax Code-only additions to the shared settings design system.
4
+ *
5
+ * The base control styles (.dsha-page, .dsha-group, .dsha-row, .dsha-models,
6
+ * the device-code box, the meter, the composer badge, ...) come from the
7
+ * stylesheet the sibling routes install, in the same order the client installs
8
+ * them, so this file declares only what stays unique to this card: the mono
9
+ * credential path and the model-name list.
10
+ */
11
+ export declare function installMinimaxCodeStyles(): void;
12
+ //# sourceMappingURL=styles.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/client/minimax-code/styles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,oCAAoC,CAAA;AAEzD;;;;;;;;GAQG;AACH,wBAAgB,wBAAwB,IAAI,IAAI,CAW/C"}
@@ -1 +1 @@
1
- {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/client/styles.ts"],"names":[],"mappings":"AA+GA;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,aAAa,IAAI,MAAM,IAAI,CAa1C"}
1
+ {"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../src/client/styles.ts"],"names":[],"mappings":"AAqIA;;;;;;;;;;;;;;;;;;GAkBG;AACH,wBAAgB,aAAa,IAAI,MAAM,IAAI,CAa1C"}
@@ -16,6 +16,7 @@ export declare const TOKEN_REFRESH_MARGIN_MS = 60000;
16
16
  export declare const ROUTE_PREFIX: "/api/dsh-chatgpt-subscription";
17
17
  export declare const PLUGIN_VERSION: "0.1.0-alpha.0";
18
18
  export declare const CODEX_CHATGPT_PROVIDER_ID: "codex-chatgpt";
19
+ export { MINIMAX_CODE_PROVIDER_ID, MINIMAX_CODE_ROUTE_PREFIX } from './shared/minimax-code-contracts.ts';
19
20
  export declare const CODEX_API_BASE: "https://chatgpt.com/backend-api/codex";
20
21
  export declare const CODEX_RESPONSES_URL: "https://chatgpt.com/backend-api/codex/responses";
21
22
  export declare const CODEX_IMAGE_GENERATION_URL: "https://chatgpt.com/backend-api/codex/images/generations";
@@ -1 +1 @@
1
- {"version":3,"file":"compat.d.ts","sourceRoot":"","sources":["../../src/compat.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAG,yBAAkC,CAAA;AACtE,eAAO,MAAM,uBAAuB,EAAG,8BAAuC,CAAA;AAC9E,eAAO,MAAM,mBAAmB,EAAG,WAAoB,CAAA;AACvD,eAAO,MAAM,mBAAmB,EAAG,IAAa,CAAA;AAChD,eAAO,MAAM,mBAAmB,EAAG,gBAAyB,CAAA;AAC5D,eAAO,MAAM,kBAAkB,uCAAwF,CAAA;AACvH,eAAO,MAAM,WAAW,EAAG,qCAA8C,CAAA;AACzE,eAAO,MAAM,gBAAgB,EAAG,UAAmB,CAAA;AACnD,eAAO,MAAM,sBAAsB,QAAa,CAAA;AAChD,eAAO,MAAM,uBAAuB,QAAS,CAAA;AAC7C,eAAO,MAAM,YAAY,EAAG,+BAAwC,CAAA;AACpE,eAAO,MAAM,cAAc,EAAG,eAAwB,CAAA;AACtD,eAAO,MAAM,yBAAyB,EAAG,eAAwB,CAAA;AAEjE,eAAO,MAAM,cAAc,EAAG,uCAAgD,CAAA;AAC9E,eAAO,MAAM,mBAAmB,mDAAyC,CAAA;AACzE,eAAO,MAAM,0BAA0B,4DAAkD,CAAA;AACzF,eAAO,MAAM,gBAAgB,sDAA4C,CAAA;AACzE,eAAO,MAAM,eAAe,EAAG,4CAAqD,CAAA;AACpF,eAAO,MAAM,uBAAuB,EAAG,+DAAwE,CAAA;AAC/G,eAAO,MAAM,+BAA+B,yEAAgD,CAAA;AAC5F,eAAO,MAAM,gBAAgB,EAAG,UAAmB,CAAA;AACnD,eAAO,MAAM,yBAAyB,EAAG,IAAa,CAAA;AACtD,eAAO,MAAM,qBAAqB,EAAG,sBAA+B,CAAA;AACpE,eAAO,MAAM,iBAAiB,EAAG,aAAsB,CAAA;AACvD,eAAO,MAAM,wBAAwB,EAAG,oBAA6B,CAAA;AACrE,eAAO,MAAM,uBAAuB,EAAG,oBAA6B,CAAA;AACpE,eAAO,MAAM,cAAc,QAAS,CAAA;AACpC,eAAO,MAAM,8BAA8B,QAAS,CAAA;AAEpD,eAAO,MAAM,mBAAmB,2CAAqD,CAAA;AACrF,eAAO,MAAM,eAAe,uCAAiD,CAAA"}
1
+ {"version":3,"file":"compat.d.ts","sourceRoot":"","sources":["../../src/compat.ts"],"names":[],"mappings":"AAAA;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,EAAG,yBAAkC,CAAA;AACtE,eAAO,MAAM,uBAAuB,EAAG,8BAAuC,CAAA;AAC9E,eAAO,MAAM,mBAAmB,EAAG,WAAoB,CAAA;AACvD,eAAO,MAAM,mBAAmB,EAAG,IAAa,CAAA;AAChD,eAAO,MAAM,mBAAmB,EAAG,gBAAyB,CAAA;AAC5D,eAAO,MAAM,kBAAkB,uCAAwF,CAAA;AACvH,eAAO,MAAM,WAAW,EAAG,qCAA8C,CAAA;AACzE,eAAO,MAAM,gBAAgB,EAAG,UAAmB,CAAA;AACnD,eAAO,MAAM,sBAAsB,QAAa,CAAA;AAChD,eAAO,MAAM,uBAAuB,QAAS,CAAA;AAC7C,eAAO,MAAM,YAAY,EAAG,+BAAwC,CAAA;AACpE,eAAO,MAAM,cAAc,EAAG,eAAwB,CAAA;AACtD,eAAO,MAAM,yBAAyB,EAAG,eAAwB,CAAA;AAajE,OAAO,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,MAAM,oCAAoC,CAAA;AAExG,eAAO,MAAM,cAAc,EAAG,uCAAgD,CAAA;AAC9E,eAAO,MAAM,mBAAmB,mDAAyC,CAAA;AACzE,eAAO,MAAM,0BAA0B,4DAAkD,CAAA;AACzF,eAAO,MAAM,gBAAgB,sDAA4C,CAAA;AACzE,eAAO,MAAM,eAAe,EAAG,4CAAqD,CAAA;AACpF,eAAO,MAAM,uBAAuB,EAAG,+DAAwE,CAAA;AAC/G,eAAO,MAAM,+BAA+B,yEAAgD,CAAA;AAC5F,eAAO,MAAM,gBAAgB,EAAG,UAAmB,CAAA;AACnD,eAAO,MAAM,yBAAyB,EAAG,IAAa,CAAA;AACtD,eAAO,MAAM,qBAAqB,EAAG,sBAA+B,CAAA;AACpE,eAAO,MAAM,iBAAiB,EAAG,aAAsB,CAAA;AACvD,eAAO,MAAM,wBAAwB,EAAG,oBAA6B,CAAA;AACrE,eAAO,MAAM,uBAAuB,EAAG,oBAA6B,CAAA;AACpE,eAAO,MAAM,cAAc,QAAS,CAAA;AACpC,eAAO,MAAM,8BAA8B,QAAS,CAAA;AAEpD,eAAO,MAAM,mBAAmB,2CAAqD,CAAA;AACrF,eAAO,MAAM,eAAe,uCAAiD,CAAA"}