@tangle-network/sdk-provider-cli-base 0.13.83 → 0.13.85
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-C-RLiNLq.d.mts → index-BDg51Wc2.d.mts} +11 -2
- package/dist/index.d.mts +1 -1
- package/dist/index.mjs +1 -1
- package/dist/{src-C7iHnWXB.mjs → src-D7Li6ZIW.mjs} +17 -4
- package/package.json +4 -4
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bt as CliExecArgs, Ht as CliProviderConfig, Kt as ExecutionState, St as CliProviderAdapterBase } from "../../index-
|
|
1
|
+
import { Bt as CliExecArgs, Ht as CliProviderConfig, Kt as ExecutionState, St as CliProviderAdapterBase } from "../../index-BDg51Wc2.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 { At as sessionObservedEvents, Ft as toolStartEvents, G as recordCliTokenUsage, K as CliProviderAdapterBase, Mt as textDeltaEvents, Pt as toolResultEvents, X as localMcpArgv, Z as localMcpEnv, kt as reasoningEvents, z as jsonEventParser } from "../../src-
|
|
1
|
+
import { At as sessionObservedEvents, Ft as toolStartEvents, G as recordCliTokenUsage, K as CliProviderAdapterBase, Mt as textDeltaEvents, Pt as toolResultEvents, X as localMcpArgv, Z as localMcpEnv, kt as reasoningEvents, z as jsonEventParser } from "../../src-D7Li6ZIW.mjs";
|
|
2
2
|
//#region src/adapters/amp/types.ts
|
|
3
3
|
/**
|
|
4
4
|
* Type guard for AMP events.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Bt as CliExecArgs, Et as CliTurnSpawn, Ht as CliProviderConfig, Kt as ExecutionState, St as CliProviderAdapterBase, Tt as CliTurnProcess } from "../../index-
|
|
1
|
+
import { Bt as CliExecArgs, Et as CliTurnSpawn, Ht as CliProviderConfig, Kt as ExecutionState, St as CliProviderAdapterBase, Tt as CliTurnProcess } from "../../index-BDg51Wc2.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 { At as sessionObservedEvents, B as plaintextResponseParser, K as CliProviderAdapterBase } from "../../src-
|
|
1
|
+
import { At as sessionObservedEvents, B as plaintextResponseParser, K as CliProviderAdapterBase } from "../../src-D7Li6ZIW.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 { Bt as CliExecArgs, Ht as CliProviderConfig, Kt as ExecutionState, St as CliProviderAdapterBase } from "../../index-
|
|
1
|
+
import { Bt as CliExecArgs, Ht as CliProviderConfig, Kt as ExecutionState, St as CliProviderAdapterBase } from "../../index-BDg51Wc2.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 { At as sessionObservedEvents, Ft as toolStartEvents, G as recordCliTokenUsage, K as CliProviderAdapterBase, Mt as textDeltaEvents, N as McpInteractionSupport, Pt as toolResultEvents, Q as enabledInteractionKinds, X as localMcpArgv, Y as isLocalMcpConfig, Z as localMcpEnv, it as withTurnInteractions, jt as streamPartBase, kt as reasoningEvents, z as jsonEventParser } from "../../src-
|
|
1
|
+
import { At as sessionObservedEvents, Ft as toolStartEvents, G as recordCliTokenUsage, K as CliProviderAdapterBase, Mt as textDeltaEvents, N as McpInteractionSupport, Pt as toolResultEvents, Q as enabledInteractionKinds, X as localMcpArgv, Y as isLocalMcpConfig, Z as localMcpEnv, it as withTurnInteractions, jt as streamPartBase, kt as reasoningEvents, z as jsonEventParser } from "../../src-D7Li6ZIW.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 { Bt as CliExecArgs, Ht as CliProviderConfig, Kt as ExecutionState, St as CliProviderAdapterBase } from "../../index-
|
|
1
|
+
import { Bt as CliExecArgs, Ht as CliProviderConfig, Kt as ExecutionState, St as CliProviderAdapterBase } from "../../index-BDg51Wc2.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 { At as sessionObservedEvents, B as plaintextResponseParser, K as CliProviderAdapterBase, ut as prependPromptSection } from "../../src-
|
|
1
|
+
import { At as sessionObservedEvents, B as plaintextResponseParser, K as CliProviderAdapterBase, ut as prependPromptSection } from "../../src-D7Li6ZIW.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 { Bt as CliExecArgs, Ht as CliProviderConfig, Kt as ExecutionState, St as CliProviderAdapterBase, n as HarnessId } from "../../index-
|
|
1
|
+
import { Bt as CliExecArgs, Ht as CliProviderConfig, Kt as ExecutionState, St as CliProviderAdapterBase, n as HarnessId } from "../../index-BDg51Wc2.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 { At as sessionObservedEvents, B as plaintextResponseParser, G as recordCliTokenUsage, K as CliProviderAdapterBase, X as localMcpArgv, Y as isLocalMcpConfig, Z as localMcpEnv, ct as partitionImageAttachments, ut as prependPromptSection } from "../../src-
|
|
1
|
+
import { At as sessionObservedEvents, B as plaintextResponseParser, G as recordCliTokenUsage, K as CliProviderAdapterBase, X as localMcpArgv, Y as isLocalMcpConfig, Z as localMcpEnv, ct as partitionImageAttachments, ut as prependPromptSection } from "../../src-D7Li6ZIW.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 { Bt as CliExecArgs, Ht as CliProviderConfig, Kt as ExecutionState, St as CliProviderAdapterBase, n as HarnessId } from "../../index-
|
|
1
|
+
import { Bt as CliExecArgs, Ht as CliProviderConfig, Kt as ExecutionState, St as CliProviderAdapterBase, n as HarnessId } from "../../index-BDg51Wc2.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 { At as sessionObservedEvents, B as plaintextResponseParser, G as recordCliTokenUsage, K as CliProviderAdapterBase, U as parseCliUsageLine, ut as prependPromptSection } from "../../src-
|
|
1
|
+
import { At as sessionObservedEvents, B as plaintextResponseParser, G as recordCliTokenUsage, K as CliProviderAdapterBase, U as parseCliUsageLine, ut as prependPromptSection } from "../../src-D7Li6ZIW.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 { Bt as CliExecArgs, Ht as CliProviderConfig, Kt as ExecutionState, St as CliProviderAdapterBase } from "../../index-
|
|
1
|
+
import { Bt as CliExecArgs, Ht as CliProviderConfig, Kt as ExecutionState, St as CliProviderAdapterBase } from "../../index-BDg51Wc2.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 { At as sessionObservedEvents, B as plaintextResponseParser, K as CliProviderAdapterBase, ut as prependPromptSection } from "../../src-
|
|
1
|
+
import { At as sessionObservedEvents, B as plaintextResponseParser, K as CliProviderAdapterBase, ut as prependPromptSection } from "../../src-D7Li6ZIW.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 { Bt as CliExecArgs, Ht as CliProviderConfig, Kt as ExecutionState, St as CliProviderAdapterBase, n as HarnessId, o as WorkspacePlanApplication } from "../../index-
|
|
1
|
+
import { Bt as CliExecArgs, Ht as CliProviderConfig, Kt as ExecutionState, St as CliProviderAdapterBase, n as HarnessId, o as WorkspacePlanApplication } from "../../index-BDg51Wc2.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 sessionObservedEvents, G as recordCliTokenUsage, K as CliProviderAdapterBase, M as nativeEffortArgs, Ot as finalTextEvent, ut as prependPromptSection } from "../../src-
|
|
1
|
+
import { At as sessionObservedEvents, G as recordCliTokenUsage, K as CliProviderAdapterBase, M as nativeEffortArgs, Ot as finalTextEvent, ut as prependPromptSection } from "../../src-D7Li6ZIW.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 { At as AcpBridgeConfig, Lt as AcpTurn, Sn as AcpProcessSpec, jt as AcpContentBlock, xn as AcpBridgeSpawn, xt as AcpProviderAdapterBase } from "../../index-
|
|
1
|
+
import { At as AcpBridgeConfig, Lt as AcpTurn, Sn as AcpProcessSpec, jt as AcpContentBlock, xn as AcpBridgeSpawn, xt as AcpProviderAdapterBase } from "../../index-BDg51Wc2.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 { V as AcpProviderAdapterBase, Vt as spawnAcpBridge, ut as prependPromptSection } from "../../src-
|
|
1
|
+
import { V as AcpProviderAdapterBase, Vt as spawnAcpBridge, ut as prependPromptSection } from "../../src-D7Li6ZIW.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";
|
|
@@ -243,6 +243,12 @@ interface ExecutionState {
|
|
|
243
243
|
};
|
|
244
244
|
lastDiagnostic?: string;
|
|
245
245
|
terminalStatus?: "completed" | "failed";
|
|
246
|
+
/**
|
|
247
|
+
* Set by a stream parser that has decided the turn's failure while the
|
|
248
|
+
* harness still runs, such as a provider retry wait no turn should sit
|
|
249
|
+
* out. The turn's observer then stops the harness process.
|
|
250
|
+
*/
|
|
251
|
+
stopRequested?: boolean;
|
|
246
252
|
endReason?: TurnEndReason;
|
|
247
253
|
/** The sandbox's OOM-kill count when the turn started; a later count is this turn's kill. */
|
|
248
254
|
oomKillsAtStart?: number;
|
|
@@ -701,10 +707,13 @@ declare class TurnObserver {
|
|
|
701
707
|
private readonly partUpdates;
|
|
702
708
|
private readonly liveness;
|
|
703
709
|
private readonly repeatedToolFailureGuard;
|
|
704
|
-
private
|
|
710
|
+
private killProcess;
|
|
711
|
+
private stopped;
|
|
705
712
|
constructor(options: TurnObserverOptions);
|
|
706
713
|
flushPartUpdates(): Promise<void>;
|
|
707
714
|
attachProcess(process: CliTurnProcess): void;
|
|
715
|
+
/** Stop the harness once, when the stream parser has decided the turn. */
|
|
716
|
+
private stopIfRequested;
|
|
708
717
|
startLiveness(executionSignal: AbortSignal, startTime: number): NodeJS.Timeout;
|
|
709
718
|
readonly onEvent: (event: StreamEvent) => void;
|
|
710
719
|
private observeToolPart;
|
|
@@ -1350,4 +1359,4 @@ declare function homeXdgEnv(home: string): {
|
|
|
1350
1359
|
};
|
|
1351
1360
|
//#endregion
|
|
1352
1361
|
export { RequestPermissionBridge as $, interactionToggleEnabled as $t, RouterModelLimits as A, AcpBridgeConfig as At, accumulateCliTokenUsage as B, CliExecArgs as Bt, assertSealedNativeHome as C, spawnAcpBridge as Cn, runtimeSecretsOverlay as Ct, resolveExecutableRealpath as D, PreparedCliLaunch as Dt, refuseSecretLaunch as E, CliTurnSpawn as Et, RepeatedToolFailureGuardOptions as F, AcpPromptResult as Ft, localMcpArgv as G, EphemeralContextInput as Gt, readCliTokenUsage as H, CliProviderConfig as Ht, createRepeatedToolFailureGuard as I, AcpSessionUpdateParams as It, AskUserBridge as J, InteractionToggleKind as Jt, localMcpEnv as K, ExecutionState as Kt, trackReasoningBlock as L, AcpTurn as Lt, findRouterCatalogEntry as M, AcpInitializeParams as Mt, resolveRouterModelLimits as N, AcpInitializeResult as Nt, ROUTER_MODEL_CATALOG_TIMEOUT_MS as O, ACP_MIN_PROTOCOL_VERSION as Ot, RepeatedToolFailure as P, AcpNewSessionResult as Pt, PermissionPromptBridge as Q, enabledInteractionKinds as Qt, kimiThinkingArgs as R, acpContentText as Rt, SEALED_NATIVE_HOME_LAYOUT as S, AcpProcessSpec as Sn, CliProviderAdapterBase as St, provenStoreBinary as T, CliTurnProcess as Tt, recordCliTokenUsage as U, CliProviderLogger as Ut, parseCliUsageLine as V, CliExecutionInput as Vt, isLocalMcpConfig as W, CliProviderOptions as Wt, InteractionMcpServer$1 as X, ToolCallState as Xt, DEFAULT_INTERACTION_MCP_SERVER_NAME as Y, PerTurnInteractionInput as Yt, InteractionMcpServerConfig$1 as Z, TurnEndReason as Zt, toolResultEvents as _, secretSessionTurnQueue as _n, SessionRehydrationError as _t, PERMISSION_DECISION_TIMEOUT_MS as a, SECRET_REFERENCE as an, deterministicFilePartId as at, secretMcpScope as b, untilSettledOrAborted as bn, mapAcpSessionUpdate as bt, homeXdgEnv as c, SecretProfileMcpLease as cn, EXECUTION_CORRELATION_HEADERS as ct, finalTextEvent as d, directStdioMcpServers as dn, MANAGED_QUOTE_VERSION_HEADER as dt, readEphemeralContext as en, RequestPlanBridge as et, reasoningEvents as f, isLoopbackEndpoint as fn, executionCorrelationHeaders as ft, textSnapshotEvents as g, resolveReferences as gn, InvalidAttachmentError as gt, textDeltaEvents as h, requireRecord as hn, plaintextResponseParser as ht, InteractionHttpBridge as i, withTurnInteractions as in, deriveFilePart as it, RouterModelLimitsResult as j, AcpContentBlock as jt, ResolveRouterModelLimitsInput as k, ACP_PROTOCOL_VERSION as kt, TerminalPlanSupport as l, SecretProfileMcpServer as ln, EXECUTION_ID_HEADER as lt, streamPartBase as m, joinQueue as mn, jsonEventParser as mt, HarnessId$1 as n, turnInteractionEnabled as nn, interactionMcpToolName as nt, WorkspacePlanApplication$1 as o, SECRET_REFERENCE_PREFIX as on, inferMediaType as ot, sessionObservedEvents as p, isPlainRecord as pn, PlaintextResponse as pt, McpInteractionSupport as q, InteractionToggleConfig as qt, InteractionBroker$1 as r, withEphemeralContext as rn, buildFileUrl as rt, codexDeveloperInstructionArgs as s, SecretProfileMcpCredentialProxy as sn, trackFilePart as st, CODEX_DISABLED_FEATURE_ARGS as t, turnEndReason as tn, brokerInteractionTools$1 as tt, TerminalPlanSupportOptions as u, assertSealedNativeSearchPath as un, EXECUTION_TRACE_HEADER as ut, toolStartEvents as v, servableMcpServer as vn, rejectNotLaunched as vt, isTrustedStoreBinary as w, createExecutionState as wt, NATIVE_SESSION_CONTRACTS$1 as x, AcpBridgeSpawn as xn, AcpProviderAdapterBase as xt, forgetSessionScopes as y, servableStdioServer as yn, wasNeverLaunched as yt, nativeEffortArgs as z, assertAcpTurnFinished as zt };
|
|
1353
|
-
//# sourceMappingURL=index-
|
|
1362
|
+
//# sourceMappingURL=index-BDg51Wc2.d.mts.map
|
package/dist/index.d.mts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { $ as RequestPermissionBridge, $t as interactionToggleEnabled, A as RouterModelLimits, At as AcpBridgeConfig, B as accumulateCliTokenUsage, Bt as CliExecArgs, C as assertSealedNativeHome, Cn as spawnAcpBridge, Ct as runtimeSecretsOverlay, D as resolveExecutableRealpath, Dt as PreparedCliLaunch, E as refuseSecretLaunch, Et as CliTurnSpawn, F as RepeatedToolFailureGuardOptions, Ft as AcpPromptResult, G as localMcpArgv, Gt as EphemeralContextInput, H as readCliTokenUsage, Ht as CliProviderConfig, I as createRepeatedToolFailureGuard, It as AcpSessionUpdateParams, J as AskUserBridge, Jt as InteractionToggleKind, K as localMcpEnv, Kt as ExecutionState, L as trackReasoningBlock, Lt as AcpTurn, M as findRouterCatalogEntry, Mt as AcpInitializeParams, N as resolveRouterModelLimits, Nt as AcpInitializeResult, O as ROUTER_MODEL_CATALOG_TIMEOUT_MS, Ot as ACP_MIN_PROTOCOL_VERSION, P as RepeatedToolFailure, Pt as AcpNewSessionResult, Q as PermissionPromptBridge, Qt as enabledInteractionKinds, R as kimiThinkingArgs, Rt as acpContentText, S as SEALED_NATIVE_HOME_LAYOUT, Sn as AcpProcessSpec, St as CliProviderAdapterBase, T as provenStoreBinary, Tt as CliTurnProcess, U as recordCliTokenUsage, Ut as CliProviderLogger, V as parseCliUsageLine, Vt as CliExecutionInput, W as isLocalMcpConfig, Wt as CliProviderOptions, X as InteractionMcpServer, Xt as ToolCallState, Y as DEFAULT_INTERACTION_MCP_SERVER_NAME, Yt as PerTurnInteractionInput, Z as InteractionMcpServerConfig, Zt as TurnEndReason, _ as toolResultEvents, _n as secretSessionTurnQueue, _t as SessionRehydrationError, a as PERMISSION_DECISION_TIMEOUT_MS, an as SECRET_REFERENCE, at as deterministicFilePartId, b as secretMcpScope, bn as untilSettledOrAborted, bt as mapAcpSessionUpdate, c as homeXdgEnv, cn as SecretProfileMcpLease, ct as EXECUTION_CORRELATION_HEADERS, d as finalTextEvent, dn as directStdioMcpServers, dt as MANAGED_QUOTE_VERSION_HEADER, en as readEphemeralContext, et as RequestPlanBridge, f as reasoningEvents, fn as isLoopbackEndpoint, ft as executionCorrelationHeaders, g as textSnapshotEvents, gn as resolveReferences, gt as InvalidAttachmentError, h as textDeltaEvents, hn as requireRecord, ht as plaintextResponseParser, i as InteractionHttpBridge, in as withTurnInteractions, it as deriveFilePart, j as RouterModelLimitsResult, jt as AcpContentBlock, k as ResolveRouterModelLimitsInput, kt as ACP_PROTOCOL_VERSION, l as TerminalPlanSupport, ln as SecretProfileMcpServer, lt as EXECUTION_ID_HEADER, m as streamPartBase, mn as joinQueue, mt as jsonEventParser, n as HarnessId, nn as turnInteractionEnabled, nt as interactionMcpToolName, o as WorkspacePlanApplication, on as SECRET_REFERENCE_PREFIX, ot as inferMediaType, p as sessionObservedEvents, pn as isPlainRecord, pt as PlaintextResponse, q as McpInteractionSupport, qt as InteractionToggleConfig, r as InteractionBroker, rn as withEphemeralContext, rt as buildFileUrl, s as codexDeveloperInstructionArgs, sn as SecretProfileMcpCredentialProxy, st as trackFilePart, t as CODEX_DISABLED_FEATURE_ARGS, tn as turnEndReason, tt as brokerInteractionTools, u as TerminalPlanSupportOptions, un as assertSealedNativeSearchPath, ut as EXECUTION_TRACE_HEADER, v as toolStartEvents, vn as servableMcpServer, vt as rejectNotLaunched, w as isTrustedStoreBinary, wt as createExecutionState, x as NATIVE_SESSION_CONTRACTS, xn as AcpBridgeSpawn, xt as AcpProviderAdapterBase, y as forgetSessionScopes, yn as servableStdioServer, yt as wasNeverLaunched, z as nativeEffortArgs, zt as assertAcpTurnFinished } from "./index-
|
|
1
|
+
import { $ as RequestPermissionBridge, $t as interactionToggleEnabled, A as RouterModelLimits, At as AcpBridgeConfig, B as accumulateCliTokenUsage, Bt as CliExecArgs, C as assertSealedNativeHome, Cn as spawnAcpBridge, Ct as runtimeSecretsOverlay, D as resolveExecutableRealpath, Dt as PreparedCliLaunch, E as refuseSecretLaunch, Et as CliTurnSpawn, F as RepeatedToolFailureGuardOptions, Ft as AcpPromptResult, G as localMcpArgv, Gt as EphemeralContextInput, H as readCliTokenUsage, Ht as CliProviderConfig, I as createRepeatedToolFailureGuard, It as AcpSessionUpdateParams, J as AskUserBridge, Jt as InteractionToggleKind, K as localMcpEnv, Kt as ExecutionState, L as trackReasoningBlock, Lt as AcpTurn, M as findRouterCatalogEntry, Mt as AcpInitializeParams, N as resolveRouterModelLimits, Nt as AcpInitializeResult, O as ROUTER_MODEL_CATALOG_TIMEOUT_MS, Ot as ACP_MIN_PROTOCOL_VERSION, P as RepeatedToolFailure, Pt as AcpNewSessionResult, Q as PermissionPromptBridge, Qt as enabledInteractionKinds, R as kimiThinkingArgs, Rt as acpContentText, S as SEALED_NATIVE_HOME_LAYOUT, Sn as AcpProcessSpec, St as CliProviderAdapterBase, T as provenStoreBinary, Tt as CliTurnProcess, U as recordCliTokenUsage, Ut as CliProviderLogger, V as parseCliUsageLine, Vt as CliExecutionInput, W as isLocalMcpConfig, Wt as CliProviderOptions, X as InteractionMcpServer, Xt as ToolCallState, Y as DEFAULT_INTERACTION_MCP_SERVER_NAME, Yt as PerTurnInteractionInput, Z as InteractionMcpServerConfig, Zt as TurnEndReason, _ as toolResultEvents, _n as secretSessionTurnQueue, _t as SessionRehydrationError, a as PERMISSION_DECISION_TIMEOUT_MS, an as SECRET_REFERENCE, at as deterministicFilePartId, b as secretMcpScope, bn as untilSettledOrAborted, bt as mapAcpSessionUpdate, c as homeXdgEnv, cn as SecretProfileMcpLease, ct as EXECUTION_CORRELATION_HEADERS, d as finalTextEvent, dn as directStdioMcpServers, dt as MANAGED_QUOTE_VERSION_HEADER, en as readEphemeralContext, et as RequestPlanBridge, f as reasoningEvents, fn as isLoopbackEndpoint, ft as executionCorrelationHeaders, g as textSnapshotEvents, gn as resolveReferences, gt as InvalidAttachmentError, h as textDeltaEvents, hn as requireRecord, ht as plaintextResponseParser, i as InteractionHttpBridge, in as withTurnInteractions, it as deriveFilePart, j as RouterModelLimitsResult, jt as AcpContentBlock, k as ResolveRouterModelLimitsInput, kt as ACP_PROTOCOL_VERSION, l as TerminalPlanSupport, ln as SecretProfileMcpServer, lt as EXECUTION_ID_HEADER, m as streamPartBase, mn as joinQueue, mt as jsonEventParser, n as HarnessId, nn as turnInteractionEnabled, nt as interactionMcpToolName, o as WorkspacePlanApplication, on as SECRET_REFERENCE_PREFIX, ot as inferMediaType, p as sessionObservedEvents, pn as isPlainRecord, pt as PlaintextResponse, q as McpInteractionSupport, qt as InteractionToggleConfig, r as InteractionBroker, rn as withEphemeralContext, rt as buildFileUrl, s as codexDeveloperInstructionArgs, sn as SecretProfileMcpCredentialProxy, st as trackFilePart, t as CODEX_DISABLED_FEATURE_ARGS, tn as turnEndReason, tt as brokerInteractionTools, u as TerminalPlanSupportOptions, un as assertSealedNativeSearchPath, ut as EXECUTION_TRACE_HEADER, v as toolStartEvents, vn as servableMcpServer, vt as rejectNotLaunched, w as isTrustedStoreBinary, wt as createExecutionState, x as NATIVE_SESSION_CONTRACTS, xn as AcpBridgeSpawn, xt as AcpProviderAdapterBase, y as forgetSessionScopes, yn as servableStdioServer, yt as wasNeverLaunched, z as nativeEffortArgs, zt as assertAcpTurnFinished } from "./index-BDg51Wc2.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, 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, 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 interactionToggleEnabled, A as resolveRouterModelLimits, At as sessionObservedEvents, B as plaintextResponseParser, Bt as assertAcpTurnFinished, C as assertSealedNativeHome, Ct as EXECUTION_TRACE_HEADER, D as resolveExecutableRealpath, Dt as mapAcpSessionUpdate, E as refuseSecretLaunch, Et as homeXdgEnv, F as DEFAULT_INTERACTION_MCP_SERVER_NAME, Ft as toolStartEvents, G as recordCliTokenUsage, H as accumulateCliTokenUsage, I as InteractionMcpServer, It as trackReasoningBlock, J as createExecutionState, K as CliProviderAdapterBase, L as brokerInteractionTools, Lt as ACP_MIN_PROTOCOL_VERSION, M as nativeEffortArgs, Mt as textDeltaEvents, N as McpInteractionSupport, Nt as textSnapshotEvents, O as ROUTER_MODEL_CATALOG_TIMEOUT_MS, Ot as finalTextEvent, P as TerminalPlanSupport, Pt as toolResultEvents, Q as enabledInteractionKinds, R as interactionMcpToolName, Rt as ACP_PROTOCOL_VERSION, S as SEALED_NATIVE_HOME_LAYOUT, St as EXECUTION_ID_HEADER, T as provenStoreBinary, Tt as executionCorrelationHeaders, U as parseCliUsageLine, V as AcpProviderAdapterBase, Vt as spawnAcpBridge, W as readCliTokenUsage, X as localMcpArgv, Y as isLocalMcpConfig, Z as localMcpEnv, _ as secretSessionTurnQueue, _t as SessionRehydrationError, a as codexDeveloperInstructionArgs, at as MAX_INLINE_IMAGE_BYTES, b as untilSettledOrAborted, bt as runtimeSecretsOverlay, c as SECRET_REFERENCE, ct as partitionImageAttachments, d as directStdioMcpServers, dt as buildFileUrl, et as readEphemeralContext, f as isLoopbackEndpoint, ft as deriveFilePart, g as resolveReferences, gt as InvalidAttachmentError, h as requireRecord, ht as trackFilePart, i as PERMISSION_DECISION_TIMEOUT_MS, it as withTurnInteractions, j as kimiThinkingArgs, jt as streamPartBase, k as findRouterCatalogEntry, kt as reasoningEvents, l as SECRET_REFERENCE_PREFIX, lt as preparePromptInputParts, m as joinQueue, mt as inferMediaType, n as InteractionBroker, nt as turnInteractionEnabled, o as forgetSessionScopes, ot as MAX_TOTAL_INLINE_IMAGE_BYTES, p as isPlainRecord, pt as deterministicFilePartId, q as createRepeatedToolFailureGuard, r as InteractionHttpBridge, rt as withEphemeralContext, s as secretMcpScope, st as PROMPT_SECTION_SEPARATOR, t as CODEX_DISABLED_FEATURE_ARGS, tt as turnEndReason, u as assertSealedNativeSearchPath, ut as prependPromptSection, v as servableMcpServer, vt as rejectNotLaunched, w as isTrustedStoreBinary, wt as MANAGED_QUOTE_VERSION_HEADER, x as NATIVE_SESSION_CONTRACTS, xt as EXECUTION_CORRELATION_HEADERS, y as servableStdioServer, yt as wasNeverLaunched, z as jsonEventParser, zt as acpContentText } from "./src-
|
|
1
|
+
import { $ as interactionToggleEnabled, A as resolveRouterModelLimits, At as sessionObservedEvents, B as plaintextResponseParser, Bt as assertAcpTurnFinished, C as assertSealedNativeHome, Ct as EXECUTION_TRACE_HEADER, D as resolveExecutableRealpath, Dt as mapAcpSessionUpdate, E as refuseSecretLaunch, Et as homeXdgEnv, F as DEFAULT_INTERACTION_MCP_SERVER_NAME, Ft as toolStartEvents, G as recordCliTokenUsage, H as accumulateCliTokenUsage, I as InteractionMcpServer, It as trackReasoningBlock, J as createExecutionState, K as CliProviderAdapterBase, L as brokerInteractionTools, Lt as ACP_MIN_PROTOCOL_VERSION, M as nativeEffortArgs, Mt as textDeltaEvents, N as McpInteractionSupport, Nt as textSnapshotEvents, O as ROUTER_MODEL_CATALOG_TIMEOUT_MS, Ot as finalTextEvent, P as TerminalPlanSupport, Pt as toolResultEvents, Q as enabledInteractionKinds, R as interactionMcpToolName, Rt as ACP_PROTOCOL_VERSION, S as SEALED_NATIVE_HOME_LAYOUT, St as EXECUTION_ID_HEADER, T as provenStoreBinary, Tt as executionCorrelationHeaders, U as parseCliUsageLine, V as AcpProviderAdapterBase, Vt as spawnAcpBridge, W as readCliTokenUsage, X as localMcpArgv, Y as isLocalMcpConfig, Z as localMcpEnv, _ as secretSessionTurnQueue, _t as SessionRehydrationError, a as codexDeveloperInstructionArgs, at as MAX_INLINE_IMAGE_BYTES, b as untilSettledOrAborted, bt as runtimeSecretsOverlay, c as SECRET_REFERENCE, ct as partitionImageAttachments, d as directStdioMcpServers, dt as buildFileUrl, et as readEphemeralContext, f as isLoopbackEndpoint, ft as deriveFilePart, g as resolveReferences, gt as InvalidAttachmentError, h as requireRecord, ht as trackFilePart, i as PERMISSION_DECISION_TIMEOUT_MS, it as withTurnInteractions, j as kimiThinkingArgs, jt as streamPartBase, k as findRouterCatalogEntry, kt as reasoningEvents, l as SECRET_REFERENCE_PREFIX, lt as preparePromptInputParts, m as joinQueue, mt as inferMediaType, n as InteractionBroker, nt as turnInteractionEnabled, o as forgetSessionScopes, ot as MAX_TOTAL_INLINE_IMAGE_BYTES, p as isPlainRecord, pt as deterministicFilePartId, q as createRepeatedToolFailureGuard, r as InteractionHttpBridge, rt as withEphemeralContext, s as secretMcpScope, st as PROMPT_SECTION_SEPARATOR, t as CODEX_DISABLED_FEATURE_ARGS, tt as turnEndReason, u as assertSealedNativeSearchPath, ut as prependPromptSection, v as servableMcpServer, vt as rejectNotLaunched, w as isTrustedStoreBinary, wt as MANAGED_QUOTE_VERSION_HEADER, x as NATIVE_SESSION_CONTRACTS, xt as EXECUTION_CORRELATION_HEADERS, y as servableStdioServer, yt as wasNeverLaunched, z as jsonEventParser, zt as acpContentText } from "./src-D7Li6ZIW.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, 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, runtimeSecretsOverlay, secretMcpScope, secretSessionTurnQueue, servableMcpServer, servableStdioServer, sessionObservedEvents, spawnAcpBridge, streamPartBase, textDeltaEvents, textSnapshotEvents, toolResultEvents, toolStartEvents, trackFilePart, trackReasoningBlock, turnEndReason, turnInteractionEnabled, untilSettledOrAborted, wasNeverLaunched, withEphemeralContext, withTurnInteractions };
|
|
@@ -2901,7 +2901,8 @@ var TurnObserver = class {
|
|
|
2901
2901
|
partUpdates;
|
|
2902
2902
|
liveness;
|
|
2903
2903
|
repeatedToolFailureGuard;
|
|
2904
|
-
|
|
2904
|
+
killProcess;
|
|
2905
|
+
stopped = false;
|
|
2905
2906
|
constructor(options) {
|
|
2906
2907
|
this.options = options;
|
|
2907
2908
|
const { state, logger, recorder, repairToolNames, onEvent } = options;
|
|
@@ -2916,7 +2917,18 @@ var TurnObserver = class {
|
|
|
2916
2917
|
return this.partUpdates.flush();
|
|
2917
2918
|
}
|
|
2918
2919
|
attachProcess(process) {
|
|
2919
|
-
this.
|
|
2920
|
+
this.killProcess = () => process.kill();
|
|
2921
|
+
this.stopIfRequested();
|
|
2922
|
+
}
|
|
2923
|
+
/** Stop the harness once, when the stream parser has decided the turn. */
|
|
2924
|
+
stopIfRequested() {
|
|
2925
|
+
if (!this.options.state.stopRequested || this.stopped || !this.killProcess) return;
|
|
2926
|
+
this.stopped = true;
|
|
2927
|
+
this.options.logger.warn("Stream parser ended the turn; stopping harness", {
|
|
2928
|
+
sessionId: this.options.sessionId,
|
|
2929
|
+
reason: this.options.state.failure?.code
|
|
2930
|
+
});
|
|
2931
|
+
this.killProcess();
|
|
2920
2932
|
}
|
|
2921
2933
|
startLiveness(executionSignal, startTime) {
|
|
2922
2934
|
return this.liveness.start(executionSignal, startTime);
|
|
@@ -2944,6 +2956,7 @@ var TurnObserver = class {
|
|
|
2944
2956
|
}
|
|
2945
2957
|
if (event.type === "message.part.updated" && recorder.recordAssistantPartUpdate) this.partUpdates.schedule(event.part, event.delta);
|
|
2946
2958
|
this.options.onEvent?.(event);
|
|
2959
|
+
this.stopIfRequested();
|
|
2947
2960
|
};
|
|
2948
2961
|
observeToolPart(part) {
|
|
2949
2962
|
const { provider, state, logger, sessionId } = this.options;
|
|
@@ -2965,7 +2978,7 @@ var TurnObserver = class {
|
|
|
2965
2978
|
reason: repeated.detail,
|
|
2966
2979
|
sessionId
|
|
2967
2980
|
});
|
|
2968
|
-
this.
|
|
2981
|
+
this.killProcess?.();
|
|
2969
2982
|
}
|
|
2970
2983
|
}
|
|
2971
2984
|
persistProviderSession(providerSessionId) {
|
|
@@ -4755,4 +4768,4 @@ async function forgetSessionScopes(target) {
|
|
|
4755
4768
|
//#endregion
|
|
4756
4769
|
export { interactionToggleEnabled as $, resolveRouterModelLimits as A, sessionObservedEvents as At, plaintextResponseParser as B, assertAcpTurnFinished as Bt, assertSealedNativeHome as C, EXECUTION_TRACE_HEADER as Ct, resolveExecutableRealpath as D, mapAcpSessionUpdate as Dt, refuseSecretLaunch as E, homeXdgEnv as Et, DEFAULT_INTERACTION_MCP_SERVER_NAME as F, toolStartEvents as Ft, recordCliTokenUsage as G, accumulateCliTokenUsage as H, InteractionMcpServer$1 as I, trackReasoningBlock as It, createExecutionState as J, CliProviderAdapterBase as K, brokerInteractionTools$1 as L, ACP_MIN_PROTOCOL_VERSION as Lt, nativeEffortArgs as M, textDeltaEvents as Mt, McpInteractionSupport as N, textSnapshotEvents as Nt, ROUTER_MODEL_CATALOG_TIMEOUT_MS as O, finalTextEvent as Ot, TerminalPlanSupport as P, toolResultEvents as Pt, enabledInteractionKinds as Q, interactionMcpToolName as R, ACP_PROTOCOL_VERSION as Rt, SEALED_NATIVE_HOME_LAYOUT as S, EXECUTION_ID_HEADER as St, provenStoreBinary as T, executionCorrelationHeaders as Tt, parseCliUsageLine as U, AcpProviderAdapterBase as V, spawnAcpBridge as Vt, readCliTokenUsage as W, localMcpArgv as X, isLocalMcpConfig as Y, localMcpEnv as Z, secretSessionTurnQueue as _, SessionRehydrationError as _t, codexDeveloperInstructionArgs as a, MAX_INLINE_IMAGE_BYTES as at, untilSettledOrAborted as b, runtimeSecretsOverlay as bt, SECRET_REFERENCE as c, partitionImageAttachments as ct, directStdioMcpServers as d, buildFileUrl as dt, readEphemeralContext as et, isLoopbackEndpoint as f, deriveFilePart as ft, resolveReferences as g, InvalidAttachmentError as gt, requireRecord as h, trackFilePart as ht, PERMISSION_DECISION_TIMEOUT_MS as i, withTurnInteractions as it, kimiThinkingArgs as j, streamPartBase as jt, findRouterCatalogEntry as k, reasoningEvents as kt, SECRET_REFERENCE_PREFIX as l, preparePromptInputParts as lt, joinQueue as m, inferMediaType as mt, InteractionBroker$1 as n, turnInteractionEnabled as nt, forgetSessionScopes as o, MAX_TOTAL_INLINE_IMAGE_BYTES as ot, isPlainRecord as p, deterministicFilePartId as pt, createRepeatedToolFailureGuard as q, InteractionHttpBridge as r, withEphemeralContext as rt, secretMcpScope as s, PROMPT_SECTION_SEPARATOR as st, CODEX_DISABLED_FEATURE_ARGS as t, turnEndReason as tt, assertSealedNativeSearchPath as u, prependPromptSection as ut, servableMcpServer as v, rejectNotLaunched as vt, isTrustedStoreBinary as w, MANAGED_QUOTE_VERSION_HEADER as wt, NATIVE_SESSION_CONTRACTS$1 as x, EXECUTION_CORRELATION_HEADERS as xt, servableStdioServer as y, wasNeverLaunched as yt, jsonEventParser as z, acpContentText as zt };
|
|
4757
4770
|
|
|
4758
|
-
//# sourceMappingURL=src-
|
|
4771
|
+
//# sourceMappingURL=src-D7Li6ZIW.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.85",
|
|
4
4
|
"description": "Base adapter for CLI-based AI agent providers",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.mjs",
|
|
@@ -60,7 +60,7 @@
|
|
|
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.113",
|
|
64
64
|
"@tangle-network/agent-trace-contract": "^2.2.0",
|
|
65
65
|
"@tangle-network/cli-agent-registry": "0.15.89",
|
|
66
66
|
"@tangle-network/sdk-cli-runner": "0.3.12",
|
|
@@ -79,8 +79,8 @@
|
|
|
79
79
|
"registry": "https://registry.npmjs.org"
|
|
80
80
|
},
|
|
81
81
|
"tangleRelease": {
|
|
82
|
-
"sourceSha": "
|
|
83
|
-
"mergedAt": "2026-11-
|
|
82
|
+
"sourceSha": "4e1842bc9c2ed85c20400c65c5db475e5117aac9",
|
|
83
|
+
"mergedAt": "2026-11-14T22:25:47-08:00"
|
|
84
84
|
},
|
|
85
85
|
"scripts": {
|
|
86
86
|
"build": "tsdown",
|