@eddyskywalker/dsh-chatgpt-subscription 0.8.4 → 0.9.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.
- package/CHANGELOG.md +45 -0
- package/README.md +93 -38
- package/lib/client.js +2126 -1693
- package/lib/client.js.map +1 -1
- package/lib/index.js +7597 -2781
- package/lib/types/client/claude/ClaudeComposerQuota.d.ts +33 -0
- package/lib/types/client/claude/ClaudeComposerQuota.d.ts.map +1 -0
- package/lib/types/client/{zhipu/ZhipuSection.d.ts → claude/ClaudeSection.d.ts} +2 -2
- package/lib/types/client/claude/ClaudeSection.d.ts.map +1 -0
- package/lib/types/client/claude/locales.d.ts +444 -0
- package/lib/types/client/claude/locales.d.ts.map +1 -0
- package/lib/types/client/claude/styles.d.ts +15 -0
- package/lib/types/client/claude/styles.d.ts.map +1 -0
- package/lib/types/client/index.d.ts +1 -1
- package/lib/types/client/index.d.ts.map +1 -1
- package/lib/types/host/claude/__probe-assert.d.ts +2 -0
- package/lib/types/host/claude/__probe-assert.d.ts.map +1 -0
- package/lib/types/host/claude/account-pool.d.ts +580 -0
- package/lib/types/host/claude/account-pool.d.ts.map +1 -0
- package/lib/types/host/claude/adapter.d.ts +267 -0
- package/lib/types/host/claude/adapter.d.ts.map +1 -0
- package/lib/types/host/claude/adopt.d.ts +292 -0
- package/lib/types/host/claude/adopt.d.ts.map +1 -0
- package/lib/types/host/claude/client.d.ts +513 -0
- package/lib/types/host/claude/client.d.ts.map +1 -0
- package/lib/types/host/claude/mapper.d.ts +510 -0
- package/lib/types/host/claude/mapper.d.ts.map +1 -0
- package/lib/types/host/claude/model-catalog.d.ts +365 -0
- package/lib/types/host/claude/model-catalog.d.ts.map +1 -0
- package/lib/types/host/claude/oauth.d.ts +393 -0
- package/lib/types/host/claude/oauth.d.ts.map +1 -0
- package/lib/types/host/claude/routes.d.ts +128 -0
- package/lib/types/host/claude/routes.d.ts.map +1 -0
- package/lib/types/host/claude/token-store.d.ts +312 -0
- package/lib/types/host/claude/token-store.d.ts.map +1 -0
- package/lib/types/host/claude/types.d.ts +237 -0
- package/lib/types/host/claude/types.d.ts.map +1 -0
- package/lib/types/index.d.ts +10 -7
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/shared/__probe-claude-import.d.ts +2 -0
- package/lib/types/shared/__probe-claude-import.d.ts.map +1 -0
- package/lib/types/shared/claude-contracts.d.ts +337 -0
- package/lib/types/shared/claude-contracts.d.ts.map +1 -0
- package/package.json +1 -1
- package/lib/types/client/zhipu/ZhipuComposerQuota.d.ts +0 -26
- package/lib/types/client/zhipu/ZhipuComposerQuota.d.ts.map +0 -1
- package/lib/types/client/zhipu/ZhipuSection.d.ts.map +0 -1
- package/lib/types/client/zhipu/locales.d.ts +0 -275
- package/lib/types/client/zhipu/locales.d.ts.map +0 -1
- package/lib/types/client/zhipu/styles.d.ts +0 -12
- package/lib/types/client/zhipu/styles.d.ts.map +0 -1
- package/lib/types/host/zhipu/account-pool.d.ts +0 -43
- package/lib/types/host/zhipu/account-pool.d.ts.map +0 -1
- package/lib/types/host/zhipu/adapter.d.ts +0 -93
- package/lib/types/host/zhipu/adapter.d.ts.map +0 -1
- package/lib/types/host/zhipu/client.d.ts +0 -153
- package/lib/types/host/zhipu/client.d.ts.map +0 -1
- package/lib/types/host/zhipu/mapper.d.ts +0 -111
- package/lib/types/host/zhipu/mapper.d.ts.map +0 -1
- package/lib/types/host/zhipu/model-catalog.d.ts +0 -73
- package/lib/types/host/zhipu/model-catalog.d.ts.map +0 -1
- package/lib/types/host/zhipu/routes.d.ts +0 -33
- package/lib/types/host/zhipu/routes.d.ts.map +0 -1
- package/lib/types/host/zhipu/token-store.d.ts +0 -112
- package/lib/types/host/zhipu/token-store.d.ts.map +0 -1
- package/lib/types/host/zhipu/types.d.ts +0 -125
- package/lib/types/host/zhipu/types.d.ts.map +0 -1
- package/lib/types/shared/zhipu-contracts.d.ts +0 -164
- package/lib/types/shared/zhipu-contracts.d.ts.map +0 -1
|
@@ -0,0 +1,33 @@
|
|
|
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 { ClaudeWebStatus } from '../../shared/claude-contracts.ts';
|
|
4
|
+
import type { SnapshotStore } from '../store.ts';
|
|
5
|
+
import { NS_CLAUDE } from './locales.ts';
|
|
6
|
+
type Props = PropsRuntime<'conversation.input.right'> & PropsLocale<typeof NS_CLAUDE> & {
|
|
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 most meaningful number for the badge.
|
|
17
|
+
*
|
|
18
|
+
* A subscription is bounded by several windows at once — a 5-hour one and a
|
|
19
|
+
* weekly one, and sometimes a per-model weekly one as well. They are not
|
|
20
|
+
* interchangeable: the short window can be spent while the long one has room and
|
|
21
|
+
* the reverse, so the TIGHTEST *remaining* percentage is what the badge shows
|
|
22
|
+
* and its own label names the tooltip. Choosing "the shortest window" instead
|
|
23
|
+
* would be a guess about which one runs out first, and the payload already
|
|
24
|
+
* answers that.
|
|
25
|
+
*
|
|
26
|
+
* NOTE ON DIRECTION: the wire reports `usedPercent`, which is PERCENT USED, so
|
|
27
|
+
* remaining is 100 - used. A window at 0% used is the normal empty state and
|
|
28
|
+
* grades as 'normal', not as an error.
|
|
29
|
+
*/
|
|
30
|
+
export declare function selectBadgeFacts(status: ClaudeWebStatus | null): BadgeFacts | null;
|
|
31
|
+
export declare function ClaudeComposerQuota({ directory, loadModelDirectory }: Props): React.JSX.Element | null;
|
|
32
|
+
export {};
|
|
33
|
+
//# sourceMappingURL=ClaudeComposerQuota.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClaudeComposerQuota.d.ts","sourceRoot":"","sources":["../../../../src/client/claude/ClaudeComposerQuota.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,eAAe,EAAE,MAAM,kCAAkC,CAAA;AACvE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAA;AAmBxC,KAAK,KAAK,GAAG,YAAY,CAAC,0BAA0B,CAAC,GACnD,WAAW,CAAC,OAAO,SAAS,CAAC,GAAG;IAC9B,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;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,eAAe,GAAG,IAAI,GAAG,UAAU,GAAG,IAAI,CA2BlF;AAED,wBAAgB,mBAAmB,CAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,CAkEtG"}
|
|
@@ -6,6 +6,6 @@ interface Props {
|
|
|
6
6
|
/** Parse "1M", "512K", "200000" into a positive integer token count. */
|
|
7
7
|
export declare function parsePositiveCapacity(value: string): number | null;
|
|
8
8
|
export declare function formatCapacity(value: number): string;
|
|
9
|
-
export declare function
|
|
9
|
+
export declare function ClaudeSection({ onModelChange, loadModelDirectory }: Props): React.ReactElement;
|
|
10
10
|
export {};
|
|
11
|
-
//# sourceMappingURL=
|
|
11
|
+
//# sourceMappingURL=ClaudeSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClaudeSection.d.ts","sourceRoot":"","sources":["../../../../src/client/claude/ClaudeSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAA;AA2BvE,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC;AAoBD,wEAAwE;AACxE,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAOlE;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIpD;AA+ED,wBAAgB,aAAa,CAAC,EAAE,aAAa,EAAE,kBAAkB,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CA+4B9F"}
|
|
@@ -0,0 +1,444 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Locale namespace of the Claude subscription tab.
|
|
3
|
+
*
|
|
4
|
+
* Its own namespace rather than the hub's, so a missing string surfaces as this
|
|
5
|
+
* dictionary's key rather than as a wrong sentence borrowed from another
|
|
6
|
+
* provider — the same reason every sibling line has one.
|
|
7
|
+
*/
|
|
8
|
+
export declare const NS_CLAUDE = "dsh-claude";
|
|
9
|
+
export declare const zh: {
|
|
10
|
+
readonly title: "Claude(订阅)";
|
|
11
|
+
readonly pageDesc: "登录 Claude Pro/Max 订阅,管理模型、思考档位、上下文窗口与额度。";
|
|
12
|
+
readonly account: "账号";
|
|
13
|
+
readonly signedIn: "已登录";
|
|
14
|
+
readonly signedOut: "未登录";
|
|
15
|
+
readonly email: "邮箱";
|
|
16
|
+
readonly plan: "套餐";
|
|
17
|
+
readonly planUnknown: "—";
|
|
18
|
+
readonly subscriptionType: "订阅类型";
|
|
19
|
+
readonly source: "来源";
|
|
20
|
+
readonly sourceManaged: "本插件登录";
|
|
21
|
+
readonly sourceClaudeCode: "本机 Claude Code";
|
|
22
|
+
readonly adoptedBadge: "导入的快照";
|
|
23
|
+
readonly snapshotPath: "来源文件";
|
|
24
|
+
readonly storage: "凭据存储";
|
|
25
|
+
readonly storageNotice: "OAuth 凭据由 Host 保存在本地安全存储 ($DSH_HOME/storages/claude-credentials.json),不会进入浏览器。访问令牌会自动刷新。";
|
|
26
|
+
readonly signIn: "登录 Claude 账号";
|
|
27
|
+
readonly signInSection: "登录授权";
|
|
28
|
+
readonly signInAgain: "重新登录";
|
|
29
|
+
readonly signingIn: "正在发起登录...";
|
|
30
|
+
readonly cancelSignIn: "取消登录";
|
|
31
|
+
readonly openAuthorizeUrl: "打开授权页面";
|
|
32
|
+
readonly authorizeUrl: "授权链接";
|
|
33
|
+
readonly redirectUri: "回调地址";
|
|
34
|
+
readonly loginModeManual: "当前是手动模式:浏览器回调不可用,授权完成后把页面上的 code 粘贴到下方输入框。";
|
|
35
|
+
readonly loginModeLoopback: "当前是本地回环模式:浏览器授权完成后会自动回到本机回调地址。";
|
|
36
|
+
readonly loginFallbackReason: "本地回环模式不可用,已降级为手动模式:{detail}";
|
|
37
|
+
readonly loginWaiting: "等待浏览器中的授权完成...";
|
|
38
|
+
readonly loginExchanging: "正在交换令牌...";
|
|
39
|
+
readonly loginComplete: "登录完成";
|
|
40
|
+
readonly loginFailed: "登录失败";
|
|
41
|
+
readonly manualPasteSection: "手动粘贴授权码";
|
|
42
|
+
readonly manualPasteHint: "把浏览器地址栏里的 code(或整段回调 URL)粘贴到这里完成登录。手动模式下没有浏览器回调,这里是唯一的入口。";
|
|
43
|
+
readonly manualPastePlaceholder: "code#state 或完整的回调 URL";
|
|
44
|
+
readonly manualPasteSubmit: "提交授权码";
|
|
45
|
+
readonly manualPasteSubmitting: "提交中...";
|
|
46
|
+
readonly importClaudeCode: "导入本机 Claude Code 登录态";
|
|
47
|
+
readonly importing: "导入中...";
|
|
48
|
+
readonly stopImporting: "停止导入";
|
|
49
|
+
readonly importHint: "读取本机 Claude Code 的登录凭据,作为只读快照加入账号池。不会修改、移动或删除 Claude Code 自己的文件,停止导入只是让本插件忘记这份快照。";
|
|
50
|
+
readonly importUnavailable: "未找到可导入的本机 Claude Code 登录态。";
|
|
51
|
+
readonly importSearched: "查找位置:{paths}";
|
|
52
|
+
readonly connection: "连接";
|
|
53
|
+
readonly provider: "Provider";
|
|
54
|
+
readonly providerValue: "Anthropic Claude 订阅 · claude-subscription";
|
|
55
|
+
readonly enableProvider: "启用此供应商";
|
|
56
|
+
readonly connectionState: "连接状态";
|
|
57
|
+
readonly connected: "已连接";
|
|
58
|
+
readonly untested: "未测试";
|
|
59
|
+
readonly testConnection: "测试连接";
|
|
60
|
+
readonly testingConnection: "测试中...";
|
|
61
|
+
readonly testSuccess: "连接正常";
|
|
62
|
+
readonly testLatency: "往返 {ms} ms";
|
|
63
|
+
readonly testFailed: "连接失败:{detail}";
|
|
64
|
+
readonly testRetryable: "可重试";
|
|
65
|
+
readonly testNotRetryable: "不可重试";
|
|
66
|
+
readonly routeOwned: "模型路由由本插件提供";
|
|
67
|
+
readonly routeConflict: "模型路由已被其他 Provider 占用:{detail}。请在 DSH 设置中移除重复的 Provider 配置后重试。";
|
|
68
|
+
readonly modelsSection: "模型";
|
|
69
|
+
readonly modelsHint: "勾选后模型才会出现在对话页的模型选择列表中。";
|
|
70
|
+
readonly refreshCatalog: "刷新模型目录";
|
|
71
|
+
readonly refreshingCatalog: "刷新中...";
|
|
72
|
+
readonly selectAll: "全选";
|
|
73
|
+
readonly unselectAll: "全不选";
|
|
74
|
+
readonly capImage: "图片";
|
|
75
|
+
readonly capNoImage: "仅文本";
|
|
76
|
+
readonly capThinkingOff: "可关闭思考";
|
|
77
|
+
readonly thinkingModeMidConvo: "多轮思考";
|
|
78
|
+
readonly thinkingModeAdaptive: "自适应思考";
|
|
79
|
+
readonly thinkingModeBudget: "预算思考";
|
|
80
|
+
readonly thinkingModeNone: "无思考";
|
|
81
|
+
readonly enhanced: "思考设置";
|
|
82
|
+
readonly defaultReasoningEffort: "默认思考档位";
|
|
83
|
+
readonly defaultReasoningEffortHint: "下拉列出的是目录中出现过的全部档位(含 xhigh);每个模型真正支持的档位见下方列表,Host 按模型自身的阶梯发送。";
|
|
84
|
+
readonly defaultEffortAuto: "使用模型默认值";
|
|
85
|
+
readonly effortLow: "低 (low)";
|
|
86
|
+
readonly effortMedium: "中 (medium)";
|
|
87
|
+
readonly effortHigh: "高 (high)";
|
|
88
|
+
readonly effortXHigh: "极高 (xhigh)";
|
|
89
|
+
readonly effortMax: "最高 (max)";
|
|
90
|
+
readonly modelLadders: "各模型支持的档位";
|
|
91
|
+
readonly modelLadderNone: "该模型不接受思考档位";
|
|
92
|
+
readonly contextWindowSection: "模型上下文窗口";
|
|
93
|
+
readonly contextWindowHint: "默认取模型目录的上下文长度,保存过的覆盖值优先。恢复默认会让 Host 删掉这条覆盖值,重新回到目录值。";
|
|
94
|
+
readonly contextWindowReset: "恢复默认";
|
|
95
|
+
readonly contextWindowResetAll: "全部恢复默认";
|
|
96
|
+
readonly contextWindowResetAllConfirm: "确定把已改过的模型上下文窗口全部恢复为默认值吗?";
|
|
97
|
+
readonly contextWindowNoneEnabled: "还没有勾选任何模型。在上方勾选后,这里会出现该模型的上下文窗口设置。";
|
|
98
|
+
readonly contextWindowInvalid: "上下文长度无效:{value}";
|
|
99
|
+
readonly save: "保存";
|
|
100
|
+
readonly saving: "保存中...";
|
|
101
|
+
readonly tokens: "tokens";
|
|
102
|
+
readonly quotaSection: "用量与额度";
|
|
103
|
+
readonly quotaDesc: "数据来自 Claude 用量接口与响应头;页面可见时最多每 60 秒刷新一次。utilization 是「已用百分比」,所以 0% 已用是正常的空用量状态。";
|
|
104
|
+
readonly refreshQuota: "刷新用量";
|
|
105
|
+
readonly refreshingQuota: "刷新中...";
|
|
106
|
+
readonly quotaRefreshing: "Host 正在后台刷新额度,稍后会自动更新。";
|
|
107
|
+
readonly quotaEmpty: "暂无配额数据,点击「刷新用量」重试。";
|
|
108
|
+
readonly quotaSignedOut: "未登录,无法读取用量。";
|
|
109
|
+
readonly quotaUnknown: "—";
|
|
110
|
+
readonly quotaUnknownHint: "Host 没有给出这个窗口的数值,这里不显示为 0。";
|
|
111
|
+
readonly usedLabel: "已用";
|
|
112
|
+
readonly remainingLabel: "剩余";
|
|
113
|
+
readonly left: "可用";
|
|
114
|
+
readonly resetAt: "重置:{time}";
|
|
115
|
+
readonly resetUnknown: "重置时间未知";
|
|
116
|
+
readonly updatedAt: "更新时间:{time}";
|
|
117
|
+
readonly observedAt: "最近观察:{time}";
|
|
118
|
+
readonly quotaError: "额度读取失败";
|
|
119
|
+
readonly extraUsage: "额外用量";
|
|
120
|
+
readonly extraUsageEnabled: "已开启";
|
|
121
|
+
readonly extraUsageDisabled: "未开启";
|
|
122
|
+
readonly extraUsageLimit: "月度上限";
|
|
123
|
+
readonly sourceUsage: "来源:用量接口";
|
|
124
|
+
readonly sourceHeaders: "来源:响应头";
|
|
125
|
+
readonly quotaStatus: "限流状态";
|
|
126
|
+
readonly quotaRepresentative: "代表性窗口";
|
|
127
|
+
readonly loading: "加载中...";
|
|
128
|
+
readonly now: "即将重置";
|
|
129
|
+
readonly copy: "复制";
|
|
130
|
+
readonly copied: "已复制";
|
|
131
|
+
readonly accountPool: string;
|
|
132
|
+
readonly addAccount: string;
|
|
133
|
+
readonly accountCount: string;
|
|
134
|
+
readonly primaryAccount: string;
|
|
135
|
+
readonly activeAccount: string;
|
|
136
|
+
readonly setPrimary: string;
|
|
137
|
+
readonly deleteAccount: string;
|
|
138
|
+
readonly cooling: string;
|
|
139
|
+
readonly cooldownLeft: string;
|
|
140
|
+
readonly clearCooldown: string;
|
|
141
|
+
readonly needsRelogin: string;
|
|
142
|
+
readonly relogin: string;
|
|
143
|
+
readonly rotationStrategy: string;
|
|
144
|
+
readonly strategySequential: string;
|
|
145
|
+
readonly strategyRoundRobin: string;
|
|
146
|
+
readonly strategySticky: string;
|
|
147
|
+
readonly noAccounts: string;
|
|
148
|
+
readonly expires: string;
|
|
149
|
+
readonly lastUsed: string;
|
|
150
|
+
readonly accountId: string;
|
|
151
|
+
};
|
|
152
|
+
export declare const en: Record<keyof typeof zh, string>;
|
|
153
|
+
export declare const dictionaries: {
|
|
154
|
+
zh: {
|
|
155
|
+
readonly title: "Claude(订阅)";
|
|
156
|
+
readonly pageDesc: "登录 Claude Pro/Max 订阅,管理模型、思考档位、上下文窗口与额度。";
|
|
157
|
+
readonly account: "账号";
|
|
158
|
+
readonly signedIn: "已登录";
|
|
159
|
+
readonly signedOut: "未登录";
|
|
160
|
+
readonly email: "邮箱";
|
|
161
|
+
readonly plan: "套餐";
|
|
162
|
+
readonly planUnknown: "—";
|
|
163
|
+
readonly subscriptionType: "订阅类型";
|
|
164
|
+
readonly source: "来源";
|
|
165
|
+
readonly sourceManaged: "本插件登录";
|
|
166
|
+
readonly sourceClaudeCode: "本机 Claude Code";
|
|
167
|
+
readonly adoptedBadge: "导入的快照";
|
|
168
|
+
readonly snapshotPath: "来源文件";
|
|
169
|
+
readonly storage: "凭据存储";
|
|
170
|
+
readonly storageNotice: "OAuth 凭据由 Host 保存在本地安全存储 ($DSH_HOME/storages/claude-credentials.json),不会进入浏览器。访问令牌会自动刷新。";
|
|
171
|
+
readonly signIn: "登录 Claude 账号";
|
|
172
|
+
readonly signInSection: "登录授权";
|
|
173
|
+
readonly signInAgain: "重新登录";
|
|
174
|
+
readonly signingIn: "正在发起登录...";
|
|
175
|
+
readonly cancelSignIn: "取消登录";
|
|
176
|
+
readonly openAuthorizeUrl: "打开授权页面";
|
|
177
|
+
readonly authorizeUrl: "授权链接";
|
|
178
|
+
readonly redirectUri: "回调地址";
|
|
179
|
+
readonly loginModeManual: "当前是手动模式:浏览器回调不可用,授权完成后把页面上的 code 粘贴到下方输入框。";
|
|
180
|
+
readonly loginModeLoopback: "当前是本地回环模式:浏览器授权完成后会自动回到本机回调地址。";
|
|
181
|
+
readonly loginFallbackReason: "本地回环模式不可用,已降级为手动模式:{detail}";
|
|
182
|
+
readonly loginWaiting: "等待浏览器中的授权完成...";
|
|
183
|
+
readonly loginExchanging: "正在交换令牌...";
|
|
184
|
+
readonly loginComplete: "登录完成";
|
|
185
|
+
readonly loginFailed: "登录失败";
|
|
186
|
+
readonly manualPasteSection: "手动粘贴授权码";
|
|
187
|
+
readonly manualPasteHint: "把浏览器地址栏里的 code(或整段回调 URL)粘贴到这里完成登录。手动模式下没有浏览器回调,这里是唯一的入口。";
|
|
188
|
+
readonly manualPastePlaceholder: "code#state 或完整的回调 URL";
|
|
189
|
+
readonly manualPasteSubmit: "提交授权码";
|
|
190
|
+
readonly manualPasteSubmitting: "提交中...";
|
|
191
|
+
readonly importClaudeCode: "导入本机 Claude Code 登录态";
|
|
192
|
+
readonly importing: "导入中...";
|
|
193
|
+
readonly stopImporting: "停止导入";
|
|
194
|
+
readonly importHint: "读取本机 Claude Code 的登录凭据,作为只读快照加入账号池。不会修改、移动或删除 Claude Code 自己的文件,停止导入只是让本插件忘记这份快照。";
|
|
195
|
+
readonly importUnavailable: "未找到可导入的本机 Claude Code 登录态。";
|
|
196
|
+
readonly importSearched: "查找位置:{paths}";
|
|
197
|
+
readonly connection: "连接";
|
|
198
|
+
readonly provider: "Provider";
|
|
199
|
+
readonly providerValue: "Anthropic Claude 订阅 · claude-subscription";
|
|
200
|
+
readonly enableProvider: "启用此供应商";
|
|
201
|
+
readonly connectionState: "连接状态";
|
|
202
|
+
readonly connected: "已连接";
|
|
203
|
+
readonly untested: "未测试";
|
|
204
|
+
readonly testConnection: "测试连接";
|
|
205
|
+
readonly testingConnection: "测试中...";
|
|
206
|
+
readonly testSuccess: "连接正常";
|
|
207
|
+
readonly testLatency: "往返 {ms} ms";
|
|
208
|
+
readonly testFailed: "连接失败:{detail}";
|
|
209
|
+
readonly testRetryable: "可重试";
|
|
210
|
+
readonly testNotRetryable: "不可重试";
|
|
211
|
+
readonly routeOwned: "模型路由由本插件提供";
|
|
212
|
+
readonly routeConflict: "模型路由已被其他 Provider 占用:{detail}。请在 DSH 设置中移除重复的 Provider 配置后重试。";
|
|
213
|
+
readonly modelsSection: "模型";
|
|
214
|
+
readonly modelsHint: "勾选后模型才会出现在对话页的模型选择列表中。";
|
|
215
|
+
readonly refreshCatalog: "刷新模型目录";
|
|
216
|
+
readonly refreshingCatalog: "刷新中...";
|
|
217
|
+
readonly selectAll: "全选";
|
|
218
|
+
readonly unselectAll: "全不选";
|
|
219
|
+
readonly capImage: "图片";
|
|
220
|
+
readonly capNoImage: "仅文本";
|
|
221
|
+
readonly capThinkingOff: "可关闭思考";
|
|
222
|
+
readonly thinkingModeMidConvo: "多轮思考";
|
|
223
|
+
readonly thinkingModeAdaptive: "自适应思考";
|
|
224
|
+
readonly thinkingModeBudget: "预算思考";
|
|
225
|
+
readonly thinkingModeNone: "无思考";
|
|
226
|
+
readonly enhanced: "思考设置";
|
|
227
|
+
readonly defaultReasoningEffort: "默认思考档位";
|
|
228
|
+
readonly defaultReasoningEffortHint: "下拉列出的是目录中出现过的全部档位(含 xhigh);每个模型真正支持的档位见下方列表,Host 按模型自身的阶梯发送。";
|
|
229
|
+
readonly defaultEffortAuto: "使用模型默认值";
|
|
230
|
+
readonly effortLow: "低 (low)";
|
|
231
|
+
readonly effortMedium: "中 (medium)";
|
|
232
|
+
readonly effortHigh: "高 (high)";
|
|
233
|
+
readonly effortXHigh: "极高 (xhigh)";
|
|
234
|
+
readonly effortMax: "最高 (max)";
|
|
235
|
+
readonly modelLadders: "各模型支持的档位";
|
|
236
|
+
readonly modelLadderNone: "该模型不接受思考档位";
|
|
237
|
+
readonly contextWindowSection: "模型上下文窗口";
|
|
238
|
+
readonly contextWindowHint: "默认取模型目录的上下文长度,保存过的覆盖值优先。恢复默认会让 Host 删掉这条覆盖值,重新回到目录值。";
|
|
239
|
+
readonly contextWindowReset: "恢复默认";
|
|
240
|
+
readonly contextWindowResetAll: "全部恢复默认";
|
|
241
|
+
readonly contextWindowResetAllConfirm: "确定把已改过的模型上下文窗口全部恢复为默认值吗?";
|
|
242
|
+
readonly contextWindowNoneEnabled: "还没有勾选任何模型。在上方勾选后,这里会出现该模型的上下文窗口设置。";
|
|
243
|
+
readonly contextWindowInvalid: "上下文长度无效:{value}";
|
|
244
|
+
readonly save: "保存";
|
|
245
|
+
readonly saving: "保存中...";
|
|
246
|
+
readonly tokens: "tokens";
|
|
247
|
+
readonly quotaSection: "用量与额度";
|
|
248
|
+
readonly quotaDesc: "数据来自 Claude 用量接口与响应头;页面可见时最多每 60 秒刷新一次。utilization 是「已用百分比」,所以 0% 已用是正常的空用量状态。";
|
|
249
|
+
readonly refreshQuota: "刷新用量";
|
|
250
|
+
readonly refreshingQuota: "刷新中...";
|
|
251
|
+
readonly quotaRefreshing: "Host 正在后台刷新额度,稍后会自动更新。";
|
|
252
|
+
readonly quotaEmpty: "暂无配额数据,点击「刷新用量」重试。";
|
|
253
|
+
readonly quotaSignedOut: "未登录,无法读取用量。";
|
|
254
|
+
readonly quotaUnknown: "—";
|
|
255
|
+
readonly quotaUnknownHint: "Host 没有给出这个窗口的数值,这里不显示为 0。";
|
|
256
|
+
readonly usedLabel: "已用";
|
|
257
|
+
readonly remainingLabel: "剩余";
|
|
258
|
+
readonly left: "可用";
|
|
259
|
+
readonly resetAt: "重置:{time}";
|
|
260
|
+
readonly resetUnknown: "重置时间未知";
|
|
261
|
+
readonly updatedAt: "更新时间:{time}";
|
|
262
|
+
readonly observedAt: "最近观察:{time}";
|
|
263
|
+
readonly quotaError: "额度读取失败";
|
|
264
|
+
readonly extraUsage: "额外用量";
|
|
265
|
+
readonly extraUsageEnabled: "已开启";
|
|
266
|
+
readonly extraUsageDisabled: "未开启";
|
|
267
|
+
readonly extraUsageLimit: "月度上限";
|
|
268
|
+
readonly sourceUsage: "来源:用量接口";
|
|
269
|
+
readonly sourceHeaders: "来源:响应头";
|
|
270
|
+
readonly quotaStatus: "限流状态";
|
|
271
|
+
readonly quotaRepresentative: "代表性窗口";
|
|
272
|
+
readonly loading: "加载中...";
|
|
273
|
+
readonly now: "即将重置";
|
|
274
|
+
readonly copy: "复制";
|
|
275
|
+
readonly copied: "已复制";
|
|
276
|
+
readonly accountPool: string;
|
|
277
|
+
readonly addAccount: string;
|
|
278
|
+
readonly accountCount: string;
|
|
279
|
+
readonly primaryAccount: string;
|
|
280
|
+
readonly activeAccount: string;
|
|
281
|
+
readonly setPrimary: string;
|
|
282
|
+
readonly deleteAccount: string;
|
|
283
|
+
readonly cooling: string;
|
|
284
|
+
readonly cooldownLeft: string;
|
|
285
|
+
readonly clearCooldown: string;
|
|
286
|
+
readonly needsRelogin: string;
|
|
287
|
+
readonly relogin: string;
|
|
288
|
+
readonly rotationStrategy: string;
|
|
289
|
+
readonly strategySequential: string;
|
|
290
|
+
readonly strategyRoundRobin: string;
|
|
291
|
+
readonly strategySticky: string;
|
|
292
|
+
readonly noAccounts: string;
|
|
293
|
+
readonly expires: string;
|
|
294
|
+
readonly lastUsed: string;
|
|
295
|
+
readonly accountId: string;
|
|
296
|
+
};
|
|
297
|
+
'zh-CN': {
|
|
298
|
+
readonly title: "Claude(订阅)";
|
|
299
|
+
readonly pageDesc: "登录 Claude Pro/Max 订阅,管理模型、思考档位、上下文窗口与额度。";
|
|
300
|
+
readonly account: "账号";
|
|
301
|
+
readonly signedIn: "已登录";
|
|
302
|
+
readonly signedOut: "未登录";
|
|
303
|
+
readonly email: "邮箱";
|
|
304
|
+
readonly plan: "套餐";
|
|
305
|
+
readonly planUnknown: "—";
|
|
306
|
+
readonly subscriptionType: "订阅类型";
|
|
307
|
+
readonly source: "来源";
|
|
308
|
+
readonly sourceManaged: "本插件登录";
|
|
309
|
+
readonly sourceClaudeCode: "本机 Claude Code";
|
|
310
|
+
readonly adoptedBadge: "导入的快照";
|
|
311
|
+
readonly snapshotPath: "来源文件";
|
|
312
|
+
readonly storage: "凭据存储";
|
|
313
|
+
readonly storageNotice: "OAuth 凭据由 Host 保存在本地安全存储 ($DSH_HOME/storages/claude-credentials.json),不会进入浏览器。访问令牌会自动刷新。";
|
|
314
|
+
readonly signIn: "登录 Claude 账号";
|
|
315
|
+
readonly signInSection: "登录授权";
|
|
316
|
+
readonly signInAgain: "重新登录";
|
|
317
|
+
readonly signingIn: "正在发起登录...";
|
|
318
|
+
readonly cancelSignIn: "取消登录";
|
|
319
|
+
readonly openAuthorizeUrl: "打开授权页面";
|
|
320
|
+
readonly authorizeUrl: "授权链接";
|
|
321
|
+
readonly redirectUri: "回调地址";
|
|
322
|
+
readonly loginModeManual: "当前是手动模式:浏览器回调不可用,授权完成后把页面上的 code 粘贴到下方输入框。";
|
|
323
|
+
readonly loginModeLoopback: "当前是本地回环模式:浏览器授权完成后会自动回到本机回调地址。";
|
|
324
|
+
readonly loginFallbackReason: "本地回环模式不可用,已降级为手动模式:{detail}";
|
|
325
|
+
readonly loginWaiting: "等待浏览器中的授权完成...";
|
|
326
|
+
readonly loginExchanging: "正在交换令牌...";
|
|
327
|
+
readonly loginComplete: "登录完成";
|
|
328
|
+
readonly loginFailed: "登录失败";
|
|
329
|
+
readonly manualPasteSection: "手动粘贴授权码";
|
|
330
|
+
readonly manualPasteHint: "把浏览器地址栏里的 code(或整段回调 URL)粘贴到这里完成登录。手动模式下没有浏览器回调,这里是唯一的入口。";
|
|
331
|
+
readonly manualPastePlaceholder: "code#state 或完整的回调 URL";
|
|
332
|
+
readonly manualPasteSubmit: "提交授权码";
|
|
333
|
+
readonly manualPasteSubmitting: "提交中...";
|
|
334
|
+
readonly importClaudeCode: "导入本机 Claude Code 登录态";
|
|
335
|
+
readonly importing: "导入中...";
|
|
336
|
+
readonly stopImporting: "停止导入";
|
|
337
|
+
readonly importHint: "读取本机 Claude Code 的登录凭据,作为只读快照加入账号池。不会修改、移动或删除 Claude Code 自己的文件,停止导入只是让本插件忘记这份快照。";
|
|
338
|
+
readonly importUnavailable: "未找到可导入的本机 Claude Code 登录态。";
|
|
339
|
+
readonly importSearched: "查找位置:{paths}";
|
|
340
|
+
readonly connection: "连接";
|
|
341
|
+
readonly provider: "Provider";
|
|
342
|
+
readonly providerValue: "Anthropic Claude 订阅 · claude-subscription";
|
|
343
|
+
readonly enableProvider: "启用此供应商";
|
|
344
|
+
readonly connectionState: "连接状态";
|
|
345
|
+
readonly connected: "已连接";
|
|
346
|
+
readonly untested: "未测试";
|
|
347
|
+
readonly testConnection: "测试连接";
|
|
348
|
+
readonly testingConnection: "测试中...";
|
|
349
|
+
readonly testSuccess: "连接正常";
|
|
350
|
+
readonly testLatency: "往返 {ms} ms";
|
|
351
|
+
readonly testFailed: "连接失败:{detail}";
|
|
352
|
+
readonly testRetryable: "可重试";
|
|
353
|
+
readonly testNotRetryable: "不可重试";
|
|
354
|
+
readonly routeOwned: "模型路由由本插件提供";
|
|
355
|
+
readonly routeConflict: "模型路由已被其他 Provider 占用:{detail}。请在 DSH 设置中移除重复的 Provider 配置后重试。";
|
|
356
|
+
readonly modelsSection: "模型";
|
|
357
|
+
readonly modelsHint: "勾选后模型才会出现在对话页的模型选择列表中。";
|
|
358
|
+
readonly refreshCatalog: "刷新模型目录";
|
|
359
|
+
readonly refreshingCatalog: "刷新中...";
|
|
360
|
+
readonly selectAll: "全选";
|
|
361
|
+
readonly unselectAll: "全不选";
|
|
362
|
+
readonly capImage: "图片";
|
|
363
|
+
readonly capNoImage: "仅文本";
|
|
364
|
+
readonly capThinkingOff: "可关闭思考";
|
|
365
|
+
readonly thinkingModeMidConvo: "多轮思考";
|
|
366
|
+
readonly thinkingModeAdaptive: "自适应思考";
|
|
367
|
+
readonly thinkingModeBudget: "预算思考";
|
|
368
|
+
readonly thinkingModeNone: "无思考";
|
|
369
|
+
readonly enhanced: "思考设置";
|
|
370
|
+
readonly defaultReasoningEffort: "默认思考档位";
|
|
371
|
+
readonly defaultReasoningEffortHint: "下拉列出的是目录中出现过的全部档位(含 xhigh);每个模型真正支持的档位见下方列表,Host 按模型自身的阶梯发送。";
|
|
372
|
+
readonly defaultEffortAuto: "使用模型默认值";
|
|
373
|
+
readonly effortLow: "低 (low)";
|
|
374
|
+
readonly effortMedium: "中 (medium)";
|
|
375
|
+
readonly effortHigh: "高 (high)";
|
|
376
|
+
readonly effortXHigh: "极高 (xhigh)";
|
|
377
|
+
readonly effortMax: "最高 (max)";
|
|
378
|
+
readonly modelLadders: "各模型支持的档位";
|
|
379
|
+
readonly modelLadderNone: "该模型不接受思考档位";
|
|
380
|
+
readonly contextWindowSection: "模型上下文窗口";
|
|
381
|
+
readonly contextWindowHint: "默认取模型目录的上下文长度,保存过的覆盖值优先。恢复默认会让 Host 删掉这条覆盖值,重新回到目录值。";
|
|
382
|
+
readonly contextWindowReset: "恢复默认";
|
|
383
|
+
readonly contextWindowResetAll: "全部恢复默认";
|
|
384
|
+
readonly contextWindowResetAllConfirm: "确定把已改过的模型上下文窗口全部恢复为默认值吗?";
|
|
385
|
+
readonly contextWindowNoneEnabled: "还没有勾选任何模型。在上方勾选后,这里会出现该模型的上下文窗口设置。";
|
|
386
|
+
readonly contextWindowInvalid: "上下文长度无效:{value}";
|
|
387
|
+
readonly save: "保存";
|
|
388
|
+
readonly saving: "保存中...";
|
|
389
|
+
readonly tokens: "tokens";
|
|
390
|
+
readonly quotaSection: "用量与额度";
|
|
391
|
+
readonly quotaDesc: "数据来自 Claude 用量接口与响应头;页面可见时最多每 60 秒刷新一次。utilization 是「已用百分比」,所以 0% 已用是正常的空用量状态。";
|
|
392
|
+
readonly refreshQuota: "刷新用量";
|
|
393
|
+
readonly refreshingQuota: "刷新中...";
|
|
394
|
+
readonly quotaRefreshing: "Host 正在后台刷新额度,稍后会自动更新。";
|
|
395
|
+
readonly quotaEmpty: "暂无配额数据,点击「刷新用量」重试。";
|
|
396
|
+
readonly quotaSignedOut: "未登录,无法读取用量。";
|
|
397
|
+
readonly quotaUnknown: "—";
|
|
398
|
+
readonly quotaUnknownHint: "Host 没有给出这个窗口的数值,这里不显示为 0。";
|
|
399
|
+
readonly usedLabel: "已用";
|
|
400
|
+
readonly remainingLabel: "剩余";
|
|
401
|
+
readonly left: "可用";
|
|
402
|
+
readonly resetAt: "重置:{time}";
|
|
403
|
+
readonly resetUnknown: "重置时间未知";
|
|
404
|
+
readonly updatedAt: "更新时间:{time}";
|
|
405
|
+
readonly observedAt: "最近观察:{time}";
|
|
406
|
+
readonly quotaError: "额度读取失败";
|
|
407
|
+
readonly extraUsage: "额外用量";
|
|
408
|
+
readonly extraUsageEnabled: "已开启";
|
|
409
|
+
readonly extraUsageDisabled: "未开启";
|
|
410
|
+
readonly extraUsageLimit: "月度上限";
|
|
411
|
+
readonly sourceUsage: "来源:用量接口";
|
|
412
|
+
readonly sourceHeaders: "来源:响应头";
|
|
413
|
+
readonly quotaStatus: "限流状态";
|
|
414
|
+
readonly quotaRepresentative: "代表性窗口";
|
|
415
|
+
readonly loading: "加载中...";
|
|
416
|
+
readonly now: "即将重置";
|
|
417
|
+
readonly copy: "复制";
|
|
418
|
+
readonly copied: "已复制";
|
|
419
|
+
readonly accountPool: string;
|
|
420
|
+
readonly addAccount: string;
|
|
421
|
+
readonly accountCount: string;
|
|
422
|
+
readonly primaryAccount: string;
|
|
423
|
+
readonly activeAccount: string;
|
|
424
|
+
readonly setPrimary: string;
|
|
425
|
+
readonly deleteAccount: string;
|
|
426
|
+
readonly cooling: string;
|
|
427
|
+
readonly cooldownLeft: string;
|
|
428
|
+
readonly clearCooldown: string;
|
|
429
|
+
readonly needsRelogin: string;
|
|
430
|
+
readonly relogin: string;
|
|
431
|
+
readonly rotationStrategy: string;
|
|
432
|
+
readonly strategySequential: string;
|
|
433
|
+
readonly strategyRoundRobin: string;
|
|
434
|
+
readonly strategySticky: string;
|
|
435
|
+
readonly noAccounts: string;
|
|
436
|
+
readonly expires: string;
|
|
437
|
+
readonly lastUsed: string;
|
|
438
|
+
readonly accountId: string;
|
|
439
|
+
};
|
|
440
|
+
en: Record<"tokens" | "title" | "pageDesc" | "account" | "signedIn" | "signedOut" | "email" | "plan" | "planUnknown" | "subscriptionType" | "source" | "sourceManaged" | "sourceClaudeCode" | "adoptedBadge" | "snapshotPath" | "storage" | "storageNotice" | "signIn" | "signInSection" | "signInAgain" | "signingIn" | "cancelSignIn" | "openAuthorizeUrl" | "authorizeUrl" | "redirectUri" | "loginModeManual" | "loginModeLoopback" | "loginFallbackReason" | "loginWaiting" | "loginExchanging" | "loginComplete" | "loginFailed" | "manualPasteSection" | "manualPasteHint" | "manualPastePlaceholder" | "manualPasteSubmit" | "manualPasteSubmitting" | "importClaudeCode" | "importing" | "stopImporting" | "importHint" | "importUnavailable" | "importSearched" | "connection" | "provider" | "providerValue" | "enableProvider" | "connectionState" | "connected" | "untested" | "testConnection" | "testingConnection" | "testSuccess" | "testLatency" | "testFailed" | "testRetryable" | "testNotRetryable" | "routeOwned" | "routeConflict" | "modelsSection" | "modelsHint" | "refreshCatalog" | "refreshingCatalog" | "selectAll" | "unselectAll" | "capImage" | "capNoImage" | "capThinkingOff" | "thinkingModeMidConvo" | "thinkingModeAdaptive" | "thinkingModeBudget" | "thinkingModeNone" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "effortLow" | "effortMedium" | "effortHigh" | "effortXHigh" | "effortMax" | "modelLadders" | "modelLadderNone" | "contextWindowSection" | "contextWindowHint" | "contextWindowReset" | "contextWindowResetAll" | "contextWindowResetAllConfirm" | "contextWindowNoneEnabled" | "contextWindowInvalid" | "save" | "saving" | "quotaSection" | "quotaDesc" | "refreshQuota" | "refreshingQuota" | "quotaRefreshing" | "quotaEmpty" | "quotaSignedOut" | "quotaUnknown" | "quotaUnknownHint" | "usedLabel" | "remainingLabel" | "left" | "resetAt" | "resetUnknown" | "updatedAt" | "observedAt" | "quotaError" | "extraUsage" | "extraUsageEnabled" | "extraUsageDisabled" | "extraUsageLimit" | "sourceUsage" | "sourceHeaders" | "quotaStatus" | "quotaRepresentative" | "loading" | "now" | "copy" | "copied" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "clearCooldown" | "needsRelogin" | "relogin" | "rotationStrategy" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "expires" | "lastUsed" | "accountId", string>;
|
|
441
|
+
'en-US': Record<"tokens" | "title" | "pageDesc" | "account" | "signedIn" | "signedOut" | "email" | "plan" | "planUnknown" | "subscriptionType" | "source" | "sourceManaged" | "sourceClaudeCode" | "adoptedBadge" | "snapshotPath" | "storage" | "storageNotice" | "signIn" | "signInSection" | "signInAgain" | "signingIn" | "cancelSignIn" | "openAuthorizeUrl" | "authorizeUrl" | "redirectUri" | "loginModeManual" | "loginModeLoopback" | "loginFallbackReason" | "loginWaiting" | "loginExchanging" | "loginComplete" | "loginFailed" | "manualPasteSection" | "manualPasteHint" | "manualPastePlaceholder" | "manualPasteSubmit" | "manualPasteSubmitting" | "importClaudeCode" | "importing" | "stopImporting" | "importHint" | "importUnavailable" | "importSearched" | "connection" | "provider" | "providerValue" | "enableProvider" | "connectionState" | "connected" | "untested" | "testConnection" | "testingConnection" | "testSuccess" | "testLatency" | "testFailed" | "testRetryable" | "testNotRetryable" | "routeOwned" | "routeConflict" | "modelsSection" | "modelsHint" | "refreshCatalog" | "refreshingCatalog" | "selectAll" | "unselectAll" | "capImage" | "capNoImage" | "capThinkingOff" | "thinkingModeMidConvo" | "thinkingModeAdaptive" | "thinkingModeBudget" | "thinkingModeNone" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "effortLow" | "effortMedium" | "effortHigh" | "effortXHigh" | "effortMax" | "modelLadders" | "modelLadderNone" | "contextWindowSection" | "contextWindowHint" | "contextWindowReset" | "contextWindowResetAll" | "contextWindowResetAllConfirm" | "contextWindowNoneEnabled" | "contextWindowInvalid" | "save" | "saving" | "quotaSection" | "quotaDesc" | "refreshQuota" | "refreshingQuota" | "quotaRefreshing" | "quotaEmpty" | "quotaSignedOut" | "quotaUnknown" | "quotaUnknownHint" | "usedLabel" | "remainingLabel" | "left" | "resetAt" | "resetUnknown" | "updatedAt" | "observedAt" | "quotaError" | "extraUsage" | "extraUsageEnabled" | "extraUsageDisabled" | "extraUsageLimit" | "sourceUsage" | "sourceHeaders" | "quotaStatus" | "quotaRepresentative" | "loading" | "now" | "copy" | "copied" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "clearCooldown" | "needsRelogin" | "relogin" | "rotationStrategy" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "expires" | "lastUsed" | "accountId", string>;
|
|
442
|
+
};
|
|
443
|
+
export type ClaudeLocaleKey = keyof typeof zh;
|
|
444
|
+
//# sourceMappingURL=locales.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../../src/client/claude/locales.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,eAAO,MAAM,SAAS,eAAe,CAAA;AAErC,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6IL,CAAA;AAEV,eAAO,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,OAAO,EAAE,EAAE,MAAM,CAoIrC,CAAA;AAEV,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKxB,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,EAAE,CAAA"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
export declare const STYLE_ID = "dsh-claude-settings-style";
|
|
2
|
+
/**
|
|
3
|
+
* Claude-only additions to the shared settings design system.
|
|
4
|
+
*
|
|
5
|
+
* The base control styles ('.dsha-page', '.dsha-group', '.dsha-models', the
|
|
6
|
+
* account card, the meters, the composer badge, …) come from the stylesheet the
|
|
7
|
+
* Kimi Code sibling installs, in the same order the client installs them, so
|
|
8
|
+
* this file declares only what stays unique to this card — the same rule the
|
|
9
|
+
* WorkBuddy and GLM cards follow.
|
|
10
|
+
*
|
|
11
|
+
* What stays unique here is the sign-in flow block and the borrowed-sign-in
|
|
12
|
+
* markers, neither of which a sibling line renders.
|
|
13
|
+
*/
|
|
14
|
+
export declare function installClaudeStyles(): void;
|
|
15
|
+
//# sourceMappingURL=styles.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/client/claude/styles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,8BAA8B,CAAA;AAEnD;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,IAAI,IAAI,CAgB1C"}
|
|
@@ -4,10 +4,10 @@ declare module '@deepseek-ai/dsh-client-ui-slots' {
|
|
|
4
4
|
interface LocaleNamespaceMap {
|
|
5
5
|
'dsh-chatgpt-subscription': LocaleKey;
|
|
6
6
|
'dsh-antigravity': any;
|
|
7
|
+
'dsh-claude': any;
|
|
7
8
|
'dsh-command-code': any;
|
|
8
9
|
'dsh-kimi-code': any;
|
|
9
10
|
'dsh-workbuddy': any;
|
|
10
|
-
'dsh-zhipu': any;
|
|
11
11
|
}
|
|
12
12
|
}
|
|
13
13
|
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;AAmB/D,OAAO,QAAQ,kCAAkC,CAAC;IAChD,UAAU,kBAAkB;QAC1B,0BAA0B,EAAE,SAAS,CAAA;QACrC,iBAAiB,EAAE,GAAG,CAAA;QACtB,
|
|
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"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"__probe-assert.d.ts","sourceRoot":"","sources":["../../../../src/host/claude/__probe-assert.ts"],"names":[],"mappings":""}
|