@tangle-network/sdk-provider-cli-base 0.13.212 → 0.13.214

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.
@@ -1,4 +1,4 @@
1
- import { At as CliProviderAdapterBase, Jt as CliProviderConfig, Kt as CliExecArgs, Qt as ExecutionState } from "../../index-LwzOWUtG.mjs";
1
+ import { $t as ExecutionState, Yt as CliProviderConfig, jt as CliProviderAdapterBase, qt as CliExecArgs } from "../../index-BxJqsFAl.mjs";
2
2
  import { StreamParserConfig } from "@tangle-network/sdk-cli-runner";
3
3
  import { McpConfig, ProviderConfig, StreamEvent } from "@tangle-network/agent-interface";
4
4
 
@@ -1,4 +1,4 @@
1
- import { A as recordCliTokenUsage, Bt as sessionObservedEvents, Gt as toolStartEvents, Ht as textDeltaEvents, R as localMcpArgv, Wt as toolResultEvents, j as CliProviderAdapterBase, w as jsonEventParser, z as localMcpEnv, zt as reasoningEvents } from "../../src-OUp4Ymnt.mjs";
1
+ import { B as localMcpEnv, Bt as reasoningEvents, Gt as toolResultEvents, Kt as toolStartEvents, M as CliProviderAdapterBase, T as jsonEventParser, Ut as textDeltaEvents, Vt as sessionObservedEvents, j as recordCliTokenUsage, z as localMcpArgv } from "../../src-CwCs2A6A.mjs";
2
2
  //#region src/adapters/amp/types.ts
3
3
  /**
4
4
  * Type guard for AMP events.
@@ -1,4 +1,4 @@
1
- import { At as CliProviderAdapterBase, Jt as CliProviderConfig, Kt as CliExecArgs, On as CliTurnProcess, Qt as ExecutionState, kn as CliTurnSpawn } from "../../index-LwzOWUtG.mjs";
1
+ import { $t as ExecutionState, An as CliTurnSpawn, Yt as CliProviderConfig, jt as CliProviderAdapterBase, kn as CliTurnProcess, qt as CliExecArgs } from "../../index-BxJqsFAl.mjs";
2
2
  import { StreamParserConfig } from "@tangle-network/sdk-cli-runner";
3
3
  import { StreamEvent } from "@tangle-network/agent-interface";
4
4
 
@@ -1,4 +1,4 @@
1
- import { A as recordCliTokenUsage, Bt as sessionObservedEvents, Gt as toolStartEvents, T as plaintextResponseParser, Wt as toolResultEvents, j as CliProviderAdapterBase } from "../../src-OUp4Ymnt.mjs";
1
+ import { E as plaintextResponseParser, Gt as toolResultEvents, Kt as toolStartEvents, M as CliProviderAdapterBase, Vt as sessionObservedEvents, j as recordCliTokenUsage } from "../../src-CwCs2A6A.mjs";
2
2
  import { normalizeOpenAiCompatibleBaseUrl, resolveTangleRouterDefaults } from "@tangle-network/agent-interface";
3
3
  import { join } from "node:path";
4
4
  import { statSync } from "node:fs";
@@ -1,4 +1,4 @@
1
- import { At as CliProviderAdapterBase, Jt as CliProviderConfig, Kt as CliExecArgs, Qt as ExecutionState } from "../../index-LwzOWUtG.mjs";
1
+ import { $t as ExecutionState, Yt as CliProviderConfig, jt as CliProviderAdapterBase, qt as CliExecArgs } from "../../index-BxJqsFAl.mjs";
2
2
  import { StreamParserConfig } from "@tangle-network/sdk-cli-runner";
3
3
  import { AgentExecutionInput, AgentExecutionResult, BackendCapabilities, InteractionResponse, McpConfig, ProviderConfig, SdkHostServices, StreamEvent } from "@tangle-network/agent-interface";
4
4
 
@@ -1,4 +1,4 @@
1
- import { A as recordCliTokenUsage, B as enabledInteractionKinds, Bt as sessionObservedEvents, Gt as toolStartEvents, Ht as textDeltaEvents, K as withTurnInteractions, L as isLocalMcpConfig, R as localMcpArgv, Vt as streamPartBase, Wt as toolResultEvents, j as CliProviderAdapterBase, v as McpInteractionSupport, w as jsonEventParser, z as localMcpEnv, zt as reasoningEvents } from "../../src-OUp4Ymnt.mjs";
1
+ import { B as localMcpEnv, Bt as reasoningEvents, Gt as toolResultEvents, Ht as streamPartBase, Kt as toolStartEvents, M as CliProviderAdapterBase, R as isLocalMcpConfig, T as jsonEventParser, Ut as textDeltaEvents, V as enabledInteractionKinds, Vt as sessionObservedEvents, j as recordCliTokenUsage, q as withTurnInteractions, y as McpInteractionSupport, z as localMcpArgv } from "../../src-CwCs2A6A.mjs";
2
2
  import { createHash, randomUUID } from "node:crypto";
3
3
  import { InteractionKind } from "@tangle-network/agent-interface";
4
4
  import { mkdir, readFile, writeFile } from "node:fs/promises";
@@ -1,4 +1,4 @@
1
- import { At as CliProviderAdapterBase, Jt as CliProviderConfig, Kt as CliExecArgs, Qt as ExecutionState } from "../../index-LwzOWUtG.mjs";
1
+ import { $t as ExecutionState, Yt as CliProviderConfig, jt as CliProviderAdapterBase, qt as CliExecArgs } from "../../index-BxJqsFAl.mjs";
2
2
  import { StreamParserConfig } from "@tangle-network/sdk-cli-runner";
3
3
  import { StreamEvent } from "@tangle-network/agent-interface";
4
4
 
@@ -1,4 +1,4 @@
1
- import { A as recordCliTokenUsage, Bt as sessionObservedEvents, Gt as toolStartEvents, Ht as textDeltaEvents, Wt as toolResultEvents, j as CliProviderAdapterBase, w as jsonEventParser, yt as prependPromptSection, zt as reasoningEvents } from "../../src-OUp4Ymnt.mjs";
1
+ import { Bt as reasoningEvents, Gt as toolResultEvents, Kt as toolStartEvents, M as CliProviderAdapterBase, T as jsonEventParser, Ut as textDeltaEvents, Vt as sessionObservedEvents, bt as prependPromptSection, j as recordCliTokenUsage } from "../../src-CwCs2A6A.mjs";
2
2
  import { isRecord } from "@tangle-network/agent-core";
3
3
  //#region src/adapters/grok/adapter.ts
4
4
  const DECLARE_MODEL = String.raw`d=$HOME/.grok; [ -z "$GROK_HOME" ] || d=$GROK_HOME
@@ -1,4 +1,4 @@
1
- import { At as CliProviderAdapterBase, Jt as CliProviderConfig, Kt as CliExecArgs, Qt as ExecutionState, n as HarnessId } from "../../index-LwzOWUtG.mjs";
1
+ import { $t as ExecutionState, Yt as CliProviderConfig, jt as CliProviderAdapterBase, n as HarnessId, qt as CliExecArgs } from "../../index-BxJqsFAl.mjs";
2
2
  import { i as PreparedAttachment } from "../../prompt-input-CD7okX8T.mjs";
3
3
  import { StreamParserConfig } from "@tangle-network/sdk-cli-runner";
4
4
  import { InputPart, McpConfig, StreamEvent } from "@tangle-network/agent-interface";
@@ -1,4 +1,4 @@
1
- import { A as recordCliTokenUsage, Bt as sessionObservedEvents, Gt as toolStartEvents, Ht as textDeltaEvents, L as isLocalMcpConfig, R as localMcpArgv, Rt as finalTextEvent, T as plaintextResponseParser, Ut as textSnapshotEvents, Wt as toolResultEvents, _t as partitionImageAttachments, j as CliProviderAdapterBase, yt as prependPromptSection, z as localMcpEnv } from "../../src-OUp4Ymnt.mjs";
1
+ import { B as localMcpEnv, E as plaintextResponseParser, Gt as toolResultEvents, Kt as toolStartEvents, M as CliProviderAdapterBase, R as isLocalMcpConfig, Ut as textDeltaEvents, Vt as sessionObservedEvents, Wt as textSnapshotEvents, bt as prependPromptSection, j as recordCliTokenUsage, vt as partitionImageAttachments, z as localMcpArgv, zt as finalTextEvent } from "../../src-CwCs2A6A.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import { resolveTangleRouterDefaults } from "@tangle-network/agent-interface";
4
4
  import { writeFile } from "node:fs/promises";
@@ -1,4 +1,4 @@
1
- import { At as CliProviderAdapterBase, Jt as CliProviderConfig, Kt as CliExecArgs, Qt as ExecutionState, n as HarnessId } from "../../index-LwzOWUtG.mjs";
1
+ import { $t as ExecutionState, Yt as CliProviderConfig, jt as CliProviderAdapterBase, n as HarnessId, qt as CliExecArgs } from "../../index-BxJqsFAl.mjs";
2
2
  import { StreamParserConfig } from "@tangle-network/sdk-cli-runner";
3
3
  import { StreamEvent } from "@tangle-network/agent-interface";
4
4
 
@@ -1,4 +1,4 @@
1
- import { A as recordCliTokenUsage, Bt as sessionObservedEvents, O as parseCliUsageLine, T as plaintextResponseParser, j as CliProviderAdapterBase, yt as prependPromptSection } from "../../src-OUp4Ymnt.mjs";
1
+ import { E as plaintextResponseParser, M as CliProviderAdapterBase, Vt as sessionObservedEvents, bt as prependPromptSection, j as recordCliTokenUsage, k as parseCliUsageLine } from "../../src-CwCs2A6A.mjs";
2
2
  import { normalizeOpenAiCompatibleBaseUrl, resolveTangleRouterDefaults } from "@tangle-network/agent-interface";
3
3
  import { join } from "node:path";
4
4
  //#region src/adapters/nanoclaw/adapter.ts
@@ -1,4 +1,4 @@
1
- import { At as CliProviderAdapterBase, Jt as CliProviderConfig, Kt as CliExecArgs, On as CliTurnProcess, Qt as ExecutionState, kn as CliTurnSpawn } from "../../index-LwzOWUtG.mjs";
1
+ import { $t as ExecutionState, An as CliTurnSpawn, Yt as CliProviderConfig, jt as CliProviderAdapterBase, kn as CliTurnProcess, qt as CliExecArgs } from "../../index-BxJqsFAl.mjs";
2
2
  import { i as PreparedAttachment } from "../../prompt-input-CD7okX8T.mjs";
3
3
  import { StreamParserConfig } from "@tangle-network/sdk-cli-runner";
4
4
  import { InputPart, StreamEvent } from "@tangle-network/agent-interface";
@@ -1,4 +1,4 @@
1
- import { A as recordCliTokenUsage, Bt as sessionObservedEvents, Gt as toolStartEvents, Ht as textDeltaEvents, Wt as toolResultEvents, j as CliProviderAdapterBase, yt as prependPromptSection } from "../../src-OUp4Ymnt.mjs";
1
+ import { Gt as toolResultEvents, Kt as toolStartEvents, M as CliProviderAdapterBase, Ut as textDeltaEvents, Vt as sessionObservedEvents, bt as prependPromptSection, j as recordCliTokenUsage } from "../../src-CwCs2A6A.mjs";
2
2
  import { qualifyModelId } from "@tangle-network/agent-profile-materialize";
3
3
  import { normalizeOpenAiCompatibleBaseUrl, resolveTangleRouterDefaults } from "@tangle-network/agent-interface";
4
4
  import { join, relative } from "node:path";
@@ -1,4 +1,4 @@
1
- import { At as CliProviderAdapterBase, Jt as CliProviderConfig, Kt as CliExecArgs, On as CliTurnProcess, Qt as ExecutionState, c as WorkspacePlanApplication, kn as CliTurnSpawn, n as HarnessId, qt as CliExecutionInput } from "../../index-LwzOWUtG.mjs";
1
+ import { $t as ExecutionState, An as CliTurnSpawn, Jt as CliExecutionInput, Yt as CliProviderConfig, c as WorkspacePlanApplication, jt as CliProviderAdapterBase, kn as CliTurnProcess, n as HarnessId, qt as CliExecArgs } from "../../index-BxJqsFAl.mjs";
2
2
  import { StreamParserConfig } from "@tangle-network/sdk-cli-runner";
3
3
  import { CliAuthFile, ProviderConfig, StreamEvent } from "@tangle-network/agent-interface";
4
4
 
@@ -52,7 +52,8 @@ declare class OpenclawProviderAdapter extends CliProviderAdapterBase<OpenclawCon
52
52
  * Reads the limits of each model that has none yet from the Router's
53
53
  * catalog, with the key the turn's model calls carry. This runs before a
54
54
  * turn, so it must not hold or fail one: resolveRouterModelLimits bounds the
55
- * request, answers from the catalog the process already read, and does not
55
+ * request, answers from the catalog the process already read, asks again for
56
+ * a model that catalog does not name no sooner than its spacing, and does not
56
57
  * repeat a failed read inside its stop.
57
58
  *
58
59
  * A model whose limits could not be read is declared without them, so until
@@ -1,4 +1,4 @@
1
- import { A as recordCliTokenUsage, Bt as sessionObservedEvents, Gt as toolStartEvents, Ht as textDeltaEvents, Rt as finalTextEvent, Ut as textSnapshotEvents, Wt as toolResultEvents, _ as nativeEffortArgs, j as CliProviderAdapterBase, m as resolveRouterModelLimits, yt as prependPromptSection } from "../../src-OUp4Ymnt.mjs";
1
+ import { Gt as toolResultEvents, Kt as toolStartEvents, M as CliProviderAdapterBase, Ut as textDeltaEvents, Vt as sessionObservedEvents, Wt as textSnapshotEvents, bt as prependPromptSection, h as resolveRouterModelLimits, j as recordCliTokenUsage, v as nativeEffortArgs, zt as finalTextEvent } from "../../src-CwCs2A6A.mjs";
2
2
  import { randomUUID } from "node:crypto";
3
3
  import { resolveTangleRouterDefaults } from "@tangle-network/agent-interface";
4
4
  import { StringDecoder } from "node:string_decoder";
@@ -165,7 +165,8 @@ var OpenclawProviderAdapter = class extends CliProviderAdapterBase {
165
165
  * Reads the limits of each model that has none yet from the Router's
166
166
  * catalog, with the key the turn's model calls carry. This runs before a
167
167
  * turn, so it must not hold or fail one: resolveRouterModelLimits bounds the
168
- * request, answers from the catalog the process already read, and does not
168
+ * request, answers from the catalog the process already read, asks again for
169
+ * a model that catalog does not name no sooner than its spacing, and does not
169
170
  * repeat a failed read inside its stop.
170
171
  *
171
172
  * A model whose limits could not be read is declared without them, so until
@@ -1,4 +1,4 @@
1
- import { It as AcpBridgeConfig, Lt as AcpContentBlock, Mn as AcpProcessSpec, Ut as AcpTurn, jn as AcpBridgeSpawn, kt as AcpProviderAdapterBase } from "../../index-LwzOWUtG.mjs";
1
+ import { At as AcpProviderAdapterBase, Lt as AcpBridgeConfig, Mn as AcpBridgeSpawn, Nn as AcpProcessSpec, Rt as AcpContentBlock, Wt as AcpTurn } from "../../index-BxJqsFAl.mjs";
2
2
  import { i as PreparedAttachment } from "../../prompt-input-CD7okX8T.mjs";
3
3
  import { PRIME_AGENT_DIR_ENV_VAR, PRIME_AGENT_DIR_ENV_VARS, PRIME_HARNESS_STATE_ENV_DENYLIST, PRIME_KERNEL_DEAD_MARKERS, PRIME_KERNEL_ENV_PASSTHROUGH, PRIME_MCP_UNSUPPORTED_REASON, PrimeHarnessStateError, PrimeMaterializeOptions, PrimeProfileControls, PrimeProfileControls as PrimeProfileControls$1, PrimeProfileError, PrimeProfileSkill, PrimeProfileSubagent, assertPrimeModelAgreement, hasPrimeProfileMaterial, matchPrimeKernelDeadMarker, materializePrimeProfileControls, primeAgentDirEnv, primeProfileNeedsAgentDir, primeSubagentEntryId as subagentEntryId, primeThinkingLevel, prunePrimeProfileMaterial, readPrimeProfileControls } from "@tangle-network/agent-profile-materialize";
4
4
  import { RpcBridge } from "@tangle-network/sdk-cli-runner";
@@ -1,4 +1,4 @@
1
- import { E as AcpProviderAdapterBase, Zt as spawnAcpBridge, k as readCliTokenUsage, yt as prependPromptSection } from "../../src-OUp4Ymnt.mjs";
1
+ import { A as readCliTokenUsage, D as AcpProviderAdapterBase, Qt as spawnAcpBridge, bt as prependPromptSection } from "../../src-CwCs2A6A.mjs";
2
2
  import { PRIME_AGENT_DIR_ENV_VAR, PRIME_AGENT_DIR_ENV_VAR as PRIME_AGENT_DIR_ENV_VAR$1, PRIME_AGENT_DIR_ENV_VARS, PRIME_HARNESS_STATE_ENV_DENYLIST, PRIME_HARNESS_STATE_ENV_DENYLIST as PRIME_HARNESS_STATE_ENV_DENYLIST$1, PRIME_KERNEL_DEAD_MARKERS, PRIME_KERNEL_ENV_PASSTHROUGH, PRIME_KERNEL_ENV_PASSTHROUGH as PRIME_KERNEL_ENV_PASSTHROUGH$1, PRIME_MCP_UNSUPPORTED_REASON, PrimeHarnessStateError, PrimeProfileError, assertPrimeModelAgreement, assertPrimeModelAgreement as assertPrimeModelAgreement$1, buildPiModelsConfig, hasPrimeProfileMaterial, matchPrimeKernelDeadMarker, materializePrimeProfileControls, materializePrimeProfileControls as materializePrimeProfileControls$1, primeAgentDirEnv, primeAgentDirEnv as primeAgentDirEnv$1, primeHarnessStatePath, primeProfileNeedsAgentDir, primeSubagentEntryId as subagentEntryId, primeThinkingLevel, primeThinkingLevel as primeThinkingLevel$1, prunePrimeProfileMaterial, readPrimeProfileControls, readPrimeProfileControls as readPrimeProfileControls$1, writePrimeAgentFile } from "@tangle-network/agent-profile-materialize";
3
3
  import { isAbsolute, join, relative, sep } from "node:path";
4
4
  import { existsSync, lchownSync, lstatSync, mkdirSync } from "node:fs";
@@ -1288,16 +1288,23 @@ type CatalogEntry = Partial<Record<(typeof CATALOG_FIELDS)[number], unknown>>;
1288
1288
  */
