@eddyskywalker/dsh-chatgpt-subscription 0.80.2 → 0.80.4

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/lib/index.js CHANGED
@@ -832,7 +832,7 @@ const ROUTE_PREFIX$5 = "/api/dsh-chatgpt-subscription";
832
832
  * `test/responses-client.test.ts` asserts the two agree, so a release that
833
833
  * forgets this constant fails the suite instead of shipping quietly.
834
834
  */
835
- const PLUGIN_VERSION = "0.80.2";
835
+ const PLUGIN_VERSION = "0.80.4";
836
836
  const CODEX_CHATGPT_PROVIDER_ID = "codex-chatgpt";
837
837
  const CODEX_API_BASE = "https://chatgpt.com/backend-api/codex";
838
838
  const CODEX_RESPONSES_URL = `${CODEX_API_BASE}/responses`;
@@ -32247,7 +32247,7 @@ const STREAM_IDLE_TIMEOUT_CODE$4 = "LLM_STREAM_IDLE_TIMEOUT";
32247
32247
  * body bytes arrive. Six minutes is the product choice for that phase; once the
32248
32248
  * first chunk arrives, the ordinary 120 s activity budget above takes over.
32249
32249
  */
32250
- const STREAM_FIRST_OUTPUT_TIMEOUT_MS = 36e4;
32250
+ const STREAM_FIRST_OUTPUT_TIMEOUT_MS$1 = 36e4;
32251
32251
  /**
32252
32252
  * Transport safety net for response headers, strictly beyond the app deadline.
32253
32253
  * The watchdog must settle a slow first chunk as TIMEOUT before undici can turn
@@ -40130,7 +40130,7 @@ var KimiCodeAdapter = class extends LlmAdapter {
40130
40130
  ...options,
40131
40131
  reasoningEffort: ReasoningEffortId(String(effort))
40132
40132
  };
40133
- yield* wrapStreamWithWatchdog((watchdogSignal, activity) => this.requestStream(effectiveOptions, watchdogSignal, activity), options.signal, STREAM_IDLE_TIMEOUT_MS$4, STREAM_IDLE_TIMEOUT_CODE$4, PROVIDER_NAME$10, STREAM_FIRST_OUTPUT_TIMEOUT_MS);
40133
+ yield* wrapStreamWithWatchdog((watchdogSignal, activity) => this.requestStream(effectiveOptions, watchdogSignal, activity), options.signal, STREAM_IDLE_TIMEOUT_MS$4, STREAM_IDLE_TIMEOUT_CODE$4, PROVIDER_NAME$10, STREAM_FIRST_OUTPUT_TIMEOUT_MS$1);
40134
40134
  }
40135
40135
  async *requestStream(options, signal, activity) {
40136
40136
  const fetchFn = this.options.fetchFn ?? fetch;
@@ -52616,6 +52616,14 @@ const CALLBACK_PATH = "/callback";
52616
52616
  * `host/common/idle-watchdog.ts` for the measured basis.
52617
52617
  */
52618
52618
  const STREAM_IDLE_TIMEOUT_MS$2 = 12e4;
52619
+ /**
52620
+ * Separate ceiling before the first streamed value arrives.
52621
+ *
52622
+ * A large prompt can spend much longer in prefill than a healthy stream may
52623
+ * remain silent between values. Once the first value arrives, the watchdog
52624
+ * returns to STREAM_IDLE_TIMEOUT_MS; this is not a whole-response deadline.
52625
+ */
52626
+ const STREAM_FIRST_OUTPUT_TIMEOUT_MS = 36e4;
52619
52627
  /** Failure code the adapter reports for that stall. */
52620
52628
  const STREAM_IDLE_TIMEOUT_CODE$2 = "LLM_STREAM_IDLE_TIMEOUT";
52621
52629
  /** Ceiling for a model-listing or usage fetch. */
@@ -58652,7 +58660,7 @@ var ClaudeAdapter = class ClaudeAdapter extends LlmAdapter {
58652
58660
  };
58653
58661
  }
58654
58662
  async *stream(options) {
58655
- yield* wrapStreamWithWatchdog((watchdogSignal, activity) => this.requestStream(options, watchdogSignal, activity), options.signal, STREAM_IDLE_TIMEOUT_MS$2, STREAM_IDLE_TIMEOUT_CODE$2, PROVIDER_NAME);
58663
+ yield* wrapStreamWithWatchdog((watchdogSignal, activity) => this.requestStream(options, watchdogSignal, activity), options.signal, STREAM_IDLE_TIMEOUT_MS$2, STREAM_IDLE_TIMEOUT_CODE$2, "Claude", STREAM_FIRST_OUTPUT_TIMEOUT_MS);
58656
58664
  }
58657
58665
  /**
58658
58666
  * Read one credential for this attempt.
@@ -58846,7 +58854,7 @@ var ClaudeAdapter = class ClaudeAdapter extends LlmAdapter {
58846
58854
  throw verdict.error;
58847
58855
  }
58848
58856
  if (signal.aborted) throw new LlmError$1("Claude request aborted", "ABORTED", { cause: error });
58849
- throw new LlmError$1("Claude stream failed: " + (error instanceof Error ? error.message : String(error)), outputStarted ? "PROVIDER_ERROR" : "TRANSPORT", { cause: error });
58857
+ throw new LlmError$1("Claude stream failed: " + (error instanceof Error ? error.message : String(error)), "TRANSPORT", { cause: error });
58850
58858
  }
58851
58859
  } finally {
58852
58860
  reader.cancel().catch(() => void 0);
@@ -87788,6 +87796,7 @@ var MinimaxCodeCheckinService = class {
87788
87796
  const SUBAGENT_MODEL_SELECTION_NAMESPACE = "subagent-model-selection";
87789
87797
  /** Durable Session event carrying one Session's authorized child routes. */
87790
87798
  const SUBAGENT_POLICY_EVENT = "subagent/model-selection-policy";
