@eddyskywalker/dsh-chatgpt-subscription 0.41.1 → 0.43.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +77 -0
- package/README.md +1 -0
- package/lib/client.js +445 -476
- package/lib/client.js.map +1 -1
- package/lib/index.js +632 -219
- package/lib/types/client/command-code/CommandCodeComposerQuota.d.ts.map +1 -1
- package/lib/types/client/common/format.d.ts +16 -0
- package/lib/types/client/common/format.d.ts.map +1 -1
- package/lib/types/client/index.d.ts.map +1 -1
- package/lib/types/client/kimi-code/KimiCodeComposerQuota.d.ts.map +1 -1
- package/lib/types/client/kimi-code/KimiCodeSection.d.ts.map +1 -1
- package/lib/types/client/kimi-code/KimiQuotaCard.d.ts.map +1 -1
- package/lib/types/client/kimi-code/locales.d.ts +41 -14
- 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/hub.d.ts.map +1 -1
- package/lib/types/client/locales-ru/kimi-code.d.ts.map +1 -1
- package/lib/types/client/locales-ru/opendesign.d.ts.map +1 -1
- package/lib/types/client/locales.d.ts +1 -27
- package/lib/types/client/locales.d.ts.map +1 -1
- package/lib/types/client/opendesign/OpenDesignSection.d.ts.map +1 -1
- package/lib/types/client/opendesign/locales.d.ts +12 -0
- package/lib/types/client/opendesign/locales.d.ts.map +1 -1
- package/lib/types/compat.d.ts +1 -1
- package/lib/types/host/claude/types.d.ts +7 -1
- package/lib/types/host/claude/types.d.ts.map +1 -1
- package/lib/types/host/compaction-route/index.d.ts +16 -1
- package/lib/types/host/compaction-route/index.d.ts.map +1 -1
- package/lib/types/host/glm-coding-plan/types.d.ts +5 -1
- package/lib/types/host/glm-coding-plan/types.d.ts.map +1 -1
- package/lib/types/host/kimi-code/account-pool.d.ts +26 -1
- package/lib/types/host/kimi-code/account-pool.d.ts.map +1 -1
- package/lib/types/host/kimi-code/client.d.ts +24 -0
- package/lib/types/host/kimi-code/client.d.ts.map +1 -1
- package/lib/types/host/kimi-code/model-catalog.d.ts.map +1 -1
- package/lib/types/host/kimi-code/oauth.d.ts +16 -0
- 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/opendesign/adapter.d.ts +11 -13
- package/lib/types/host/opendesign/adapter.d.ts.map +1 -1
- package/lib/types/host/opendesign/catalog.d.ts +14 -0
- package/lib/types/host/opendesign/catalog.d.ts.map +1 -1
- package/lib/types/host/opendesign/line.d.ts +17 -6
- package/lib/types/host/opendesign/line.d.ts.map +1 -1
- package/lib/types/host/opendesign/routes.d.ts.map +1 -1
- package/lib/types/host/opendesign/token-store.d.ts +91 -4
- package/lib/types/host/opendesign/token-store.d.ts.map +1 -1
- package/lib/types/host/opendesign/types.d.ts.map +1 -1
- package/lib/types/host/qoder/types.d.ts +6 -1
- package/lib/types/host/qoder/types.d.ts.map +1 -1
- package/lib/types/host/step-code/types.d.ts +5 -1
- package/lib/types/host/step-code/types.d.ts.map +1 -1
- package/lib/types/index.d.ts.map +1 -1
- package/lib/types/shared/opendesign-contracts.d.ts +24 -1
- package/lib/types/shared/opendesign-contracts.d.ts.map +1 -1
- package/package.json +1 -1
- package/lib/types/client/CompactionRouteBundleConfig.d.ts +0 -19
- package/lib/types/client/CompactionRouteBundleConfig.d.ts.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommandCodeComposerQuota.d.ts","sourceRoot":"","sources":["../../../../src/client/command-code/CommandCodeComposerQuota.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAA;AAC5F,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACjF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAA;AAClF,OAAO,EAAkC,KAAK,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;
|
|
1
|
+
{"version":3,"file":"CommandCodeComposerQuota.d.ts","sourceRoot":"","sources":["../../../../src/client/command-code/CommandCodeComposerQuota.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAA;AAC5F,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACjF,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,wCAAwC,CAAA;AAClF,OAAO,EAAkC,KAAK,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;AAG1G,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,cAAc,CAAA;AAI9C,KAAK,KAAK,GAAG,YAAY,CAAC,0BAA0B,CAAC,GAAG,WAAW,CAAC,OAAO,eAAe,CAAC,GAAG;IAC5F,SAAS,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAA;IAC7C,kBAAkB,EAAE,MAAM,IAAI,CAAA;CAC/B,CAAA;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,oBAAoB,GAAG,IAAI,GAAG,kBAAkB,GAAG,IAAI,CAoC/F;AAED,wBAAgB,wBAAwB,CAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,CAW9G"}
|
|
@@ -29,6 +29,22 @@ export declare function formatCapacity(value: number): string;
|
|
|
29
29
|
* soup. One decimal tells 1M from 1.05M without pretending the figure is exact.
|
|
30
30
|
*/
|
|
31
31
|
export declare function formatTokenCount(value: number): string;
|
|
32
|
+
/**
|
|
33
|
+
* A share as a person reads it: at most `digits` decimals, no trailing zeros.
|
|
34
|
+
*
|
|
35
|
+
* The formatting has to happen on the RESULT rather than on its inputs. Most
|
|
36
|
+
* percentages on these cards are a remainder — `100 - used` — and that
|
|
37
|
+
* subtraction is exactly where binary floating point shows up: `100 - 8.04` is
|
|
38
|
+
* `91.96000000000001`, `100 - 0.0007 * 100` is `99.93` but `100 - 0.0014 * 100`
|
|
39
|
+
* is `99.86` only because it happens to land on a friendly neighbour. String
|
|
40
|
+
* interpolation of the difference therefore prints a long tail for roughly a
|
|
41
|
+
* third of all two-decimal inputs, which reads as "sometimes" — and no amount of
|
|
42
|
+
* rounding the used share beforehand fixes a subtraction done afterwards.
|
|
43
|
+
*
|
|
44
|
+
* Anything non-finite renders as `0`, because every caller has already decided
|
|
45
|
+
* the window is measured; this is the last line of defence, not a claim.
|
|
46
|
+
*/
|
|
47
|
+
export declare function formatPercent(value: number, digits?: number): string;
|
|
32
48
|
/** A stamp in the reader's own locale, or an em dash when there is none. */
|
|
33
49
|
export declare function formatDate(ms?: number | null): string;
|
|
34
50
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../src/client/common/format.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAOlE;AAED,uEAAuE;AACvE,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIpD;AAED;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAQtD;AAED,4EAA4E;AAC5E,wBAAgB,UAAU,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAOrD;AAED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,MAAM,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAGhG;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAU5D"}
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../../../src/client/common/format.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH;;;;;;GAMG;AACH,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAOlE;AAED,uEAAuE;AACvE,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIpD;AAED;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAQtD;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,SAAI,GAAG,MAAM,CAM/D;AAED,4EAA4E;AAC5E,wBAAgB,UAAU,CAAC,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAOrD;AAED;;;;;;;;;GASG;AACH,wBAAgB,sBAAsB,CAAC,WAAW,EAAE,MAAM,GAAG;IAAE,OAAO,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAGhG;AAED;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,CAU5D"}
|
|
@@ -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;
|
|
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;AAQ/D,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D;CACF;AAED,eAAO,MAAM,MAAM,UAQlB,CAAA;AAED,wBAAgB,KAAK,CAAC,GAAG,EAAE,aAAa,GAAG,IAAI,CA2N9C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KimiCodeComposerQuota.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/KimiCodeComposerQuota.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAA;AAC5F,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACjF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAA;AAC5E,OAAO,EAAkC,KAAK,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;
|
|
1
|
+
{"version":3,"file":"KimiCodeComposerQuota.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/KimiCodeComposerQuota.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAA;AAC5F,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACjF,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,qCAAqC,CAAA;AAC5E,OAAO,EAAkC,KAAK,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;AAG1G,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAChD,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAI3C,KAAK,KAAK,GAAG,YAAY,CAAC,0BAA0B,CAAC,GAAG,WAAW,CAAC,OAAO,YAAY,CAAC,GAAG;IACzF,SAAS,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAA;IAC7C,kBAAkB,EAAE,MAAM,IAAI,CAAA;CAC/B,CAAA;AAED;;;;;;GAMG;AACH,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,iBAAiB,GAAG,IAAI,GAAG,kBAAkB,GAAG,IAAI,CAmC5F;AAED,wBAAgB,qBAAqB,CAAC,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,CAW3G"}
|
|
@@ -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;
|
|
1
|
+
{"version":3,"file":"KimiCodeSection.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/KimiCodeSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAmD,MAAM,OAAO,CAAA;AA0BvE,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC;AA6BD,wBAAgB,eAAe,CAAC,EAAE,aAAa,EAAE,kBAAkB,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CAyrBhG"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KimiQuotaCard.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/KimiQuotaCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,
|
|
1
|
+
{"version":3,"file":"KimiQuotaCard.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/KimiQuotaCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AACH,OAAO,KAAsC,MAAM,OAAO,CAAA;AAC1D,OAAO,KAAK,EAAE,mBAAmB,EAA6B,MAAM,wCAAwC,CAAA;AAG5G,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,cAAc,CAAA;AAEhD,MAAM,WAAW,kBAAkB;IACjC,+BAA+B;IAC/B,KAAK,CAAC,EAAE,mBAAmB,CAAA;IAC3B,0CAA0C;IAC1C,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAA;IACxB,8BAA8B;IAC9B,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,2BAA2B;IAC3B,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,yBAAyB;IACzB,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,YAAY,CAAA;CACrB;AAmFD,wBAAgB,aAAa,CAAC,KAAK,EAAE,kBAAkB,GAAG,KAAK,CAAC,YAAY,CA0M3E"}
|
|
@@ -96,11 +96,7 @@ export declare const zh: {
|
|
|
96
96
|
readonly cacheOutput: "输出 tokens";
|
|
97
97
|
readonly cacheRequests: "请求数";
|
|
98
98
|
readonly cacheWrite: "缓存写入";
|
|
99
|
-
readonly cacheWrite5m: "5 分钟档";
|
|
100
|
-
readonly cacheWrite1h: "1 小时档";
|
|
101
|
-
readonly cacheWriteHint: "写入是独立计费项:1h 写入单价约为 5m 的两倍,命中后会按原 TTL 续期。分档显示 0 表示服务端没有回报该档的写入数(响应头缺失就是静默),不等于该档确实没写入。";
|
|
102
99
|
readonly unknownMetric: "暂无";
|
|
103
|
-
readonly cacheHint: "同一会话内:系统提示与工具列表一旦变化会使缓存整体失效,因此保持工具集合稳定、把新增内容追加在末尾,命中率最高。";
|
|
104
100
|
readonly cacheExpired: "本会话已空闲超过缓存有效期,下一轮将重新处理约 {tokens} 个 token。";
|
|
105
101
|
readonly cacheDrift: "最近前缀状态";
|
|
106
102
|
readonly cacheDriftFirst: "首个请求(缓存为空)";
|
|
@@ -152,6 +148,19 @@ export declare const zh: {
|
|
|
152
148
|
readonly loginFailed: "登录失败";
|
|
153
149
|
readonly requests: "次请求";
|
|
154
150
|
readonly tokens: "tokens";
|
|
151
|
+
readonly compactionRoute: "压缩模型";
|
|
152
|
+
readonly compactionRouteHint: "自动压缩时由哪个模型来写摘要(仅对本线路的会话生效)。留空则继续用会话自己的模型,也就继续消耗这条线路的额度。";
|
|
153
|
+
readonly compactionRouteProvider: "线路";
|
|
154
|
+
readonly compactionRouteModel: "模型";
|
|
155
|
+
readonly compactionRouteSave: "保存";
|
|
156
|
+
readonly compactionRouteClear: "恢复会话模型";
|
|
157
|
+
readonly compactionRouteChange: "设置";
|
|
158
|
+
readonly compactionRouteFollow: "跟随会话模型(默认)";
|
|
159
|
+
readonly compactionRouteSaved: "已保存,下次压缩生效。";
|
|
160
|
+
readonly compactionRouteFailed: "保存失败";
|
|
161
|
+
readonly compactionRouteNoVideo: "该模型不接受视频:含视频的会话会回落到会话模型完成压缩。";
|
|
162
|
+
readonly compactionRouteNoImage: "该模型不接受图片:摘要里的截图会被替换为占位文本。";
|
|
163
|
+
readonly compactionRouteEmpty: "没有可用的线路——先登录任意一条线路再回来设置。";
|
|
155
164
|
readonly accountPool: string;
|
|
156
165
|
readonly addAccount: string;
|
|
157
166
|
readonly accountCount: string;
|
|
@@ -283,11 +292,7 @@ export declare const dictionaries: {
|
|
|
283
292
|
readonly cacheOutput: "输出 tokens";
|
|
284
293
|
readonly cacheRequests: "请求数";
|
|
285
294
|
readonly cacheWrite: "缓存写入";
|
|
286
|
-
readonly cacheWrite5m: "5 分钟档";
|
|
287
|
-
readonly cacheWrite1h: "1 小时档";
|
|
288
|
-
readonly cacheWriteHint: "写入是独立计费项:1h 写入单价约为 5m 的两倍,命中后会按原 TTL 续期。分档显示 0 表示服务端没有回报该档的写入数(响应头缺失就是静默),不等于该档确实没写入。";
|
|
289
295
|
readonly unknownMetric: "暂无";
|
|
290
|
-
readonly cacheHint: "同一会话内:系统提示与工具列表一旦变化会使缓存整体失效,因此保持工具集合稳定、把新增内容追加在末尾,命中率最高。";
|
|
291
296
|
readonly cacheExpired: "本会话已空闲超过缓存有效期,下一轮将重新处理约 {tokens} 个 token。";
|
|
292
297
|
readonly cacheDrift: "最近前缀状态";
|
|
293
298
|
readonly cacheDriftFirst: "首个请求(缓存为空)";
|
|
@@ -339,6 +344,19 @@ export declare const dictionaries: {
|
|
|
339
344
|
readonly loginFailed: "登录失败";
|
|
340
345
|
readonly requests: "次请求";
|
|
341
346
|
readonly tokens: "tokens";
|
|
347
|
+
readonly compactionRoute: "压缩模型";
|
|
348
|
+
readonly compactionRouteHint: "自动压缩时由哪个模型来写摘要(仅对本线路的会话生效)。留空则继续用会话自己的模型,也就继续消耗这条线路的额度。";
|
|
349
|
+
readonly compactionRouteProvider: "线路";
|
|
350
|
+
readonly compactionRouteModel: "模型";
|
|
351
|
+
readonly compactionRouteSave: "保存";
|
|
352
|
+
readonly compactionRouteClear: "恢复会话模型";
|
|
353
|
+
readonly compactionRouteChange: "设置";
|
|
354
|
+
readonly compactionRouteFollow: "跟随会话模型(默认)";
|
|
355
|
+
readonly compactionRouteSaved: "已保存,下次压缩生效。";
|
|
356
|
+
readonly compactionRouteFailed: "保存失败";
|
|
357
|
+
readonly compactionRouteNoVideo: "该模型不接受视频:含视频的会话会回落到会话模型完成压缩。";
|
|
358
|
+
readonly compactionRouteNoImage: "该模型不接受图片:摘要里的截图会被替换为占位文本。";
|
|
359
|
+
readonly compactionRouteEmpty: "没有可用的线路——先登录任意一条线路再回来设置。";
|
|
342
360
|
readonly accountPool: string;
|
|
343
361
|
readonly addAccount: string;
|
|
344
362
|
readonly accountCount: string;
|
|
@@ -468,11 +486,7 @@ export declare const dictionaries: {
|
|
|
468
486
|
readonly cacheOutput: "输出 tokens";
|
|
469
487
|
readonly cacheRequests: "请求数";
|
|
470
488
|
readonly cacheWrite: "缓存写入";
|
|
471
|
-
readonly cacheWrite5m: "5 分钟档";
|
|
472
|
-
readonly cacheWrite1h: "1 小时档";
|
|
473
|
-
readonly cacheWriteHint: "写入是独立计费项:1h 写入单价约为 5m 的两倍,命中后会按原 TTL 续期。分档显示 0 表示服务端没有回报该档的写入数(响应头缺失就是静默),不等于该档确实没写入。";
|
|
474
489
|
readonly unknownMetric: "暂无";
|
|
475
|
-
readonly cacheHint: "同一会话内:系统提示与工具列表一旦变化会使缓存整体失效,因此保持工具集合稳定、把新增内容追加在末尾,命中率最高。";
|
|
476
490
|
readonly cacheExpired: "本会话已空闲超过缓存有效期,下一轮将重新处理约 {tokens} 个 token。";
|
|
477
491
|
readonly cacheDrift: "最近前缀状态";
|
|
478
492
|
readonly cacheDriftFirst: "首个请求(缓存为空)";
|
|
@@ -524,6 +538,19 @@ export declare const dictionaries: {
|
|
|
524
538
|
readonly loginFailed: "登录失败";
|
|
525
539
|
readonly requests: "次请求";
|
|
526
540
|
readonly tokens: "tokens";
|
|
541
|
+
readonly compactionRoute: "压缩模型";
|
|
542
|
+
readonly compactionRouteHint: "自动压缩时由哪个模型来写摘要(仅对本线路的会话生效)。留空则继续用会话自己的模型,也就继续消耗这条线路的额度。";
|
|
543
|
+
readonly compactionRouteProvider: "线路";
|
|
544
|
+
readonly compactionRouteModel: "模型";
|
|
545
|
+
readonly compactionRouteSave: "保存";
|
|
546
|
+
readonly compactionRouteClear: "恢复会话模型";
|
|
547
|
+
readonly compactionRouteChange: "设置";
|
|
548
|
+
readonly compactionRouteFollow: "跟随会话模型(默认)";
|
|
549
|
+
readonly compactionRouteSaved: "已保存,下次压缩生效。";
|
|
550
|
+
readonly compactionRouteFailed: "保存失败";
|
|
551
|
+
readonly compactionRouteNoVideo: "该模型不接受视频:含视频的会话会回落到会话模型完成压缩。";
|
|
552
|
+
readonly compactionRouteNoImage: "该模型不接受图片:摘要里的截图会被替换为占位文本。";
|
|
553
|
+
readonly compactionRouteEmpty: "没有可用的线路——先登录任意一条线路再回来设置。";
|
|
527
554
|
readonly accountPool: string;
|
|
528
555
|
readonly addAccount: string;
|
|
529
556
|
readonly accountCount: string;
|
|
@@ -556,8 +583,8 @@ export declare const dictionaries: {
|
|
|
556
583
|
readonly quotaFactsScope: string;
|
|
557
584
|
readonly composerLabel: string;
|
|
558
585
|
};
|
|
559
|
-
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" | "signingIn" | "modelsSection" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "contextWindowSection" | "contextWindowHint" | "contextWindowNoneEnabled" | "saved" | "saving" | "cacheSection" | "cacheDesc" | "cacheEmpty" | "cacheHitRatio" | "cacheCached" | "cacheFresh" | "cacheRequests" | "cacheDriftTools" | "quotaSection" | "quotaDesc" | "refreshingQuota" | "quotaEmpty" | "updatedAt" | "loginFailed" | "planUnknown" | "cancelSignIn" | "testingConnection" | "testSuccess" | "testFailed" | "routeOwned" | "routeConflict" | "refreshCatalog" | "refreshingCatalog" | "effortLow" | "effortHigh" | "effortMax" | "quotaUnknown" | "resetAt" | "copied" | "region" | "quotaPlan" | "authenticatedAt" | "openSignInPage" | "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" | "effortNone" | "contextWindowPlan" | "cacheOutput" | "cacheWrite" | "
|
|
560
|
-
'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" | "signingIn" | "modelsSection" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "contextWindowSection" | "contextWindowHint" | "contextWindowNoneEnabled" | "saved" | "saving" | "cacheSection" | "cacheDesc" | "cacheEmpty" | "cacheHitRatio" | "cacheCached" | "cacheFresh" | "cacheRequests" | "cacheDriftTools" | "quotaSection" | "quotaDesc" | "refreshingQuota" | "quotaEmpty" | "updatedAt" | "loginFailed" | "planUnknown" | "cancelSignIn" | "testingConnection" | "testSuccess" | "testFailed" | "routeOwned" | "routeConflict" | "refreshCatalog" | "refreshingCatalog" | "effortLow" | "effortHigh" | "effortMax" | "quotaUnknown" | "resetAt" | "copied" | "region" | "quotaPlan" | "authenticatedAt" | "openSignInPage" | "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" | "effortNone" | "contextWindowPlan" | "cacheOutput" | "cacheWrite" | "
|
|
586
|
+
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" | "signingIn" | "modelsSection" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "contextWindowSection" | "contextWindowHint" | "contextWindowNoneEnabled" | "saved" | "saving" | "cacheSection" | "cacheDesc" | "cacheEmpty" | "cacheHitRatio" | "cacheCached" | "cacheFresh" | "cacheRequests" | "cacheDriftTools" | "quotaSection" | "quotaDesc" | "refreshingQuota" | "quotaEmpty" | "updatedAt" | "loginFailed" | "planUnknown" | "cancelSignIn" | "testingConnection" | "testSuccess" | "testFailed" | "routeOwned" | "routeConflict" | "refreshCatalog" | "refreshingCatalog" | "effortLow" | "effortHigh" | "effortMax" | "quotaUnknown" | "resetAt" | "copied" | "region" | "quotaPlan" | "authenticatedAt" | "openSignInPage" | "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" | "effortNone" | "contextWindowPlan" | "cacheOutput" | "cacheWrite" | "unknownMetric" | "cacheExpired" | "cacheDrift" | "cacheDriftFirst" | "cacheDriftStable" | "cacheDriftSystemPrompt" | "cacheDriftCacheKey" | "cacheDriftColdKey" | "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" | "requests" | "compactionRoute" | "compactionRouteHint" | "compactionRouteProvider" | "compactionRouteModel" | "compactionRouteSave" | "compactionRouteClear" | "compactionRouteChange" | "compactionRouteFollow" | "compactionRouteSaved" | "compactionRouteFailed" | "compactionRouteNoVideo" | "compactionRouteNoImage" | "compactionRouteEmpty", string>;
|
|
587
|
+
'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" | "signingIn" | "modelsSection" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "contextWindowSection" | "contextWindowHint" | "contextWindowNoneEnabled" | "saved" | "saving" | "cacheSection" | "cacheDesc" | "cacheEmpty" | "cacheHitRatio" | "cacheCached" | "cacheFresh" | "cacheRequests" | "cacheDriftTools" | "quotaSection" | "quotaDesc" | "refreshingQuota" | "quotaEmpty" | "updatedAt" | "loginFailed" | "planUnknown" | "cancelSignIn" | "testingConnection" | "testSuccess" | "testFailed" | "routeOwned" | "routeConflict" | "refreshCatalog" | "refreshingCatalog" | "effortLow" | "effortHigh" | "effortMax" | "quotaUnknown" | "resetAt" | "copied" | "region" | "quotaPlan" | "authenticatedAt" | "openSignInPage" | "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" | "effortNone" | "contextWindowPlan" | "cacheOutput" | "cacheWrite" | "unknownMetric" | "cacheExpired" | "cacheDrift" | "cacheDriftFirst" | "cacheDriftStable" | "cacheDriftSystemPrompt" | "cacheDriftCacheKey" | "cacheDriftColdKey" | "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" | "requests" | "compactionRoute" | "compactionRouteHint" | "compactionRouteProvider" | "compactionRouteModel" | "compactionRouteSave" | "compactionRouteClear" | "compactionRouteChange" | "compactionRouteFollow" | "compactionRouteSaved" | "compactionRouteFailed" | "compactionRouteNoVideo" | "compactionRouteNoImage" | "compactionRouteEmpty", string>;
|
|
561
588
|
};
|
|
562
589
|
export type KimiCodeLocaleKey = keyof typeof zh;
|
|
563
590
|
/**
|
|
@@ -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,e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Root":"","sources":["../../../../src/client/kimi-code/styles.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,QAAQ,iCAAiC,CAAA;AAwItD,uEAAuE;AACvE,wBAAgB,qBAAqB,IAAI,IAAI,CAE5C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hub.d.ts","sourceRoot":"","sources":["../../../../src/client/locales-ru/hub.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"hub.d.ts","sourceRoot":"","sources":["../../../../src/client/locales-ru/hub.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,eAAe,CAAA;AAE9C,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,SAAS,EAAE,MAAM,CA+MhD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"kimi-code.d.ts","sourceRoot":"","sources":["../../../../src/client/locales-ru/kimi-code.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAGhE,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,iBAAiB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"kimi-code.d.ts","sourceRoot":"","sources":["../../../../src/client/locales-ru/kimi-code.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAA;AAGhE,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,iBAAiB,EAAE,MAAM,CAqKxD,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"opendesign.d.ts","sourceRoot":"","sources":["../../../../src/client/locales-ru/opendesign.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAGnE,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,mBAAmB,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"opendesign.d.ts","sourceRoot":"","sources":["../../../../src/client/locales-ru/opendesign.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AACH,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAA;AAGnE,eAAO,MAAM,UAAU,EAAE,MAAM,CAAC,mBAAmB,EAAE,MAAM,CAoH1D,CAAA"}
|
|
@@ -32,19 +32,6 @@ export declare const zh: {
|
|
|
32
32
|
readonly proxyModeAuto: "系统代理(自动检测)";
|
|
33
33
|
readonly proxyModeCustom: "自定义代理";
|
|
34
34
|
readonly proxyModeDirect: "直连(禁用代理)";
|
|
35
|
-
readonly compactionRoute: "压缩模型";
|
|
36
|
-
readonly compactionRouteHint: "自动压缩时由哪个模型来写摘要。留空则继续用会话自己的模型,也就继续消耗那条线路的额度。";
|
|
37
|
-
readonly compactionRouteProvider: "线路";
|
|
38
|
-
readonly compactionRouteModel: "模型";
|
|
39
|
-
readonly compactionRouteSave: "保存";
|
|
40
|
-
readonly compactionRouteClear: "恢复会话模型";
|
|
41
|
-
readonly compactionRouteChange: "设置";
|
|
42
|
-
readonly compactionRouteFollow: "跟随会话模型(默认)";
|
|
43
|
-
readonly compactionRouteSaved: "已保存,下次压缩生效。";
|
|
44
|
-
readonly compactionRouteFailed: "保存失败";
|
|
45
|
-
readonly compactionRouteNoVideo: "该模型不接受视频:含视频的会话会回落到会话模型完成压缩。";
|
|
46
|
-
readonly compactionRouteNoImage: "该模型不接受图片:摘要里的截图会被替换为占位文本。";
|
|
47
|
-
readonly compactionRouteEmpty: "没有可用的线路——先登录任意一条线路再回来设置。";
|
|
48
35
|
readonly customProxyUrl: "自定义代理地址";
|
|
49
36
|
readonly customProxyUrlHint: "支持 HTTP/HTTPS/SOCKS5 代理地址,例如 http://127.0.0.1:7890";
|
|
50
37
|
readonly customProxyUrlPlaceholder: "例如: http://127.0.0.1:7890";
|
|
@@ -274,19 +261,6 @@ export declare const dictionaries: {
|
|
|
274
261
|
readonly proxyModeAuto: "系统代理(自动检测)";
|
|
275
262
|
readonly proxyModeCustom: "自定义代理";
|
|
276
263
|
readonly proxyModeDirect: "直连(禁用代理)";
|
|
277
|
-
readonly compactionRoute: "压缩模型";
|
|
278
|
-
readonly compactionRouteHint: "自动压缩时由哪个模型来写摘要。留空则继续用会话自己的模型,也就继续消耗那条线路的额度。";
|
|
279
|
-
readonly compactionRouteProvider: "线路";
|
|
280
|
-
readonly compactionRouteModel: "模型";
|
|
281
|
-
readonly compactionRouteSave: "保存";
|
|
282
|
-
readonly compactionRouteClear: "恢复会话模型";
|
|
283
|
-
readonly compactionRouteChange: "设置";
|
|
284
|
-
readonly compactionRouteFollow: "跟随会话模型(默认)";
|
|
285
|
-
readonly compactionRouteSaved: "已保存,下次压缩生效。";
|
|
286
|
-
readonly compactionRouteFailed: "保存失败";
|
|
287
|
-
readonly compactionRouteNoVideo: "该模型不接受视频:含视频的会话会回落到会话模型完成压缩。";
|
|
288
|
-
readonly compactionRouteNoImage: "该模型不接受图片:摘要里的截图会被替换为占位文本。";
|
|
289
|
-
readonly compactionRouteEmpty: "没有可用的线路——先登录任意一条线路再回来设置。";
|
|
290
264
|
readonly customProxyUrl: "自定义代理地址";
|
|
291
265
|
readonly customProxyUrlHint: "支持 HTTP/HTTPS/SOCKS5 代理地址,例如 http://127.0.0.1:7890";
|
|
292
266
|
readonly customProxyUrlPlaceholder: "例如: http://127.0.0.1:7890";
|
|
@@ -480,6 +454,6 @@ export declare const dictionaries: {
|
|
|
480
454
|
readonly quotaFactsScope: string;
|
|
481
455
|
readonly composerLabel: string;
|
|
482
456
|
};
|
|
483
|
-
en: Record<"stale" | "image" | "quota" | "account" | "rotationStrategy" | "pending" | "accountId" | "relogin" | "used" | "tokens" | "title" | "hubTitle" | "intro" | "signedOut" | "signedIn" | "plan" | "expires" | "signIn" | "signInAgain" | "cancel" | "signOut" | "refreshToken" | "popupBlocked" | "continueLogin" | "loading" | "connection" | "testConnection" | "testing" | "latency" | "selectAll" | "unselectAll" | "models" | "modelsHint" | "proxySettings" | "proxyMode" | "proxyModeHint" | "proxyModeAuto" | "proxyModeCustom" | "proxyModeDirect" | "
|
|
457
|
+
en: Record<"stale" | "image" | "quota" | "account" | "rotationStrategy" | "pending" | "accountId" | "relogin" | "used" | "tokens" | "title" | "hubTitle" | "intro" | "signedOut" | "signedIn" | "plan" | "expires" | "signIn" | "signInAgain" | "cancel" | "signOut" | "refreshToken" | "popupBlocked" | "continueLogin" | "loading" | "connection" | "testConnection" | "testing" | "latency" | "selectAll" | "unselectAll" | "models" | "modelsHint" | "proxySettings" | "proxyMode" | "proxyModeHint" | "proxyModeAuto" | "proxyModeCustom" | "proxyModeDirect" | "customProxyUrl" | "customProxyUrlHint" | "customProxyUrlPlaceholder" | "saveProxyUrl" | "proxyDetected" | "proxyDetectedEffective" | "proxyNoneDetected" | "proxyDirectHint" | "poolStorageTitle" | "poolStorageKeyring" | "poolStorageCredentials" | "poolStorageKeyringHint" | "poolStorageCredentialsHint" | "poolStorageEffective" | "poolStorageBackendKeyring" | "poolStorageBackendDpapi" | "poolStorageBackendKeychain" | "poolStorageBackendCredentials" | "poolStorageSwitchWarning" | "poolStorageUnavailableKeyring" | "poolStorageUnavailableCredentials" | "poolStorageUnavailableStore" | "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" | "remaining" | "available" | "unavailable" | "unlimited" | "credits" | "monthlySpend" | "resetCredits" | "resetCreditExpires" | "useResetCredit" | "usingResetCredit" | "useResetCreditConfirm" | "resetCreditUsed" | "spendControlReached" | "limit" | "exhausted" | "resets" | "quickQuotaLabel" | "quickQuotaLoading" | "imageToolRunning" | "imageToolDone" | "imageToolFailed" | "openImage" | "openNamedImage" | "imageLoading" | "imageLoadFailed" | "imagePreviewClose" | "imagePreviewOpenOriginal" | "retry" | "unknown" | "hubBack" | "hubOverviewHint" | "hubAccountCount" | "hubNoAccounts" | "hubStateEnabled" | "hubStateDisabled" | "hubModelsEnabled" | "hubModelsEnabledOfTotal" | "hubStatusFailed" | "hubSwitchOn" | "hubSwitchOff" | "hubCardLabel" | "hubUpdateCheck" | "hubUpdateChecking" | "hubUpdateApply" | "hubUpdateApplying" | "hubUpdateUpToDate" | "hubUpdateLatestWithUnknownCurrent" | "hubUpdateAvailable" | "hubUpdateInstalled" | "hubUpdateInstalledReplaced" | "hubUpdateInstalledLive" | "hubUpdateInstalledReplacedLive" | "hubUpdateFailedRestored" | "hubUpdateFailedRollbackFailed" | "hubUpdateFailedRollbackSkipped" | "hubUpdateDevelopmentInstall" | "hubUpdatePluginManagerMissing" | "hubUpdateManualOnly" | "hubUpdateCheckFailed" | "hubUpdateCommandLabel" | "localCodexLoginImport" | "localCodexLoginImporting" | "deviceCodeLogin" | "deviceCodeLoginStarting" | "deviceCodeLoginDetail" | "deviceCodeHint" | "deviceCodeLabel" | "deviceCodeOpen" | "deviceCodeCopy" | "deviceCodeWaiting" | "stopImporting" | "stopImportingLabel" | "stopImportingBusy" | "stopImportingHint" | "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", string>;
|
|
484
458
|
};
|
|
485
459
|
//# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwNL,CAAA;AAEV,eAAO,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,OAAO,EAAE,EAAE,MAAM,CAqN9C,CAAA;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,EAAE,CAAA;AACvC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAa,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenDesignSection.d.ts","sourceRoot":"","sources":["../../../../src/client/opendesign/OpenDesignSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAA;
|
|
1
|
+
{"version":3,"file":"OpenDesignSection.d.ts","sourceRoot":"","sources":["../../../../src/client/opendesign/OpenDesignSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA4D,MAAM,OAAO,CAAA;AAsBhF,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC;AA0RD;;;;;;;;;;GAUG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CAgnBlE"}
|
|
@@ -53,6 +53,8 @@ export declare const zh: {
|
|
|
53
53
|
readonly catalogSyncedNote: "实时目录已同步 {count} 个模型。";
|
|
54
54
|
readonly noModels: "暂无可用模型。";
|
|
55
55
|
readonly pricingNote: "价格为官方公开价目(美元 / 每百万 token,输入 / 输出)。";
|
|
56
|
+
readonly unservedBadge: "套餐不支持";
|
|
57
|
+
readonly unservedHint: "当前套餐不提供的模型默认隐藏,勾选后会强制显示。";
|
|
56
58
|
readonly contextSection: "上下文窗口";
|
|
57
59
|
readonly contextHint: "官方未公布各模型的上下文窗口:默认按 128k 处理,可在这里按模型修正。留空或保存无效值会提示错误;恢复默认会清掉覆盖值。";
|
|
58
60
|
readonly tokens: "tokens";
|
|
@@ -186,6 +188,8 @@ export declare const en: {
|
|
|
186
188
|
readonly catalogSyncedNote: "Live catalog synced: {count} model(s).";
|
|
187
189
|
readonly noModels: "No models available.";
|
|
188
190
|
readonly pricingNote: "Prices are the official public list (USD per 1M tokens, input / output).";
|
|
191
|
+
readonly unservedBadge: "Not in plan";
|
|
192
|
+
readonly unservedHint: "Models the current plan does not serve stay hidden by default; checking one here forces it to show.";
|
|
189
193
|
readonly contextSection: "Context windows";
|
|
190
194
|
readonly contextHint: "The vendor publishes no per-model context windows, so models default to 128k; correct any model here. An invalid value is reported rather than saved; restoring clears the override.";
|
|
191
195
|
readonly tokens: "tokens";
|
|
@@ -320,6 +324,8 @@ export declare const dictionaries: {
|
|
|
320
324
|
readonly catalogSyncedNote: "实时目录已同步 {count} 个模型。";
|
|
321
325
|
readonly noModels: "暂无可用模型。";
|
|
322
326
|
readonly pricingNote: "价格为官方公开价目(美元 / 每百万 token,输入 / 输出)。";
|
|
327
|
+
readonly unservedBadge: "套餐不支持";
|
|
328
|
+
readonly unservedHint: "当前套餐不提供的模型默认隐藏,勾选后会强制显示。";
|
|
323
329
|
readonly contextSection: "上下文窗口";
|
|
324
330
|
readonly contextHint: "官方未公布各模型的上下文窗口:默认按 128k 处理,可在这里按模型修正。留空或保存无效值会提示错误;恢复默认会清掉覆盖值。";
|
|
325
331
|
readonly tokens: "tokens";
|
|
@@ -453,6 +459,8 @@ export declare const dictionaries: {
|
|
|
453
459
|
readonly catalogSyncedNote: "实时目录已同步 {count} 个模型。";
|
|
454
460
|
readonly noModels: "暂无可用模型。";
|
|
455
461
|
readonly pricingNote: "价格为官方公开价目(美元 / 每百万 token,输入 / 输出)。";
|
|
462
|
+
readonly unservedBadge: "套餐不支持";
|
|
463
|
+
readonly unservedHint: "当前套餐不提供的模型默认隐藏,勾选后会强制显示。";
|
|
456
464
|
readonly contextSection: "上下文窗口";
|
|
457
465
|
readonly contextHint: "官方未公布各模型的上下文窗口:默认按 128k 处理,可在这里按模型修正。留空或保存无效值会提示错误;恢复默认会清掉覆盖值。";
|
|
458
466
|
readonly tokens: "tokens";
|
|
@@ -586,6 +594,8 @@ export declare const dictionaries: {
|
|
|
586
594
|
readonly catalogSyncedNote: "Live catalog synced: {count} model(s).";
|
|
587
595
|
readonly noModels: "No models available.";
|
|
588
596
|
readonly pricingNote: "Prices are the official public list (USD per 1M tokens, input / output).";
|
|
597
|
+
readonly unservedBadge: "Not in plan";
|
|
598
|
+
readonly unservedHint: "Models the current plan does not serve stay hidden by default; checking one here forces it to show.";
|
|
589
599
|
readonly contextSection: "Context windows";
|
|
590
600
|
readonly contextHint: "The vendor publishes no per-model context windows, so models default to 128k; correct any model here. An invalid value is reported rather than saved; restoring clears the override.";
|
|
591
601
|
readonly tokens: "tokens";
|
|
@@ -719,6 +729,8 @@ export declare const dictionaries: {
|
|
|
719
729
|
readonly catalogSyncedNote: "Live catalog synced: {count} model(s).";
|
|
720
730
|
readonly noModels: "No models available.";
|
|
721
731
|
readonly pricingNote: "Prices are the official public list (USD per 1M tokens, input / output).";
|
|
732
|
+
readonly unservedBadge: "Not in plan";
|
|
733
|
+
readonly unservedHint: "Models the current plan does not serve stay hidden by default; checking one here forces it to show.";
|
|
722
734
|
readonly contextSection: "Context windows";
|
|
723
735
|
readonly contextHint: "The vendor publishes no per-model context windows, so models default to 128k; correct any model here. An invalid value is reported rather than saved; restoring clears the override.";
|
|
724
736
|
readonly tokens: "tokens";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../../src/client/opendesign/locales.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,aAAa,mBAAmB,CAAA;AAE7C,eAAO,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../../src/client/opendesign/locales.ts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7 +71,7 @@ export declare const ROUTE_PREFIX: "/api/dsh-chatgpt-subscription";
|
|
|
71
71
|
* `test/responses-client.test.ts` asserts the two agree, so a release that
|
|
72
72
|
* forgets this constant fails the suite instead of shipping quietly.
|
|
73
73
|
*/
|
|
74
|
-
export declare const PLUGIN_VERSION: "0.
|
|
74
|
+
export declare const PLUGIN_VERSION: "0.43.0";
|
|
75
75
|
export declare const CODEX_CHATGPT_PROVIDER_ID: "codex-chatgpt";
|
|
76
76
|
export { MINIMAX_CODE_PROVIDER_ID, MINIMAX_CODE_ROUTE_PREFIX } from './shared/minimax-code-contracts.ts';
|
|
77
77
|
export declare const CODEX_API_BASE: "https://chatgpt.com/backend-api/codex";
|
|
@@ -237,7 +237,13 @@ export declare const STREAM_IDLE_TIMEOUT_MS = 300000;
|
|
|
237
237
|
export declare const STREAM_IDLE_TIMEOUT_CODE = "LLM_STREAM_IDLE_TIMEOUT";
|
|
238
238
|
/** Ceiling for a model-listing or usage fetch. */
|
|
239
239
|
export declare const DISCOVERY_TIMEOUT_MS = 20000;
|
|
240
|
-
/** Whole-request ceiling for one
|
|
240
|
+
/** Whole-request ceiling for one NON-STREAMING chat call.
|
|
241
|
+
*
|
|
242
|
+
* Deliberately never attached to a stream: an absolute `AbortSignal.timeout` on
|
|
243
|
+
* a streaming fetch keeps counting through the body and kills a long thinking
|
|
244
|
+
* pass mid-answer (opendesign shipped exactly that bug, at 180 s — see
|
|
245
|
+
* `docs/opendesign-line-plan.md` §5). A stream's liveness belongs to
|
|
246
|
+
* `STREAM_IDLE_TIMEOUT_MS`, which resets on every chunk. */
|
|
241
247
|
export declare const CHAT_TIMEOUT_MS = 300000;
|
|
242
248
|
/** How long a usage reading is served from cache before it is refetched. */
|
|
243
249
|
export declare const QUOTA_CACHE_TTL_MS = 120000;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/host/claude/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;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AAKD;;;;;;;;GAQG;AACH,wBAAgB,gBAAgB,IAAI,MAAM,CAGzC;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,MAAM,GAAG,IAAI,GAAG,IAAI,CAG9D;AAED;;;;;;;;;;;;;;;;;;;GAmBG;AACH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,CASzE;AAED;;;;;;;;;GASG;AACH,wBAAgB,uBAAuB,CAAC,OAAO,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,MAAM,GAAG,OAAO,CAIhF;AAoBD;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,IAAI,MAAM,CAG1C;AAED,yEAAyE;AACzE,wBAAgB,mBAAmB,CAAC,IAAI,GAAE,MAA8B,GAAG,MAAM,CAEhF"}
|
|
@@ -24,6 +24,12 @@
|
|
|
24
24
|
* by default; the official client sends no cap at all and lets the route
|
|
25
25
|
* decide, so the cap is dropped for the re-routed call.
|
|
26
26
|
*
|
|
27
|
+
* The setting itself is now scoped to one line. It is presented on the Kimi Code
|
|
28
|
+
* tab, so only a session whose own provider is `scopeProvider` (kimi-code) is
|
|
29
|
+
* ever re-routed: every other line's compaction passes through untouched, no
|
|
30
|
+
* matter what target is configured. The candidate directory still spans every
|
|
31
|
+
* line, because a kimi-code summary may legitimately be written elsewhere.
|
|
32
|
+
*
|
|
27
33
|
* @module dsh-chatgpt-subscription/compaction-route
|
|
28
34
|
*/
|
|
29
35
|
import { type CompactionPayloadNeeds, type CompactionRouteTarget, type CompactionSkipReason } from '../../shared/compaction-route.ts';
|
|
@@ -86,6 +92,14 @@ export type CompactionRouteOutcome = {
|
|
|
86
92
|
export interface CompactionRouteDeps {
|
|
87
93
|
/** Issue one request through the LLM service, re-entering the waterfall. */
|
|
88
94
|
readonly stream: (options: CompactionStreamOptions) => AsyncIterable<CompactionChunk>;
|
|
95
|
+
/**
|
|
96
|
+
* The only provider whose sessions may be re-routed.
|
|
97
|
+
*
|
|
98
|
+
* A session on any other provider is released untouched, whatever
|
|
99
|
+
* `readTarget` reports: this setting is offered on one line's settings page,
|
|
100
|
+
* so it must not spend another line's quota or change another line's output.
|
|
101
|
+
*/
|
|
102
|
+
readonly scopeProvider: string;
|
|
89
103
|
/** The live target; read per request so a settings change applies at once. */
|
|
90
104
|
readonly readTarget: () => CompactionRouteTarget | null;
|
|
91
105
|
/** Provider directory lookup; absent leaves every target admissible. */
|
|
@@ -112,7 +126,8 @@ export interface CompactionRouteHandle {
|
|
|
112
126
|
* installation instead of failing the plugin's load.
|
|
113
127
|
*
|
|
114
128
|
* @param ctx - structural context: the event bus and a logger.
|
|
115
|
-
* @param deps - the LLM stream, the live target, and the
|
|
129
|
+
* @param deps - the LLM stream, the scoped provider, the live target, and the
|
|
130
|
+
* optional directory.
|
|
116
131
|
* @returns the live handle, or `undefined` on a host without an event bus.
|
|
117
132
|
*/
|
|
118
133
|
export declare function installCompactionRoute(ctx: CompactionRouteContext, deps: CompactionRouteDeps): CompactionRouteHandle | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/host/compaction-route/index.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/host/compaction-route/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,EAGL,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,oBAAoB,EAE1B,MAAM,kCAAkC,CAAA;AAEzC,wEAAwE;AACxE,MAAM,WAAW,uBAAuB;IACtC,QAAQ,CAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACtC,QAAQ,CAAC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;IACnC,gFAAgF;IAChF,QAAQ,CAAC,OAAO,CAAC,EA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C,EAAE,OAAO,CAAA;KAAE,GACtC,OAAO,CAAA;IACV,MAAM,CAAC,EAAE;QAAE,IAAI,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAAA;KAAE,GAAG,SAAS,CAAA;CACrD;AAED,wEAAwE;AACxE,MAAM,WAAW,qBAAqB;IACpC,MAAM,IAAI,sBAAsB,GAAG,IAAI,CAAA;IACvC,OAAO,IAAI,IAAI,CAAA;CAChB;AAKD;;;;;;;;;;GAUG;AACH,wBAAgB,sBAAsB,CACpC,GAAG,EAAE,sBAAsB,EAC3B,IAAI,EAAE,mBAAmB,GACxB,qBAAqB,GAAG,SAAS,CA2EnC;AAED;;;;GAIG;AACH,wBAAgB,YAAY,CAAC,OAAO,EAAE,uBAAuB,GAAG,sBAAsB,CAUrF;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,uBAAuB,EAChC,MAAM,EAAE,qBAAqB,GAC5B,uBAAuB,CAGzB"}
|
|
@@ -242,7 +242,11 @@ export declare const OAUTH_FLOW_TIMEOUT_MS: number;
|
|
|
242
242
|
export declare const POLL_MIN_INTERVAL_MS = 1000;
|
|
243
243
|
/** 单次 OAuth HTTP 请求的超时(沿用 `9ad8a53` 的 `ZAI_OAUTH_REQUEST_TIMEOUT_MS`)。 */
|
|
244
244
|
export declare const OAUTH_REQUEST_TIMEOUT_MS = 30000;
|
|
245
|
-
/**
|
|
245
|
+
/** 单次上游 **非流式** 业务/模型请求的超时(沿用 `9ad8a53` 的 `CHAT_TIMEOUT_MS`)。
|
|
246
|
+
*
|
|
247
|
+
* 刻意不挂到流式请求上:绝对计时的 `AbortSignal.timeout` 会跟着响应体走完,
|
|
248
|
+
* 把长时间思考从中间掐断(opendesign 就是这么在 180 秒上翻车的,见
|
|
249
|
+
* `docs/opendesign-line-plan.md` §5)。 */
|
|
246
250
|
export declare const CHAT_TIMEOUT_MS = 300000;
|
|
247
251
|
/** 模型目录 / 配额发现阶段的超时(沿用 `9ad8a53` 的 `DISCOVERY_TIMEOUT_MS`)。 */
|
|
248
252
|
export declare const DISCOVERY_TIMEOUT_MS = 20000;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../../src/host/glm-coding-plan/types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,kBAAkB,EAAE,SAAS,EAAE,MAAM,2CAA2C,CAAA;AAOjH,eAAO,MAAM,WAAW,oBAA8B,CAAA;AACtD,eAAO,MAAM,aAAa,sCAAgC,CAAA;AAE1D,+CAA+C;AAC/C,eAAO,MAAM,kBAAkB,+BAAwB,CAAA;AAMvD,yCAAyC;AACzC,MAAM,WAAW,cAAc;IAC7B;;;;;OAKG;IACH,QAAQ,EAAE,MAAM,CAAA;IAChB,iCAAiC;IACjC,GAAG,EAAE,MAAM,CAAA;IACX,sBAAsB;IACtB,SAAS,EAAE,MAAM,CAAA;IACjB;;;;;;OAMG;IACH,kBAAkB,EAAE,OAAO,GAAG,WAAW,CAAA;IACzC,mBAAmB,EAAE,MAAM,CAAA;CAC5B;AAED;;;;;GAKG;AACH,eAAO,MAAM,YAAY,EAAE,MAAM,CAAC,SAAS,EAAE,cAAc,CAe1D,CAAA;AAMD;;;;;GAKG;AACH,eAAO,MAAM,cAAc,uBAAuB,CAAA;AAElD,6DAA6D;AAC7D,eAAO,MAAM,cAAc,8BAA8B,CAAA;AAEzD,qFAAqF;AACrF,eAAO,MAAM,aAAa,oBAAoB,CAAA;AAE9C,8DAA8D;AAC9D,eAAO,MAAM,aAAa,oBAAoB,CAAA;AAE9C;;;;;GAKG;AACH,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,SAAS,EAAE,KAAK,GAAG,UAAU,CAGxE,CAAA;AAED,oDAAoD;AACpD,eAAO,MAAM,6BAA6B,2BAA2B,CAAA;AAErE,qDAAqD;AACrD,eAAO,MAAM,wBAAwB,qBAAqB,CAA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OAAO,GAAG,SAAS,GAAG,SAAS,CAQrE"}
|
|
@@ -2,7 +2,7 @@ import { AccountPoolCore, type PoolAccountShape, type PoolData } from '../common
|
|
|
2
2
|
import type { CredentialStore } from '../token-store.ts';
|
|
3
3
|
import { FileCredentialStore, type KimiCodeCredentials } from './token-store.ts';
|
|
4
4
|
import type { PoolAccountQuotaDto } from '../../shared/account-pool-contracts.ts';
|
|
5
|
-
import type { KimiCodeAccountQuota, KimiCodeAccountSummaryDto, KimiCodeRegion } from '../../shared/kimi-code-contracts.ts';
|
|
5
|
+
import type { KimiCodeAccount, KimiCodeAccountQuota, KimiCodeAccountSummaryDto, KimiCodeRegion } from '../../shared/kimi-code-contracts.ts';
|
|
6
6
|
/** One pooled Kimi Code account: the token pair plus the facts the card renders. */
|
|
7
7
|
export interface KimiCodePoolAccount extends PoolAccountShape<KimiCodeCredentials> {
|
|
8
8
|
email?: string;
|
|
@@ -13,6 +13,14 @@ export interface KimiCodePoolAccount extends PoolAccountShape<KimiCodeCredential
|
|
|
13
13
|
}
|
|
14
14
|
/** Encrypted pool file this line owns; the pre-pool credential file stays the mirror. */
|
|
15
15
|
export declare function kimiCodePoolPath(): string;
|
|
16
|
+
/**
|
|
17
|
+
* Whether an alias is still the placeholder a sign-in mints, rather than a name
|
|
18
|
+
* somebody recognises.
|
|
19
|
+
*
|
|
20
|
+
* Exported because the routes decide whether one more profile read is worth it:
|
|
21
|
+
* a row still titled `账号 N` is exactly the row whose name nobody has learned.
|
|
22
|
+
*/
|
|
23
|
+
export declare function isPlaceholderAlias(alias: string): boolean;
|
|
16
24
|
/** Validate and normalize one whole pool document. */
|
|
17
25
|
export declare function parseKimiCodePoolData(value: unknown): PoolData<KimiCodePoolAccount>;
|
|
18
26
|
export interface KimiCodeAccountPoolOptions {
|
|
@@ -67,5 +75,22 @@ export declare class KimiCodeAccountPool extends AccountPoolCore<KimiCodeCredent
|
|
|
67
75
|
}>;
|
|
68
76
|
/** The pre-pool credential file this pool mirrors its primary account into. */
|
|
69
77
|
mirrorStore(): FileCredentialStore;
|
|
78
|
+
/**
|
|
79
|
+
* Remember who the service says one pooled account is.
|
|
80
|
+
*
|
|
81
|
+
* Sign-in can only name an account through its token, which carries an id and
|
|
82
|
+
* — for an account with a mailbox — an address. That is why a phone-signed-in
|
|
83
|
+
* row is titled `账号 N` and never changes on its own: the nickname lives on
|
|
84
|
+
* `/me`, which only the quota read asks, and nothing used to carry the answer
|
|
85
|
+
* back to the row. Every reading now calls this with what the profile said, so
|
|
86
|
+
* the card can name its own account without a re-sign-in.
|
|
87
|
+
*
|
|
88
|
+
* Only the placeholder yields: a name someone chose stays, because silently
|
|
89
|
+
* renaming a row a user named is worse than leaving a default in place. The
|
|
90
|
+
* learned facts also go into the mirrored credential, so a later re-sign-in
|
|
91
|
+
* (which mints the alias from the credential) keeps the name, and so do the
|
|
92
|
+
* single-account fallbacks that read that copy.
|
|
93
|
+
*/
|
|
94
|
+
learnAccount(accountId: string, account: KimiCodeAccount): Promise<void>;
|
|
70
95
|
}
|
|
71
96
|
//# sourceMappingURL=account-pool.d.ts.map
|