@tangle-network/sdk-provider-cli-base 0.13.104 → 0.13.105
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-CXaA_cyP.d.mts → index-B3cyaXV5.d.mts} +32 -6
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{src-B5w-16af.mjs → src-DjNUQ88T.mjs} +44 -6
- package/package.json +3 -3
|
@@ -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-B3cyaXV5.mjs";
|
|
2
2
|
import { StreamParserConfig } from "@tangle-network/sdk-cli-runner";
|
|
3
3
|
import { McpConfig, ProviderConfig, StreamEvent } from "@tangle-network/agent-interface";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as localMcpArgv, H as jsonEventParser, It as textDeltaEvents, J as recordCliTokenUsage, Nt as reasoningEvents, Pt as sessionObservedEvents, Rt as toolResultEvents, Y as CliProviderAdapterBase, et as localMcpEnv, zt as toolStartEvents } from "../../src-DjNUQ88T.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-B3cyaXV5.mjs";
|
|
2
2
|
import { StreamParserConfig } from "@tangle-network/sdk-cli-runner";
|
|
3
3
|
import { StreamEvent } from "@tangle-network/agent-interface";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Pt as sessionObservedEvents, U as plaintextResponseParser, Y as CliProviderAdapterBase } from "../../src-DjNUQ88T.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-B3cyaXV5.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
|
|
1
|
+
import { $ as localMcpArgv, Ft as streamPartBase, H as jsonEventParser, I as McpInteractionSupport, It as textDeltaEvents, J as recordCliTokenUsage, Nt as reasoningEvents, Pt as sessionObservedEvents, Q as isLocalMcpConfig, Rt as toolResultEvents, Y as CliProviderAdapterBase, et as localMcpEnv, st as withTurnInteractions, tt as enabledInteractionKinds, zt as toolStartEvents } from "../../src-DjNUQ88T.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-B3cyaXV5.mjs";
|
|
2
2
|
import { StreamParserConfig } from "@tangle-network/sdk-cli-runner";
|
|
3
3
|
import { StreamEvent } from "@tangle-network/agent-interface";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Pt as sessionObservedEvents, U as plaintextResponseParser, Y as CliProviderAdapterBase, pt as prependPromptSection } from "../../src-DjNUQ88T.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-B3cyaXV5.mjs";
|
|
2
2
|
import { i as PreparedAttachment } from "../../prompt-input-CD7okX8T.mjs";
|
|
3
3
|
import { StreamParserConfig } from "@tangle-network/sdk-cli-runner";
|
|
4
4
|
import { InputPart, McpConfig, StreamEvent } from "@tangle-network/agent-interface";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { $ as localMcpArgv, J as recordCliTokenUsage, Pt as sessionObservedEvents, Q as isLocalMcpConfig, U as plaintextResponseParser, Y as CliProviderAdapterBase, dt as partitionImageAttachments, et as localMcpEnv, pt as prependPromptSection } from "../../src-DjNUQ88T.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-B3cyaXV5.mjs";
|
|
2
2
|
import { StreamParserConfig } from "@tangle-network/sdk-cli-runner";
|
|
3
3
|
import { StreamEvent } from "@tangle-network/agent-interface";
|
|
4
4
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { J as recordCliTokenUsage, K as parseCliUsageLine, Pt as sessionObservedEvents, U as plaintextResponseParser, Y as CliProviderAdapterBase, pt as prependPromptSection } from "../../src-DjNUQ88T.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-B3cyaXV5.mjs";
|
|
2
2
|
import { i as PreparedAttachment } from "../../prompt-input-CD7okX8T.mjs";
|
|
3
3
|
import { StreamParserConfig } from "@tangle-network/sdk-cli-runner";
|
|
4
4
|
import { InputPart, StreamEvent } from "@tangle-network/agent-interface";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Pt as sessionObservedEvents, U as plaintextResponseParser, Y as CliProviderAdapterBase, pt as prependPromptSection } from "../../src-DjNUQ88T.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-B3cyaXV5.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 { F as nativeEffortArgs, J as recordCliTokenUsage, Mt as finalTextEvent, Pt as sessionObservedEvents, Y as CliProviderAdapterBase, pt as prependPromptSection } from "../../src-DjNUQ88T.mjs";
|
|
2
2
|
import { resolveTangleRouterDefaults } from "@tangle-network/agent-interface";
|
|
3
3
|
//#region src/adapters/openclaw/adapter.ts
|
|
4
4
|
/** openclaw's default agent id; the synthesized config declares only it. */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { En as AcpProcessSpec, Ft as AcpContentBlock, Pt as AcpBridgeConfig, Tn as AcpBridgeSpawn, Tt as AcpProviderAdapterBase, Vt as AcpTurn } from "../../index-B3cyaXV5.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 { Gt as spawnAcpBridge, W as AcpProviderAdapterBase, pt as prependPromptSection } from "../../src-DjNUQ88T.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 { 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";
|
|
4
|
+
import { ApplyWorkspacePlanOptions, BindableLaunchControl, CODEX_DISABLED_FEATURE_ARGS, HarnessId, HarnessId as HarnessId$1, PlanFile, 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";
|
|
@@ -49,7 +49,9 @@ type SecretProfileMcpServer = {
|
|
|
49
49
|
} | (SecretProfileMcpStdio & {
|
|
50
50
|
/** The executor serves this command unless its lease supplies an acknowledged direct projection. */
|
|
51
51
|
/** Every secret value its environment references, whatever its length. */
|
|
52
|
-
secrets: readonly string[];
|
|
52
|
+
secrets: readonly string[]; /** The profile's file mounts as its plan holds them; the server runs from a root-owned copy. */
|
|
53
|
+
files?: readonly PlanFile[]; /** The declared workspace subdirectory its UID may write while it runs (shared launch only). */
|
|
54
|
+
workspace?: string;
|
|
53
55
|
});
|
|
54
56
|
type SecretProfileMcpLease = (() => void | Promise<void>) & {
|
|
55
57
|
/** Only the accepted executor may supply this after exact Host installation ACK. */readonly directStdio?: readonly SecretProfileMcpStdio[];
|
|
@@ -70,8 +72,30 @@ declare function directStdioMcpServers(lease: SecretProfileMcpLease | undefined,
|
|
|
70
72
|
})[]): ReadonlyMap<string, SecretProfileMcpStdio>;
|
|
71
73
|
/** A config value with its secret references resolved, or undefined. */
|
|
72
74
|
declare function resolveReferences(value: string, references: Readonly<Record<string, string>>, secrets?: Set<string>): string | undefined;
|
|
73
|
-
/**
|
|
74
|
-
declare
|
|
75
|
+
/** The plain env entry by which a shared-launch stdio server opts into the bridge: the one workspace subdirectory it may write. */
|
|
76
|
+
declare const SHARED_WORKSPACE_DIR_ENV = "TANGLE_SHARED_WORKSPACE_DIR";
|
|
77
|
+
/**
|
|
78
|
+
* A stdio server the executor can run: its command and its environment with
|
|
79
|
+
* every secret reference resolved, and on the shared launch its mounts and
|
|
80
|
+
* the subdirectory of `workspaceRoot` it declares.
|
|
81
|
+
*/
|
|
82
|
+
declare function servableStdioServer(name: string, entry: Record<string, unknown>, references: Readonly<Record<string, string>>, mount?: {
|
|
83
|
+
files?: readonly PlanFile[];
|
|
84
|
+
workspaceRoot: string;
|
|
85
|
+
}): SecretProfileMcpServer | string;
|
|
86
|
+
/**
|
|
87
|
+
* An undeclared shared-launch stdio server, until the default flips: its
|
|
88
|
+
* entry with every reference resolved for the turn's inline config, which the
|
|
89
|
+
* agent can read, and its warning, naming each enabled remote server that
|
|
90
|
+
* holds one of the same references.
|
|
91
|
+
*/
|
|
92
|
+
declare function exposedStdioServer(entry: Record<string, unknown>, references: Readonly<Record<string, string>>, servers: Readonly<Record<string, Record<string, unknown>>>): {
|
|
93
|
+
entry: any;
|
|
94
|
+
warning: {
|
|
95
|
+
sharedWith?: string[] | undefined;
|
|
96
|
+
reason: string;
|
|
97
|
+
};
|
|
98
|
+
};
|
|
75
99
|
/** A remote server the executor can serve: its fixed upstream URL and every header with its secret references resolved. */
|
|
76
100
|
declare function servableMcpServer(name: string, entry: Record<string, unknown>, references: Readonly<Record<string, string>>): SecretProfileMcpServer | string;
|
|
77
101
|
/** Earlier physical cleanup must succeed before another holder is admitted. */
|
|
@@ -510,6 +534,8 @@ declare abstract class CliAdapterProfile<TConfig extends CliProviderConfig = Cli
|
|
|
510
534
|
protected secretProfileProviderConfig(): Record<string, unknown> | undefined;
|
|
511
535
|
/** The values behind a secret revision's `{env:NAME}` config references, for an executor that serves those references itself. */
|
|
512
536
|
protected secretProfileReferences(application: WorkspacePlanApplication | undefined): Readonly<Record<string, string>> | undefined;
|
|
537
|
+
/** The shared launch's profile file mounts, as its plan holds them. */
|
|
538
|
+
protected secretProfileMounts(application?: WorkspacePlanApplication): readonly PlanFile[] | undefined;
|
|
513
539
|
/** The one sealed session view repointed only while its native turn owns the queue. */
|
|
514
540
|
protected secretProfileSessionView(sessionId: string): {
|
|
515
541
|
launchRoot: string;
|
|
@@ -1384,5 +1410,5 @@ declare function homeXdgEnv(home: string): {
|
|
|
1384
1410
|
XDG_STATE_HOME: string;
|
|
1385
1411
|
};
|
|
1386
1412
|
//#endregion
|
|
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,
|
|
1388
|
-
//# sourceMappingURL=index-
|
|
1413
|
+
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, servableStdioServer as Cn, wasNeverLaunched as Ct, provenStoreBinary as D, spawnAcpBridge as Dn, runtimeSecretsOverlay as Dt, isTrustedStoreBinary as E, AcpProcessSpec as En, 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, servableMcpServer as Sn, rejectNotLaunched as St, assertSealedNativeHome as T, AcpBridgeSpawn 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 _, isPlainRecord as _n, jsonEventParser as _t, PERMISSION_DECISION_TIMEOUT_MS as a, turnEndReason as an, interactionMcpToolName as at, toolStartEvents as b, resolveReferences as bn, SessionRehydrationError as bt, WorkspacePlanApplication$1 as c, withTurnInteractions as cn, deterministicFilePartId as ct, TerminalPlanSupport as d, SecretProfileMcpLease as dn, EXECUTION_CORRELATION_HEADERS as dt, ToolCallState as en, InteractionMcpServerConfig$1 as et, TerminalPlanSupportOptions as f, SecretProfileMcpServer as fn, EXECUTION_ID_HEADER as ft, streamPartBase as g, isLoopbackEndpoint as gn, PlaintextResponse as gt, sessionObservedEvents as h, exposedStdioServer 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, SHARED_WORKSPACE_DIR_ENV as ln, inferMediaType as lt, reasoningEvents as m, directStdioMcpServers 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, assertSealedNativeSearchPath 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, SecretProfileMcpCredentialProxy as un, trackFilePart as ut, textSnapshotEvents as v, joinQueue as vn, plaintextResponseParser as vt, SEALED_NATIVE_HOME_LAYOUT as w, untilSettledOrAborted as wn, mapAcpSessionUpdate as wt, forgetSessionScopes as x, secretSessionTurnQueue as xn, failureAfterCleanup as xt, toolResultEvents as y, requireRecord as yn, InvalidAttachmentError as yt, createRepeatedToolFailureGuard as z, AcpPromptResult as zt };
|
|
1414
|
+
//# sourceMappingURL=index-B3cyaXV5.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
|
|
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 servableStdioServer, Ct as wasNeverLaunched, D as provenStoreBinary, Dn as spawnAcpBridge, Dt as runtimeSecretsOverlay, E as isTrustedStoreBinary, En as AcpProcessSpec, 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 servableMcpServer, St as rejectNotLaunched, T as assertSealedNativeHome, Tn as AcpBridgeSpawn, 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 isPlainRecord, _t as jsonEventParser, a as PERMISSION_DECISION_TIMEOUT_MS, an as turnEndReason, at as interactionMcpToolName, b as toolStartEvents, bn as resolveReferences, bt as SessionRehydrationError, c as WorkspacePlanApplication, cn as withTurnInteractions, ct as deterministicFilePartId, d as TerminalPlanSupport, dn as SecretProfileMcpLease, dt as EXECUTION_CORRELATION_HEADERS, en as ToolCallState, et as InteractionMcpServerConfig, f as TerminalPlanSupportOptions, fn as SecretProfileMcpServer, ft as EXECUTION_ID_HEADER, g as streamPartBase, gn as isLoopbackEndpoint, gt as PlaintextResponse, h as sessionObservedEvents, hn as exposedStdioServer, 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 SHARED_WORKSPACE_DIR_ENV, lt as inferMediaType, m as reasoningEvents, mn as directStdioMcpServers, 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 assertSealedNativeSearchPath, 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 SecretProfileMcpCredentialProxy, ut as trackFilePart, v as textSnapshotEvents, vn as joinQueue, vt as plaintextResponseParser, w as SEALED_NATIVE_HOME_LAYOUT, wn as untilSettledOrAborted, wt as mapAcpSessionUpdate, x as forgetSessionScopes, xn as secretSessionTurnQueue, xt as failureAfterCleanup, y as toolResultEvents, yn as requireRecord, yt as InvalidAttachmentError, z as createRepeatedToolFailureGuard, zt as AcpPromptResult } from "./index-B3cyaXV5.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, 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 };
|
|
3
|
+
export { ACP_MIN_PROTOCOL_VERSION, ACP_PROTOCOL_VERSION, AcpBridgeConfig, AcpBridgeSpawn, AcpContentBlock, AcpInitializeParams, AcpInitializeResult, AcpNewSessionResult, AcpProcessSpec, AcpPromptResult, AcpProviderAdapterBase, AcpSessionUpdateParams, AcpTurn, AskUserBridge, CODEX_DISABLED_FEATURE_ARGS, CliExecArgs, CliExecutionInput, CliProviderAdapterBase, CliProviderConfig, CliProviderLogger, CliProviderOptions, CliTurnProcess, CliTurnSpawn, DEFAULT_INTERACTION_MCP_SERVER_NAME, EXECUTION_CORRELATION_HEADERS, EXECUTION_ID_HEADER, EXECUTION_TRACE_HEADER, EphemeralContextInput, ExecutionState, HarnessId, InteractionBroker, InteractionHttpBridge, InteractionMcpServer, InteractionMcpServerConfig, InteractionToggleConfig, InteractionToggleKind, InvalidAttachmentError, MANAGED_QUOTE_VERSION_HEADER, MAX_INLINE_IMAGE_BYTES, MAX_TOTAL_INLINE_IMAGE_BYTES, McpInteractionSupport, NATIVE_SESSION_CONTRACTS, PERMISSION_DECISION_TIMEOUT_MS, PROMPT_SECTION_SEPARATOR, PerTurnInteractionInput, PermissionPromptBridge, PlaintextResponse, PreparedAttachment, PreparedCliLaunch, ROUTER_MODEL_CATALOG_TIMEOUT_MS, RepeatedToolFailure, RepeatedToolFailureGuardOptions, RequestPermissionBridge, RequestPlanBridge, ResolveRouterModelLimitsInput, RouterModelLimits, RouterModelLimitsResult, SEALED_NATIVE_HOME_LAYOUT, SECRET_REFERENCE, SECRET_REFERENCE_PREFIX, SHARED_WORKSPACE_DIR_ENV, SecretProfileMcpCredentialProxy, SecretProfileMcpLease, SecretProfileMcpServer, SessionRehydrationError, TerminalPlanSupport, TerminalPlanSupportOptions, ToolCallState, TurnEndReason, WorkspacePlanApplication, accumulateCliTokenUsage, acpContentText, assertAcpTurnFinished, assertSealedNativeHome, assertSealedNativeSearchPath, brokerInteractionTools, buildFileUrl, codexDeveloperInstructionArgs, createExecutionState, createRepeatedToolFailureGuard, deriveFilePart, deterministicFilePartId, directStdioMcpServers, enabledInteractionKinds, executionCorrelationHeaders, exposedStdioServer, failureAfterCleanup, finalTextEvent, findRouterCatalogEntry, forgetSessionScopes, homeXdgEnv, inferMediaType, interactionMcpToolName, interactionToggleEnabled, isLocalMcpConfig, isLoopbackEndpoint, isPlainRecord, isTrustedStoreBinary, joinQueue, jsonEventParser, kimiThinkingArgs, localMcpArgv, localMcpEnv, mapAcpSessionUpdate, nativeEffortArgs, parseCliUsageLine, partitionImageAttachments, plaintextResponseParser, preparePromptInputParts, prependPromptSection, provenStoreBinary, readCliTokenUsage, readEphemeralContext, reasoningEvents, recordCliTokenUsage, refuseSecretLaunch, rejectNotLaunched, requireRecord, resolveExecutableRealpath, resolveReferences, resolveRouterModelLimits, resolveRouterModelReasoningEfforts, runtimeSecretsOverlay, secretMcpScope, secretSessionTurnQueue, servableMcpServer, servableStdioServer, sessionObservedEvents, spawnAcpBridge, streamPartBase, textDeltaEvents, textSnapshotEvents, toolResultEvents, toolStartEvents, trackFilePart, trackReasoningBlock, turnEndReason, turnInteractionEnabled, untilSettledOrAborted, wasNeverLaunched, withEphemeralContext, withTurnInteractions };
|
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, 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
|
+
import { $ as localMcpArgv, A as ROUTER_MODEL_CATALOG_TIMEOUT_MS, At as homeXdgEnv, B as brokerInteractionTools, Bt as trackReasoningBlock, C as NATIVE_SESSION_CONTRACTS, Ct as wasNeverLaunched, D as provenStoreBinary, Dt as EXECUTION_TRACE_HEADER, E as isTrustedStoreBinary, Et as EXECUTION_ID_HEADER, F as nativeEffortArgs, Ft as streamPartBase, G as accumulateCliTokenUsage, Gt as spawnAcpBridge, H as jsonEventParser, Ht as ACP_PROTOCOL_VERSION, I as McpInteractionSupport, It as textDeltaEvents, J as recordCliTokenUsage, K as parseCliUsageLine, L as TerminalPlanSupport, Lt as textSnapshotEvents, M as resolveRouterModelLimits, Mt as finalTextEvent, N as resolveRouterModelReasoningEfforts, Nt as reasoningEvents, O as refuseSecretLaunch, Ot as MANAGED_QUOTE_VERSION_HEADER, P as kimiThinkingArgs, Pt as sessionObservedEvents, Q as isLocalMcpConfig, R as DEFAULT_INTERACTION_MCP_SERVER_NAME, Rt as toolResultEvents, S as untilSettledOrAborted, St as rejectNotLaunched, T as assertSealedNativeHome, Tt as EXECUTION_CORRELATION_HEADERS, U as plaintextResponseParser, Ut as acpContentText, V as interactionMcpToolName, Vt as ACP_MIN_PROTOCOL_VERSION, W as AcpProviderAdapterBase, Wt as assertAcpTurnFinished, X as createRepeatedToolFailureGuard, Y as CliProviderAdapterBase, Z as createExecutionState, _ as requireRecord, _t as inferMediaType, a as SECRET_REFERENCE, at as turnInteractionEnabled, b as servableMcpServer, bt as SessionRehydrationError, c as forgetSessionScopes, ct as MAX_INLINE_IMAGE_BYTES, d as assertSealedNativeSearchPath, dt as partitionImageAttachments, et as localMcpEnv, f as directStdioMcpServers, ft as preparePromptInputParts, g as joinQueue, gt as deterministicFilePartId, h as isPlainRecord, ht as deriveFilePart, i as PERMISSION_DECISION_TIMEOUT_MS, it as turnEndReason, j as findRouterCatalogEntry, jt as mapAcpSessionUpdate, k as resolveExecutableRealpath, kt as executionCorrelationHeaders, l as secretMcpScope, lt as MAX_TOTAL_INLINE_IMAGE_BYTES, m as isLoopbackEndpoint, mt as buildFileUrl, n as InteractionBroker, nt as interactionToggleEnabled, o as SECRET_REFERENCE_PREFIX, ot as withEphemeralContext, p as exposedStdioServer, pt as prependPromptSection, q as readCliTokenUsage, r as InteractionHttpBridge, rt as readEphemeralContext, s as codexDeveloperInstructionArgs, st as withTurnInteractions, t as CODEX_DISABLED_FEATURE_ARGS, tt as enabledInteractionKinds, u as SHARED_WORKSPACE_DIR_ENV, ut as PROMPT_SECTION_SEPARATOR, v as resolveReferences, vt as trackFilePart, w as SEALED_NATIVE_HOME_LAYOUT, wt as runtimeSecretsOverlay, x as servableStdioServer, xt as failureAfterCleanup, y as secretSessionTurnQueue, yt as InvalidAttachmentError, z as InteractionMcpServer, zt as toolStartEvents } from "./src-DjNUQ88T.mjs";
|
|
2
|
+
export { ACP_MIN_PROTOCOL_VERSION, ACP_PROTOCOL_VERSION, AcpProviderAdapterBase, CODEX_DISABLED_FEATURE_ARGS, CliProviderAdapterBase, DEFAULT_INTERACTION_MCP_SERVER_NAME, EXECUTION_CORRELATION_HEADERS, EXECUTION_ID_HEADER, EXECUTION_TRACE_HEADER, InteractionBroker, InteractionHttpBridge, InteractionMcpServer, InvalidAttachmentError, MANAGED_QUOTE_VERSION_HEADER, MAX_INLINE_IMAGE_BYTES, MAX_TOTAL_INLINE_IMAGE_BYTES, McpInteractionSupport, NATIVE_SESSION_CONTRACTS, PERMISSION_DECISION_TIMEOUT_MS, PROMPT_SECTION_SEPARATOR, ROUTER_MODEL_CATALOG_TIMEOUT_MS, SEALED_NATIVE_HOME_LAYOUT, SECRET_REFERENCE, SECRET_REFERENCE_PREFIX, SHARED_WORKSPACE_DIR_ENV, SessionRehydrationError, TerminalPlanSupport, accumulateCliTokenUsage, acpContentText, assertAcpTurnFinished, assertSealedNativeHome, assertSealedNativeSearchPath, brokerInteractionTools, buildFileUrl, codexDeveloperInstructionArgs, createExecutionState, createRepeatedToolFailureGuard, deriveFilePart, deterministicFilePartId, directStdioMcpServers, enabledInteractionKinds, executionCorrelationHeaders, exposedStdioServer, failureAfterCleanup, finalTextEvent, findRouterCatalogEntry, forgetSessionScopes, homeXdgEnv, inferMediaType, interactionMcpToolName, interactionToggleEnabled, isLocalMcpConfig, isLoopbackEndpoint, isPlainRecord, isTrustedStoreBinary, joinQueue, jsonEventParser, kimiThinkingArgs, localMcpArgv, localMcpEnv, mapAcpSessionUpdate, nativeEffortArgs, parseCliUsageLine, partitionImageAttachments, plaintextResponseParser, preparePromptInputParts, prependPromptSection, provenStoreBinary, readCliTokenUsage, readEphemeralContext, reasoningEvents, recordCliTokenUsage, refuseSecretLaunch, rejectNotLaunched, requireRecord, resolveExecutableRealpath, resolveReferences, resolveRouterModelLimits, resolveRouterModelReasoningEfforts, runtimeSecretsOverlay, secretMcpScope, secretSessionTurnQueue, servableMcpServer, servableStdioServer, sessionObservedEvents, spawnAcpBridge, streamPartBase, textDeltaEvents, textSnapshotEvents, toolResultEvents, toolStartEvents, trackFilePart, trackReasoningBlock, turnEndReason, turnInteractionEnabled, untilSettledOrAborted, wasNeverLaunched, withEphemeralContext, withTurnInteractions };
|
|
@@ -1651,6 +1651,10 @@ var CliAdapterProfile = class extends CliAdapterLifecycle {
|
|
|
1651
1651
|
secretProfileReferences(application) {
|
|
1652
1652
|
return application ? this.secretProfileRevisions.get(application)?.references : void 0;
|
|
1653
1653
|
}
|
|
1654
|
+
/** The shared launch's profile file mounts, as its plan holds them. */
|
|
1655
|
+
secretProfileMounts(application) {
|
|
1656
|
+
return application && this.secretProfileRevisions.get(application)?.files;
|
|
1657
|
+
}
|
|
1654
1658
|
/** The one sealed session view repointed only while its native turn owns the queue. */
|
|
1655
1659
|
secretProfileSessionView(sessionId) {
|
|
1656
1660
|
const root = this.config.secretProfileRevisionRoot;
|
|
@@ -1752,7 +1756,10 @@ var CliAdapterProfile = class extends CliAdapterLifecycle {
|
|
|
1752
1756
|
...options,
|
|
1753
1757
|
secretFileSlotReferences: references
|
|
1754
1758
|
} : options);
|
|
1755
|
-
if (Object.keys(references).length > 0) this.secretProfileRevisions.set(application, {
|
|
1759
|
+
if (Object.keys(references).length > 0) this.secretProfileRevisions.set(application, {
|
|
1760
|
+
references,
|
|
1761
|
+
files: plan.files.filter((file) => file.source === "user" && file.root !== "agent")
|
|
1762
|
+
});
|
|
1756
1763
|
const exposed = this.referencesSharedFileSecrets ? 0 : workspacePlanSecretCount(plan);
|
|
1757
1764
|
if (exposed > 0) this.logger.warn("profile_secret_exposed_shared_launch", {
|
|
1758
1765
|
harness: plan.harness,
|
|
@@ -4705,13 +4712,22 @@ function resolveReferences(value, references, secrets) {
|
|
|
4705
4712
|
});
|
|
4706
4713
|
return unresolved || /\{(?:env|file):/.test(resolved) ? void 0 : resolved;
|
|
4707
4714
|
}
|
|
4708
|
-
/**
|
|
4709
|
-
|
|
4715
|
+
/** The plain env entry by which a shared-launch stdio server opts into the bridge: the one workspace subdirectory it may write. */
|
|
4716
|
+
const SHARED_WORKSPACE_DIR_ENV = "TANGLE_SHARED_WORKSPACE_DIR";
|
|
4717
|
+
/**
|
|
4718
|
+
* A stdio server the executor can run: its command and its environment with
|
|
4719
|
+
* every secret reference resolved, and on the shared launch its mounts and
|
|
4720
|
+
* the subdirectory of `workspaceRoot` it declares.
|
|
4721
|
+
*/
|
|
4722
|
+
function servableStdioServer(name, entry, references, mount) {
|
|
4710
4723
|
const command = entry.command;
|
|
4711
4724
|
if (!Array.isArray(command) || command.length === 0 || command.some((part) => typeof part !== "string" || /\{(?:env|file):/.test(part))) return "its command is not a fixed argument list";
|
|
4712
4725
|
if (entry.cwd !== void 0) return "it names a working directory";
|
|
4713
4726
|
const declared = entry.environment === void 0 ? {} : entry.environment;
|
|
4714
4727
|
if (!isRecord(declared)) return "its environment is not a map";
|
|
4728
|
+
const dir = declared[SHARED_WORKSPACE_DIR_ENV];
|
|
4729
|
+
const rule = !mount ? void 0 : typeof dir !== "string" || /\{(?:env|file):/.test(dir) ? "a plain value" : !dir || /[/\0]/.test(dir) || dir.includes("..") ? "one segment, no /, .. or NUL" : dir.startsWith(".") ? "without a leading ." : dir === "workspaces" && "other than workspaces";
|
|
4730
|
+
if (rule) return `its ${SHARED_WORKSPACE_DIR_ENV} must be ${rule}`;
|
|
4715
4731
|
const environment = {};
|
|
4716
4732
|
const secrets = /* @__PURE__ */ new Set();
|
|
4717
4733
|
for (const [variable, value] of Object.entries(declared)) {
|
|
@@ -4724,7 +4740,29 @@ function servableStdioServer(name, entry, references) {
|
|
|
4724
4740
|
name,
|
|
4725
4741
|
command,
|
|
4726
4742
|
environment,
|
|
4727
|
-
secrets: [...secrets]
|
|
4743
|
+
secrets: [...secrets],
|
|
4744
|
+
...mount && {
|
|
4745
|
+
files: mount.files,
|
|
4746
|
+
workspace: join(mount.workspaceRoot, dir)
|
|
4747
|
+
}
|
|
4748
|
+
};
|
|
4749
|
+
}
|
|
4750
|
+
/**
|
|
4751
|
+
* An undeclared shared-launch stdio server, until the default flips: its
|
|
4752
|
+
* entry with every reference resolved for the turn's inline config, which the
|
|
4753
|
+
* agent can read, and its warning, naming each enabled remote server that
|
|
4754
|
+
* holds one of the same references.
|
|
4755
|
+
*/
|
|
4756
|
+
function exposedStdioServer(entry, references, servers) {
|
|
4757
|
+
const text = JSON.stringify(entry);
|
|
4758
|
+
const held = text.match(SECRET_REFERENCE) ?? [];
|
|
4759
|
+
const sharedWith = Object.keys(servers).filter((other) => servers[other]?.type === "remote" && servers[other]?.enabled !== false && held.some((ref) => JSON.stringify(servers[other]).includes(ref)));
|
|
4760
|
+
return {
|
|
4761
|
+
entry: JSON.parse(text.replace(SECRET_REFERENCE, (_, ref) => JSON.stringify(references[ref] ?? "").slice(1, -1))),
|
|
4762
|
+
warning: {
|
|
4763
|
+
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",
|
|
4764
|
+
...sharedWith.length ? { sharedWith } : {}
|
|
4765
|
+
}
|
|
4728
4766
|
};
|
|
4729
4767
|
}
|
|
4730
4768
|
/** A remote server the executor can serve: its fixed upstream URL and every header with its secret references resolved. */
|
|
@@ -4868,6 +4906,6 @@ async function forgetSessionScopes(target) {
|
|
|
4868
4906
|
}
|
|
4869
4907
|
}
|
|
4870
4908
|
//#endregion
|
|
4871
|
-
export {
|
|
4909
|
+
export { localMcpArgv as $, ROUTER_MODEL_CATALOG_TIMEOUT_MS as A, homeXdgEnv as At, brokerInteractionTools$1 as B, trackReasoningBlock as Bt, NATIVE_SESSION_CONTRACTS$1 as C, wasNeverLaunched as Ct, provenStoreBinary as D, EXECUTION_TRACE_HEADER as Dt, isTrustedStoreBinary as E, EXECUTION_ID_HEADER as Et, nativeEffortArgs as F, streamPartBase as Ft, accumulateCliTokenUsage as G, spawnAcpBridge as Gt, jsonEventParser as H, ACP_PROTOCOL_VERSION as Ht, McpInteractionSupport as I, textDeltaEvents as It, recordCliTokenUsage as J, parseCliUsageLine as K, TerminalPlanSupport as L, textSnapshotEvents as Lt, resolveRouterModelLimits as M, finalTextEvent as Mt, resolveRouterModelReasoningEfforts as N, reasoningEvents as Nt, refuseSecretLaunch as O, MANAGED_QUOTE_VERSION_HEADER as Ot, kimiThinkingArgs as P, sessionObservedEvents as Pt, isLocalMcpConfig as Q, DEFAULT_INTERACTION_MCP_SERVER_NAME as R, toolResultEvents as Rt, untilSettledOrAborted as S, rejectNotLaunched as St, assertSealedNativeHome as T, EXECUTION_CORRELATION_HEADERS as Tt, plaintextResponseParser as U, acpContentText as Ut, interactionMcpToolName as V, ACP_MIN_PROTOCOL_VERSION as Vt, AcpProviderAdapterBase as W, assertAcpTurnFinished as Wt, createRepeatedToolFailureGuard as X, CliProviderAdapterBase as Y, createExecutionState as Z, requireRecord as _, inferMediaType as _t, SECRET_REFERENCE$1 as a, turnInteractionEnabled as at, servableMcpServer as b, SessionRehydrationError as bt, forgetSessionScopes as c, MAX_INLINE_IMAGE_BYTES as ct, assertSealedNativeSearchPath as d, partitionImageAttachments as dt, localMcpEnv as et, directStdioMcpServers as f, preparePromptInputParts as ft, joinQueue as g, deterministicFilePartId as gt, isPlainRecord as h, deriveFilePart as ht, PERMISSION_DECISION_TIMEOUT_MS as i, turnEndReason as it, findRouterCatalogEntry as j, mapAcpSessionUpdate as jt, resolveExecutableRealpath as k, executionCorrelationHeaders as kt, secretMcpScope as l, MAX_TOTAL_INLINE_IMAGE_BYTES as lt, isLoopbackEndpoint as m, buildFileUrl as mt, InteractionBroker$1 as n, interactionToggleEnabled as nt, SECRET_REFERENCE_PREFIX as o, withEphemeralContext as ot, exposedStdioServer as p, prependPromptSection as pt, readCliTokenUsage as q, InteractionHttpBridge as r, readEphemeralContext as rt, codexDeveloperInstructionArgs as s, withTurnInteractions as st, CODEX_DISABLED_FEATURE_ARGS as t, enabledInteractionKinds as tt, SHARED_WORKSPACE_DIR_ENV as u, PROMPT_SECTION_SEPARATOR as ut, resolveReferences as v, trackFilePart as vt, SEALED_NATIVE_HOME_LAYOUT as w, runtimeSecretsOverlay as wt, servableStdioServer as x, failureAfterCleanup as xt, secretSessionTurnQueue as y, InvalidAttachmentError as yt, InteractionMcpServer$1 as z, toolStartEvents as zt };
|
|
4872
4910
|
|
|
4873
|
-
//# sourceMappingURL=src-
|
|
4911
|
+
//# sourceMappingURL=src-DjNUQ88T.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.105",
|
|
4
4
|
"description": "Base adapter for CLI-based AI agent providers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.mjs",
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"registry": "https://registry.npmjs.org"
|
|
80
80
|
},
|
|
81
81
|
"tangleRelease": {
|
|
82
|
-
"sourceSha": "
|
|
83
|
-
"mergedAt": "2026-11-
|
|
82
|
+
"sourceSha": "8e7ae3e1062e9d301f65ee88d3421bbfd103fa66",
|
|
83
|
+
"mergedAt": "2026-11-16T14:17:43-08:00"
|
|
84
84
|
},
|
|
85
85
|
"scripts": {
|
|
86
86
|
"build": "tsdown",
|