@tangle-network/agent-runtime 2.3.1 → 2.3.3
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/{activation-BpkpEn0T.d.ts → activation-BAUOO9T-.d.ts} +2 -2
- package/dist/{activation-D-RLqwBv.js → activation-SA2R6STL.js} +2 -2
- package/dist/{activation-D-RLqwBv.js.map → activation-SA2R6STL.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/{coordination-manager-BmdiIsBo.js → coordination-manager-BxnEJXsv.js} +2 -2
- package/dist/{coordination-manager-BmdiIsBo.js.map → coordination-manager-BxnEJXsv.js.map} +1 -1
- package/dist/{delegate-D9r2qdMo.js → delegate-Drwq3e6S.js} +2 -2
- package/dist/{delegate-D9r2qdMo.js.map → delegate-Drwq3e6S.js.map} +1 -1
- package/dist/durable.d.ts +1 -1
- package/dist/durable.js +3 -3
- package/dist/{graph-D1EdY_hz.js → graph-Bio7TWRa.js} +4 -4
- package/dist/{graph-D1EdY_hz.js.map → graph-Bio7TWRa.js.map} +1 -1
- package/dist/{improve-BJmhyGQx.js → improve-BaVcOScf.js} +5 -5
- package/dist/{improve-BJmhyGQx.js.map → improve-BaVcOScf.js.map} +1 -1
- package/dist/index.d.ts +3 -3
- package/dist/index.js +7 -7
- package/dist/intelligence.d.ts +2 -2
- package/dist/intelligence.js +3 -3
- package/dist/kernel.d.ts +1 -1
- package/dist/kernel.js +9 -9
- package/dist/{loop-runner-k33cdtOU.js → loop-runner-Dazsm0A5.js} +2 -2
- package/dist/{loop-runner-k33cdtOU.js.map → loop-runner-Dazsm0A5.js.map} +1 -1
- package/dist/loop-runner-bin.d.ts +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/{loop-runner-DjYZrgqT.d.ts → loop-runner-t4qfcieO.d.ts} +2 -2
- package/dist/mcp/bin.js +3 -3
- package/dist/mcp/index.d.ts +1 -1
- package/dist/mcp/index.js +4 -4
- package/dist/profiles.d.ts +1 -1
- package/dist/{provision-supervisor-D0kJ9ICI.js → provision-supervisor-DG4E0Viy.js} +3 -3
- package/dist/{provision-supervisor-D0kJ9ICI.js.map → provision-supervisor-DG4E0Viy.js.map} +1 -1
- package/dist/{runtime-BvLg9cUZ.js → runtime-7qnbJxS_.js} +9 -9
- package/dist/{runtime-BvLg9cUZ.js.map → runtime-7qnbJxS_.js.map} +1 -1
- package/dist/{search-executor-DTEbyGqf.js → search-executor-DRzb2WwZ.js} +2 -2
- package/dist/{search-executor-DTEbyGqf.js.map → search-executor-DRzb2WwZ.js.map} +1 -1
- package/dist/{server-C8-_heiR.js → server-BNsxRqPY.js} +3 -3
- package/dist/{server-C8-_heiR.js.map → server-BNsxRqPY.js.map} +1 -1
- package/dist/{structural-rollout-DBL4QJIW.js → structural-rollout-C49iL5Cn.js} +2 -2
- package/dist/{structural-rollout-DBL4QJIW.js.map → structural-rollout-C49iL5Cn.js.map} +1 -1
- package/dist/{supervise-CHnsnNK5.js → supervise-BwUx_gjv.js} +3 -3
- package/dist/{supervise-CHnsnNK5.js.map → supervise-BwUx_gjv.js.map} +1 -1
- package/dist/{supervisor-CjReWvS9.js → supervisor-ByarsrwH.js} +13 -17
- package/dist/supervisor-ByarsrwH.js.map +1 -0
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +11 -11
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +1 -1
- package/dist/{types-BDmLQLNj.d.ts → types-BGGZDz0I.d.ts} +6 -2
- package/package.json +1 -1
- package/dist/supervisor-CjReWvS9.js.map +0 -1
|
@@ -12597,12 +12597,12 @@ function journaledAdmissions(journalRoot, replayRunId, onAdmission) {
|
|
|
12597
12597
|
}
|
|
12598
12598
|
/**
|
|
12599
12599
|
* The interactive handle with its accepted turns and its end journaled beside its admissions, so a
|
|
12600
|
-
* viewer sees the run take turns and settle rather than run forever. A turn records its
|
|
12601
|
-
*
|
|
12600
|
+
* viewer sees the run take turns and settle rather than run forever. A turn records its operation id,
|
|
12601
|
+
* never the prompt, so handles in different processes agree. The end is the first exited status
|
|
12602
|
+
* read or accepted stop.
|
|
12602
12603
|
*/
|
|
12603
12604
|
function journaledInteractiveHandle(handle, journalRoot, runId) {
|
|
12604
12605
|
if (journalRoot === void 0) return handle;
|
|
12605
|
-
let turns = 0;
|
|
12606
12606
|
let settled = false;
|
|
12607
12607
|
const settle = async (failed, detail) => {
|
|
12608
12608
|
if (settled) return;
|
|
@@ -12616,13 +12616,7 @@ function journaledInteractiveHandle(handle, journalRoot, runId) {
|
|
|
12616
12616
|
...handle,
|
|
12617
12617
|
sendPrompt: async (command, options) => {
|
|
12618
12618
|
const ack = await handle.sendPrompt(command, options);
|
|
12619
|
-
if (ack.status === "accepted") {
|
|
12620
|
-
turns += 1;
|
|
12621
|
-
await appendRetainedObserverEvent(journalRoot, runId, `turn:${command.operationId}`, "agent.turn", "event", {
|
|
12622
|
-
turn: turns,
|
|
12623
|
-
operationId: command.operationId
|
|
12624
|
-
});
|
|
12625
|
-
}
|
|
12619
|
+
if (ack.status === "accepted") await appendRetainedObserverEvent(journalRoot, runId, `turn:${command.operationId}`, "agent.turn", "event", { operationId: command.operationId });
|
|
12626
12620
|
return ack;
|
|
12627
12621
|
},
|
|
12628
12622
|
status: async (options) => {
|
|
@@ -24633,7 +24627,6 @@ async function startRetainedInteractiveRun(options) {
|
|
|
24633
24627
|
assertStableText(startOptions.environment.idempotencyKey, "environment idempotency key");
|
|
24634
24628
|
assertStableText(startOptions.interactiveIdempotencyKey, "interactive idempotency key");
|
|
24635
24629
|
if (typeof startOptions.onAdmission !== "function") throw new Error("startRetainedInteractiveRun requires an awaited onAdmission durability hook");
|
|
24636
|
-
const onAdmission = journaledAdmissions(startOptions.journalRoot, startOptions.intent?.runId, startOptions.onAdmission);
|
|
24637
24630
|
if (!startOptions.provider.get) throw new Error(`provider "${startOptions.provider.name}" cannot reconstruct an environment by id`);
|
|
24638
24631
|
const profile = agentProfileSchema.parse(startOptions.environment.profile);
|
|
24639
24632
|
if (profile.harness === void 0) throw new Error("retained interactive runs require AgentProfile.harness");
|
|
@@ -24644,6 +24637,7 @@ async function startRetainedInteractiveRun(options) {
|
|
|
24644
24637
|
};
|
|
24645
24638
|
assertStableText(identity.sessionId, "retained session id");
|
|
24646
24639
|
assertStableText(identity.executionId, "retained execution id");
|
|
24640
|
+
const onAdmission = journaledAdmissions(startOptions.journalRoot, identity.sessionId, startOptions.onAdmission);
|
|
24647
24641
|
const intent = interactiveIntent(startOptions, profile, identity);
|
|
24648
24642
|
if (startOptions.intent === void 0) await admitDurably(onAdmission, intent);
|
|
24649
24643
|
else assertExactInteractiveIntent(startOptions.intent, intent, () => interactiveIntent(startOptions, profile, identity, legacyRetainedCreateMaterial));
|
|
@@ -24681,7 +24675,7 @@ async function startRetainedInteractiveRun(options) {
|
|
|
24681
24675
|
interactiveIdempotencyKey: startOptions.interactiveIdempotencyKey,
|
|
24682
24676
|
ref
|
|
24683
24677
|
});
|
|
24684
|
-
return journaledInteractiveHandle(createRetainedInteractiveRunHandle(environment, ref, capabilities, request), startOptions.journalRoot,
|
|
24678
|
+
return journaledInteractiveHandle(createRetainedInteractiveRunHandle(environment, ref, capabilities, request), startOptions.journalRoot, identity.sessionId);
|
|
24685
24679
|
}
|
|
24686
24680
|
/**
|
|
24687
24681
|
* Retry one exact start after its provider response may have been lost.
|
|
@@ -24702,20 +24696,22 @@ async function recoverRetainedInteractiveRun(options) {
|
|
|
24702
24696
|
...options.replay,
|
|
24703
24697
|
intent: admission,
|
|
24704
24698
|
onAdmission: options.onAdmission,
|
|
24705
|
-
signal: options.signal
|
|
24699
|
+
signal: options.signal,
|
|
24700
|
+
...options.journalRoot === void 0 ? {} : { journalRoot: options.journalRoot }
|
|
24706
24701
|
});
|
|
24707
24702
|
}
|
|
24708
24703
|
const request = exactRecoveryRequest(admission);
|
|
24709
24704
|
const { environment, capabilities } = await reconstructEnvironment(options.provider, admission.environmentId, options.signal);
|
|
24710
24705
|
if (!environment || !capabilities) return null;
|
|
24711
24706
|
const ref = exactStartedRef(request, await awaitAbortable$1(Promise.resolve().then(() => environment.startInteractive(request, { signal: options.signal })), options.signal));
|
|
24712
|
-
|
|
24707
|
+
const sessionId = request.run.sessionId;
|
|
24708
|
+
await admitDurably(journaledAdmissions(options.journalRoot, sessionId, options.onAdmission), {
|
|
24713
24709
|
phase: "interactive_started",
|
|
24714
24710
|
idempotencyKey: admission.idempotencyKey,
|
|
24715
24711
|
interactiveIdempotencyKey: admission.interactiveIdempotencyKey,
|
|
24716
24712
|
ref
|
|
24717
24713
|
});
|
|
24718
|
-
return createRetainedInteractiveRunHandle(environment, ref, capabilities, request);
|
|
24714
|
+
return journaledInteractiveHandle(createRetainedInteractiveRunHandle(environment, ref, capabilities, request), options.journalRoot, sessionId);
|
|
24719
24715
|
}
|
|
24720
24716
|
function exactRecoveryRequest(admission) {
|
|
24721
24717
|
assertStableText(admission.environmentId, "interactive environment id");
|
|
@@ -24745,7 +24741,7 @@ async function reconnectRetainedInteractiveRun(options) {
|
|
|
24745
24741
|
if (ref.run.provider !== options.provider.name) throw new Error("interactive session reference belongs to another provider");
|
|
24746
24742
|
const { environment, capabilities } = await reconstructEnvironment(options.provider, ref.run.environmentId, options.signal);
|
|
24747
24743
|
if (!environment || !capabilities) return null;
|
|
24748
|
-
const handle = createRetainedInteractiveRunHandle(environment, ref, capabilities);
|
|
24744
|
+
const handle = journaledInteractiveHandle(createRetainedInteractiveRunHandle(environment, ref, capabilities), options.journalRoot, ref.run.sessionId);
|
|
24749
24745
|
await handle.status({ signal: options.signal });
|
|
24750
24746
|
return handle;
|
|
24751
24747
|
}
|
|
@@ -29705,4 +29701,4 @@ async function noWinner(settled, rejection) {
|
|
|
29705
29701
|
}
|
|
29706
29702
|
export { abandonScopeRetainedOwnerInvocation as $, gateFactoryOnDeliverable as $n, providerAttemptEvidence as $r, persistHarnessTranscript as $t, noteScopeOwnerPlannedExecution as A, isPeerMailEnvelope as An, terminateProcessTreeAndConfirm as Ar, TERMINAL_DECISIONS as At, deriveNodeExecutionIdentity as B, HarnessTurnFailedError as Bn, sandboxActProfileMaterialization as Br, resolveAgentEnvironmentProvider as Bt, interactiveAdmissionSeamKey as C, createInbox as Cn, bridgeRuntimeAttachmentsKey as Cr, createSteerableSandboxSession as Ct, recoverRetainedInteractiveRun as D, PEER_MAIL_WIRE_KEY as Dn, runWorktreeHarness as Dr, createSandboxForSpec as Dt, reconnectRetainedInteractiveRun as E, DEFAULT_PEER_MAIL_LIMITS as En, runSettledCommand as Er, readPromptOptions as Et, coordinationProfileToolPrefix as F, createActivityLog as Fn, fullProfileMaterialization as Fr, runCodeMode as Ft, meterRuntimeOwnedProviderAttempt as G, undispatchedCredentialExit as Gn, attestRuntimeOwnedScopeOwner as Gr, recoverRetainedRun as Gt, queueOf as H, causedByPartialFailure as Hn, unsupportedProfileDimensions as Hr, LEAF_CONTINUATION_TASK as Ht, providerVisibleProfile as I, readWorkerProgress as In, profileMaterializationAxes$1 as Ir, toolResultText as It, recordScopeOwnerPause as J, SeatChainExhaustedError as Jn, finalizeRuntimeOwnedPendingExecutor as Jr, retainedCreateMaterial as Jt, recordScopeOwnerBarrenPause as K, upstreamUnavailableSignal as Kn, authoredAgentIdentity as Kr, startRetainedRun as Kt, runtimeGraphMetadataKey as L, isLiveNodeStatus as Ln, promptControlProfileMaterialization as Lr, createRouterTranscript as Lt, restoreScopeOwnerAcceptedExecution as M, peerMailVerbNames as Mn, assertProfileMaterializes as Mr, codeModeArguments as Mt, scopeOwnerExecutorNodeContext as N, taskToPrompt$1 as Nn, controlProfileMaterialization as Nr, codeModeModelOutput as Nt, startRetainedInteractiveRun as O, claimsAuthority as On, LOCAL_HARNESSES as Or, createSandboxLineage as Ot, coordinationMcpAlias as P, DEFAULT_STALL_AFTER_MS as Pn, defineProfileMaterializationContract as Pr, createCodeModeTools as Pt, resolveSpawnResourcePaths as Q, CheckUnavailableError as Qn, newExecutionAttemptId as Qr, harnessTranscriptArtifact as Qt, settledToIteration as R, isTerminalNodeStatus as Rn, promptModelProfileMaterialization as Rr, routerBrain as Rt, workerTraceAnalysisStore as S, INBOX_RECEIPT_KEY as Sn, signalAbortError as Sr, DEFAULT_SANDBOX_STEERING_MAX_TURNS as St, readWorkerInteractiveBinding as T, AUTHORITY_MARKERS as Tn, defaultRunCommand as Tr, assertBoxlessPromptOptions as Tt, rollingDispatch as U, classifyDriverFailure as Un, worktreeCliProfileMaterialization as Ur, providerAsSandboxClient as Ut, freeSlots as V, abandonablePending as Vn, sandboxProfileMaterialization as Vr, providerAsExecutor as Vt, meterRuntimeOwnedAccounting as W, summarizeDriverAttempts as Wn, attestRuntimeOwnedPendingExecutor as Wr, reconnectRetainedRun as Wt, scopeRetainedOwnerResourceReader as X, seatExecutionProfile as Xn, knownExecutionBindingReceipt as Xr, environmentGone as Xt, prepareScopeRetainedOwnerSeatSwitch as Y, authoredSeatStages as Yn, inheritRuntimeOwnedExecutorAttestation as Yr, destroyInteractiveEnvironment as Yt, environmentReader as Z, subscriptionUsageLimitSignal as Zn, knownMaterializationReceipt as Zr, captureHarnessTranscript as Zt, withDriverExecutor as _, promptFromAgentTurnInput as _i, loopEventToOtelSpan as _n, readCodexRolloutSession as _r, createExecutorRegistry as _t, assertRunParking as a, runtimeOwnedPendingExecutorMaterialization as ai, createWorktreeCliExecutor as an, bestComposite as ar, scopeRetainedOwnerTurnEnded as at, isTraceAnalysisStore as b, sanitizeKnowledgeReadinessReport as bn, linkAbort as br, createExecutor as bt, sleepScopeWait as c, unknownMaterializationReceipt as ci, createPropagatingTraceEmitter as cn, failedItems as cr, noteScopeRetainedOwnerCoordination as ct, runFinalizer as d, isRuntimeFlowBrain as di, buildLoopSpanNodes as dn, bridgeModelRouteRefusal as dr, scopeRetainedOwnerContext as dt, recordRuntimeOwnedDriveHarnessProviderEvidence as ei, readHarnessTranscript as en, gateOnDeliverable as er, consumeScopeRetainedOwnerResult as et, runTree as f, runtimeFlowAgent as fi, buildRuntimeEventOtelSpans as fn, priceTokens as fr, scopeRetainedOwnerJournalRoot as ft, isDriverSpec as g, awaitAbortable$1 as gi, generateSpanId as gn, harnessUsageIsEmpty as gr, InMemorySpawnJournal as gt, driverExecutorFactory as h, readSandboxOutcome as hi, flatOtelSpan as hn, createCodexRolloutStoreReader as hr, InMemoryResultBlobStore as ht, RunParkedError as i, runtimeOwnedExecutorProviderEvidence as ii, openSlotGroup as in, admitContinuationPolicy as ir, beginScopeRetainedOwnerDrive as it, recordScopeOwnerMaterialization as j, peerMailTools as jn, assertProfileMaterialization as jr, defaultSelectWinner as jt, beginScopeOwnerAttempt as k, createPeerMailbox as kn, harnessInvocation as kr, acquireSandbox as kt, withRunParking as l, executableAgentProfileSnapshot as li, readTraceContextFromEnv as ln, isFiniteNumber as lr, bindScopeRetainedOwnerEnvironmentId as lt, driverChild as m, projectSandboxOutcome as mi, createOtelExporter as mn, addHarnessUsage as mr, materializeTreeView as mt, createSupervisor as n, runtimeOwnedExecutorExecutionBinding as ni, retainHarnessTranscript as nn, verdictFromJudgeScore as nr, scopeRetainedOwnerPriorSpend as nt, bindScopeParkingDrain as o, runtimeOwnedScopeOwnerRuntime as oi, createInPlaceCliExecutor as on, checkVerdictOf as or, reconcileScopeRetainedOwnerEnvironment as ot, createRootHandle as p, runtimeFlowBrain as pi, createOpenInferenceFileExporter as pn, ROUTER_PRICE_SOURCE as pr, loadSpawnForest as pt, recordScopeOwnerDriverAttempt as q, SeatChain as qn, authoredProfileDigest as qr, startRetainedRunInEnvironment as qt, assertResumeLimits as r, runtimeOwnedExecutorMaterialization as ri, createWorkerSlots as rn, CONTINUATIONS_DIR as rr, scopeRetainedOwnerResult as rt, readRunParking as s, unknownExecutionBindingReceipt as si, WORKER_TRACE_PROPAGATION as sn, createContinuationKeeper as sr, scopeRetainedOwnerRestorePoint as st, DEFAULT_MAX_DEPTH as t, runtimeOwnedDriveHarnessProviderEvidence as ti, resolveHarnessTranscriptCapture as tn, mapExecutorResult as tr, prepareScopeRetainedOwnerTask as tt, bestDelivered as u, executableAgentSpecSnapshot as ui, buildLoopOtelSpans as un, bridgeAdmissionRefusal as ur, bindScopeRetainedOwnerProvider as ut, createScope as v, promptOptionsFromAgentTurnInput as vi, createRuntimeEventCollector as vn, createPushTraceSource as vr, bindReusableExecutorExecutionId as vt, attachWorker as w, failPendingAfter as wn, bridgeStopSignalKey as wr, runAgentRounds as wt, parseWorkerToolTraceArtifact as x, sanitizeRuntimeStreamEvent as xn, runAbortable as xr, snapshotExecutorConfig as xt, replaySpawnTree as y, providerMessageText as yi, createRuntimeStreamEventCollector as yn, RunCancellationReason as yr, captureReusableExecutorConfig as yt, assertRecursiveReservationPolicy as z, DriverAttemptsExhaustedError as zn, renderUnsupported as zr, createAgentEnvironmentProviderRegistry as zt };
|
|
29707
29703
|
|
|
29708
|
-
//# sourceMappingURL=supervisor-
|
|
29704
|
+
//# sourceMappingURL=supervisor-ByarsrwH.js.map
|