@eddyskywalker/dsh-chatgpt-subscription 0.80.3 → 0.80.5

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.3";
835
+ const PLUGIN_VERSION = "0.80.5";
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`;
@@ -26219,19 +26219,56 @@ function collapseModels(options, availableModels) {
26219
26219
  return options.map((option) => {
26220
26220
  const levels = byBase.get(option.value);
26221
26221
  const efforts = levels === void 0 ? [] : EFFORT_ORDER$2.filter((level) => levels.has(level));
26222
+ const contextWindow = availableModels.find((candidate) => candidate.contextWindow !== void 0 && (candidate.modelId === option.value || candidate.modelId.startsWith(option.value + "-")))?.contextWindow;
26222
26223
  return {
26223
26224
  id: option.value,
26224
26225
  name: option.name ?? option.value,
26225
- efforts
26226
+ efforts,
26227
+ ...contextWindow === void 0 ? {} : { contextWindow }
26226
26228
  };
26227
26229
  });
26228
26230
  }
26229
26231
  /**
26230
- * Project one collapsed model into harness model metadata.
26232
+ * Context window this line declares for a model id the catalogue did not price.
26233
+ *
26234
+ * The values are the upstream Antigravity catalogue's own numbers, transcribed
26235
+ * from the retired `antigravity` line's catalogue (the same upstream, one
26236
+ * transport earlier): the Gemini 4 family and the Gemini 3.x flash models take
26237
+ * 1,048,576, `gpt-oss-120b` takes 131,072, the Claude models take 250,000, and
26238
+ * the Gemini 3.1 flash image model takes 65,536.
26231
26239
  *
26232
- * `context` is omitted when the server published no window: an absent context is
26233
- * "not declared", while a fabricated one would let the harness compact a prompt
26234
- * the model could have taken.
26240
+ * This is NOT a second model list: it never decides which models exist, only
26241
+ * how large a context the harness is told to expect. A window the server
26242
+ * publishes always wins (see {@link toResolvedModelInfo}).
26243
+ */
26244
+ const SHIPPED_CONTEXT_WINDOWS = [
26245
+ ["gemini-3.1-flash-image", 65536],
26246
+ ["gemini-4-", 1048576],
26247
+ ["gemini-3", 1048576],
26248
+ ["gpt-oss-", 131072],
26249
+ ["claude-", 25e4]
26250
+ ];
26251
+ /**
26252
+ * Window declared for an id the shipped table does not know.
26253
+ *
26254
+ * Deliberately the small end: a window that is too small compacts earlier than
26255
+ * the model needed, while one that is too large lets the harness send a request
26256
+ * past the real limit. 131,072 still leaves the default 65,536-token compaction
26257
+ * headroom a usable budget.
26258
+ */
26259
+ const FALLBACK_CONTEXT_WINDOW = 131072;
26260
+ /**
26261
+ * Context window this line declares for one model id.
26262
+ *
26263
+ * @param modelId - Model id as the server published it.
26264
+ * @returns The shipped window for that family, else {@link FALLBACK_CONTEXT_WINDOW}.
26265
+ */
26266
+ function defaultContextWindow(modelId) {
26267
+ for (const [prefix, contextWindow] of SHIPPED_CONTEXT_WINDOWS) if (modelId.startsWith(prefix)) return contextWindow;
26268
+ return FALLBACK_CONTEXT_WINDOW;
26269
+ }
26270
+ /**
26271
+ * Project one collapsed model into harness model metadata.
26235
26272
  *
26236
26273
  * @param provider - Registered provider route.
26237
26274
  * @param model - One collapsed model.
@@ -26247,14 +26284,24 @@ function toModelInfo(provider, model) {
26247
26284
  /**
26248
26285
  * Project one collapsed model into exact-route metadata, including its ladder.
26249
26286
  *
26287
+ * A window is ALWAYS declared, because DSH treats an absent one as a broken
26288
+ * route rather than as "unknown": `dsh-compaction-basic` throws
26289
+ * `TargetPressureConfigError` on every model switch into the line, which the
26290
+ * harness surfaces as `MODEL_SWITCH_COMPACTION_FAILED` before the first token.
26291
+ * The order is: the window a live `usage_update` reported for this model, then
26292
+ * one the catalogue row carries, then the shipped family table.
26293
+ *
26250
26294
  * @param provider - Registered provider route.
26251
26295
  * @param model - One collapsed model.
26296
+ * @param observedContextWindow - Window the server reported for this model in a live turn, when it did.
26252
26297
  * @returns Harness-facing resolved model info, with `reasoning` only when a ladder was published.
26253
26298
  */
26254
- function toResolvedModelInfo(provider, model) {
26299
+ function toResolvedModelInfo(provider, model, observedContextWindow) {
26300
+ const base = toModelInfo(provider, model);
26301
+ const contextWindow = observedContextWindow ?? model.contextWindow ?? defaultContextWindow(model.id);
26255
26302
  return {
26256
- ...toModelInfo(provider, model),
26257
- ...model.contextWindow === void 0 ? {} : { context: { contextWindow: model.contextWindow } },
26303
+ ...base,
26304
+ context: { contextWindow },
26258
26305
  ...model.efforts.length === 0 ? {} : { reasoning: {
26259
26306
  efforts: model.efforts.map((id) => ({
26260
26307
  id,
@@ -26409,6 +26456,15 @@ var AntigravityAcpAdapter = class extends LlmAdapter {
26409
26456
  * is how a card ends up showing a fabricated cost.
26410
26457
  */
26411
26458
  lastOccupancy;
26459
+ /**
26460
+ * Context window the server reported for each model through `usage_update`.
26461
+ *
26462
+ * The handshake's model list carries no capacity, so this is the only live
26463
+ * window the line ever learns. It is per model and lasts for the process: the
26464
+ * shipped table covers the models nobody has run yet, this overrides it once
26465
+ * the agent has told us how full the window really was.
26466
+ */
26467
+ observedContextWindows = /* @__PURE__ */ new Map();
26412
26468
  constructor(options) {
26413
26469
  super();
26414
26470
  this.options = options;
@@ -26437,7 +26493,7 @@ var AntigravityAcpAdapter = class extends LlmAdapter {
26437
26493
  return this.visibleModels(view?.models ?? [], settings).map((model) => toModelInfo(provider, model));
26438
26494
  }
26439
26495
  async resolveModel(provider, model, signal) {
26440
- return toResolvedModelInfo(provider, findModel((await this.options.loadCatalog({ signal }).catch(() => void 0))?.models ?? [], model));
26496
+ return toResolvedModelInfo(provider, findModel((await this.options.loadCatalog({ signal }).catch(() => void 0))?.models ?? [], model), this.observedContextWindows.get(model));
26441
26497
  }
26442
26498
  async prepareCall(provider, model, signal) {
26443
26499
  return {
@@ -26616,10 +26672,13 @@ var AntigravityAcpAdapter = class extends LlmAdapter {
26616
26672
  }
26617
26673
  if (type === "usage_update") {
26618
26674
  const occupancy = readOccupancy(update);
26619
- if (occupancy !== void 0) this.lastOccupancy = {
26620
- ...occupancy,
26621
- at: this.now()
26622
- };
26675
+ if (occupancy !== void 0) {
26676
+ this.lastOccupancy = {
26677
+ ...occupancy,
26678
+ at: this.now()
26679
+ };
26680
+ this.observedContextWindows.set(turn.model, occupancy.size);
26681
+ }
26623
26682
  continue;
26624
26683
  }
26625
26684
  if (type === "agent_message_chunk" || type === "agent_thought_chunk") {
@@ -27752,7 +27811,8 @@ function readAvailableModels(raw) {
27752
27811
  if (typeof record.modelId !== "string") continue;
27753
27812
  models.push({
27754
27813
  modelId: record.modelId,
27755
- ...typeof record.name === "string" ? { name: record.name } : {}
27814
+ ...typeof record.name === "string" ? { name: record.name } : {},
27815
+ ...typeof record.contextWindow === "number" && record.contextWindow > 0 ? { contextWindow: record.contextWindow } : {}
27756
27816
  });
27757
27817
  }
27758
27818
  return models;
@@ -32247,7 +32307,7 @@ const STREAM_IDLE_TIMEOUT_CODE$4 = "LLM_STREAM_IDLE_TIMEOUT";
32247
32307
  * body bytes arrive. Six minutes is the product choice for that phase; once the
32248
32308
  * first chunk arrives, the ordinary 120 s activity budget above takes over.
32249
32309
  */
32250
- const STREAM_FIRST_OUTPUT_TIMEOUT_MS = 36e4;
32310
+ const STREAM_FIRST_OUTPUT_TIMEOUT_MS$1 = 36e4;
32251
32311
  /**
32252
32312
  * Transport safety net for response headers, strictly beyond the app deadline.
32253
32313
  * The watchdog must settle a slow first chunk as TIMEOUT before undici can turn
@@ -40130,7 +40190,7 @@ var KimiCodeAdapter = class extends LlmAdapter {
40130
40190
  ...options,
40131
40191
  reasoningEffort: ReasoningEffortId(String(effort))
40132
40192
  };
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);
40193
+ 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
40194
  }
40135
40195
  async *requestStream(options, signal, activity) {
40136
40196
  const fetchFn = this.options.fetchFn ?? fetch;
@@ -52616,6 +52676,14 @@ const CALLBACK_PATH = "/callback";
52616
52676
  * `host/common/idle-watchdog.ts` for the measured basis.
52617
52677
  */
52618
52678
  const STREAM_IDLE_TIMEOUT_MS$2 = 12e4;
52679
+ /**
52680
+ * Separate ceiling before the first streamed value arrives.
52681
+ *
52682
+ * A large prompt can spend much longer in prefill than a healthy stream may
52683
+ * remain silent between values. Once the first value arrives, the watchdog
52684
+ * returns to STREAM_IDLE_TIMEOUT_MS; this is not a whole-response deadline.
52685
+ */
52686
+ const STREAM_FIRST_OUTPUT_TIMEOUT_MS = 36e4;
52619
52687
  /** Failure code the adapter reports for that stall. */
52620
52688
  const STREAM_IDLE_TIMEOUT_CODE$2 = "LLM_STREAM_IDLE_TIMEOUT";
52621
52689
  /** Ceiling for a model-listing or usage fetch. */
@@ -58652,7 +58720,7 @@ var ClaudeAdapter = class ClaudeAdapter extends LlmAdapter {
58652
58720
  };
58653
58721
  }
58654
58722
  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);
58723
+ 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
58724
  }
58657
58725
  /**
58658
58726
  * Read one credential for this attempt.
@@ -58846,7 +58914,7 @@ var ClaudeAdapter = class ClaudeAdapter extends LlmAdapter {
58846
58914
  throw verdict.error;
58847
58915
  }
58848
58916
  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 });
58917
+ throw new LlmError$1("Claude stream failed: " + (error instanceof Error ? error.message : String(error)), "TRANSPORT", { cause: error });
58850
58918
  }
58851
58919
  } finally {
58852
58920
  reader.cancel().catch(() => void 0);
@@ -87788,6 +87856,7 @@ var MinimaxCodeCheckinService = class {
87788
87856
  const SUBAGENT_MODEL_SELECTION_NAMESPACE = "subagent-model-selection";
87789
87857
  /** Durable Session event carrying one Session's authorized child routes. */
87790
87858
  const SUBAGENT_POLICY_EVENT = "subagent/model-selection-policy";
87859
+ 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
87860
  /** Delegation tools whose child routes this guard authorizes. */
87792
87861
  const DEFAULT_DELEGATION_TOOLS = ["subagent"];
87793
87862
  /**
@@ -87941,22 +88010,14 @@ function subagentModelSelectionPreference(settings) {
87941
88010
  */
87942
88011
  const lockedRootMainRoutes = /* @__PURE__ */ new WeakMap();
87943
88012
  /**
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.
88013
+ * Configured route filter per root Session. Null keeps the Session policy as-is.
88014
+ * Cache the filter independently of the caller's policy so the root and each
88015
+ * descendant still have to match their own recorded routes.
87955
88016
  */
87956
- const lockedRootAllowedRoutes = /* @__PURE__ */ new WeakMap();
88017
+ const lockedRootRouteFilters = /* @__PURE__ */ new WeakMap();
87957
88018
  /**
87958
88019
  * Authorized `allowParentFork` posture per root Session, locked on first evaluation
87959
- * alongside {@link lockedRootAllowedRoutes} so one Session is governed by one policy.
88020
+ * alongside {@link lockedRootRouteFilters} so one Session is governed by one policy.
87960
88021
  */
87961
88022
  const lockedRootAllowParentFork = /* @__PURE__ */ new WeakMap();
87962
88023
  /**
@@ -88255,20 +88316,21 @@ function delegationModeOf(policies, toolName) {
88255
88316
  }
88256
88317
  /**
88257
88318
  * Resolve the effective allowlist that governs delegations from this agent:
88258
- * empty when the Host preference explicitly disables enforcement, otherwise
88319
+ * absent when the Host preference explicitly disables enforcement, otherwise
88259
88320
  * the Session's (or nearest subagent ancestor's) recorded policy, falling
88260
88321
  * back to the live preference only under `preference` scope.
88261
88322
  * @param agent - Calling agent.
88262
88323
  * @param preference - Current Host preference, when the settings service exists.
88263
88324
  * @param sessions - Session registry used for ancestor lookup.
88264
88325
  * @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.
88326
+ * @returns undefined without a policy, or the effective list (possibly empty).
88266
88327
  */
88267
88328
  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);
88329
+ if (preference?.enabled === false) return void 0;
88330
+ const recorded = authorizedRoutesFor(agent, sessions);
88331
+ const baseRoutes = recorded ?? (scope === "preference" ? preference?.allowedModels : void 0);
88332
+ if (baseRoutes === void 0 || baseRoutes.length === 0) return void 0;
88333
+ return mainModelRoutesFor(agent, sessions, preference, baseRoutes, lockSnapshot, recorded !== void 0);
88272
88334
  }
88273
88335
  /**
88274
88336
  * Apply the per-main-model override to a Session's authorized routes.
@@ -88280,20 +88342,23 @@ function effectiveAllowedRoutes(agent, preference, sessions, scope = "session",
88280
88342
  * @param agent - Calling agent.
88281
88343
  * @param sessions - Session registry used for ancestor lookup.
88282
88344
  * @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.
88345
+ * @param baseRoutes - Non-empty recorded allowlist or legacy preference fallback.
88346
+ * @param lockSnapshot - Freeze the root's configured route filter now.
88347
+ * @param hasRecordedPolicy - Whether the base is also enforced by the host.
88286
88348
  * @returns the routes that actually govern this delegation.
88287
88349
  */
88288
- function mainModelRoutesFor(agent, sessions, preference, baseRoutes, lockSnapshot = false) {
88350
+ function mainModelRoutesFor(agent, sessions, preference, baseRoutes, lockSnapshot, hasRecordedPolicy) {
88289
88351
  const { rootSession, mainRoute } = resolveRootSessionAndMainRoute(agent, sessions, void 0, lockSnapshot);
88290
88352
  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;
88353
+ let filter = lockable ? lockedRootRouteFilters.get(rootSession) : void 0;
88354
+ if (filter === void 0) {
88355
+ const override = mainRoute === void 0 ? void 0 : preference?.byMainModel?.[`${mainRoute.provider}/${mainRoute.model}`];
88356
+ const fallback = preference?.defaultAllowedModels;
88357
+ filter = override?.length ? override : fallback?.length ? fallback : null;
88358
+ if (lockable && (lockSnapshot || headerRouteOf(rootSession) !== void 0)) lockedRootRouteFilters.set(rootSession, filter === null ? null : [...filter]);
88359
+ }
88360
+ if (filter === null) return baseRoutes;
88361
+ return hasRecordedPolicy ? filter.filter((route) => routesInclude(baseRoutes, route.provider, route.model)) : filter;
88297
88362
  }
88298
88363
  /**
88299
88364
  * Resolve whether `subagent_fork` is authorized to inherit the root main model's
@@ -88334,14 +88399,15 @@ function effectiveAllowParentFork(agent, preference, sessions, lockSnapshot = fa
88334
88399
  * delegation policy. On 0.2.2 the latter still limits explicit selection to the
88335
88400
  * parent route, so calling this posture "unrestricted" would be false.
88336
88401
  * @param output - Original text returned by `list_subagent_models`.
88337
- * @param allowed - Routes the calling Session authorizes, empty when none is in force.
88402
+ * @param allowed - Routes the calling Session authorizes, or undefined without a policy.
88338
88403
  * @returns the output with the Session routing posture appended.
88339
88404
  */
88340
88405
  function enrichListSubagentModelsOutput(output, allowed) {
88341
- if (allowed.length === 0) {
88406
+ if (allowed === void 0) {
88342
88407
  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
88408
  return output.trim().length === 0 ? NO_ALLOWLIST_ROUTING_NOTICE : `${output}\n\n${NO_ALLOWLIST_ROUTING_NOTICE}`;
88344
88409
  }
88410
+ 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
88411
  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
88412
  if (output.includes(header)) return output;
88347
88413
  const filtered = filterListSubagentModelsOutput(output, allowed);
@@ -88499,12 +88565,13 @@ function inheritRouteNoticeSentence(explicitTools, inheritTools, target) {
88499
88565
  * @returns the updated assembly, or the original object when nothing changed.
88500
88566
  */
88501
88567
  function rewriteAuthorizedPromptAssembly(assembly, allowed, toolNames = DEFAULT_DELEGATION_TOOLS, inheritToolNames = DEFAULT_SUBAGENT_INHERIT_TOOLS) {
88502
- if (allowed.length === 0) return assembly;
88568
+ if (allowed === void 0) return assembly;
88569
+ const noCompatibleRoutes = allowed.length === 0;
88503
88570
  let sectionsChanged = false;
88504
88571
  const sections = Array.isArray(assembly.sections) ? assembly.sections.map((section) => {
88505
88572
  if (section?.name !== "tools:sdk" || typeof section.text !== "string") return section;
88506
88573
  const rewritten = rewriteAuthorizedToolDescriptions(section.text, allowed);
88507
- const notice = inheritRouteNoticeSentence(toolNames, inheritToolNames, "explicit");
88574
+ const notice = noCompatibleRoutes ? NO_COMPATIBLE_ROUTES_REASON : inheritRouteNoticeSentence(toolNames, inheritToolNames, "explicit");
88508
88575
  const text = notice.length > 0 && !rewritten.includes(notice) ? rewritten + "\n\n" + notice : rewritten;
88509
88576
  if (text === section.text) return section;
88510
88577
  sectionsChanged = true;
@@ -88521,7 +88588,9 @@ function rewriteAuthorizedPromptAssembly(assembly, allowed, toolNames = DEFAULT_
88521
88588
  const isInherit = inheritToolNames.includes(name);
88522
88589
  if (name !== "list_subagent_models" && !isExplicit && !isInherit) return tool;
88523
88590
  const rewrittenDescription = typeof tool.description === "string" ? rewriteAuthorizedToolDescriptions(tool.description, allowed) : tool.description;
88524
- const notice = isExplicit || isInherit ? inheritRouteNoticeSentence(toolNames, inheritToolNames, isExplicit ? "explicit" : "inherit") : "";
88591
+ let notice = "";
88592
+ if (noCompatibleRoutes) notice = isInherit ? "" : NO_COMPATIBLE_ROUTES_REASON;
88593
+ else if (isExplicit || isInherit) notice = inheritRouteNoticeSentence(toolNames, inheritToolNames, isExplicit ? "explicit" : "inherit");
88525
88594
  const description = typeof rewrittenDescription === "string" && notice.length > 0 && !rewrittenDescription.includes(notice) ? rewrittenDescription + " " + notice : rewrittenDescription;
88526
88595
  let params = tool.parameters;
88527
88596
  const paramsRecord = asRecord$2(params);
@@ -88585,15 +88654,16 @@ function delegationDenialReason(agent, toolName, args, preference, sessions, too
88585
88654
  }))], toolName);
88586
88655
  if (mode === void 0) return void 0;
88587
88656
  const allowed = effectiveAllowedRoutes(agent, preference, sessions, scope, lockSnapshot);
88588
- if (allowed.length === 0) return void 0;
88657
+ if (allowed === void 0) return void 0;
88589
88658
  const request = asRecord$2(args) ?? {};
88590
88659
  const requestedProvider = asString$7(request["provider"]);
88591
88660
  const requestedModel = asString$7(request["model"]);
88592
88661
  if (mode === "inherit") {
88593
88662
  if (requestedProvider !== void 0 || requestedModel !== void 0) return inheritOverrideReason(toolName, requestedProvider ?? "", requestedModel ?? "", toolNames);
88594
88663
  if (parentForkToolNames.includes(toolName) && effectiveAllowParentFork(agent, preference, sessions, lockSnapshot)) return;
88595
- return inheritedRouteDenial(agent, toolName, allowed);
88664
+ return allowed.length === 0 ? NO_COMPATIBLE_ROUTES_REASON : inheritedRouteDenial(agent, toolName, allowed);
88596
88665
  }
88666
+ if (allowed.length === 0) return NO_COMPATIBLE_ROUTES_REASON;
88597
88667
  if (declaresRouteParameters?.(agent, toolName) === false) {
88598
88668
  if (requestedProvider === void 0 && requestedModel === void 0) return inheritedRouteDenial(agent, toolName, allowed);
88599
88669
  if (requestedProvider === void 0 || requestedModel === void 0) return routeFieldsUnavailableReason(toolName, inheritedRouteOf(agent), allowed);
@@ -88613,7 +88683,7 @@ function delegationDenialReason(agent, toolName, args, preference, sessions, too
88613
88683
  * @returns a guard that denies delegations outside the Session allowlist.
88614
88684
  */
88615
88685
  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);
88686
+ return (agent, toolName, args) => delegationDenialReason(agent, toolName, args, readSubagentRoutingPreference(options), options.sessions, options.toolNames, options.scope ?? "session", options.inheritToolNames ?? [], options.declaresRouteParameters);
88617
88687
  }
88618
88688
  /**
88619
88689
  * Resolve the preference one guard evaluation uses.
@@ -88625,7 +88695,7 @@ function createSubagentAuthorization(options) {
88625
88695
  * @param options - Runtime inputs the guard closed over.
88626
88696
  * @returns the merged preference, or undefined when neither seam says anything.
88627
88697
  */
88628
- function mergedPreference(options) {
88698
+ function readSubagentRoutingPreference(options) {
88629
88699
  let overrides;
88630
88700
  try {
88631
88701
  overrides = options.routingOverrides?.();
@@ -88727,11 +88797,26 @@ function installSubagentModelAuthorization(ctx, sessions, config = {}) {
88727
88797
  declaresRouteParameters: routeParameterProbe(ctx),
88728
88798
  routingOverrides: config.routingOverrides
88729
88799
  });
88730
- const currentPreference = () => mergedPreference({
88800
+ const currentPreference = () => readSubagentRoutingPreference({
88731
88801
  settings,
88732
88802
  routingOverrides: config.routingOverrides
88733
88803
  });
88734
- const disposeGuard = ctx.tools.guard((exec) => authorize(exec.agent, exec.name, exec.arguments));
88804
+ const disposeGuard = ctx.tools.guard((exec) => {
88805
+ const agent = exec.agent;
88806
+ if (exec.name === "list_subagent_models") {
88807
+ const request = asRecord$2(exec.arguments);
88808
+ const provider = asString$7(request?.["provider"]);
88809
+ const model = asString$7(request?.["model"]);
88810
+ if (provider === void 0 || provider.length === 0 || model === "") return void 0;
88811
+ const allowed = effectiveAllowedRoutes(agent, currentPreference(), sessions, scope, true);
88812
+ if (allowed === void 0) return void 0;
88813
+ if (allowed.length === 0) return NO_COMPATIBLE_ROUTES_REASON;
88814
+ if (model !== void 0) return routesInclude(allowed, provider, model) ? void 0 : unauthorizedRouteReason(provider, model, allowed, true);
88815
+ 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) + ".";
88816
+ return;
88817
+ }
88818
+ return authorize(agent, exec.name, exec.arguments);
88819
+ });
88735
88820
  const eventHost = ctx;
88736
88821
  const disposePostExecute = eventHost.on?.("tools/post-execute", async (exec, result, next) => {
88737
88822
  const decision = await next();
@@ -93186,7 +93271,7 @@ function routeAllowed(allowed, route) {
93186
93271
  * @returns violations, ordered as the children were discovered.
93187
93272
  */
93188
93273
  function auditChildRoutes(parent, sessions, allowed, options) {
93189
- if (allowed === void 0 || allowed.length === 0) return [];
93274
+ if (allowed === void 0 || allowed.length === 0 && options?.enforceEmptyAllowlist !== true) return [];
93190
93275
  const violations = [];
93191
93276
  for (const finding of childRoutesOf(parent, sessions)) {
93192
93277
  const effective = effectiveRouteOf(finding, sessions);
@@ -110869,6 +110954,18 @@ function apply(ctx, pluginConfig = {}) {
110869
110954
  };
110870
110955
  }
110871
110956
  });
110957
+ const readSubagentRoutingOverrides = () => {
110958
+ const current = preferences.status();
110959
+ const defaultAllowedModels = current.subagentDefaultModels ?? [];
110960
+ const byMainModel = current.subagentModelsByMainModel ?? {};
110961
+ const allowParentForkByMainModel = current.subagentAllowParentForkByMainModel ?? {};
110962
+ return {
110963
+ ...defaultAllowedModels.length > 0 ? { defaultAllowedModels } : {},
110964
+ ...Object.keys(byMainModel).length > 0 ? { byMainModel } : {},
110965
+ ...current.subagentDefaultAllowParentFork === true ? { defaultAllowParentFork: true } : {},
110966
+ ...Object.keys(allowParentForkByMainModel).length > 0 ? { allowParentForkByMainModel } : {}
110967
+ };
110968
+ };
110872
110969
  const delegationToolNames = normalizeDelegationToolNames(pluginConfig.subagentModelTools);
110873
110970
  const delegationInheritNames = normalizeInheritToolNames(pluginConfig.subagentModelInheritTools);
110874
110971
  if (pluginConfig.subagentModelAuthorization !== false) ctx.inject(["sessions"], (scoped) => {
@@ -110880,19 +110977,7 @@ function apply(ctx, pluginConfig = {}) {
110880
110977
  toolNames: delegationToolNames,
110881
110978
  inheritToolNames: delegationInheritNames,
110882
110979
  scope: pluginConfig.subagentModelScope ?? "session",
110883
- routingOverrides: () => {
110884
- const current = preferences.status();
110885
- const defaultAllowedModels = current.subagentDefaultModels ?? [];
110886
- const byMainModel = current.subagentModelsByMainModel ?? {};
110887
- const defaultAllowParentFork = current.subagentDefaultAllowParentFork;
110888
- const allowParentForkByMainModel = current.subagentAllowParentForkByMainModel ?? {};
110889
- return {
110890
- ...defaultAllowedModels.length > 0 ? { defaultAllowedModels } : {},
110891
- ...Object.keys(byMainModel).length > 0 ? { byMainModel } : {},
110892
- ...defaultAllowParentFork === true ? { defaultAllowParentFork: true } : {},
110893
- ...Object.keys(allowParentForkByMainModel).length > 0 ? { allowParentForkByMainModel } : {}
110894
- };
110895
- }
110980
+ routingOverrides: readSubagentRoutingOverrides
110896
110981
  });
110897
110982
  }, "dsh-chatgpt-subscription: subagent model authorization");
110898
110983
  });
@@ -111395,21 +111480,23 @@ function apply(ctx, pluginConfig = {}) {
111395
111480
  const sessions = ctx.get("sessions");
111396
111481
  const target = sessions.get(sessionId);
111397
111482
  if (target === void 0) throw new Error(`Unknown session "${sessionId}".`);
111398
- const audited = auditedRoutesOf(target);
111399
- const current = preferences.status();
111400
- const mainRoute = resolveRootSessionAndMainRoute({ session: target }, sessions).mainRoute;
111401
- const override = mainRoute === void 0 ? void 0 : (current.subagentModelsByMainModel ?? {})[`${mainRoute.provider}/${mainRoute.model}`];
111402
- const fallback = current.subagentDefaultModels ?? [];
111403
- const allowed = audited === void 0 ? audited : override !== void 0 && override.length > 0 ? override : fallback.length > 0 ? fallback : audited;
111404
- const forkOverride = mainRoute === void 0 ? void 0 : (current.subagentAllowParentForkByMainModel ?? {})[`${mainRoute.provider}/${mainRoute.model}`];
111405
- const allowParentFork = typeof forkOverride === "boolean" ? forkOverride : current.subagentDefaultAllowParentFork === true;
111483
+ const agent = { session: target };
111484
+ const preference = readSubagentRoutingPreference({
111485
+ settings: ctx.settings,
111486
+ routingOverrides: readSubagentRoutingOverrides
111487
+ });
111488
+ const allowed = effectiveAllowedRoutes(agent, preference, sessions, pluginConfig.subagentModelScope);
111489
+ const allowParentFork = allowed !== void 0 && effectiveAllowParentFork(agent, preference, sessions);
111406
111490
  return Promise.resolve({
111407
111491
  sessionId,
111408
111492
  allowedModels: (allowed ?? []).map((route) => ({
111409
111493
  provider: route.provider,
111410
111494
  model: route.model
111411
111495
  })),
111412
- violations: auditChildRoutes(target, sessions, allowed, { allowParentFork }).map((violation) => ({
111496
+ violations: auditChildRoutes(target, sessions, allowed, {
111497
+ allowParentFork,
111498
+ enforceEmptyAllowlist: true
111499
+ }).map((violation) => ({
111413
111500
  childId: violation.finding.childId,
111414
111501
  parentId: violation.finding.parentId ?? null,
111415
111502
  provider: violation.finding.provider ?? null,
@@ -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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mC;IACnC,OAAO,CAAC,YAAY;IAMpB,OAAO,CAAC,WAAW;IAUnB,OAAO,CAAC,UAAU;IAgBlB,OAAO,CAAC,SAAS;IAajB,OAAO,CAAC,UAAU;IAkBlB,OAAO,CAAC,aAAa;IAUrB;;OAEG;IACH,OAAO,CAAC,WAAW;IAyBnB,OAAO,CAAC,eAAe;IAMvB,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;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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If,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,SAAS;IAOjB,OAAO,CAAC,sBAAsB;IAI9B,OAAO,CAAC,aAAa;IAIrB,OAAO,CAAC,qBAAqB;IAM7B,mCAAmC;IACnC,OAAO,CAAC,YAAY;IAMpB,OAAO,CAAC,WAAW;IAUnB,OAAO,CAAC,UAAU;IAgBlB,OAAO,CAAC,SAAS;IAajB,OAAO,CAAC,UAAU;IAkBlB,OAAO,CAAC,aAAa;IAUrB;;OAEG;IACH,OAAO,CAAC,WAAW;IAyBnB,OAAO,CAAC,eAAe;IAMvB,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.3";
79
+ export declare const PLUGIN_VERSION: "0.80.5";
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";
@@ -147,6 +147,15 @@ export declare class AntigravityAcpAdapter extends LlmAdapter {
147
147
  * is how a card ends up showing a fabricated cost.
148
148
  */
149
149
  private lastOccupancy;
150
+ /**
151
+ * Context window the server reported for each model through `usage_update`.
152
+ *
153
+ * The handshake's model list carries no capacity, so this is the only live
154
+ * window the line ever learns. It is per model and lasts for the process: the
155
+ * shipped table covers the models nobody has run yet, this overrides it once
156
+ * the agent has told us how full the window really was.
157
+ */
158
+ private readonly observedContextWindows;
150
159
  constructor(options: AntigravityAcpAdapterOptions);
151
160
  providerInfo(provider: string): LlmProviderInfo;
152
161
  providerRetryPolicy(): ResolvedRetryPolicy;
@@ -1 +1 @@
1
- {"version":3,"file":"adapter.d.ts","sourceRoot":"","sources":["../../../../src/host/antigravity-acp/adapter.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAEH,OAAO,EACL,UAAU,EAGV,KAAK,eAAe,IAAI,sBAAsB,EAC9C,KAAK,YAAY,EACjB,KAAK,eAAe,EACpB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,WAAW,EAEjB,MAAM,sBAAsB,CAAA;AAU7B,OAAO,EAIL,KAAK,qBAAqB,EAE3B,MAAM,6BAA6B,CAAA;AACpC,OAAO,KAAK,EACV,sBAAsB,EAEtB,sBAAsB,EACvB,MAAM,2CAA2C,CAAA;AAClD,OAAO,EAAE,SAAS,EAAY,KAAK,iBAAiB,EAAE,MAAM,iBAAiB,CAAA;AAiB7E,OAAO,KAAK,EAA0B,2BAA2B,EAAE,MAAM,eAAe,CAAA;AACxF,OAAO,EAGL,WAAW,EAMZ,MAAM,YAAY,CAAA;AAcnB;;;;;;;GAOG;AACH,eAAO,MAAM,2BAA2B,SAAU,CAAA;AAElD,kFAAkF;AAClF,eAAO,MAAM,0BAA0B,SAAyB,CAAA;AAEhE,+DAA+D;AAC/D,eAAO,MAAM,0BAA0B,IAAI,CAAA;AAE3C,8CAA8C;AAC9C,eAAO,MAAM,+BAA+B,SAAU,CAAA;AAEtD,qGAAqG;AACrG,eAAO,MA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