1289
1289
  declare function findRouterCatalogEntry(entries: readonly unknown[], model: string): CatalogEntry | undefined;
1290
1290
  /**
1291
- * How long a process answers from the list it read. It is also the floor: no response header
1292
- * shortens it and none lengthens it, because `cache-control` and `expires` are not read. The
1293
- * production Router marks this list, about 63 KB gzipped, `no-store`, and a helper that obeys
1294
- * the mark asks for the whole list on every call from every box; on 2026-11-24 a benchmark
1295
- * starting many boxes made the Router's replicas miss health checks. One lifetime covers a box
1296
- * start and the turns after it with one request, and it bounds how long a running box keeps a
1297
- * limit the Router has since corrected. After it the list is asked for again, with the
1298
- * validator the gateway gave, so an unchanged list costs a 304 and no body.
1291
+ * How long the list a process read answers for the models it names. It is also the floor: no
1292
+ * response header shortens it and none lengthens it, because `cache-control` and `expires` are
1293
+ * not read. The production Router marks this list, about 63 KB gzipped, `no-store`, and a
1294
+ * helper that obeys the mark asks for the whole list on every call from every box; on
1295
+ * 2026-11-24 a benchmark starting many boxes made the Router's replicas miss health checks.
1296
+ * One lifetime covers a box start and the turns after it with one request, and it bounds how
1297
+ * long a running box keeps a limit the Router has since corrected. After it the list is asked
1298
+ * for again, with the validator the gateway gave, so an unchanged list costs a 304 and no body.
1299
1299
  */
1300
1300
  declare const ROUTER_MODEL_CATALOG_LIFETIME_MS: number;
1301
+ /**
1302
+ * A lookup for a model the kept list does not name asks for the list again, because the Router
1303
+ * may have added the model since the read, but no sooner than this after that catalog's last
1304
+ * request. A box that keeps looking up a model no list names therefore costs the gateway at
1305
+ * most one request per spacing, and a conditional one once the gateway sends a validator.
1306
+ */
1307
+ declare const ROUTER_MODEL_CATALOG_MISS_REREAD_MS = 60000;
1301
1308
  /** A failed read is not repeated for this long, so no turn waits on a failing catalog twice. */
1302
1309
  declare const ROUTER_MODEL_CATALOG_FAILURE_STOP_MS = 60000;
1303
1310
  /** The model's listed `reasoning_effort_values`, trimmed and lowercased, or why the catalog was unreadable. */
