@eddyskywalker/dsh-chatgpt-subscription 0.80.4 → 0.81.2
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 +69 -0
- package/README.md +17 -7
- package/lib/aws-quick-mcp.js +54 -0
- package/lib/client.js +4232 -2203
- package/lib/client.js.map +1 -1
- package/lib/entry-plan-mode-pipeline-BCAZPcOz.js +433 -0
- package/lib/entry-tool-result-pruner-DY67oa5d.js +545 -0
- package/lib/index.js +53741 -47455
- package/lib/plan-mode-pipeline.js +1 -432
- package/lib/tool-result-pruner.js +1 -404
- package/lib/types/client/aws-quick/AwsQuickSection.d.ts +8 -0
- package/lib/types/client/aws-quick/AwsQuickSection.d.ts.map +1 -0
- package/lib/types/client/aws-quick/api.d.ts +11 -0
- package/lib/types/client/aws-quick/api.d.ts.map +1 -0
- package/lib/types/client/aws-quick/locales.d.ts +117 -0
- package/lib/types/client/aws-quick/locales.d.ts.map +1 -0
- package/lib/types/client/aws-quick/styles.d.ts +2 -0
- package/lib/types/client/aws-quick/styles.d.ts.map +1 -0
- package/lib/types/client/claude/ClaudeSection.d.ts.map +1 -1
- package/lib/types/client/claude/locales.d.ts +17 -5
- package/lib/types/client/claude/locales.d.ts.map +1 -1
- package/lib/types/client/claude/useClaudeSection.d.ts +2 -0
- package/lib/types/client/claude/useClaudeSection.d.ts.map +1 -1
- package/lib/types/client/claude-api/ClaudeApiSection.d.ts +5 -0
- package/lib/types/client/claude-api/ClaudeApiSection.d.ts.map +1 -0
- package/lib/types/client/claude-api/api.d.ts +23 -0
- package/lib/types/client/claude-api/api.d.ts.map +1 -0
- package/lib/types/client/claude-api/locales.d.ts +161 -0
- package/lib/types/client/claude-api/locales.d.ts.map +1 -0
- package/lib/types/client/claude-api/styles.d.ts +4 -0
- package/lib/types/client/claude-api/styles.d.ts.map +1 -0
- package/lib/types/client/claude-api/useClaudeApiSection.d.ts +37 -0
- package/lib/types/client/claude-api/useClaudeApiSection.d.ts.map +1 -0
- package/lib/types/client/command-code/locales.d.ts +2 -2
- package/lib/types/client/glm-coding-plan/locales.d.ts +2 -2
- package/lib/types/client/hub/HubOverview.d.ts +2 -0
- package/lib/types/client/hub/HubOverview.d.ts.map +1 -1
- package/lib/types/client/hub/brand-icons.d.ts +1 -1
- package/lib/types/client/hub/brand-icons.d.ts.map +1 -1
- package/lib/types/client/hub/hub-styles.d.ts.map +1 -1
- package/lib/types/client/hub/providers.d.ts +3 -0
- package/lib/types/client/hub/providers.d.ts.map +1 -1
- package/lib/types/client/index.d.ts +4 -0
- package/lib/types/client/index.d.ts.map +1 -1
- package/lib/types/client/kimi-code/KimiCodeSection.d.ts.map +1 -1
- package/lib/types/client/kimi-code/locales.d.ts +29 -2
- package/lib/types/client/kimi-code/locales.d.ts.map +1 -1
- package/lib/types/client/kimi-code/styles.d.ts.map +1 -1
- package/lib/types/client/locales-ru/aws-quick.d.ts +3 -0
- package/lib/types/client/locales-ru/aws-quick.d.ts.map +1 -0
- package/lib/types/client/locales-ru/claude-api.d.ts +3 -0
- package/lib/types/client/locales-ru/claude-api.d.ts.map +1 -0
- package/lib/types/client/locales-ru/claude.d.ts.map +1 -1
- package/lib/types/client/locales-ru/hub.d.ts.map +1 -1
- package/lib/types/client/locales-ru/index.d.ts.map +1 -1
- package/lib/types/client/locales-ru/kimi-code.d.ts.map +1 -1
- package/lib/types/client/locales.d.ts +21 -3
- package/lib/types/client/locales.d.ts.map +1 -1
- package/lib/types/client/minimax-code/locales.d.ts +2 -2
- package/lib/types/client/progress-updates/locales.d.ts +3 -3
- package/lib/types/client/qianwen-token-plan/locales.d.ts +1 -1
- package/lib/types/client/qoder/locales.d.ts +1 -1
- package/lib/types/client/relayone/locales.d.ts +1 -1
- package/lib/types/client/step-code/locales.d.ts +2 -2
- package/lib/types/compat.d.ts +1 -1
- package/lib/types/entry-tool-result-pruner.d.ts.map +1 -1
- package/lib/types/host/antigravity-acp/adapter.d.ts +9 -0
- package/lib/types/host/antigravity-acp/adapter.d.ts.map +1 -1
- package/lib/types/host/antigravity-acp/catalog.d.ts.map +1 -1
- package/lib/types/host/antigravity-acp/types.d.ts +27 -5
- package/lib/types/host/antigravity-acp/types.d.ts.map +1 -1
- package/lib/types/host/aws-quick/adapter.d.ts +35 -0
- package/lib/types/host/aws-quick/adapter.d.ts.map +1 -0
- package/lib/types/host/aws-quick/binary.d.ts +3 -0
- package/lib/types/host/aws-quick/binary.d.ts.map +1 -0
- package/lib/types/host/aws-quick/client.d.ts +76 -0
- package/lib/types/host/aws-quick/client.d.ts.map +1 -0
- package/lib/types/host/aws-quick/execution-broker.d.ts +25 -0
- package/lib/types/host/aws-quick/execution-broker.d.ts.map +1 -0
- package/lib/types/host/aws-quick/images.d.ts +21 -0
- package/lib/types/host/aws-quick/images.d.ts.map +1 -0
- package/lib/types/host/aws-quick/outpost.d.ts +55 -0
- package/lib/types/host/aws-quick/outpost.d.ts.map +1 -0
- package/lib/types/host/aws-quick/protocol.d.ts +34 -0
- package/lib/types/host/aws-quick/protocol.d.ts.map +1 -0
- package/lib/types/host/aws-quick/routes.d.ts +15 -0
- package/lib/types/host/aws-quick/routes.d.ts.map +1 -0
- package/lib/types/host/aws-quick/settings.d.ts +24 -0
- package/lib/types/host/aws-quick/settings.d.ts.map +1 -0
- package/lib/types/host/aws-quick/tool-bridge.d.ts +39 -0
- package/lib/types/host/aws-quick/tool-bridge.d.ts.map +1 -0
- package/lib/types/host/aws-quick/types.d.ts +12 -0
- package/lib/types/host/aws-quick/types.d.ts.map +1 -0
- package/lib/types/host/claude/adapter.d.ts +19 -1
- package/lib/types/host/claude/adapter.d.ts.map +1 -1
- package/lib/types/host/claude/client.d.ts +22 -20
- package/lib/types/host/claude/client.d.ts.map +1 -1
- package/lib/types/host/claude/mapper.d.ts +37 -16
- package/lib/types/host/claude/mapper.d.ts.map +1 -1
- package/lib/types/host/claude/model-catalog.d.ts +9 -1
- package/lib/types/host/claude/model-catalog.d.ts.map +1 -1
- package/lib/types/host/claude/routes.d.ts +3 -0
- package/lib/types/host/claude/routes.d.ts.map +1 -1
- package/lib/types/host/claude/token-store.d.ts +10 -0
- package/lib/types/host/claude/token-store.d.ts.map +1 -1
- package/lib/types/host/claude/types.d.ts +2 -2
- package/lib/types/host/claude/types.d.ts.map +1 -1
- package/lib/types/host/claude-api/adapter.d.ts +74 -0
- package/lib/types/host/claude-api/adapter.d.ts.map +1 -0
- package/lib/types/host/claude-api/capability-memory.d.ts +4 -0
- package/lib/types/host/claude-api/capability-memory.d.ts.map +1 -0
- package/lib/types/host/claude-api/catalog-manager.d.ts +57 -0
- package/lib/types/host/claude-api/catalog-manager.d.ts.map +1 -0
- package/lib/types/host/claude-api/client-version.d.ts +4 -0
- package/lib/types/host/claude-api/client-version.d.ts.map +1 -0
- package/lib/types/host/claude-api/client.d.ts +55 -0
- package/lib/types/host/claude-api/client.d.ts.map +1 -0
- package/lib/types/host/claude-api/compaction-store.d.ts +62 -0
- package/lib/types/host/claude-api/compaction-store.d.ts.map +1 -0
- package/lib/types/host/claude-api/compaction.d.ts +47 -0
- package/lib/types/host/claude-api/compaction.d.ts.map +1 -0
- package/lib/types/host/claude-api/mapper.d.ts +61 -0
- package/lib/types/host/claude-api/mapper.d.ts.map +1 -0
- package/lib/types/host/claude-api/model-catalog.d.ts +76 -0
- package/lib/types/host/claude-api/model-catalog.d.ts.map +1 -0
- package/lib/types/host/claude-api/routes.d.ts +22 -0
- package/lib/types/host/claude-api/routes.d.ts.map +1 -0
- package/lib/types/host/claude-api/stream.d.ts +88 -0
- package/lib/types/host/claude-api/stream.d.ts.map +1 -0
- package/lib/types/host/claude-api/token-store.d.ts +60 -0
- package/lib/types/host/claude-api/token-store.d.ts.map +1 -0
- package/lib/types/host/claude-api/types.d.ts +68 -0
- package/lib/types/host/claude-api/types.d.ts.map +1 -0
- package/lib/types/host/codex-catalog.d.ts +4 -0
- package/lib/types/host/codex-catalog.d.ts.map +1 -1
- package/lib/types/host/codex-remote-compaction.d.ts +41 -0
- package/lib/types/host/codex-remote-compaction.d.ts.map +1 -0
- package/lib/types/host/common/brand-compat.d.ts +2 -0
- package/lib/types/host/common/brand-compat.d.ts.map +1 -1
- package/lib/types/host/common/cache-activity.d.ts +3 -1
- package/lib/types/host/common/cache-activity.d.ts.map +1 -1
- package/lib/types/host/common/capabilities.d.ts.map +1 -1
- package/lib/types/host/common/claude-capability-memory.d.ts +51 -0
- package/lib/types/host/common/claude-capability-memory.d.ts.map +1 -0
- package/lib/types/host/common/claude-code-cch.d.ts +20 -0
- package/lib/types/host/common/claude-code-cch.d.ts.map +1 -0
- package/lib/types/host/common/claude-code-corrections.d.ts +6 -0
- package/lib/types/host/common/claude-code-corrections.d.ts.map +1 -0
- package/lib/types/host/common/claude-code-first-party.d.ts +68 -0
- package/lib/types/host/common/claude-code-first-party.d.ts.map +1 -0
- package/lib/types/host/common/claude-code-version.d.ts +90 -0
- package/lib/types/host/common/claude-code-version.d.ts.map +1 -0
- package/lib/types/host/common/i18n/en.d.ts.map +1 -1
- package/lib/types/host/common/i18n/provider-name.d.ts.map +1 -1
- package/lib/types/host/common/i18n/ru.d.ts.map +1 -1
- package/lib/types/host/common/i18n/zh.d.ts +2 -0
- package/lib/types/host/common/i18n/zh.d.ts.map +1 -1
- package/lib/types/host/common/model-request-control.d.ts +1 -1
- package/lib/types/host/common/model-request-control.d.ts.map +1 -1
- package/lib/types/host/common/prompt-cache-policy.d.ts +4 -0
- package/lib/types/host/common/prompt-cache-policy.d.ts.map +1 -1
- package/lib/types/host/common/request-diagnostics.d.ts +1 -1
- package/lib/types/host/common/request-diagnostics.d.ts.map +1 -1
- package/lib/types/host/compaction-policy-guard.d.ts +7 -0
- package/lib/types/host/compaction-policy-guard.d.ts.map +1 -1
- package/lib/types/host/kimi-code/account-pool.d.ts +11 -0
- package/lib/types/host/kimi-code/account-pool.d.ts.map +1 -1
- package/lib/types/host/kimi-code/api-key.d.ts +55 -0
- package/lib/types/host/kimi-code/api-key.d.ts.map +1 -0
- package/lib/types/host/kimi-code/cache-wait.d.ts +20 -3
- package/lib/types/host/kimi-code/cache-wait.d.ts.map +1 -1
- package/lib/types/host/kimi-code/oauth.d.ts.map +1 -1
- package/lib/types/host/kimi-code/routes.d.ts.map +1 -1
- package/lib/types/host/kimi-code/token-store.d.ts +13 -0
- package/lib/types/host/kimi-code/token-store.d.ts.map +1 -1
- package/lib/types/host/model-catalog.d.ts.map +1 -1
- package/lib/types/host/responses-client.d.ts +5 -1
- package/lib/types/host/responses-client.d.ts.map +1 -1
- package/lib/types/host/responses-mapper.d.ts +5 -0
- package/lib/types/host/responses-mapper.d.ts.map +1 -1
- package/lib/types/index.d.ts +7 -0
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/shared/aws-quick-contracts.d.ts +61 -0
- package/lib/types/shared/aws-quick-contracts.d.ts.map +1 -0
- package/lib/types/shared/claude-api-contracts.d.ts +98 -0
- package/lib/types/shared/claude-api-contracts.d.ts.map +1 -0
- package/lib/types/shared/claude-contracts.d.ts +6 -0
- package/lib/types/shared/claude-contracts.d.ts.map +1 -1
- package/lib/types/shared/contracts.d.ts +1 -1
- package/lib/types/shared/contracts.d.ts.map +1 -1
- package/lib/types/shared/kimi-code-contracts.d.ts +5 -0
- package/lib/types/shared/kimi-code-contracts.d.ts.map +1 -1
- package/lib/types/shared/model-catalog.d.ts +6 -0
- package/lib/types/shared/model-catalog.d.ts.map +1 -1
- package/package.json +3 -1
|
@@ -1 +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
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA+IL,CAAA;AAEV,eAAO,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,OAAO,EAAE,EAAE,MAAM,CAqIrC,CAAA;AAEV,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKxB,CAAA;AAED,MAAM,MAAM,eAAe,GAAG,MAAM,OAAO,EAAE,CAAA"}
|
|
@@ -80,6 +80,8 @@ export interface ClaudeSectionView {
|
|
|
80
80
|
setAllModels(selectAll: boolean): void;
|
|
81
81
|
updateEffort(effort: ClaudeReasoningEffort | null): Promise<void>;
|
|
82
82
|
updateCacheTtl(ttl: ClaudeCacheTtl | null): Promise<void>;
|
|
83
|
+
updateFastMode(checked: boolean): Promise<void>;
|
|
84
|
+
updateCacheKeepalive(checked: boolean): Promise<void>;
|
|
83
85
|
saveContextWindow(modelId: string): Promise<void>;
|
|
84
86
|
resetContextWindow(modelId: string): Promise<void>;
|
|
85
87
|
resetAllContextWindows(): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useClaudeSection.d.ts","sourceRoot":"","sources":["../../../../src/client/claude/useClaudeSection.ts"],"names":[],"mappings":"AA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G,EAAE,cAAc,GAAG,IAAI,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;QACzD,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;QACjD,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAAA;QAClD,sBAAsB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAA;QACvC,sEAAsE;QACtE,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;QACxD,iCAAiC;QACjC,aAAa,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,CAAA;KACnC,CAAA;CACF;AAED,wBAAgB,gBAAgB,CAAC,EAAE,aAAa,EAAE,kBAAkB,EAAE,EAAE,kBAAkB,GAAG,iBAAiB,CA+
|
|
1
|
+
{"version":3,"file":"useClaudeSection.d.ts","sourceRoot":"","sources":["../../../../src/client/claude/useClaudeSection.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,wCAAwC,CAAA;AACrF,OAAO,KAAK,EACV,kBAAkB,EAClB,uBAAuB,EACvB,cAAc,EACd,mBAAmB,EACnB,kBAAkB,EAClB,iBAAiB,EACjB,iBAAiB,EACjB,qBAAqB,EACrB,eAAe,EAChB,MAAM,kCAAkC,CAAA;AAKzC,OAAO,EAAE,EAAE,EAAa,MAAM,cAAc,CAAA;AAe5C,wFAAwF;AACxF,MAAM,WAAW,kBAAkB;IACjC,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC;AAED;;;;;;GAMG;AACH,MAAM,WAAW,iBAAiB;IAChC,2CAA2C;IAC3C,KAAK,EAAE;QACL,2DAA2D;QAC3D,MAAM,EAAE,eAAe,GAAG,IAAI,CAAA;QAC9B,sEAAsE;QACtE,OAAO,EAAE,OAAO,CAAA;QAChB,4EA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BAAgB,gBAAgB,CAAC,EAAE,aAAa,EAAE,kBAAkB,EAAE,EAAE,kBAAkB,GAAG,iBAAiB,CA+e7G"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import { type ClaudeApiSectionProps } from './useClaudeApiSection.ts';
|
|
3
|
+
export type { ClaudeApiSectionProps };
|
|
4
|
+
export declare function ClaudeApiSection(props?: ClaudeApiSectionProps): React.JSX.Element;
|
|
5
|
+
//# sourceMappingURL=ClaudeApiSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ClaudeApiSection.d.ts","sourceRoot":"","sources":["../../../../src/client/claude-api/ClaudeApiSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAmBzB,OAAO,EAAuB,KAAK,qBAAqB,EAAE,MAAM,0BAA0B,CAAA;AAE1F,YAAY,EAAE,qBAAqB,EAAE,CAAA;AAerC,wBAAgB,gBAAgB,CAAC,KAAK,GAAE,qBAA0B,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAwErF"}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Client half of the line's route table. The host keeps the mirror; compare the two
|
|
3
|
+
* whenever either side changes, because a mismatch only shows up as a 404 at runtime.
|
|
4
|
+
*
|
|
5
|
+
* GET /status -> ClaudeApiStatusDto
|
|
6
|
+
* POST /settings ClaudeApiSettingsUpdateDto -> ClaudeApiStatusDto
|
|
7
|
+
* POST /key { apiKey }
|
|
8
|
+
* DELETE /key
|
|
9
|
+
* POST /test -> ClaudeApiConnectionDto
|
|
10
|
+
* POST /catalog/refresh
|
|
11
|
+
*/
|
|
12
|
+
export declare const CLAUDE_API_CLIENT_ROUTES: {
|
|
13
|
+
readonly status: "/status";
|
|
14
|
+
readonly settings: "/settings";
|
|
15
|
+
readonly key: "/key";
|
|
16
|
+
readonly test: "/test";
|
|
17
|
+
readonly catalogRefresh: "/catalog/refresh";
|
|
18
|
+
};
|
|
19
|
+
export declare const get: <T>(path: string) => Promise<T>;
|
|
20
|
+
export declare const post: <T>(path: string, body?: object) => Promise<T>;
|
|
21
|
+
export declare const request: <T>(path: string, init?: RequestInit) => Promise<T>;
|
|
22
|
+
export declare const messageOf: (cause: unknown) => string;
|
|
23
|
+
//# sourceMappingURL=api.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"api.d.ts","sourceRoot":"","sources":["../../../../src/client/claude-api/api.ts"],"names":[],"mappings":"AAGA;;;;;;;;;;GAUG;AACH,eAAO,MAAM,wBAAwB;;;;;;CAM3B,CAAA;AAGV,eAAO,MAAM,GAAG,iCAAU,CAAA;AAC1B,eAAO,MAAM,IAAI,gDAAW,CAAA;AAC5B,eAAO,MAAM,OAAO,qDAAc,CAAA;AAClC,eAAO,MAAM,SAAS,UAAW,OAAO,KAAG,MAAgE,CAAA"}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
export declare const NS_CLAUDE_API = "dsh-claude-api";
|
|
2
|
+
export declare const zh: {
|
|
3
|
+
readonly title: "Claude API";
|
|
4
|
+
readonly pageDesc: "用一个 API Key 直连 Anthropic Messages 端点或兼容网关,请求形态与官方 Claude Code 客户端一致。";
|
|
5
|
+
readonly loading: "正在读取线路状态…";
|
|
6
|
+
readonly enabled: "启用 Claude API";
|
|
7
|
+
readonly keySection: "API Key";
|
|
8
|
+
readonly keyPlaceholder: "sk-ant-…";
|
|
9
|
+
readonly saveKey: "保存密钥";
|
|
10
|
+
readonly savingKey: "保存中…";
|
|
11
|
+
readonly removeKey: "移除密钥";
|
|
12
|
+
readonly removingKey: "移除中…";
|
|
13
|
+
readonly keyConfigured: "密钥已安全保存;不会显示在页面或日志中。";
|
|
14
|
+
readonly keyMissing: "尚未配置 API Key。请粘贴 Anthropic 控制台或兼容网关签发的密钥。";
|
|
15
|
+
readonly storagePath: "加密存储";
|
|
16
|
+
readonly clientVersion: "Claude Code 版本";
|
|
17
|
+
readonly versionSourceEnv: "环境变量指定";
|
|
18
|
+
readonly versionSourceNpm: "来自 npm";
|
|
19
|
+
readonly versionSourceCached: "上次获取";
|
|
20
|
+
readonly versionSourceDefault: "内置默认";
|
|
21
|
+
readonly versionPending: "空闲后更新为 {version}";
|
|
22
|
+
readonly endpoint: "端点";
|
|
23
|
+
readonly restoreEndpoint: "恢复默认";
|
|
24
|
+
readonly endpointErrorEmpty: "请输入端点地址。";
|
|
25
|
+
readonly endpointErrorInvalid: "端点地址不是有效的 URL。";
|
|
26
|
+
readonly endpointErrorScheme: "端点只接受 http 或 https。";
|
|
27
|
+
readonly endpointErrorCredentials: "端点地址不能包含用户名或密码。";
|
|
28
|
+
readonly endpointErrorQuery: "端点地址不能带查询参数或 # 片段。";
|
|
29
|
+
readonly testConnection: "测试连接";
|
|
30
|
+
readonly testingConnection: "测试中…";
|
|
31
|
+
readonly refreshCatalog: "刷新目录";
|
|
32
|
+
readonly refreshingCatalog: "刷新中…";
|
|
33
|
+
readonly connectionOk: "连接正常";
|
|
34
|
+
readonly connectionFailed: "连接失败";
|
|
35
|
+
readonly latency: "{ms} ms";
|
|
36
|
+
readonly modelCount: "{count} 个模型";
|
|
37
|
+
readonly routeOwned: "provider 路由由本插件接管。";
|
|
38
|
+
readonly routeConflict: "provider 路由冲突:{detail}";
|
|
39
|
+
readonly modelsSection: "模型";
|
|
40
|
+
readonly modelsHint: "目录来自当前端点的 /v1/models;读取不到时使用内置列表。";
|
|
41
|
+
readonly selectionHint: "未逐项选择时自动启用目录中的全部模型;清空列表则表示全部关闭。";
|
|
42
|
+
readonly selectAll: "全选";
|
|
43
|
+
readonly clearAll: "清空";
|
|
44
|
+
readonly catalogEmpty: "配置 Key 后读取模型目录。";
|
|
45
|
+
readonly catalogLoading: "正在读取模型目录…";
|
|
46
|
+
readonly catalogError: "目录同步失败";
|
|
47
|
+
readonly catalogStale: "显示上次成功目录;后台刷新失败。";
|
|
48
|
+
readonly reasoningSection: "推理";
|
|
49
|
+
readonly defaultEffort: "默认推理等级";
|
|
50
|
+
readonly effortHint: "仅向支持该等级的模型发送;单次会话的选择优先。";
|
|
51
|
+
readonly effortDefault: "跟随模型默认";
|
|
52
|
+
readonly effortNone: "关闭";
|
|
53
|
+
readonly effortLow: "低";
|
|
54
|
+
readonly effortMedium: "中";
|
|
55
|
+
readonly effortHigh: "高";
|
|
56
|
+
readonly effortXhigh: "更高";
|
|
57
|
+
readonly effortMax: "最高";
|
|
58
|
+
readonly optionsSection: "请求选项";
|
|
59
|
+
readonly optionsHint: "这些选项只作用于本线路发出的请求。";
|
|
60
|
+
readonly cacheTtl: "提示缓存时长";
|
|
61
|
+
readonly cacheTtl5m: "5 分钟";
|
|
62
|
+
readonly cacheTtl1h: "1 小时";
|
|
63
|
+
readonly fastMode: "快速模式";
|
|
64
|
+
readonly serverCompaction: "服务端压缩";
|
|
65
|
+
readonly moreNotes: "计费与兼容说明";
|
|
66
|
+
readonly cacheTtlNote: "选择 1 小时后,缓存写入按基础输入价格的 2 倍计费。选择 1 小时时,子代理或后台任务运行期间本线路约每 55 分钟发一次很小的续热请求,避免缓存过期;5 分钟时长不会这样做。";
|
|
67
|
+
readonly fastModeNote: "快速模式按溢价计费,并且只对支持它的模型生效。";
|
|
68
|
+
readonly serverCompactionNote: "端点不支持服务端压缩时,自动退回客户端压缩。";
|
|
69
|
+
readonly contextSection: "上下文窗口";
|
|
70
|
+
readonly contextHint: "默认取模型目录中的窗口大小;可在这里按模型调整。";
|
|
71
|
+
readonly tokens: "tokens";
|
|
72
|
+
readonly save: "保存";
|
|
73
|
+
readonly saving: "保存中…";
|
|
74
|
+
readonly reset: "重置";
|
|
75
|
+
readonly resetAll: "全部重置";
|
|
76
|
+
readonly contextEmpty: "没有已启用的模型。";
|
|
77
|
+
readonly invalidCapacity: "上下文窗口必须是正整数。";
|
|
78
|
+
};
|
|
79
|
+
export type ClaudeApiLocaleKey = keyof typeof zh;
|
|
80
|
+
export declare const en: Record<ClaudeApiLocaleKey, string>;
|
|
81
|
+
export declare const dictionaries: {
|
|
82
|
+
zh: {
|
|
83
|
+
readonly title: "Claude API";
|
|
84
|
+
readonly pageDesc: "用一个 API Key 直连 Anthropic Messages 端点或兼容网关,请求形态与官方 Claude Code 客户端一致。";
|
|
85
|
+
readonly loading: "正在读取线路状态…";
|
|
86
|
+
readonly enabled: "启用 Claude API";
|
|
87
|
+
readonly keySection: "API Key";
|
|
88
|
+
readonly keyPlaceholder: "sk-ant-…";
|
|
89
|
+
readonly saveKey: "保存密钥";
|
|
90
|
+
readonly savingKey: "保存中…";
|
|
91
|
+
readonly removeKey: "移除密钥";
|
|
92
|
+
readonly removingKey: "移除中…";
|
|
93
|
+
readonly keyConfigured: "密钥已安全保存;不会显示在页面或日志中。";
|
|
94
|
+
readonly keyMissing: "尚未配置 API Key。请粘贴 Anthropic 控制台或兼容网关签发的密钥。";
|
|
95
|
+
readonly storagePath: "加密存储";
|
|
96
|
+
readonly clientVersion: "Claude Code 版本";
|
|
97
|
+
readonly versionSourceEnv: "环境变量指定";
|
|
98
|
+
readonly versionSourceNpm: "来自 npm";
|
|
99
|
+
readonly versionSourceCached: "上次获取";
|
|
100
|
+
readonly versionSourceDefault: "内置默认";
|
|
101
|
+
readonly versionPending: "空闲后更新为 {version}";
|
|
102
|
+
readonly endpoint: "端点";
|
|
103
|
+
readonly restoreEndpoint: "恢复默认";
|
|
104
|
+
readonly endpointErrorEmpty: "请输入端点地址。";
|
|
105
|
+
readonly endpointErrorInvalid: "端点地址不是有效的 URL。";
|
|
106
|
+
readonly endpointErrorScheme: "端点只接受 http 或 https。";
|
|
107
|
+
readonly endpointErrorCredentials: "端点地址不能包含用户名或密码。";
|
|
108
|
+
readonly endpointErrorQuery: "端点地址不能带查询参数或 # 片段。";
|
|
109
|
+
readonly testConnection: "测试连接";
|
|
110
|
+
readonly testingConnection: "测试中…";
|
|
111
|
+
readonly refreshCatalog: "刷新目录";
|
|
112
|
+
readonly refreshingCatalog: "刷新中…";
|
|
113
|
+
readonly connectionOk: "连接正常";
|
|
114
|
+
readonly connectionFailed: "连接失败";
|
|
115
|
+
readonly latency: "{ms} ms";
|
|
116
|
+
readonly modelCount: "{count} 个模型";
|
|
117
|
+
readonly routeOwned: "provider 路由由本插件接管。";
|
|
118
|
+
readonly routeConflict: "provider 路由冲突:{detail}";
|
|
119
|
+
readonly modelsSection: "模型";
|
|
120
|
+
readonly modelsHint: "目录来自当前端点的 /v1/models;读取不到时使用内置列表。";
|
|
121
|
+
readonly selectionHint: "未逐项选择时自动启用目录中的全部模型;清空列表则表示全部关闭。";
|
|
122
|
+
readonly selectAll: "全选";
|
|
123
|
+
readonly clearAll: "清空";
|
|
124
|
+
readonly catalogEmpty: "配置 Key 后读取模型目录。";
|
|
125
|
+
readonly catalogLoading: "正在读取模型目录…";
|
|
126
|
+
readonly catalogError: "目录同步失败";
|
|
127
|
+
readonly catalogStale: "显示上次成功目录;后台刷新失败。";
|
|
128
|
+
readonly reasoningSection: "推理";
|
|
129
|
+
readonly defaultEffort: "默认推理等级";
|
|
130
|
+
readonly effortHint: "仅向支持该等级的模型发送;单次会话的选择优先。";
|
|
131
|
+
readonly effortDefault: "跟随模型默认";
|
|
132
|
+
readonly effortNone: "关闭";
|
|
133
|
+
readonly effortLow: "低";
|
|
134
|
+
readonly effortMedium: "中";
|
|
135
|
+
readonly effortHigh: "高";
|
|
136
|
+
readonly effortXhigh: "更高";
|
|
137
|
+
readonly effortMax: "最高";
|
|
138
|
+
readonly optionsSection: "请求选项";
|
|
139
|
+
readonly optionsHint: "这些选项只作用于本线路发出的请求。";
|
|
140
|
+
readonly cacheTtl: "提示缓存时长";
|
|
141
|
+
readonly cacheTtl5m: "5 分钟";
|
|
142
|
+
readonly cacheTtl1h: "1 小时";
|
|
143
|
+
readonly fastMode: "快速模式";
|
|
144
|
+
readonly serverCompaction: "服务端压缩";
|
|
145
|
+
readonly moreNotes: "计费与兼容说明";
|
|
146
|
+
readonly cacheTtlNote: "选择 1 小时后,缓存写入按基础输入价格的 2 倍计费。选择 1 小时时,子代理或后台任务运行期间本线路约每 55 分钟发一次很小的续热请求,避免缓存过期;5 分钟时长不会这样做。";
|
|
147
|
+
readonly fastModeNote: "快速模式按溢价计费,并且只对支持它的模型生效。";
|
|
148
|
+
readonly serverCompactionNote: "端点不支持服务端压缩时,自动退回客户端压缩。";
|
|
149
|
+
readonly contextSection: "上下文窗口";
|
|
150
|
+
readonly contextHint: "默认取模型目录中的窗口大小;可在这里按模型调整。";
|
|
151
|
+
readonly tokens: "tokens";
|
|
152
|
+
readonly save: "保存";
|
|
153
|
+
readonly saving: "保存中…";
|
|
154
|
+
readonly reset: "重置";
|
|
155
|
+
readonly resetAll: "全部重置";
|
|
156
|
+
readonly contextEmpty: "没有已启用的模型。";
|
|
157
|
+
readonly invalidCapacity: "上下文窗口必须是正整数。";
|
|
158
|
+
};
|
|
159
|
+
en: Record<"tokens" | "title" | "loading" | "testConnection" | "latency" | "selectAll" | "modelsHint" | "fastMode" | "save" | "reset" | "pageDesc" | "defaultEffort" | "clearAll" | "routeConflict" | "testingConnection" | "routeOwned" | "modelsSection" | "refreshCatalog" | "refreshingCatalog" | "cacheTtl" | "cacheTtl1h" | "cacheTtl5m" | "effortLow" | "effortMedium" | "effortHigh" | "effortMax" | "saving" | "enabled" | "storagePath" | "catalogStale" | "modelCount" | "moreNotes" | "invalidCapacity" | "keySection" | "keyConfigured" | "keyMissing" | "keyPlaceholder" | "saveKey" | "savingKey" | "removeKey" | "removingKey" | "connectionOk" | "connectionFailed" | "effortDefault" | "effortNone" | "effortXhigh" | "effortHint" | "selectionHint" | "contextSection" | "contextHint" | "contextEmpty" | "resetAll" | "catalogEmpty" | "catalogLoading" | "catalogError" | "reasoningSection" | "clientVersion" | "versionSourceEnv" | "versionSourceNpm" | "versionSourceCached" | "versionSourceDefault" | "versionPending" | "endpoint" | "restoreEndpoint" | "endpointErrorEmpty" | "endpointErrorInvalid" | "endpointErrorScheme" | "endpointErrorCredentials" | "endpointErrorQuery" | "optionsSection" | "optionsHint" | "serverCompaction" | "cacheTtlNote" | "fastModeNote" | "serverCompactionNote", string>;
|
|
160
|
+
};
|
|
161
|
+
//# sourceMappingURL=locales.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../../src/client/claude-api/locales.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,aAAa,mBAAmB,CAAA;AAC7C,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoBL,CAAA;AACV,MAAM,MAAM,kBAAkB,GAAG,MAAM,OAAO,EAAE,CAAA;AAChD,eAAO,MAAM,EAAE,EAAE,MAAM,CAAC,kBAAkB,EAAE,MAAM,CAoBjD,CAAA;AACD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAa,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/client/claude-api/styles.ts"],"names":[],"mappings":"AACA,eAAO,MAAM,QAAQ,kCAAkC,CAAA;AACvD,8FAA8F;AAC9F,wBAAgB,sBAAsB,IAAI,IAAI,CAoB7C"}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { type ClaudeApiBaseUrlError, type ClaudeApiCacheTtl, type ClaudeApiConnectionDto, type ClaudeApiReasoningEffort, type ClaudeApiSettingsUpdateDto, type ClaudeApiStatusDto } from '../../shared/claude-api-contracts.ts';
|
|
2
|
+
export interface ClaudeApiSectionProps {
|
|
3
|
+
onModelChange?: () => void;
|
|
4
|
+
}
|
|
5
|
+
export declare function useClaudeApiSection({ onModelChange }?: ClaudeApiSectionProps): {
|
|
6
|
+
status: ClaudeApiStatusDto | null;
|
|
7
|
+
loading: boolean;
|
|
8
|
+
busy: string | null;
|
|
9
|
+
error: string | null;
|
|
10
|
+
connection: ClaudeApiConnectionDto | null;
|
|
11
|
+
keyValue: string;
|
|
12
|
+
endpointDraft: string | null;
|
|
13
|
+
endpointError: ClaudeApiBaseUrlError | null;
|
|
14
|
+
contextDrafts: Record<string, string>;
|
|
15
|
+
capacityInvalid: boolean;
|
|
16
|
+
savingModel: string | null;
|
|
17
|
+
setKeyValue: import("react").Dispatch<import("react").SetStateAction<string>>;
|
|
18
|
+
setEndpointDraft: (draft: string) => void;
|
|
19
|
+
setContextDraft: (id: string, draft: string) => void;
|
|
20
|
+
saveKey: () => Promise<void>;
|
|
21
|
+
removeKey: () => Promise<void>;
|
|
22
|
+
testConnection: () => Promise<void>;
|
|
23
|
+
refreshCatalog: () => Promise<void>;
|
|
24
|
+
saveEndpoint: () => Promise<void>;
|
|
25
|
+
restoreEndpoint: () => Promise<void>;
|
|
26
|
+
update: (patch: ClaudeApiSettingsUpdateDto, label?: string) => Promise<ClaudeApiStatusDto>;
|
|
27
|
+
toggleModel: (id: string, enabled: boolean) => void;
|
|
28
|
+
setAllModels: (enabled: boolean) => void;
|
|
29
|
+
saveContextWindow: (id: string) => Promise<void>;
|
|
30
|
+
resetContextWindow: (id: string) => Promise<void>;
|
|
31
|
+
resetAllContextWindows: () => Promise<void>;
|
|
32
|
+
setDefaultEffort: (defaultReasoningEffort: ClaudeApiReasoningEffort | null) => Promise<ClaudeApiStatusDto>;
|
|
33
|
+
setCacheTtl: (cacheTtl: ClaudeApiCacheTtl) => Promise<ClaudeApiStatusDto>;
|
|
34
|
+
setFastMode: (fastMode: boolean) => Promise<ClaudeApiStatusDto>;
|
|
35
|
+
setServerCompaction: (serverCompaction: boolean) => Promise<ClaudeApiStatusDto>;
|
|
36
|
+
};
|
|
37
|
+
//# sourceMappingURL=useClaudeApiSection.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"useClaudeApiSection.d.ts","sourceRoot":"","sources":["../../../../src/client/claude-api/useClaudeApiSection.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,qBAAqB,EAC1B,KAAK,iBAAiB,EACtB,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,kBAAkB,EACxB,MAAM,sCAAsC,CAAA;AAK7C,MAAM,WAAW,qBAAqB;IAAG,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;CAAE;AAarE,wBAAgB,mBAAmB,CAAC,EAAE,aAAa,EAAE,GAAE,qBAA0B;;;;;;;;;;;;;8BA8JnD,MAAM;0BACV,MAAM,SAAS,MAAM;;;;;;;oBA5EJ,0BAA0B;sBA+C9B,MAAM,WAAW,OAAO;4BAKlB,OAAO;4BAID,MAAM;6BAOL,MAAM;;+CAgBX,wBAAwB,GAAG,IAAI;4BAClD,iBAAiB;4BACjB,OAAO;4CACS,OAAO;EAElD"}
|
|
@@ -298,8 +298,8 @@ export declare const dictionaries: {
|
|
|
298
298
|
readonly quotaFactsScope: string;
|
|
299
299
|
readonly composerLabel: string;
|
|
300
300
|
};
|
|
301
|
-
en: Record<"account" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "signedOut" | "signedIn" | "plan" | "expires" | "signIn" | "signInAgain" | "signOut" | "loading" | "connection" | "testConnection" | "selectAll" | "unselectAll" | "modelsHint" | "contextWindowReset" | "contextWindowResetAll" | "contextWindowResetAllConfirm" | "save" | "refreshQuota" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "cooldownRemaining" | "cooldownRemainingSeconds" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "email" | "lastUsed" | "accountQuota" | "quotaNone" | "quotaSnapshot" | "quotaResets" | "quotaExhausted" | "quotaWindow" | "quotaUsed" | "quotaFactsScope" | "composerLabel" | "pageDesc" | "
|
|
302
|
-
'en-US': Record<"account" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "signedOut" | "signedIn" | "plan" | "expires" | "signIn" | "signInAgain" | "signOut" | "loading" | "connection" | "testConnection" | "selectAll" | "unselectAll" | "modelsHint" | "contextWindowReset" | "contextWindowResetAll" | "contextWindowResetAllConfirm" | "save" | "refreshQuota" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "cooldownRemaining" | "cooldownRemainingSeconds" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "email" | "lastUsed" | "accountQuota" | "quotaNone" | "quotaSnapshot" | "quotaResets" | "quotaExhausted" | "quotaWindow" | "quotaUsed" | "quotaFactsScope" | "composerLabel" | "pageDesc" | "
|
|
301
|
+
en: Record<"account" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "signedOut" | "signedIn" | "plan" | "expires" | "signIn" | "signInAgain" | "signOut" | "loading" | "connection" | "testConnection" | "selectAll" | "unselectAll" | "modelsHint" | "contextWindowReset" | "contextWindowResetAll" | "contextWindowResetAllConfirm" | "save" | "refreshQuota" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "cooldownRemaining" | "cooldownRemainingSeconds" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "email" | "lastUsed" | "accountQuota" | "quotaNone" | "quotaSnapshot" | "quotaResets" | "quotaExhausted" | "quotaWindow" | "quotaUsed" | "quotaFactsScope" | "composerLabel" | "pageDesc" | "signingIn" | "routeConflict" | "planUnknown" | "cancelSignIn" | "loginFailed" | "testingConnection" | "routeOwned" | "modelsSection" | "refreshCatalog" | "refreshingCatalog" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "contextWindowSection" | "contextWindowHint" | "contextWindowNoneEnabled" | "saving" | "quotaSection" | "quotaDesc" | "refreshingQuota" | "quotaEmpty" | "updatedAt" | "catalogStale" | "saved" | "keyName" | "organization" | "subscription" | "renews" | "authenticatedAt" | "openSignInPage" | "apiKeySection" | "apiKeyHint" | "apiKeyPlaceholder" | "apiKeySave" | "apiKeySaving" | "apiKeySaved" | "catalogFresh" | "zdrEnabled" | "wireAnthropic" | "wireOpenai" | "wireResponses" | "quotaCredits" | "quotaUnlimited", string>;
|
|
302
|
+
'en-US': Record<"account" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "signedOut" | "signedIn" | "plan" | "expires" | "signIn" | "signInAgain" | "signOut" | "loading" | "connection" | "testConnection" | "selectAll" | "unselectAll" | "modelsHint" | "contextWindowReset" | "contextWindowResetAll" | "contextWindowResetAllConfirm" | "save" | "refreshQuota" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "cooldownRemaining" | "cooldownRemainingSeconds" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "email" | "lastUsed" | "accountQuota" | "quotaNone" | "quotaSnapshot" | "quotaResets" | "quotaExhausted" | "quotaWindow" | "quotaUsed" | "quotaFactsScope" | "composerLabel" | "pageDesc" | "signingIn" | "routeConflict" | "planUnknown" | "cancelSignIn" | "loginFailed" | "testingConnection" | "routeOwned" | "modelsSection" | "refreshCatalog" | "refreshingCatalog" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "contextWindowSection" | "contextWindowHint" | "contextWindowNoneEnabled" | "saving" | "quotaSection" | "quotaDesc" | "refreshingQuota" | "quotaEmpty" | "updatedAt" | "catalogStale" | "saved" | "keyName" | "organization" | "subscription" | "renews" | "authenticatedAt" | "openSignInPage" | "apiKeySection" | "apiKeyHint" | "apiKeyPlaceholder" | "apiKeySave" | "apiKeySaving" | "apiKeySaved" | "catalogFresh" | "zdrEnabled" | "wireAnthropic" | "wireOpenai" | "wireResponses" | "quotaCredits" | "quotaUnlimited", string>;
|
|
303
303
|
};
|
|
304
304
|
export type CommandCodeLocaleKey = keyof typeof zh;
|
|
305
305
|
//# sourceMappingURL=locales.d.ts.map
|
|
@@ -384,8 +384,8 @@ export declare const dictionaries: {
|
|
|
384
384
|
readonly quotaFactsScope: string;
|
|
385
385
|
readonly composerLabel: string;
|
|
386
386
|
};
|
|
387
|
-
en: Record<"quotaRefreshing" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "expires" | "loading" | "connection" | "testConnection" | "selectAll" | "unselectAll" | "modelsHint" | "contextWindowReset" | "contextWindowResetAll" | "save" | "quotaSignedOut" | "modelChecklistCount" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "cooldownRemaining" | "cooldownRemainingSeconds" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "email" | "lastUsed" | "accountQuota" | "quotaNone" | "quotaSnapshot" | "quotaResets" | "quotaExhausted" | "quotaWindow" | "quotaUsed" | "quotaFactsScope" | "composerLabel" | "progress" | "pageDesc" | "adoptedBadge" | "openAuthorizeUrl" | "authorizeUrl" | "loginComplete" | "manualPasteSection" | "manualPasteHint" | "manualPastePlaceholder" | "manualPasteSubmit" | "manualPasteSubmitting" | "testingConnection" | "testSuccess" | "testLatency" | "testFailed" | "routeOwned" | "
|
|
388
|
-
'en-US': Record<"quotaRefreshing" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "expires" | "loading" | "connection" | "testConnection" | "selectAll" | "unselectAll" | "modelsHint" | "contextWindowReset" | "contextWindowResetAll" | "save" | "quotaSignedOut" | "modelChecklistCount" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "cooldownRemaining" | "cooldownRemainingSeconds" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "email" | "lastUsed" | "accountQuota" | "quotaNone" | "quotaSnapshot" | "quotaResets" | "quotaExhausted" | "quotaWindow" | "quotaUsed" | "quotaFactsScope" | "composerLabel" | "progress" | "pageDesc" | "adoptedBadge" | "openAuthorizeUrl" | "authorizeUrl" | "loginComplete" | "manualPasteSection" | "manualPasteHint" | "manualPastePlaceholder" | "manualPasteSubmit" | "manualPasteSubmitting" | "testingConnection" | "testSuccess" | "testLatency" | "testFailed" | "routeOwned" | "
|
|
387
|
+
en: Record<"quotaRefreshing" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "expires" | "loading" | "connection" | "testConnection" | "selectAll" | "unselectAll" | "modelsHint" | "contextWindowReset" | "contextWindowResetAll" | "save" | "quotaSignedOut" | "modelChecklistCount" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "cooldownRemaining" | "cooldownRemainingSeconds" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "email" | "lastUsed" | "accountQuota" | "quotaNone" | "quotaSnapshot" | "quotaResets" | "quotaExhausted" | "quotaWindow" | "quotaUsed" | "quotaFactsScope" | "composerLabel" | "progress" | "pageDesc" | "region" | "regionHint" | "cancelLogin" | "routeConflict" | "adoptedBadge" | "openAuthorizeUrl" | "authorizeUrl" | "loginComplete" | "manualPasteSection" | "manualPasteHint" | "manualPastePlaceholder" | "manualPasteSubmit" | "manualPasteSubmitting" | "testingConnection" | "testSuccess" | "testLatency" | "testFailed" | "routeOwned" | "modelsSection" | "refreshCatalog" | "refreshingCatalog" | "contextWindowSection" | "contextWindowHint" | "contextWindowNoneEnabled" | "saving" | "quotaSection" | "quotaDesc" | "quotaEmpty" | "regionCn" | "regionIntl" | "authorizing" | "loginIdle" | "loginHaveAccounts" | "loginPending" | "loginCompletedAt" | "loginCompleteNoAccount" | "loginError" | "loginRetryable" | "loginNotRetryable" | "pollEvery" | "loginExpiresAt" | "restartLogin" | "cancelLoginBusy" | "manualPasteEmpty" | "adopt" | "adopting" | "adoptAdopted" | "adoptNoAttempt" | "adoptNoCredentialsFile" | "adoptFallback" | "testSuccessAccount" | "testSuccessModel" | "testFailedDetail" | "modelsUnavailable" | "dismiss" | "saved" | "invalidCapacity" | "quotaRefresh" | "quotaPlan" | "quotaRenews" | "quotaReadAt" | "quotaSources" | "quotaRefreshingNote" | "quotaErrorLabel" | "adoptSecretUnavailable" | "adoptDecryptFailed" | "adoptTokenExpired" | "adoptExchangeFailed" | "adoptNotAZcodeLogin" | "quotaPlanLevel" | "quotaAllowance" | "quotaAllowancePlan" | "quotaAllowanceFreeTrial" | "quotaAllowanceUnknown" | "quotaAllowanceHint", string>;
|
|
388
|
+
'en-US': Record<"quotaRefreshing" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "expires" | "loading" | "connection" | "testConnection" | "selectAll" | "unselectAll" | "modelsHint" | "contextWindowReset" | "contextWindowResetAll" | "save" | "quotaSignedOut" | "modelChecklistCount" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "cooldownRemaining" | "cooldownRemainingSeconds" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "email" | "lastUsed" | "accountQuota" | "quotaNone" | "quotaSnapshot" | "quotaResets" | "quotaExhausted" | "quotaWindow" | "quotaUsed" | "quotaFactsScope" | "composerLabel" | "progress" | "pageDesc" | "region" | "regionHint" | "cancelLogin" | "routeConflict" | "adoptedBadge" | "openAuthorizeUrl" | "authorizeUrl" | "loginComplete" | "manualPasteSection" | "manualPasteHint" | "manualPastePlaceholder" | "manualPasteSubmit" | "manualPasteSubmitting" | "testingConnection" | "testSuccess" | "testLatency" | "testFailed" | "routeOwned" | "modelsSection" | "refreshCatalog" | "refreshingCatalog" | "contextWindowSection" | "contextWindowHint" | "contextWindowNoneEnabled" | "saving" | "quotaSection" | "quotaDesc" | "quotaEmpty" | "regionCn" | "regionIntl" | "authorizing" | "loginIdle" | "loginHaveAccounts" | "loginPending" | "loginCompletedAt" | "loginCompleteNoAccount" | "loginError" | "loginRetryable" | "loginNotRetryable" | "pollEvery" | "loginExpiresAt" | "restartLogin" | "cancelLoginBusy" | "manualPasteEmpty" | "adopt" | "adopting" | "adoptAdopted" | "adoptNoAttempt" | "adoptNoCredentialsFile" | "adoptFallback" | "testSuccessAccount" | "testSuccessModel" | "testFailedDetail" | "modelsUnavailable" | "dismiss" | "saved" | "invalidCapacity" | "quotaRefresh" | "quotaPlan" | "quotaRenews" | "quotaReadAt" | "quotaSources" | "quotaRefreshingNote" | "quotaErrorLabel" | "adoptSecretUnavailable" | "adoptDecryptFailed" | "adoptTokenExpired" | "adoptExchangeFailed" | "adoptNotAZcodeLogin" | "quotaPlanLevel" | "quotaAllowance" | "quotaAllowancePlan" | "quotaAllowanceFreeTrial" | "quotaAllowanceUnknown" | "quotaAllowanceHint", string>;
|
|
389
389
|
};
|
|
390
390
|
export type GlmCodingPlanLocaleKey = keyof typeof zh;
|
|
391
391
|
/** 一个配额窗口的键到「窗口长度(分钟)」的映射。 */
|
|
@@ -3,6 +3,8 @@ import type { HubProviderSummaryDto } from '../../shared/hub-contracts.ts';
|
|
|
3
3
|
import type { NS } from '../locales.ts';
|
|
4
4
|
import { type HubProviderDescriptor } from './providers.tsx';
|
|
5
5
|
export type HubTranslate = PropsLocale<typeof NS>['t'];
|
|
6
|
+
/** Versioned because the stored value is a bare ordered id array. */
|
|
7
|
+
export declare const HUB_PROVIDER_ORDER_STORAGE_KEY = "dsh-chatgpt-subscription:hub-provider-order:v1";
|
|
6
8
|
interface Props {
|
|
7
9
|
t: HubTranslate;
|
|
8
10
|
onOpen(id: HubProviderDescriptor['id']): void;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"HubOverview.d.ts","sourceRoot":"","sources":["../../../../src/client/hub/HubOverview.tsx"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"HubOverview.d.ts","sourceRoot":"","sources":["../../../../src/client/hub/HubOverview.tsx"],"names":[],"mappings":"AAYA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kCAAkC,CAAA;AAInE,OAAO,KAAK,EAAkB,qBAAqB,EAAE,MAAM,+BAA+B,CAAA;AAO1F,OAAO,KAAK,EAAE,EAAE,EAAE,MAAM,eAAe,CAAA;AAEvC,OAAO,EAA8B,KAAK,qBAAqB,EAAE,MAAM,iBAAiB,CAAA;AAExF,MAAM,MAAM,YAAY,GAAG,WAAW,CAAC,OAAO,EAAE,CAAC,CAAC,GAAG,CAAC,CAAA;AAEtD,qEAAqE;AACrE,eAAO,MAAM,8BAA8B,mDAAmD,CAAA;AAE9F,UAAU,KAAK;IACb,CAAC,EAAE,YAAY,CAAA;IACf,MAAM,CAAC,EAAE,EAAE,qBAAqB,CAAC,IAAI,CAAC,GAAG,IAAI,CAAA;CAC9C;AAkED,yEAAyE;AACzE,wBAAgB,cAAc,CAAC,OAAO,EAAE,qBAAqB,GAAG,SAAS,EAAE,UAAU,EAAE,qBAAqB,EAAE,CAAC,EAAE,YAAY,GAAG,MAAM,CAcrI;AAED,wBAAgB,WAAW,CAAC,EAAE,CAAC,EAAE,MAAM,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAgLnE"}
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* (the same principle claude-style's brand.js documents).
|
|
11
11
|
*/
|
|
12
12
|
import { type BrandMarkKey } from './brand-svg.ts';
|
|
13
|
-
export type HubProviderId = 'chatgpt' | 'command-code' | 'kimi-code' | 'minimax-code' | 'glm-coding-plan' | 'claude' | 'ollama' | 'step-code' | 'cline-pass' | 'qoder' | 'opendesign' | 'workbuddy' | 'antigravity-acp' | 'qianwen-token-plan' | 'relayone';
|
|
13
|
+
export type HubProviderId = 'chatgpt' | 'command-code' | 'kimi-code' | 'minimax-code' | 'glm-coding-plan' | 'claude' | 'ollama' | 'step-code' | 'cline-pass' | 'qoder' | 'opendesign' | 'workbuddy' | 'antigravity-acp' | 'qianwen-token-plan' | 'relayone' | 'claude-api' | 'aws-quick';
|
|
14
14
|
/** 一张标记的键:BRAND_MARKS 的全部键,加上本文件自带的键。 */
|
|
15
15
|
export type ProviderMarkKey = BrandMarkKey | 'glm' | 'step-code' | 'cline-pass' | 'opendesign';
|
|
16
16
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brand-icons.d.ts","sourceRoot":"","sources":["../../../../src/client/hub/brand-icons.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAe,KAAK,YAAY,EAAqB,MAAM,gBAAgB,CAAA;AAElF,MAAM,MAAM,aAAa,GACrB,SAAS,GAAG,cAAc,GAAG,WAAW,GACxC,cAAc,GAAG,iBAAiB,GAAG,QAAQ,GAAG,QAAQ,GACxD,WAAW,GAAG,YAAY,GAAG,OAAO,GAAG,YAAY,GAAG,WAAW,GAAG,iBAAiB,GAAG,oBAAoB,GAAG,UAAU,CAAA;
|
|
1
|
+
{"version":3,"file":"brand-icons.d.ts","sourceRoot":"","sources":["../../../../src/client/hub/brand-icons.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,EAAe,KAAK,YAAY,EAAqB,MAAM,gBAAgB,CAAA;AAElF,MAAM,MAAM,aAAa,GACrB,SAAS,GAAG,cAAc,GAAG,WAAW,GACxC,cAAc,GAAG,iBAAiB,GAAG,QAAQ,GAAG,QAAQ,GACxD,WAAW,GAAG,YAAY,GAAG,OAAO,GAAG,YAAY,GAAG,WAAW,GAAG,iBAAiB,GAAG,oBAAoB,GAAG,UAAU,GACzH,YAAY,GAAG,WAAW,CAAA;AA6F9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3,"file":"hub-styles.d.ts","sourceRoot":"","sources":["../../../../src/client/hub/hub-styles.ts"],"names":[],"mappings":"AAoGA,wBAAgB,gBAAgB,IAAI,IAAI,CAEvC"}
|
|
@@ -9,6 +9,7 @@
|
|
|
9
9
|
*/
|
|
10
10
|
import type { ReactElement } from 'react';
|
|
11
11
|
import type { PropsRuntime } from '@deepseek-ai/dsh-client-ui-slots';
|
|
12
|
+
import type { LineProxyProviderId } from '../../shared/contracts.ts';
|
|
12
13
|
import type { HubProviderId } from './brand-icons.tsx';
|
|
13
14
|
/** What the detail page hands to a mounted section. */
|
|
14
15
|
export interface HubDetailRenderProps {
|
|
@@ -34,6 +35,8 @@ export interface HubProviderDescriptor {
|
|
|
34
35
|
* place that writes its `enabled` flag. Null when the line has no switch.
|
|
35
36
|
*/
|
|
36
37
|
setEnabled: ((enabled: boolean) => Promise<void>) | null;
|
|
38
|
+
/** Per-line proxy preference key; null when an external CLI owns networking. */
|
|
39
|
+
proxyLine: LineProxyProviderId | null;
|
|
37
40
|
renderDetail(props: HubDetailRenderProps): ReactElement;
|
|
38
41
|
}
|
|
39
42
|
/** Card order on the overview; also the former tab order. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../../../../src/client/hub/providers.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;
|
|
1
|
+
{"version":3,"file":"providers.d.ts","sourceRoot":"","sources":["../../../../src/client/hub/providers.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,OAAO,CAAA;AACzC,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AAEpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAA;AAiCpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAA;AAEtD,uDAAuD;AACvD,MAAM,WAAW,oBAAoB;IACnC,CAAC,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK,MAAM,CAAA;IACvB,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,gFAAgF;IAChF,OAAO,EAAE,YAAY,CAAC,kBAAkB,CAAC,CAAA;CAC1C;AAED,MAAM,WAAW,qBAAqB;IACpC,EAAE,EAAE,aAAa,CAAA;IACjB;;;;OAIG;IACH,IAAI,EAAE,MAAM,CAAA;IACZ;;;;;;;OAOG;IACH,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE,OAAO,KAAK,OAAO,CAAC,IAAI,CAAC,CAAC,GAAG,IAAI,CAAA;IACxD,gFAAgF;IAChF,SAAS,EAAE,mBAAmB,GAAG,IAAI,CAAA;IACrC,YAAY,CAAC,KAAK,EAAE,oBAAoB,GAAG,YAAY,CAAA;CACxD;AA4BD,6DAA6D;AAC7D;;;;;;;;;;;GAWG;AACH,wBAAgB,WAAW,CAAC,UAAU,EAAE,qBAAqB,EAAE,CAAC,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,MAAM,CAIjG;AAED,eAAO,MAAM,aAAa,EAAE,SAAS,qBAAqB,EAiIzD,CAAA;AAED,wBAAgB,qBAAqB,CAAC,EAAE,EAAE,MAAM,GAAG,qBAAqB,GAAG,SAAS,CAEnF"}
|
|
@@ -15,6 +15,8 @@ import { type ProgressUpdatesLocaleKey } from './progress-updates/locales.ts';
|
|
|
15
15
|
import { type WorkBuddyLocaleKey } from './workbuddy/locales.ts';
|
|
16
16
|
import { type QianwenLocaleKey } from './qianwen-token-plan/locales.ts';
|
|
17
17
|
import { type RelayOneLocaleKey } from './relayone/locales.ts';
|
|
18
|
+
import { type ClaudeApiLocaleKey } from './claude-api/locales.ts';
|
|
19
|
+
import { type AwsQuickLocaleKey } from './aws-quick/locales.ts';
|
|
18
20
|
import { type SubagentLocaleKey } from './subagent/locales.ts';
|
|
19
21
|
import { type DispatchLedgerLocaleKey } from './dispatch-ledger/locales.ts';
|
|
20
22
|
declare module '@deepseek-ai/dsh-client-ui-slots' {
|
|
@@ -45,6 +47,8 @@ declare module '@deepseek-ai/dsh-client-ui-slots' {
|
|
|
45
47
|
'dsh-dispatch-ledger': DispatchLedgerLocaleKey;
|
|
46
48
|
'dsh-qianwen-token-plan': QianwenLocaleKey;
|
|
47
49
|
'dsh-relayone': RelayOneLocaleKey;
|
|
50
|
+
'dsh-claude-api': ClaudeApiLocaleKey;
|
|
51
|
+
'dsh-aws-quick': AwsQuickLocaleKey;
|
|
48
52
|
}
|
|
49
53
|
}
|
|
50
54
|
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;AAS/D,OAAO,EAA0C,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAGlG,OAAO,EAAqD,KAAK,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAExH,OAAO,EAA+C,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAM5G,OAAO,EAAqD,KAAK,oBAAoB,EAAE,MAAM,2BAA2B,CAAA;AAKxH,OAAO,EAA0D,KAAK,sBAAsB,EAAE,MAAM,8BAA8B,CAAA;AAElI,OAAO,EAA0C,KAAK,eAAe,EAAE,MAAM,qBAAqB,CAAA;AAElG,OAAO,EAA2D,KAAK,uBAAuB,EAAE,MAAM,8BAA8B,CAAA;AAGpI,OAAO,EAA+C,KAAK,iBAAiB,EAAE,MAAM,wBAAwB,CAAA;AAG5G,OAAO,EAAiD,KAAK,kBAAkB,EAAE,MAAM,yBAAyB,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E,iBAAiB,CAAA;KACnC;CACF;AAED,eAAO,MAAM,MAAM,UAQlB,CAAA;AAED,wBAAgB,KAAK,CAAC,GAAG,EAAE,aAAa,GAAG,IAAI,CAgT9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KimiCodeSection.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/KimiCodeSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAA;AA4BvE,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC;AA4GD,wBAAgB,eAAe,CAAC,EAAE,aAAa,EAAE,kBAAkB,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"KimiCodeSection.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/KimiCodeSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAA;AA4BvE,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC;AA4GD,wBAAgB,eAAe,CAAC,EAAE,aAAa,EAAE,kBAAkB,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CA+3BhG"}
|
|
@@ -169,6 +169,15 @@ export declare const zh: {
|
|
|
169
169
|
readonly kqRegionGlobal: "国际区";
|
|
170
170
|
readonly loading: "加载中...";
|
|
171
171
|
readonly loginFailed: "登录失败";
|
|
172
|
+
readonly apiKeyLogin: "API Key 登录";
|
|
173
|
+
readonly apiKeyHint: "粘贴在 Kimi Code 控制台(kimi.com/code)创建的会员 API Key,与设备码登录共用同一份套餐额度。Moonshot 开放平台的 Key 在这里不可用。提交前会先向 Kimi Code 验证。";
|
|
174
|
+
readonly apiKeyReplaceHint: "为「{alias}」粘贴一个新的 API Key,替换已失效的那一个;账号名称与轮换位置保持不变。";
|
|
175
|
+
readonly apiKeyPlaceholder: "sk-kimi-…";
|
|
176
|
+
readonly apiKeySubmit: "验证并添加";
|
|
177
|
+
readonly apiKeySubmitting: "验证中...";
|
|
178
|
+
readonly apiKeyEmpty: "请先粘贴 API Key。";
|
|
179
|
+
readonly authMethod: "登录方式";
|
|
180
|
+
readonly authMethodApiKey: "套餐 API Key";
|
|
172
181
|
readonly requests: "次请求";
|
|
173
182
|
readonly tokens: "tokens";
|
|
174
183
|
readonly compactionRoute: "压缩模型";
|
|
@@ -388,6 +397,15 @@ export declare const dictionaries: {
|
|
|
388
397
|
readonly kqRegionGlobal: "国际区";
|
|
389
398
|
readonly loading: "加载中...";
|
|
390
399
|
readonly loginFailed: "登录失败";
|
|
400
|
+
readonly apiKeyLogin: "API Key 登录";
|
|
401
|
+
readonly apiKeyHint: "粘贴在 Kimi Code 控制台(kimi.com/code)创建的会员 API Key,与设备码登录共用同一份套餐额度。Moonshot 开放平台的 Key 在这里不可用。提交前会先向 Kimi Code 验证。";
|
|
402
|
+
readonly apiKeyReplaceHint: "为「{alias}」粘贴一个新的 API Key,替换已失效的那一个;账号名称与轮换位置保持不变。";
|
|
403
|
+
readonly apiKeyPlaceholder: "sk-kimi-…";
|
|
404
|
+
readonly apiKeySubmit: "验证并添加";
|
|
405
|
+
readonly apiKeySubmitting: "验证中...";
|
|
406
|
+
readonly apiKeyEmpty: "请先粘贴 API Key。";
|
|
407
|
+
readonly authMethod: "登录方式";
|
|
408
|
+
readonly authMethodApiKey: "套餐 API Key";
|
|
391
409
|
readonly requests: "次请求";
|
|
392
410
|
readonly tokens: "tokens";
|
|
393
411
|
readonly compactionRoute: "压缩模型";
|
|
@@ -605,6 +623,15 @@ export declare const dictionaries: {
|
|
|
605
623
|
readonly kqRegionGlobal: "国际区";
|
|
606
624
|
readonly loading: "加载中...";
|
|
607
625
|
readonly loginFailed: "登录失败";
|
|
626
|
+
readonly apiKeyLogin: "API Key 登录";
|
|
627
|
+
readonly apiKeyHint: "粘贴在 Kimi Code 控制台(kimi.com/code)创建的会员 API Key,与设备码登录共用同一份套餐额度。Moonshot 开放平台的 Key 在这里不可用。提交前会先向 Kimi Code 验证。";
|
|
628
|
+
readonly apiKeyReplaceHint: "为「{alias}」粘贴一个新的 API Key,替换已失效的那一个;账号名称与轮换位置保持不变。";
|
|
629
|
+
readonly apiKeyPlaceholder: "sk-kimi-…";
|
|
630
|
+
readonly apiKeySubmit: "验证并添加";
|
|
631
|
+
readonly apiKeySubmitting: "验证中...";
|
|
632
|
+
readonly apiKeyEmpty: "请先粘贴 API Key。";
|
|
633
|
+
readonly authMethod: "登录方式";
|
|
634
|
+
readonly authMethodApiKey: "套餐 API Key";
|
|
608
635
|
readonly requests: "次请求";
|
|
609
636
|
readonly tokens: "tokens";
|
|
610
637
|
readonly compactionRoute: "压缩模型";
|
|
@@ -652,8 +679,8 @@ export declare const dictionaries: {
|
|
|
652
679
|
readonly quotaFactsScope: string;
|
|
653
680
|
readonly composerLabel: string;
|
|
654
681
|
};
|
|
655
|
-
en: Record<"account" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "signedOut" | "signedIn" | "plan" | "expires" | "signIn" | "signInAgain" | "signOut" | "loading" | "connection" | "testConnection" | "selectAll" | "unselectAll" | "modelsHint" | "contextWindowReset" | "contextWindowResetAll" | "contextWindowResetAllConfirm" | "save" | "refreshQuota" | "deviceCodeHint" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "cooldownRemaining" | "cooldownRemainingSeconds" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "email" | "lastUsed" | "accountQuota" | "quotaNone" | "quotaSnapshot" | "quotaResets" | "quotaExhausted" | "quotaWindow" | "quotaUsed" | "quotaFactsScope" | "composerLabel" | "pageDesc" | "
|
|
656
|
-
'en-US': Record<"account" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "signedOut" | "signedIn" | "plan" | "expires" | "signIn" | "signInAgain" | "signOut" | "loading" | "connection" | "testConnection" | "selectAll" | "unselectAll" | "modelsHint" | "contextWindowReset" | "contextWindowResetAll" | "contextWindowResetAllConfirm" | "save" | "refreshQuota" | "deviceCodeHint" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "cooldownRemaining" | "cooldownRemainingSeconds" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "email" | "lastUsed" | "accountQuota" | "quotaNone" | "quotaSnapshot" | "quotaResets" | "quotaExhausted" | "quotaWindow" | "quotaUsed" | "quotaFactsScope" | "composerLabel" | "pageDesc" | "
|
|
682
|
+
en: Record<"account" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "signedOut" | "signedIn" | "plan" | "expires" | "signIn" | "signInAgain" | "signOut" | "loading" | "connection" | "testConnection" | "selectAll" | "unselectAll" | "modelsHint" | "contextWindowReset" | "contextWindowResetAll" | "contextWindowResetAllConfirm" | "save" | "refreshQuota" | "deviceCodeHint" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "cooldownRemaining" | "cooldownRemainingSeconds" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "email" | "lastUsed" | "accountQuota" | "quotaNone" | "quotaSnapshot" | "quotaResets" | "quotaExhausted" | "quotaWindow" | "quotaUsed" | "quotaFactsScope" | "composerLabel" | "pageDesc" | "region" | "signingIn" | "routeConflict" | "planUnknown" | "cancelSignIn" | "loginFailed" | "testingConnection" | "testSuccess" | "testFailed" | "routeOwned" | "modelsSection" | "refreshCatalog" | "refreshingCatalog" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "effortLow" | "effortHigh" | "effortMax" | "contextWindowSection" | "contextWindowHint" | "contextWindowNoneEnabled" | "saving" | "quotaSection" | "quotaDesc" | "refreshingQuota" | "quotaEmpty" | "quotaUnknown" | "resetAt" | "updatedAt" | "copied" | "saved" | "quotaPlan" | "cacheSection" | "cacheDesc" | "cacheHitRatio" | "cacheRequests" | "cacheEmpty" | "effortNone" | "authenticatedAt" | "openSignInPage" | "apiKeyHint" | "apiKeyPlaceholder" | "wireAnthropic" | "wireOpenai" | "nickname" | "regionMainland" | "regionGlobal" | "refreshRejected" | "deviceCodeSection" | "copyCode" | "userCode" | "codeExpires" | "waitingAuthorization" | "requestingCode" | "oauthHost" | "codingEndpoint" | "capVideo" | "capThinkingOnly" | "capEfforts" | "capDynamicTools" | "capImageOnly" | "capNone" | "capVideoFootnote" | "capThinkingOnlyFootnote" | "capabilitiesTitle" | "capColMedia" | "capColTools" | "capColNotes" | "capPlan" | "capInputCap" | "capNoTools" | "speedRegular" | "speedHighspeed" | "quotaCost" | "minimumPlan" | "effortThinkingOnlyNote" | "effortNotOffered" | "cacheNote" | "cacheNoteHint" | "contextWindowPlan" | "cacheCached" | "cacheFresh" | "cacheOutput" | "cacheWrite" | "cacheWarmupLabel" | "cacheWarmupWarming" | "cacheWarmupSettled" | "unknownMetric" | "cacheExpired" | "cacheDrift" | "cacheOpening" | "cacheOpeningValue" | "cacheContinuation" | "cacheContinuationValue" | "cacheLastRequest" | "cacheRequestSuccess" | "cacheRequestError" | "cacheRequestAborted" | "cacheAccountChanged" | "cacheLastInput" | "cacheLastInputValue" | "cacheLastOutput" | "cacheLastReasoning" | "cacheReasoningValue" | "cacheReasoningCost" | "metricNotReported" | "cacheDriftFirst" | "cacheDriftStable" | "cacheDriftSystemPrompt" | "cacheDriftTools" | "cacheDriftCacheKey" | "cacheDriftColdKey" | "cacheDriftImageOffload" | "cacheImageBudgetLabel" | "cacheImageBudgetValue" | "cacheImageBudgetDropped" | "preserveThinking" | "preserveOn" | "preserveOff" | "outputCap" | "quotaWallet" | "quotaWalletLimit" | "quotaWalletUsed" | "kqTotal" | "kqTip" | "kqPoolKimi" | "kqPoolCode" | "kqResetAfter" | "kqAccount" | "kqAgo" | "kqLastUsed" | "kqShortWindow" | "kqRestUsed" | "kqExpires" | "kqJustNow" | "kqMinutesAgo" | "kqHoursAgo" | "kqDaysAgo" | "kqWindow5h" | "kqWindow7d" | "kqDurationDay" | "kqDurationHour" | "kqDurationMinute" | "kqResetIn" | "kqResetSoon" | "kqRegionMainland" | "kqRegionGlobal" | "apiKeyLogin" | "apiKeyReplaceHint" | "apiKeySubmit" | "apiKeySubmitting" | "apiKeyEmpty" | "authMethod" | "authMethodApiKey" | "requests" | "compactionRoute" | "compactionRouteHint" | "compactionRouteProvider" | "compactionRouteModel" | "compactionRouteSave" | "compactionRouteClear" | "compactionRouteChange" | "compactionRouteFollow" | "compactionRouteSaved" | "compactionRouteFailed" | "compactionRouteNoVideo" | "compactionRouteNoImage" | "compactionRouteEmpty", string>;
|
|
683
|
+
'en-US': Record<"account" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "signedOut" | "signedIn" | "plan" | "expires" | "signIn" | "signInAgain" | "signOut" | "loading" | "connection" | "testConnection" | "selectAll" | "unselectAll" | "modelsHint" | "contextWindowReset" | "contextWindowResetAll" | "contextWindowResetAllConfirm" | "save" | "refreshQuota" | "deviceCodeHint" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "cooldownRemaining" | "cooldownRemainingSeconds" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "email" | "lastUsed" | "accountQuota" | "quotaNone" | "quotaSnapshot" | "quotaResets" | "quotaExhausted" | "quotaWindow" | "quotaUsed" | "quotaFactsScope" | "composerLabel" | "pageDesc" | "region" | "signingIn" | "routeConflict" | "planUnknown" | "cancelSignIn" | "loginFailed" | "testingConnection" | "testSuccess" | "testFailed" | "routeOwned" | "modelsSection" | "refreshCatalog" | "refreshingCatalog" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "effortLow" | "effortHigh" | "effortMax" | "contextWindowSection" | "contextWindowHint" | "contextWindowNoneEnabled" | "saving" | "quotaSection" | "quotaDesc" | "refreshingQuota" | "quotaEmpty" | "quotaUnknown" | "resetAt" | "updatedAt" | "copied" | "saved" | "quotaPlan" | "cacheSection" | "cacheDesc" | "cacheHitRatio" | "cacheRequests" | "cacheEmpty" | "effortNone" | "authenticatedAt" | "openSignInPage" | "apiKeyHint" | "apiKeyPlaceholder" | "wireAnthropic" | "wireOpenai" | "nickname" | "regionMainland" | "regionGlobal" | "refreshRejected" | "deviceCodeSection" | "copyCode" | "userCode" | "codeExpires" | "waitingAuthorization" | "requestingCode" | "oauthHost" | "codingEndpoint" | "capVideo" | "capThinkingOnly" | "capEfforts" | "capDynamicTools" | "capImageOnly" | "capNone" | "capVideoFootnote" | "capThinkingOnlyFootnote" | "capabilitiesTitle" | "capColMedia" | "capColTools" | "capColNotes" | "capPlan" | "capInputCap" | "capNoTools" | "speedRegular" | "speedHighspeed" | "quotaCost" | "minimumPlan" | "effortThinkingOnlyNote" | "effortNotOffered" | "cacheNote" | "cacheNoteHint" | "contextWindowPlan" | "cacheCached" | "cacheFresh" | "cacheOutput" | "cacheWrite" | "cacheWarmupLabel" | "cacheWarmupWarming" | "cacheWarmupSettled" | "unknownMetric" | "cacheExpired" | "cacheDrift" | "cacheOpening" | "cacheOpeningValue" | "cacheContinuation" | "cacheContinuationValue" | "cacheLastRequest" | "cacheRequestSuccess" | "cacheRequestError" | "cacheRequestAborted" | "cacheAccountChanged" | "cacheLastInput" | "cacheLastInputValue" | "cacheLastOutput" | "cacheLastReasoning" | "cacheReasoningValue" | "cacheReasoningCost" | "metricNotReported" | "cacheDriftFirst" | "cacheDriftStable" | "cacheDriftSystemPrompt" | "cacheDriftTools" | "cacheDriftCacheKey" | "cacheDriftColdKey" | "cacheDriftImageOffload" | "cacheImageBudgetLabel" | "cacheImageBudgetValue" | "cacheImageBudgetDropped" | "preserveThinking" | "preserveOn" | "preserveOff" | "outputCap" | "quotaWallet" | "quotaWalletLimit" | "quotaWalletUsed" | "kqTotal" | "kqTip" | "kqPoolKimi" | "kqPoolCode" | "kqResetAfter" | "kqAccount" | "kqAgo" | "kqLastUsed" | "kqShortWindow" | "kqRestUsed" | "kqExpires" | "kqJustNow" | "kqMinutesAgo" | "kqHoursAgo" | "kqDaysAgo" | "kqWindow5h" | "kqWindow7d" | "kqDurationDay" | "kqDurationHour" | "kqDurationMinute" | "kqResetIn" | "kqResetSoon" | "kqRegionMainland" | "kqRegionGlobal" | "apiKeyLogin" | "apiKeyReplaceHint" | "apiKeySubmit" | "apiKeySubmitting" | "apiKeyEmpty" | "authMethod" | "authMethodApiKey" | "requests" | "compactionRoute" | "compactionRouteHint" | "compactionRouteProvider" | "compactionRouteModel" | "compactionRouteSave" | "compactionRouteClear" | "compactionRouteChange" | "compactionRouteFollow" | "compactionRouteSaved" | "compactionRouteFailed" | "compactionRouteNoVideo" | "compactionRouteNoImage" | "compactionRouteEmpty", string>;
|
|
657
684
|
};
|
|
658
685
|
export type KimiCodeLocaleKey = keyof typeof zh;
|
|
659
686
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/locales.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,kBAAkB,CAAA;AAE3C,eAAO,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/locales.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,kBAAkB,CAAA;AAE3C,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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