@eddyskywalker/dsh-chatgpt-subscription 0.8.0-alpha.1 → 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.
Files changed (50) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/lib/client.js +611 -223
  3. package/lib/client.js.map +1 -1
  4. package/lib/index.js +39 -71
  5. package/lib/types/client/CodexSubscriptionSection.d.ts.map +1 -1
  6. package/lib/types/client/antigravity/AntigravitySection.d.ts.map +1 -1
  7. package/lib/types/client/antigravity/locales.d.ts +14 -2
  8. package/lib/types/client/antigravity/locales.d.ts.map +1 -1
  9. package/lib/types/client/antigravity/styles.d.ts.map +1 -1
  10. package/lib/types/client/command-code/CommandCodeSection.d.ts.map +1 -1
  11. package/lib/types/client/command-code/locales.d.ts +14 -2
  12. package/lib/types/client/command-code/locales.d.ts.map +1 -1
  13. package/lib/types/client/kimi-code/KimiCodeSection.d.ts.map +1 -1
  14. package/lib/types/client/kimi-code/locales.d.ts +14 -2
  15. package/lib/types/client/kimi-code/locales.d.ts.map +1 -1
  16. package/lib/types/client/kimi-code/styles.d.ts.map +1 -1
  17. package/lib/types/client/locales.d.ts +13 -5
  18. package/lib/types/client/locales.d.ts.map +1 -1
  19. package/lib/types/client/workbuddy/WorkBuddySection.d.ts.map +1 -1
  20. package/lib/types/client/workbuddy/locales.d.ts +24 -0
  21. package/lib/types/client/workbuddy/locales.d.ts.map +1 -1
  22. package/lib/types/host/antigravity/token-store.d.ts +5 -2
  23. package/lib/types/host/antigravity/token-store.d.ts.map +1 -1
  24. package/lib/types/host/command-code/routes.d.ts.map +1 -1
  25. package/lib/types/host/command-code/token-store.d.ts +5 -2
  26. package/lib/types/host/command-code/token-store.d.ts.map +1 -1
  27. package/lib/types/host/common/context-window-overrides.d.ts +12 -0
  28. package/lib/types/host/common/context-window-overrides.d.ts.map +1 -0
  29. package/lib/types/host/kimi-code/routes.d.ts.map +1 -1
  30. package/lib/types/host/kimi-code/token-store.d.ts +5 -2
  31. package/lib/types/host/kimi-code/token-store.d.ts.map +1 -1
  32. package/lib/types/host/preferences.d.ts.map +1 -1
  33. package/lib/types/host/routes.d.ts.map +1 -1
  34. package/lib/types/host/workbuddy/routes.d.ts.map +1 -1
  35. package/lib/types/host/workbuddy/token-store.d.ts +5 -2
  36. package/lib/types/host/workbuddy/token-store.d.ts.map +1 -1
  37. package/lib/types/shared/antigravity-contracts.d.ts +2 -1
  38. package/lib/types/shared/antigravity-contracts.d.ts.map +1 -1
  39. package/lib/types/shared/command-code-contracts.d.ts +2 -1
  40. package/lib/types/shared/command-code-contracts.d.ts.map +1 -1
  41. package/lib/types/shared/contracts.d.ts +5 -9
  42. package/lib/types/shared/contracts.d.ts.map +1 -1
  43. package/lib/types/shared/kimi-code-contracts.d.ts +2 -1
  44. package/lib/types/shared/kimi-code-contracts.d.ts.map +1 -1
  45. package/lib/types/shared/model-catalog.d.ts +6 -4
  46. package/lib/types/shared/model-catalog.d.ts.map +1 -1
  47. package/lib/types/shared/preferences.d.ts.map +1 -1
  48. package/lib/types/shared/workbuddy-contracts.d.ts +2 -1
  49. package/lib/types/shared/workbuddy-contracts.d.ts.map +1 -1
  50. 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
