@tangle-network/sdk-provider-cli-base 0.13.106 → 0.13.108
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/dist/adapters/amp/index.d.mts +1 -1
- package/dist/adapters/amp/index.mjs +1 -1
- package/dist/adapters/exo/index.d.mts +1 -1
- package/dist/adapters/exo/index.mjs +1 -1
- package/dist/adapters/factory-droids/index.d.mts +1 -1
- package/dist/adapters/factory-droids/index.mjs +1 -1
- package/dist/adapters/grok/index.d.mts +1 -1
- package/dist/adapters/grok/index.mjs +1 -1
- package/dist/adapters/hermes/index.d.mts +1 -1
- package/dist/adapters/hermes/index.mjs +1 -1
- package/dist/adapters/nanoclaw/index.d.mts +1 -1
- package/dist/adapters/nanoclaw/index.mjs +1 -1
- package/dist/adapters/nanocode/index.d.mts +1 -1
- package/dist/adapters/nanocode/index.mjs +1 -1
- package/dist/adapters/openclaw/index.d.mts +1 -1
- package/dist/adapters/openclaw/index.mjs +1 -1
- package/dist/adapters/prime/index.d.mts +1 -1
- package/dist/adapters/prime/index.mjs +1 -1
- package/dist/{index-B3cyaXV5.d.mts → index-CX7MWkZK.d.mts} +42 -33
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{src-DjNUQ88T.mjs → src-BVg56gUM.mjs} +167 -130
- package/package.json +3 -3
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Et as CliProviderAdapterBase,
|
|
1
|
+
import { Et as CliProviderAdapterBase, Ut as CliProviderConfig, Vt as CliExecArgs, qt as ExecutionState } from "../../index-CX7MWkZK.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 {
|
|
1
|
+
import { Bt as toolResultEvents, Ft as reasoningEvents, It as sessionObservedEvents, L as jsonEventParser, Rt as textDeltaEvents, U as recordCliTokenUsage, Vt as toolStartEvents, W as CliProviderAdapterBase, nt as localMcpEnv, tt as localMcpArgv } from "../../src-BVg56gUM.mjs";
|
|
2
2
|
//#region src/adapters/amp/types.ts
|
|
3
3
|
/**
|
|
4
4
|
* Type guard for AMP events.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Et as CliProviderAdapterBase, Tn as CliTurnSpawn, Ut as CliProviderConfig, Vt as CliExecArgs, qt as ExecutionState, wn as CliTurnProcess } from "../../index-CX7MWkZK.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 {
|
|
1
|
+
import { It as sessionObservedEvents, R as plaintextResponseParser, W as CliProviderAdapterBase } from "../../src-BVg56gUM.mjs";
|
|
2
2
|
import { normalizeOpenAiCompatibleBaseUrl, resolveTangleRouterDefaults } from "@tangle-network/agent-interface";
|
|
3
3
|
import { join } from "node:path";
|
|
4
4
|
//#region src/adapters/exo/adapter.ts
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Et as CliProviderAdapterBase,
|
|
1
|
+
import { Et as CliProviderAdapterBase, Ut as CliProviderConfig, Vt as CliExecArgs, qt as ExecutionState } from "../../index-CX7MWkZK.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 {
|
|
1
|
+
import { Bt as toolResultEvents, Ft as reasoningEvents, It as sessionObservedEvents, L as jsonEventParser, Lt as streamPartBase, Rt as textDeltaEvents, U as recordCliTokenUsage, Vt as toolStartEvents, W as CliProviderAdapterBase, et as isLocalMcpConfig, j as McpInteractionSupport, lt as withTurnInteractions, nt as localMcpEnv, rt as enabledInteractionKinds, tt as localMcpArgv } from "../../src-BVg56gUM.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 { Et as CliProviderAdapterBase,
|
|
1
|
+
import { Et as CliProviderAdapterBase, Ut as CliProviderConfig, Vt as CliExecArgs, qt as ExecutionState } from "../../index-CX7MWkZK.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 {
|
|
1
|
+
import { It as sessionObservedEvents, R as plaintextResponseParser, W as CliProviderAdapterBase, ht as prependPromptSection } from "../../src-BVg56gUM.mjs";
|
|
2
2
|
//#region src/adapters/grok/adapter.ts
|
|
3
3
|
const DECLARE_MODEL = "d=$HOME/.grok; [ -z \"$GROK_HOME\" ] || d=$GROK_HOME; t=\"[model.\\\"$1\\\"]\"; mkdir -p \"$d\" && { grep -qxF \"$t\" \"$d/managed_config.toml\" 2>/dev/null || printf '%s\\nmodel = \"%s\"\\n' \"$t\" \"$1\" >> \"$d/managed_config.toml\"; }; shift; exec \"$@\"";
|
|
4
4
|
var GrokProviderAdapter = class extends CliProviderAdapterBase {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Et as CliProviderAdapterBase,
|
|
1
|
+
import { Et as CliProviderAdapterBase, Ut as CliProviderConfig, Vt as CliExecArgs, n as HarnessId, qt as ExecutionState } from "../../index-CX7MWkZK.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 {
|
|
1
|
+
import { It as sessionObservedEvents, R as plaintextResponseParser, U as recordCliTokenUsage, W as CliProviderAdapterBase, et as isLocalMcpConfig, ht as prependPromptSection, nt as localMcpEnv, pt as partitionImageAttachments, tt as localMcpArgv } from "../../src-BVg56gUM.mjs";
|
|
2
2
|
import { resolveTangleRouterDefaults } from "@tangle-network/agent-interface";
|
|
3
3
|
import { writeFile } from "node:fs/promises";
|
|
4
4
|
import { dirname, join } from "node:path";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Et as CliProviderAdapterBase,
|
|
1
|
+
import { Et as CliProviderAdapterBase, Ut as CliProviderConfig, Vt as CliExecArgs, n as HarnessId, qt as ExecutionState } from "../../index-CX7MWkZK.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 {
|
|
1
|
+
import { It as sessionObservedEvents, R as plaintextResponseParser, U as recordCliTokenUsage, V as parseCliUsageLine, W as CliProviderAdapterBase, ht as prependPromptSection } from "../../src-BVg56gUM.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 { Et as CliProviderAdapterBase,
|
|
1
|
+
import { Et as CliProviderAdapterBase, Ut as CliProviderConfig, Vt as CliExecArgs, qt as ExecutionState } from "../../index-CX7MWkZK.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 {
|
|
1
|
+
import { It as sessionObservedEvents, R as plaintextResponseParser, W as CliProviderAdapterBase, ht as prependPromptSection } from "../../src-BVg56gUM.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 } from "node:path";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Et as CliProviderAdapterBase,
|
|
1
|
+
import { Et as CliProviderAdapterBase, Ut as CliProviderConfig, Vt as CliExecArgs, c as WorkspacePlanApplication, n as HarnessId, qt as ExecutionState } from "../../index-CX7MWkZK.mjs";
|
|
2
2
|
import { StreamParserConfig } from "@tangle-network/sdk-cli-runner";
|
|
3
3
|
import { CliAuthFile, ProviderConfig, StreamEvent } from "@tangle-network/agent-interface";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { A as nativeEffortArgs, It as sessionObservedEvents, Pt as finalTextEvent, U as recordCliTokenUsage, W as CliProviderAdapterBase, ht as prependPromptSection } from "../../src-BVg56gUM.mjs";
|
|
2
2
|
import { resolveTangleRouterDefaults } from "@tangle-network/agent-interface";
|
|
3
3
|
//#region src/adapters/openclaw/adapter.ts
|
|
4
4
|
/** openclaw's default agent id; the synthesized config declares only it. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Dn as AcpBridgeSpawn, Mt as AcpContentBlock, On as AcpProcessSpec, Rt as AcpTurn, Tt as AcpProviderAdapterBase, jt as AcpBridgeConfig } from "../../index-CX7MWkZK.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 {
|
|
1
|
+
import { ht as prependPromptSection, qt as spawnAcpBridge, z as AcpProviderAdapterBase } from "../../src-BVg56gUM.mjs";
|
|
2
2
|
import { PRIME_AGENT_DIR_ENV_VAR, 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";
|
|
@@ -34,6 +34,38 @@ interface AcpBridgeSpawn {
|
|
|
34
34
|
/** Spawn an ACP agent over NDJSON stdio from `env` alone, never the sidecar's own environment. The adapter owns abort, so no signal. */
|
|
35
35
|
declare function spawnAcpBridge(request: AcpBridgeSpawn): RpcBridge;
|
|
36
36
|
//#endregion
|
|
37
|
+
//#region src/turn-process.d.ts
|
|
38
|
+
/** A turn transport may finish while its provider server remains alive. */
|
|
39
|
+
type CliTurnProcess = Pick<CliProcess, "pid" | "write" | "closeInput" | "kill" | "exitPromise" | "beginRawCapture"> & {
|
|
40
|
+
stderr?: NodeJS.ReadableStream;
|
|
41
|
+
};
|
|
42
|
+
type CliTurnSpawn<TConfig, TEvent> = {
|
|
43
|
+
input: AgentExecutionInput;
|
|
44
|
+
sessionId: string;
|
|
45
|
+
providerSessionId?: string;
|
|
46
|
+
config: TConfig;
|
|
47
|
+
execArgs: CliExecArgs;
|
|
48
|
+
workspaceRoot: string;
|
|
49
|
+
env: Record<string, string | undefined>;
|
|
50
|
+
signal: AbortSignal;
|
|
51
|
+
timeoutMs?: number;
|
|
52
|
+
parser: StreamParserConfig<TEvent>; /** The profile plan the turn applied, whose secret references a spawn may serve. */
|
|
53
|
+
profilePlan?: WorkspacePlanApplication;
|
|
54
|
+
/**
|
|
55
|
+
* A process started before the turn it serves (a held spare): its raw
|
|
56
|
+
* capture opens when a turn adopts it (`beginRawCapture`), inside that
|
|
57
|
+
* turn's attempt, not at spawn.
|
|
58
|
+
*/
|
|
59
|
+
deferRawCapture?: boolean;
|
|
60
|
+
};
|
|
61
|
+
/** One turn's launch, prepared for a caller that runs the process itself. */
|
|
62
|
+
type PreparedCliLaunch = {
|
|
63
|
+
/** Pass to `execCli` or `launchCliProcess`, adding `signal` and `timeoutMs`. */spawn: CliSpawnConfig; /** Write to the child's stdin and close it; absent when the prompt is in argv. */
|
|
64
|
+
stdin?: string; /** The native session id the argv names, for a harness that pre-mints it. */
|
|
65
|
+
nativeSessionId?: string; /** The profile's workspace files and spawn inputs that were applied. */
|
|
66
|
+
workspacePlan?: WorkspacePlanReceipt;
|
|
67
|
+
};
|
|
68
|
+
//#endregion
|
|
37
69
|
//#region src/secret-profile-mcp.d.ts
|
|
38
70
|
declare function requireRecord(raw: unknown, message: string): Record<string, unknown>;
|
|
39
71
|
type SecretProfileMcpStdio<Value = string> = {
|
|
@@ -112,6 +144,10 @@ declare function secretSessionTurnQueue(view: string): {
|
|
|
112
144
|
release: () => void;
|
|
113
145
|
retryCleanup(retry: () => Promise<void>): void;
|
|
114
146
|
};
|
|
147
|
+
/** A shared launch never serves a secret MCP server to an agent on the executor's UID, nor a stdio one without a root sidecar to bridge it. */
|
|
148
|
+
declare function sharedSecretMcpRefused(servers: readonly SecretProfileMcpServer[], agentUid: number | undefined): boolean;
|
|
149
|
+
/** Spawn a turn under its session's MCP lease: the session's turns hold it one at a time, each until its process exits. */
|
|
150
|
+
declare function spawnUnderSecretMcpLease(scope: string, signal: AbortSignal, lease: () => Promise<SecretProfileMcpLease | undefined>, spawn: () => CliTurnProcess | Promise<CliTurnProcess>): Promise<CliTurnProcess>;
|
|
115
151
|
/** An HTTP URL on loopback with an explicit port and no URL credentials. */
|
|
116
152
|
declare function isLoopbackEndpoint(value: unknown): boolean;
|
|
117
153
|
//#endregion
|
|
@@ -402,37 +438,6 @@ interface AcpTurn<TConfig extends AcpBridgeConfig> {
|
|
|
402
438
|
/** Text carried by ACP content blocks, including tool-call content. */
|
|
403
439
|
declare function acpContentText(content: AcpContentBlock | AcpContentBlock[] | undefined): string;
|
|
404
440
|
//#endregion
|
|
405
|
-
//#region src/turn-process.d.ts
|
|
406
|
-
/** A turn transport may finish while its provider server remains alive. */
|
|
407
|
-
type CliTurnProcess = Pick<CliProcess, "pid" | "write" | "closeInput" | "kill" | "exitPromise" | "beginRawCapture"> & {
|
|
408
|
-
stderr?: NodeJS.ReadableStream;
|
|
409
|
-
};
|
|
410
|
-
type CliTurnSpawn<TConfig, TEvent> = {
|
|
411
|
-
input: AgentExecutionInput;
|
|
412
|
-
sessionId: string;
|
|
413
|
-
providerSessionId?: string;
|
|
414
|
-
config: TConfig;
|
|
415
|
-
execArgs: CliExecArgs;
|
|
416
|
-
workspaceRoot: string;
|
|
417
|
-
env: Record<string, string | undefined>;
|
|
418
|
-
signal: AbortSignal;
|
|
419
|
-
timeoutMs?: number;
|
|
420
|
-
parser: StreamParserConfig<TEvent>;
|
|
421
|
-
/**
|
|
422
|
-
* A process started before the turn it serves (a held spare): its raw
|
|
423
|
-
* capture opens when a turn adopts it (`beginRawCapture`), inside that
|
|
424
|
-
* turn's attempt, not at spawn.
|
|
425
|
-
*/
|
|
426
|
-
deferRawCapture?: boolean;
|
|
427
|
-
};
|
|
428
|
-
/** One turn's launch, prepared for a caller that runs the process itself. */
|
|
429
|
-
type PreparedCliLaunch = {
|
|
430
|
-
/** Pass to `execCli` or `launchCliProcess`, adding `signal` and `timeoutMs`. */spawn: CliSpawnConfig; /** Write to the child's stdin and close it; absent when the prompt is in argv. */
|
|
431
|
-
stdin?: string; /** The native session id the argv names, for a harness that pre-mints it. */
|
|
432
|
-
nativeSessionId?: string; /** The profile's workspace files and spawn inputs that were applied. */
|
|
433
|
-
workspacePlan?: WorkspacePlanReceipt;
|
|
434
|
-
};
|
|
435
|
-
//#endregion
|
|
436
441
|
//#region src/adapter-lifecycle.d.ts
|
|
437
442
|
/** Owns configuration, initialization, cancellation, and subprocess identity. */
|
|
438
443
|
declare abstract class CliAdapterLifecycle<TConfig extends CliProviderConfig = CliProviderConfig> {
|
|
@@ -518,6 +523,10 @@ declare abstract class CliAdapterProfile<TConfig extends CliProviderConfig = Cli
|
|
|
518
523
|
protected readonly referencesSharedFileSecrets: boolean;
|
|
519
524
|
private readonly profileSecretProvider;
|
|
520
525
|
private readonly secretProfileRuntimeKeyProvider;
|
|
526
|
+
/** The executor's MCP proxy, as the owner of the secret scopes this adapter opens. */
|
|
527
|
+
protected readonly mcpOwner: {
|
|
528
|
+
readonly proxy?: SecretProfileMcpCredentialProxy;
|
|
529
|
+
};
|
|
521
530
|
/** Private native preparation state; never part of a returned receipt. */
|
|
522
531
|
private readonly secretProfileRevisions;
|
|
523
532
|
constructor(options?: CliProviderOptions<TConfig>);
|
|
@@ -1410,5 +1419,5 @@ declare function homeXdgEnv(home: string): {
|
|
|
1410
1419
|
XDG_STATE_HOME: string;
|
|
1411
1420
|
};
|
|
1412
1421
|
//#endregion
|
|
1413
|
-
export { InteractionMcpServer$1 as $,
|
|
1414
|
-
//# sourceMappingURL=index-
|
|
1422
|
+
export { InteractionMcpServer$1 as $, enabledInteractionKinds as $t, ROUTER_MODEL_CATALOG_TIMEOUT_MS as A, ACP_PROTOCOL_VERSION as At, trackReasoningBlock as B, assertAcpTurnFinished as Bt, NATIVE_SESSION_CONTRACTS$1 as C, untilSettledOrAborted as Cn, wasNeverLaunched as Ct, provenStoreBinary as D, AcpBridgeSpawn as Dn, runtimeSecretsOverlay as Dt, isTrustedStoreBinary as E, PreparedCliLaunch as En, CliProviderAdapterBase as Et, resolveRouterModelLimits as F, AcpNewSessionResult as Ft, readCliTokenUsage as G, CliProviderOptions as Gt, nativeEffortArgs as H, CliExecutionInput as Ht, resolveRouterModelReasoningEfforts as I, AcpPromptResult as It, localMcpArgv as J, InteractionToggleConfig as Jt, recordCliTokenUsage as K, EphemeralContextInput as Kt, RepeatedToolFailure as L, AcpSessionUpdateParams as Lt, RouterModelLimits as M, AcpContentBlock as Mt, RouterModelLimitsResult as N, AcpInitializeParams as Nt, refuseSecretLaunch as O, AcpProcessSpec as On, createExecutionState as Ot, findRouterCatalogEntry as P, AcpInitializeResult as Pt, DEFAULT_INTERACTION_MCP_SERVER_NAME as Q, TurnEndReason as Qt, RepeatedToolFailureGuardOptions as R, AcpTurn as Rt, secretMcpScope as S, spawnUnderSecretMcpLease as Sn, rejectNotLaunched as St, assertSealedNativeHome as T, CliTurnSpawn as Tn, AcpProviderAdapterBase as Tt, accumulateCliTokenUsage as U, CliProviderConfig as Ut, kimiThinkingArgs as V, CliExecArgs as Vt, parseCliUsageLine as W, CliProviderLogger as Wt, McpInteractionSupport as X, PerTurnInteractionInput as Xt, localMcpEnv as Y, InteractionToggleKind as Yt, AskUserBridge as Z, ToolCallState as Zt, textDeltaEvents as _, resolveReferences as _n, jsonEventParser as _t, PERMISSION_DECISION_TIMEOUT_MS as a, withTurnInteractions as an, interactionMcpToolName as at, toolStartEvents as b, servableStdioServer as bn, SessionRehydrationError as bt, WorkspacePlanApplication$1 as c, SecretProfileMcpLease as cn, deterministicFilePartId as ct, TerminalPlanSupport as d, directStdioMcpServers as dn, EXECUTION_CORRELATION_HEADERS as dt, interactionToggleEnabled as en, InteractionMcpServerConfig$1 as et, TerminalPlanSupportOptions as f, exposedStdioServer as fn, EXECUTION_ID_HEADER as ft, streamPartBase as g, requireRecord as gn, PlaintextResponse as gt, sessionObservedEvents as h, joinQueue as hn, executionCorrelationHeaders as ht, InteractionHttpBridge as i, withEphemeralContext as in, brokerInteractionTools$1 as it, ResolveRouterModelLimitsInput as j, AcpBridgeConfig as jt, resolveExecutableRealpath as k, spawnAcpBridge as kn, ACP_MIN_PROTOCOL_VERSION as kt, codexDeveloperInstructionArgs as l, SecretProfileMcpServer as ln, inferMediaType as lt, reasoningEvents as m, isPlainRecord as mn, MANAGED_QUOTE_VERSION_HEADER as mt, HarnessId$1 as n, turnEndReason as nn, RequestPermissionBridge as nt, SECRET_REFERENCE$1 as o, SHARED_WORKSPACE_DIR_ENV as on, buildFileUrl as ot, finalTextEvent as p, isLoopbackEndpoint as pn, EXECUTION_TRACE_HEADER as pt, isLocalMcpConfig as q, ExecutionState as qt, InteractionBroker$1 as r, turnInteractionEnabled as rn, RequestPlanBridge as rt, SECRET_REFERENCE_PREFIX as s, SecretProfileMcpCredentialProxy as sn, deriveFilePart as st, CODEX_DISABLED_FEATURE_ARGS as t, readEphemeralContext as tn, PermissionPromptBridge as tt, homeXdgEnv as u, assertSealedNativeSearchPath as un, trackFilePart as ut, textSnapshotEvents as v, secretSessionTurnQueue as vn, plaintextResponseParser as vt, SEALED_NATIVE_HOME_LAYOUT as w, CliTurnProcess as wn, mapAcpSessionUpdate as wt, forgetSessionScopes as x, sharedSecretMcpRefused as xn, failureAfterCleanup as xt, toolResultEvents as y, servableMcpServer as yn, InvalidAttachmentError as yt, createRepeatedToolFailureGuard as z, acpContentText as zt };
|
|
1423
|
+
//# sourceMappingURL=index-CX7MWkZK.d.mts.map
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as InteractionMcpServer, $t as
|
|
1
|
+
import { $ as InteractionMcpServer, $t as enabledInteractionKinds, A as ROUTER_MODEL_CATALOG_TIMEOUT_MS, At as ACP_PROTOCOL_VERSION, B as trackReasoningBlock, Bt as assertAcpTurnFinished, C as NATIVE_SESSION_CONTRACTS, Cn as untilSettledOrAborted, Ct as wasNeverLaunched, D as provenStoreBinary, Dn as AcpBridgeSpawn, Dt as runtimeSecretsOverlay, E as isTrustedStoreBinary, En as PreparedCliLaunch, Et as CliProviderAdapterBase, F as resolveRouterModelLimits, Ft as AcpNewSessionResult, G as readCliTokenUsage, Gt as CliProviderOptions, H as nativeEffortArgs, Ht as CliExecutionInput, I as resolveRouterModelReasoningEfforts, It as AcpPromptResult, J as localMcpArgv, Jt as InteractionToggleConfig, K as recordCliTokenUsage, Kt as EphemeralContextInput, L as RepeatedToolFailure, Lt as AcpSessionUpdateParams, M as RouterModelLimits, Mt as AcpContentBlock, N as RouterModelLimitsResult, Nt as AcpInitializeParams, O as refuseSecretLaunch, On as AcpProcessSpec, Ot as createExecutionState, P as findRouterCatalogEntry, Pt as AcpInitializeResult, Q as DEFAULT_INTERACTION_MCP_SERVER_NAME, Qt as TurnEndReason, R as RepeatedToolFailureGuardOptions, Rt as AcpTurn, S as secretMcpScope, Sn as spawnUnderSecretMcpLease, St as rejectNotLaunched, T as assertSealedNativeHome, Tn as CliTurnSpawn, Tt as AcpProviderAdapterBase, U as accumulateCliTokenUsage, Ut as CliProviderConfig, V as kimiThinkingArgs, Vt as CliExecArgs, W as parseCliUsageLine, Wt as CliProviderLogger, X as McpInteractionSupport, Xt as PerTurnInteractionInput, Y as localMcpEnv, Yt as InteractionToggleKind, Z as AskUserBridge, Zt as ToolCallState, _ as textDeltaEvents, _n as resolveReferences, _t as jsonEventParser, a as PERMISSION_DECISION_TIMEOUT_MS, an as withTurnInteractions, at as interactionMcpToolName, b as toolStartEvents, bn as servableStdioServer, bt as SessionRehydrationError, c as WorkspacePlanApplication, cn as SecretProfileMcpLease, ct as deterministicFilePartId, d as TerminalPlanSupport, dn as directStdioMcpServers, dt as EXECUTION_CORRELATION_HEADERS, en as interactionToggleEnabled, et as InteractionMcpServerConfig, f as TerminalPlanSupportOptions, fn as exposedStdioServer, ft as EXECUTION_ID_HEADER, g as streamPartBase, gn as requireRecord, gt as PlaintextResponse, h as sessionObservedEvents, hn as joinQueue, ht as executionCorrelationHeaders, i as InteractionHttpBridge, in as withEphemeralContext, it as brokerInteractionTools, j as ResolveRouterModelLimitsInput, jt as AcpBridgeConfig, k as resolveExecutableRealpath, kn as spawnAcpBridge, kt as ACP_MIN_PROTOCOL_VERSION, l as codexDeveloperInstructionArgs, ln as SecretProfileMcpServer, lt as inferMediaType, m as reasoningEvents, mn as isPlainRecord, mt as MANAGED_QUOTE_VERSION_HEADER, n as HarnessId, nn as turnEndReason, nt as RequestPermissionBridge, o as SECRET_REFERENCE, on as SHARED_WORKSPACE_DIR_ENV, ot as buildFileUrl, p as finalTextEvent, pn as isLoopbackEndpoint, pt as EXECUTION_TRACE_HEADER, q as isLocalMcpConfig, qt as ExecutionState, r as InteractionBroker, rn as turnInteractionEnabled, rt as RequestPlanBridge, s as SECRET_REFERENCE_PREFIX, sn as SecretProfileMcpCredentialProxy, st as deriveFilePart, t as CODEX_DISABLED_FEATURE_ARGS, tn as readEphemeralContext, tt as PermissionPromptBridge, u as homeXdgEnv, un as assertSealedNativeSearchPath, ut as trackFilePart, v as textSnapshotEvents, vn as secretSessionTurnQueue, vt as plaintextResponseParser, w as SEALED_NATIVE_HOME_LAYOUT, wn as CliTurnProcess, wt as mapAcpSessionUpdate, x as forgetSessionScopes, xn as sharedSecretMcpRefused, xt as failureAfterCleanup, y as toolResultEvents, yn as servableMcpServer, yt as InvalidAttachmentError, z as createRepeatedToolFailureGuard, zt as acpContentText } from "./index-CX7MWkZK.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_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, WorkspacePlanApplication, accumulateCliTokenUsage, acpContentText, assertAcpTurnFinished, assertSealedNativeHome, assertSealedNativeSearchPath, brokerInteractionTools, buildFileUrl, codexDeveloperInstructionArgs, createExecutionState, createRepeatedToolFailureGuard, deriveFilePart, deterministicFilePartId, directStdioMcpServers, enabledInteractionKinds, executionCorrelationHeaders, exposedStdioServer, 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, refuseSecretLaunch, rejectNotLaunched, requireRecord, resolveExecutableRealpath, resolveReferences, resolveRouterModelLimits, resolveRouterModelReasoningEfforts, runtimeSecretsOverlay, secretMcpScope, secretSessionTurnQueue, servableMcpServer, servableStdioServer, sessionObservedEvents, spawnAcpBridge, 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_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, WorkspacePlanApplication, accumulateCliTokenUsage, acpContentText, assertAcpTurnFinished, assertSealedNativeHome, assertSealedNativeSearchPath, brokerInteractionTools, buildFileUrl, codexDeveloperInstructionArgs, createExecutionState, createRepeatedToolFailureGuard, deriveFilePart, deterministicFilePartId, directStdioMcpServers, enabledInteractionKinds, executionCorrelationHeaders, exposedStdioServer, 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, 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
|
|
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_TIMEOUT_MS, SEALED_NATIVE_HOME_LAYOUT, SECRET_REFERENCE, SECRET_REFERENCE_PREFIX, SHARED_WORKSPACE_DIR_ENV, SessionRehydrationError, TerminalPlanSupport, accumulateCliTokenUsage, acpContentText, assertAcpTurnFinished, assertSealedNativeHome, assertSealedNativeSearchPath, brokerInteractionTools, buildFileUrl, codexDeveloperInstructionArgs, createExecutionState, createRepeatedToolFailureGuard, deriveFilePart, deterministicFilePartId, directStdioMcpServers, enabledInteractionKinds, executionCorrelationHeaders, exposedStdioServer, 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, refuseSecretLaunch, rejectNotLaunched, requireRecord, resolveExecutableRealpath, resolveReferences, resolveRouterModelLimits, resolveRouterModelReasoningEfforts, runtimeSecretsOverlay, secretMcpScope, secretSessionTurnQueue, servableMcpServer, servableStdioServer, sessionObservedEvents, spawnAcpBridge, streamPartBase, textDeltaEvents, textSnapshotEvents, toolResultEvents, toolStartEvents, trackFilePart, trackReasoningBlock, turnEndReason, turnInteractionEnabled, untilSettledOrAborted, wasNeverLaunched, withEphemeralContext, withTurnInteractions };
|
|
1
|
+
import { $ as createExecutionState, A as nativeEffortArgs, At as MANAGED_QUOTE_VERSION_HEADER, B as accumulateCliTokenUsage, Bt as toolResultEvents, C as spawnUnderSecretMcpLease, Ct as failureAfterCleanup, D as resolveRouterModelLimits, Dt as EXECUTION_CORRELATION_HEADERS, E as findRouterCatalogEntry, Et as runtimeSecretsOverlay, F as brokerInteractionTools, Ft as reasoningEvents, G as createRepeatedToolFailureGuard, Gt as acpContentText, H as readCliTokenUsage, Ht as trackReasoningBlock, I as interactionMcpToolName, It as sessionObservedEvents, J as assertSealedNativeHome, K as NATIVE_SESSION_CONTRACTS, Kt as assertAcpTurnFinished, L as jsonEventParser, Lt as streamPartBase, M as TerminalPlanSupport, Mt as homeXdgEnv, N as DEFAULT_INTERACTION_MCP_SERVER_NAME, Nt as mapAcpSessionUpdate, O as resolveRouterModelReasoningEfforts, Ot as EXECUTION_ID_HEADER, P as InteractionMcpServer, Pt as finalTextEvent, Q as resolveExecutableRealpath, R as plaintextResponseParser, Rt as textDeltaEvents, S as sharedSecretMcpRefused, St as SessionRehydrationError, T as ROUTER_MODEL_CATALOG_TIMEOUT_MS, Tt as wasNeverLaunched, U as recordCliTokenUsage, Ut as ACP_MIN_PROTOCOL_VERSION, V as parseCliUsageLine, Vt as toolStartEvents, W as CliProviderAdapterBase, Wt as ACP_PROTOCOL_VERSION, X as provenStoreBinary, Y as isTrustedStoreBinary, Z as refuseSecretLaunch, _ as requireRecord, _t as deriveFilePart, a as SECRET_REFERENCE, at as readEphemeralContext, b as servableMcpServer, bt as trackFilePart, c as forgetSessionScopes, ct as withEphemeralContext, d as assertSealedNativeSearchPath, dt as MAX_TOTAL_INLINE_IMAGE_BYTES, et as isLocalMcpConfig, f as directStdioMcpServers, ft as PROMPT_SECTION_SEPARATOR, g as joinQueue, gt as buildFileUrl, h as isPlainRecord, ht as prependPromptSection, i as PERMISSION_DECISION_TIMEOUT_MS, it as interactionToggleEnabled, j as McpInteractionSupport, jt as executionCorrelationHeaders, k as kimiThinkingArgs, kt as EXECUTION_TRACE_HEADER, l as secretMcpScope, lt as withTurnInteractions, m as isLoopbackEndpoint, mt as preparePromptInputParts, n as InteractionBroker, nt as localMcpEnv, o as SECRET_REFERENCE_PREFIX, ot as turnEndReason, p as exposedStdioServer, pt as partitionImageAttachments, q as SEALED_NATIVE_HOME_LAYOUT, qt as spawnAcpBridge, r as InteractionHttpBridge, rt as enabledInteractionKinds, s as codexDeveloperInstructionArgs, st as turnInteractionEnabled, t as CODEX_DISABLED_FEATURE_ARGS, tt as localMcpArgv, u as SHARED_WORKSPACE_DIR_ENV, ut as MAX_INLINE_IMAGE_BYTES, v as resolveReferences, vt as deterministicFilePartId, w as untilSettledOrAborted, wt as rejectNotLaunched, x as servableStdioServer, xt as InvalidAttachmentError, y as secretSessionTurnQueue, yt as inferMediaType, z as AcpProviderAdapterBase, zt as textSnapshotEvents } from "./src-BVg56gUM.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_TIMEOUT_MS, SEALED_NATIVE_HOME_LAYOUT, SECRET_REFERENCE, SECRET_REFERENCE_PREFIX, SHARED_WORKSPACE_DIR_ENV, SessionRehydrationError, TerminalPlanSupport, accumulateCliTokenUsage, acpContentText, assertAcpTurnFinished, assertSealedNativeHome, assertSealedNativeSearchPath, brokerInteractionTools, buildFileUrl, codexDeveloperInstructionArgs, createExecutionState, createRepeatedToolFailureGuard, deriveFilePart, deterministicFilePartId, directStdioMcpServers, enabledInteractionKinds, executionCorrelationHeaders, exposedStdioServer, 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, 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 };
|
|
@@ -1613,12 +1613,15 @@ var CliAdapterProfile = class extends CliAdapterLifecycle {
|
|
|
1613
1613
|
referencesSharedFileSecrets = false;
|
|
1614
1614
|
profileSecretProvider;
|
|
1615
1615
|
secretProfileRuntimeKeyProvider;
|
|
1616
|
+
/** The executor's MCP proxy, as the owner of the secret scopes this adapter opens. */
|
|
1617
|
+
mcpOwner;
|
|
1616
1618
|
/** Private native preparation state; never part of a returned receipt. */
|
|
1617
1619
|
secretProfileRevisions = /* @__PURE__ */ new WeakMap();
|
|
1618
1620
|
constructor(options = {}) {
|
|
1619
1621
|
super(options);
|
|
1620
1622
|
this.profileSecretProvider = options.profileSecretProvider ?? UNAVAILABLE_AGENT_PROFILE_SECRET_PROVIDER;
|
|
1621
1623
|
this.secretProfileRuntimeKeyProvider = options.secretProfileRuntimeKeyProvider ?? UNAVAILABLE_AGENT_PROFILE_SECRET_PROVIDER;
|
|
1624
|
+
this.mcpOwner = { proxy: options.mcpCredentialProxy };
|
|
1622
1625
|
}
|
|
1623
1626
|
/** The exact child environment a turn uses; shared with prewarm paths. */
|
|
1624
1627
|
buildTurnEnvironment(executionConfig, profilePlan, workspaceRoot, correlationHeaders) {
|
|
@@ -1760,7 +1763,10 @@ var CliAdapterProfile = class extends CliAdapterLifecycle {
|
|
|
1760
1763
|
references,
|
|
1761
1764
|
files: plan.files.filter((file) => file.source === "user" && file.root !== "agent")
|
|
1762
1765
|
});
|
|
1763
|
-
const exposed = this.referencesSharedFileSecrets ?
|
|
1766
|
+
const exposed = workspacePlanSecretCount(this.referencesSharedFileSecrets ? {
|
|
1767
|
+
...plan,
|
|
1768
|
+
files: []
|
|
1769
|
+
} : plan);
|
|
1764
1770
|
if (exposed > 0) this.logger.warn("profile_secret_exposed_shared_launch", {
|
|
1765
1771
|
harness: plan.harness,
|
|
1766
1772
|
secretSlots: exposed
|
|
@@ -2418,6 +2424,131 @@ function createExecutionState(sessionId, messageId, workspaceRoot) {
|
|
|
2418
2424
|
};
|
|
2419
2425
|
}
|
|
2420
2426
|
//#endregion
|
|
2427
|
+
//#region src/secret-native-proof.ts
|
|
2428
|
+
const proofKey = Symbol.for("tangle.secret-native-binary-proofs");
|
|
2429
|
+
const runtime$1 = globalThis;
|
|
2430
|
+
const proven = runtime$1[proofKey] ?? /* @__PURE__ */ new Set();
|
|
2431
|
+
runtime$1[proofKey] = proven;
|
|
2432
|
+
/** Prove an immutable executable, under the launch's own identity and environment. */
|
|
2433
|
+
async function provenStoreBinary(expected, config) {
|
|
2434
|
+
if (!config.isolatedIdentity || config.inheritEnv !== false) refuseSecretLaunch("Secret native binary proof requires an isolated identity and environment", { path: config.command });
|
|
2435
|
+
const command = resolveExecutableRealpath(config.command, config.env?.PATH);
|
|
2436
|
+
if (!command || !isTrustedStoreBinary(command)) refuseSecretLaunch("Secret native launch requires a root-owned Nix store binary", { path: command ?? config.command });
|
|
2437
|
+
const key = `${command}\0${expected}`;
|
|
2438
|
+
if (proven.has(key)) return command;
|
|
2439
|
+
const probe = await execCli({
|
|
2440
|
+
command,
|
|
2441
|
+
cwd: config.cwd,
|
|
2442
|
+
env: config.env,
|
|
2443
|
+
inheritEnv: config.inheritEnv,
|
|
2444
|
+
signal: config.signal,
|
|
2445
|
+
isolatedIdentity: config.isolatedIdentity,
|
|
2446
|
+
args: ["--version"],
|
|
2447
|
+
spawnOptions: config.isolatedIdentity,
|
|
2448
|
+
timeoutMs: 15e3
|
|
2449
|
+
});
|
|
2450
|
+
const version = probe.stdout?.trim();
|
|
2451
|
+
if (!probe.exit.success || version !== expected) refuseSecretLaunch(`Secret native launch expected ${expected} at ${command}, received no matching version`, { exitCode: probe.exit.code });
|
|
2452
|
+
proven.add(key);
|
|
2453
|
+
return command;
|
|
2454
|
+
}
|
|
2455
|
+
/** A reported version alone cannot establish an immutable executable. */
|
|
2456
|
+
function isTrustedStoreBinary(realpath) {
|
|
2457
|
+
if (!realpath.startsWith("/nix/store/")) return false;
|
|
2458
|
+
try {
|
|
2459
|
+
for (const path of [realpath, dirname(realpath)]) {
|
|
2460
|
+
const stat = fs$1.lstatSync(path);
|
|
2461
|
+
if (stat.uid !== 0 || (stat.mode & 18) !== 0) return false;
|
|
2462
|
+
}
|
|
2463
|
+
return true;
|
|
2464
|
+
} catch {
|
|
2465
|
+
return false;
|
|
2466
|
+
}
|
|
2467
|
+
}
|
|
2468
|
+
/** The real file a launch of `command` executes under `pathEnv`. */
|
|
2469
|
+
function resolveExecutableRealpath(command, pathEnv) {
|
|
2470
|
+
if (command.includes("/") && !isAbsolute(command)) return void 0;
|
|
2471
|
+
const candidates = command.includes("/") ? [command] : (pathEnv ?? "").split(":").filter(isAbsolute).map((dir) => join(dir, command));
|
|
2472
|
+
for (const candidate of candidates) try {
|
|
2473
|
+
fs$1.accessSync(candidate, fs$1.constants.X_OK);
|
|
2474
|
+
if (fs$1.statSync(candidate).isFile()) return fs$1.realpathSync(candidate);
|
|
2475
|
+
} catch {}
|
|
2476
|
+
}
|
|
2477
|
+
const SEALED_NATIVE_HOME_LAYOUT = {
|
|
2478
|
+
codex: [
|
|
2479
|
+
[
|
|
2480
|
+
".",
|
|
2481
|
+
1016,
|
|
2482
|
+
true
|
|
2483
|
+
],
|
|
2484
|
+
[
|
|
2485
|
+
".codex",
|
|
2486
|
+
1016,
|
|
2487
|
+
true
|
|
2488
|
+
],
|
|
2489
|
+
[
|
|
2490
|
+
".agents",
|
|
2491
|
+
360,
|
|
2492
|
+
true
|
|
2493
|
+
],
|
|
2494
|
+
[
|
|
2495
|
+
".codex/skills",
|
|
2496
|
+
360,
|
|
2497
|
+
true
|
|
2498
|
+
],
|
|
2499
|
+
[
|
|
2500
|
+
".codex/rules",
|
|
2501
|
+
360,
|
|
2502
|
+
true
|
|
2503
|
+
],
|
|
2504
|
+
[
|
|
2505
|
+
".codex/config.toml",
|
|
2506
|
+
288,
|
|
2507
|
+
false
|
|
2508
|
+
],
|
|
2509
|
+
[
|
|
2510
|
+
".codex/AGENTS.md",
|
|
2511
|
+
288,
|
|
2512
|
+
false
|
|
2513
|
+
],
|
|
2514
|
+
[
|
|
2515
|
+
".codex/AGENTS.override.md",
|
|
2516
|
+
288,
|
|
2517
|
+
false
|
|
2518
|
+
],
|
|
2519
|
+
[
|
|
2520
|
+
".codex/hooks.json",
|
|
2521
|
+
288,
|
|
2522
|
+
false
|
|
2523
|
+
]
|
|
2524
|
+
],
|
|
2525
|
+
opencode: [[
|
|
2526
|
+
".",
|
|
2527
|
+
456,
|
|
2528
|
+
true
|
|
2529
|
+
], [
|
|
2530
|
+
".opencode",
|
|
2531
|
+
360,
|
|
2532
|
+
true
|
|
2533
|
+
]]
|
|
2534
|
+
};
|
|
2535
|
+
function assertSealedNativeHome(home, gid, layout) {
|
|
2536
|
+
for (const [relative, mode, directory] of layout) {
|
|
2537
|
+
const path = join(home, relative);
|
|
2538
|
+
const stat = fs$1.lstatSync(path);
|
|
2539
|
+
if (fs$1.realpathSync(path) !== path || stat.uid !== 0 || stat.gid !== gid || (stat.mode & 4095) !== mode || stat.isDirectory() !== directory) refuseSecretLaunch(`Secret native HOME authority is not sealed at ${path}: expected uid0 gid${gid} mode${mode.toString(8)} directory=${directory}; actual uid${stat.uid} gid${stat.gid} mode${(stat.mode & 4095).toString(8)} directory=${stat.isDirectory()}`);
|
|
2540
|
+
}
|
|
2541
|
+
}
|
|
2542
|
+
/** Only selected structural facts enter a refusal; payloads and causes never do. */
|
|
2543
|
+
function refuseSecretLaunch(reason, { path, expected, actual, exitCode } = {}) {
|
|
2544
|
+
const detail = JSON.stringify({
|
|
2545
|
+
path,
|
|
2546
|
+
expected,
|
|
2547
|
+
actual
|
|
2548
|
+
}).slice(0, 768);
|
|
2549
|
+
throw new Error(detail === "{}" ? reason : `${reason} ${detail}`, { cause: typeof exitCode === "number" || exitCode === null ? { exitCode } : void 0 });
|
|
2550
|
+
}
|
|
2551
|
+
//#endregion
|
|
2421
2552
|
//#region src/session-preparation.ts
|
|
2422
2553
|
async function prepareExecutionSession(context, input) {
|
|
2423
2554
|
let sessionId = input.sessionId;
|
|
@@ -3451,7 +3582,8 @@ var CliProviderAdapterBase = class extends CliAdapterMcp {
|
|
|
3451
3582
|
sessionContract,
|
|
3452
3583
|
timeoutMs,
|
|
3453
3584
|
mintedSessionId,
|
|
3454
|
-
execArgs
|
|
3585
|
+
execArgs,
|
|
3586
|
+
profilePlan
|
|
3455
3587
|
};
|
|
3456
3588
|
}
|
|
3457
3589
|
/** Reserve and announce the native session id a pre-minted harness already has. */
|
|
@@ -3487,7 +3619,8 @@ var CliProviderAdapterBase = class extends CliAdapterMcp {
|
|
|
3487
3619
|
env,
|
|
3488
3620
|
signal: executionSignal,
|
|
3489
3621
|
timeoutMs: launch.timeoutMs,
|
|
3490
|
-
parser: parserConfig
|
|
3622
|
+
parser: parserConfig,
|
|
3623
|
+
profilePlan: launch.profilePlan
|
|
3491
3624
|
});
|
|
3492
3625
|
const cliProcess = spawnedProcess instanceof Promise ? await spawnedProcess : spawnedProcess;
|
|
3493
3626
|
this.activeProcesses.add(cliProcess);
|
|
@@ -3562,6 +3695,7 @@ var CliProviderAdapterBase = class extends CliAdapterMcp {
|
|
|
3562
3695
|
this.ensureInitialized();
|
|
3563
3696
|
const sessionId = input.sessionId ?? randomUUID();
|
|
3564
3697
|
const { executionProfile, profilePlan } = await this.materializeTurnProfile(input, sessionId);
|
|
3698
|
+
if (Object.keys(this.secretProfileReferences(profilePlan) ?? {}).length > 0) refuseSecretLaunch("Prepared launch cannot hold a profile secret MCP lease; use execute instead");
|
|
3565
3699
|
const workspaceRoot = input.workspaceRoot ?? this.storagePath;
|
|
3566
3700
|
const preparedInput = await this.preparePromptInput(normalizeInputParts(input), workspaceRoot, sessionId);
|
|
3567
3701
|
const promptText = this.composePromptText(preparedInput.promptText, input);
|
|
@@ -4550,131 +4684,6 @@ async function resolveRouterModelLimits(input) {
|
|
|
4550
4684
|
};
|
|
4551
4685
|
}
|
|
4552
4686
|
//#endregion
|
|
4553
|
-
//#region src/secret-native-proof.ts
|
|
4554
|
-
const proofKey = Symbol.for("tangle.secret-native-binary-proofs");
|
|
4555
|
-
const runtime$1 = globalThis;
|
|
4556
|
-
const proven = runtime$1[proofKey] ?? /* @__PURE__ */ new Set();
|
|
4557
|
-
runtime$1[proofKey] = proven;
|
|
4558
|
-
/** Prove an immutable executable, under the launch's own identity and environment. */
|
|
4559
|
-
async function provenStoreBinary(expected, config) {
|
|
4560
|
-
if (!config.isolatedIdentity || config.inheritEnv !== false) refuseSecretLaunch("Secret native binary proof requires an isolated identity and environment", { path: config.command });
|
|
4561
|
-
const command = resolveExecutableRealpath(config.command, config.env?.PATH);
|
|
4562
|
-
if (!command || !isTrustedStoreBinary(command)) refuseSecretLaunch("Secret native launch requires a root-owned Nix store binary", { path: command ?? config.command });
|
|
4563
|
-
const key = `${command}\0${expected}`;
|
|
4564
|
-
if (proven.has(key)) return command;
|
|
4565
|
-
const probe = await execCli({
|
|
4566
|
-
command,
|
|
4567
|
-
cwd: config.cwd,
|
|
4568
|
-
env: config.env,
|
|
4569
|
-
inheritEnv: config.inheritEnv,
|
|
4570
|
-
signal: config.signal,
|
|
4571
|
-
isolatedIdentity: config.isolatedIdentity,
|
|
4572
|
-
args: ["--version"],
|
|
4573
|
-
spawnOptions: config.isolatedIdentity,
|
|
4574
|
-
timeoutMs: 15e3
|
|
4575
|
-
});
|
|
4576
|
-
const version = probe.stdout?.trim();
|
|
4577
|
-
if (!probe.exit.success || version !== expected) refuseSecretLaunch(`Secret native launch expected ${expected} at ${command}, received no matching version`, { exitCode: probe.exit.code });
|
|
4578
|
-
proven.add(key);
|
|
4579
|
-
return command;
|
|
4580
|
-
}
|
|
4581
|
-
/** A reported version alone cannot establish an immutable executable. */
|
|
4582
|
-
function isTrustedStoreBinary(realpath) {
|
|
4583
|
-
if (!realpath.startsWith("/nix/store/")) return false;
|
|
4584
|
-
try {
|
|
4585
|
-
for (const path of [realpath, dirname(realpath)]) {
|
|
4586
|
-
const stat = fs$1.lstatSync(path);
|
|
4587
|
-
if (stat.uid !== 0 || (stat.mode & 18) !== 0) return false;
|
|
4588
|
-
}
|
|
4589
|
-
return true;
|
|
4590
|
-
} catch {
|
|
4591
|
-
return false;
|
|
4592
|
-
}
|
|
4593
|
-
}
|
|
4594
|
-
/** The real file a launch of `command` executes under `pathEnv`. */
|
|
4595
|
-
function resolveExecutableRealpath(command, pathEnv) {
|
|
4596
|
-
if (command.includes("/") && !isAbsolute(command)) return void 0;
|
|
4597
|
-
const candidates = command.includes("/") ? [command] : (pathEnv ?? "").split(":").filter(isAbsolute).map((dir) => join(dir, command));
|
|
4598
|
-
for (const candidate of candidates) try {
|
|
4599
|
-
fs$1.accessSync(candidate, fs$1.constants.X_OK);
|
|
4600
|
-
if (fs$1.statSync(candidate).isFile()) return fs$1.realpathSync(candidate);
|
|
4601
|
-
} catch {}
|
|
4602
|
-
}
|
|
4603
|
-
const SEALED_NATIVE_HOME_LAYOUT = {
|
|
4604
|
-
codex: [
|
|
4605
|
-
[
|
|
4606
|
-
".",
|
|
4607
|
-
1016,
|
|
4608
|
-
true
|
|
4609
|
-
],
|
|
4610
|
-
[
|
|
4611
|
-
".codex",
|
|
4612
|
-
1016,
|
|
4613
|
-
true
|
|
4614
|
-
],
|
|
4615
|
-
[
|
|
4616
|
-
".agents",
|
|
4617
|
-
360,
|
|
4618
|
-
true
|
|
4619
|
-
],
|
|
4620
|
-
[
|
|
4621
|
-
".codex/skills",
|
|
4622
|
-
360,
|
|
4623
|
-
true
|
|
4624
|
-
],
|
|
4625
|
-
[
|
|
4626
|
-
".codex/rules",
|
|
4627
|
-
360,
|
|
4628
|
-
true
|
|
4629
|
-
],
|
|
4630
|
-
[
|
|
4631
|
-
".codex/config.toml",
|
|
4632
|
-
288,
|
|
4633
|
-
false
|
|
4634
|
-
],
|
|
4635
|
-
[
|
|
4636
|
-
".codex/AGENTS.md",
|
|
4637
|
-
288,
|
|
4638
|
-
false
|
|
4639
|
-
],
|
|
4640
|
-
[
|
|
4641
|
-
".codex/AGENTS.override.md",
|
|
4642
|
-
288,
|
|
4643
|
-
false
|
|
4644
|
-
],
|
|
4645
|
-
[
|
|
4646
|
-
".codex/hooks.json",
|
|
4647
|
-
288,
|
|
4648
|
-
false
|
|
4649
|
-
]
|
|
4650
|
-
],
|
|
4651
|
-
opencode: [[
|
|
4652
|
-
".",
|
|
4653
|
-
456,
|
|
4654
|
-
true
|
|
4655
|
-
], [
|
|
4656
|
-
".opencode",
|
|
4657
|
-
360,
|
|
4658
|
-
true
|
|
4659
|
-
]]
|
|
4660
|
-
};
|
|
4661
|
-
function assertSealedNativeHome(home, gid, layout) {
|
|
4662
|
-
for (const [relative, mode, directory] of layout) {
|
|
4663
|
-
const path = join(home, relative);
|
|
4664
|
-
const stat = fs$1.lstatSync(path);
|
|
4665
|
-
if (fs$1.realpathSync(path) !== path || stat.uid !== 0 || stat.gid !== gid || (stat.mode & 4095) !== mode || stat.isDirectory() !== directory) refuseSecretLaunch(`Secret native HOME authority is not sealed at ${path}: expected uid0 gid${gid} mode${mode.toString(8)} directory=${directory}; actual uid${stat.uid} gid${stat.gid} mode${(stat.mode & 4095).toString(8)} directory=${stat.isDirectory()}`);
|
|
4666
|
-
}
|
|
4667
|
-
}
|
|
4668
|
-
/** Only selected structural facts enter a refusal; payloads and causes never do. */
|
|
4669
|
-
function refuseSecretLaunch(reason, { path, expected, actual, exitCode } = {}) {
|
|
4670
|
-
const detail = JSON.stringify({
|
|
4671
|
-
path,
|
|
4672
|
-
expected,
|
|
4673
|
-
actual
|
|
4674
|
-
}).slice(0, 768);
|
|
4675
|
-
throw new Error(detail === "{}" ? reason : `${reason} ${detail}`, { cause: typeof exitCode === "number" || exitCode === null ? { exitCode } : void 0 });
|
|
4676
|
-
}
|
|
4677
|
-
//#endregion
|
|
4678
4687
|
//#region src/secret-profile-mcp.ts
|
|
4679
4688
|
function requireRecord(raw, message) {
|
|
4680
4689
|
return isRecord(raw) ? raw : refuseSecretLaunch(message);
|
|
@@ -4865,6 +4874,34 @@ turnsRuntime[turnsKey] = sessionTurns;
|
|
|
4865
4874
|
function secretSessionTurnQueue(view) {
|
|
4866
4875
|
return joinQueue(sessionTurns, view);
|
|
4867
4876
|
}
|
|
4877
|
+
/** A shared launch never serves a secret MCP server to an agent on the executor's UID, nor a stdio one without a root sidecar to bridge it. */
|
|
4878
|
+
function sharedSecretMcpRefused(servers, agentUid) {
|
|
4879
|
+
return servers.length > 0 && (!agentUid || servers.some((server) => "command" in server) && process.getuid?.() !== 0);
|
|
4880
|
+
}
|
|
4881
|
+
/** Spawn a turn under its session's MCP lease: the session's turns hold it one at a time, each until its process exits. */
|
|
4882
|
+
async function spawnUnderSecretMcpLease(scope, signal, lease, spawn) {
|
|
4883
|
+
const queue = secretSessionTurnQueue(scope);
|
|
4884
|
+
let release;
|
|
4885
|
+
const done = async () => {
|
|
4886
|
+
try {
|
|
4887
|
+
await release?.();
|
|
4888
|
+
queue.release();
|
|
4889
|
+
} catch (error) {
|
|
4890
|
+
queue.retryCleanup(done);
|
|
4891
|
+
throw error;
|
|
4892
|
+
}
|
|
4893
|
+
};
|
|
4894
|
+
try {
|
|
4895
|
+
await untilSettledOrAborted(queue.previous, signal);
|
|
4896
|
+
release = await lease();
|
|
4897
|
+
const turn = await spawn();
|
|
4898
|
+
turn.exitPromise = turn.exitPromise.finally(done);
|
|
4899
|
+
return turn;
|
|
4900
|
+
} catch (error) {
|
|
4901
|
+
await done();
|
|
4902
|
+
throw error;
|
|
4903
|
+
}
|
|
4904
|
+
}
|
|
4868
4905
|
/** An HTTP URL on loopback with an explicit port and no URL credentials. */
|
|
4869
4906
|
function isLoopbackEndpoint(value) {
|
|
4870
4907
|
if (typeof value !== "string") return false;
|
|
@@ -4906,6 +4943,6 @@ async function forgetSessionScopes(target) {
|
|
|
4906
4943
|
}
|
|
4907
4944
|
}
|
|
4908
4945
|
//#endregion
|
|
4909
|
-
export {
|
|
4946
|
+
export { createExecutionState as $, nativeEffortArgs as A, MANAGED_QUOTE_VERSION_HEADER as At, accumulateCliTokenUsage as B, toolResultEvents as Bt, spawnUnderSecretMcpLease as C, failureAfterCleanup as Ct, resolveRouterModelLimits as D, EXECUTION_CORRELATION_HEADERS as Dt, findRouterCatalogEntry as E, runtimeSecretsOverlay as Et, brokerInteractionTools$1 as F, reasoningEvents as Ft, createRepeatedToolFailureGuard as G, acpContentText as Gt, readCliTokenUsage as H, trackReasoningBlock as Ht, interactionMcpToolName as I, sessionObservedEvents as It, assertSealedNativeHome as J, NATIVE_SESSION_CONTRACTS$1 as K, assertAcpTurnFinished as Kt, jsonEventParser as L, streamPartBase as Lt, TerminalPlanSupport as M, homeXdgEnv as Mt, DEFAULT_INTERACTION_MCP_SERVER_NAME as N, mapAcpSessionUpdate as Nt, resolveRouterModelReasoningEfforts as O, EXECUTION_ID_HEADER as Ot, InteractionMcpServer$1 as P, finalTextEvent as Pt, resolveExecutableRealpath as Q, plaintextResponseParser as R, textDeltaEvents as Rt, sharedSecretMcpRefused as S, SessionRehydrationError as St, ROUTER_MODEL_CATALOG_TIMEOUT_MS as T, wasNeverLaunched as Tt, recordCliTokenUsage as U, ACP_MIN_PROTOCOL_VERSION as Ut, parseCliUsageLine as V, toolStartEvents as Vt, CliProviderAdapterBase as W, ACP_PROTOCOL_VERSION as Wt, provenStoreBinary as X, isTrustedStoreBinary as Y, refuseSecretLaunch as Z, requireRecord as _, deriveFilePart as _t, SECRET_REFERENCE$1 as a, readEphemeralContext as at, servableMcpServer as b, trackFilePart as bt, forgetSessionScopes as c, withEphemeralContext as ct, assertSealedNativeSearchPath as d, MAX_TOTAL_INLINE_IMAGE_BYTES as dt, isLocalMcpConfig as et, directStdioMcpServers as f, PROMPT_SECTION_SEPARATOR as ft, joinQueue as g, buildFileUrl as gt, isPlainRecord as h, prependPromptSection as ht, PERMISSION_DECISION_TIMEOUT_MS as i, interactionToggleEnabled as it, McpInteractionSupport as j, executionCorrelationHeaders as jt, kimiThinkingArgs as k, EXECUTION_TRACE_HEADER as kt, secretMcpScope as l, withTurnInteractions as lt, isLoopbackEndpoint as m, preparePromptInputParts as mt, InteractionBroker$1 as n, localMcpEnv as nt, SECRET_REFERENCE_PREFIX as o, turnEndReason as ot, exposedStdioServer as p, partitionImageAttachments as pt, SEALED_NATIVE_HOME_LAYOUT as q, spawnAcpBridge as qt, InteractionHttpBridge as r, enabledInteractionKinds as rt, codexDeveloperInstructionArgs as s, turnInteractionEnabled as st, CODEX_DISABLED_FEATURE_ARGS as t, localMcpArgv as tt, SHARED_WORKSPACE_DIR_ENV as u, MAX_INLINE_IMAGE_BYTES as ut, resolveReferences as v, deterministicFilePartId as vt, untilSettledOrAborted as w, rejectNotLaunched as wt, servableStdioServer as x, InvalidAttachmentError as xt, secretSessionTurnQueue as y, inferMediaType as yt, AcpProviderAdapterBase as z, textSnapshotEvents as zt };
|
|
4910
4947
|
|
|
4911
|
-
//# sourceMappingURL=src-
|
|
4948
|
+
//# sourceMappingURL=src-BVg56gUM.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.
|
|
3
|
+
"version": "0.13.108",
|
|
4
4
|
"description": "Base adapter for CLI-based AI agent providers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.mjs",
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"registry": "https://registry.npmjs.org"
|
|
80
80
|
},
|
|
81
81
|
"tangleRelease": {
|
|
82
|
-
"sourceSha": "
|
|
83
|
-
"mergedAt": "2026-11-
|
|
82
|
+
"sourceSha": "cf28db313cb28826df29ab6638c4953327a94349",
|
|
83
|
+
"mergedAt": "2026-11-16T19:57:07-08:00"
|
|
84
84
|
},
|
|
85
85
|
"scripts": {
|
|
86
86
|
"build": "tsdown",
|