@tangle-network/sdk-provider-cli-base 0.13.116 → 0.13.118
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-CghBvmcZ.d.mts → index-GdQrLMJM.d.mts} +2 -15
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{src-BJwmKRGU.mjs → src-DxASyI1l.mjs} +5 -23
- package/package.json +6 -6
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Et as CliProviderAdapterBase, Ut as CliProviderConfig, Vt as CliExecArgs, qt as ExecutionState } from "../../index-
|
|
1
|
+
import { Et as CliProviderAdapterBase, Ut as CliProviderConfig, Vt as CliExecArgs, qt as ExecutionState } from "../../index-GdQrLMJM.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 { Bt as
|
|
1
|
+
import { Bt as toolStartEvents, Ft as sessionObservedEvents, Lt as textDeltaEvents, N as localMcpArgv, O as recordCliTokenUsage, P as localMcpEnv, Pt as reasoningEvents, S as jsonEventParser, k as CliProviderAdapterBase, zt as toolResultEvents } from "../../src-DxASyI1l.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 { Cn as CliTurnProcess, Et as CliProviderAdapterBase, Ut as CliProviderConfig, Vt as CliExecArgs, qt as ExecutionState, wn as CliTurnSpawn } from "../../index-GdQrLMJM.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 { C as plaintextResponseParser,
|
|
1
|
+
import { C as plaintextResponseParser, Ft as sessionObservedEvents, k as CliProviderAdapterBase } from "../../src-DxASyI1l.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, Ut as CliProviderConfig, Vt as CliExecArgs, qt as ExecutionState } from "../../index-
|
|
1
|
+
import { Et as CliProviderAdapterBase, Ut as CliProviderConfig, Vt as CliExecArgs, qt as ExecutionState } from "../../index-GdQrLMJM.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 { Bt as
|
|
1
|
+
import { Bt as toolStartEvents, F as enabledInteractionKinds, Ft as sessionObservedEvents, It as streamPartBase, Lt as textDeltaEvents, M as isLocalMcpConfig, N as localMcpArgv, O as recordCliTokenUsage, P as localMcpEnv, Pt as reasoningEvents, S as jsonEventParser, V as withTurnInteractions, g as McpInteractionSupport, k as CliProviderAdapterBase, zt as toolResultEvents } from "../../src-DxASyI1l.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, Ut as CliProviderConfig, Vt as CliExecArgs, qt as ExecutionState } from "../../index-
|
|
1
|
+
import { Et as CliProviderAdapterBase, Ut as CliProviderConfig, Vt as CliExecArgs, qt as ExecutionState } from "../../index-GdQrLMJM.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 { C as plaintextResponseParser,
|
|
1
|
+
import { C as plaintextResponseParser, Ft as sessionObservedEvents, k as CliProviderAdapterBase, mt as prependPromptSection } from "../../src-DxASyI1l.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, Ut as CliProviderConfig, Vt as CliExecArgs, n as HarnessId, qt as ExecutionState } from "../../index-
|
|
1
|
+
import { Et as CliProviderAdapterBase, Ut as CliProviderConfig, Vt as CliExecArgs, n as HarnessId, qt as ExecutionState } from "../../index-GdQrLMJM.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 { C as plaintextResponseParser,
|
|
1
|
+
import { C as plaintextResponseParser, Ft as sessionObservedEvents, M as isLocalMcpConfig, N as localMcpArgv, O as recordCliTokenUsage, P as localMcpEnv, ft as partitionImageAttachments, k as CliProviderAdapterBase, mt as prependPromptSection } from "../../src-DxASyI1l.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, Ut as CliProviderConfig, Vt as CliExecArgs, n as HarnessId, qt as ExecutionState } from "../../index-
|
|
1
|
+
import { Et as CliProviderAdapterBase, Ut as CliProviderConfig, Vt as CliExecArgs, n as HarnessId, qt as ExecutionState } from "../../index-GdQrLMJM.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 { C as plaintextResponseParser, E as parseCliUsageLine,
|
|
1
|
+
import { C as plaintextResponseParser, E as parseCliUsageLine, Ft as sessionObservedEvents, O as recordCliTokenUsage, k as CliProviderAdapterBase, mt as prependPromptSection } from "../../src-DxASyI1l.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, Ut as CliProviderConfig, Vt as CliExecArgs, qt as ExecutionState } from "../../index-
|
|
1
|
+
import { Et as CliProviderAdapterBase, Ut as CliProviderConfig, Vt as CliExecArgs, qt as ExecutionState } from "../../index-GdQrLMJM.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 { C as plaintextResponseParser,
|
|
1
|
+
import { C as plaintextResponseParser, Ft as sessionObservedEvents, k as CliProviderAdapterBase, mt as prependPromptSection } from "../../src-DxASyI1l.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, Ut as CliProviderConfig, Vt as CliExecArgs, c as WorkspacePlanApplication, n as HarnessId, qt as ExecutionState } from "../../index-
|
|
1
|
+
import { Et as CliProviderAdapterBase, Ut as CliProviderConfig, Vt as CliExecArgs, c as WorkspacePlanApplication, n as HarnessId, qt as ExecutionState } from "../../index-GdQrLMJM.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 { Ft as sessionObservedEvents, Nt as finalTextEvent, O as recordCliTokenUsage, h as nativeEffortArgs, k as CliProviderAdapterBase, mt as prependPromptSection } from "../../src-DxASyI1l.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 { Dn as
|
|
1
|
+
import { Dn as AcpProcessSpec, En as AcpBridgeSpawn, Mt as AcpContentBlock, Rt as AcpTurn, Tt as AcpProviderAdapterBase, jt as AcpBridgeConfig } from "../../index-GdQrLMJM.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 { Kt as spawnAcpBridge, mt as prependPromptSection, w as AcpProviderAdapterBase } from "../../src-DxASyI1l.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";
|
|
@@ -115,19 +115,6 @@ declare function servableStdioServer(name: string, entry: Record<string, unknown
|
|
|
115
115
|
files?: readonly PlanFile[];
|
|
116
116
|
workspaceRoot: string;
|
|
117
117
|
}): SecretProfileMcpServer | string;
|
|
118
|
-
/**
|
|
119
|
-
* An undeclared shared-launch stdio server, until the default flips: its
|
|
120
|
-
* entry with every reference resolved for the turn's inline config, which the
|
|
121
|
-
* agent can read, and its warning, naming each enabled remote server that
|
|
122
|
-
* holds one of the same references.
|
|
123
|
-
*/
|
|
124
|
-
declare function exposedStdioServer(entry: Record<string, unknown>, references: Readonly<Record<string, string>>, servers: Readonly<Record<string, Record<string, unknown>>>): {
|
|
125
|
-
entry: any;
|
|
126
|
-
warning: {
|
|
127
|
-
sharedWith?: string[] | undefined;
|
|
128
|
-
reason: string;
|
|
129
|
-
};
|
|
130
|
-
};
|
|
131
118
|
/** A remote server the executor can serve: its fixed upstream URL and every header with its secret references resolved. */
|
|
132
119
|
declare function servableMcpServer(name: string, entry: Record<string, unknown>, references: Readonly<Record<string, string>>): SecretProfileMcpServer | string;
|
|
133
120
|
/** Earlier physical cleanup must succeed before another holder is admitted. */
|
|
@@ -1421,5 +1408,5 @@ declare function homeXdgEnv(home: string): {
|
|
|
1421
1408
|
XDG_STATE_HOME: string;
|
|
1422
1409
|
};
|
|
1423
1410
|
//#endregion
|
|
1424
|
-
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,
|
|
1425
|
-
//# sourceMappingURL=index-
|
|
1411
|
+
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, CliTurnProcess as Cn, wasNeverLaunched as Ct, provenStoreBinary as D, AcpProcessSpec as Dn, runtimeSecretsOverlay as Dt, isTrustedStoreBinary as E, AcpBridgeSpawn 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, spawnAcpBridge 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, untilSettledOrAborted as Sn, rejectNotLaunched as St, assertSealedNativeHome as T, PreparedCliLaunch 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 _, secretSessionTurnQueue as _n, jsonEventParser as _t, PERMISSION_DECISION_TIMEOUT_MS as a, withTurnInteractions as an, interactionMcpToolName as at, toolStartEvents as b, sharedSecretMcpRefused 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, isLoopbackEndpoint as fn, EXECUTION_ID_HEADER as ft, streamPartBase as g, resolveReferences as gn, PlaintextResponse as gt, sessionObservedEvents as h, requireRecord as hn, executionCorrelationHeaders as ht, InteractionHttpBridge as i, withEphemeralContext as in, brokerInteractionTools$1 as it, ResolveRouterModelLimitsInput as j, AcpBridgeConfig as jt, resolveExecutableRealpath as k, ACP_MIN_PROTOCOL_VERSION as kt, codexDeveloperInstructionArgs as l, SecretProfileMcpServer as ln, inferMediaType as lt, reasoningEvents as m, joinQueue 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, isPlainRecord 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$1 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, servableMcpServer as vn, plaintextResponseParser as vt, SEALED_NATIVE_HOME_LAYOUT as w, CliTurnSpawn as wn, mapAcpSessionUpdate as wt, forgetSessionScopes as x, spawnUnderSecretMcpLease as xn, failureAfterCleanup as xt, toolResultEvents as y, servableStdioServer as yn, InvalidAttachmentError as yt, createRepeatedToolFailureGuard as z, acpContentText as zt };
|
|
1412
|
+
//# sourceMappingURL=index-GdQrLMJM.d.mts.map
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
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
|
|
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 CliTurnProcess, Ct as wasNeverLaunched, D as provenStoreBinary, Dn as AcpProcessSpec, Dt as runtimeSecretsOverlay, E as isTrustedStoreBinary, En as AcpBridgeSpawn, 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 spawnAcpBridge, 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 untilSettledOrAborted, St as rejectNotLaunched, T as assertSealedNativeHome, Tn as PreparedCliLaunch, 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 secretSessionTurnQueue, _t as jsonEventParser, a as PERMISSION_DECISION_TIMEOUT_MS, an as withTurnInteractions, at as interactionMcpToolName, b as toolStartEvents, bn as sharedSecretMcpRefused, 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 isLoopbackEndpoint, ft as EXECUTION_ID_HEADER, g as streamPartBase, gn as resolveReferences, gt as PlaintextResponse, h as sessionObservedEvents, hn as requireRecord, ht as executionCorrelationHeaders, i as InteractionHttpBridge, in as withEphemeralContext, it as brokerInteractionTools, j as ResolveRouterModelLimitsInput, jt as AcpBridgeConfig, k as resolveExecutableRealpath, kt as ACP_MIN_PROTOCOL_VERSION, l as codexDeveloperInstructionArgs, ln as SecretProfileMcpServer, lt as inferMediaType, m as reasoningEvents, mn as joinQueue, 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 isPlainRecord, 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 servableMcpServer, vt as plaintextResponseParser, w as SEALED_NATIVE_HOME_LAYOUT, wn as CliTurnSpawn, wt as mapAcpSessionUpdate, x as forgetSessionScopes, xn as spawnUnderSecretMcpLease, xt as failureAfterCleanup, y as toolResultEvents, yn as servableStdioServer, yt as InvalidAttachmentError, z as createRepeatedToolFailureGuard, zt as acpContentText } from "./index-GdQrLMJM.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,
|
|
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, 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,
|
|
1
|
+
import { $ as sharedSecretMcpRefused, A as createRepeatedToolFailureGuard, At as executionCorrelationHeaders, B as withEphemeralContext, Bt as toolStartEvents, C as plaintextResponseParser, Ct as rejectNotLaunched, D as readCliTokenUsage, Dt as EXECUTION_ID_HEADER, E as parseCliUsageLine, Et as EXECUTION_CORRELATION_HEADERS, F as enabledInteractionKinds, Ft as sessionObservedEvents, G as isLoopbackEndpoint, Gt as assertAcpTurnFinished, H as SHARED_WORKSPACE_DIR_ENV, Ht as ACP_MIN_PROTOCOL_VERSION, I as interactionToggleEnabled, It as streamPartBase, J as requireRecord, K as isPlainRecord, Kt as spawnAcpBridge, L as readEphemeralContext, Lt as textDeltaEvents, M as isLocalMcpConfig, Mt as mapAcpSessionUpdate, N as localMcpArgv, Nt as finalTextEvent, O as recordCliTokenUsage, Ot as EXECUTION_TRACE_HEADER, P as localMcpEnv, Pt as reasoningEvents, Q as servableStdioServer, R as turnEndReason, Rt as textSnapshotEvents, S as jsonEventParser, St as failureAfterCleanup, T as accumulateCliTokenUsage, Tt as runtimeSecretsOverlay, U as assertSealedNativeSearchPath, Ut as ACP_PROTOCOL_VERSION, V as withTurnInteractions, Vt as trackReasoningBlock, W as directStdioMcpServers, Wt as acpContentText, X as secretSessionTurnQueue, Y as resolveReferences, Z as servableMcpServer, _ as TerminalPlanSupport, _t as deterministicFilePartId, a as SECRET_REFERENCE, at as isTrustedStoreBinary, b as brokerInteractionTools, bt as InvalidAttachmentError, c as forgetSessionScopes, ct as resolveExecutableRealpath, d as findRouterCatalogEntry, dt as PROMPT_SECTION_SEPARATOR, et as spawnUnderSecretMcpLease, f as resolveRouterModelLimits, ft as partitionImageAttachments, g as McpInteractionSupport, gt as deriveFilePart, h as nativeEffortArgs, ht as buildFileUrl, i as PERMISSION_DECISION_TIMEOUT_MS, it as assertSealedNativeHome, j as createExecutionState, jt as homeXdgEnv, k as CliProviderAdapterBase, kt as MANAGED_QUOTE_VERSION_HEADER, l as secretMcpScope, lt as MAX_INLINE_IMAGE_BYTES, m as kimiThinkingArgs, mt as prependPromptSection, n as InteractionBroker, nt as NATIVE_SESSION_CONTRACTS, o as SECRET_REFERENCE_PREFIX, ot as provenStoreBinary, p as resolveRouterModelReasoningEfforts, pt as preparePromptInputParts, q as joinQueue, r as InteractionHttpBridge, rt as SEALED_NATIVE_HOME_LAYOUT, s as codexDeveloperInstructionArgs, st as refuseSecretLaunch, t as CODEX_DISABLED_FEATURE_ARGS, tt as untilSettledOrAborted, u as ROUTER_MODEL_CATALOG_TIMEOUT_MS, ut as MAX_TOTAL_INLINE_IMAGE_BYTES, v as DEFAULT_INTERACTION_MCP_SERVER_NAME, vt as inferMediaType, w as AcpProviderAdapterBase, wt as wasNeverLaunched, x as interactionMcpToolName, xt as SessionRehydrationError, y as InteractionMcpServer, yt as trackFilePart, z as turnInteractionEnabled, zt as toolResultEvents } from "./src-DxASyI1l.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, 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 };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { DEFAULT_INTERACTION_DECISION_TIMEOUT_MS as PERMISSION_DECISION_TIMEOUT_MS, InteractionBroker, InteractionBroker as InteractionBroker$1, InteractionHttpBridge, brokerInteractionTools, brokerInteractionTools as brokerInteractionTools$1 } from "@tangle-network/agent-core/interactions";
|
|
2
|
-
import { CODEX_DISABLED_FEATURE_ARGS, HARNESS_LAUNCH_MATERIALIZE_OPTIONS, SECRET_REFERENCE, SECRET_REFERENCE as SECRET_REFERENCE$1, SECRET_REFERENCE_PREFIX, SECRET_REFERENCE_PREFIX as SECRET_REFERENCE_PREFIX$1, UNAVAILABLE_AGENT_PROFILE_SECRET_PROVIDER, applyWorkspacePlanWithSecretProvider, bindLaunchToolBinDirs, bindSecretSessionView, codexDeveloperInstructionArgs, digestEnvName, enforceWorkspacePlanSupport, ensurePublicConcurrentProfileRoots, joinSystemPromptAdditions, keepsHarnessSystemPrompt, materializeProfile, modelIdsMatch, parseSandboxToolBinDirs, preparePublicConcurrentProfileRevision, prepareSecretConcurrentProfileRevision, resolveAgentProfileResources, secretSessionViewWorkspace, workspacePlanHasSecretArguments, workspacePlanSecretCount } from "@tangle-network/agent-profile-materialize";
|
|
2
|
+
import { CODEX_DISABLED_FEATURE_ARGS, HARNESS_LAUNCH_MATERIALIZE_OPTIONS, SECRET_REFERENCE, SECRET_REFERENCE as SECRET_REFERENCE$1, SECRET_REFERENCE_PREFIX, SECRET_REFERENCE_PREFIX as SECRET_REFERENCE_PREFIX$1, UNAVAILABLE_AGENT_PROFILE_SECRET_PROVIDER, applyWorkspacePlanWithSecretProvider, bindLaunchToolBinDirs, bindSecretSessionView, codexDeveloperInstructionArgs, digestEnvName, enforceWorkspacePlanSupport, ensurePublicConcurrentProfileRoots, joinSystemPromptAdditions, keepsHarnessSystemPrompt, materializeProfile, modelIdsMatch, parseSandboxToolBinDirs, preparePublicConcurrentProfileRevision, prepareSecretConcurrentProfileRevision, resolveAgentProfileResources, secretSessionViewWorkspace, workspacePlanHasSecretArguments, workspacePlanSecretCount, workspaceStateRoot } from "@tangle-network/agent-profile-materialize";
|
|
3
3
|
import { BridgeClosedError, InvalidAttachmentError, JsonRpcError, RpcRequestTimeoutError, execCli, launchCliProcess, resolveRawCapturePath, spawnCliProcess, spawnRpcBridge } from "@tangle-network/sdk-cli-runner";
|
|
4
4
|
import { createHash, createHmac, randomUUID } from "node:crypto";
|
|
5
5
|
import { AgentExecutionError, AgentExecutionOutcomeSchema, AgentRuntimeAttachmentsSchema, InteractionExecutionBindingSchema, InteractionKind, ProxySecretReceiptSchema, REASONING_EFFORTS, agentProfileSchema, nativeReasoningControl, normalizeInputParts } from "@tangle-network/agent-interface";
|
|
@@ -857,7 +857,7 @@ var CliAdapterLifecycle = class {
|
|
|
857
857
|
const contract = this.sessionContract();
|
|
858
858
|
if (contract) assertFlagsHonourSessionContract(this.provider, contract, nextConfig.extraFlags ?? [], "extraFlags");
|
|
859
859
|
const persistenceConfig = {
|
|
860
|
-
storagePath: nextStoragePath,
|
|
860
|
+
storagePath: workspaceStateRoot(nextStoragePath),
|
|
861
861
|
storageDir: this.storageDir
|
|
862
862
|
};
|
|
863
863
|
const nextSessionStore = createSessionStore(persistenceConfig);
|
|
@@ -1734,24 +1734,6 @@ function servableStdioServer(name, entry, references, mount) {
|
|
|
1734
1734
|
}
|
|
1735
1735
|
};
|
|
1736
1736
|
}
|
|
1737
|
-
/**
|
|
1738
|
-
* An undeclared shared-launch stdio server, until the default flips: its
|
|
1739
|
-
* entry with every reference resolved for the turn's inline config, which the
|
|
1740
|
-
* agent can read, and its warning, naming each enabled remote server that
|
|
1741
|
-
* holds one of the same references.
|
|
1742
|
-
*/
|
|
1743
|
-
function exposedStdioServer(entry, references, servers) {
|
|
1744
|
-
const text = JSON.stringify(entry);
|
|
1745
|
-
const held = text.match(SECRET_REFERENCE) ?? [];
|
|
1746
|
-
const sharedWith = Object.keys(servers).filter((other) => servers[other]?.type === "remote" && servers[other]?.enabled !== false && held.some((ref) => JSON.stringify(servers[other]).includes(ref)));
|
|
1747
|
-
return {
|
|
1748
|
-
entry: JSON.parse(text.replace(SECRET_REFERENCE, (_, ref) => JSON.stringify(references[ref] ?? "").slice(1, -1))),
|
|
1749
|
-
warning: {
|
|
1750
|
-
reason: "default flips to bridge-or-refuse on 2026-11-23 (or after 24 h with no such warning); declare TANGLE_SHARED_WORKSPACE_DIR to be bridged",
|
|
1751
|
-
...sharedWith.length ? { sharedWith } : {}
|
|
1752
|
-
}
|
|
1753
|
-
};
|
|
1754
|
-
}
|
|
1755
1737
|
/** A remote server the executor can serve: its fixed upstream URL and every header with its secret references resolved. */
|
|
1756
1738
|
function servableMcpServer(name, entry, references) {
|
|
1757
1739
|
const url = entry.url;
|
|
@@ -2118,7 +2100,7 @@ var CliAdapterProfile = class extends CliAdapterLifecycle {
|
|
|
2118
2100
|
/** Apply a plan on the shared launch, keeping file secrets as references when this adapter serves them. */
|
|
2119
2101
|
async applySharedProfilePlan(plan, workspaceRoot, options) {
|
|
2120
2102
|
const references = {};
|
|
2121
|
-
const application = await applyWorkspacePlanWithSecretProvider(plan, workspaceRoot, runtimeSecretsOverlay(this.config.runtimeSecrets, this.profileSecretProvider), this.referencesSharedFileSecrets ? {
|
|
2103
|
+
const application = await applyWorkspacePlanWithSecretProvider(plan, workspaceStateRoot(workspaceRoot), runtimeSecretsOverlay(this.config.runtimeSecrets, this.profileSecretProvider), this.referencesSharedFileSecrets ? {
|
|
2122
2104
|
...options,
|
|
2123
2105
|
secretFileSlotReferences: references
|
|
2124
2106
|
} : options);
|
|
@@ -4958,6 +4940,6 @@ async function forgetSessionScopes(target) {
|
|
|
4958
4940
|
}
|
|
4959
4941
|
}
|
|
4960
4942
|
//#endregion
|
|
4961
|
-
export {
|
|
4943
|
+
export { sharedSecretMcpRefused as $, createRepeatedToolFailureGuard as A, executionCorrelationHeaders as At, withEphemeralContext as B, toolStartEvents as Bt, plaintextResponseParser as C, rejectNotLaunched as Ct, readCliTokenUsage as D, EXECUTION_ID_HEADER as Dt, parseCliUsageLine as E, EXECUTION_CORRELATION_HEADERS as Et, enabledInteractionKinds as F, sessionObservedEvents as Ft, isLoopbackEndpoint as G, assertAcpTurnFinished as Gt, SHARED_WORKSPACE_DIR_ENV as H, ACP_MIN_PROTOCOL_VERSION as Ht, interactionToggleEnabled as I, streamPartBase as It, requireRecord as J, isPlainRecord as K, spawnAcpBridge as Kt, readEphemeralContext as L, textDeltaEvents as Lt, isLocalMcpConfig as M, mapAcpSessionUpdate as Mt, localMcpArgv as N, finalTextEvent as Nt, recordCliTokenUsage as O, EXECUTION_TRACE_HEADER as Ot, localMcpEnv as P, reasoningEvents as Pt, servableStdioServer as Q, turnEndReason as R, textSnapshotEvents as Rt, jsonEventParser as S, failureAfterCleanup as St, accumulateCliTokenUsage as T, runtimeSecretsOverlay as Tt, assertSealedNativeSearchPath as U, ACP_PROTOCOL_VERSION as Ut, withTurnInteractions as V, trackReasoningBlock as Vt, directStdioMcpServers as W, acpContentText as Wt, secretSessionTurnQueue as X, resolveReferences as Y, servableMcpServer as Z, TerminalPlanSupport as _, deterministicFilePartId as _t, SECRET_REFERENCE$1 as a, isTrustedStoreBinary as at, brokerInteractionTools$1 as b, InvalidAttachmentError as bt, forgetSessionScopes as c, resolveExecutableRealpath as ct, findRouterCatalogEntry as d, PROMPT_SECTION_SEPARATOR as dt, spawnUnderSecretMcpLease as et, resolveRouterModelLimits as f, partitionImageAttachments as ft, McpInteractionSupport as g, deriveFilePart as gt, nativeEffortArgs as h, buildFileUrl as ht, PERMISSION_DECISION_TIMEOUT_MS as i, assertSealedNativeHome as it, createExecutionState as j, homeXdgEnv as jt, CliProviderAdapterBase as k, MANAGED_QUOTE_VERSION_HEADER as kt, secretMcpScope as l, MAX_INLINE_IMAGE_BYTES as lt, kimiThinkingArgs as m, prependPromptSection as mt, InteractionBroker$1 as n, NATIVE_SESSION_CONTRACTS$1 as nt, SECRET_REFERENCE_PREFIX$1 as o, provenStoreBinary as ot, resolveRouterModelReasoningEfforts as p, preparePromptInputParts as pt, joinQueue as q, InteractionHttpBridge as r, SEALED_NATIVE_HOME_LAYOUT as rt, codexDeveloperInstructionArgs as s, refuseSecretLaunch as st, CODEX_DISABLED_FEATURE_ARGS as t, untilSettledOrAborted as tt, ROUTER_MODEL_CATALOG_TIMEOUT_MS as u, MAX_TOTAL_INLINE_IMAGE_BYTES as ut, DEFAULT_INTERACTION_MCP_SERVER_NAME as v, inferMediaType as vt, AcpProviderAdapterBase as w, wasNeverLaunched as wt, interactionMcpToolName as x, SessionRehydrationError as xt, InteractionMcpServer$1 as y, trackFilePart as yt, turnInteractionEnabled as z, toolResultEvents as zt };
|
|
4962
4944
|
|
|
4963
|
-
//# sourceMappingURL=src-
|
|
4945
|
+
//# sourceMappingURL=src-DxASyI1l.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.118",
|
|
4
4
|
"description": "Base adapter for CLI-based AI agent providers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.mjs",
|
|
@@ -60,10 +60,10 @@
|
|
|
60
60
|
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
61
61
|
"@tangle-network/agent-core": "^1.0.3",
|
|
62
62
|
"@tangle-network/agent-interface": "^5.10.27",
|
|
63
|
-
"@tangle-network/agent-profile-materialize": "1.1.
|
|
63
|
+
"@tangle-network/agent-profile-materialize": "1.1.135",
|
|
64
64
|
"@tangle-network/agent-trace-contract": "^2.2.0",
|
|
65
|
-
"@tangle-network/cli-agent-registry": "0.15.
|
|
66
|
-
"@tangle-network/sdk-cli-runner": "0.3.
|
|
65
|
+
"@tangle-network/cli-agent-registry": "0.15.115",
|
|
66
|
+
"@tangle-network/sdk-cli-runner": "0.3.13",
|
|
67
67
|
"@tangle-network/sdk-session-persistence": "0.7.13",
|
|
68
68
|
"zod": "4.6.7"
|
|
69
69
|
},
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"registry": "https://registry.npmjs.org"
|
|
80
80
|
},
|
|
81
81
|
"tangleRelease": {
|
|
82
|
-
"sourceSha": "
|
|
83
|
-
"mergedAt": "2026-11-
|
|
82
|
+
"sourceSha": "0a10816e481c8d9c7c6982281c2e9e994207d85b",
|
|
83
|
+
"mergedAt": "2026-11-18T16:50:01-08:00"
|
|
84
84
|
},
|
|
85
85
|
"scripts": {
|
|
86
86
|
"build": "tsdown",
|