@@ -1382,7 +1389,17 @@ declare function textSnapshotEvents(state: ExecutionState, text: string): Stream
1382
1389
  declare function reasoningEvents(state: ExecutionState, thinking: string, options: {
1383
1390
  signalPhase: boolean;
1384
1391
  }): StreamEvent[];
1385
- /** Registers a running tool call and emits its running part. */
1392
+ /**
1393
+ * Registers a running tool call and emits its running part.
1394
+ *
1395
+ * Where a call is read from is each adapter's: the CLI's own event stream, a
1396
+ * log the CLI writes, or a line a plugin prints under a value drawn for the
1397
+ * turn. Each keeps text that passes through the CLI, a reply or a tool's
1398
+ * output, from producing a tool event. None is a boundary against code the
1399
+ * model runs: a process of the same user can write to the CLI's stdout or its
1400
+ * files and read another process's environment, so a tool event says what
1401
+ * the harness reported and nothing about what such a process could forge.
1402
+ */
1386
1403
  declare function toolStartEvents(state: ExecutionState, call: {
1387
1404
  id: string;
1388
1405
  name: string;
@@ -1473,5 +1490,5 @@ declare function homeXdgEnv(home: string): {
1473
1490
  XDG_STATE_HOME: string;
1474
1491
  };
1475
1492
  //#endregion
1476
- export { localMcpEnv as $, InteractionToggleConfig as $t, refuseSecretLaunch as A, PreparedCliLaunch as An, CliProviderAdapterBase as At, resolveRouterModelReasoningEfforts as B, AcpNewSessionResult as Bt, forgetSessionScopes as C, servableMcpServer as Cn, InvalidAttachmentError as Ct, assertSealedNativeHome as D, untilSettledOrAborted as Dn, wasNeverLaunched as Dt, SEALED_NATIVE_HOME_LAYOUT as E, spawnUnderSecretMcpLease as En, rejectNotLaunched as Et, ResolveRouterModelLimitsInput as F, ACP_PROTOCOL_VERSION as Ft, kimiThinkingArgs as G, assertAcpTurnFinished as Gt, RepeatedToolFailureGuardOptions as H, AcpSessionUpdateParams as Ht, RouterModelLimits as I, AcpBridgeConfig as It, parseCliUsageLine as J, CliProviderConfig as Jt, nativeEffortArgs as K, CliExecArgs as Kt, RouterModelLimitsResult as L, AcpContentBlock as Lt, ROUTER_MODEL_CATALOG_FAILURE_STOP_MS as M, AcpProcessSpec as Mn, createExecutionState as Mt, ROUTER_MODEL_CATALOG_LIFETIME_MS as N, spawnAcpBridge as Nn, TurnObserver as Nt, isTrustedStoreBinary as O, CliTurnProcess as On, mapAcpSessionUpdate as Ot, ROUTER_MODEL_CATALOG_TIMEOUT_MS as P, ACP_MIN_PROTOCOL_VERSION as Pt, localMcpArgv as Q, ExecutionState as Qt, findRouterCatalogEntry as R, AcpInitializeParams as Rt, toolStartEvents as S, secretSessionTurnQueue as Sn, plaintextResponseParser as St, NATIVE_SESSION_CONTRACTS$1 as T, sharedSecretMcpRefused as Tn, failureAfterCleanup as Tt, createRepeatedToolFailureGuard as U, AcpTurn as Ut, RepeatedToolFailure as V, AcpPromptResult as Vt, trackReasoningBlock as W, acpContentText as Wt, recordCliTokenUsage as X, CliProviderOptions as Xt, readCliTokenUsage as Y, CliProviderLogger as Yt, isLocalMcpConfig as Z, EphemeralContextInput as Zt, sessionObservedEvents as _, isLoopbackEndpoint as _n, EXECUTION_TRACE_HEADER as _t, PERMISSION_DECISION_TIMEOUT_MS as a, interactionToggleEnabled as an, PermissionPromptBridge as at, textSnapshotEvents as b, requireRecord as bn, PlaintextResponse as bt, WorkspacePlanApplication$1 as c, turnInteractionEnabled as cn, brokerInteractionTools$1 as ct, endFailedTurn as d, SHARED_WORKSPACE_DIR_ENV as dn, deriveFilePart as dt, InteractionToggleKind as en, McpInteractionSupport as et, recordTurnInterruption as f, SecretProfileMcpCredentialProxy as fn, deterministicFilePartId as ft, reasoningEvents as g, directStdioMcpServers as gn, EXECUTION_ID_HEADER as gt, finalTextEvent as h, assertSealedNativeSearchPath as hn, EXECUTION_CORRELATION_HEADERS as ht, InteractionHttpBridge as i, enabledInteractionKinds as in, InteractionMcpServerConfig$1 as it, resolveExecutableRealpath as j, AcpBridgeSpawn as jn, runtimeSecretsOverlay as jt, provenStoreBinary as k, CliTurnSpawn as kn, AcpProviderAdapterBase as kt, codexDeveloperInstructionArgs as l, withEphemeralContext as ln, interactionMcpToolName as lt, TerminalPlanSupportOptions as m, SecretProfileMcpServer as mn, trackFilePart as mt, HarnessId$1 as n, ToolCallState as nn, DEFAULT_INTERACTION_MCP_SERVER_NAME as nt, SECRET_REFERENCE$1 as o, readEphemeralContext as on, RequestPermissionBridge as ot, TerminalPlanSupport as p, SecretProfileMcpLease as pn, inferMediaType as pt, accumulateCliTokenUsage as q, CliExecutionInput as qt, InteractionBroker$1 as r, TurnEndReason as rn, InteractionMcpServer$1 as rt, SECRET_REFERENCE_PREFIX$1 as s, turnEndReason as sn, RequestPlanBridge as st, CODEX_DISABLED_FEATURE_ARGS as t, PerTurnInteractionInput as tn, AskUserBridge as tt, homeXdgEnv as u, withTurnInteractions as un, buildFileUrl as ut, streamPartBase as v, isPlainRecord as vn, MANAGED_QUOTE_VERSION_HEADER as vt, secretMcpScope as w, servableStdioServer as wn, SessionRehydrationError as wt, toolResultEvents as x, resolveReferences as xn, jsonEventParser as xt, textDeltaEvents as y, joinQueue as yn, executionCorrelationHeaders as yt, resolveRouterModelLimits as z, AcpInitializeResult as zt };
1477
- //# sourceMappingURL=index-LwzOWUtG.d.mts.map
1493
+ export { localMcpArgv as $, ExecutionState as $t, refuseSecretLaunch as A, CliTurnSpawn as An, AcpProviderAdapterBase as At, resolveRouterModelLimits as B, AcpInitializeResult as Bt, forgetSessionScopes as C, secretSessionTurnQueue as Cn, plaintextResponseParser as Ct, assertSealedNativeHome as D, spawnUnderSecretMcpLease as Dn, rejectNotLaunched as Dt, SEALED_NATIVE_HOME_LAYOUT as E, sharedSecretMcpRefused as En, failureAfterCleanup as Et, ROUTER_MODEL_CATALOG_TIMEOUT_MS as F, ACP_MIN_PROTOCOL_VERSION as Ft, trackReasoningBlock as G, acpContentText as Gt, RepeatedToolFailure as H, AcpPromptResult as Ht, ResolveRouterModelLimitsInput as I, ACP_PROTOCOL_VERSION as It, accumulateCliTokenUsage as J, CliExecutionInput as Jt, kimiThinkingArgs as K, assertAcpTurnFinished as Kt, RouterModelLimits as L, AcpBridgeConfig as Lt, ROUTER_MODEL_CATALOG_FAILURE_STOP_MS as M, AcpBridgeSpawn as Mn, runtimeSecretsOverlay as Mt, ROUTER_MODEL_CATALOG_LIFETIME_MS as N, AcpProcessSpec as Nn, createExecutionState as Nt, isTrustedStoreBinary as O, untilSettledOrAborted as On, wasNeverLaunched as Ot, ROUTER_MODEL_CATALOG_MISS_REREAD_MS as P, spawnAcpBridge as Pn, TurnObserver as Pt, isLocalMcpConfig as Q, EphemeralContextInput as Qt, RouterModelLimitsResult as R, AcpContentBlock as Rt, toolStartEvents as S, resolveReferences as Sn, jsonEventParser as St, NATIVE_SESSION_CONTRACTS$1 as T, servableStdioServer as Tn, SessionRehydrationError as Tt, RepeatedToolFailureGuardOptions as U, AcpSessionUpdateParams as Ut, resolveRouterModelReasoningEfforts as V, AcpNewSessionResult as Vt, createRepeatedToolFailureGuard as W, AcpTurn as Wt, readCliTokenUsage as X, CliProviderLogger as Xt, parseCliUsageLine as Y, CliProviderConfig as Yt, recordCliTokenUsage as Z, CliProviderOptions as Zt, sessionObservedEvents as _, directStdioMcpServers as _n, EXECUTION_ID_HEADER as _t, PERMISSION_DECISION_TIMEOUT_MS as a, enabledInteractionKinds as an, InteractionMcpServerConfig$1 as at, textSnapshotEvents as b, joinQueue as bn, executionCorrelationHeaders as bt, WorkspacePlanApplication$1 as c, turnEndReason as cn, RequestPlanBridge as ct, endFailedTurn as d, withTurnInteractions as dn, buildFileUrl as dt, InteractionToggleConfig as en, localMcpEnv as et, recordTurnInterruption as f, SHARED_WORKSPACE_DIR_ENV as fn, deriveFilePart as ft, reasoningEvents as g, assertSealedNativeSearchPath as gn, EXECUTION_CORRELATION_HEADERS as gt, finalTextEvent as h, SecretProfileMcpServer as hn, trackFilePart as ht, InteractionHttpBridge as i, TurnEndReason as in, InteractionMcpServer$1 as it, resolveExecutableRealpath as j, PreparedCliLaunch as jn, CliProviderAdapterBase as jt, provenStoreBinary as k, CliTurnProcess as kn, mapAcpSessionUpdate as kt, codexDeveloperInstructionArgs as l, turnInteractionEnabled as ln, brokerInteractionTools$1 as lt, TerminalPlanSupportOptions as m, SecretProfileMcpLease as mn, inferMediaType as mt, HarnessId$1 as n, PerTurnInteractionInput as nn, AskUserBridge as nt, SECRET_REFERENCE$1 as o, interactionToggleEnabled as on, PermissionPromptBridge as ot, TerminalPlanSupport as p, SecretProfileMcpCredentialProxy as pn, deterministicFilePartId as pt, nativeEffortArgs as q, CliExecArgs as qt, InteractionBroker$1 as r, ToolCallState as rn, DEFAULT_INTERACTION_MCP_SERVER_NAME as rt, SECRET_REFERENCE_PREFIX$1 as s, readEphemeralContext as sn, RequestPermissionBridge as st, CODEX_DISABLED_FEATURE_ARGS as t, InteractionToggleKind as tn, McpInteractionSupport as tt, homeXdgEnv as u, withEphemeralContext as un, interactionMcpToolName as ut, streamPartBase as v, isLoopbackEndpoint as vn, EXECUTION_TRACE_HEADER as vt, secretMcpScope as w, servableMcpServer as wn, InvalidAttachmentError as wt, toolResultEvents as x, requireRecord as xn, PlaintextResponse as xt, textDeltaEvents as y, isPlainRecord as yn, MANAGED_QUOTE_VERSION_HEADER as yt, findRouterCatalogEntry as z, AcpInitializeParams as zt };
1494
+ //# sourceMappingURL=index-BxJqsFAl.d.mts.map
package/dist/index.d.mts CHANGED
@@ -1,3 +1,3 @@
1
- import { $ as localMcpEnv, $t as InteractionToggleConfig, A as refuseSecretLaunch, An as PreparedCliLaunch, At as CliProviderAdapterBase, B as resolveRouterModelReasoningEfforts, Bt as AcpNewSessionResult, C as forgetSessionScopes, Cn as servableMcpServer, Ct as InvalidAttachmentError, D as assertSealedNativeHome, Dn as untilSettledOrAborted, Dt as wasNeverLaunched, E as SEALED_NATIVE_HOME_LAYOUT, En as spawnUnderSecretMcpLease, Et as rejectNotLaunched, F as ResolveRouterModelLimitsInput, Ft as ACP_PROTOCOL_VERSION, G as kimiThinkingArgs, Gt as assertAcpTurnFinished, H as RepeatedToolFailureGuardOptions, Ht as AcpSessionUpdateParams, I as RouterModelLimits, It as AcpBridgeConfig, J as parseCliUsageLine, Jt as CliProviderConfig, K as nativeEffortArgs, Kt as CliExecArgs, L as RouterModelLimitsResult, Lt as AcpContentBlock, M as ROUTER_MODEL_CATALOG_FAILURE_STOP_MS, Mn as AcpProcessSpec, Mt as createExecutionState, N as ROUTER_MODEL_CATALOG_LIFETIME_MS, Nn as spawnAcpBridge, Nt as TurnObserver, O as isTrustedStoreBinary, On as CliTurnProcess, Ot as mapAcpSessionUpdate, P as ROUTER_MODEL_CATALOG_TIMEOUT_MS, Pt as ACP_MIN_PROTOCOL_VERSION, Q as localMcpArgv, Qt as ExecutionState, R as findRouterCatalogEntry, Rt as AcpInitializeParams, S as toolStartEvents, Sn as secretSessionTurnQueue, St as plaintextResponseParser, T as NATIVE_SESSION_CONTRACTS, Tn as sharedSecretMcpRefused, Tt as failureAfterCleanup, U as createRepeatedToolFailureGuard, Ut as AcpTurn, V as RepeatedToolFailure, Vt as AcpPromptResult, W as trackReasoningBlock, Wt as acpContentText, X as recordCliTokenUsage, Xt as CliProviderOptions, Y as readCliTokenUsage, Yt as CliProviderLogger, Z as isLocalMcpConfig, Zt as EphemeralContextInput, _ as sessionObservedEvents, _n as isLoopbackEndpoint, _t as EXECUTION_TRACE_HEADER, a as PERMISSION_DECISION_TIMEOUT_MS, an as interactionToggleEnabled, at as PermissionPromptBridge, b as textSnapshotEvents, bn as requireRecord, bt as PlaintextResponse, c as WorkspacePlanApplication, cn as turnInteractionEnabled, ct as brokerInteractionTools, d as endFailedTurn, dn as SHARED_WORKSPACE_DIR_ENV, dt as deriveFilePart, en as InteractionToggleKind, et as McpInteractionSupport, f as recordTurnInterruption, fn as SecretProfileMcpCredentialProxy, ft as deterministicFilePartId, g as reasoningEvents, gn as directStdioMcpServers, gt as EXECUTION_ID_HEADER, h as finalTextEvent, hn as assertSealedNativeSearchPath, ht as EXECUTION_CORRELATION_HEADERS, i as InteractionHttpBridge, in as enabledInteractionKinds, it as InteractionMcpServerConfig, j as resolveExecutableRealpath, jn as AcpBridgeSpawn, jt as runtimeSecretsOverlay, k as provenStoreBinary, kn as CliTurnSpawn, kt as AcpProviderAdapterBase, l as codexDeveloperInstructionArgs, ln as withEphemeralContext, lt as interactionMcpToolName, m as TerminalPlanSupportOptions, mn as SecretProfileMcpServer, mt as trackFilePart, n as HarnessId, nn as ToolCallState, nt as DEFAULT_INTERACTION_MCP_SERVER_NAME, o as SECRET_REFERENCE, on as readEphemeralContext, ot as RequestPermissionBridge, p as TerminalPlanSupport, pn as SecretProfileMcpLease, pt as inferMediaType, q as accumulateCliTokenUsage, qt as CliExecutionInput, r as InteractionBroker, rn as TurnEndReason, rt as InteractionMcpServer, s as SECRET_REFERENCE_PREFIX, sn as turnEndReason, st as RequestPlanBridge, t as CODEX_DISABLED_FEATURE_ARGS, tn as PerTurnInteractionInput, tt as AskUserBridge, u as homeXdgEnv, un as withTurnInteractions, ut as buildFileUrl, v as streamPartBase, vn as isPlainRecord, vt as MANAGED_QUOTE_VERSION_HEADER, w as secretMcpScope, wn as servableStdioServer, wt as SessionRehydrationError, x as toolResultEvents, xn as resolveReferences, xt as jsonEventParser, y as textDeltaEvents, yn as joinQueue, yt as executionCorrelationHeaders, z as resolveRouterModelLimits, zt as AcpInitializeResult } from "./index-LwzOWUtG.mjs";
1
+ import { $ as localMcpArgv, $t as ExecutionState, A as refuseSecretLaunch, An as CliTurnSpawn, At as AcpProviderAdapterBase, B as resolveRouterModelLimits, Bt as AcpInitializeResult, C as forgetSessionScopes, Cn as secretSessionTurnQueue, Ct as plaintextResponseParser, D as assertSealedNativeHome, Dn as spawnUnderSecretMcpLease, Dt as rejectNotLaunched, E as SEALED_NATIVE_HOME_LAYOUT, En as sharedSecretMcpRefused, Et as failureAfterCleanup, F as ROUTER_MODEL_CATALOG_TIMEOUT_MS, Ft as ACP_MIN_PROTOCOL_VERSION, G as trackReasoningBlock, Gt as acpContentText, H as RepeatedToolFailure, Ht as AcpPromptResult, I as ResolveRouterModelLimitsInput, It as ACP_PROTOCOL_VERSION, J as accumulateCliTokenUsage, Jt as CliExecutionInput, K as kimiThinkingArgs, Kt as assertAcpTurnFinished, L as RouterModelLimits, Lt as AcpBridgeConfig, M as ROUTER_MODEL_CATALOG_FAILURE_STOP_MS, Mn as AcpBridgeSpawn, Mt as runtimeSecretsOverlay, N as ROUTER_MODEL_CATALOG_LIFETIME_MS, Nn as AcpProcessSpec, Nt as createExecutionState, O as isTrustedStoreBinary, On as untilSettledOrAborted, Ot as wasNeverLaunched, P as ROUTER_MODEL_CATALOG_MISS_REREAD_MS, Pn as spawnAcpBridge, Pt as TurnObserver, Q as isLocalMcpConfig, Qt as EphemeralContextInput, R as RouterModelLimitsResult, Rt as AcpContentBlock, S as toolStartEvents, Sn as resolveReferences, St as jsonEventParser, T as NATIVE_SESSION_CONTRACTS, Tn as servableStdioServer, Tt as SessionRehydrationError, U as RepeatedToolFailureGuardOptions, Ut as AcpSessionUpdateParams, V as resolveRouterModelReasoningEfforts, Vt as AcpNewSessionResult, W as createRepeatedToolFailureGuard, Wt as AcpTurn, X as readCliTokenUsage, Xt as CliProviderLogger, Y as parseCliUsageLine, Yt as CliProviderConfig, Z as recordCliTokenUsage, Zt as CliProviderOptions, _ as sessionObservedEvents, _n as directStdioMcpServers, _t as EXECUTION_ID_HEADER, a as PERMISSION_DECISION_TIMEOUT_MS, an as enabledInteractionKinds, at as InteractionMcpServerConfig, b as textSnapshotEvents, bn as joinQueue, bt as executionCorrelationHeaders, c as WorkspacePlanApplication, cn as turnEndReason, ct as RequestPlanBridge, d as endFailedTurn, dn as withTurnInteractions, dt as buildFileUrl, en as InteractionToggleConfig, et as localMcpEnv, f as recordTurnInterruption, fn as SHARED_WORKSPACE_DIR_ENV, ft as deriveFilePart, g as reasoningEvents, gn as assertSealedNativeSearchPath, gt as EXECUTION_CORRELATION_HEADERS, h as finalTextEvent, hn as SecretProfileMcpServer, ht as trackFilePart, i as InteractionHttpBridge, in as TurnEndReason, it as InteractionMcpServer, j as resolveExecutableRealpath, jn as PreparedCliLaunch, jt as CliProviderAdapterBase, k as provenStoreBinary, kn as CliTurnProcess, kt as mapAcpSessionUpdate, l as codexDeveloperInstructionArgs, ln as turnInteractionEnabled, lt as brokerInteractionTools, m as TerminalPlanSupportOptions, mn as SecretProfileMcpLease, mt as inferMediaType, n as HarnessId, nn as PerTurnInteractionInput, nt as AskUserBridge, o as SECRET_REFERENCE, on as interactionToggleEnabled, ot as PermissionPromptBridge, p as TerminalPlanSupport, pn as SecretProfileMcpCredentialProxy, pt as deterministicFilePartId, q as nativeEffortArgs, qt as CliExecArgs, r as InteractionBroker, rn as ToolCallState, rt as DEFAULT_INTERACTION_MCP_SERVER_NAME, s as SECRET_REFERENCE_PREFIX, sn as readEphemeralContext, st as RequestPermissionBridge, t as CODEX_DISABLED_FEATURE_ARGS, tn as InteractionToggleKind, tt as McpInteractionSupport, u as homeXdgEnv, un as withEphemeralContext, ut as interactionMcpToolName, v as streamPartBase, vn as isLoopbackEndpoint, vt as EXECUTION_TRACE_HEADER, w as secretMcpScope, wn as servableMcpServer, wt as InvalidAttachmentError, x as toolResultEvents, xn as requireRecord, xt as PlaintextResponse, y as textDeltaEvents, yn as isPlainRecord, yt as MANAGED_QUOTE_VERSION_HEADER, z as findRouterCatalogEntry, zt as AcpInitializeParams } from "./index-BxJqsFAl.mjs";
2
2
  import { a as partitionImageAttachments, i as PreparedAttachment, n as MAX_TOTAL_INLINE_IMAGE_BYTES, o as preparePromptInputParts, r as PROMPT_SECTION_SEPARATOR, s as prependPromptSection, t as MAX_INLINE_IMAGE_BYTES } from "./prompt-input-CD7okX8T.mjs";
3
- export { ACP_MIN_PROTOCOL_VERSION, ACP_PROTOCOL_VERSION, AcpBridgeConfig, AcpBridgeSpawn, AcpContentBlock, AcpInitializeParams, AcpInitializeResult, AcpNewSessionResult, AcpProcessSpec, AcpPromptResult, AcpProviderAdapterBase, AcpSessionUpdateParams, AcpTurn, AskUserBridge, CODEX_DISABLED_FEATURE_ARGS, CliExecArgs, CliExecutionInput, CliProviderAdapterBase, CliProviderConfig, CliProviderLogger, CliProviderOptions, CliTurnProcess, CliTurnSpawn, DEFAULT_INTERACTION_MCP_SERVER_NAME, EXECUTION_CORRELATION_HEADERS, EXECUTION_ID_HEADER, EXECUTION_TRACE_HEADER, EphemeralContextInput, ExecutionState, HarnessId, InteractionBroker, InteractionHttpBridge, InteractionMcpServer, InteractionMcpServerConfig, InteractionToggleConfig, InteractionToggleKind, InvalidAttachmentError, MANAGED_QUOTE_VERSION_HEADER, MAX_INLINE_IMAGE_BYTES, MAX_TOTAL_INLINE_IMAGE_BYTES, McpInteractionSupport, NATIVE_SESSION_CONTRACTS, PERMISSION_DECISION_TIMEOUT_MS, PROMPT_SECTION_SEPARATOR, PerTurnInteractionInput, PermissionPromptBridge, PlaintextResponse, PreparedAttachment, PreparedCliLaunch, ROUTER_MODEL_CATALOG_FAILURE_STOP_MS, ROUTER_MODEL_CATALOG_LIFETIME_MS, ROUTER_MODEL_CATALOG_TIMEOUT_MS, RepeatedToolFailure, RepeatedToolFailureGuardOptions, RequestPermissionBridge, RequestPlanBridge, ResolveRouterModelLimitsInput, RouterModelLimits, RouterModelLimitsResult, SEALED_NATIVE_HOME_LAYOUT, SECRET_REFERENCE, SECRET_REFERENCE_PREFIX, SHARED_WORKSPACE_DIR_ENV, SecretProfileMcpCredentialProxy, SecretProfileMcpLease, SecretProfileMcpServer, SessionRehydrationError, TerminalPlanSupport, TerminalPlanSupportOptions, ToolCallState, TurnEndReason, TurnObserver, WorkspacePlanApplication, accumulateCliTokenUsage, acpContentText, assertAcpTurnFinished, assertSealedNativeHome, assertSealedNativeSearchPath, brokerInteractionTools, buildFileUrl, codexDeveloperInstructionArgs, createExecutionState, createRepeatedToolFailureGuard, deriveFilePart, deterministicFilePartId, directStdioMcpServers, enabledInteractionKinds, endFailedTurn, executionCorrelationHeaders, failureAfterCleanup, finalTextEvent, findRouterCatalogEntry, forgetSessionScopes, homeXdgEnv, inferMediaType, interactionMcpToolName, interactionToggleEnabled, isLocalMcpConfig, isLoopbackEndpoint, isPlainRecord, isTrustedStoreBinary, joinQueue, jsonEventParser, kimiThinkingArgs, localMcpArgv, localMcpEnv, mapAcpSessionUpdate, nativeEffortArgs, parseCliUsageLine, partitionImageAttachments, plaintextResponseParser, preparePromptInputParts, prependPromptSection, provenStoreBinary, readCliTokenUsage, readEphemeralContext, reasoningEvents, recordCliTokenUsage, recordTurnInterruption, refuseSecretLaunch, rejectNotLaunched, requireRecord, resolveExecutableRealpath, resolveReferences, resolveRouterModelLimits, resolveRouterModelReasoningEfforts, runtimeSecretsOverlay, secretMcpScope, secretSessionTurnQueue, servableMcpServer, servableStdioServer, sessionObservedEvents, sharedSecretMcpRefused, spawnAcpBridge, spawnUnderSecretMcpLease, streamPartBase, textDeltaEvents, textSnapshotEvents, toolResultEvents, toolStartEvents, trackFilePart, trackReasoningBlock, turnEndReason, turnInteractionEnabled, untilSettledOrAborted, wasNeverLaunched, withEphemeralContext, withTurnInteractions };
3
+ export { ACP_MIN_PROTOCOL_VERSION, ACP_PROTOCOL_VERSION, AcpBridgeConfig, AcpBridgeSpawn, AcpContentBlock, AcpInitializeParams, AcpInitializeResult, AcpNewSessionResult, AcpProcessSpec, AcpPromptResult, AcpProviderAdapterBase, AcpSessionUpdateParams, AcpTurn, AskUserBridge, CODEX_DISABLED_FEATURE_ARGS, CliExecArgs, CliExecutionInput, CliProviderAdapterBase, CliProviderConfig, CliProviderLogger, CliProviderOptions, CliTurnProcess, CliTurnSpawn, DEFAULT_INTERACTION_MCP_SERVER_NAME, EXECUTION_CORRELATION_HEADERS, EXECUTION_ID_HEADER, EXECUTION_TRACE_HEADER, EphemeralContextInput, ExecutionState, HarnessId, InteractionBroker, InteractionHttpBridge, InteractionMcpServer, InteractionMcpServerConfig, InteractionToggleConfig, InteractionToggleKind, InvalidAttachmentError, MANAGED_QUOTE_VERSION_HEADER, MAX_INLINE_IMAGE_BYTES, MAX_TOTAL_INLINE_IMAGE_BYTES, McpInteractionSupport, NATIVE_SESSION_CONTRACTS, PERMISSION_DECISION_TIMEOUT_MS, PROMPT_SECTION_SEPARATOR, PerTurnInteractionInput, PermissionPromptBridge, PlaintextResponse, PreparedAttachment, PreparedCliLaunch, ROUTER_MODEL_CATALOG_FAILURE_STOP_MS, ROUTER_MODEL_CATALOG_LIFETIME_MS, ROUTER_MODEL_CATALOG_MISS_REREAD_MS, ROUTER_MODEL_CATALOG_TIMEOUT_MS, RepeatedToolFailure, RepeatedToolFailureGuardOptions, RequestPermissionBridge, RequestPlanBridge, ResolveRouterModelLimitsInput, RouterModelLimits, RouterModelLimitsResult, SEALED_NATIVE_HOME_LAYOUT, SECRET_REFERENCE, SECRET_REFERENCE_PREFIX, SHARED_WORKSPACE_DIR_ENV, SecretProfileMcpCredentialProxy, SecretProfileMcpLease, SecretProfileMcpServer, SessionRehydrationError, TerminalPlanSupport, TerminalPlanSupportOptions, ToolCallState, TurnEndReason, TurnObserver, WorkspacePlanApplication, accumulateCliTokenUsage, acpContentText, assertAcpTurnFinished, assertSealedNativeHome, assertSealedNativeSearchPath, brokerInteractionTools, buildFileUrl, codexDeveloperInstructionArgs, createExecutionState, createRepeatedToolFailureGuard, deriveFilePart, deterministicFilePartId, directStdioMcpServers, enabledInteractionKinds, endFailedTurn, executionCorrelationHeaders, failureAfterCleanup, finalTextEvent, findRouterCatalogEntry, forgetSessionScopes, homeXdgEnv, inferMediaType, interactionMcpToolName, interactionToggleEnabled, isLocalMcpConfig, isLoopbackEndpoint, isPlainRecord, isTrustedStoreBinary, joinQueue, jsonEventParser, kimiThinkingArgs, localMcpArgv, localMcpEnv, mapAcpSessionUpdate, nativeEffortArgs, parseCliUsageLine, partitionImageAttachments, plaintextResponseParser, preparePromptInputParts, prependPromptSection, provenStoreBinary, readCliTokenUsage, readEphemeralContext, reasoningEvents, recordCliTokenUsage, recordTurnInterruption, refuseSecretLaunch, rejectNotLaunched, requireRecord, resolveExecutableRealpath, resolveReferences, resolveRouterModelLimits, resolveRouterModelReasoningEfforts, runtimeSecretsOverlay, secretMcpScope, secretSessionTurnQueue, servableMcpServer, servableStdioServer, sessionObservedEvents, sharedSecretMcpRefused, spawnAcpBridge, spawnUnderSecretMcpLease, streamPartBase, textDeltaEvents, textSnapshotEvents, toolResultEvents, toolStartEvents, trackFilePart, trackReasoningBlock, turnEndReason, turnInteractionEnabled, untilSettledOrAborted, wasNeverLaunched, withEphemeralContext, withTurnInteractions };
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- import { $ as requireRecord, A as recordCliTokenUsage, At as runtimeSecretsOverlay, B as enabledInteractionKinds, Bt as sessionObservedEvents, C as interactionMcpToolName, Ct as inferMediaType, D as accumulateCliTokenUsage, Dt as failureAfterCleanup, E as AcpProviderAdapterBase, Et as SessionRehydrationError, F as recordTurnInterruption, Ft as executionCorrelationHeaders, G as withEphemeralContext, Gt as toolStartEvents, H as readEphemeralContext, Ht as textDeltaEvents, I as createExecutionState, It as homeXdgEnv, J as assertSealedNativeSearchPath, Jt as ACP_PROTOCOL_VERSION, K as withTurnInteractions, Kt as trackReasoningBlock, L as isLocalMcpConfig, Lt as mapAcpSessionUpdate, M as TurnObserver, Mt as EXECUTION_ID_HEADER, N as createRepeatedToolFailureGuard, Nt as EXECUTION_TRACE_HEADER, O as parseCliUsageLine, Ot as rejectNotLaunched, P as endFailedTurn, Pt as MANAGED_QUOTE_VERSION_HEADER, Q as joinQueue, R as localMcpArgv, Rt as finalTextEvent, S as brokerInteractionTools, St as deterministicFilePartId, T as plaintextResponseParser, Tt as InvalidAttachmentError, U as turnEndReason, Ut as textSnapshotEvents, V as interactionToggleEnabled, Vt as streamPartBase, W as turnInteractionEnabled, Wt as toolResultEvents, X as isLoopbackEndpoint, Xt as assertAcpTurnFinished, Y as directStdioMcpServers, Yt as acpContentText, Z as isPlainRecord, Zt as spawnAcpBridge, _ as nativeEffortArgs, _t as partitionImageAttachments, a as SECRET_REFERENCE, at as spawnUnderSecretMcpLease, b as DEFAULT_INTERACTION_MCP_SERVER_NAME, bt as buildFileUrl, c as forgetSessionScopes, ct as SEALED_NATIVE_HOME_LAYOUT, d as ROUTER_MODEL_CATALOG_LIFETIME_MS, dt as provenStoreBinary, et as resolveReferences, f as ROUTER_MODEL_CATALOG_TIMEOUT_MS, ft as refuseSecretLaunch, g as kimiThinkingArgs, gt as PROMPT_SECTION_SEPARATOR, h as resolveRouterModelReasoningEfforts, ht as MAX_TOTAL_INLINE_IMAGE_BYTES, i as PERMISSION_DECISION_TIMEOUT_MS, it as sharedSecretMcpRefused, j as CliProviderAdapterBase, jt as EXECUTION_CORRELATION_HEADERS, k as readCliTokenUsage, kt as wasNeverLaunched, l as secretMcpScope, lt as assertSealedNativeHome, m as resolveRouterModelLimits, mt as MAX_INLINE_IMAGE_BYTES, n as InteractionBroker, nt as servableMcpServer, o as SECRET_REFERENCE_PREFIX, ot as untilSettledOrAborted, p as findRouterCatalogEntry, pt as resolveExecutableRealpath, q as SHARED_WORKSPACE_DIR_ENV, qt as ACP_MIN_PROTOCOL_VERSION, r as InteractionHttpBridge, rt as servableStdioServer, s as codexDeveloperInstructionArgs, st as NATIVE_SESSION_CONTRACTS, t as CODEX_DISABLED_FEATURE_ARGS, tt as secretSessionTurnQueue, u as ROUTER_MODEL_CATALOG_FAILURE_STOP_MS, ut as isTrustedStoreBinary, v as McpInteractionSupport, vt as preparePromptInputParts, w as jsonEventParser, wt as trackFilePart, x as InteractionMcpServer, xt as deriveFilePart, y as TerminalPlanSupport, yt as prependPromptSection, z as localMcpEnv, zt as reasoningEvents } from "./src-OUp4Ymnt.mjs";
2
- export { ACP_MIN_PROTOCOL_VERSION, ACP_PROTOCOL_VERSION, AcpProviderAdapterBase, CODEX_DISABLED_FEATURE_ARGS, CliProviderAdapterBase, DEFAULT_INTERACTION_MCP_SERVER_NAME, EXECUTION_CORRELATION_HEADERS, EXECUTION_ID_HEADER, EXECUTION_TRACE_HEADER, InteractionBroker, InteractionHttpBridge, InteractionMcpServer, InvalidAttachmentError, MANAGED_QUOTE_VERSION_HEADER, MAX_INLINE_IMAGE_BYTES, MAX_TOTAL_INLINE_IMAGE_BYTES, McpInteractionSupport, NATIVE_SESSION_CONTRACTS, PERMISSION_DECISION_TIMEOUT_MS, PROMPT_SECTION_SEPARATOR, ROUTER_MODEL_CATALOG_FAILURE_STOP_MS, ROUTER_MODEL_CATALOG_LIFETIME_MS, ROUTER_MODEL_CATALOG_TIMEOUT_MS, SEALED_NATIVE_HOME_LAYOUT, SECRET_REFERENCE, SECRET_REFERENCE_PREFIX, SHARED_WORKSPACE_DIR_ENV, SessionRehydrationError, TerminalPlanSupport, TurnObserver, accumulateCliTokenUsage, acpContentText, assertAcpTurnFinished, assertSealedNativeHome, assertSealedNativeSearchPath, brokerInteractionTools, buildFileUrl, codexDeveloperInstructionArgs, createExecutionState, createRepeatedToolFailureGuard, deriveFilePart, deterministicFilePartId, directStdioMcpServers, enabledInteractionKinds, endFailedTurn, executionCorrelationHeaders, failureAfterCleanup, finalTextEvent, findRouterCatalogEntry, forgetSessionScopes, homeXdgEnv, inferMediaType, interactionMcpToolName, interactionToggleEnabled, isLocalMcpConfig, isLoopbackEndpoint, isPlainRecord, isTrustedStoreBinary, joinQueue, jsonEventParser, kimiThinkingArgs, localMcpArgv, localMcpEnv, mapAcpSessionUpdate, nativeEffortArgs, parseCliUsageLine, partitionImageAttachments, plaintextResponseParser, preparePromptInputParts, prependPromptSection, provenStoreBinary, readCliTokenUsage, readEphemeralContext, reasoningEvents, recordCliTokenUsage, recordTurnInterruption, refuseSecretLaunch, rejectNotLaunched, requireRecord, resolveExecutableRealpath, resolveReferences, resolveRouterModelLimits, resolveRouterModelReasoningEfforts, runtimeSecretsOverlay, secretMcpScope, secretSessionTurnQueue, servableMcpServer, servableStdioServer, sessionObservedEvents, sharedSecretMcpRefused, spawnAcpBridge, spawnUnderSecretMcpLease, streamPartBase, textDeltaEvents, textSnapshotEvents, toolResultEvents, toolStartEvents, trackFilePart, trackReasoningBlock, turnEndReason, turnInteractionEnabled, untilSettledOrAborted, wasNeverLaunched, withEphemeralContext, withTurnInteractions };
1
+ import { $ as joinQueue, A as readCliTokenUsage, At as wasNeverLaunched, B as localMcpEnv, Bt as reasoningEvents, C as brokerInteractionTools, Ct as deterministicFilePartId, D as AcpProviderAdapterBase, Dt as SessionRehydrationError, E as plaintextResponseParser, Et as InvalidAttachmentError, F as endFailedTurn, Ft as MANAGED_QUOTE_VERSION_HEADER, G as turnInteractionEnabled, Gt as toolResultEvents, H as interactionToggleEnabled, Ht as streamPartBase, I as recordTurnInterruption, It as executionCorrelationHeaders, J as SHARED_WORKSPACE_DIR_ENV, Jt as ACP_MIN_PROTOCOL_VERSION, K as withEphemeralContext, Kt as toolStartEvents, L as createExecutionState, Lt as homeXdgEnv, M as CliProviderAdapterBase, Mt as EXECUTION_CORRELATION_HEADERS, N as TurnObserver, Nt as EXECUTION_ID_HEADER, O as accumulateCliTokenUsage, Ot as failureAfterCleanup, P as createRepeatedToolFailureGuard, Pt as EXECUTION_TRACE_HEADER, Q as isPlainRecord, Qt as spawnAcpBridge, R as isLocalMcpConfig, Rt as mapAcpSessionUpdate, S as InteractionMcpServer, St as deriveFilePart, T as jsonEventParser, Tt as trackFilePart, U as readEphemeralContext, Ut as textDeltaEvents, V as enabledInteractionKinds, Vt as sessionObservedEvents, W as turnEndReason, Wt as textSnapshotEvents, X as directStdioMcpServers, Xt as acpContentText, Y as assertSealedNativeSearchPath, Yt as ACP_PROTOCOL_VERSION, Z as isLoopbackEndpoint, Zt as assertAcpTurnFinished, _ as kimiThinkingArgs, _t as PROMPT_SECTION_SEPARATOR, a as SECRET_REFERENCE, at as sharedSecretMcpRefused, b as TerminalPlanSupport, bt as prependPromptSection, c as forgetSessionScopes, ct as NATIVE_SESSION_CONTRACTS, d as ROUTER_MODEL_CATALOG_LIFETIME_MS, dt as isTrustedStoreBinary, et as requireRecord, f as ROUTER_MODEL_CATALOG_MISS_REREAD_MS, ft as provenStoreBinary, g as resolveRouterModelReasoningEfforts, gt as MAX_TOTAL_INLINE_IMAGE_BYTES, h as resolveRouterModelLimits, ht as MAX_INLINE_IMAGE_BYTES, i as PERMISSION_DECISION_TIMEOUT_MS, it as servableStdioServer, j as recordCliTokenUsage, jt as runtimeSecretsOverlay, k as parseCliUsageLine, kt as rejectNotLaunched, l as secretMcpScope, lt as SEALED_NATIVE_HOME_LAYOUT, m as findRouterCatalogEntry, mt as resolveExecutableRealpath, n as InteractionBroker, nt as secretSessionTurnQueue, o as SECRET_REFERENCE_PREFIX, ot as spawnUnderSecretMcpLease, p as ROUTER_MODEL_CATALOG_TIMEOUT_MS, pt as refuseSecretLaunch, q as withTurnInteractions, qt as trackReasoningBlock, r as InteractionHttpBridge, rt as servableMcpServer, s as codexDeveloperInstructionArgs, st as untilSettledOrAborted, t as CODEX_DISABLED_FEATURE_ARGS, tt as resolveReferences, u as ROUTER_MODEL_CATALOG_FAILURE_STOP_MS, ut as assertSealedNativeHome, v as nativeEffortArgs, vt as partitionImageAttachments, w as interactionMcpToolName, wt as inferMediaType, x as DEFAULT_INTERACTION_MCP_SERVER_NAME, xt as buildFileUrl, y as McpInteractionSupport, yt as preparePromptInputParts, z as localMcpArgv, zt as finalTextEvent } from "./src-CwCs2A6A.mjs";
2
+ export { ACP_MIN_PROTOCOL_VERSION, ACP_PROTOCOL_VERSION, AcpProviderAdapterBase, CODEX_DISABLED_FEATURE_ARGS, CliProviderAdapterBase, DEFAULT_INTERACTION_MCP_SERVER_NAME, EXECUTION_CORRELATION_HEADERS, EXECUTION_ID_HEADER, EXECUTION_TRACE_HEADER, InteractionBroker, InteractionHttpBridge, InteractionMcpServer, InvalidAttachmentError, MANAGED_QUOTE_VERSION_HEADER, MAX_INLINE_IMAGE_BYTES, MAX_TOTAL_INLINE_IMAGE_BYTES, McpInteractionSupport, NATIVE_SESSION_CONTRACTS, PERMISSION_DECISION_TIMEOUT_MS, PROMPT_SECTION_SEPARATOR, ROUTER_MODEL_CATALOG_FAILURE_STOP_MS, ROUTER_MODEL_CATALOG_LIFETIME_MS, ROUTER_MODEL_CATALOG_MISS_REREAD_MS, ROUTER_MODEL_CATALOG_TIMEOUT_MS, SEALED_NATIVE_HOME_LAYOUT, SECRET_REFERENCE, SECRET_REFERENCE_PREFIX, SHARED_WORKSPACE_DIR_ENV, SessionRehydrationError, TerminalPlanSupport, TurnObserver, accumulateCliTokenUsage, acpContentText, assertAcpTurnFinished, assertSealedNativeHome, assertSealedNativeSearchPath, brokerInteractionTools, buildFileUrl, codexDeveloperInstructionArgs, createExecutionState, createRepeatedToolFailureGuard, deriveFilePart, deterministicFilePartId, directStdioMcpServers, enabledInteractionKinds, endFailedTurn, executionCorrelationHeaders, failureAfterCleanup, finalTextEvent, findRouterCatalogEntry, forgetSessionScopes, homeXdgEnv, inferMediaType, interactionMcpToolName, interactionToggleEnabled, isLocalMcpConfig, isLoopbackEndpoint, isPlainRecord, isTrustedStoreBinary, joinQueue, jsonEventParser, kimiThinkingArgs, localMcpArgv, localMcpEnv, mapAcpSessionUpdate, nativeEffortArgs, parseCliUsageLine, partitionImageAttachments, plaintextResponseParser, preparePromptInputParts, prependPromptSection, provenStoreBinary, readCliTokenUsage, readEphemeralContext, reasoningEvents, recordCliTokenUsage, recordTurnInterruption, refuseSecretLaunch, rejectNotLaunched, requireRecord, resolveExecutableRealpath, resolveReferences, resolveRouterModelLimits, resolveRouterModelReasoningEfforts, runtimeSecretsOverlay, secretMcpScope, secretSessionTurnQueue, servableMcpServer, servableStdioServer, sessionObservedEvents, sharedSecretMcpRefused, spawnAcpBridge, spawnUnderSecretMcpLease, streamPartBase, textDeltaEvents, textSnapshotEvents, toolResultEvents, toolStartEvents, trackFilePart, trackReasoningBlock, turnEndReason, turnInteractionEnabled, untilSettledOrAborted, wasNeverLaunched, withEphemeralContext, withTurnInteractions };
@@ -211,7 +211,17 @@ function reasoningEvents(state, thinking, options) {
211
211
  phase: "thinking"
212
212
  }, update] : [update];
213
213
  }
