@eddyskywalker/dsh-chatgpt-subscription 0.11.7 → 0.12.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 +619 -776
- package/README.md +34 -2
- package/lib/client.js +141 -5
- package/lib/client.js.map +1 -1
- package/lib/index.js +2879 -1541
- package/lib/types/client/CodexSubscriptionSection.d.ts +18 -0
- package/lib/types/client/CodexSubscriptionSection.d.ts.map +1 -1
- package/lib/types/client/kimi-code/KimiCodeSection.d.ts.map +1 -1
- package/lib/types/client/kimi-code/KimiModelCapabilities.d.ts.map +1 -1
- package/lib/types/client/kimi-code/locales.d.ts +11 -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.d.ts +45 -5
- package/lib/types/client/locales.d.ts.map +1 -1
- package/lib/types/host/antigravity/mapper.d.ts +3 -2
- package/lib/types/host/antigravity/mapper.d.ts.map +1 -1
- package/lib/types/host/antigravity/tool-schema.d.ts +13 -1
- package/lib/types/host/antigravity/tool-schema.d.ts.map +1 -1
- package/lib/types/host/claude/mapper.d.ts +57 -3
- package/lib/types/host/claude/mapper.d.ts.map +1 -1
- package/lib/types/host/codex-fetch.d.ts.map +1 -1
- package/lib/types/host/common/idle-watchdog.d.ts +10 -0
- package/lib/types/host/common/idle-watchdog.d.ts.map +1 -1
- package/lib/types/host/common/prompt-estimate.d.ts +22 -0
- package/lib/types/host/common/prompt-estimate.d.ts.map +1 -0
- package/lib/types/host/common/request-images.d.ts +130 -0
- package/lib/types/host/common/request-images.d.ts.map +1 -0
- package/lib/types/host/common/tool-schema.d.ts +27 -0
- package/lib/types/host/common/tool-schema.d.ts.map +1 -0
- package/lib/types/host/common/video-request.d.ts +81 -0
- package/lib/types/host/common/video-request.d.ts.map +1 -0
- package/lib/types/host/common/video.d.ts +90 -0
- package/lib/types/host/common/video.d.ts.map +1 -0
- package/lib/types/host/fetch-address-policy.d.ts +2 -1
- package/lib/types/host/fetch-address-policy.d.ts.map +1 -1
- package/lib/types/host/fetch-configuration.d.ts +6 -0
- package/lib/types/host/fetch-configuration.d.ts.map +1 -0
- package/lib/types/host/kimi-code/adapter.d.ts.map +1 -1
- package/lib/types/host/kimi-code/cache-hint.d.ts +76 -0
- package/lib/types/host/kimi-code/cache-hint.d.ts.map +1 -0
- package/lib/types/host/kimi-code/client.d.ts +36 -1
- package/lib/types/host/kimi-code/client.d.ts.map +1 -1
- package/lib/types/host/kimi-code/mapper.d.ts +118 -145
- package/lib/types/host/kimi-code/mapper.d.ts.map +1 -1
- package/lib/types/host/kimi-code/modalities.d.ts +9 -80
- package/lib/types/host/kimi-code/modalities.d.ts.map +1 -1
- package/lib/types/host/kimi-code/routes.d.ts +8 -0
- package/lib/types/host/kimi-code/routes.d.ts.map +1 -1
- package/lib/types/host/kimi-code/token-store.d.ts +30 -1
- package/lib/types/host/kimi-code/token-store.d.ts.map +1 -1
- package/lib/types/host/kimi-code/video-store.d.ts.map +1 -1
- package/lib/types/host/minimax-code/adapter.d.ts +8 -1
- package/lib/types/host/minimax-code/adapter.d.ts.map +1 -1
- package/lib/types/host/minimax-code/files-api.d.ts +117 -0
- package/lib/types/host/minimax-code/files-api.d.ts.map +1 -0
- package/lib/types/host/minimax-code/mapper.d.ts +50 -25
- package/lib/types/host/minimax-code/mapper.d.ts.map +1 -1
- package/lib/types/host/minimax-code/modalities.d.ts +20 -0
- package/lib/types/host/minimax-code/modalities.d.ts.map +1 -0
- package/lib/types/host/minimax-code/model-catalog.d.ts +27 -11
- package/lib/types/host/minimax-code/model-catalog.d.ts.map +1 -1
- package/lib/types/host/minimax-code/types.d.ts +10 -0
- package/lib/types/host/minimax-code/types.d.ts.map +1 -1
- package/lib/types/host/routes.d.ts +2 -2
- package/lib/types/host/routes.d.ts.map +1 -1
- package/lib/types/host/search-provider-switcher.d.ts +2 -0
- package/lib/types/host/search-provider-switcher.d.ts.map +1 -1
- package/lib/types/index.d.ts +8 -1
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/shared/contracts.d.ts +11 -0
- package/lib/types/shared/contracts.d.ts.map +1 -1
- package/lib/types/shared/kimi-code-contracts.d.ts +65 -0
- package/lib/types/shared/kimi-code-contracts.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -5,6 +5,24 @@ type Props = PropsRuntime<'settings.section'> & PropsLocale<typeof NS>;
|
|
|
5
5
|
type BusyAction = 'login' | 'token' | 'quota' | 'reset-credit' | 'test' | 'logout' | 'preferences' | 'set-primary' | 'delete' | 'clear-cooldown' | 'strategy' | null;
|
|
6
6
|
type Translate = Props['t'];
|
|
7
7
|
export declare function CodexSubscriptionSection({ t }: Props): React.JSX.Element;
|
|
8
|
+
/**
|
|
9
|
+
* Read-only view of the fetch selection, shown under the search source.
|
|
10
|
+
*
|
|
11
|
+
* Both blocks are optional on the status DTO, so every row is rendered only from
|
|
12
|
+
* a value the host actually reported. That distinction is load-bearing: a
|
|
13
|
+
* missing `switcher` means the host tells us nothing and the row stays hidden,
|
|
14
|
+
* while a reported `configuredFetchProvider: null` is a real answer — the host
|
|
15
|
+
* pinned no provider, which is the DSH default. Guessing an id there would claim
|
|
16
|
+
* a provider the settings page never observed.
|
|
17
|
+
*
|
|
18
|
+
* Nothing here is editable: the mode and the limits live in the plugin Config,
|
|
19
|
+
* not in the preferences this card sits in, so the numbers cannot be mistaken for
|
|
20
|
+
* a setting that this page can change.
|
|
21
|
+
*/
|
|
22
|
+
export declare function FetchProviderStatusCard({ status, t }: {
|
|
23
|
+
status: PluginStatusDto | null | undefined;
|
|
24
|
+
t: Translate;
|
|
25
|
+
}): React.JSX.Element | null;
|
|
8
26
|
export declare function storageLabel(storage: CredentialStorageDto | undefined, t: Translate): string;
|
|
9
27
|
export declare function storageNotice(storage: CredentialStorageDto | undefined, t: Translate): string;
|
|
10
28
|
export declare function ResetCreditsFact({ resetCredits, busy, onUse, t }: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CodexSubscriptionSection.d.ts","sourceRoot":"","sources":["../../../src/client/CodexSubscriptionSection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACjF,OAAO,KAAK,EAAyB,oBAAoB,EAAE,eAAe,EAAkB,cAAc,EAA8D,MAAM,wBAAwB,CAAA;AAOtM,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAA;AAGjC,KAAK,KAAK,GAAG,YAAY,CAAC,kBAAkB,CAAC,GAAG,WAAW,CAAC,OAAO,EAAE,CAAC,CAAA;AACtE,KAAK,UAAU,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,cAAc,GAAG,MAAM,GAAG,QAAQ,GAAG,aAAa,GAC9F,aAAa,GAAG,QAAQ,GAAG,gBAAgB,GAAG,UAAU,GAAG,IAAI,CAAA;AACnE,KAAK,SAAS,GAAG,KAAK,CAAC,GAAG,CAAC,CAAA;AAE3B,wBAAgB,wBAAwB,CAAC,EAAE,CAAC,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,
|
|
1
|
+
{"version":3,"file":"CodexSubscriptionSection.d.ts","sourceRoot":"","sources":["../../../src/client/CodexSubscriptionSection.tsx"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACjF,OAAO,KAAK,EAAyB,oBAAoB,EAAE,eAAe,EAAkB,cAAc,EAA8D,MAAM,wBAAwB,CAAA;AAOtM,OAAO,EAAE,EAAE,EAAE,MAAM,cAAc,CAAA;AAGjC,KAAK,KAAK,GAAG,YAAY,CAAC,kBAAkB,CAAC,GAAG,WAAW,CAAC,OAAO,EAAE,CAAC,CAAA;AACtE,KAAK,UAAU,GAAG,OAAO,GAAG,OAAO,GAAG,OAAO,GAAG,cAAc,GAAG,MAAM,GAAG,QAAQ,GAAG,aAAa,GAC9F,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AW,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CAYpF;AAED,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAOlE;AAED,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,gBAAgB,SAA4B,GAAG,MAAM,GAAG,IAAI,CAGxG;AAoCD,wBAAgB,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,SAAS,GAAG,IAAI,GAAG,MAAM,CAgBtE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KimiCodeSection.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/KimiCodeSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAA;AAiBvE,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC;AAiBD,wEAAwE;AACxE,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAOlE;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIpD;AAsED,wBAAgB,eAAe,CAAC,EAAE,aAAa,EAAE,kBAAkB,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"KimiCodeSection.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/KimiCodeSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAA;AAiBvE,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC;AAiBD,wEAAwE;AACxE,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAOlE;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIpD;AAsED,wBAAgB,eAAe,CAAC,EAAE,aAAa,EAAE,kBAAkB,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CAqwBhG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KimiModelCapabilities.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/KimiModelCapabilities.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAA;AAK9E,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,mBAAmB,EAAE,CAAA;CAC9B;AAED,wBAAgB,qBAAqB,CAAC,EAAE,MAAM,EAAE,EAAE,0BAA0B,GAAG,KAAK,CAAC,YAAY,
|
|
1
|
+
{"version":3,"file":"KimiModelCapabilities.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/KimiModelCapabilities.tsx"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AACH,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,qCAAqC,CAAA;AAK9E,MAAM,WAAW,0BAA0B;IACzC,MAAM,EAAE,mBAAmB,EAAE,CAAA;CAC9B;AAED,wBAAgB,qBAAqB,CAAC,EAAE,MAAM,EAAE,EAAE,0BAA0B,GAAG,KAAK,CAAC,YAAY,CAsDhG"}
|
|
@@ -63,6 +63,8 @@ export declare const zh: {
|
|
|
63
63
|
readonly capColTools: "动态工具";
|
|
64
64
|
readonly capColNotes: "说明";
|
|
65
65
|
readonly capPlan: "需要套餐:{plan}";
|
|
66
|
+
readonly capInputCap: "输入上限 {tokens}";
|
|
67
|
+
readonly capNoTools: "不支持工具";
|
|
66
68
|
readonly speedRegular: "标准";
|
|
67
69
|
readonly speedHighspeed: "高速 (约 6×)";
|
|
68
70
|
readonly quotaCost: "额度倍率";
|
|
@@ -99,6 +101,7 @@ export declare const zh: {
|
|
|
99
101
|
readonly cacheOutput: "输出 tokens";
|
|
100
102
|
readonly cacheRequests: "请求数";
|
|
101
103
|
readonly cacheHint: "同一会话内:系统提示与工具列表一旦变化会使缓存整体失效,因此保持工具集合稳定、把新增内容追加在末尾,命中率最高。";
|
|
104
|
+
readonly cacheExpired: "本会话已空闲超过缓存有效期,下一轮将重新处理约 {tokens} 个 token。";
|
|
102
105
|
readonly cacheDrift: "最近前缀状态";
|
|
103
106
|
readonly cacheDriftFirst: "首个请求(缓存为空)";
|
|
104
107
|
readonly cacheDriftStable: "稳定(前缀未变)";
|
|
@@ -213,6 +216,8 @@ export declare const dictionaries: {
|
|
|
213
216
|
readonly capColTools: "动态工具";
|
|
214
217
|
readonly capColNotes: "说明";
|
|
215
218
|
readonly capPlan: "需要套餐:{plan}";
|
|
219
|
+
readonly capInputCap: "输入上限 {tokens}";
|
|
220
|
+
readonly capNoTools: "不支持工具";
|
|
216
221
|
readonly speedRegular: "标准";
|
|
217
222
|
readonly speedHighspeed: "高速 (约 6×)";
|
|
218
223
|
readonly quotaCost: "额度倍率";
|
|
@@ -249,6 +254,7 @@ export declare const dictionaries: {
|
|
|
249
254
|
readonly cacheOutput: "输出 tokens";
|
|
250
255
|
readonly cacheRequests: "请求数";
|
|
251
256
|
readonly cacheHint: "同一会话内:系统提示与工具列表一旦变化会使缓存整体失效,因此保持工具集合稳定、把新增内容追加在末尾,命中率最高。";
|
|
257
|
+
readonly cacheExpired: "本会话已空闲超过缓存有效期,下一轮将重新处理约 {tokens} 个 token。";
|
|
252
258
|
readonly cacheDrift: "最近前缀状态";
|
|
253
259
|
readonly cacheDriftFirst: "首个请求(缓存为空)";
|
|
254
260
|
readonly cacheDriftStable: "稳定(前缀未变)";
|
|
@@ -361,6 +367,8 @@ export declare const dictionaries: {
|
|
|
361
367
|
readonly capColTools: "动态工具";
|
|
362
368
|
readonly capColNotes: "说明";
|
|
363
369
|
readonly capPlan: "需要套餐:{plan}";
|
|
370
|
+
readonly capInputCap: "输入上限 {tokens}";
|
|
371
|
+
readonly capNoTools: "不支持工具";
|
|
364
372
|
readonly speedRegular: "标准";
|
|
365
373
|
readonly speedHighspeed: "高速 (约 6×)";
|
|
366
374
|
readonly quotaCost: "额度倍率";
|
|
@@ -397,6 +405,7 @@ export declare const dictionaries: {
|
|
|
397
405
|
readonly cacheOutput: "输出 tokens";
|
|
398
406
|
readonly cacheRequests: "请求数";
|
|
399
407
|
readonly cacheHint: "同一会话内:系统提示与工具列表一旦变化会使缓存整体失效,因此保持工具集合稳定、把新增内容追加在末尾,命中率最高。";
|
|
408
|
+
readonly cacheExpired: "本会话已空闲超过缓存有效期,下一轮将重新处理约 {tokens} 个 token。";
|
|
400
409
|
readonly cacheDrift: "最近前缀状态";
|
|
401
410
|
readonly cacheDriftFirst: "首个请求(缓存为空)";
|
|
402
411
|
readonly cacheDriftStable: "稳定(前缀未变)";
|
|
@@ -445,8 +454,8 @@ export declare const dictionaries: {
|
|
|
445
454
|
readonly lastUsed: string;
|
|
446
455
|
readonly accountId: string;
|
|
447
456
|
};
|
|
448
|
-
en: Record<"account" | "storage" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "signedOut" | "signedIn" | "plan" | "expires" | "signIn" | "signInAgain" | "signOut" | "loading" | "connection" | "provider" | "connectionState" | "connected" | "untested" | "testConnection" | "enableProvider" | "selectAll" | "unselectAll" | "modelsHint" | "contextWindowReset" | "contextWindowResetAll" | "contextWindowResetAllConfirm" | "save" | "refreshQuota" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "storageNotice" | "email" | "lastUsed" | "pageDesc" | "signingIn" | "providerValue" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "contextWindowSection" | "contextWindowHint" | "contextWindowNoneEnabled" | "saved" | "saving" | "quotaSection" | "quotaDesc" | "refreshingQuota" | "quotaEmpty" | "updatedAt" | "loginFailed" | "planUnknown" | "cancelSignIn" | "testingConnection" | "testSuccess" | "testFailed" | "routeOwned" | "routeConflict" | "modelsSection" | "refreshCatalog" | "refreshingCatalog" | "cacheTtl" | "cacheTtlHint" | "cacheTtl1h" | "cacheTtl5m" | "effortLow" | "effortHigh" | "effortMax" | "resetAt" | "copied" | "authenticatedAt" | "openSignInPage" | "wireAnthropic" | "wireOpenai" | "quotaUnlimited" | "nickname" | "region" | "regionMainland" | "regionGlobal" | "refreshRejected" | "deviceCodeSection" | "deviceCodeHint" | "copyCode" | "userCode" | "codeExpires" | "waitingAuthorization" | "requestingCode" | "oauthHost" | "codingEndpoint" | "capVideo" | "capDynamicTools" | "capImageOnly" | "capNone" | "capVideoFootnote" | "capabilitiesTitle" | "capColMedia" | "capColTools" | "capColNotes" | "capPlan" | "speedRegular" | "speedHighspeed" | "quotaCost" | "minimumPlan" | "cacheTtlDefault" | "effortNone" | "contextWindowPlan" | "cacheSection" | "cacheDesc" | "cacheEmpty" | "cacheHitRatio" | "cacheCached" | "cacheFresh" | "cacheOutput" | "cacheRequests" | "cacheHint" | "cacheDrift" | "cacheDriftFirst" | "cacheDriftStable" | "cacheDriftSystemPrompt" | "cacheDriftTools" | "cacheDriftCacheKey" | "cacheDriftColdKey" | "preserveThinking" | "preserveOn" | "preserveOff" | "outputCap" | "quotaPlan" | "quotaWallet" | "quotaWalletLimit" | "quotaWalletUsed" | "requests", string>;
|
|
449
|
-
'en-US': Record<"account" | "storage" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "signedOut" | "signedIn" | "plan" | "expires" | "signIn" | "signInAgain" | "signOut" | "loading" | "connection" | "provider" | "connectionState" | "connected" | "untested" | "testConnection" | "enableProvider" | "selectAll" | "unselectAll" | "modelsHint" | "contextWindowReset" | "contextWindowResetAll" | "contextWindowResetAllConfirm" | "save" | "refreshQuota" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "storageNotice" | "email" | "lastUsed" | "pageDesc" | "signingIn" | "providerValue" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "contextWindowSection" | "contextWindowHint" | "contextWindowNoneEnabled" | "saved" | "saving" | "quotaSection" | "quotaDesc" | "refreshingQuota" | "quotaEmpty" | "updatedAt" | "loginFailed" | "planUnknown" | "cancelSignIn" | "testingConnection" | "testSuccess" | "testFailed" | "routeOwned" | "routeConflict" | "modelsSection" | "refreshCatalog" | "refreshingCatalog" | "cacheTtl" | "cacheTtlHint" | "cacheTtl1h" | "cacheTtl5m" | "effortLow" | "effortHigh" | "effortMax" | "resetAt" | "copied" | "authenticatedAt" | "openSignInPage" | "wireAnthropic" | "wireOpenai" | "quotaUnlimited" | "nickname" | "region" | "regionMainland" | "regionGlobal" | "refreshRejected" | "deviceCodeSection" | "deviceCodeHint" | "copyCode" | "userCode" | "codeExpires" | "waitingAuthorization" | "requestingCode" | "oauthHost" | "codingEndpoint" | "capVideo" | "capDynamicTools" | "capImageOnly" | "capNone" | "capVideoFootnote" | "capabilitiesTitle" | "capColMedia" | "capColTools" | "capColNotes" | "capPlan" | "speedRegular" | "speedHighspeed" | "quotaCost" | "minimumPlan" | "cacheTtlDefault" | "effortNone" | "contextWindowPlan" | "cacheSection" | "cacheDesc" | "cacheEmpty" | "cacheHitRatio" | "cacheCached" | "cacheFresh" | "cacheOutput" | "cacheRequests" | "cacheHint" | "cacheDrift" | "cacheDriftFirst" | "cacheDriftStable" | "cacheDriftSystemPrompt" | "cacheDriftTools" | "cacheDriftCacheKey" | "cacheDriftColdKey" | "preserveThinking" | "preserveOn" | "preserveOff" | "outputCap" | "quotaPlan" | "quotaWallet" | "quotaWalletLimit" | "quotaWalletUsed" | "requests", string>;
|
|
457
|
+
en: Record<"account" | "storage" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "signedOut" | "signedIn" | "plan" | "expires" | "signIn" | "signInAgain" | "signOut" | "loading" | "connection" | "provider" | "connectionState" | "connected" | "untested" | "testConnection" | "enableProvider" | "selectAll" | "unselectAll" | "modelsHint" | "contextWindowReset" | "contextWindowResetAll" | "contextWindowResetAllConfirm" | "save" | "refreshQuota" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "storageNotice" | "email" | "lastUsed" | "pageDesc" | "signingIn" | "providerValue" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "contextWindowSection" | "contextWindowHint" | "contextWindowNoneEnabled" | "saved" | "saving" | "quotaSection" | "quotaDesc" | "refreshingQuota" | "quotaEmpty" | "updatedAt" | "loginFailed" | "planUnknown" | "cancelSignIn" | "testingConnection" | "testSuccess" | "testFailed" | "routeOwned" | "routeConflict" | "modelsSection" | "refreshCatalog" | "refreshingCatalog" | "cacheTtl" | "cacheTtlHint" | "cacheTtl1h" | "cacheTtl5m" | "effortLow" | "effortHigh" | "effortMax" | "resetAt" | "copied" | "authenticatedAt" | "openSignInPage" | "wireAnthropic" | "wireOpenai" | "quotaUnlimited" | "nickname" | "region" | "regionMainland" | "regionGlobal" | "refreshRejected" | "deviceCodeSection" | "deviceCodeHint" | "copyCode" | "userCode" | "codeExpires" | "waitingAuthorization" | "requestingCode" | "oauthHost" | "codingEndpoint" | "capVideo" | "capDynamicTools" | "capImageOnly" | "capNone" | "capVideoFootnote" | "capabilitiesTitle" | "capColMedia" | "capColTools" | "capColNotes" | "capPlan" | "capInputCap" | "capNoTools" | "speedRegular" | "speedHighspeed" | "quotaCost" | "minimumPlan" | "cacheTtlDefault" | "effortNone" | "contextWindowPlan" | "cacheSection" | "cacheDesc" | "cacheEmpty" | "cacheHitRatio" | "cacheCached" | "cacheFresh" | "cacheOutput" | "cacheRequests" | "cacheHint" | "cacheExpired" | "cacheDrift" | "cacheDriftFirst" | "cacheDriftStable" | "cacheDriftSystemPrompt" | "cacheDriftTools" | "cacheDriftCacheKey" | "cacheDriftColdKey" | "preserveThinking" | "preserveOn" | "preserveOff" | "outputCap" | "quotaPlan" | "quotaWallet" | "quotaWalletLimit" | "quotaWalletUsed" | "requests", string>;
|
|
458
|
+
'en-US': Record<"account" | "storage" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "signedOut" | "signedIn" | "plan" | "expires" | "signIn" | "signInAgain" | "signOut" | "loading" | "connection" | "provider" | "connectionState" | "connected" | "untested" | "testConnection" | "enableProvider" | "selectAll" | "unselectAll" | "modelsHint" | "contextWindowReset" | "contextWindowResetAll" | "contextWindowResetAllConfirm" | "save" | "refreshQuota" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "storageNotice" | "email" | "lastUsed" | "pageDesc" | "signingIn" | "providerValue" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "contextWindowSection" | "contextWindowHint" | "contextWindowNoneEnabled" | "saved" | "saving" | "quotaSection" | "quotaDesc" | "refreshingQuota" | "quotaEmpty" | "updatedAt" | "loginFailed" | "planUnknown" | "cancelSignIn" | "testingConnection" | "testSuccess" | "testFailed" | "routeOwned" | "routeConflict" | "modelsSection" | "refreshCatalog" | "refreshingCatalog" | "cacheTtl" | "cacheTtlHint" | "cacheTtl1h" | "cacheTtl5m" | "effortLow" | "effortHigh" | "effortMax" | "resetAt" | "copied" | "authenticatedAt" | "openSignInPage" | "wireAnthropic" | "wireOpenai" | "quotaUnlimited" | "nickname" | "region" | "regionMainland" | "regionGlobal" | "refreshRejected" | "deviceCodeSection" | "deviceCodeHint" | "copyCode" | "userCode" | "codeExpires" | "waitingAuthorization" | "requestingCode" | "oauthHost" | "codingEndpoint" | "capVideo" | "capDynamicTools" | "capImageOnly" | "capNone" | "capVideoFootnote" | "capabilitiesTitle" | "capColMedia" | "capColTools" | "capColNotes" | "capPlan" | "capInputCap" | "capNoTools" | "speedRegular" | "speedHighspeed" | "quotaCost" | "minimumPlan" | "cacheTtlDefault" | "effortNone" | "contextWindowPlan" | "cacheSection" | "cacheDesc" | "cacheEmpty" | "cacheHitRatio" | "cacheCached" | "cacheFresh" | "cacheOutput" | "cacheRequests" | "cacheHint" | "cacheExpired" | "cacheDrift" | "cacheDriftFirst" | "cacheDriftStable" | "cacheDriftSystemPrompt" | "cacheDriftTools" | "cacheDriftCacheKey" | "cacheDriftColdKey" | "preserveThinking" | "preserveOn" | "preserveOff" | "outputCap" | "quotaPlan" | "quotaWallet" | "quotaWalletLimit" | "quotaWalletUsed" | "requests", string>;
|
|
450
459
|
};
|
|
451
460
|
export type KimiCodeLocaleKey = keyof typeof zh;
|
|
452
461
|
//# sourceMappingURL=locales.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/locales.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,kBAAkB,CAAA;AAE3C,eAAO,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/locales.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,YAAY,kBAAkB,CAAA;AAE3C,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoIL,CAAA;AAEV,eAAO,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,OAAO,EAAE,EAAE,MAAM,CAmIrC,CAAA;AAEV,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKxB,CAAA;AAED,MAAM,MAAM,iBAAiB,GAAG,MAAM,OAAO,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,iCAAiC,CAAA;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,iCAAiC,CAAA;AA2FtD,uEAAuE;AACvE,wBAAgB,qBAAqB,IAAI,IAAI,CAE5C"}
|
|
@@ -70,10 +70,30 @@ export declare const zh: {
|
|
|
70
70
|
readonly summaryConcise: "简洁(显示简要推理摘要)";
|
|
71
71
|
readonly summaryDetailed: "详细(显示更详细的推理摘要)";
|
|
72
72
|
readonly summaryNone: "无(不显示推理摘要)";
|
|
73
|
-
readonly searchProvider: "
|
|
74
|
-
readonly searchProviderHint: "选择 DSH
|
|
73
|
+
readonly searchProvider: "搜索来源";
|
|
74
|
+
readonly searchProviderHint: "选择 DSH 联网搜索使用默认来源,或改用当前 ChatGPT 订阅的 Codex 来源(自动走代理隧道)。抓取模式为 auto 时,抓取来源跟随此选择。";
|
|
75
75
|
readonly searchProviderDsh: "DSH 默认";
|
|
76
76
|
readonly searchProviderCodex: "ChatGPT(代理隧道)";
|
|
77
|
+
readonly fetchStatus: "抓取来源(只读)";
|
|
78
|
+
readonly fetchStatusHint: "以下内容由 Host 上报,只读展示。";
|
|
79
|
+
readonly fetchConfiguredProvider: "配置的抓取 Provider";
|
|
80
|
+
readonly fetchProviderDshDefault: "DSH 默认(Host 未固定抓取 provider)";
|
|
81
|
+
readonly switcherState: "抓取选择器状态";
|
|
82
|
+
readonly switcherStateIdle: "空闲(尚未应用选择)";
|
|
83
|
+
readonly switcherStateApplying: "应用中(正在切换 Host 的 web provider)";
|
|
84
|
+
readonly switcherStateApplied: "已应用";
|
|
85
|
+
readonly switcherStateMissing: "未找到可切换的 web 服务";
|
|
86
|
+
readonly switcherStateFailed: "切换失败,请检查 Host 日志";
|
|
87
|
+
readonly fetchMode: "抓取模式";
|
|
88
|
+
readonly fetchModeAuto: "auto(有可用代理或选了 ChatGPT 搜索时用插件抓取)";
|
|
89
|
+
readonly fetchModePlugin: "plugin(始终用本插件抓取)";
|
|
90
|
+
readonly fetchModeDsh: "dsh(保留 DSH 原有抓取来源)";
|
|
91
|
+
readonly fetchMaxBodyChars: "插件正文上限";
|
|
92
|
+
readonly fetchMaxResponseBytes: "插件响应体上限";
|
|
93
|
+
readonly characters: "字符";
|
|
94
|
+
readonly bytes: "字节";
|
|
95
|
+
readonly fetchLimitsInactive: "仅在实际使用插件抓取时生效;走 DSH 原有抓取来源时不适用这两个上限。";
|
|
96
|
+
readonly fetchConfigSource: "模式与上限在插件 Config 中修改(不是本页面偏好),修改后重载插件或重启 DSH 生效。";
|
|
77
97
|
readonly providerDefault: "使用 Provider 默认值";
|
|
78
98
|
readonly contextWindows: "模型上下文窗口";
|
|
79
99
|
readonly contextWindowsHint: "只列出已勾选「可用模型」的条目。默认取模型目录值(GPT-6 系列 384K,最高 872K;其余最高 1M),该值用于 DSH 的压缩与溢出判断,可输入 872K、512K 等容量;改过的模型可单独或一键恢复默认。";
|
|
@@ -225,10 +245,30 @@ export declare const dictionaries: {
|
|
|
225
245
|
readonly summaryConcise: "简洁(显示简要推理摘要)";
|
|
226
246
|
readonly summaryDetailed: "详细(显示更详细的推理摘要)";
|
|
227
247
|
readonly summaryNone: "无(不显示推理摘要)";
|
|
228
|
-
readonly searchProvider: "
|
|
229
|
-
readonly searchProviderHint: "选择 DSH
|
|
248
|
+
readonly searchProvider: "搜索来源";
|
|
249
|
+
readonly searchProviderHint: "选择 DSH 联网搜索使用默认来源,或改用当前 ChatGPT 订阅的 Codex 来源(自动走代理隧道)。抓取模式为 auto 时,抓取来源跟随此选择。";
|
|
230
250
|
readonly searchProviderDsh: "DSH 默认";
|
|
231
251
|
readonly searchProviderCodex: "ChatGPT(代理隧道)";
|
|
252
|
+
readonly fetchStatus: "抓取来源(只读)";
|
|
253
|
+
readonly fetchStatusHint: "以下内容由 Host 上报,只读展示。";
|
|
254
|
+
readonly fetchConfiguredProvider: "配置的抓取 Provider";
|
|
255
|
+
readonly fetchProviderDshDefault: "DSH 默认(Host 未固定抓取 provider)";
|
|
256
|
+
readonly switcherState: "抓取选择器状态";
|
|
257
|
+
readonly switcherStateIdle: "空闲(尚未应用选择)";
|
|
258
|
+
readonly switcherStateApplying: "应用中(正在切换 Host 的 web provider)";
|
|
259
|
+
readonly switcherStateApplied: "已应用";
|
|
260
|
+
readonly switcherStateMissing: "未找到可切换的 web 服务";
|
|
261
|
+
readonly switcherStateFailed: "切换失败,请检查 Host 日志";
|
|
262
|
+
readonly fetchMode: "抓取模式";
|
|
263
|
+
readonly fetchModeAuto: "auto(有可用代理或选了 ChatGPT 搜索时用插件抓取)";
|
|
264
|
+
readonly fetchModePlugin: "plugin(始终用本插件抓取)";
|
|
265
|
+
readonly fetchModeDsh: "dsh(保留 DSH 原有抓取来源)";
|
|
266
|
+
readonly fetchMaxBodyChars: "插件正文上限";
|
|
267
|
+
readonly fetchMaxResponseBytes: "插件响应体上限";
|
|
268
|
+
readonly characters: "字符";
|
|
269
|
+
readonly bytes: "字节";
|
|
270
|
+
readonly fetchLimitsInactive: "仅在实际使用插件抓取时生效;走 DSH 原有抓取来源时不适用这两个上限。";
|
|
271
|
+
readonly fetchConfigSource: "模式与上限在插件 Config 中修改(不是本页面偏好),修改后重载插件或重启 DSH 生效。";
|
|
232
272
|
readonly providerDefault: "使用 Provider 默认值";
|
|
233
273
|
readonly contextWindows: "模型上下文窗口";
|
|
234
274
|
readonly contextWindowsHint: "只列出已勾选「可用模型」的条目。默认取模型目录值(GPT-6 系列 384K,最高 872K;其余最高 1M),该值用于 DSH 的压缩与溢出判断,可输入 872K、512K 等容量;改过的模型可单独或一键恢复默认。";
|
|
@@ -306,6 +346,6 @@ export declare const dictionaries: {
|
|
|
306
346
|
readonly email: string;
|
|
307
347
|
readonly lastUsed: string;
|
|
308
348
|
};
|
|
309
|
-
en: Record<"stale" | "quota" | "account" | "storage" | "rotationStrategy" | "pending" | "accountId" | "relogin" | "tokens" | "title" | "hubTitle" | "intro" | "signedOut" | "signedIn" | "plan" | "expires" | "storageWindows" | "storageMacKeychain" | "storageLinuxFile" | "storageMemory" | "storageUnavailable" | "securityWindows" | "securityMacKeychain" | "securityLinuxFile" | "securityMemory" | "securityUnavailable" | "signIn" | "signInAgain" | "cancel" | "signOut" | "refreshToken" | "popupBlocked" | "continueLogin" | "loading" | "connection" | "provider" | "connectionState" | "connected" | "untested" | "testConnection" | "testing" | "latency" | "enableProvider" | "selectAll" | "unselectAll" | "models" | "modelsHint" | "proxySettings" | "proxyMode" | "proxyModeHint" | "proxyModeAuto" | "proxyModeCustom" | "proxyModeDirect" | "customProxyUrl" | "customProxyUrlHint" | "customProxyUrlPlaceholder" | "saveProxyUrl" | "proxyDetected" | "proxyDetectedEffective" | "proxyNoneDetected" | "proxyDirectHint" | "enhancements" | "fastMode" | "fastModeHint" | "outputVerbosity" | "outputVerbosityHint" | "verbosityLow" | "verbosityMedium" | "verbosityHigh" | "reasoningSummary" | "reasoningSummaryHint" | "summaryAuto" | "summaryConcise" | "summaryDetailed" | "summaryNone" | "searchProvider" | "searchProviderHint" | "searchProviderDsh" | "searchProviderCodex" | "providerDefault" | "contextWindows" | "contextWindowsHint" | "contextWindow" | "contextWindowInvalid" | "contextWindowReset" | "contextWindowResetAll" | "contextWindowResetAllConfirm" | "contextWindowsNoneEnabled" | "saveContextWindow" | "save" | "quickQuota" | "quickQuotaHint" | "quotaIntro" | "refreshQuota" | "refreshing" | "noQuota" | "quotaSignedOut" | "updated" | "primary" | "secondary" | "limitWindow" | "used" | "remaining" | "available" | "unavailable" | "unlimited" | "credits" | "monthlySpend" | "resetCredits" | "resetCreditExpires" | "useResetCredit" | "usingResetCredit" | "useResetCreditConfirm" | "resetCreditUsed" | "spendControlReached" | "limit" | "exhausted" | "resets" | "quickQuotaLabel" | "quickQuotaLoading" | "imageToolRunning" | "imageToolDone" | "imageToolFailed" | "image" | "openImage" | "openNamedImage" | "imageLoading" | "imageLoadFailed" | "imagePreviewClose" | "imagePreviewOpenOriginal" | "retry" | "unknown" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "storageNotice" | "email" | "lastUsed", string>;
|
|
349
|
+
en: Record<"stale" | "quota" | "account" | "storage" | "rotationStrategy" | "pending" | "accountId" | "relogin" | "tokens" | "title" | "hubTitle" | "intro" | "signedOut" | "signedIn" | "plan" | "expires" | "storageWindows" | "storageMacKeychain" | "storageLinuxFile" | "storageMemory" | "storageUnavailable" | "securityWindows" | "securityMacKeychain" | "securityLinuxFile" | "securityMemory" | "securityUnavailable" | "signIn" | "signInAgain" | "cancel" | "signOut" | "refreshToken" | "popupBlocked" | "continueLogin" | "loading" | "connection" | "provider" | "connectionState" | "connected" | "untested" | "testConnection" | "testing" | "latency" | "enableProvider" | "selectAll" | "unselectAll" | "models" | "modelsHint" | "proxySettings" | "proxyMode" | "proxyModeHint" | "proxyModeAuto" | "proxyModeCustom" | "proxyModeDirect" | "customProxyUrl" | "customProxyUrlHint" | "customProxyUrlPlaceholder" | "saveProxyUrl" | "proxyDetected" | "proxyDetectedEffective" | "proxyNoneDetected" | "proxyDirectHint" | "enhancements" | "fastMode" | "fastModeHint" | "outputVerbosity" | "outputVerbosityHint" | "verbosityLow" | "verbosityMedium" | "verbosityHigh" | "reasoningSummary" | "reasoningSummaryHint" | "summaryAuto" | "summaryConcise" | "summaryDetailed" | "summaryNone" | "searchProvider" | "searchProviderHint" | "searchProviderDsh" | "searchProviderCodex" | "fetchStatus" | "fetchStatusHint" | "fetchConfiguredProvider" | "fetchProviderDshDefault" | "switcherState" | "switcherStateIdle" | "switcherStateApplying" | "switcherStateApplied" | "switcherStateMissing" | "switcherStateFailed" | "fetchMode" | "fetchModeAuto" | "fetchModePlugin" | "fetchModeDsh" | "fetchMaxBodyChars" | "fetchMaxResponseBytes" | "characters" | "bytes" | "fetchLimitsInactive" | "fetchConfigSource" | "providerDefault" | "contextWindows" | "contextWindowsHint" | "contextWindow" | "contextWindowInvalid" | "contextWindowReset" | "contextWindowResetAll" | "contextWindowResetAllConfirm" | "contextWindowsNoneEnabled" | "saveContextWindow" | "save" | "quickQuota" | "quickQuotaHint" | "quotaIntro" | "refreshQuota" | "refreshing" | "noQuota" | "quotaSignedOut" | "updated" | "primary" | "secondary" | "limitWindow" | "used" | "remaining" | "available" | "unavailable" | "unlimited" | "credits" | "monthlySpend" | "resetCredits" | "resetCreditExpires" | "useResetCredit" | "usingResetCredit" | "useResetCreditConfirm" | "resetCreditUsed" | "spendControlReached" | "limit" | "exhausted" | "resets" | "quickQuotaLabel" | "quickQuotaLoading" | "imageToolRunning" | "imageToolDone" | "imageToolFailed" | "image" | "openImage" | "openNamedImage" | "imageLoading" | "imageLoadFailed" | "imagePreviewClose" | "imagePreviewOpenOriginal" | "retry" | "unknown" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "storageNotice" | "email" | "lastUsed", string>;
|
|
310
350
|
};
|
|
311
351
|
//# sourceMappingURL=locales.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../src/client/locales.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE,EAAG,0BAAmC,CAAA;AAIrD,eAAO,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../src/client/locales.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE,EAAG,0BAAmC,CAAA;AAIrD,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA0JL,CAAA;AAEV,eAAO,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,OAAO,EAAE,EAAE,MAAM,CAwJ9C,CAAA;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,EAAE,CAAA;AACvC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAa,CAAA"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { type OutboundContentBlock, type GenerateOptions, type StreamChunk } from '../common/llm-compat.ts';
|
|
2
2
|
import type { AttachmentStore } from '@deepseek-ai/dsh-attachment';
|
|
3
3
|
import { type AntigravityModelDef } from './types.ts';
|
|
4
|
+
import { type AntigravityToolSchemaOptions } from './tool-schema.ts';
|
|
4
5
|
export declare function sanitizeToolCallId(id: string, fallbackName: string): string;
|
|
5
6
|
/** Attachment seam this route needs: verified bytes for one durable image. */
|
|
6
7
|
export type AttachmentImageReader = Pick<AttachmentStore, 'readImage'>;
|
|
@@ -54,8 +55,8 @@ export declare function convertMessages(options: GenerateOptions, model: Antigra
|
|
|
54
55
|
role: string;
|
|
55
56
|
parts: Array<Record<string, unknown>>;
|
|
56
57
|
}>;
|
|
57
|
-
export declare function stripMetaSchema(schema: unknown): unknown;
|
|
58
|
-
export declare function convertTools(tools: GenerateOptions['tools']): Array<Record<string, unknown>> | undefined;
|
|
58
|
+
export declare function stripMetaSchema(schema: unknown, options?: AntigravityToolSchemaOptions): unknown;
|
|
59
|
+
export declare function convertTools(tools: GenerateOptions['tools'], modelId?: string, runtimeModel?: string): Array<Record<string, unknown>> | undefined;
|
|
59
60
|
export declare function mapToolChoiceMode(toolChoice: unknown): string;
|
|
60
61
|
export declare function getMaxOutputTokens(modelId: string, runtimeModel: string): number;
|
|
61
62
|
export declare function progressExplanationInstruction(tools: GenerateOptions['tools']): string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapper.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity/mapper.ts"],"names":[],"mappings":"AACA,OAAO,EAGL,KAAK,oBAAoB,EAEzB,KAAK,eAAe,EAEpB,KAAK,WAAW,EAEjB,MAAM,yBAAyB,CAAA;AAChC,OAAO,KAAK,EAAE,eAAe,EAAsB,MAAM,6BAA6B,CAAA;AAEtF,OAAO,EAQL,KAAK,mBAAmB,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YAAY,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,GAAG,WAAW,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,IAAI,CAAA;IAChF,UAAU,EAAE,OAAO,CAAA;IACnB,WAAW,EAAE,OAAO,CAAA;IACpB,aAAa,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,IAAI,CAAA;IAC5C,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB,IAAI,EAAE,OAAO,CAAA;IACb,QAAQ,EAAE,OAAO,CAAA;CAClB;AAED,wBAAgB,iBAAiB,IAAI,WAAW,CAW/C;AA2CD,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,WAAW,GAAG,WAAW,EAAE,CAiGjF;AAED,wBAAgB,WAAW,CAAC,KAAK,EAAE,WAAW,GAAG,WAAW,EAAE,CAmB7D"}
|
|
@@ -1,2 +1,14 @@
|
|
|
1
|
-
|
|
1
|
+
/** One outbound tool-schema conversion's per-target options. */
|
|
2
|
+
export interface AntigravityToolSchemaOptions {
|
|
3
|
+
/**
|
|
4
|
+
* Collapse `anyOf`/`oneOf`/`allOf` and type unions into one declared form.
|
|
5
|
+
*
|
|
6
|
+
* Gemini ignores `anyOf` and takes the composed form as sent. Antigravity routes
|
|
7
|
+
* a Claude-family request to Vertex Anthropic, whose `input_schema` check rejects
|
|
8
|
+
* a tool schema the request still composes with (#39). That is a gateway limit,
|
|
9
|
+
* not a JSON Schema rule: the caller's schema is valid draft 2020-12.
|
|
10
|
+
*/
|
|
11
|
+
foldUnions?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export declare function toAntigravityToolSchema(schema: unknown, options?: AntigravityToolSchemaOptions): unknown;
|
|
2
14
|
//# sourceMappingURL=tool-schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tool-schema.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity/tool-schema.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"tool-schema.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity/tool-schema.ts"],"names":[],"mappings":"AAUA,gEAAgE;AAChE,MAAM,WAAW,4BAA4B;IAC3C;;;;;;;OAOG;IACH,UAAU,CAAC,EAAE,OAAO,CAAA;CACrB;AAgND,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,OAAO,EACf,OAAO,GAAE,4BAAiC,GACzC,OAAO,CA6ET"}
|
|
@@ -179,7 +179,7 @@
|
|
|
179
179
|
* marker in the request that caches nothing the next turn can reuse.
|
|
180
180
|
*/
|
|
181
181
|
import { type ContentBlock, type GenerateOptions, type StreamChunk } from '../common/llm-compat.ts';
|
|
182
|
-
import type { AttachmentStore } from '@deepseek-ai/dsh-attachment';
|
|
182
|
+
import type { AttachmentStore, ImageAttachmentRef } from '@deepseek-ai/dsh-attachment';
|
|
183
183
|
import { type ClaudeCacheTtl } from './types.ts';
|
|
184
184
|
/**
|
|
185
185
|
* The Claude Code identity block's exact text.
|
|
@@ -365,8 +365,14 @@ export declare function claudeWireToolName(name: string, names?: ClaudeToolNames
|
|
|
365
365
|
* invent a tool.
|
|
366
366
|
*/
|
|
367
367
|
export declare function claudeOriginalToolName(name: string, names?: ClaudeToolNames): string;
|
|
368
|
-
/**
|
|
369
|
-
|
|
368
|
+
/**
|
|
369
|
+
* Attachment seam this route needs: verified bytes for one durable image, and a
|
|
370
|
+
* downscaled request version of one that is too large for this request. Every
|
|
371
|
+
* harness generation in the peer range declares readImageRequest; a backend
|
|
372
|
+
* that cannot derive request versions rejects the call, and that rejection is
|
|
373
|
+
* handled like any other unreadable image.
|
|
374
|
+
*/
|
|
375
|
+
export type AttachmentImageReader = Pick<AttachmentStore, 'readImage' | 'readImageRequest'>;
|
|
370
376
|
/** One durable image resolved for an in-flight request, or proven unreadable. */
|
|
371
377
|
export type ResolvedRequestImage = {
|
|
372
378
|
readonly kind: 'inline';
|
|
@@ -396,10 +402,58 @@ export declare const MAX_REQUEST_IMAGE_BYTES: number;
|
|
|
396
402
|
* instead of answering about a blank.
|
|
397
403
|
*/
|
|
398
404
|
export declare function offloadOldestRequestImages(options: GenerateOptions): GenerateOptions;
|
|
405
|
+
/**
|
|
406
|
+
* Longest side, in pixels, the wire accepts for one image in any request.
|
|
407
|
+
* TRANSCRIBED from the API's vision limits. The harness normalizes stored
|
|
408
|
+
* images to an 8192 px long edge, so a stored image can still exceed this.
|
|
409
|
+
*/
|
|
410
|
+
export declare const MAX_IMAGE_EDGE = 8000;
|
|
411
|
+
/**
|
|
412
|
+
* Longest side, in pixels, the wire accepts for every image once one request
|
|
413
|
+
* carries more than {@link MANY_IMAGE_THRESHOLD} images. TRANSCRIBED: past that
|
|
414
|
+
* count the request is rejected with "At least one of the image dimensions
|
|
415
|
+
* exceed max allowed size for many-image requests: 2000 pixels".
|
|
416
|
+
*
|
|
417
|
+
* Rejection is a 400 for the whole request. History keeps every image, so a
|
|
418
|
+
* long session can only add images. Once it holds more than twenty and one is
|
|
419
|
+
* wider than 2000 px, which is common for side-by-side screenshots, every later
|
|
420
|
+
* turn fails. The session cannot recover by itself.
|
|
421
|
+
*/
|
|
422
|
+
export declare const MANY_IMAGE_EDGE = 2000;
|
|
423
|
+
/** Image count above which {@link MANY_IMAGE_EDGE} applies. TRANSCRIBED. */
|
|
424
|
+
export declare const MANY_IMAGE_THRESHOLD = 20;
|
|
425
|
+
/**
|
|
426
|
+
* Long-edge ceiling every image of this request must meet.
|
|
427
|
+
*
|
|
428
|
+
* The API counts image blocks, so a repeated attachment counts every time it
|
|
429
|
+
* appears. The count is taken before images are resolved: a block that later
|
|
430
|
+
* degrades to placeholder text still counts. Overcounting can only lower the
|
|
431
|
+
* ceiling, and a lower ceiling never causes a rejection.
|
|
432
|
+
*/
|
|
433
|
+
export declare function requestImageEdgeLimit(options: GenerateOptions): number;
|
|
434
|
+
/**
|
|
435
|
+
* Request-version target for one stored image whose long edge is over the
|
|
436
|
+
* ceiling, or undefined when it fits. The short edge rounds to the nearest
|
|
437
|
+
* pixel, matching the harness's long-edge resize. A reference without usable
|
|
438
|
+
* dimensions is sent as stored.
|
|
439
|
+
*/
|
|
440
|
+
export declare function requestImageEdgeTarget(ref: ImageAttachmentRef, edge: number): {
|
|
441
|
+
width: number;
|
|
442
|
+
height: number;
|
|
443
|
+
maxPixels: number;
|
|
444
|
+
maxBytes: number;
|
|
445
|
+
} | undefined;
|
|
399
446
|
/**
|
|
400
447
|
* Read every durable { type: 'image', attachment } block one request carries.
|
|
401
448
|
* An unreadable image resolves to 'unavailable' rather than disappearing, so
|
|
402
449
|
* the model is told the picture is missing instead of answering about a blank.
|
|
450
|
+
*
|
|
451
|
+
* An image whose long edge is over this request's ceiling is sent as the
|
|
452
|
+
* harness's downscaled request version (see {@link requestImageEdgeLimit}). The
|
|
453
|
+
* stored image and durable history do not change, and an image that already
|
|
454
|
+
* fits is sent byte-for-byte as stored. If a downscaled version cannot be
|
|
455
|
+
* produced, the image resolves to 'unavailable'. A visible placeholder is better
|
|
456
|
+
* than sending the original, which would make the whole request fail.
|
|
403
457
|
*/
|
|
404
458
|
export declare function resolveRequestImages(options: GenerateOptions, attachments: AttachmentImageReader | undefined, signal?: AbortSignal): Promise<ResolvedRequestImages>;
|
|
405
459
|
type AnthropicBlock = Record<string, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mapper.d.ts","sourceRoot":"","sources":["../../../../src/host/claude/mapper.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmLG;AAGH,OAAO,EAEL,KAAK,YAAY,EAEjB,KAAK,eAAe,EAEpB,KAAK,WA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,CAInE;AA0BD;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,iBAAiB,GAAG,WAAW,EAAE,CA+JvF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codex-fetch.d.ts","sourceRoot":"","sources":["../../../src/host/codex-fetch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,gBAAgB,EAA6C,MAAM,sBAAsB,CAAA;
|
|
1
|
+
{"version":3,"file":"codex-fetch.d.ts","sourceRoot":"","sources":["../../../src/host/codex-fetch.ts"],"names":[],"mappings":"AAAA,OAAO,EAAY,KAAK,gBAAgB,EAA6C,MAAM,sBAAsB,CAAA;AAKjH,KAAK,SAAS,GAAG,OAAO,KAAK,CAAA;AAE7B,4EAA4E;AAC5E,MAAM,MAAM,mBAAmB,GAAG,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,SAAS,MAAM,EAAE,CAAC,CAAA;AAElF,MAAM,WAAW,yBAAyB;IACxC,OAAO,CAAC,EAAE,SAAS,CAAA;IACnB,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,YAAY,CAAC,EAAE,MAAM,CAAA;IACrB;;;OAGG;IACH,oBAAoB,CAAC,EAAE,mBAAmB,CAAA;CAC3C;AAED,wBAAgB,wBAAwB,CACtC,OAAO,GAAE,yBAA8B,GACtC,gBAAgB,CAgGlB"}
|
|
@@ -1,5 +1,15 @@
|
|
|
1
1
|
export declare const DEFAULT_STREAM_IDLE_TIMEOUT_MS = 300000;
|
|
2
2
|
export declare const STREAM_IDLE_TIMEOUT_CODE = "LLM_STREAM_IDLE_TIMEOUT";
|
|
3
|
+
/**
|
|
4
|
+
* The same budget under the name every provider adapter passes it by.
|
|
5
|
+
*
|
|
6
|
+
* Six provider `types.ts` files each declared their own
|
|
7
|
+
* `STREAM_IDLE_TIMEOUT_MS = 300_000`, so one line ended up importing a sibling
|
|
8
|
+
* line's copy just to name the same number. This alias is the single home: the
|
|
9
|
+
* value is unchanged, and an adapter that took the constant from another line
|
|
10
|
+
* can now take it from here without renaming its local usage.
|
|
11
|
+
*/
|
|
12
|
+
export declare const STREAM_IDLE_TIMEOUT_MS = 300000;
|
|
3
13
|
/**
|
|
4
14
|
* 为异步流包裹可复位的空闲超时看门狗。
|
|
5
15
|
* 当流式 chunk 产出之间的间隔超过指定阈值时,主动终止并抛出带有 TIMEOUT 的 LlmError。
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"idle-watchdog.d.ts","sourceRoot":"","sources":["../../../../src/host/common/idle-watchdog.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,8BAA8B,SAAU,CAAA;AACrD,eAAO,MAAM,wBAAwB,4BAA4B,CAAA;AAEjE;;;GAGG;AACH,wBAAuB,sBAAsB,CAAC,CAAC,EAC7C,MAAM,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,aAAa,CAAC,CAAC,CAAC,EACjD,cAAc,EAAE,WAAW,GAAG,SAAS,EACvC,SAAS,GAAE,MAAuC,EAClD,WAAW,GAAE,MAAiC,EAC9C,WAAW,GAAE,MAAc,GAC1B,aAAa,CAAC,CAAC,CAAC,CAwClB"}
|
|
1
|
+
{"version":3,"file":"idle-watchdog.d.ts","sourceRoot":"","sources":["../../../../src/host/common/idle-watchdog.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,8BAA8B,SAAU,CAAA;AACrD,eAAO,MAAM,wBAAwB,4BAA4B,CAAA;AAEjE;;;;;;;;GAQG;AACH,eAAO,MAAM,sBAAsB,SAAiC,CAAA;AAEpE;;;GAGG;AACH,wBAAuB,sBAAsB,CAAC,CAAC,EAC7C,MAAM,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,aAAa,CAAC,CAAC,CAAC,EACjD,cAAc,EAAE,WAAW,GAAG,SAAS,EACvC,SAAS,GAAE,MAAuC,EAClD,WAAW,GAAE,MAAiC,EAC9C,WAAW,GAAE,MAAc,GAC1B,aAAa,CAAC,CAAC,CAAC,CAwClB"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Rough prompt-size estimation for one request.
|
|
3
|
+
*
|
|
4
|
+
* Shared because every line uses it for the same purpose: keeping `max_tokens`
|
|
5
|
+
* from making a request the service will reject outright, before a single token is
|
|
6
|
+
* spent. The service count stays authoritative; this only has to be close enough
|
|
7
|
+
* to leave room.
|
|
8
|
+
*
|
|
9
|
+
* @module dsh-chatgpt-subscription/prompt-estimate
|
|
10
|
+
*/
|
|
11
|
+
import type { GenerateOptions } from "./llm-compat.ts";
|
|
12
|
+
/**
|
|
13
|
+
* Rough prompt size for one request, in tokens.
|
|
14
|
+
*
|
|
15
|
+
* Derived from the serialized text with the usual ~4 characters per token
|
|
16
|
+
* heuristic. It is deliberately an estimate: the purpose is only to keep
|
|
17
|
+
* `max_tokens` from making a request the service will reject outright, and the
|
|
18
|
+
* service's own count remains authoritative. Undefined is returned for an empty
|
|
19
|
+
* request so the caller leaves the cap alone rather than clamping against zero.
|
|
20
|
+
*/
|
|
21
|
+
export declare function estimatedInputTokens(options: GenerateOptions): number | undefined;
|
|
22
|
+
//# sourceMappingURL=prompt-estimate.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"prompt-estimate.d.ts","sourceRoot":"","sources":["../../../../src/host/common/prompt-estimate.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AAgBtD;;;;;;;;GAQG;AACH,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,eAAe,GAAG,MAAM,GAAG,SAAS,CA4BjF"}
|