@eddyskywalker/dsh-chatgpt-subscription 0.8.0-alpha.0 → 0.8.1
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 +9 -0
- package/lib/client.js +611 -223
- package/lib/client.js.map +1 -1
- package/lib/index.js +53 -74
- package/lib/types/client/CodexSubscriptionSection.d.ts.map +1 -1
- package/lib/types/client/antigravity/AntigravitySection.d.ts.map +1 -1
- package/lib/types/client/antigravity/locales.d.ts +14 -2
- package/lib/types/client/antigravity/locales.d.ts.map +1 -1
- package/lib/types/client/antigravity/styles.d.ts.map +1 -1
- package/lib/types/client/command-code/CommandCodeSection.d.ts.map +1 -1
- package/lib/types/client/command-code/locales.d.ts +14 -2
- package/lib/types/client/command-code/locales.d.ts.map +1 -1
- package/lib/types/client/kimi-code/KimiCodeSection.d.ts.map +1 -1
- package/lib/types/client/kimi-code/locales.d.ts +14 -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 +13 -5
- package/lib/types/client/locales.d.ts.map +1 -1
- package/lib/types/client/workbuddy/WorkBuddySection.d.ts.map +1 -1
- package/lib/types/client/workbuddy/locales.d.ts +24 -0
- package/lib/types/client/workbuddy/locales.d.ts.map +1 -1
- package/lib/types/host/antigravity/routes.d.ts.map +1 -1
- package/lib/types/host/antigravity/token-store.d.ts +5 -2
- package/lib/types/host/antigravity/token-store.d.ts.map +1 -1
- package/lib/types/host/command-code/routes.d.ts.map +1 -1
- package/lib/types/host/command-code/token-store.d.ts +5 -2
- package/lib/types/host/command-code/token-store.d.ts.map +1 -1
- package/lib/types/host/common/context-window-overrides.d.ts +12 -0
- package/lib/types/host/common/context-window-overrides.d.ts.map +1 -0
- package/lib/types/host/kimi-code/routes.d.ts.map +1 -1
- package/lib/types/host/kimi-code/token-store.d.ts +5 -2
- package/lib/types/host/kimi-code/token-store.d.ts.map +1 -1
- package/lib/types/host/preferences.d.ts.map +1 -1
- package/lib/types/host/routes.d.ts.map +1 -1
- package/lib/types/host/workbuddy/routes.d.ts.map +1 -1
- package/lib/types/host/workbuddy/token-store.d.ts +5 -2
- package/lib/types/host/workbuddy/token-store.d.ts.map +1 -1
- package/lib/types/shared/antigravity-contracts.d.ts +2 -1
- package/lib/types/shared/antigravity-contracts.d.ts.map +1 -1
- package/lib/types/shared/command-code-contracts.d.ts +2 -1
- package/lib/types/shared/command-code-contracts.d.ts.map +1 -1
- package/lib/types/shared/contracts.d.ts +5 -9
- package/lib/types/shared/contracts.d.ts.map +1 -1
- package/lib/types/shared/kimi-code-contracts.d.ts +2 -1
- package/lib/types/shared/kimi-code-contracts.d.ts.map +1 -1
- package/lib/types/shared/model-catalog.d.ts +6 -4
- package/lib/types/shared/model-catalog.d.ts.map +1 -1
- package/lib/types/shared/preferences.d.ts.map +1 -1
- package/lib/types/shared/workbuddy-contracts.d.ts +2 -1
- package/lib/types/shared/workbuddy-contracts.d.ts.map +1 -1
- package/package.json +1 -1
package/lib/index.js
CHANGED
|
@@ -167,14 +167,6 @@ const DEFAULT_VISIBLE_CODEX_MODEL_IDS = [
|
|
|
167
167
|
"gpt-5.6-luna"
|
|
168
168
|
];
|
|
169
169
|
const DEFAULT_CODEX_MODEL = CODEX_MODEL_CATALOG[0];
|
|
170
|
-
const CONFIGURABLE_CONTEXT_MODEL_IDS = [
|
|
171
|
-
"gpt-6-astra",
|
|
172
|
-
"gpt-6-sol",
|
|
173
|
-
"gpt-6-luna",
|
|
174
|
-
"gpt-5.6-sol",
|
|
175
|
-
"gpt-5.6-terra",
|
|
176
|
-
"gpt-5.6-luna"
|
|
177
|
-
];
|
|
178
170
|
const STANDARD_REASONING_EFFORTS = [
|
|
179
171
|
"none",
|
|
180
172
|
"low",
|
|
@@ -198,9 +190,11 @@ function reasoningEffortsForModel(model) {
|
|
|
198
190
|
function isCodexModelId(model) {
|
|
199
191
|
return typeof model === "string" && CODEX_MODEL_CATALOG.some((entry) => entry.id === model);
|
|
200
192
|
}
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
193
|
+
/**
|
|
194
|
+
* Upper bound for one model's context window override. The Codex subscription
|
|
195
|
+
* caps the whole GPT-6 family at 872K and everything older at 1M, so a model's
|
|
196
|
+
* catalog default is where the number starts, not where it has to stay.
|
|
197
|
+
*/
|
|
204
198
|
function contextWindowLimitForModel(model) {
|
|
205
199
|
return resolveCodexCatalogEntry(model).reasoningProfile === "gpt-6" ? GPT_6_MAX_CONTEXT_WINDOW : GPT_56_MAX_CONTEXT_WINDOW;
|
|
206
200
|
}
|
|
@@ -249,8 +243,7 @@ function listCodexModels(preferences) {
|
|
|
249
243
|
}
|
|
250
244
|
function resolveCodexModel(model, preferences) {
|
|
251
245
|
const entry = resolveCodexCatalogEntry(model);
|
|
252
|
-
const
|
|
253
|
-
const configuredContextWindow = isConfigurableContextModelId(model) ? status?.contextWindowOverrides[model] : void 0;
|
|
246
|
+
const configuredContextWindow = (preferences?.status())?.contextWindowOverrides[model];
|
|
254
247
|
const efforts = reasoningEffortsForModel(model);
|
|
255
248
|
const defaultEffort = efforts.includes(entry.defaultReasoningEffort) ? entry.defaultReasoningEffort : efforts[0];
|
|
256
249
|
return {
|
|
@@ -3277,6 +3270,14 @@ function resolveSettingsNamespace(namespace) {
|
|
|
3277
3270
|
return typeof factory === "function" ? factory(namespace) : namespace;
|
|
3278
3271
|
}
|
|
3279
3272
|
//#endregion
|
|
3273
|
+
//#region src/host/common/context-window-overrides.ts
|
|
3274
|
+
function mergeContextWindowOverrides(current, patch) {
|
|
3275
|
+
const merged = { ...current ?? {} };
|
|
3276
|
+
for (const [model, contextWindow] of Object.entries(patch)) if (contextWindow === null) delete merged[model];
|
|
3277
|
+
else merged[model] = contextWindow;
|
|
3278
|
+
return merged;
|
|
3279
|
+
}
|
|
3280
|
+
//#endregion
|
|
3280
3281
|
//#region src/host/antigravity/token-store.ts
|
|
3281
3282
|
const ANTIGRAVITY_PREFERENCES_NAMESPACE = "dsh-antigravity";
|
|
3282
3283
|
function registerAntigravityPreferenceStore(settings, fallbackStore = new FileModelSettingsStore$1()) {
|
|
@@ -3326,10 +3327,7 @@ function registerAntigravityPreferenceStore(settings, fallbackStore = new FileMo
|
|
|
3326
3327
|
const normalized = {
|
|
3327
3328
|
enabled: patch.enabled !== void 0 ? patch.enabled : current.enabled !== false,
|
|
3328
3329
|
enabledModelIds: patch.enabledModelIds ?? current.enabledModelIds,
|
|
3329
|
-
contextWindowOverrides: patch.contextWindowOverrides ?
|
|
3330
|
-
...current.contextWindowOverrides,
|
|
3331
|
-
...patch.contextWindowOverrides
|
|
3332
|
-
} : current.contextWindowOverrides,
|
|
3330
|
+
contextWindowOverrides: patch.contextWindowOverrides ? mergeContextWindowOverrides(current.contextWindowOverrides, patch.contextWindowOverrides) : current.contextWindowOverrides,
|
|
3333
3331
|
defaultReasoningEffort: patch.defaultReasoningEffort !== void 0 ? patch.defaultReasoningEffort : current.defaultReasoningEffort
|
|
3334
3332
|
};
|
|
3335
3333
|
await scope.update(normalized);
|
|
@@ -3503,10 +3501,7 @@ var FileModelSettingsStore$1 = class {
|
|
|
3503
3501
|
...current,
|
|
3504
3502
|
...patch.enabled !== void 0 ? { enabled: patch.enabled } : {},
|
|
3505
3503
|
...patch.enabledModelIds !== void 0 ? { enabledModelIds: patch.enabledModelIds } : {},
|
|
3506
|
-
...patch.contextWindowOverrides !== void 0 ? { contextWindowOverrides: {
|
|
3507
|
-
...current.contextWindowOverrides || {},
|
|
3508
|
-
...patch.contextWindowOverrides
|
|
3509
|
-
} } : {},
|
|
3504
|
+
...patch.contextWindowOverrides !== void 0 ? { contextWindowOverrides: mergeContextWindowOverrides(current.contextWindowOverrides || {}, patch.contextWindowOverrides) } : {},
|
|
3510
3505
|
...patch.defaultReasoningEffort !== void 0 ? { defaultReasoningEffort: patch.defaultReasoningEffort } : {}
|
|
3511
3506
|
};
|
|
3512
3507
|
await this.write(next);
|
|
@@ -3670,14 +3665,7 @@ const DEFAULT_PREFERENCES = {
|
|
|
3670
3665
|
reasoningSummary: null,
|
|
3671
3666
|
visibleModelIds: [...DEFAULT_VISIBLE_CODEX_MODEL_IDS],
|
|
3672
3667
|
searchProvider: "dsh",
|
|
3673
|
-
contextWindowOverrides: {
|
|
3674
|
-
"gpt-6-astra": GPT_6_DEFAULT_CONTEXT_WINDOW,
|
|
3675
|
-
"gpt-6-sol": GPT_6_DEFAULT_CONTEXT_WINDOW,
|
|
3676
|
-
"gpt-6-luna": GPT_6_DEFAULT_CONTEXT_WINDOW,
|
|
3677
|
-
"gpt-5.6-sol": 272e3,
|
|
3678
|
-
"gpt-5.6-terra": 272e3,
|
|
3679
|
-
"gpt-5.6-luna": 272e3
|
|
3680
|
-
},
|
|
3668
|
+
contextWindowOverrides: {},
|
|
3681
3669
|
proxyMode: "auto",
|
|
3682
3670
|
customProxyUrl: null
|
|
3683
3671
|
};
|
|
@@ -3859,6 +3847,7 @@ function sectionOf(document, id) {
|
|
|
3859
3847
|
* @param settings - Live `ctx.settings` service of either harness generation.
|
|
3860
3848
|
*/
|
|
3861
3849
|
function registerPreferenceStore(settings) {
|
|
3850
|
+
const contextWindowOverrides = z.object(Object.fromEntries(CODEX_MODEL_CATALOG.map((entry) => [entry.id, z.number().step(1).min(1).max(contextWindowLimitForModel(entry.id))]))).default({});
|
|
3862
3851
|
const schema = z.object({
|
|
3863
3852
|
enabled: z.boolean().default(DEFAULT_PREFERENCES.enabled ?? true),
|
|
3864
3853
|
quickQuotaVisible: z.boolean().default(DEFAULT_PREFERENCES.quickQuotaVisible),
|
|
@@ -3878,14 +3867,7 @@ function registerPreferenceStore(settings) {
|
|
|
3878
3867
|
]).default(DEFAULT_PREFERENCES.reasoningSummary),
|
|
3879
3868
|
visibleModelIds: z.array(z.string()).default(DEFAULT_PREFERENCES.visibleModelIds),
|
|
3880
3869
|
searchProvider: z.union([z.const("dsh"), z.const(SEARCH_PROVIDER_CODEX)]).default(DEFAULT_PREFERENCES.searchProvider),
|
|
3881
|
-
contextWindowOverrides
|
|
3882
|
-
"gpt-6-astra": z.number().step(1).min(1).max(GPT_6_MAX_CONTEXT_WINDOW).default(DEFAULT_PREFERENCES.contextWindowOverrides["gpt-6-astra"]),
|
|
3883
|
-
"gpt-6-sol": z.number().step(1).min(1).max(GPT_6_MAX_CONTEXT_WINDOW).default(DEFAULT_PREFERENCES.contextWindowOverrides["gpt-6-sol"]),
|
|
3884
|
-
"gpt-6-luna": z.number().step(1).min(1).max(GPT_6_MAX_CONTEXT_WINDOW).default(DEFAULT_PREFERENCES.contextWindowOverrides["gpt-6-luna"]),
|
|
3885
|
-
"gpt-5.6-sol": z.number().step(1).min(1).max(GPT_56_MAX_CONTEXT_WINDOW).default(DEFAULT_PREFERENCES.contextWindowOverrides["gpt-5.6-sol"]),
|
|
3886
|
-
"gpt-5.6-terra": z.number().step(1).min(1).max(GPT_56_MAX_CONTEXT_WINDOW).default(DEFAULT_PREFERENCES.contextWindowOverrides["gpt-5.6-terra"]),
|
|
3887
|
-
"gpt-5.6-luna": z.number().step(1).min(1).max(GPT_56_MAX_CONTEXT_WINDOW).default(DEFAULT_PREFERENCES.contextWindowOverrides["gpt-5.6-luna"])
|
|
3888
|
-
}).default(DEFAULT_PREFERENCES.contextWindowOverrides),
|
|
3870
|
+
contextWindowOverrides,
|
|
3889
3871
|
proxyMode: z.union([
|
|
3890
3872
|
z.const("auto"),
|
|
3891
3873
|
z.const("custom"),
|
|
@@ -3937,10 +3919,7 @@ var SettingsPreferenceStore = class {
|
|
|
3937
3919
|
if (!isSearchProviderPreference(patch.searchProvider)) throw new PreferenceError("Unsupported search provider preference.");
|
|
3938
3920
|
normalized.searchProvider = patch.searchProvider;
|
|
3939
3921
|
}
|
|
3940
|
-
if (patch.contextWindowOverrides !== void 0) normalized.contextWindowOverrides =
|
|
3941
|
-
...this.scope.get().contextWindowOverrides,
|
|
3942
|
-
...patch.contextWindowOverrides
|
|
3943
|
-
};
|
|
3922
|
+
if (patch.contextWindowOverrides !== void 0) normalized.contextWindowOverrides = mergeContextWindowOverrides(this.scope.get().contextWindowOverrides, patch.contextWindowOverrides);
|
|
3944
3923
|
if (patch.proxyMode !== void 0) {
|
|
3945
3924
|
if (!isProxyMode(patch.proxyMode)) throw new PreferenceError("Unsupported proxy mode preference.");
|
|
3946
3925
|
normalized.proxyMode = patch.proxyMode;
|
|
@@ -5601,12 +5580,16 @@ function registerRoutes(ctx, oauth, usage, preferences, proxyManager, searchSwit
|
|
|
5601
5580
|
value: await usage.testConnection()
|
|
5602
5581
|
});
|
|
5603
5582
|
return;
|
|
5604
|
-
case `${ROUTE_PREFIX$3}/preferences/update`:
|
|
5583
|
+
case `${ROUTE_PREFIX$3}/preferences/update`: {
|
|
5584
|
+
const patch = readPreferencesUpdate(body, preferences.status());
|
|
5585
|
+
const value = await preferences.update(patch);
|
|
5586
|
+
if (patch.visibleModelIds !== void 0 || patch.enabled !== void 0 || patch.contextWindowOverrides !== void 0) ctx.emit?.("llm/adapters-updated");
|
|
5605
5587
|
json(response, {
|
|
5606
5588
|
ok: true,
|
|
5607
|
-
value
|
|
5589
|
+
value
|
|
5608
5590
|
});
|
|
5609
5591
|
return;
|
|
5592
|
+
}
|
|
5610
5593
|
default: jsonError(response, 404, {
|
|
5611
5594
|
code: "bad-request",
|
|
5612
5595
|
message: "Route not found."
|
|
@@ -5753,8 +5736,12 @@ function readPreferencesUpdate(value, current) {
|
|
|
5753
5736
|
if (!isRecord$11(value.contextWindowOverrides)) throw new PreferenceError("contextWindowOverrides must be an object.");
|
|
5754
5737
|
const overrides = {};
|
|
5755
5738
|
for (const [model, contextWindow] of Object.entries(value.contextWindowOverrides)) {
|
|
5756
|
-
if (!
|
|
5757
|
-
if (
|
|
5739
|
+
if (!isCodexModelId(model)) throw new PreferenceError("Unknown Codex model for a context window override.");
|
|
5740
|
+
if (contextWindow === null) {
|
|
5741
|
+
overrides[model] = null;
|
|
5742
|
+
continue;
|
|
5743
|
+
}
|
|
5744
|
+
if (!Number.isSafeInteger(contextWindow) || contextWindow < 1 || contextWindow > contextWindowLimitForModel(model)) throw new PreferenceError(`contextWindowOverrides.${model} must be a positive integer no greater than the provider limit, or null to restore the default.`);
|
|
5758
5745
|
overrides[model] = contextWindow;
|
|
5759
5746
|
}
|
|
5760
5747
|
patch.contextWindowOverrides = overrides;
|
|
@@ -7729,6 +7716,7 @@ function registerAntigravityRoutes(ctx, store, modelSettings, preferences, fetch
|
|
|
7729
7716
|
const body = await readRequestJson$3(request);
|
|
7730
7717
|
if (preferences) await preferences.update(body);
|
|
7731
7718
|
else await modelSettings.updateSettings(body);
|
|
7719
|
+
if (body.enabledModelIds !== void 0 || body.enabled !== void 0) ctx.emit?.("llm/adapters-updated");
|
|
7732
7720
|
return sendJson$4(response, 200, {
|
|
7733
7721
|
ok: true,
|
|
7734
7722
|
value: await getAntigravityWebStatus(store, modelSettings, preferences, accountPool)
|
|
@@ -7741,8 +7729,11 @@ function registerAntigravityRoutes(ctx, store, modelSettings, preferences, fetch
|
|
|
7741
7729
|
});
|
|
7742
7730
|
if (request.method === "POST") {
|
|
7743
7731
|
const body = await readRequestJson$3(request);
|
|
7744
|
-
if (Array.isArray(body.enabledModelIds) || body.enabled !== void 0 || body.contextWindowOverrides || body.defaultReasoningEffort !== void 0)
|
|
7745
|
-
|
|
7732
|
+
if (Array.isArray(body.enabledModelIds) || body.enabled !== void 0 || body.contextWindowOverrides || body.defaultReasoningEffort !== void 0) {
|
|
7733
|
+
if (preferences) await preferences.update(body);
|
|
7734
|
+
else await modelSettings.updateSettings(body);
|
|
7735
|
+
if (body.enabledModelIds !== void 0 || body.enabled !== void 0) ctx.emit?.("llm/adapters-updated");
|
|
7736
|
+
}
|
|
7746
7737
|
return sendJson$4(response, 200, {
|
|
7747
7738
|
ok: true,
|
|
7748
7739
|
value: await getAntigravityWebStatus(store, modelSettings, preferences, accountPool)
|
|
@@ -8826,10 +8817,7 @@ function registerCommandCodePreferenceStore(settings, fallbackStore = new FileMo
|
|
|
8826
8817
|
const normalized = {
|
|
8827
8818
|
enabled: patch.enabled !== void 0 ? patch.enabled : current.enabled !== false,
|
|
8828
8819
|
enabledModelIds: patch.enabledModelIds ?? current.enabledModelIds,
|
|
8829
|
-
contextWindowOverrides: patch.contextWindowOverrides ?
|
|
8830
|
-
...current.contextWindowOverrides,
|
|
8831
|
-
...patch.contextWindowOverrides
|
|
8832
|
-
} : current.contextWindowOverrides,
|
|
8820
|
+
contextWindowOverrides: patch.contextWindowOverrides ? mergeContextWindowOverrides(current.contextWindowOverrides, patch.contextWindowOverrides) : current.contextWindowOverrides,
|
|
8833
8821
|
defaultReasoningEffort: patch.defaultReasoningEffort !== void 0 ? patch.defaultReasoningEffort : current.defaultReasoningEffort
|
|
8834
8822
|
};
|
|
8835
8823
|
await scope.update(normalized);
|
|
@@ -9013,10 +9001,7 @@ var FileModelSettingsStore = class {
|
|
|
9013
9001
|
...current,
|
|
9014
9002
|
...patch.enabled !== void 0 ? { enabled: patch.enabled } : {},
|
|
9015
9003
|
...patch.enabledModelIds !== void 0 ? { enabledModelIds: patch.enabledModelIds } : {},
|
|
9016
|
-
...patch.contextWindowOverrides !== void 0 ? { contextWindowOverrides: {
|
|
9017
|
-
...current.contextWindowOverrides,
|
|
9018
|
-
...patch.contextWindowOverrides
|
|
9019
|
-
} } : {},
|
|
9004
|
+
...patch.contextWindowOverrides !== void 0 ? { contextWindowOverrides: mergeContextWindowOverrides(current.contextWindowOverrides, patch.contextWindowOverrides) } : {},
|
|
9020
9005
|
...patch.defaultReasoningEffort !== void 0 ? { defaultReasoningEffort: patch.defaultReasoningEffort } : {}
|
|
9021
9006
|
};
|
|
9022
9007
|
await this.write(next);
|
|
@@ -11983,7 +11968,8 @@ function registerCommandCodeRoutes(ctx, store, modelSettings, preferences, optio
|
|
|
11983
11968
|
if (Array.isArray(body.enabledModelIds)) patch.enabledModelIds = body.enabledModelIds.filter((id) => typeof id === "string");
|
|
11984
11969
|
if (typeof body.contextWindowOverrides === "object" && body.contextWindowOverrides !== null) {
|
|
11985
11970
|
const overrides = {};
|
|
11986
|
-
for (const [key, raw] of Object.entries(body.contextWindowOverrides)) if (
|
|
11971
|
+
for (const [key, raw] of Object.entries(body.contextWindowOverrides)) if (raw === null) overrides[key] = null;
|
|
11972
|
+
else if (typeof raw === "number" && Number.isFinite(raw) && raw > 0) overrides[key] = Math.floor(raw);
|
|
11987
11973
|
patch.contextWindowOverrides = overrides;
|
|
11988
11974
|
}
|
|
11989
11975
|
if (body.defaultReasoningEffort !== void 0) {
|
|
@@ -11992,6 +11978,7 @@ function registerCommandCodeRoutes(ctx, store, modelSettings, preferences, optio
|
|
|
11992
11978
|
}
|
|
11993
11979
|
if (preferences) await preferences.update(patch);
|
|
11994
11980
|
else await modelSettings.updateSettings(patch);
|
|
11981
|
+
if (patch.enabledModelIds !== void 0 || patch.enabled !== void 0) ctx.emit?.("llm/adapters-updated");
|
|
11995
11982
|
return sendJson$2(response, 200, {
|
|
11996
11983
|
ok: true,
|
|
11997
11984
|
value: await readStatus()
|
|
@@ -12409,10 +12396,7 @@ function registerKimiCodePreferenceStore(settings, fallbackStore = new FileModel
|
|
|
12409
12396
|
const normalized = {
|
|
12410
12397
|
enabled: patch.enabled !== void 0 ? patch.enabled : current.enabled !== false,
|
|
12411
12398
|
enabledModelIds: patch.enabledModelIds ?? current.enabledModelIds,
|
|
12412
|
-
contextWindowOverrides: patch.contextWindowOverrides ?
|
|
12413
|
-
...current.contextWindowOverrides,
|
|
12414
|
-
...patch.contextWindowOverrides
|
|
12415
|
-
} : current.contextWindowOverrides,
|
|
12399
|
+
contextWindowOverrides: patch.contextWindowOverrides ? mergeContextWindowOverrides(current.contextWindowOverrides, patch.contextWindowOverrides) : current.contextWindowOverrides,
|
|
12416
12400
|
defaultReasoningEffort: patch.defaultReasoningEffort !== void 0 ? patch.defaultReasoningEffort : current.defaultReasoningEffort
|
|
12417
12401
|
};
|
|
12418
12402
|
await scope.update(normalized);
|
|
@@ -12631,10 +12615,7 @@ var FileModelSettingsStore$2 = class {
|
|
|
12631
12615
|
...current,
|
|
12632
12616
|
...patch.enabled !== void 0 ? { enabled: patch.enabled } : {},
|
|
12633
12617
|
...patch.enabledModelIds !== void 0 ? { enabledModelIds: patch.enabledModelIds } : {},
|
|
12634
|
-
...patch.contextWindowOverrides !== void 0 ? { contextWindowOverrides: {
|
|
12635
|
-
...current.contextWindowOverrides,
|
|
12636
|
-
...patch.contextWindowOverrides
|
|
12637
|
-
} } : {},
|
|
12618
|
+
...patch.contextWindowOverrides !== void 0 ? { contextWindowOverrides: mergeContextWindowOverrides(current.contextWindowOverrides, patch.contextWindowOverrides) } : {},
|
|
12638
12619
|
...patch.defaultReasoningEffort !== void 0 ? { defaultReasoningEffort: patch.defaultReasoningEffort } : {}
|
|
12639
12620
|
};
|
|
12640
12621
|
await this.write(next);
|
|
@@ -16522,7 +16503,8 @@ function registerKimiCodeRoutes(ctx, store, modelSettings, preferences, options
|
|
|
16522
16503
|
if (Array.isArray(body.enabledModelIds)) patch.enabledModelIds = body.enabledModelIds.filter((id) => typeof id === "string");
|
|
16523
16504
|
if (typeof body.contextWindowOverrides === "object" && body.contextWindowOverrides !== null) {
|
|
16524
16505
|
const overrides = {};
|
|
16525
|
-
for (const [key, raw] of Object.entries(body.contextWindowOverrides)) if (
|
|
16506
|
+
for (const [key, raw] of Object.entries(body.contextWindowOverrides)) if (raw === null) overrides[key] = null;
|
|
16507
|
+
else if (typeof raw === "number" && Number.isFinite(raw) && raw > 0) overrides[key] = Math.floor(raw);
|
|
16526
16508
|
patch.contextWindowOverrides = overrides;
|
|
16527
16509
|
}
|
|
16528
16510
|
if (body.defaultReasoningEffort !== void 0) {
|
|
@@ -16531,6 +16513,7 @@ function registerKimiCodeRoutes(ctx, store, modelSettings, preferences, options
|
|
|
16531
16513
|
}
|
|
16532
16514
|
if (preferences) await preferences.update(patch);
|
|
16533
16515
|
else await modelSettings.updateSettings(patch);
|
|
16516
|
+
if (patch.enabledModelIds !== void 0 || patch.enabled !== void 0) ctx.emit?.("llm/adapters-updated");
|
|
16534
16517
|
return sendJson$1(response, 200, {
|
|
16535
16518
|
ok: true,
|
|
16536
16519
|
value: await readStatus()
|
|
@@ -18137,10 +18120,7 @@ function registerWorkBuddyPreferenceStore(settings, fallbackStore = new FileMode
|
|
|
18137
18120
|
const normalized = {
|
|
18138
18121
|
enabled: patch.enabled !== void 0 ? patch.enabled : current.enabled !== false,
|
|
18139
18122
|
enabledModelIds: patch.enabledModelIds ?? current.enabledModelIds,
|
|
18140
|
-
contextWindowOverrides: patch.contextWindowOverrides ?
|
|
18141
|
-
...current.contextWindowOverrides,
|
|
18142
|
-
...patch.contextWindowOverrides
|
|
18143
|
-
} : current.contextWindowOverrides,
|
|
18123
|
+
contextWindowOverrides: patch.contextWindowOverrides ? mergeContextWindowOverrides(current.contextWindowOverrides, patch.contextWindowOverrides) : current.contextWindowOverrides,
|
|
18144
18124
|
defaultReasoningEffort: patch.defaultReasoningEffort !== void 0 ? patch.defaultReasoningEffort : current.defaultReasoningEffort,
|
|
18145
18125
|
selectedAccountId: patch.selectedAccountId !== void 0 ? patch.selectedAccountId : current.selectedAccountId,
|
|
18146
18126
|
hiddenAccountIds: patch.hiddenAccountIds ?? current.hiddenAccountIds
|
|
@@ -18640,10 +18620,7 @@ var FileModelSettingsStore$3 = class {
|
|
|
18640
18620
|
...current,
|
|
18641
18621
|
...patch.enabled !== void 0 ? { enabled: patch.enabled } : {},
|
|
18642
18622
|
...patch.enabledModelIds !== void 0 ? { enabledModelIds: patch.enabledModelIds } : {},
|
|
18643
|
-
...patch.contextWindowOverrides !== void 0 ? { contextWindowOverrides: {
|
|
18644
|
-
...current.contextWindowOverrides,
|
|
18645
|
-
...patch.contextWindowOverrides
|
|
18646
|
-
} } : {},
|
|
18623
|
+
...patch.contextWindowOverrides !== void 0 ? { contextWindowOverrides: mergeContextWindowOverrides(current.contextWindowOverrides, patch.contextWindowOverrides) } : {},
|
|
18647
18624
|
...patch.defaultReasoningEffort !== void 0 ? { defaultReasoningEffort: patch.defaultReasoningEffort } : {},
|
|
18648
18625
|
...patch.selectedAccountId !== void 0 ? { selectedAccountId: patch.selectedAccountId } : {},
|
|
18649
18626
|
...patch.hiddenAccountIds !== void 0 ? { hiddenAccountIds: patch.hiddenAccountIds } : {}
|
|
@@ -19715,7 +19692,8 @@ function registerWorkBuddyRoutes(ctx, store, modelSettings, preferences, options
|
|
|
19715
19692
|
if (Array.isArray(body.enabledModelIds)) patch.enabledModelIds = body.enabledModelIds.filter((id) => typeof id === "string");
|
|
19716
19693
|
if (typeof body.contextWindowOverrides === "object" && body.contextWindowOverrides !== null) {
|
|
19717
19694
|
const overrides = {};
|
|
19718
|
-
for (const [key, raw] of Object.entries(body.contextWindowOverrides)) if (
|
|
19695
|
+
for (const [key, raw] of Object.entries(body.contextWindowOverrides)) if (raw === null) overrides[key] = null;
|
|
19696
|
+
else if (typeof raw === "number" && Number.isFinite(raw) && raw > 0) overrides[key] = Math.floor(raw);
|
|
19719
19697
|
patch.contextWindowOverrides = overrides;
|
|
19720
19698
|
}
|
|
19721
19699
|
if (body.defaultReasoningEffort !== void 0) {
|
|
@@ -19741,6 +19719,7 @@ function registerWorkBuddyRoutes(ctx, store, modelSettings, preferences, options
|
|
|
19741
19719
|
}
|
|
19742
19720
|
if (preferences) await preferences.update(patch);
|
|
19743
19721
|
else await modelSettings.updateSettings(patch);
|
|
19722
|
+
if (patch.enabledModelIds !== void 0 || patch.enabled !== void 0 || patch.selectedAccountId !== void 0) ctx.emit?.("llm/adapters-updated");
|
|
19744
19723
|
return sendJson(response, 200, {
|
|
19745
19724
|
ok: true,
|
|
19746
19725
|
value: await getWorkBuddyWebStatus(store, modelSettings, preferences, options)
|
|
@@ -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;
|
|
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;AAMtM,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,CA8hBxE;AAiBD,wBAAgB,YAAY,CAAC,OAAO,EAAE,oBAAoB,GAAG,SAAS,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CAO5F;AAED,wBAAgB,aAAa,CAAC,OAAO,EAAE,oBAAoB,GAAG,SAAS,EAAE,CAAC,EAAE,SAAS,GAAG,MAAM,CAO7F;AAcD,wBAAgB,gBAAgB,CAAC,EAAE,YAAY,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,EAAE,EAAE;IAAE,YAAY,EAAE,WAAW,CAAC,eAAe,CAAC,OAAO,CAAC,CAAC,cAAc,CAAC,CAAC,CAAC;IAAC,IAAI,EAAE,UAAU,CAAC;IAAC,KAAK,EAAE,MAAM,OAAO,CAAC,IAAI,CAAC,CAAC;IAAC,CAAC,EAAE,SAAS,CAAA;CAAE,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAUzN;AAED,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,MAAM,EAAE,CAAC,EAAE,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,cAAc,CAAC;IAAC,CAAC,EAAE,SAAS,CAAA;CAAE,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,CAczH;AAMD,wBAAgB,WAAW,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":"AntigravitySection.d.ts","sourceRoot":"","sources":["../../../../src/client/antigravity/AntigravitySection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAA;AAW/D,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC;AAiBD,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAOlE;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIpD;
|
|
1
|
+
{"version":3,"file":"AntigravitySection.d.ts","sourceRoot":"","sources":["../../../../src/client/antigravity/AntigravitySection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAA;AAW/D,UAAU,KAAK;IACb,aAAa,CAAC,EAAE,MAAM,IAAI,CAAA;IAC1B,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;CAChC;AAiBD,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAOlE;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIpD;AAoCD,wBAAgB,kBAAkB,CAAC,EAAE,aAAa,EAAE,kBAAkB,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CA8kBnG"}
|
|
@@ -44,6 +44,10 @@ export declare const zh: {
|
|
|
44
44
|
defaultEffortAuto: string;
|
|
45
45
|
contextWindowSection: string;
|
|
46
46
|
contextWindowHint: string;
|
|
47
|
+
contextWindowReset: string;
|
|
48
|
+
contextWindowResetAll: string;
|
|
49
|
+
contextWindowResetAllConfirm: string;
|
|
50
|
+
contextWindowNoneEnabled: string;
|
|
47
51
|
save: string;
|
|
48
52
|
saved: string;
|
|
49
53
|
saving: string;
|
|
@@ -117,6 +121,10 @@ export declare const dictionaries: {
|
|
|
117
121
|
defaultEffortAuto: string;
|
|
118
122
|
contextWindowSection: string;
|
|
119
123
|
contextWindowHint: string;
|
|
124
|
+
contextWindowReset: string;
|
|
125
|
+
contextWindowResetAll: string;
|
|
126
|
+
contextWindowResetAllConfirm: string;
|
|
127
|
+
contextWindowNoneEnabled: string;
|
|
120
128
|
save: string;
|
|
121
129
|
saved: string;
|
|
122
130
|
saving: string;
|
|
@@ -188,6 +196,10 @@ export declare const dictionaries: {
|
|
|
188
196
|
defaultEffortAuto: string;
|
|
189
197
|
contextWindowSection: string;
|
|
190
198
|
contextWindowHint: string;
|
|
199
|
+
contextWindowReset: string;
|
|
200
|
+
contextWindowResetAll: string;
|
|
201
|
+
contextWindowResetAllConfirm: string;
|
|
202
|
+
contextWindowNoneEnabled: string;
|
|
191
203
|
save: string;
|
|
192
204
|
saved: string;
|
|
193
205
|
saving: string;
|
|
@@ -214,7 +226,7 @@ export declare const dictionaries: {
|
|
|
214
226
|
email: string;
|
|
215
227
|
lastUsed: string;
|
|
216
228
|
};
|
|
217
|
-
en: Record<"account" | "
|
|
218
|
-
'en-US': Record<"account" | "
|
|
229
|
+
en: Record<"tokens" | "title" | "pageDesc" | "account" | "signedIn" | "signedOut" | "accountPool" | "addAccount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "clearCooldown" | "rotationStrategy" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "plan" | "accountId" | "expires" | "storage" | "storageNotice" | "signInAgain" | "refreshToken" | "signOut" | "signIn" | "signingIn" | "connection" | "provider" | "providerValue" | "connectionState" | "connected" | "untested" | "enableProvider" | "modelsHint" | "selectAll" | "unselectAll" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "contextWindowSection" | "contextWindowHint" | "contextWindowReset" | "contextWindowResetAll" | "contextWindowResetAllConfirm" | "contextWindowNoneEnabled" | "save" | "saved" | "saving" | "quotaSection" | "quotaDesc" | "refreshQuota" | "refreshingQuota" | "quotaEmpty" | "googleValidation" | "resetPrefix" | "resetUnavailable" | "resetNow" | "timeDayHour" | "timeHourMin" | "timeMin" | "updatedAt" | "loading" | "loginFailed" | "accountCount" | "cooldownLeft" | "needsRelogin" | "relogin" | "email" | "lastUsed", string>;
|
|
230
|
+
'en-US': Record<"tokens" | "title" | "pageDesc" | "account" | "signedIn" | "signedOut" | "accountPool" | "addAccount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "clearCooldown" | "rotationStrategy" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "plan" | "accountId" | "expires" | "storage" | "storageNotice" | "signInAgain" | "refreshToken" | "signOut" | "signIn" | "signingIn" | "connection" | "provider" | "providerValue" | "connectionState" | "connected" | "untested" | "enableProvider" | "modelsHint" | "selectAll" | "unselectAll" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "contextWindowSection" | "contextWindowHint" | "contextWindowReset" | "contextWindowResetAll" | "contextWindowResetAllConfirm" | "contextWindowNoneEnabled" | "save" | "saved" | "saving" | "quotaSection" | "quotaDesc" | "refreshQuota" | "refreshingQuota" | "quotaEmpty" | "googleValidation" | "resetPrefix" | "resetUnavailable" | "resetNow" | "timeDayHour" | "timeHourMin" | "timeMin" | "updatedAt" | "loading" | "loginFailed" | "accountCount" | "cooldownLeft" | "needsRelogin" | "relogin" | "email" | "lastUsed", string>;
|
|
219
231
|
};
|
|
220
232
|
//# sourceMappingURL=locales.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../../src/client/antigravity/locales.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,oBAAoB,CAAA;AAI/C,eAAO,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../../src/client/antigravity/locales.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,cAAc,oBAAoB,CAAA;AAI/C,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAsEd,CAAA;AAED,eAAO,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,OAAO,EAAE,EAAE,MAAM,CAqE9C,CAAA;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKxB,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/client/antigravity/styles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,mCAAmC,CAAA;AAExD,wBAAgB,wBAAwB,IAAI,IAAI,
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/client/antigravity/styles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,mCAAmC,CAAA;AAExD,wBAAgB,wBAAwB,IAAI,IAAI,CAgF/C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CommandCodeSection.d.ts","sourceRoot":"","sources":["../../../../src/client/command-code/CommandCodeSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAA;AA0B/D,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;
|
|
1
|
+
{"version":3,"file":"CommandCodeSection.d.ts","sourceRoot":"","sources":["../../../../src/client/command-code/CommandCodeSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAA;AA0B/D,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;AA2CD,wBAAgB,kBAAkB,CAAC,EAAE,aAAa,EAAE,kBAAkB,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CAinBnG"}
|
|
@@ -51,6 +51,10 @@ export declare const zh: {
|
|
|
51
51
|
readonly defaultEffortAuto: "使用 Provider 默认值";
|
|
52
52
|
readonly contextWindowSection: "模型上下文窗口";
|
|
53
53
|
readonly contextWindowHint: "默认取 Command Code 模型目录的 context length;可覆盖为自定义容量,该值用于 DSH 的压缩与溢出判断,可输入 1M、512K、200K 等容量。";
|
|
54
|
+
readonly contextWindowReset: "恢复默认";
|
|
55
|
+
readonly contextWindowResetAll: "全部恢复默认";
|
|
56
|
+
readonly contextWindowResetAllConfirm: "确定把已改过的模型上下文窗口全部恢复为默认值吗?";
|
|
57
|
+
readonly contextWindowNoneEnabled: "还没有勾选任何模型。在上方勾选后,这里会出现该模型的上下文窗口设置。";
|
|
54
58
|
readonly save: "保存";
|
|
55
59
|
readonly saved: "已保存";
|
|
56
60
|
readonly saving: "保存中...";
|
|
@@ -141,6 +145,10 @@ export declare const dictionaries: {
|
|
|
141
145
|
readonly defaultEffortAuto: "使用 Provider 默认值";
|
|
142
146
|
readonly contextWindowSection: "模型上下文窗口";
|
|
143
147
|
readonly contextWindowHint: "默认取 Command Code 模型目录的 context length;可覆盖为自定义容量,该值用于 DSH 的压缩与溢出判断,可输入 1M、512K、200K 等容量。";
|
|
148
|
+
readonly contextWindowReset: "恢复默认";
|
|
149
|
+
readonly contextWindowResetAll: "全部恢复默认";
|
|
150
|
+
readonly contextWindowResetAllConfirm: "确定把已改过的模型上下文窗口全部恢复为默认值吗?";
|
|
151
|
+
readonly contextWindowNoneEnabled: "还没有勾选任何模型。在上方勾选后,这里会出现该模型的上下文窗口设置。";
|
|
144
152
|
readonly save: "保存";
|
|
145
153
|
readonly saved: "已保存";
|
|
146
154
|
readonly saving: "保存中...";
|
|
@@ -229,6 +237,10 @@ export declare const dictionaries: {
|
|
|
229
237
|
readonly defaultEffortAuto: "使用 Provider 默认值";
|
|
230
238
|
readonly contextWindowSection: "模型上下文窗口";
|
|
231
239
|
readonly contextWindowHint: "默认取 Command Code 模型目录的 context length;可覆盖为自定义容量,该值用于 DSH 的压缩与溢出判断,可输入 1M、512K、200K 等容量。";
|
|
240
|
+
readonly contextWindowReset: "恢复默认";
|
|
241
|
+
readonly contextWindowResetAll: "全部恢复默认";
|
|
242
|
+
readonly contextWindowResetAllConfirm: "确定把已改过的模型上下文窗口全部恢复为默认值吗?";
|
|
243
|
+
readonly contextWindowNoneEnabled: "还没有勾选任何模型。在上方勾选后,这里会出现该模型的上下文窗口设置。";
|
|
232
244
|
readonly save: "保存";
|
|
233
245
|
readonly saved: "已保存";
|
|
234
246
|
readonly saving: "保存中...";
|
|
@@ -265,8 +277,8 @@ export declare const dictionaries: {
|
|
|
265
277
|
readonly lastUsed: string;
|
|
266
278
|
readonly accountId: string;
|
|
267
279
|
};
|
|
268
|
-
en: Record<"account" | "
|
|
269
|
-
'en-US': Record<"account" | "
|
|
280
|
+
en: Record<"tokens" | "title" | "pageDesc" | "account" | "signedIn" | "signedOut" | "accountPool" | "addAccount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "clearCooldown" | "rotationStrategy" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "plan" | "accountId" | "expires" | "storage" | "storageNotice" | "signInAgain" | "signOut" | "signIn" | "signingIn" | "connection" | "provider" | "providerValue" | "connectionState" | "connected" | "untested" | "enableProvider" | "modelsHint" | "selectAll" | "unselectAll" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "contextWindowSection" | "contextWindowHint" | "contextWindowReset" | "contextWindowResetAll" | "contextWindowResetAllConfirm" | "contextWindowNoneEnabled" | "save" | "saved" | "saving" | "quotaSection" | "quotaDesc" | "refreshQuota" | "refreshingQuota" | "quotaEmpty" | "updatedAt" | "loading" | "loginFailed" | "accountCount" | "cooldownLeft" | "needsRelogin" | "relogin" | "email" | "lastUsed" | "keyName" | "organization" | "planUnknown" | "subscription" | "renews" | "authenticatedAt" | "cancelSignIn" | "openSignInPage" | "apiKeySection" | "apiKeyHint" | "apiKeyPlaceholder" | "apiKeySave" | "apiKeySaving" | "apiKeySaved" | "testConnection" | "testingConnection" | "routeOwned" | "routeConflict" | "modelsSection" | "refreshCatalog" | "refreshingCatalog" | "wireAnthropic" | "wireOpenai" | "quotaCredits" | "quotaUnlimited", string>;
|
|
281
|
+
'en-US': Record<"tokens" | "title" | "pageDesc" | "account" | "signedIn" | "signedOut" | "accountPool" | "addAccount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "clearCooldown" | "rotationStrategy" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "plan" | "accountId" | "expires" | "storage" | "storageNotice" | "signInAgain" | "signOut" | "signIn" | "signingIn" | "connection" | "provider" | "providerValue" | "connectionState" | "connected" | "untested" | "enableProvider" | "modelsHint" | "selectAll" | "unselectAll" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "contextWindowSection" | "contextWindowHint" | "contextWindowReset" | "contextWindowResetAll" | "contextWindowResetAllConfirm" | "contextWindowNoneEnabled" | "save" | "saved" | "saving" | "quotaSection" | "quotaDesc" | "refreshQuota" | "refreshingQuota" | "quotaEmpty" | "updatedAt" | "loading" | "loginFailed" | "accountCount" | "cooldownLeft" | "needsRelogin" | "relogin" | "email" | "lastUsed" | "keyName" | "organization" | "planUnknown" | "subscription" | "renews" | "authenticatedAt" | "cancelSignIn" | "openSignInPage" | "apiKeySection" | "apiKeyHint" | "apiKeyPlaceholder" | "apiKeySave" | "apiKeySaving" | "apiKeySaved" | "testConnection" | "testingConnection" | "routeOwned" | "routeConflict" | "modelsSection" | "refreshCatalog" | "refreshingCatalog" | "wireAnthropic" | "wireOpenai" | "quotaCredits" | "quotaUnlimited", string>;
|
|
270
282
|
};
|
|
271
283
|
export type CommandCodeLocaleKey = keyof typeof zh;
|
|
272
284
|
//# sourceMappingURL=locales.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../../src/client/command-code/locales.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,qBAAqB,CAAA;AAEjD,eAAO,MAAM,EAAE
|
|
1
|
+
{"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../../src/client/command-code/locales.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,eAAe,qBAAqB,CAAA;AAEjD,eAAO,MAAM,EAAE;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAyEL,CAAA;AAEV,eAAO,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,OAAO,EAAE,EAAE,MAAM,CAuErC,CAAA;AAEV,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKxB,CAAA;AAED,MAAM,MAAM,oBAAoB,GAAG,MAAM,OAAO,EAAE,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"KimiCodeSection.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/KimiCodeSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAA;AAe/D,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;
|
|
1
|
+
{"version":3,"file":"KimiCodeSection.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/KimiCodeSection.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA2C,MAAM,OAAO,CAAA;AAe/D,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,CAutBhG"}
|
|
@@ -78,6 +78,10 @@ export declare const zh: {
|
|
|
78
78
|
readonly contextWindowSection: "模型上下文窗口";
|
|
79
79
|
readonly contextWindowHint: "默认取模型目录的上下文长度。k3 的 1M 上下文需要 Allegretto 及以上套餐,因此默认按 256K 计算;如已升级可在此覆盖为 1M。";
|
|
80
80
|
readonly contextWindowPlan: "完整上下文需要 {plan} 套餐";
|
|
81
|
+
readonly contextWindowReset: "恢复默认";
|
|
82
|
+
readonly contextWindowResetAll: "全部恢复默认";
|
|
83
|
+
readonly contextWindowResetAllConfirm: "确定把已改过的模型上下文窗口全部恢复为默认值吗?";
|
|
84
|
+
readonly contextWindowNoneEnabled: "还没有勾选任何模型。在上方勾选后,这里会出现该模型的上下文窗口设置。";
|
|
81
85
|
readonly save: "保存";
|
|
82
86
|
readonly saved: "已保存";
|
|
83
87
|
readonly saving: "保存中...";
|
|
@@ -219,6 +223,10 @@ export declare const dictionaries: {
|
|
|
219
223
|
readonly contextWindowSection: "模型上下文窗口";
|
|
220
224
|
readonly contextWindowHint: "默认取模型目录的上下文长度。k3 的 1M 上下文需要 Allegretto 及以上套餐,因此默认按 256K 计算;如已升级可在此覆盖为 1M。";
|
|
221
225
|
readonly contextWindowPlan: "完整上下文需要 {plan} 套餐";
|
|
226
|
+
readonly contextWindowReset: "恢复默认";
|
|
227
|
+
readonly contextWindowResetAll: "全部恢复默认";
|
|
228
|
+
readonly contextWindowResetAllConfirm: "确定把已改过的模型上下文窗口全部恢复为默认值吗?";
|
|
229
|
+
readonly contextWindowNoneEnabled: "还没有勾选任何模型。在上方勾选后,这里会出现该模型的上下文窗口设置。";
|
|
222
230
|
readonly save: "保存";
|
|
223
231
|
readonly saved: "已保存";
|
|
224
232
|
readonly saving: "保存中...";
|
|
@@ -358,6 +366,10 @@ export declare const dictionaries: {
|
|
|
358
366
|
readonly contextWindowSection: "模型上下文窗口";
|
|
359
367
|
readonly contextWindowHint: "默认取模型目录的上下文长度。k3 的 1M 上下文需要 Allegretto 及以上套餐,因此默认按 256K 计算;如已升级可在此覆盖为 1M。";
|
|
360
368
|
readonly contextWindowPlan: "完整上下文需要 {plan} 套餐";
|
|
369
|
+
readonly contextWindowReset: "恢复默认";
|
|
370
|
+
readonly contextWindowResetAll: "全部恢复默认";
|
|
371
|
+
readonly contextWindowResetAllConfirm: "确定把已改过的模型上下文窗口全部恢复为默认值吗?";
|
|
372
|
+
readonly contextWindowNoneEnabled: "还没有勾选任何模型。在上方勾选后,这里会出现该模型的上下文窗口设置。";
|
|
361
373
|
readonly save: "保存";
|
|
362
374
|
readonly saved: "已保存";
|
|
363
375
|
readonly saving: "保存中...";
|
|
@@ -418,8 +430,8 @@ export declare const dictionaries: {
|
|
|
418
430
|
readonly lastUsed: string;
|
|
419
431
|
readonly accountId: string;
|
|
420
432
|
};
|
|
421
|
-
en: Record<"account" | "
|
|
422
|
-
'en-US': Record<"account" | "
|
|
433
|
+
en: Record<"tokens" | "title" | "pageDesc" | "account" | "signedIn" | "signedOut" | "nickname" | "email" | "plan" | "planUnknown" | "region" | "regionMainland" | "regionGlobal" | "authenticatedAt" | "storage" | "storageNotice" | "refreshRejected" | "signIn" | "signInAgain" | "signingIn" | "signOut" | "cancelSignIn" | "deviceCodeSection" | "deviceCodeHint" | "openSignInPage" | "copyCode" | "copied" | "userCode" | "codeExpires" | "waitingAuthorization" | "requestingCode" | "connection" | "provider" | "providerValue" | "oauthHost" | "codingEndpoint" | "connectionState" | "connected" | "untested" | "testConnection" | "testingConnection" | "testSuccess" | "testFailed" | "routeOwned" | "routeConflict" | "modelsSection" | "enableProvider" | "modelsHint" | "refreshCatalog" | "refreshingCatalog" | "selectAll" | "unselectAll" | "wireAnthropic" | "wireOpenai" | "capVideo" | "capDynamicTools" | "capImageOnly" | "capNone" | "capVideoFootnote" | "capabilitiesTitle" | "capColMedia" | "capColTools" | "capColNotes" | "capPlan" | "speedRegular" | "speedHighspeed" | "quotaCost" | "minimumPlan" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "effortLow" | "effortHigh" | "effortMax" | "effortNone" | "contextWindowSection" | "contextWindowHint" | "contextWindowPlan" | "contextWindowReset" | "contextWindowResetAll" | "contextWindowResetAllConfirm" | "contextWindowNoneEnabled" | "save" | "saved" | "saving" | "cacheSection" | "cacheDesc" | "cacheEmpty" | "cacheHitRatio" | "cacheCached" | "cacheFresh" | "cacheOutput" | "cacheRequests" | "cacheHint" | "cacheDrift" | "cacheDriftFirst" | "cacheDriftStable" | "cacheDriftSystemPrompt" | "cacheDriftTools" | "cacheDriftCacheKey" | "cacheDriftColdKey" | "preserveThinking" | "preserveOn" | "preserveOff" | "outputCap" | "quotaSection" | "quotaDesc" | "refreshQuota" | "refreshingQuota" | "quotaEmpty" | "quotaPlan" | "quotaWallet" | "quotaWalletLimit" | "quotaWalletUsed" | "quotaUnlimited" | "updatedAt" | "resetAt" | "loading" | "loginFailed" | "requests" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "clearCooldown" | "needsRelogin" | "relogin" | "rotationStrategy" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "expires" | "lastUsed" | "accountId", string>;
|
|
434
|
+
'en-US': Record<"tokens" | "title" | "pageDesc" | "account" | "signedIn" | "signedOut" | "nickname" | "email" | "plan" | "planUnknown" | "region" | "regionMainland" | "regionGlobal" | "authenticatedAt" | "storage" | "storageNotice" | "refreshRejected" | "signIn" | "signInAgain" | "signingIn" | "signOut" | "cancelSignIn" | "deviceCodeSection" | "deviceCodeHint" | "openSignInPage" | "copyCode" | "copied" | "userCode" | "codeExpires" | "waitingAuthorization" | "requestingCode" | "connection" | "provider" | "providerValue" | "oauthHost" | "codingEndpoint" | "connectionState" | "connected" | "untested" | "testConnection" | "testingConnection" | "testSuccess" | "testFailed" | "routeOwned" | "routeConflict" | "modelsSection" | "enableProvider" | "modelsHint" | "refreshCatalog" | "refreshingCatalog" | "selectAll" | "unselectAll" | "wireAnthropic" | "wireOpenai" | "capVideo" | "capDynamicTools" | "capImageOnly" | "capNone" | "capVideoFootnote" | "capabilitiesTitle" | "capColMedia" | "capColTools" | "capColNotes" | "capPlan" | "speedRegular" | "speedHighspeed" | "quotaCost" | "minimumPlan" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "effortLow" | "effortHigh" | "effortMax" | "effortNone" | "contextWindowSection" | "contextWindowHint" | "contextWindowPlan" | "contextWindowReset" | "contextWindowResetAll" | "contextWindowResetAllConfirm" | "contextWindowNoneEnabled" | "save" | "saved" | "saving" | "cacheSection" | "cacheDesc" | "cacheEmpty" | "cacheHitRatio" | "cacheCached" | "cacheFresh" | "cacheOutput" | "cacheRequests" | "cacheHint" | "cacheDrift" | "cacheDriftFirst" | "cacheDriftStable" | "cacheDriftSystemPrompt" | "cacheDriftTools" | "cacheDriftCacheKey" | "cacheDriftColdKey" | "preserveThinking" | "preserveOn" | "preserveOff" | "outputCap" | "quotaSection" | "quotaDesc" | "refreshQuota" | "refreshingQuota" | "quotaEmpty" | "quotaPlan" | "quotaWallet" | "quotaWalletLimit" | "quotaWalletUsed" | "quotaUnlimited" | "updatedAt" | "resetAt" | "loading" | "loginFailed" | "requests" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "clearCooldown" | "needsRelogin" | "relogin" | "rotationStrategy" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "expires" | "lastUsed" | "accountId", string>;
|
|
423
435
|
};
|
|
424
436
|
export type KimiCodeLocaleKey = keyof typeof zh;
|
|
425
437
|
//# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA4HL,CAAA;AAEV,eAAO,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,OAAO,EAAE,EAAE,MAAM,CA2HrC,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":"AAAA,eAAO,MAAM,QAAQ,iCAAiC,CAAA;
|
|
1
|
+
{"version":3,"file":"styles.d.ts","sourceRoot":"","sources":["../../../../src/client/kimi-code/styles.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,QAAQ,iCAAiC,CAAA;AA0FtD,uEAAuE;AACvE,wBAAgB,qBAAqB,IAAI,IAAI,CAM5C"}
|