87799
+ const NO_COMPATIBLE_ROUTES_REASON = "subagent model selection: none of the configured child routes match this Session’s recorded policy. Save the desired models in Subagents settings and start a new Session to use them.";
87791
87800
  /** Delegation tools whose child routes this guard authorizes. */
87792
87801
  const DEFAULT_DELEGATION_TOOLS = ["subagent"];
87793
87802
  /**
@@ -87941,22 +87950,14 @@ function subagentModelSelectionPreference(settings) {
87941
87950
  */
87942
87951
  const lockedRootMainRoutes = /* @__PURE__ */ new WeakMap();
87943
87952
  /**
87944
- * Authorized child routes per root Session, locked the first time they are used.
87945
- *
87946
- * Locking the main ROUTE is not enough on its own: the route is only the key
87947
- * into `byMainModel`, and the list it resolves to is read from the live
87948
- * preference on every step. A Settings edit made at step 5 of a running session
87949
- * would therefore swap the list under it — the prompt-assembly hook rewrites the
87950
- * `subagent` tool description and the `tools:sdk` section from that list, so the
87951
- * next request would carry a different prefix, drop the provider's prefix cache,
87952
- * and contradict the Settings card's promise that a routing change applies to
87953
- * new sessions only. The first resolved list is frozen here for the same reason
87954
- * the durable policy event is a snapshot: one Session is governed by one policy.
87953
+ * Configured route filter per root Session. Null keeps the Session policy as-is.
87954
+ * Cache the filter independently of the caller's policy so the root and each
87955
+ * descendant still have to match their own recorded routes.
87955
87956
  */
87956
- const lockedRootAllowedRoutes = /* @__PURE__ */ new WeakMap();
87957
+ const lockedRootRouteFilters = /* @__PURE__ */ new WeakMap();
87957
87958
  /**
87958
87959
  * Authorized `allowParentFork` posture per root Session, locked on first evaluation
87959
- * alongside {@link lockedRootAllowedRoutes} so one Session is governed by one policy.
87960
+ * alongside {@link lockedRootRouteFilters} so one Session is governed by one policy.
87960
87961
  */
87961
87962
  const lockedRootAllowParentFork = /* @__PURE__ */ new WeakMap();
87962
87963
  /**
@@ -88255,20 +88256,21 @@ function delegationModeOf(policies, toolName) {
88255
88256
  }
88256
88257
  /**
88257
88258
  * Resolve the effective allowlist that governs delegations from this agent:
88258
- * empty when the Host preference explicitly disables enforcement, otherwise
88259
+ * absent when the Host preference explicitly disables enforcement, otherwise
88259
88260
  * the Session's (or nearest subagent ancestor's) recorded policy, falling
88260
88261
  * back to the live preference only under `preference` scope.
88261
88262
  * @param agent - Calling agent.
88262
88263
  * @param preference - Current Host preference, when the settings service exists.
88263
88264
  * @param sessions - Session registry used for ancestor lookup.
88264
88265
  * @param scope - Whether an unrecorded Session falls back to the preference.
88265
- * @returns the authorized routes in force for this agent, or an empty list when unrestricted.
88266
+ * @returns undefined without a policy, or the effective list (possibly empty).
88266
88267
  */
88267
88268
  function effectiveAllowedRoutes(agent, preference, sessions, scope = "session", lockSnapshot = false) {
88268
- if (preference !== void 0 && !preference.enabled) return [];
88269
- const baseRoutes = authorizedRoutesFor(agent, sessions) ?? (scope === "preference" ? preference?.allowedModels ?? [] : []);
88270
- if (baseRoutes.length === 0) return [];
88271
- return mainModelRoutesFor(agent, sessions, preference, baseRoutes, lockSnapshot);
88269
+ if (preference?.enabled === false) return void 0;
88270
+ const recorded = authorizedRoutesFor(agent, sessions);
88271
+ const baseRoutes = recorded ?? (scope === "preference" ? preference?.allowedModels : void 0);
88272
+ if (baseRoutes === void 0 || baseRoutes.length === 0) return void 0;
88273
+ return mainModelRoutesFor(agent, sessions, preference, baseRoutes, lockSnapshot, recorded !== void 0);
88272
88274
  }
88273
88275
  /**
88274
88276
  * Apply the per-main-model override to a Session's authorized routes.
@@ -88280,20 +88282,23 @@ function effectiveAllowedRoutes(agent, preference, sessions, scope = "session",
88280
88282
  * @param agent - Calling agent.
88281
88283
  * @param sessions - Session registry used for ancestor lookup.
88282
88284
  * @param preference - Current Host preference, when the settings service exists.
88283
- * @param baseRoutes - Routes the Session itself authorized; never empty here.
88284
- * @param lockSnapshot - Freeze the resolved main route AND the resolved route
88285
- * list for this Session now.
88285
+ * @param baseRoutes - Non-empty recorded allowlist or legacy preference fallback.
88286
+ * @param lockSnapshot - Freeze the root's configured route filter now.
88287
+ * @param hasRecordedPolicy - Whether the base is also enforced by the host.
88286
88288
  * @returns the routes that actually govern this delegation.
88287
88289
  */
