@tangle-network/sdk-provider-cli-base 0.13.100 → 0.13.102
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-CWT1VwcD.d.mts → index-CXaA_cyP.d.mts} +6 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{src-DG4Y1JhF.mjs → src-B5w-16af.mjs} +20 -4
- package/package.json +5 -5
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Et as CliProviderAdapterBase, Kt as CliProviderConfig, Wt as CliExecArgs, Xt as ExecutionState } from "../../index-
|
|
1
|
+
import { Et as CliProviderAdapterBase, Kt as CliProviderConfig, Wt as CliExecArgs, Xt as ExecutionState } from "../../index-CXaA_cyP.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 { B as jsonEventParser, It as toolResultEvents, K as recordCliTokenUsage, Lt as toolStartEvents, Mt as sessionObservedEvents, Pt as textDeltaEvents, Q as localMcpEnv, Z as localMcpArgv, jt as reasoningEvents, q as CliProviderAdapterBase } from "../../src-
|
|
1
|
+
import { B as jsonEventParser, It as toolResultEvents, K as recordCliTokenUsage, Lt as toolStartEvents, Mt as sessionObservedEvents, Pt as textDeltaEvents, Q as localMcpEnv, Z as localMcpArgv, jt as reasoningEvents, q as CliProviderAdapterBase } from "../../src-B5w-16af.mjs";
|
|
2
2
|
//#region src/adapters/amp/types.ts
|
|
3
3
|
/**
|
|
4
4
|
* Type guard for AMP events.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { At as CliTurnSpawn, Et as CliProviderAdapterBase, Kt as CliProviderConfig, Wt as CliExecArgs, Xt as ExecutionState, kt as CliTurnProcess } from "../../index-
|
|
1
|
+
import { At as CliTurnSpawn, Et as CliProviderAdapterBase, Kt as CliProviderConfig, Wt as CliExecArgs, Xt as ExecutionState, kt as CliTurnProcess } from "../../index-CXaA_cyP.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 { Mt as sessionObservedEvents, V as plaintextResponseParser, q as CliProviderAdapterBase } from "../../src-
|
|
1
|
+
import { Mt as sessionObservedEvents, V as plaintextResponseParser, q as CliProviderAdapterBase } from "../../src-B5w-16af.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, Kt as CliProviderConfig, Wt as CliExecArgs, Xt as ExecutionState } from "../../index-
|
|
1
|
+
import { Et as CliProviderAdapterBase, Kt as CliProviderConfig, Wt as CliExecArgs, Xt as ExecutionState } from "../../index-CXaA_cyP.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 { $ as enabledInteractionKinds, B as jsonEventParser, It as toolResultEvents, K as recordCliTokenUsage, Lt as toolStartEvents, Mt as sessionObservedEvents, Nt as streamPartBase, P as McpInteractionSupport, Pt as textDeltaEvents, Q as localMcpEnv, X as isLocalMcpConfig, Z as localMcpArgv, at as withTurnInteractions, jt as reasoningEvents, q as CliProviderAdapterBase } from "../../src-
|
|
1
|
+
import { $ as enabledInteractionKinds, B as jsonEventParser, It as toolResultEvents, K as recordCliTokenUsage, Lt as toolStartEvents, Mt as sessionObservedEvents, Nt as streamPartBase, P as McpInteractionSupport, Pt as textDeltaEvents, Q as localMcpEnv, X as isLocalMcpConfig, Z as localMcpArgv, at as withTurnInteractions, jt as reasoningEvents, q as CliProviderAdapterBase } from "../../src-B5w-16af.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, Kt as CliProviderConfig, Wt as CliExecArgs, Xt as ExecutionState } from "../../index-
|
|
1
|
+
import { Et as CliProviderAdapterBase, Kt as CliProviderConfig, Wt as CliExecArgs, Xt as ExecutionState } from "../../index-CXaA_cyP.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 { Mt as sessionObservedEvents, V as plaintextResponseParser, dt as prependPromptSection, q as CliProviderAdapterBase } from "../../src-
|
|
1
|
+
import { Mt as sessionObservedEvents, V as plaintextResponseParser, dt as prependPromptSection, q as CliProviderAdapterBase } from "../../src-B5w-16af.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, Kt as CliProviderConfig, Wt as CliExecArgs, Xt as ExecutionState, n as HarnessId } from "../../index-
|
|
1
|
+
import { Et as CliProviderAdapterBase, Kt as CliProviderConfig, Wt as CliExecArgs, Xt as ExecutionState, n as HarnessId } from "../../index-CXaA_cyP.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 { K as recordCliTokenUsage, Mt as sessionObservedEvents, Q as localMcpEnv, V as plaintextResponseParser, X as isLocalMcpConfig, Z as localMcpArgv, dt as prependPromptSection, lt as partitionImageAttachments, q as CliProviderAdapterBase } from "../../src-
|
|
1
|
+
import { K as recordCliTokenUsage, Mt as sessionObservedEvents, Q as localMcpEnv, V as plaintextResponseParser, X as isLocalMcpConfig, Z as localMcpArgv, dt as prependPromptSection, lt as partitionImageAttachments, q as CliProviderAdapterBase } from "../../src-B5w-16af.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, Kt as CliProviderConfig, Wt as CliExecArgs, Xt as ExecutionState, n as HarnessId } from "../../index-
|
|
1
|
+
import { Et as CliProviderAdapterBase, Kt as CliProviderConfig, Wt as CliExecArgs, Xt as ExecutionState, n as HarnessId } from "../../index-CXaA_cyP.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 { K as recordCliTokenUsage, Mt as sessionObservedEvents, V as plaintextResponseParser, W as parseCliUsageLine, dt as prependPromptSection, q as CliProviderAdapterBase } from "../../src-
|
|
1
|
+
import { K as recordCliTokenUsage, Mt as sessionObservedEvents, V as plaintextResponseParser, W as parseCliUsageLine, dt as prependPromptSection, q as CliProviderAdapterBase } from "../../src-B5w-16af.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, Kt as CliProviderConfig, Wt as CliExecArgs, Xt as ExecutionState } from "../../index-
|
|
1
|
+
import { Et as CliProviderAdapterBase, Kt as CliProviderConfig, Wt as CliExecArgs, Xt as ExecutionState } from "../../index-CXaA_cyP.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 { Mt as sessionObservedEvents, V as plaintextResponseParser, dt as prependPromptSection, q as CliProviderAdapterBase } from "../../src-
|
|
1
|
+
import { Mt as sessionObservedEvents, V as plaintextResponseParser, dt as prependPromptSection, q as CliProviderAdapterBase } from "../../src-B5w-16af.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, Kt as CliProviderConfig, Wt as CliExecArgs, Xt as ExecutionState, c as WorkspacePlanApplication, n as HarnessId } from "../../index-
|
|
1
|
+
import { Et as CliProviderAdapterBase, Kt as CliProviderConfig, Wt as CliExecArgs, Xt as ExecutionState, c as WorkspacePlanApplication, n as HarnessId } from "../../index-CXaA_cyP.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 { At as finalTextEvent, K as recordCliTokenUsage, Mt as sessionObservedEvents, N as nativeEffortArgs, dt as prependPromptSection, q as CliProviderAdapterBase } from "../../src-
|
|
1
|
+
import { At as finalTextEvent, K as recordCliTokenUsage, Mt as sessionObservedEvents, N as nativeEffortArgs, dt as prependPromptSection, q as CliProviderAdapterBase } from "../../src-B5w-16af.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 { Cn as AcpBridgeSpawn, Ft as AcpContentBlock, Pt as AcpBridgeConfig, Tt as AcpProviderAdapterBase, Vt as AcpTurn, wn as AcpProcessSpec } from "../../index-
|
|
1
|
+
import { Cn as AcpBridgeSpawn, Ft as AcpContentBlock, Pt as AcpBridgeConfig, Tt as AcpProviderAdapterBase, Vt as AcpTurn, wn as AcpProcessSpec } from "../../index-CXaA_cyP.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 { H as AcpProviderAdapterBase, Ut as spawnAcpBridge, dt as prependPromptSection } from "../../src-
|
|
1
|
+
import { H as AcpProviderAdapterBase, Ut as spawnAcpBridge, dt as prependPromptSection } from "../../src-B5w-16af.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";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { i as PreparedAttachment, o as preparePromptInputParts } from "./prompt-input-CD7okX8T.mjs";
|
|
2
2
|
import { AskUserBridge, DEFAULT_INTERACTION_DECISION_TIMEOUT_MS as PERMISSION_DECISION_TIMEOUT_MS, InteractionBroker, InteractionBroker as InteractionBroker$1, InteractionHttpBridge, PermissionPromptBridge, RequestPermissionBridge, RequestPlanBridge, brokerInteractionTools as brokerInteractionTools$1 } from "@tangle-network/agent-core/interactions";
|
|
3
3
|
import * as _$_tangle_network_agent_profile_materialize0 from "@tangle-network/agent-profile-materialize";
|
|
4
|
-
import { BindableLaunchControl, CODEX_DISABLED_FEATURE_ARGS, HarnessId, HarnessId as HarnessId$1, SECRET_REFERENCE as SECRET_REFERENCE$1, SECRET_REFERENCE_PREFIX, WorkspacePlan, WorkspacePlanApplication, WorkspacePlanApplication as WorkspacePlanApplication$1, WorkspacePlanReceipt, codexDeveloperInstructionArgs } from "@tangle-network/agent-profile-materialize";
|
|
4
|
+
import { ApplyWorkspacePlanOptions, BindableLaunchControl, CODEX_DISABLED_FEATURE_ARGS, HarnessId, HarnessId as HarnessId$1, SECRET_REFERENCE as SECRET_REFERENCE$1, SECRET_REFERENCE_PREFIX, WorkspacePlan, WorkspacePlanApplication, WorkspacePlanApplication as WorkspacePlanApplication$1, WorkspacePlanReceipt, codexDeveloperInstructionArgs } from "@tangle-network/agent-profile-materialize";
|
|
5
5
|
import { CliExecResult, CliExitResult, CliLauncher, CliProcess, CliSpawnConfig, InvalidAttachmentError, JsonRpcError, RpcBridge, StreamParserConfig } from "@tangle-network/sdk-cli-runner";
|
|
6
6
|
import { AgentExecutionInput, AgentExecutionOutcome, AgentExecutionResult, AgentProfile, AgentProfileSecretProvider, AgentRuntimeAttachments, BackendCapabilities, BackendMessage, CliAuthFile, DurablePlan, GetMessagesOptions, HarnessType, InputPart, InteractionExecutionBinding, InteractionResponse, LocalMcpConfig, McpConfig, McpStatusResponse, PlanProviderState, ProviderConfig, ProxySecretReceipt, ReasoningEffort, RequestedInteractions, SdkHostServices, SdkPlanHost, SdkProviderAdapter, StreamEvent, TokenUsage, ToolPart } from "@tangle-network/agent-interface";
|
|
7
7
|
import { HarnessSessionContract } from "@tangle-network/cli-agent-registry/session-contract";
|
|
@@ -490,6 +490,8 @@ declare abstract class CliAdapterProfile<TConfig extends CliProviderConfig = Cli
|
|
|
490
490
|
protected readonly profileHarness: HarnessId | undefined;
|
|
491
491
|
/** Trusted implementation capabilities; never read from caller-owned configuration. */
|
|
492
492
|
protected readonly supportsSecretProfileRevisions: boolean;
|
|
493
|
+
/** The shared launch writes file secrets as `{env:}` references this adapter serves itself (#19297). */
|
|
494
|
+
protected readonly referencesSharedFileSecrets: boolean;
|
|
493
495
|
private readonly profileSecretProvider;
|
|
494
496
|
private readonly secretProfileRuntimeKeyProvider;
|
|
495
497
|
/** Private native preparation state; never part of a returned receipt. */
|
|
@@ -520,6 +522,8 @@ declare abstract class CliAdapterProfile<TConfig extends CliProviderConfig = Cli
|
|
|
520
522
|
/** This spawn's plan: a strict refusal throws, a best-effort one is logged. */
|
|
521
523
|
protected planProfile(profile: AgentProfile, harness: HarnessId, agentInstructions?: boolean): WorkspacePlan;
|
|
522
524
|
private applyProfileResources;
|
|
525
|
+
/** Apply a plan on the shared launch, keeping file secrets as references when this adapter serves them. */
|
|
526
|
+
protected applySharedProfilePlan(plan: WorkspacePlan, workspaceRoot: string, options: ApplyWorkspacePlanOptions): Promise<WorkspacePlanApplication>;
|
|
523
527
|
/** Publish the profile as an executor-sealed revision for this session's subprocess identity, and record the receipt that binds it to the turn. */
|
|
524
528
|
private applySecretProfileRevision;
|
|
525
529
|
/** Prepare the same provider-composed native plan that execute() will check. */
|
|
@@ -1381,4 +1385,4 @@ declare function homeXdgEnv(home: string): {
|
|
|
1381
1385
|
};
|
|
1382
1386
|
//#endregion
|
|
1383
1387
|
export { InteractionMcpServer$1 as $, PerTurnInteractionInput as $t, ROUTER_MODEL_CATALOG_TIMEOUT_MS as A, CliTurnSpawn as At, trackReasoningBlock as B, AcpSessionUpdateParams as Bt, NATIVE_SESSION_CONTRACTS$1 as C, AcpBridgeSpawn as Cn, wasNeverLaunched as Ct, provenStoreBinary as D, runtimeSecretsOverlay as Dt, isTrustedStoreBinary as E, CliProviderAdapterBase as Et, resolveRouterModelLimits as F, AcpContentBlock as Ft, readCliTokenUsage as G, CliExecutionInput as Gt, nativeEffortArgs as H, acpContentText as Ht, resolveRouterModelReasoningEfforts as I, AcpInitializeParams as It, localMcpArgv as J, CliProviderOptions as Jt, recordCliTokenUsage as K, CliProviderConfig as Kt, RepeatedToolFailure as L, AcpInitializeResult as Lt, RouterModelLimits as M, ACP_MIN_PROTOCOL_VERSION as Mt, RouterModelLimitsResult as N, ACP_PROTOCOL_VERSION as Nt, refuseSecretLaunch as O, createExecutionState as Ot, findRouterCatalogEntry as P, AcpBridgeConfig as Pt, DEFAULT_INTERACTION_MCP_SERVER_NAME as Q, InteractionToggleKind as Qt, RepeatedToolFailureGuardOptions as R, AcpNewSessionResult as Rt, secretMcpScope as S, untilSettledOrAborted as Sn, rejectNotLaunched as St, assertSealedNativeHome as T, spawnAcpBridge as Tn, AcpProviderAdapterBase as Tt, accumulateCliTokenUsage as U, assertAcpTurnFinished as Ut, kimiThinkingArgs as V, AcpTurn as Vt, parseCliUsageLine as W, CliExecArgs as Wt, McpInteractionSupport as X, ExecutionState as Xt, localMcpEnv as Y, EphemeralContextInput as Yt, AskUserBridge as Z, InteractionToggleConfig as Zt, textDeltaEvents as _, requireRecord as _n, jsonEventParser as _t, PERMISSION_DECISION_TIMEOUT_MS as a, turnEndReason as an, interactionMcpToolName as at, toolStartEvents as b, servableMcpServer as bn, SessionRehydrationError as bt, WorkspacePlanApplication$1 as c, withTurnInteractions as cn, deterministicFilePartId as ct, TerminalPlanSupport as d, SecretProfileMcpServer as dn, EXECUTION_CORRELATION_HEADERS as dt, ToolCallState as en, InteractionMcpServerConfig$1 as et, TerminalPlanSupportOptions as f, assertSealedNativeSearchPath as fn, EXECUTION_ID_HEADER as ft, streamPartBase as g, joinQueue as gn, PlaintextResponse as gt, sessionObservedEvents as h, isPlainRecord as hn, executionCorrelationHeaders as ht, InteractionHttpBridge as i, readEphemeralContext as in, brokerInteractionTools$1 as it, ResolveRouterModelLimitsInput as j, PreparedCliLaunch as jt, resolveExecutableRealpath as k, CliTurnProcess as kt, codexDeveloperInstructionArgs as l, SecretProfileMcpCredentialProxy as ln, inferMediaType as lt, reasoningEvents as m, isLoopbackEndpoint as mn, MANAGED_QUOTE_VERSION_HEADER as mt, HarnessId$1 as n, enabledInteractionKinds as nn, RequestPermissionBridge as nt, SECRET_REFERENCE$1 as o, turnInteractionEnabled as on, buildFileUrl as ot, finalTextEvent as p, directStdioMcpServers as pn, EXECUTION_TRACE_HEADER as pt, isLocalMcpConfig as q, CliProviderLogger as qt, InteractionBroker$1 as r, interactionToggleEnabled as rn, RequestPlanBridge as rt, SECRET_REFERENCE_PREFIX as s, withEphemeralContext as sn, deriveFilePart as st, CODEX_DISABLED_FEATURE_ARGS as t, TurnEndReason as tn, PermissionPromptBridge as tt, homeXdgEnv as u, SecretProfileMcpLease as un, trackFilePart as ut, textSnapshotEvents as v, resolveReferences as vn, plaintextResponseParser as vt, SEALED_NATIVE_HOME_LAYOUT as w, AcpProcessSpec as wn, mapAcpSessionUpdate as wt, forgetSessionScopes as x, servableStdioServer as xn, failureAfterCleanup as xt, toolResultEvents as y, secretSessionTurnQueue as yn, InvalidAttachmentError as yt, createRepeatedToolFailureGuard as z, AcpPromptResult as zt };
|
|
1384
|
-
//# sourceMappingURL=index-
|
|
1388
|
+
//# sourceMappingURL=index-CXaA_cyP.d.mts.map
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as InteractionMcpServer, $t as PerTurnInteractionInput, A as ROUTER_MODEL_CATALOG_TIMEOUT_MS, At as CliTurnSpawn, B as trackReasoningBlock, Bt as AcpSessionUpdateParams, C as NATIVE_SESSION_CONTRACTS, Cn as AcpBridgeSpawn, Ct as wasNeverLaunched, D as provenStoreBinary, Dt as runtimeSecretsOverlay, E as isTrustedStoreBinary, Et as CliProviderAdapterBase, F as resolveRouterModelLimits, Ft as AcpContentBlock, G as readCliTokenUsage, Gt as CliExecutionInput, H as nativeEffortArgs, Ht as acpContentText, I as resolveRouterModelReasoningEfforts, It as AcpInitializeParams, J as localMcpArgv, Jt as CliProviderOptions, K as recordCliTokenUsage, Kt as CliProviderConfig, L as RepeatedToolFailure, Lt as AcpInitializeResult, M as RouterModelLimits, Mt as ACP_MIN_PROTOCOL_VERSION, N as RouterModelLimitsResult, Nt as ACP_PROTOCOL_VERSION, O as refuseSecretLaunch, Ot as createExecutionState, P as findRouterCatalogEntry, Pt as AcpBridgeConfig, Q as DEFAULT_INTERACTION_MCP_SERVER_NAME, Qt as InteractionToggleKind, R as RepeatedToolFailureGuardOptions, Rt as AcpNewSessionResult, S as secretMcpScope, Sn as untilSettledOrAborted, St as rejectNotLaunched, T as assertSealedNativeHome, Tn as spawnAcpBridge, Tt as AcpProviderAdapterBase, U as accumulateCliTokenUsage, Ut as assertAcpTurnFinished, V as kimiThinkingArgs, Vt as AcpTurn, W as parseCliUsageLine, Wt as CliExecArgs, X as McpInteractionSupport, Xt as ExecutionState, Y as localMcpEnv, Yt as EphemeralContextInput, Z as AskUserBridge, Zt as InteractionToggleConfig, _ as textDeltaEvents, _n as requireRecord, _t as jsonEventParser, a as PERMISSION_DECISION_TIMEOUT_MS, an as turnEndReason, at as interactionMcpToolName, b as toolStartEvents, bn as servableMcpServer, bt as SessionRehydrationError, c as WorkspacePlanApplication, cn as withTurnInteractions, ct as deterministicFilePartId, d as TerminalPlanSupport, dn as SecretProfileMcpServer, dt as EXECUTION_CORRELATION_HEADERS, en as ToolCallState, et as InteractionMcpServerConfig, f as TerminalPlanSupportOptions, fn as assertSealedNativeSearchPath, ft as EXECUTION_ID_HEADER, g as streamPartBase, gn as joinQueue, gt as PlaintextResponse, h as sessionObservedEvents, hn as isPlainRecord, ht as executionCorrelationHeaders, i as InteractionHttpBridge, in as readEphemeralContext, it as brokerInteractionTools, j as ResolveRouterModelLimitsInput, jt as PreparedCliLaunch, k as resolveExecutableRealpath, kt as CliTurnProcess, l as codexDeveloperInstructionArgs, ln as SecretProfileMcpCredentialProxy, lt as inferMediaType, m as reasoningEvents, mn as isLoopbackEndpoint, mt as MANAGED_QUOTE_VERSION_HEADER, n as HarnessId, nn as enabledInteractionKinds, nt as RequestPermissionBridge, o as SECRET_REFERENCE, on as turnInteractionEnabled, ot as buildFileUrl, p as finalTextEvent, pn as directStdioMcpServers, pt as EXECUTION_TRACE_HEADER, q as isLocalMcpConfig, qt as CliProviderLogger, r as InteractionBroker, rn as interactionToggleEnabled, rt as RequestPlanBridge, s as SECRET_REFERENCE_PREFIX, sn as withEphemeralContext, st as deriveFilePart, t as CODEX_DISABLED_FEATURE_ARGS, tn as TurnEndReason, tt as PermissionPromptBridge, u as homeXdgEnv, un as SecretProfileMcpLease, ut as trackFilePart, v as textSnapshotEvents, vn as resolveReferences, vt as plaintextResponseParser, w as SEALED_NATIVE_HOME_LAYOUT, wn as AcpProcessSpec, wt as mapAcpSessionUpdate, x as forgetSessionScopes, xn as servableStdioServer, xt as failureAfterCleanup, y as toolResultEvents, yn as secretSessionTurnQueue, yt as InvalidAttachmentError, z as createRepeatedToolFailureGuard, zt as AcpPromptResult } from "./index-
|
|
1
|
+
import { $ as InteractionMcpServer, $t as PerTurnInteractionInput, A as ROUTER_MODEL_CATALOG_TIMEOUT_MS, At as CliTurnSpawn, B as trackReasoningBlock, Bt as AcpSessionUpdateParams, C as NATIVE_SESSION_CONTRACTS, Cn as AcpBridgeSpawn, Ct as wasNeverLaunched, D as provenStoreBinary, Dt as runtimeSecretsOverlay, E as isTrustedStoreBinary, Et as CliProviderAdapterBase, F as resolveRouterModelLimits, Ft as AcpContentBlock, G as readCliTokenUsage, Gt as CliExecutionInput, H as nativeEffortArgs, Ht as acpContentText, I as resolveRouterModelReasoningEfforts, It as AcpInitializeParams, J as localMcpArgv, Jt as CliProviderOptions, K as recordCliTokenUsage, Kt as CliProviderConfig, L as RepeatedToolFailure, Lt as AcpInitializeResult, M as RouterModelLimits, Mt as ACP_MIN_PROTOCOL_VERSION, N as RouterModelLimitsResult, Nt as ACP_PROTOCOL_VERSION, O as refuseSecretLaunch, Ot as createExecutionState, P as findRouterCatalogEntry, Pt as AcpBridgeConfig, Q as DEFAULT_INTERACTION_MCP_SERVER_NAME, Qt as InteractionToggleKind, R as RepeatedToolFailureGuardOptions, Rt as AcpNewSessionResult, S as secretMcpScope, Sn as untilSettledOrAborted, St as rejectNotLaunched, T as assertSealedNativeHome, Tn as spawnAcpBridge, Tt as AcpProviderAdapterBase, U as accumulateCliTokenUsage, Ut as assertAcpTurnFinished, V as kimiThinkingArgs, Vt as AcpTurn, W as parseCliUsageLine, Wt as CliExecArgs, X as McpInteractionSupport, Xt as ExecutionState, Y as localMcpEnv, Yt as EphemeralContextInput, Z as AskUserBridge, Zt as InteractionToggleConfig, _ as textDeltaEvents, _n as requireRecord, _t as jsonEventParser, a as PERMISSION_DECISION_TIMEOUT_MS, an as turnEndReason, at as interactionMcpToolName, b as toolStartEvents, bn as servableMcpServer, bt as SessionRehydrationError, c as WorkspacePlanApplication, cn as withTurnInteractions, ct as deterministicFilePartId, d as TerminalPlanSupport, dn as SecretProfileMcpServer, dt as EXECUTION_CORRELATION_HEADERS, en as ToolCallState, et as InteractionMcpServerConfig, f as TerminalPlanSupportOptions, fn as assertSealedNativeSearchPath, ft as EXECUTION_ID_HEADER, g as streamPartBase, gn as joinQueue, gt as PlaintextResponse, h as sessionObservedEvents, hn as isPlainRecord, ht as executionCorrelationHeaders, i as InteractionHttpBridge, in as readEphemeralContext, it as brokerInteractionTools, j as ResolveRouterModelLimitsInput, jt as PreparedCliLaunch, k as resolveExecutableRealpath, kt as CliTurnProcess, l as codexDeveloperInstructionArgs, ln as SecretProfileMcpCredentialProxy, lt as inferMediaType, m as reasoningEvents, mn as isLoopbackEndpoint, mt as MANAGED_QUOTE_VERSION_HEADER, n as HarnessId, nn as enabledInteractionKinds, nt as RequestPermissionBridge, o as SECRET_REFERENCE, on as turnInteractionEnabled, ot as buildFileUrl, p as finalTextEvent, pn as directStdioMcpServers, pt as EXECUTION_TRACE_HEADER, q as isLocalMcpConfig, qt as CliProviderLogger, r as InteractionBroker, rn as interactionToggleEnabled, rt as RequestPlanBridge, s as SECRET_REFERENCE_PREFIX, sn as withEphemeralContext, st as deriveFilePart, t as CODEX_DISABLED_FEATURE_ARGS, tn as TurnEndReason, tt as PermissionPromptBridge, u as homeXdgEnv, un as SecretProfileMcpLease, ut as trackFilePart, v as textSnapshotEvents, vn as resolveReferences, vt as plaintextResponseParser, w as SEALED_NATIVE_HOME_LAYOUT, wn as AcpProcessSpec, wt as mapAcpSessionUpdate, x as forgetSessionScopes, xn as servableStdioServer, xt as failureAfterCleanup, y as toolResultEvents, yn as secretSessionTurnQueue, yt as InvalidAttachmentError, z as createRepeatedToolFailureGuard, zt as AcpPromptResult } from "./index-CXaA_cyP.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
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, 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, spawnAcpBridge, 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 enabledInteractionKinds, A as resolveRouterModelLimits, At as finalTextEvent, B as jsonEventParser, Bt as ACP_PROTOCOL_VERSION, C as assertSealedNativeHome, Ct as EXECUTION_CORRELATION_HEADERS, D as resolveExecutableRealpath, Dt as executionCorrelationHeaders, E as refuseSecretLaunch, Et as MANAGED_QUOTE_VERSION_HEADER, F as TerminalPlanSupport, Ft as textSnapshotEvents, G as readCliTokenUsage, H as AcpProviderAdapterBase, Ht as assertAcpTurnFinished, I as DEFAULT_INTERACTION_MCP_SERVER_NAME, It as toolResultEvents, J as createRepeatedToolFailureGuard, K as recordCliTokenUsage, L as InteractionMcpServer, Lt as toolStartEvents, M as kimiThinkingArgs, Mt as sessionObservedEvents, N as nativeEffortArgs, Nt as streamPartBase, O as ROUTER_MODEL_CATALOG_TIMEOUT_MS, Ot as homeXdgEnv, P as McpInteractionSupport, Pt as textDeltaEvents, Q as localMcpEnv, R as brokerInteractionTools, Rt as trackReasoningBlock, S as SEALED_NATIVE_HOME_LAYOUT, St as runtimeSecretsOverlay, T as provenStoreBinary, Tt as EXECUTION_TRACE_HEADER, U as accumulateCliTokenUsage, Ut as spawnAcpBridge, V as plaintextResponseParser, Vt as acpContentText, W as parseCliUsageLine, X as isLocalMcpConfig, Y as createExecutionState, Z as localMcpArgv, _ as secretSessionTurnQueue, _t as InvalidAttachmentError, a as SECRET_REFERENCE, at as withTurnInteractions, b as untilSettledOrAborted, bt as rejectNotLaunched, c as forgetSessionScopes, ct as PROMPT_SECTION_SEPARATOR, d as directStdioMcpServers, dt as prependPromptSection, et as interactionToggleEnabled, f as isLoopbackEndpoint, ft as buildFileUrl, g as resolveReferences, gt as trackFilePart, h as requireRecord, ht as inferMediaType, i as PERMISSION_DECISION_TIMEOUT_MS, it as withEphemeralContext, j as resolveRouterModelReasoningEfforts, jt as reasoningEvents, k as findRouterCatalogEntry, kt as mapAcpSessionUpdate, l as secretMcpScope, lt as partitionImageAttachments, m as joinQueue, mt as deterministicFilePartId, n as InteractionBroker, nt as turnEndReason, o as SECRET_REFERENCE_PREFIX, ot as MAX_INLINE_IMAGE_BYTES, p as isPlainRecord, pt as deriveFilePart, q as CliProviderAdapterBase, r as InteractionHttpBridge, rt as turnInteractionEnabled, s as codexDeveloperInstructionArgs, st as MAX_TOTAL_INLINE_IMAGE_BYTES, t as CODEX_DISABLED_FEATURE_ARGS, tt as readEphemeralContext, u as assertSealedNativeSearchPath, ut as preparePromptInputParts, v as servableMcpServer, vt as SessionRehydrationError, w as isTrustedStoreBinary, wt as EXECUTION_ID_HEADER, x as NATIVE_SESSION_CONTRACTS, xt as wasNeverLaunched, y as servableStdioServer, yt as failureAfterCleanup, z as interactionMcpToolName, zt as ACP_MIN_PROTOCOL_VERSION } from "./src-
|
|
1
|
+
import { $ as enabledInteractionKinds, A as resolveRouterModelLimits, At as finalTextEvent, B as jsonEventParser, Bt as ACP_PROTOCOL_VERSION, C as assertSealedNativeHome, Ct as EXECUTION_CORRELATION_HEADERS, D as resolveExecutableRealpath, Dt as executionCorrelationHeaders, E as refuseSecretLaunch, Et as MANAGED_QUOTE_VERSION_HEADER, F as TerminalPlanSupport, Ft as textSnapshotEvents, G as readCliTokenUsage, H as AcpProviderAdapterBase, Ht as assertAcpTurnFinished, I as DEFAULT_INTERACTION_MCP_SERVER_NAME, It as toolResultEvents, J as createRepeatedToolFailureGuard, K as recordCliTokenUsage, L as InteractionMcpServer, Lt as toolStartEvents, M as kimiThinkingArgs, Mt as sessionObservedEvents, N as nativeEffortArgs, Nt as streamPartBase, O as ROUTER_MODEL_CATALOG_TIMEOUT_MS, Ot as homeXdgEnv, P as McpInteractionSupport, Pt as textDeltaEvents, Q as localMcpEnv, R as brokerInteractionTools, Rt as trackReasoningBlock, S as SEALED_NATIVE_HOME_LAYOUT, St as runtimeSecretsOverlay, T as provenStoreBinary, Tt as EXECUTION_TRACE_HEADER, U as accumulateCliTokenUsage, Ut as spawnAcpBridge, V as plaintextResponseParser, Vt as acpContentText, W as parseCliUsageLine, X as isLocalMcpConfig, Y as createExecutionState, Z as localMcpArgv, _ as secretSessionTurnQueue, _t as InvalidAttachmentError, a as SECRET_REFERENCE, at as withTurnInteractions, b as untilSettledOrAborted, bt as rejectNotLaunched, c as forgetSessionScopes, ct as PROMPT_SECTION_SEPARATOR, d as directStdioMcpServers, dt as prependPromptSection, et as interactionToggleEnabled, f as isLoopbackEndpoint, ft as buildFileUrl, g as resolveReferences, gt as trackFilePart, h as requireRecord, ht as inferMediaType, i as PERMISSION_DECISION_TIMEOUT_MS, it as withEphemeralContext, j as resolveRouterModelReasoningEfforts, jt as reasoningEvents, k as findRouterCatalogEntry, kt as mapAcpSessionUpdate, l as secretMcpScope, lt as partitionImageAttachments, m as joinQueue, mt as deterministicFilePartId, n as InteractionBroker, nt as turnEndReason, o as SECRET_REFERENCE_PREFIX, ot as MAX_INLINE_IMAGE_BYTES, p as isPlainRecord, pt as deriveFilePart, q as CliProviderAdapterBase, r as InteractionHttpBridge, rt as turnInteractionEnabled, s as codexDeveloperInstructionArgs, st as MAX_TOTAL_INLINE_IMAGE_BYTES, t as CODEX_DISABLED_FEATURE_ARGS, tt as readEphemeralContext, u as assertSealedNativeSearchPath, ut as preparePromptInputParts, v as servableMcpServer, vt as SessionRehydrationError, w as isTrustedStoreBinary, wt as EXECUTION_ID_HEADER, x as NATIVE_SESSION_CONTRACTS, xt as wasNeverLaunched, y as servableStdioServer, yt as failureAfterCleanup, z as interactionMcpToolName, zt as ACP_MIN_PROTOCOL_VERSION } from "./src-B5w-16af.mjs";
|
|
2
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, 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, spawnAcpBridge, 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, UNAVAILABLE_AGENT_PROFILE_SECRET_PROVIDER, applyWorkspacePlanWithSecretProvider, bindLaunchToolBinDirs, bindSecretSessionView, codexDeveloperInstructionArgs, enforceWorkspacePlanSupport, ensurePublicConcurrentProfileRoots, joinSystemPromptAdditions, keepsHarnessSystemPrompt, materializeProfile, modelIdsMatch, parseSandboxToolBinDirs, preparePublicConcurrentProfileRevision, prepareSecretConcurrentProfileRevision, resolveAgentProfileResources, secretSessionViewWorkspace } 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, UNAVAILABLE_AGENT_PROFILE_SECRET_PROVIDER, applyWorkspacePlanWithSecretProvider, bindLaunchToolBinDirs, bindSecretSessionView, codexDeveloperInstructionArgs, enforceWorkspacePlanSupport, ensurePublicConcurrentProfileRoots, joinSystemPromptAdditions, keepsHarnessSystemPrompt, materializeProfile, modelIdsMatch, parseSandboxToolBinDirs, preparePublicConcurrentProfileRevision, prepareSecretConcurrentProfileRevision, resolveAgentProfileResources, secretSessionViewWorkspace, workspacePlanSecretCount } 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";
|
|
@@ -1609,6 +1609,8 @@ var CliAdapterProfile = class extends CliAdapterLifecycle {
|
|
|
1609
1609
|
profileHarness = void 0;
|
|
1610
1610
|
/** Trusted implementation capabilities; never read from caller-owned configuration. */
|
|
1611
1611
|
supportsSecretProfileRevisions = false;
|
|
1612
|
+
/** The shared launch writes file secrets as `{env:}` references this adapter serves itself (#19297). */
|
|
1613
|
+
referencesSharedFileSecrets = false;
|
|
1612
1614
|
profileSecretProvider;
|
|
1613
1615
|
secretProfileRuntimeKeyProvider;
|
|
1614
1616
|
/** Private native preparation state; never part of a returned receipt. */
|
|
@@ -1738,12 +1740,26 @@ var CliAdapterProfile = class extends CliAdapterLifecycle {
|
|
|
1738
1740
|
});
|
|
1739
1741
|
return revision.application;
|
|
1740
1742
|
}
|
|
1741
|
-
|
|
1743
|
+
return this.applySharedProfilePlan(plan, workspaceRoot, {
|
|
1742
1744
|
ownership: this.subprocessIdentity(),
|
|
1743
1745
|
...agentDir === void 0 ? {} : { agentDir }
|
|
1744
1746
|
});
|
|
1747
|
+
}
|
|
1748
|
+
/** Apply a plan on the shared launch, keeping file secrets as references when this adapter serves them. */
|
|
1749
|
+
async applySharedProfilePlan(plan, workspaceRoot, options) {
|
|
1750
|
+
const references = {};
|
|
1751
|
+
const application = await applyWorkspacePlanWithSecretProvider(plan, workspaceRoot, runtimeSecretsOverlay(this.config.runtimeSecrets, this.profileSecretProvider), this.referencesSharedFileSecrets ? {
|
|
1752
|
+
...options,
|
|
1753
|
+
secretFileSlotReferences: references
|
|
1754
|
+
} : options);
|
|
1755
|
+
if (Object.keys(references).length > 0) this.secretProfileRevisions.set(application, { references });
|
|
1756
|
+
const exposed = this.referencesSharedFileSecrets ? 0 : workspacePlanSecretCount(plan);
|
|
1757
|
+
if (exposed > 0) this.logger.warn("profile_secret_exposed_shared_launch", {
|
|
1758
|
+
harness: plan.harness,
|
|
1759
|
+
secretSlots: exposed
|
|
1760
|
+
});
|
|
1745
1761
|
this.logger.debug("materialized profile resources", {
|
|
1746
|
-
harness,
|
|
1762
|
+
harness: plan.harness,
|
|
1747
1763
|
files: plan.files.length,
|
|
1748
1764
|
flags: plan.flags.length,
|
|
1749
1765
|
environment: Object.keys(plan.env).length
|
|
@@ -4854,4 +4870,4 @@ async function forgetSessionScopes(target) {
|
|
|
4854
4870
|
//#endregion
|
|
4855
4871
|
export { enabledInteractionKinds as $, resolveRouterModelLimits as A, finalTextEvent as At, jsonEventParser as B, ACP_PROTOCOL_VERSION as Bt, assertSealedNativeHome as C, EXECUTION_CORRELATION_HEADERS as Ct, resolveExecutableRealpath as D, executionCorrelationHeaders as Dt, refuseSecretLaunch as E, MANAGED_QUOTE_VERSION_HEADER as Et, TerminalPlanSupport as F, textSnapshotEvents as Ft, readCliTokenUsage as G, AcpProviderAdapterBase as H, assertAcpTurnFinished as Ht, DEFAULT_INTERACTION_MCP_SERVER_NAME as I, toolResultEvents as It, createRepeatedToolFailureGuard as J, recordCliTokenUsage as K, InteractionMcpServer$1 as L, toolStartEvents as Lt, kimiThinkingArgs as M, sessionObservedEvents as Mt, nativeEffortArgs as N, streamPartBase as Nt, ROUTER_MODEL_CATALOG_TIMEOUT_MS as O, homeXdgEnv as Ot, McpInteractionSupport as P, textDeltaEvents as Pt, localMcpEnv as Q, brokerInteractionTools$1 as R, trackReasoningBlock as Rt, SEALED_NATIVE_HOME_LAYOUT as S, runtimeSecretsOverlay as St, provenStoreBinary as T, EXECUTION_TRACE_HEADER as Tt, accumulateCliTokenUsage as U, spawnAcpBridge as Ut, plaintextResponseParser as V, acpContentText as Vt, parseCliUsageLine as W, isLocalMcpConfig as X, createExecutionState as Y, localMcpArgv as Z, secretSessionTurnQueue as _, InvalidAttachmentError as _t, SECRET_REFERENCE$1 as a, withTurnInteractions as at, untilSettledOrAborted as b, rejectNotLaunched as bt, forgetSessionScopes as c, PROMPT_SECTION_SEPARATOR as ct, directStdioMcpServers as d, prependPromptSection as dt, interactionToggleEnabled as et, isLoopbackEndpoint as f, buildFileUrl as ft, resolveReferences as g, trackFilePart as gt, requireRecord as h, inferMediaType as ht, PERMISSION_DECISION_TIMEOUT_MS as i, withEphemeralContext as it, resolveRouterModelReasoningEfforts as j, reasoningEvents as jt, findRouterCatalogEntry as k, mapAcpSessionUpdate as kt, secretMcpScope as l, partitionImageAttachments as lt, joinQueue as m, deterministicFilePartId as mt, InteractionBroker$1 as n, turnEndReason as nt, SECRET_REFERENCE_PREFIX as o, MAX_INLINE_IMAGE_BYTES as ot, isPlainRecord as p, deriveFilePart as pt, CliProviderAdapterBase as q, InteractionHttpBridge as r, turnInteractionEnabled as rt, codexDeveloperInstructionArgs as s, MAX_TOTAL_INLINE_IMAGE_BYTES as st, CODEX_DISABLED_FEATURE_ARGS as t, readEphemeralContext as tt, assertSealedNativeSearchPath as u, preparePromptInputParts as ut, servableMcpServer as v, SessionRehydrationError as vt, isTrustedStoreBinary as w, EXECUTION_ID_HEADER as wt, NATIVE_SESSION_CONTRACTS$1 as x, wasNeverLaunched as xt, servableStdioServer as y, failureAfterCleanup as yt, interactionMcpToolName as z, ACP_MIN_PROTOCOL_VERSION as zt };
|
|
4856
4872
|
|
|
4857
|
-
//# sourceMappingURL=src-
|
|
4873
|
+
//# sourceMappingURL=src-B5w-16af.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.102",
|
|
4
4
|
"description": "Base adapter for CLI-based AI agent providers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.mjs",
|
|
@@ -60,9 +60,9 @@
|
|
|
60
60
|
"@modelcontextprotocol/sdk": "^1.32.2",
|
|
61
61
|
"@tangle-network/agent-core": "^1.0.3",
|
|
62
62
|
"@tangle-network/agent-interface": "^5.10.23",
|
|
63
|
-
"@tangle-network/agent-profile-materialize": "1.1.
|
|
63
|
+
"@tangle-network/agent-profile-materialize": "1.1.123",
|
|
64
64
|
"@tangle-network/agent-trace-contract": "^2.2.0",
|
|
65
|
-
"@tangle-network/cli-agent-registry": "0.15.
|
|
65
|
+
"@tangle-network/cli-agent-registry": "0.15.98",
|
|
66
66
|
"@tangle-network/sdk-cli-runner": "0.3.12",
|
|
67
67
|
"@tangle-network/sdk-session-persistence": "0.7.12",
|
|
68
68
|
"zod": "4.6.7"
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"registry": "https://registry.npmjs.org"
|
|
80
80
|
},
|
|
81
81
|
"tangleRelease": {
|
|
82
|
-
"sourceSha": "
|
|
83
|
-
"mergedAt": "2026-11-
|
|
82
|
+
"sourceSha": "b833e1db9b8ea15a19e430f0341e2135bb3a852c",
|
|
83
|
+
"mergedAt": "2026-11-16T11:26:51-08:00"
|
|
84
84
|
},
|
|
85
85
|
"scripts": {
|
|
86
86
|
"build": "tsdown",
|