214
- /** Registers a running tool call and emits its running part. */
214
+ /**
215
+ * Registers a running tool call and emits its running part.
216
+ *
217
+ * Where a call is read from is each adapter's: the CLI's own event stream, a
218
+ * log the CLI writes, or a line a plugin prints under a value drawn for the
219
+ * turn. Each keeps text that passes through the CLI, a reply or a tool's
220
+ * output, from producing a tool event. None is a boundary against code the
221
+ * model runs: a process of the same user can write to the CLI's stdout or its
222
+ * files and read another process's environment, so a tool event says what
223
+ * the harness reported and nothing about what such a process could forge.
224
+ */
215
225
  function toolStartEvents(state, call) {
216
226
  const now = Date.now();
217
227
  state.toolCalls.set(call.id, {
@@ -4903,16 +4913,23 @@ function findRouterCatalogEntry(entries, model) {
4903
4913
  return candidates.find((entry) => typeof entry.id === "string" && typeof entry._provider === "string" && `${entry._provider}/${entry.id}` === model);
4904
4914
  }
4905
4915
  /**
4906
- * How long a process answers from the list it read. It is also the floor: no response header
4907
- * shortens it and none lengthens it, because `cache-control` and `expires` are not read. The
4908
- * production Router marks this list, about 63 KB gzipped, `no-store`, and a helper that obeys
4909
- * the mark asks for the whole list on every call from every box; on 2026-11-24 a benchmark
4910
- * starting many boxes made the Router's replicas miss health checks. One lifetime covers a box
4911
- * start and the turns after it with one request, and it bounds how long a running box keeps a
4912
- * limit the Router has since corrected. After it the list is asked for again, with the
4913
- * validator the gateway gave, so an unchanged list costs a 304 and no body.
4916
+ * How long the list a process read answers for the models it names. It is also the floor: no
4917
+ * response header shortens it and none lengthens it, because `cache-control` and `expires` are
4918
+ * not read. The production Router marks this list, about 63 KB gzipped, `no-store`, and a
4919
+ * helper that obeys the mark asks for the whole list on every call from every box; on
4920
+ * 2026-11-24 a benchmark starting many boxes made the Router's replicas miss health checks.
4921
+ * One lifetime covers a box start and the turns after it with one request, and it bounds how
4922
+ * long a running box keeps a limit the Router has since corrected. After it the list is asked
4923
+ * for again, with the validator the gateway gave, so an unchanged list costs a 304 and no body.
4914
4924
  */
4915
4925
  const ROUTER_MODEL_CATALOG_LIFETIME_MS = 60 * 6e4;
4926
+ /**
4927
+ * A lookup for a model the kept list does not name asks for the list again, because the Router
4928
+ * may have added the model since the read, but no sooner than this after that catalog's last
4929
+ * request. A box that keeps looking up a model no list names therefore costs the gateway at
4930
+ * most one request per spacing, and a conditional one once the gateway sends a validator.
4931
+ */
4932
+ const ROUTER_MODEL_CATALOG_MISS_REREAD_MS = 6e4;
4916
4933
  /** A failed read is not repeated for this long, so no turn waits on a failing catalog twice. */
4917
4934
  const ROUTER_MODEL_CATALOG_FAILURE_STOP_MS = 6e4;
4918
4935
  /** A box reads with one or two credentials; the bound stops a caller that varies them from growing the map. */
@@ -4974,14 +4991,15 @@ async function requestCatalog(url, apiKey, held) {
4974
4991
  }
4975
4992
  }
4976
4993
  async function refreshCatalog(catalog, url, apiKey) {
4994
+ const asked = Date.now();
4977
4995
  const answer = await requestCatalog(url, apiKey, catalog.list);
4978
4996
  const now = Date.now();
4979
4997
  if ("failed" in answer) {
4980
- catalog.until = now + ROUTER_MODEL_CATALOG_FAILURE_STOP_MS;
4998
+ catalog.quiet = now + ROUTER_MODEL_CATALOG_FAILURE_STOP_MS;
4981
4999
  if (answer.endpoint) {
4982
5000
  for (const [stopped, { until }] of endpointStops) if (until <= now) endpointStops.delete(stopped);
4983
5001
  endpointStops.set(url, {
4984
- until: catalog.until,
5002
+ until: catalog.quiet,
4985
5003
  reason: answer.failed
4986
5004
  });
4987
5005
  }
@@ -4989,46 +5007,59 @@ async function refreshCatalog(catalog, url, apiKey) {
4989
5007
  }
4990
5008
  endpointStops.delete(url);
4991
5009
  catalog.list = answer;
4992
- catalog.until = now + ROUTER_MODEL_CATALOG_LIFETIME_MS;
5010
+ catalog.fresh = now + ROUTER_MODEL_CATALOG_LIFETIME_MS;
5011
+ catalog.quiet = asked + ROUTER_MODEL_CATALOG_MISS_REREAD_MS;
4993
5012
  return answer.entries;
4994
5013
  }
4995
5014
  /**
4996
- * The catalog for this endpoint, credential and revision. A process makes one request for it
4997
- * per lifetime: callers that arrive while it is in flight wait on it, and later ones are
4998
- * answered from the list it returned. A failure is remembered for its stop: a 4xx for the
4999
- * credential it answered, an unreachable or failing endpoint for every credential.
5015
+ * The read that answers a lookup the kept list cannot: the request in flight, the last one
5016
+ * while none may be sent, or a new one. Callers that arrive together share it. A failure is
5017
+ * remembered for its stop: a 4xx for the credential it answered, an unreachable or failing
5018
+ * endpoint for every credential.
5000
5019
  */
5001
- function readCatalog(input) {
5002
- const url = catalogUrl(input.baseUrl);
5003
- const apiKey = input.apiKey?.trim() ?? "";
5004
- const key = digest(JSON.stringify([
5005
- url,
5006
- apiKey,
5007
- input.cacheRevision ?? ""
5008
- ]));
5020
+ function readCatalog(key, url, apiKey) {
5009
5021
  const now = Date.now();
5010
5022
  const kept = catalogs.get(key);
5011
- if (kept && kept.until > now) return kept.read;
5023
+ if (kept && kept.quiet > now) return kept.read;
5012
5024
  const stopped = endpointStops.get(url);
5013
5025
  if (stopped && stopped.until > now) return Promise.resolve(kept?.list?.entries ?? stopped.reason);
5014
- for (const [other, { until, list }] of catalogs) if (until <= now && !list) catalogs.delete(other);
5026
+ for (const [other, { quiet, list }] of catalogs) if (quiet <= now && !list) catalogs.delete(other);
5015
5027
  catalogs.delete(key);
5016
5028
  if (catalogs.size >= MAX_KEPT_CATALOGS) {
5017
5029
  const oldest = catalogs.keys().next();
5018
5030
  if (!oldest.done) catalogs.delete(oldest.value);
5019
5031
  }
5020
5032
  const next = {
5021
- until: Number.POSITIVE_INFINITY,
5022
- list: kept?.list
5033
+ quiet: Number.POSITIVE_INFINITY,
5034
+ list: kept?.list,
5035
+ fresh: kept?.fresh ?? 0
5023
5036
  };
5024
5037
  const read = refreshCatalog(next, url, apiKey);
5025
5038
  catalogs.set(key, Object.assign(next, { read }));
5026
5039
  return read;
5027
5040
  }
5041
+ /**
5042
+ * The model's entry in the catalog for this endpoint, credential and revision. A process asks
5043
+ * for that catalog once per lifetime for the models its list names: such a lookup is answered
5044
+ * from the kept list at once, also while another request is in flight. A lookup the list does
5045
+ * not name waits on one read, a new conditional request when the last is old enough, and is
5046
+ * answered from the list that read leaves; an unchanged or unreadable list leaves it unnamed.
5047
+ */
5028
5048
  async function readRouterCatalogEntry(input) {
5029
- const entries = await readCatalog(input);
5049
+ const url = catalogUrl(input.baseUrl);
5050
+ const apiKey = input.apiKey?.trim() ?? "";
5051
+ const key = digest(JSON.stringify([
5052
+ url,
5053
+ apiKey,
5054
+ input.cacheRevision ?? ""
5055
+ ]));
5056
+ const named = (entries) => findRouterCatalogEntry(entries, input.model) ?? (input.catalogAlias ? findRouterCatalogEntry(entries, input.catalogAlias) : void 0);
5057
+ const kept = catalogs.get(key);
5058
+ const listed = kept?.list && kept.fresh > Date.now() ? named(kept.list.entries) : void 0;
5059
+ if (listed) return listed;
5060
+ const entries = await readCatalog(key, url, apiKey);
5030
5061
  if (typeof entries === "string") return entries;
5031
- return findRouterCatalogEntry(entries, input.model) ?? (input.catalogAlias ? findRouterCatalogEntry(entries, input.catalogAlias) : void 0) ?? `model catalog does not list ${input.model}`;
5062
+ return named(entries) ?? `model catalog does not list ${input.model}`;
5032
5063
  }
5033
5064
  /** The model's listed `reasoning_effort_values`, trimmed and lowercased, or why the catalog was unreadable. */
5034
5065
  async function resolveRouterModelReasoningEfforts(input) {
@@ -5095,6 +5126,6 @@ async function forgetSessionScopes(target) {
5095
5126
  }
5096
5127
  }
5097
5128
  //#endregion
5098
- export { requireRecord as $, recordCliTokenUsage as A, runtimeSecretsOverlay as At, enabledInteractionKinds as B, sessionObservedEvents as Bt, interactionMcpToolName as C, inferMediaType as Ct, accumulateCliTokenUsage as D, failureAfterCleanup as Dt, AcpProviderAdapterBase as E, SessionRehydrationError as Et, recordTurnInterruption as F, executionCorrelationHeaders as Ft, withEphemeralContext as G, toolStartEvents as Gt, readEphemeralContext as H, textDeltaEvents as Ht, createExecutionState as I, homeXdgEnv as It, assertSealedNativeSearchPath as J, ACP_PROTOCOL_VERSION as Jt, withTurnInteractions as K, trackReasoningBlock as Kt, isLocalMcpConfig as L, mapAcpSessionUpdate as Lt, TurnObserver as M, EXECUTION_ID_HEADER as Mt, createRepeatedToolFailureGuard as N, EXECUTION_TRACE_HEADER as Nt, parseCliUsageLine as O, rejectNotLaunched as Ot, endFailedTurn as P, MANAGED_QUOTE_VERSION_HEADER as Pt, joinQueue as Q, localMcpArgv as R, finalTextEvent as Rt, brokerInteractionTools$1 as S, deterministicFilePartId as St, plaintextResponseParser as T, InvalidAttachmentError as Tt, turnEndReason as U, textSnapshotEvents as Ut, interactionToggleEnabled as V, streamPartBase as Vt, turnInteractionEnabled as W, toolResultEvents as Wt, isLoopbackEndpoint as X, assertAcpTurnFinished as Xt, directStdioMcpServers as Y, acpContentText as Yt, isPlainRecord as Z, spawnAcpBridge as Zt, nativeEffortArgs as _, partitionImageAttachments as _t, SECRET_REFERENCE$1 as a, spawnUnderSecretMcpLease as at, DEFAULT_INTERACTION_MCP_SERVER_NAME as b, buildFileUrl as bt, forgetSessionScopes as c, SEALED_NATIVE_HOME_LAYOUT as ct, ROUTER_MODEL_CATALOG_LIFETIME_MS as d, provenStoreBinary as dt, resolveReferences as et, ROUTER_MODEL_CATALOG_TIMEOUT_MS as f, refuseSecretLaunch as ft, kimiThinkingArgs as g, PROMPT_SECTION_SEPARATOR as gt, resolveRouterModelReasoningEfforts as h, MAX_TOTAL_INLINE_IMAGE_BYTES as ht, PERMISSION_DECISION_TIMEOUT_MS as i, sharedSecretMcpRefused as it, CliProviderAdapterBase as j, EXECUTION_CORRELATION_HEADERS as jt, readCliTokenUsage as k, wasNeverLaunched as kt, secretMcpScope as l, assertSealedNativeHome as lt, resolveRouterModelLimits as m, MAX_INLINE_IMAGE_BYTES as mt, InteractionBroker$1 as n, servableMcpServer as nt, SECRET_REFERENCE_PREFIX$1 as o, untilSettledOrAborted as ot, findRouterCatalogEntry as p, resolveExecutableRealpath as pt, SHARED_WORKSPACE_DIR_ENV as q, ACP_MIN_PROTOCOL_VERSION as qt, InteractionHttpBridge as r, servableStdioServer as rt, codexDeveloperInstructionArgs as s, NATIVE_SESSION_CONTRACTS$1 as st, CODEX_DISABLED_FEATURE_ARGS as t, secretSessionTurnQueue as tt, ROUTER_MODEL_CATALOG_FAILURE_STOP_MS as u, isTrustedStoreBinary as ut, McpInteractionSupport as v, preparePromptInputParts as vt, jsonEventParser as w, trackFilePart as wt, InteractionMcpServer$1 as x, deriveFilePart as xt, TerminalPlanSupport as y, prependPromptSection as yt, localMcpEnv as z, reasoningEvents as zt };
5129
+ export { joinQueue as $, readCliTokenUsage as A, wasNeverLaunched as At, localMcpEnv as B, reasoningEvents as Bt, brokerInteractionTools$1 as C, deterministicFilePartId as Ct, AcpProviderAdapterBase as D, SessionRehydrationError as Dt, plaintextResponseParser as E, InvalidAttachmentError as Et, endFailedTurn as F, MANAGED_QUOTE_VERSION_HEADER as Ft, turnInteractionEnabled as G, toolResultEvents as Gt, interactionToggleEnabled as H, streamPartBase as Ht, recordTurnInterruption as I, executionCorrelationHeaders as It, SHARED_WORKSPACE_DIR_ENV as J, ACP_MIN_PROTOCOL_VERSION as Jt, withEphemeralContext as K, toolStartEvents as Kt, createExecutionState as L, homeXdgEnv as Lt, CliProviderAdapterBase as M, EXECUTION_CORRELATION_HEADERS as Mt, TurnObserver as N, EXECUTION_ID_HEADER as Nt, accumulateCliTokenUsage as O, failureAfterCleanup as Ot, createRepeatedToolFailureGuard as P, EXECUTION_TRACE_HEADER as Pt, isPlainRecord as Q, spawnAcpBridge as Qt, isLocalMcpConfig as R, mapAcpSessionUpdate as Rt, InteractionMcpServer$1 as S, deriveFilePart as St, jsonEventParser as T, trackFilePart as Tt, readEphemeralContext as U, textDeltaEvents as Ut, enabledInteractionKinds as V, sessionObservedEvents as Vt, turnEndReason as W, textSnapshotEvents as Wt, directStdioMcpServers as X, acpContentText as Xt, assertSealedNativeSearchPath as Y, ACP_PROTOCOL_VERSION as Yt, isLoopbackEndpoint as Z, assertAcpTurnFinished as Zt, kimiThinkingArgs as _, PROMPT_SECTION_SEPARATOR as _t, SECRET_REFERENCE$1 as a, sharedSecretMcpRefused as at, TerminalPlanSupport as b, prependPromptSection as bt, forgetSessionScopes as c, NATIVE_SESSION_CONTRACTS$1 as ct, ROUTER_MODEL_CATALOG_LIFETIME_MS as d, isTrustedStoreBinary as dt, requireRecord as et, ROUTER_MODEL_CATALOG_MISS_REREAD_MS as f, provenStoreBinary as ft, resolveRouterModelReasoningEfforts as g, MAX_TOTAL_INLINE_IMAGE_BYTES as gt, resolveRouterModelLimits as h, MAX_INLINE_IMAGE_BYTES as ht, PERMISSION_DECISION_TIMEOUT_MS as i, servableStdioServer as it, recordCliTokenUsage as j, runtimeSecretsOverlay as jt, parseCliUsageLine as k, rejectNotLaunched as kt, secretMcpScope as l, SEALED_NATIVE_HOME_LAYOUT as lt, findRouterCatalogEntry as m, resolveExecutableRealpath as mt, InteractionBroker$1 as n, secretSessionTurnQueue as nt, SECRET_REFERENCE_PREFIX$1 as o, spawnUnderSecretMcpLease as ot, ROUTER_MODEL_CATALOG_TIMEOUT_MS as p, refuseSecretLaunch as pt, withTurnInteractions as q, trackReasoningBlock as qt, InteractionHttpBridge as r, servableMcpServer as rt, codexDeveloperInstructionArgs as s, untilSettledOrAborted as st, CODEX_DISABLED_FEATURE_ARGS as t, resolveReferences as tt, ROUTER_MODEL_CATALOG_FAILURE_STOP_MS as u, assertSealedNativeHome as ut, nativeEffortArgs as v, partitionImageAttachments as vt, interactionMcpToolName as w, inferMediaType as wt, DEFAULT_INTERACTION_MCP_SERVER_NAME as x, buildFileUrl as xt, McpInteractionSupport as y, preparePromptInputParts as yt, localMcpArgv as z, finalTextEvent as zt };
5099
5130
 
5100
- //# sourceMappingURL=src-OUp4Ymnt.mjs.map
5131
+ //# sourceMappingURL=src-CwCs2A6A.mjs.map
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tangle-network/sdk-provider-cli-base",
3
- "version": "0.13.212",
3
+ "version": "0.13.214",
4
4
  "description": "Base adapter for CLI-based AI agent providers",
5
5
  "type": "module",
6
6
  "main": "./dist/index.mjs",
@@ -62,7 +62,7 @@
62
62
  "@tangle-network/agent-interface": "^5.10.28",
63
63
  "@tangle-network/agent-profile-materialize": "1.1.221",
64
64
  "@tangle-network/agent-trace-contract": "^2.2.0",
65
- "@tangle-network/cli-agent-registry": "0.15.205",
65
+ "@tangle-network/cli-agent-registry": "0.15.206",
66
66
  "@tangle-network/sdk-cli-runner": "0.3.18",
67
67
  "@tangle-network/sdk-session-persistence": "0.7.17",
68
68
  "zod": "4.6.7"
@@ -79,8 +79,8 @@
79
79
  "registry": "https://registry.npmjs.org"
80
80
  },
81
81
  "tangleRelease": {
82
- "sourceSha": "2e94fd8706ebbdd10a59eeabd79f161139a0047e",
83
- "mergedAt": "2026-11-24T14:48:55-08:00"
82
+ "sourceSha": "9da80cd961ed6c78452d5ba8a01be3d71c68efeb",
83
+ "mergedAt": "2026-11-24T15:59:13-08:00"
84
84
  },
85
85
  "scripts": {
86
86
  "build": "tsdown",