- function isConfigurableContextModelId(model) {
202
- return typeof model === "string" && CONFIGURABLE_CONTEXT_MODEL_IDS.some((id) => id === model);
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 status = preferences?.status();
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: z.object({
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;
@@ -5604,7 +5583,7 @@ function registerRoutes(ctx, oauth, usage, preferences, proxyManager, searchSwit
5604
5583
  case `${ROUTE_PREFIX$3}/preferences/update`: {
5605
5584
  const patch = readPreferencesUpdate(body, preferences.status());
5606
5585
  const value = await preferences.update(patch);
5607
- if (patch.visibleModelIds !== void 0 || patch.enabled !== void 0) ctx.emit?.("llm/adapters-updated");
5586
+ if (patch.visibleModelIds !== void 0 || patch.enabled !== void 0 || patch.contextWindowOverrides !== void 0) ctx.emit?.("llm/adapters-updated");
5608
5587
  json(response, {
5609
5588
  ok: true,
5610
5589
  value
@@ -5757,8 +5736,12 @@ function readPreferencesUpdate(value, current) {
5757
5736
  if (!isRecord$11(value.contextWindowOverrides)) throw new PreferenceError("contextWindowOverrides must be an object.");
5758
5737
  const overrides = {};
5759
5738
  for (const [model, contextWindow] of Object.entries(value.contextWindowOverrides)) {
5760
- if (!isConfigurableContextModelId(model)) throw new PreferenceError("This model does not support a configurable context window.");
5761
- 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.`);
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.`);
5762
5745
  overrides[model] = contextWindow;
5763
5746
  }
5764
5747
  patch.contextWindowOverrides = overrides;
@@ -8834,10 +8817,7 @@ function registerCommandCodePreferenceStore(settings, fallbackStore = new FileMo
8834
8817
  const normalized = {
8835
8818
  enabled: patch.enabled !== void 0 ? patch.enabled : current.enabled !== false,
8836
8819
  enabledModelIds: patch.enabledModelIds ?? current.enabledModelIds,
8837
- contextWindowOverrides: patch.contextWindowOverrides ? {
8838
- ...current.contextWindowOverrides,
8839
- ...patch.contextWindowOverrides
8840
- } : current.contextWindowOverrides,
8820
+ contextWindowOverrides: patch.contextWindowOverrides ? mergeContextWindowOverrides(current.contextWindowOverrides, patch.contextWindowOverrides) : current.contextWindowOverrides,
8841
8821
  defaultReasoningEffort: patch.defaultReasoningEffort !== void 0 ? patch.defaultReasoningEffort : current.defaultReasoningEffort
8842
8822
  };
8843
8823
  await scope.update(normalized);
@@ -9021,10 +9001,7 @@ var FileModelSettingsStore = class {
9021
9001
  ...current,
9022
9002
  ...patch.enabled !== void 0 ? { enabled: patch.enabled } : {},
9023
9003
  ...patch.enabledModelIds !== void 0 ? { enabledModelIds: patch.enabledModelIds } : {},
9024
- ...patch.contextWindowOverrides !== void 0 ? { contextWindowOverrides: {
9025
- ...current.contextWindowOverrides,
9026
- ...patch.contextWindowOverrides
9027
- } } : {},
9004
+ ...patch.contextWindowOverrides !== void 0 ? { contextWindowOverrides: mergeContextWindowOverrides(current.contextWindowOverrides, patch.contextWindowOverrides) } : {},
9028
9005
  ...patch.defaultReasoningEffort !== void 0 ? { defaultReasoningEffort: patch.defaultReasoningEffort } : {}
9029
9006
  };
9030
9007
  await this.write(next);
@@ -11991,7 +11968,8 @@ function registerCommandCodeRoutes(ctx, store, modelSettings, preferences, optio
11991
11968
  if (Array.isArray(body.enabledModelIds)) patch.enabledModelIds = body.enabledModelIds.filter((id) => typeof id === "string");
11992
11969
  if (typeof body.contextWindowOverrides === "object" && body.contextWindowOverrides !== null) {
11993
11970
  const overrides = {};
11994
- for (const [key, raw] of Object.entries(body.contextWindowOverrides)) if (typeof raw === "number" && Number.isFinite(raw) && raw > 0) overrides[key] = Math.floor(raw);
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);
11995
11973
  patch.contextWindowOverrides = overrides;
11996
11974
  }
11997
11975
  if (body.defaultReasoningEffort !== void 0) {
@@ -12418,10 +12396,7 @@ function registerKimiCodePreferenceStore(settings, fallbackStore = new FileModel
12418
12396
  const normalized = {
12419
12397
  enabled: patch.enabled !== void 0 ? patch.enabled : current.enabled !== false,
12420
12398
  enabledModelIds: patch.enabledModelIds ?? current.enabledModelIds,
12421
- contextWindowOverrides: patch.contextWindowOverrides ? {
12422
- ...current.contextWindowOverrides,
12423
- ...patch.contextWindowOverrides
12424
- } : current.contextWindowOverrides,
12399
+ contextWindowOverrides: patch.contextWindowOverrides ? mergeContextWindowOverrides(current.contextWindowOverrides, patch.contextWindowOverrides) : current.contextWindowOverrides,
12425
12400
  defaultReasoningEffort: patch.defaultReasoningEffort !== void 0 ? patch.defaultReasoningEffort : current.defaultReasoningEffort
12426
12401
  };
12427
12402
  await scope.update(normalized);
@@ -12640,10 +12615,7 @@ var FileModelSettingsStore$2 = class {
12640
12615
  ...current,
12641
12616
  ...patch.enabled !== void 0 ? { enabled: patch.enabled } : {},
12642
12617
  ...patch.enabledModelIds !== void 0 ? { enabledModelIds: patch.enabledModelIds } : {},
12643
- ...patch.contextWindowOverrides !== void 0 ? { contextWindowOverrides: {
12644
- ...current.contextWindowOverrides,
12645
- ...patch.contextWindowOverrides
12646
- } } : {},
12618
+ ...patch.contextWindowOverrides !== void 0 ? { contextWindowOverrides: mergeContextWindowOverrides(current.contextWindowOverrides, patch.contextWindowOverrides) } : {},
12647
12619
  ...patch.defaultReasoningEffort !== void 0 ? { defaultReasoningEffort: patch.defaultReasoningEffort } : {}
12648
12620
  };
12649
12621
  await this.write(next);
@@ -16531,7 +16503,8 @@ function registerKimiCodeRoutes(ctx, store, modelSettings, preferences, options
16531
16503
  if (Array.isArray(body.enabledModelIds)) patch.enabledModelIds = body.enabledModelIds.filter((id) => typeof id === "string");
16532
16504
  if (typeof body.contextWindowOverrides === "object" && body.contextWindowOverrides !== null) {
16533
16505
  const overrides = {};
16534
- for (const [key, raw] of Object.entries(body.contextWindowOverrides)) if (typeof raw === "number" && Number.isFinite(raw) && raw > 0) overrides[key] = Math.floor(raw);
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);
16535
16508
  patch.contextWindowOverrides = overrides;
16536
16509
  }
16537
16510
  if (body.defaultReasoningEffort !== void 0) {
@@ -18147,10 +18120,7 @@ function registerWorkBuddyPreferenceStore(settings, fallbackStore = new FileMode
18147
18120
  const normalized = {
18148
18121
  enabled: patch.enabled !== void 0 ? patch.enabled : current.enabled !== false,
18149
18122
  enabledModelIds: patch.enabledModelIds ?? current.enabledModelIds,
18150
- contextWindowOverrides: patch.contextWindowOverrides ? {
18151
- ...current.contextWindowOverrides,
18152
- ...patch.contextWindowOverrides
18153
- } : current.contextWindowOverrides,
18123
+ contextWindowOverrides: patch.contextWindowOverrides ? mergeContextWindowOverrides(current.contextWindowOverrides, patch.contextWindowOverrides) : current.contextWindowOverrides,
18154
18124
  defaultReasoningEffort: patch.defaultReasoningEffort !== void 0 ? patch.defaultReasoningEffort : current.defaultReasoningEffort,
18155
18125
  selectedAccountId: patch.selectedAccountId !== void 0 ? patch.selectedAccountId : current.selectedAccountId,
18156
18126
  hiddenAccountIds: patch.hiddenAccountIds ?? current.hiddenAccountIds
@@ -18650,10 +18620,7 @@ var FileModelSettingsStore$3 = class {
18650
18620
  ...current,
18651
18621
  ...patch.enabled !== void 0 ? { enabled: patch.enabled } : {},
18652
18622
  ...patch.enabledModelIds !== void 0 ? { enabledModelIds: patch.enabledModelIds } : {},
18653
- ...patch.contextWindowOverrides !== void 0 ? { contextWindowOverrides: {
18654
- ...current.contextWindowOverrides,
18655
- ...patch.contextWindowOverrides
18656
- } } : {},
18623
+ ...patch.contextWindowOverrides !== void 0 ? { contextWindowOverrides: mergeContextWindowOverrides(current.contextWindowOverrides, patch.contextWindowOverrides) } : {},
18657
18624
  ...patch.defaultReasoningEffort !== void 0 ? { defaultReasoningEffort: patch.defaultReasoningEffort } : {},
18658
18625
  ...patch.selectedAccountId !== void 0 ? { selectedAccountId: patch.selectedAccountId } : {},
18659
18626
  ...patch.hiddenAccountIds !== void 0 ? { hiddenAccountIds: patch.hiddenAccountIds } : {}
@@ -19725,7 +19692,8 @@ function registerWorkBuddyRoutes(ctx, store, modelSettings, preferences, options
19725
19692
  if (Array.isArray(body.enabledModelIds)) patch.enabledModelIds = body.enabledModelIds.filter((id) => typeof id === "string");
19726
19693
  if (typeof body.contextWindowOverrides === "object" && body.contextWindowOverrides !== null) {
19727
19694
  const overrides = {};
19728
- for (const [key, raw] of Object.entries(body.contextWindowOverrides)) if (typeof raw === "number" && Number.isFinite(raw) && raw > 0) overrides[key] = Math.floor(raw);
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);
19729
19697
  patch.contextWindowOverrides = overrides;
19730
19698
  }
19731
19699
  if (body.defaultReasoningEffort !== void 0) {
@@ -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;AAKtM,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,CAsgBxE;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,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,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;AAuBD,wBAAgB,kBAAkB,CAAC,EAAE,aAAa,EAAE,kBAAkB,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CA0gBnG"}
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" | "storage" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "signedOut" | "signedIn" | "plan" | "expires" | "signIn" | "signInAgain" | "signOut" | "refreshToken" | "loading" | "connection" | "provider" | "connectionState" | "connected" | "untested" | "enableProvider" | "selectAll" | "unselectAll" | "modelsHint" | "save" | "refreshQuota" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "storageNotice" | "email" | "lastUsed" | "pageDesc" | "signingIn" | "providerValue" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "contextWindowSection" | "contextWindowHint" | "saved" | "saving" | "quotaSection" | "quotaDesc" | "refreshingQuota" | "quotaEmpty" | "googleValidation" | "resetPrefix" | "resetUnavailable" | "resetNow" | "timeDayHour" | "timeHourMin" | "timeMin" | "updatedAt" | "loginFailed", string>;
218
- 'en-US': Record<"account" | "storage" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "signedOut" | "signedIn" | "plan" | "expires" | "signIn" | "signInAgain" | "signOut" | "refreshToken" | "loading" | "connection" | "provider" | "connectionState" | "connected" | "untested" | "enableProvider" | "selectAll" | "unselectAll" | "modelsHint" | "save" | "refreshQuota" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "storageNotice" | "email" | "lastUsed" | "pageDesc" | "signingIn" | "providerValue" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "contextWindowSection" | "contextWindowHint" | "saved" | "saving" | "quotaSection" | "quotaDesc" | "refreshingQuota" | "quotaEmpty" | "googleValidation" | "resetPrefix" | "resetUnavailable" | "resetNow" | "timeDayHour" | "timeHourMin" | "timeMin" | "updatedAt" | "loginFailed", string>;
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkEd,CAAA;AAED,eAAO,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,OAAO,EAAE,EAAE,MAAM,CAiE9C,CAAA;AAED,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAKxB,CAAA"}
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,CA8E/C"}
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;AA8BD,wBAAgB,kBAAkB,CAAC,EAAE,aAAa,EAAE,kBAAkB,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CAgjBnG"}
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" | "storage" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "signedOut" | "signedIn" | "plan" | "expires" | "signIn" | "signInAgain" | "signOut" | "loading" | "connection" | "provider" | "connectionState" | "connected" | "untested" | "testConnection" | "enableProvider" | "selectAll" | "unselectAll" | "modelsHint" | "save" | "refreshQuota" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "storageNotice" | "email" | "lastUsed" | "pageDesc" | "signingIn" | "providerValue" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "contextWindowSection" | "contextWindowHint" | "saved" | "saving" | "quotaSection" | "quotaDesc" | "refreshingQuota" | "quotaEmpty" | "updatedAt" | "loginFailed" | "keyName" | "organization" | "planUnknown" | "subscription" | "renews" | "authenticatedAt" | "cancelSignIn" | "openSignInPage" | "apiKeySection" | "apiKeyHint" | "apiKeyPlaceholder" | "apiKeySave" | "apiKeySaving" | "apiKeySaved" | "testingConnection" | "routeOwned" | "routeConflict" | "modelsSection" | "refreshCatalog" | "refreshingCatalog" | "wireAnthropic" | "wireOpenai" | "quotaCredits" | "quotaUnlimited", string>;
269
- 'en-US': Record<"account" | "storage" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "signedOut" | "signedIn" | "plan" | "expires" | "signIn" | "signInAgain" | "signOut" | "loading" | "connection" | "provider" | "connectionState" | "connected" | "untested" | "testConnection" | "enableProvider" | "selectAll" | "unselectAll" | "modelsHint" | "save" | "refreshQuota" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "storageNotice" | "email" | "lastUsed" | "pageDesc" | "signingIn" | "providerValue" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "contextWindowSection" | "contextWindowHint" | "saved" | "saving" | "quotaSection" | "quotaDesc" | "refreshingQuota" | "quotaEmpty" | "updatedAt" | "loginFailed" | "keyName" | "organization" | "planUnknown" | "subscription" | "renews" | "authenticatedAt" | "cancelSignIn" | "openSignInPage" | "apiKeySection" | "apiKeyHint" | "apiKeyPlaceholder" | "apiKeySave" | "apiKeySaving" | "apiKeySaved" | "testingConnection" | "routeOwned" | "routeConflict" | "modelsSection" | "refreshCatalog" | "refreshingCatalog" | "wireAnthropic" | "wireOpenai" | "quotaCredits" | "quotaUnlimited", string>;
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,q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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;AAyDD,wBAAgB,eAAe,CAAC,EAAE,aAAa,EAAE,kBAAkB,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,YAAY,CAspBhG"}
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" | "storage" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "signedOut" | "signedIn" | "plan" | "expires" | "signIn" | "signInAgain" | "signOut" | "loading" | "connection" | "provider" | "connectionState" | "connected" | "untested" | "testConnection" | "enableProvider" | "selectAll" | "unselectAll" | "modelsHint" | "save" | "refreshQuota" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "storageNotice" | "email" | "lastUsed" | "pageDesc" | "signingIn" | "providerValue" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "contextWindowSection" | "contextWindowHint" | "saved" | "saving" | "quotaSection" | "quotaDesc" | "refreshingQuota" | "quotaEmpty" | "updatedAt" | "loginFailed" | "planUnknown" | "authenticatedAt" | "cancelSignIn" | "openSignInPage" | "testingConnection" | "routeOwned" | "routeConflict" | "modelsSection" | "refreshCatalog" | "refreshingCatalog" | "wireAnthropic" | "wireOpenai" | "quotaUnlimited" | "nickname" | "region" | "regionMainland" | "regionGlobal" | "refreshRejected" | "deviceCodeSection" | "deviceCodeHint" | "copyCode" | "copied" | "userCode" | "codeExpires" | "waitingAuthorization" | "requestingCode" | "oauthHost" | "codingEndpoint" | "testSuccess" | "testFailed" | "capVideo" | "capDynamicTools" | "capImageOnly" | "capNone" | "capVideoFootnote" | "capabilitiesTitle" | "capColMedia" | "capColTools" | "capColNotes" | "capPlan" | "speedRegular" | "speedHighspeed" | "quotaCost" | "minimumPlan" | "effortLow" | "effortHigh" | "effortMax" | "effortNone" | "contextWindowPlan" | "cacheSection" | "cacheDesc" | "cacheEmpty" | "cacheHitRatio" | "cacheCached" | "cacheFresh" | "cacheOutput" | "cacheRequests" | "cacheHint" | "cacheDrift" | "cacheDriftFirst" | "cacheDriftStable" | "cacheDriftSystemPrompt" | "cacheDriftTools" | "cacheDriftCacheKey" | "cacheDriftColdKey" | "preserveThinking" | "preserveOn" | "preserveOff" | "outputCap" | "quotaPlan" | "quotaWallet" | "quotaWalletLimit" | "quotaWalletUsed" | "resetAt" | "requests", string>;
422
- 'en-US': Record<"account" | "storage" | "rotationStrategy" | "accountId" | "relogin" | "tokens" | "title" | "signedOut" | "signedIn" | "plan" | "expires" | "signIn" | "signInAgain" | "signOut" | "loading" | "connection" | "provider" | "connectionState" | "connected" | "untested" | "testConnection" | "enableProvider" | "selectAll" | "unselectAll" | "modelsHint" | "save" | "refreshQuota" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "storageNotice" | "email" | "lastUsed" | "pageDesc" | "signingIn" | "providerValue" | "enhanced" | "defaultReasoningEffort" | "defaultReasoningEffortHint" | "defaultEffortAuto" | "contextWindowSection" | "contextWindowHint" | "saved" | "saving" | "quotaSection" | "quotaDesc" | "refreshingQuota" | "quotaEmpty" | "updatedAt" | "loginFailed" | "planUnknown" | "authenticatedAt" | "cancelSignIn" | "openSignInPage" | "testingConnection" | "routeOwned" | "routeConflict" | "modelsSection" | "refreshCatalog" | "refreshingCatalog" | "wireAnthropic" | "wireOpenai" | "quotaUnlimited" | "nickname" | "region" | "regionMainland" | "regionGlobal" | "refreshRejected" | "deviceCodeSection" | "deviceCodeHint" | "copyCode" | "copied" | "userCode" | "codeExpires" | "waitingAuthorization" | "requestingCode" | "oauthHost" | "codingEndpoint" | "testSuccess" | "testFailed" | "capVideo" | "capDynamicTools" | "capImageOnly" | "capNone" | "capVideoFootnote" | "capabilitiesTitle" | "capColMedia" | "capColTools" | "capColNotes" | "capPlan" | "speedRegular" | "speedHighspeed" | "quotaCost" | "minimumPlan" | "effortLow" | "effortHigh" | "effortMax" | "effortNone" | "contextWindowPlan" | "cacheSection" | "cacheDesc" | "cacheEmpty" | "cacheHitRatio" | "cacheCached" | "cacheFresh" | "cacheOutput" | "cacheRequests" | "cacheHint" | "cacheDrift" | "cacheDriftFirst" | "cacheDriftStable" | "cacheDriftSystemPrompt" | "cacheDriftTools" | "cacheDriftCacheKey" | "cacheDriftColdKey" | "preserveThinking" | "preserveOn" | "preserveOff" | "outputCap" | "quotaPlan" | "quotaWallet" | "quotaWalletLimit" | "quotaWalletUsed" | "resetAt" | "requests", string>;
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwHL,CAAA;AAEV,eAAO,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,OAAO,EAAE,EA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;;;;;;;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;AAwFtD,uEAAuE;AACvE,wBAAgB,qBAAqB,IAAI,IAAI,CAM5C"}
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"}
@@ -76,9 +76,13 @@ export declare const zh: {
76
76
  readonly searchProviderCodex: "ChatGPT(代理隧道)";
77
77
  readonly providerDefault: "使用 Provider 默认值";
78
78
  readonly contextWindows: "模型上下文窗口";
79
- readonly contextWindowsHint: "GPT-6 系列默认 384K(最高 872K),GPT-5.6 系列默认 272K(最高 1M)。该值用于 DSH 的压缩与溢出判断,可输入 872K、512K 等容量。";
79
+ readonly contextWindowsHint: "只列出已勾选「可用模型」的条目。默认取模型目录值(GPT-6 系列 384K,最高 872K;其余最高 1M),该值用于 DSH 的压缩与溢出判断,可输入 872K、512K 等容量;改过的模型可单独或一键恢复默认。";
80
80
  readonly contextWindow: "上下文窗口";
81
- readonly contextWindowInvalid: "上下文窗口必须是正整数,且不能超过模型上限(GPT-6 系列为 872K,GPT-5.6 系列为 1M);可使用 K 或 M 后缀。";
81
+ readonly contextWindowInvalid: "上下文窗口必须是正整数,且不能超过模型上限(GPT-6 系列为 872K,其余为 1M);可使用 K 或 M 后缀。";
82
+ readonly contextWindowReset: "恢复默认";
83
+ readonly contextWindowResetAll: "全部恢复默认";
84
+ readonly contextWindowResetAllConfirm: "确定把已改过的模型上下文窗口全部恢复为默认值吗?";
85
+ readonly contextWindowsNoneEnabled: "还没有勾选任何模型。在上方「可用模型」里勾选后,这里会出现该模型的上下文窗口设置。";
82
86
  readonly saveContextWindow: "保存上下文窗口";
83
87
  readonly save: "保存";
84
88
  readonly tokens: "tokens";
@@ -227,9 +231,13 @@ export declare const dictionaries: {
227
231
  readonly searchProviderCodex: "ChatGPT(代理隧道)";
228
232
  readonly providerDefault: "使用 Provider 默认值";
229
233
  readonly contextWindows: "模型上下文窗口";
230
- readonly contextWindowsHint: "GPT-6 系列默认 384K(最高 872K),GPT-5.6 系列默认 272K(最高 1M)。该值用于 DSH 的压缩与溢出判断,可输入 872K、512K 等容量。";
234
+ readonly contextWindowsHint: "只列出已勾选「可用模型」的条目。默认取模型目录值(GPT-6 系列 384K,最高 872K;其余最高 1M),该值用于 DSH 的压缩与溢出判断,可输入 872K、512K 等容量;改过的模型可单独或一键恢复默认。";
231
235
  readonly contextWindow: "上下文窗口";
232
- readonly contextWindowInvalid: "上下文窗口必须是正整数,且不能超过模型上限(GPT-6 系列为 872K,GPT-5.6 系列为 1M);可使用 K 或 M 后缀。";
236
+ readonly contextWindowInvalid: "上下文窗口必须是正整数,且不能超过模型上限(GPT-6 系列为 872K,其余为 1M);可使用 K 或 M 后缀。";
237
+ readonly contextWindowReset: "恢复默认";
238
+ readonly contextWindowResetAll: "全部恢复默认";
239
+ readonly contextWindowResetAllConfirm: "确定把已改过的模型上下文窗口全部恢复为默认值吗?";
240
+ readonly contextWindowsNoneEnabled: "还没有勾选任何模型。在上方「可用模型」里勾选后,这里会出现该模型的上下文窗口设置。";
233
241
  readonly saveContextWindow: "保存上下文窗口";
234
242
  readonly save: "保存";
235
243
  readonly tokens: "tokens";
@@ -298,6 +306,6 @@ export declare const dictionaries: {
298
306
  readonly email: string;
299
307
  readonly lastUsed: string;
300
308
  };
301
- en: Record<"quota" | "account" | "storage" | "rotationStrategy" | "stale" | "pending" | "accountId" | "relogin" | "tokens" | "title" | "hubTitle" | "intro" | "signedOut" | "signedIn" | "plan" | "expires" | "storageWindows" | "storageMacKeychain" | "storageLinuxFile" | "storageMemory" | "storageUnavailable" | "securityWindows" | "securityMacKeychain" | "securityLinuxFile" | "securityMemory" | "securityUnavailable" | "signIn" | "signInAgain" | "cancel" | "signOut" | "refreshToken" | "popupBlocked" | "continueLogin" | "loading" | "connection" | "provider" | "connectionState" | "connected" | "untested" | "testConnection" | "testing" | "latency" | "enableProvider" | "selectAll" | "unselectAll" | "models" | "modelsHint" | "proxySettings" | "proxyMode" | "proxyModeHint" | "proxyModeAuto" | "proxyModeCustom" | "proxyModeDirect" | "customProxyUrl" | "customProxyUrlHint" | "customProxyUrlPlaceholder" | "saveProxyUrl" | "proxyDetected" | "proxyDetectedEffective" | "proxyNoneDetected" | "proxyDirectHint" | "enhancements" | "fastMode" | "fastModeHint" | "outputVerbosity" | "outputVerbosityHint" | "verbosityLow" | "verbosityMedium" | "verbosityHigh" | "reasoningSummary" | "reasoningSummaryHint" | "summaryAuto" | "summaryConcise" | "summaryDetailed" | "summaryNone" | "searchProvider" | "searchProviderHint" | "searchProviderDsh" | "searchProviderCodex" | "providerDefault" | "contextWindows" | "contextWindowsHint" | "contextWindow" | "contextWindowInvalid" | "saveContextWindow" | "save" | "quickQuota" | "quickQuotaHint" | "quotaIntro" | "refreshQuota" | "refreshing" | "noQuota" | "quotaSignedOut" | "updated" | "primary" | "secondary" | "limitWindow" | "used" | "remaining" | "available" | "unavailable" | "unlimited" | "credits" | "monthlySpend" | "resetCredits" | "resetCreditExpires" | "useResetCredit" | "usingResetCredit" | "useResetCreditConfirm" | "resetCreditUsed" | "spendControlReached" | "limit" | "exhausted" | "resets" | "quickQuotaLabel" | "quickQuotaLoading" | "imageToolRunning" | "imageToolDone" | "imageToolFailed" | "image" | "openImage" | "openNamedImage" | "imageLoading" | "imageLoadFailed" | "imagePreviewClose" | "imagePreviewOpenOriginal" | "retry" | "unknown" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "clearCooldown" | "needsRelogin" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "storageNotice" | "email" | "lastUsed", string>;
309
+ en: Record<"tokens" | "title" | "hubTitle" | "intro" | "account" | "signedOut" | "signedIn" | "plan" | "accountId" | "expires" | "storage" | "storageWindows" | "storageMacKeychain" | "storageLinuxFile" | "storageMemory" | "storageUnavailable" | "securityWindows" | "securityMacKeychain" | "securityLinuxFile" | "securityMemory" | "securityUnavailable" | "signIn" | "signInAgain" | "cancel" | "signOut" | "refreshToken" | "pending" | "popupBlocked" | "continueLogin" | "loading" | "connection" | "provider" | "connectionState" | "connected" | "untested" | "testConnection" | "testing" | "latency" | "enableProvider" | "selectAll" | "unselectAll" | "models" | "modelsHint" | "proxySettings" | "proxyMode" | "proxyModeHint" | "proxyModeAuto" | "proxyModeCustom" | "proxyModeDirect" | "customProxyUrl" | "customProxyUrlHint" | "customProxyUrlPlaceholder" | "saveProxyUrl" | "proxyDetected" | "proxyDetectedEffective" | "proxyNoneDetected" | "proxyDirectHint" | "enhancements" | "fastMode" | "fastModeHint" | "outputVerbosity" | "outputVerbosityHint" | "verbosityLow" | "verbosityMedium" | "verbosityHigh" | "reasoningSummary" | "reasoningSummaryHint" | "summaryAuto" | "summaryConcise" | "summaryDetailed" | "summaryNone" | "searchProvider" | "searchProviderHint" | "searchProviderDsh" | "searchProviderCodex" | "providerDefault" | "contextWindows" | "contextWindowsHint" | "contextWindow" | "contextWindowInvalid" | "contextWindowReset" | "contextWindowResetAll" | "contextWindowResetAllConfirm" | "contextWindowsNoneEnabled" | "saveContextWindow" | "save" | "quickQuota" | "quickQuotaHint" | "quota" | "quotaIntro" | "refreshQuota" | "refreshing" | "noQuota" | "quotaSignedOut" | "stale" | "updated" | "primary" | "secondary" | "limitWindow" | "used" | "remaining" | "available" | "unavailable" | "unlimited" | "credits" | "monthlySpend" | "resetCredits" | "resetCreditExpires" | "useResetCredit" | "usingResetCredit" | "useResetCreditConfirm" | "resetCreditUsed" | "spendControlReached" | "limit" | "exhausted" | "resets" | "quickQuotaLabel" | "quickQuotaLoading" | "imageToolRunning" | "imageToolDone" | "imageToolFailed" | "image" | "openImage" | "openNamedImage" | "imageLoading" | "imageLoadFailed" | "imagePreviewClose" | "imagePreviewOpenOriginal" | "retry" | "unknown" | "accountPool" | "addAccount" | "accountCount" | "primaryAccount" | "activeAccount" | "setPrimary" | "deleteAccount" | "cooling" | "cooldownLeft" | "clearCooldown" | "needsRelogin" | "relogin" | "rotationStrategy" | "strategySequential" | "strategyRoundRobin" | "strategySticky" | "noAccounts" | "storageNotice" | "email" | "lastUsed", string>;
302
310
  };
303
311
  //# 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkIL,CAAA;AAEV,eAAO,MAAM,EAAE,EAAE,MAAM,CAAC,MAAM,OAAO,EAAE,EAAE,MAAM,CAgI9C,CAAA;AAED,MAAM,MAAM,SAAS,GAAG,MAAM,OAAO,EAAE,CAAA;AACvC,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAAa,CAAA"}
1
+ {"version":3,"file":"locales.d.ts","sourceRoot":"","sources":["../../../src/client/locales.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,EAAE,EAAG,0BAAmC,CAAA;A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