88288
- function mainModelRoutesFor(agent, sessions, preference, baseRoutes, lockSnapshot = false) {
88290
+ function mainModelRoutesFor(agent, sessions, preference, baseRoutes, lockSnapshot, hasRecordedPolicy) {
88289
88291
  const { rootSession, mainRoute } = resolveRootSessionAndMainRoute(agent, sessions, void 0, lockSnapshot);
88290
88292
  const lockable = typeof rootSession === "object" && rootSession !== null;
88291
- const locked = lockable ? lockedRootAllowedRoutes.get(rootSession) : void 0;
88292
- if (locked !== void 0) return locked;
88293
- const overrideRoutes = mainRoute === void 0 ? void 0 : preference?.byMainModel?.[`${mainRoute.provider}/${mainRoute.model}`];
88294
- const resolved = overrideRoutes !== void 0 && overrideRoutes.length > 0 ? overrideRoutes : preference?.defaultAllowedModels !== void 0 && preference.defaultAllowedModels.length > 0 ? preference.defaultAllowedModels : baseRoutes;
88295
- if (lockable && (lockSnapshot || headerRouteOf(rootSession) !== void 0)) lockedRootAllowedRoutes.set(rootSession, [...resolved]);
88296
- return resolved;
88293
+ let filter = lockable ? lockedRootRouteFilters.get(rootSession) : void 0;
88294
+ if (filter === void 0) {
88295
+ const override = mainRoute === void 0 ? void 0 : preference?.byMainModel?.[`${mainRoute.provider}/${mainRoute.model}`];
88296
+ const fallback = preference?.defaultAllowedModels;
88297
+ filter = override?.length ? override : fallback?.length ? fallback : null;
88298
+ if (lockable && (lockSnapshot || headerRouteOf(rootSession) !== void 0)) lockedRootRouteFilters.set(rootSession, filter === null ? null : [...filter]);
88299
+ }
88300
+ if (filter === null) return baseRoutes;
88301
+ return hasRecordedPolicy ? filter.filter((route) => routesInclude(baseRoutes, route.provider, route.model)) : filter;
88297
88302
  }
88298
88303
  /**
88299
88304
  * Resolve whether `subagent_fork` is authorized to inherit the root main model's
@@ -88334,14 +88339,15 @@ function effectiveAllowParentFork(agent, preference, sessions, lockSnapshot = fa
88334
88339
  * delegation policy. On 0.2.2 the latter still limits explicit selection to the
88335
88340
  * parent route, so calling this posture "unrestricted" would be false.
88336
88341
  * @param output - Original text returned by `list_subagent_models`.
88337
- * @param allowed - Routes the calling Session authorizes, empty when none is in force.
88342
+ * @param allowed - Routes the calling Session authorizes, or undefined without a policy.
88338
88343
  * @returns the output with the Session routing posture appended.
88339
88344
  */
88340
88345
  function enrichListSubagentModelsOutput(output, allowed) {
88341
- if (allowed.length === 0) {
88346
+ if (allowed === void 0) {
88342
88347
  if (output.includes("No allowlist is in force for this Session. Omitting provider/model follows the delegation tool's normal inheritance/default behavior; explicit selection may still be limited to the parent route by the host.")) return output;
88343
88348
  return output.trim().length === 0 ? NO_ALLOWLIST_ROUTING_NOTICE : `${output}\n\n${NO_ALLOWLIST_ROUTING_NOTICE}`;
88344
88349
  }
88350
+ if (allowed.length === 0) return "Authorized child routes for this Session: (none)\nsubagent model selection: none of the configured child routes match this Session’s recorded policy. Save the desired models in Subagents settings and start a new Session to use them.";
88345
88351
  const header = "Authorized child routes for this Session (already filtered by the Session allowlist; only these routes are accepted, and `provider` and `model` must be passed as separate fields):";
88346
88352
  if (output.includes(header)) return output;
88347
88353
  const filtered = filterListSubagentModelsOutput(output, allowed);
@@ -88499,12 +88505,13 @@ function inheritRouteNoticeSentence(explicitTools, inheritTools, target) {
88499
88505
  * @returns the updated assembly, or the original object when nothing changed.
88500
88506
  */
88501
88507
  function rewriteAuthorizedPromptAssembly(assembly, allowed, toolNames = DEFAULT_DELEGATION_TOOLS, inheritToolNames = DEFAULT_SUBAGENT_INHERIT_TOOLS) {
88502
- if (allowed.length === 0) return assembly;
88508
+ if (allowed === void 0) return assembly;
88509
+ const noCompatibleRoutes = allowed.length === 0;
88503
88510
  let sectionsChanged = false;
88504
88511
  const sections = Array.isArray(assembly.sections) ? assembly.sections.map((section) => {
88505
88512
  if (section?.name !== "tools:sdk" || typeof section.text !== "string") return section;
88506
88513
  const rewritten = rewriteAuthorizedToolDescriptions(section.text, allowed);
88507
- const notice = inheritRouteNoticeSentence(toolNames, inheritToolNames, "explicit");
88514
+ const notice = noCompatibleRoutes ? NO_COMPATIBLE_ROUTES_REASON : inheritRouteNoticeSentence(toolNames, inheritToolNames, "explicit");
88508
88515
  const text = notice.length > 0 && !rewritten.includes(notice) ? rewritten + "\n\n" + notice : rewritten;
88509
88516
  if (text === section.text) return section;
88510
88517
  sectionsChanged = true;
@@ -88521,7 +88528,9 @@ function rewriteAuthorizedPromptAssembly(assembly, allowed, toolNames = DEFAULT_
88521
88528
  const isInherit = inheritToolNames.includes(name);
88522
88529
  if (name !== "list_subagent_models" && !isExplicit && !isInherit) return tool;
88523
88530
  const rewrittenDescription = typeof tool.description === "string" ? rewriteAuthorizedToolDescriptions(tool.description, allowed) : tool.description;
88524
- const notice = isExplicit || isInherit ? inheritRouteNoticeSentence(toolNames, inheritToolNames, isExplicit ? "explicit" : "inherit") : "";
88531
+ let notice = "";
88532
+ if (noCompatibleRoutes) notice = isInherit ? "" : NO_COMPATIBLE_ROUTES_REASON;
88533
+ else if (isExplicit || isInherit) notice = inheritRouteNoticeSentence(toolNames, inheritToolNames, isExplicit ? "explicit" : "inherit");
88525
88534
  const description = typeof rewrittenDescription === "string" && notice.length > 0 && !rewrittenDescription.includes(notice) ? rewrittenDescription + " " + notice : rewrittenDescription;
88526
88535
  let params = tool.parameters;
88527
88536
  const paramsRecord = asRecord$2(params);
@@ -88585,15 +88594,16 @@ function delegationDenialReason(agent, toolName, args, preference, sessions, too
88585
88594
  }))], toolName);
88586
88595
  if (mode === void 0) return void 0;
88587
88596
  const allowed = effectiveAllowedRoutes(agent, preference, sessions, scope, lockSnapshot);
88588
- if (allowed.length === 0) return void 0;
88597
+ if (allowed === void 0) return void 0;
88589
88598
  const request = asRecord$2(args) ?? {};
88590
88599
  const requestedProvider = asString$7(request["provider"]);
88591
88600
  const requestedModel = asString$7(request["model"]);
88592
88601
  if (mode === "inherit") {
88593
88602
  if (requestedProvider !== void 0 || requestedModel !== void 0) return inheritOverrideReason(toolName, requestedProvider ?? "", requestedModel ?? "", toolNames);
88594
88603
  if (parentForkToolNames.includes(toolName) && effectiveAllowParentFork(agent, preference, sessions, lockSnapshot)) return;
88595
- return inheritedRouteDenial(agent, toolName, allowed);
88604
+ return allowed.length === 0 ? NO_COMPATIBLE_ROUTES_REASON : inheritedRouteDenial(agent, toolName, allowed);
88596
88605
  }
88606
+ if (allowed.length === 0) return NO_COMPATIBLE_ROUTES_REASON;
88597
88607
  if (declaresRouteParameters?.(agent, toolName) === false) {
88598
88608
  if (requestedProvider === void 0 && requestedModel === void 0) return inheritedRouteDenial(agent, toolName, allowed);
88599
88609
  if (requestedProvider === void 0 || requestedModel === void 0) return routeFieldsUnavailableReason(toolName, inheritedRouteOf(agent), allowed);
@@ -88613,7 +88623,7 @@ function delegationDenialReason(agent, toolName, args, preference, sessions, too
88613
88623
  * @returns a guard that denies delegations outside the Session allowlist.
88614
88624
  */
88615
88625
  function createSubagentAuthorization(options) {
88616
- return (agent, toolName, args) => delegationDenialReason(agent, toolName, args, mergedPreference(options), options.sessions, options.toolNames, options.scope ?? "session", options.inheritToolNames ?? [], options.declaresRouteParameters);
88626
+ return (agent, toolName, args) => delegationDenialReason(agent, toolName, args, readSubagentRoutingPreference(options), options.sessions, options.toolNames, options.scope ?? "session", options.inheritToolNames ?? [], options.declaresRouteParameters);
88617
88627
  }
88618
88628
  /**
88619
88629
  * Resolve the preference one guard evaluation uses.
@@ -88625,7 +88635,7 @@ function createSubagentAuthorization(options) {
88625
88635
  * @param options - Runtime inputs the guard closed over.
88626
88636
  * @returns the merged preference, or undefined when neither seam says anything.
88627
88637
  */
88628
- function mergedPreference(options) {
88638
+ function readSubagentRoutingPreference(options) {
88629
88639
  let overrides;
88630
88640
  try {
88631
88641
  overrides = options.routingOverrides?.();
@@ -88727,11 +88737,26 @@ function installSubagentModelAuthorization(ctx, sessions, config = {}) {
88727
88737
  declaresRouteParameters: routeParameterProbe(ctx),
88728
88738
  routingOverrides: config.routingOverrides
88729
88739
  });
88730
- const currentPreference = () => mergedPreference({
88740
+ const currentPreference = () => readSubagentRoutingPreference({
88731
88741
  settings,
88732
88742
  routingOverrides: config.routingOverrides
88733
88743
  });
88734
- const disposeGuard = ctx.tools.guard((exec) => authorize(exec.agent, exec.name, exec.arguments));
88744
+ const disposeGuard = ctx.tools.guard((exec) => {
88745
+ const agent = exec.agent;
88746
+ if (exec.name === "list_subagent_models") {
88747
+ const request = asRecord$2(exec.arguments);
88748
+ const provider = asString$7(request?.["provider"]);
88749
+ const model = asString$7(request?.["model"]);
88750
+ if (provider === void 0 || provider.length === 0 || model === "") return void 0;
88751
+ const allowed = effectiveAllowedRoutes(agent, currentPreference(), sessions, scope, true);
88752
+ if (allowed === void 0) return void 0;
88753
+ if (allowed.length === 0) return NO_COMPATIBLE_ROUTES_REASON;
88754
+ if (model !== void 0) return routesInclude(allowed, provider, model) ? void 0 : unauthorizedRouteReason(provider, model, allowed, true);
88755
+ if (!allowed.some((route) => route.provider === provider)) return "subagent model selection: provider " + JSON.stringify(provider) + " is not on the Session allowlist. Authorized child routes are " + authorizedRoutesText(allowed) + ".";
88756
+ return;
88757
+ }
88758
+ return authorize(agent, exec.name, exec.arguments);
88759
+ });
88735
88760
  const eventHost = ctx;
88736
88761
  const disposePostExecute = eventHost.on?.("tools/post-execute", async (exec, result, next) => {
88737
88762
  const decision = await next();
@@ -93186,7 +93211,7 @@ function routeAllowed(allowed, route) {
93186
93211
  * @returns violations, ordered as the children were discovered.
93187
93212
  */
93188
93213
  function auditChildRoutes(parent, sessions, allowed, options) {
93189
- if (allowed === void 0 || allowed.length === 0) return [];
93214
+ if (allowed === void 0 || allowed.length === 0 && options?.enforceEmptyAllowlist !== true) return [];
93190
93215
  const violations = [];
93191
93216
  for (const finding of childRoutesOf(parent, sessions)) {
93192
93217
  const effective = effectiveRouteOf(finding, sessions);
@@ -107714,6 +107739,22 @@ const ADAPTIVE_REASONING = [
107714
107739
  "max"
107715
107740
  ];
107716
107741
  const DISABLEABLE_ADAPTIVE_REASONING = ["none", ...ADAPTIVE_REASONING];
107742
+ const LOW_HIGH_MAX_REASONING = [
107743
+ "low",
107744
+ "high",
107745
+ "max"
107746
+ ];
107747
+ const DEEPSEEK_REASONING = ["none", ...LOW_HIGH_MAX_REASONING];
107748
+ const QWEN_REASONING = [
107749
+ "low",
107750
+ "high",
107751
+ "xhigh"
107752
+ ];
107753
+ const SWE_REASONING = [
107754
+ "medium",
107755
+ "high",
107756
+ "max"
107757
+ ];
107717
107758
  /**
107718
107759
  * Public Messages capabilities, not the Claude Code subscription's OAuth/betas.
107719
107760
  * https://platform.claude.com/docs/en/build-with-claude/thinking#when-thinking-turns-on
@@ -107747,33 +107788,124 @@ function relayOneClaudeAdaptiveThinking(id) {
107747
107788
  allowsTemperatureWhenOff: false
107748
107789
  };
107749
107790
  }
107791
+ /**
107792
+ * RelayOne passes requests through to the vendor, so model facts follow the
107793
+ * vendor's public contract rather than a subscription line's lower plan cap.
107794
+ * Sources include the Claude/Gemini model tables, Alibaba's Qwen4-Max guide,
107795
+ * Step's Step-5 reasoning guide, and the sibling official-client registries in
107796
+ * kimi-code, minimax-code, glm-coding-plan and qianwen-token-plan.
107797
+ * SWE-2 has no published standalone API window/output limit; keep the local
107798
+ * conservative budget while exposing Cognition's documented effort ladder.
107799
+ */
107750
107800
  function modelFacts(id, protocol) {
107751
107801
  const normalized = id.toLowerCase();
107752
- if (/^(gpt-|o[134](?:-|$)|codex)/.test(normalized)) return {
107802
+ const model = normalized.slice(normalized.lastIndexOf("/") + 1);
107803
+ if (/^(gpt-|o[134](?:-|$)|codex)/.test(model)) return {
107753
107804
  contextWindow: 272e3,
107754
107805
  maxOutputTokens: 128e3,
107755
107806
  supportsImages: true,
107756
107807
  reasoningEfforts: RELAYONE_REASONING_EFFORTS
107757
107808
  };
107758
- if (normalized.startsWith("claude-")) return {
107759
- contextWindow: 2e5,
107809
+ if (model.startsWith("claude-")) {
107810
+ const reasoningEfforts = (protocol === "anthropic" ? relayOneClaudeAdaptiveThinking(model) : void 0)?.efforts ?? DEFAULT_REASONING;
107811
+ if (/^claude-(?:(?:opus|sonnet)-5(?:-5)?|haiku-5-5|(?:fable|mythos)-5(?:-[12])?)$/.test(model)) return {
107812
+ contextWindow: 1e6,
107813
+ maxOutputTokens: 128e3,
107814
+ supportsImages: true,
107815
+ reasoningEfforts
107816
+ };
107817
+ if (/^claude-haiku-4-5(?:-\d{8})?$/.test(model)) return {
107818
+ contextWindow: 2e5,
107819
+ maxOutputTokens: 64e3,
107820
+ supportsImages: true,
107821
+ reasoningEfforts
107822
+ };
107823
+ return {
107824
+ contextWindow: 2e5,
107825
+ maxOutputTokens: 32768,
107826
+ supportsImages: true,
107827
+ reasoningEfforts
107828
+ };
107829
+ }
107830
+ if (/^gemini-4-(?:argon|carbon|hydrogen)$/.test(model)) return {
107831
+ contextWindow: 1048576,
107832
+ maxOutputTokens: 65536,
107833
+ supportsImages: true,
107834
+ reasoningEfforts: DEFAULT_REASONING
107835
+ };
107836
+ if (model === "gemini-3.8-flash") return {
107837
+ contextWindow: 1e6,
107838
+ maxOutputTokens: 65536,
107839
+ supportsImages: true,
107840
+ reasoningEfforts: DEFAULT_REASONING
107841
+ };
107842
+ if (model === "minimax-m3.1-flash") return {
107843
+ contextWindow: 1e6,
107844
+ maxOutputTokens: 128e3,
107845
+ supportsImages: true,
107846
+ reasoningEfforts: ADAPTIVE_REASONING
107847
+ };
107848
+ if (model === "kimi-k3.1-pro") return {
107849
+ contextWindow: 1048576,
107760
107850
  maxOutputTokens: 32768,
107761
107851
  supportsImages: true,
107762
- reasoningEfforts: (protocol === "anthropic" ? relayOneClaudeAdaptiveThinking(normalized) : void 0)?.efforts ?? DEFAULT_REASONING
107852
+ reasoningEfforts: LOW_HIGH_MAX_REASONING
107853
+ };
107854
+ if (model === "qwen4-max") return {
107855
+ contextWindow: 1e6,
107856
+ maxOutputTokens: 262144,
107857
+ supportsImages: true,
107858
+ reasoningEfforts: QWEN_REASONING
107859
+ };
107860
+ if (model === "qwen-3.8-flash" || model === "qwen3.8-flash") return {
107861
+ contextWindow: 1e6,
107862
+ maxOutputTokens: 131072,
107863
+ supportsImages: true,
107864
+ reasoningEfforts: QWEN_REASONING
107865
+ };
107866
+ if (model === "deepseek-v4.1-flash" || model === "deepseek-v4.1-flash-1017") return {
107867
+ contextWindow: 1e6,
107868
+ maxOutputTokens: 393216,
107869
+ supportsImages: true,
107870
+ reasoningEfforts: DEEPSEEK_REASONING
107871
+ };
107872
+ if (model === "deepseek-v4-pro") return {
107873
+ contextWindow: 1e6,
107874
+ maxOutputTokens: 393216,
107875
+ supportsImages: false,
107876
+ reasoningEfforts: DEEPSEEK_REASONING
107877
+ };
107878
+ if (model === "glm-5.3-flash") return {
107879
+ contextWindow: 1048576,
107880
+ maxOutputTokens: 128e3,
107881
+ supportsImages: true,
107882
+ reasoningEfforts: LOW_HIGH_MAX_REASONING
107763
107883
  };
107764
- if (normalized.includes("gemini") || normalized.includes("banana")) return {
107884
+ if (model === "step-5-preview") return {
107885
+ contextWindow: 1e6,
107886
+ maxOutputTokens: 64e3,
107887
+ supportsImages: true,
107888
+ reasoningEfforts: DEFAULT_REASONING
107889
+ };
107890
+ if (model === "swe-2" || model === "swe-2-flash") return {
107891
+ contextWindow: 128e3,
107892
+ maxOutputTokens: 8192,
107893
+ supportsImages: false,
107894
+ reasoningEfforts: SWE_REASONING
107895
+ };
107896
+ if (model.includes("gemini") || model.includes("banana")) return {
107765
107897
  contextWindow: 1e6,
107766
107898
  maxOutputTokens: 32768,
107767
107899
  supportsImages: true,
107768
107900
  reasoningEfforts: DEFAULT_REASONING
107769
107901
  };
107770
- if (normalized.includes("qwen") || normalized.includes("deepseek") || normalized.includes("kimi")) return {
107902
+ if (model.includes("qwen") || model.includes("deepseek") || model.includes("kimi")) return {
107771
107903
  contextWindow: 256e3,
107772
107904
  maxOutputTokens: 32768,
107773
107905
  supportsImages: true,
107774
107906
  reasoningEfforts: DEFAULT_REASONING
107775
107907
  };
107776
- if (normalized.includes("glm") || normalized.includes("minimax") || normalized.includes("step")) return {
107908
+ if (model.includes("glm") || model.includes("minimax") || model.includes("step")) return {
107777
107909
  contextWindow: 2e5,
107778
107910
  maxOutputTokens: 16384,
107779
107911
  supportsImages: false,
@@ -108547,6 +108679,11 @@ function chatContent(message, images, accepted) {
108547
108679
  });
108548
108680
  return parts;
108549
108681
  }
108682
+ function relayOneChatUsesMaxCompletionTokens(entry) {
108683
+ const normalized = entry.id.toLowerCase();
108684
+ const model = normalized.slice(normalized.lastIndexOf("/") + 1);
108685
+ return isRelayOneOpenAIModel(entry.id, entry.vendor) || model.startsWith("kimi-") || model.startsWith("qwen");
108686
+ }
108550
108687
  function buildRelayOneChatRequest(options, images, entry, settings) {
108551
108688
  const messages = [];
108552
108689
  const system = relayOneGptSystemText(options, entry);
@@ -108608,20 +108745,25 @@ function buildRelayOneChatRequest(options, images, entry, settings) {
108608
108745
  }
108609
108746
  }));
108610
108747
  const effort = relayOneEffort(options, settings.defaultReasoningEffort, entry.reasoningEfforts);
108748
+ const normalized = entry.id.toLowerCase();
108749
+ const model = normalized.slice(normalized.lastIndexOf("/") + 1);
108750
+ const glm = model.startsWith("glm-");
108751
+ const deepSeekThinkingOff = effort === "none" && model.startsWith("deepseek");
108611
108752
  return {
108612
108753
  model: options.model,
108613
108754
  messages,
108614
108755
  stream: true,
108615
- stream_options: { include_usage: true },
108616
- ...options.maxTokens === void 0 ? {} : { max_completion_tokens: options.maxTokens },
108756
+ ...glm ? {} : { stream_options: { include_usage: true } },
108757
+ ...options.maxTokens === void 0 ? {} : relayOneChatUsesMaxCompletionTokens(entry) ? { max_completion_tokens: options.maxTokens } : { max_tokens: options.maxTokens },
108617
108758
  ...options.temperature === void 0 ? {} : { temperature: options.temperature },
108618
108759
  ...options.stop !== void 0 && options.stop.length > 0 ? { stop: options.stop } : {},
108619
108760
  ...tools.length > 0 ? {
108620
108761
  tools,
108621
108762
  tool_choice: "auto",
108622
- parallel_tool_calls: true
108763
+ ...glm ? {} : { parallel_tool_calls: true }
108623
108764
  } : {},
108624
- ...effort === void 0 ? {} : { reasoning_effort: effort }
108765
+ ...effort === void 0 || deepSeekThinkingOff ? {} : { reasoning_effort: effort },
108766
+ ...deepSeekThinkingOff ? { thinking: { type: "disabled" } } : {}
108625
108767
  };
108626
108768
  }
108627
108769
  function createRelayOneChatStreamState() {
@@ -110752,6 +110894,18 @@ function apply(ctx, pluginConfig = {}) {
110752
110894
  };
110753
110895
  }
110754
110896
  });
110897
+ const readSubagentRoutingOverrides = () => {
110898
+ const current = preferences.status();
110899
+ const defaultAllowedModels = current.subagentDefaultModels ?? [];
110900
+ const byMainModel = current.subagentModelsByMainModel ?? {};
110901
+ const allowParentForkByMainModel = current.subagentAllowParentForkByMainModel ?? {};
110902
+ return {
110903
+ ...defaultAllowedModels.length > 0 ? { defaultAllowedModels } : {},
110904
+ ...Object.keys(byMainModel).length > 0 ? { byMainModel } : {},
110905
+ ...current.subagentDefaultAllowParentFork === true ? { defaultAllowParentFork: true } : {},
110906
+ ...Object.keys(allowParentForkByMainModel).length > 0 ? { allowParentForkByMainModel } : {}
110907
+ };
110908
+ };
110755
110909
  const delegationToolNames = normalizeDelegationToolNames(pluginConfig.subagentModelTools);
110756
110910
  const delegationInheritNames = normalizeInheritToolNames(pluginConfig.subagentModelInheritTools);
110757
110911
  if (pluginConfig.subagentModelAuthorization !== false) ctx.inject(["sessions"], (scoped) => {
@@ -110763,19 +110917,7 @@ function apply(ctx, pluginConfig = {}) {
110763
110917
  toolNames: delegationToolNames,
110764
110918
  inheritToolNames: delegationInheritNames,
110765
110919
  scope: pluginConfig.subagentModelScope ?? "session",
110766
- routingOverrides: () => {
110767
- const current = preferences.status();
110768
- const defaultAllowedModels = current.subagentDefaultModels ?? [];
110769
- const byMainModel = current.subagentModelsByMainModel ?? {};
110770
- const defaultAllowParentFork = current.subagentDefaultAllowParentFork;
110771
- const allowParentForkByMainModel = current.subagentAllowParentForkByMainModel ?? {};
110772
- return {
110773
- ...defaultAllowedModels.length > 0 ? { defaultAllowedModels } : {},
110774
- ...Object.keys(byMainModel).length > 0 ? { byMainModel } : {},
110775
- ...defaultAllowParentFork === true ? { defaultAllowParentFork: true } : {},
110776
- ...Object.keys(allowParentForkByMainModel).length > 0 ? { allowParentForkByMainModel } : {}
110777
- };
110778
- }
110920
+ routingOverrides: readSubagentRoutingOverrides
110779
110921
  });
110780
110922
  }, "dsh-chatgpt-subscription: subagent model authorization");
110781
110923
  });
@@ -111278,21 +111420,23 @@ function apply(ctx, pluginConfig = {}) {
111278
111420
  const sessions = ctx.get("sessions");
111279
111421
  const target = sessions.get(sessionId);
111280
111422
  if (target === void 0) throw new Error(`Unknown session "${sessionId}".`);
111281
- const audited = auditedRoutesOf(target);
111282
- const current = preferences.status();
111283
- const mainRoute = resolveRootSessionAndMainRoute({ session: target }, sessions).mainRoute;
111284
- const override = mainRoute === void 0 ? void 0 : (current.subagentModelsByMainModel ?? {})[`${mainRoute.provider}/${mainRoute.model}`];
111285
- const fallback = current.subagentDefaultModels ?? [];
111286
- const allowed = audited === void 0 ? audited : override !== void 0 && override.length > 0 ? override : fallback.length > 0 ? fallback : audited;
111287
- const forkOverride = mainRoute === void 0 ? void 0 : (current.subagentAllowParentForkByMainModel ?? {})[`${mainRoute.provider}/${mainRoute.model}`];
111288
- const allowParentFork = typeof forkOverride === "boolean" ? forkOverride : current.subagentDefaultAllowParentFork === true;
111423
+ const agent = { session: target };
111424
+ const preference = readSubagentRoutingPreference({
111425
+ settings: ctx.settings,
111426
+ routingOverrides: readSubagentRoutingOverrides
111427
+ });
111428
+ const allowed = effectiveAllowedRoutes(agent, preference, sessions, pluginConfig.subagentModelScope);
111429
+ const allowParentFork = allowed !== void 0 && effectiveAllowParentFork(agent, preference, sessions);
111289
111430
  return Promise.resolve({
111290
111431
  sessionId,
111291
111432
  allowedModels: (allowed ?? []).map((route) => ({
111292
111433
  provider: route.provider,
111293
111434
  model: route.model
111294
111435
  })),
111295
- violations: auditChildRoutes(target, sessions, allowed, { allowParentFork }).map((violation) => ({
111436
+ violations: auditChildRoutes(target, sessions, allowed, {
111437
+ allowParentFork,
111438
+ enforceEmptyAllowlist: true
111439
+ }).map((violation) => ({
111296
111440
  childId: violation.finding.childId,
111297
111441
  parentId: violation.finding.parentId ?? null,
111298
111442
  provider: violation.finding.provider ?? null,
@@ -1 +1 @@
1
- {"version":3,"file":"RelayOneComposerQuota.d.ts","sourceRoot":"","sources":["../../../../src/client/relayone/RelayOneComposerQuota.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,mDAAmD,CAAA;AAC5F,OAAO,KAAK,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,kCAAkC,CAAA;AACjF,OAAO,EAAwB,KAAK,iBAAiB,EAAE,MAAM,oCAAoC,CAAA;AACjG,OAAO,EAAkC,KAAK,kBAAkB,EAAE,MAAM,kCAAkC,CAAA;AAE1G,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,OAAO,EAAE,WAAW,EAAE,EAAE,EAAE,MAAM,cAAc,CAAA;AAE9C,KAAK,KAAK,GAAG,YAAY,CAAC,0BAA0B,CAAC,GAAG,WAAW,CAAC,OAAO,WAAW,CAAC,GAAG;IACxF,SAAS,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAA;IAC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B,EAAE,CAAC,EAAE,EAAE,KAAK,GAAG,KAAK,CAAC,GAAG,CAAC,OAAO,GAAG,IAAI,CAI3G"}
@@ -1 +1 @@
1
- {"version":3,"file":"subagent-card-controller.d.ts","sourceRoot":"","sources":["../../../../src/client/subagent/subagent-card-controller.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,sBAAsB;AACtB,eAAO,MAAM,kBAAkB,aAAa,CAAA;AAE5C,sBAAsB;AACtB,eAAO,MAAM,2BAA2B,sCAAsC,CAAA;AAE9E,2BAA2B;AAC3B,eAAO,MAAM,aAAa,YAAY,CAAA;AAKtC,+BAA+B;AAC/B,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;CACd;AAED,8BAA8B;AAC9B,MAAM,WAAW,sBAAuB,SAAQ,kBAAkB;IAChE,2BAA2B;IAC3B,GAAG,EAAE,MAAM,CAAA;IACX,oBAAoB;IACpB,YAAY,EAAE,MAAM,CAAA;IACpB,mBAAmB;IACnB,SAAS,EAAE,MAAM,CAAA;IACjB,sBAAsB;IACtB,SAAS,EAAE,OAAO,CAAA;IAClB,oBAAoB;IACpB,QAAQ,EAAE,OAAO,CAAA;CAClB;AAED,wBAAwB;AACxB,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,OAAO,CAAA;KAAE,CAAC,CAAA;CACtF;AAED,oBAAoB;AACpB,MAAM,WAAW,kBAAkB;IACjC,yBAAyB;IACzB,KAAK,EAAE,MAAM,CAAA;IACb,wBAAwB;IACxB,IAAI,EA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,OAAO;IAQf,qCAAqC;IACrC,OAAO,CAAC,UAAU;IAyClB,qCAAqC;IACrC,OAAO,CAAC,eAAe;IAkBvB,iCAAiC;IACjC,OAAO,CAAC,gBAAgB;IAWxB;;OAEG;YACW,IAAI;IA4HlB,OAAO,CAAC,UAAU;IAwBlB,OAAO,CAAC,UAAU;IA2ElB,OAAO,CAAC,OAAO;CAIhB"}
1
+ {"version":3,"file":"subagent-card-controller.d.ts","sourceRoot":"","sources":["../../../../src/client/subagent/subagent-card-controller.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;GAmBG;AAGH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,aAAa,CAAA;AAEhD,sBAAsB;AACtB,eAAO,MAAM,kBAAkB,aAAa,CAAA;AAE5C,sBAAsB;AACtB,eAAO,MAAM,2BAA2B,sCAAsC,CAAA;AAE9E,2BAA2B;AAC3B,eAAO,MAAM,aAAa,YAAY,CAAA;AAKtC,+BAA+B;AAC/B,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,MAAM,CAAA;IAChB,KAAK,EAAE,MAAM,CAAA;CACd;AAED,8BAA8B;AAC9B,MAAM,WAAW,sBAAuB,SAAQ,kBAAkB;IAChE,2BAA2B;IAC3B,GAAG,EAAE,MAAM,CAAA;IACX,oBAAoB;IACpB,YAAY,EAAE,MAAM,CAAA;IACpB,mBAAmB;IACnB,SAAS,EAAE,MAAM,CAAA;IACjB,sBAAsB;IACtB,SAAS,EAAE,OAAO,CAAA;IAClB,oBAAoB;IACpB,QAAQ,EAAE,OAAO,CAAA;CAClB;AAED,wBAAwB;AACxB,MAAM,WAAW,sBAAsB;IACrC,QAAQ,EAAE,MAAM,CAAA;IAChB,YAAY,EAAE,MAAM,CAAA;IACpB,MAAM,EAAE,KAAK,CAAC;QAAE,GAAG,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAC;QAAC,UAAU,EAAE,OAAO,CA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B,sCAAsC;IACtC,OAAO,CAAC,qBAAqB;IAgB7B,iCAAiC;IACjC,OAAO,CAAC,qBAAqB;IAU7B,yCAAyC;IACzC,OAAO,CAAC,iBAAiB;IAazB,OAAO,CAAC,OAAO;IAQf,qCAAqC;IACrC,OAAO,CAAC,UAAU;IAyClB,qCAAqC;IACrC,OAAO,CAAC,eAAe;IAkBvB,iCAAiC;IACjC,OAAO,CAAC,gBAAgB;IAWxB;;OAEG;YACW,IAAI;IAuHlB,OAAO,CAAC,UAAU;IAwBlB,OAAO,CAAC,UAAU;IA0ElB,OAAO,CAAC,OAAO;CAIhB"}
@@ -76,7 +76,7 @@ export declare const ROUTE_PREFIX: "/api/dsh-chatgpt-subscription";
76
76
  * `test/responses-client.test.ts` asserts the two agree, so a release that
77
77
  * forgets this constant fails the suite instead of shipping quietly.
78
78
  */
79
- export declare const PLUGIN_VERSION: "0.80.2";
79
+ export declare const PLUGIN_VERSION: "0.80.4";
80
80
  export declare const CODEX_CHATGPT_PROVIDER_ID: "codex-chatgpt";
81
81
  export { MINIMAX_CODE_PROVIDER_ID, MINIMAX_CODE_ROUTE_PREFIX } from './shared/minimax-code-contracts.ts';
82
82
  export declare const CODEX_API_BASE: "https://chatgpt.com/backend-api/codex";
@@ -1 +1 @@
1
- {"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../src/host/claude/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyHG;AAOH,OAAO,EAAuB,KAAK,mBAAmB,EAAE,MAAM,kCAAkC,CAAA;AAEhG,OAAO,EACL,UAAU,EACV,iBAAiB,EAEjB,KAAK,eAAe,EACpB,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,mB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AO,CAI3F;AAiBD,6DAA6D;AAC7D,wBAAgB,aAAa,CAAC,OAAO,EAAE,aAAa,EAAE,GAAG,GAAE,MAAmB,GAAG,MAAM,CAUtF;AAED,2DAA2D;AAC3D,wBAAgB,cAAc,CAAC,OAAO,EAAE,aAAa,GAAG,MAAM,CAO7D;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,QAAQ,EAChB,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACpC,OAAO,EAAE,OAAO,GACf,mBAAmB,CAcrB;AAED,sFAAsF;AACtF,MAAM,WAAW,mBAAmB;IAClC,gFAAgF;IAChF,KAAK,EAAE,QAAQ,CAAA;IACf;;;;OAIG;IACH,OAAO,EAAE,aAAa,GAAG,IAAI,CAAA;CAC9B;AAED;;;;;;;GAOG;AACH,wBAAgB,UAAU,CAAC,OAAO,EAAE,aAAa,GAAG,QAAQ,CAkE3D;AAED,OAAO,EAAE,WAAW,EAAE,aAAa,EAAE,CAAA"}
@@ -248,6 +248,14 @@ export declare const CALLBACK_PATH = "/callback";
248
248
  * `host/common/idle-watchdog.ts` for the measured basis.
249
249
  */
250
250
  export declare const STREAM_IDLE_TIMEOUT_MS = 120000;
251
+ /**
252
+ * Separate ceiling before the first streamed value arrives.
253
+ *
254
+ * A large prompt can spend much longer in prefill than a healthy stream may
255
+ * remain silent between values. Once the first value arrives, the watchdog
256
+ * returns to STREAM_IDLE_TIMEOUT_MS; this is not a whole-response deadline.
257
+ */
258
+ export declare const STREAM_FIRST_OUTPUT_TIMEOUT_MS = 360000;
251
259
  /** Failure code the adapter reports for that stall. */
252
260
  export declare const STREAM_IDLE_TIMEOUT_CODE = "LLM_STREAM_IDLE_TIMEOUT";
253
261
  /** Ceiling for a model-listing or usage fetch. */