@tangle-network/agent-runtime 0.297.3 → 0.297.5
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-BychM7iZ.js → activation-DaprMRYa.js} +2 -2
- package/dist/{activation-BychM7iZ.js.map → activation-DaprMRYa.js.map} +1 -1
- package/dist/agent.js +2 -2
- package/dist/{coordination-driver-DMa9iPOA.js → coordination-driver-CjxiDGj5.js} +2 -2
- package/dist/{coordination-driver-DMa9iPOA.js.map → coordination-driver-CjxiDGj5.js.map} +1 -1
- package/dist/{delegate-pF2zEaa6.js → delegate-DX83Ld4h.js} +2 -2
- package/dist/{delegate-pF2zEaa6.js.map → delegate-DX83Ld4h.js.map} +1 -1
- package/dist/durable.js +2 -2
- package/dist/{graph-Co7Pf-Ey.js → graph-DxUsFU1n.js} +4 -4
- package/dist/{graph-Co7Pf-Ey.js.map → graph-DxUsFU1n.js.map} +1 -1
- package/dist/{improvement-cycle-CAEkFjkf.js → improvement-cycle-DduOREb1.js} +3 -3
- package/dist/{improvement-cycle-CAEkFjkf.js.map → improvement-cycle-DduOREb1.js.map} +1 -1
- package/dist/index.js +7 -7
- package/dist/intelligence.js +4 -4
- package/dist/kernel.js +8 -8
- package/dist/{loop-runner-bin-BYD03g_H.js → loop-runner-bin-Bydfi3Hd.js} +3 -3
- package/dist/{loop-runner-bin-BYD03g_H.js.map → loop-runner-bin-Bydfi3Hd.js.map} +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/mcp/bin.js +3 -3
- package/dist/mcp/index.js +4 -4
- package/dist/{provision-supervisor-LF0LMu3p.js → provision-supervisor-CR-CRu45.js} +3 -3
- package/dist/{provision-supervisor-LF0LMu3p.js.map → provision-supervisor-CR-CRu45.js.map} +1 -1
- package/dist/{runtime-KMTdPEem.js → runtime-DJYaM0qD.js} +8 -8
- package/dist/{runtime-KMTdPEem.js.map → runtime-DJYaM0qD.js.map} +1 -1
- package/dist/{search-method-599XfbgD.js → search-method-BqVNWQ5n.js} +2 -2
- package/dist/{search-method-599XfbgD.js.map → search-method-BqVNWQ5n.js.map} +1 -1
- package/dist/{server-C-B48CZv.js → server-C-D7P_Jc.js} +3 -3
- package/dist/{server-C-B48CZv.js.map → server-C-D7P_Jc.js.map} +1 -1
- package/dist/{supervise-Cozoi68o.js → supervise-Ch76KHzd.js} +3 -3
- package/dist/{supervise-Cozoi68o.js.map → supervise-Ch76KHzd.js.map} +1 -1
- package/dist/{supervisor-BYw-QEyZ.js → supervisor-DRJVshYz.js} +19 -10
- package/dist/supervisor-DRJVshYz.js.map +1 -0
- package/dist/testing.js +12 -12
- package/dist/tui/index.js +1 -1
- package/package.json +1 -1
- package/dist/supervisor-BYw-QEyZ.js.map +0 -1
|
@@ -8514,6 +8514,8 @@ function errMessage(error) {
|
|
|
8514
8514
|
/** One request per run: every caller that stops the same execution replays one provider operation,
|
|
8515
8515
|
* so the operation id and its reason never disagree across a teardown and a release. */
|
|
8516
8516
|
const NATIVE_STOP_REASON = "Runtime stopped the native harness: its execution is no longer observed";
|
|
8517
|
+
/** How often a stop the provider accepted asynchronously reads the run's status. */
|
|
8518
|
+
const STOP_STATUS_POLL_MS = 1e3;
|
|
8517
8519
|
/**
|
|
8518
8520
|
* Stop the native harness process of a retained execution that Runtime no longer observes.
|
|
8519
8521
|
*
|
|
@@ -8534,30 +8536,37 @@ async function stopRetainedNativeExecution(options) {
|
|
|
8534
8536
|
kind: "runtime-native-stop.v1",
|
|
8535
8537
|
run: options.controlRef
|
|
8536
8538
|
}).slice(7)}`;
|
|
8537
|
-
|
|
8539
|
+
let effect = "unknown";
|
|
8540
|
+
const stop = async () => {
|
|
8538
8541
|
const handle = options.handle ?? await reconnectRetainedRun({
|
|
8539
8542
|
provider: options.provider,
|
|
8540
8543
|
controlRef: options.controlRef
|
|
8541
8544
|
});
|
|
8542
|
-
if (handle === null) return
|
|
8543
|
-
executionId,
|
|
8544
|
-
effect: "not_live",
|
|
8545
|
-
at: new Date(now()).toISOString()
|
|
8546
|
-
};
|
|
8545
|
+
if (handle === null) return "not_live";
|
|
8547
8546
|
const cancellation = await handle.cancel({
|
|
8548
8547
|
operationId,
|
|
8549
8548
|
reason: NATIVE_STOP_REASON,
|
|
8550
|
-
|
|
8549
|
+
signal: options.signal
|
|
8551
8550
|
});
|
|
8551
|
+
effect = cancellation.status === "conflict" ? "unknown" : cancellation.effect;
|
|
8552
|
+
while (effect === "cancel_requested") {
|
|
8553
|
+
await sleep(STOP_STATUS_POLL_MS, options.signal);
|
|
8554
|
+
const current = await handle.status({ signal: options.signal });
|
|
8555
|
+
if (isTerminalSessionStatus(current.status)) effect = current.status === "cancelled" || current.status === "stopped" ? "cancelled" : "not_live";
|
|
8556
|
+
}
|
|
8557
|
+
return effect;
|
|
8558
|
+
};
|
|
8559
|
+
try {
|
|
8560
|
+
effect = await awaitAbortable$1(stop(), options.signal);
|
|
8552
8561
|
return {
|
|
8553
8562
|
executionId,
|
|
8554
|
-
effect
|
|
8563
|
+
effect,
|
|
8555
8564
|
at: new Date(now()).toISOString()
|
|
8556
8565
|
};
|
|
8557
8566
|
} catch (error) {
|
|
8558
8567
|
return {
|
|
8559
8568
|
executionId,
|
|
8560
|
-
effect: "unknown",
|
|
8569
|
+
effect: effect === "cancel_requested" ? effect : "unknown",
|
|
8561
8570
|
at: new Date(now()).toISOString(),
|
|
8562
8571
|
error: errorText(error instanceof Error ? error.message : error).slice(0, 512)
|
|
8563
8572
|
};
|
|
@@ -29048,4 +29057,4 @@ function isNonEmptySpend(s) {
|
|
|
29048
29057
|
//#endregion
|
|
29049
29058
|
export { bindScopeRetainedOwnerProvider as $, detachedFrozen as $i, parseWorkerToolTraceArtifact as $n, sanitizeRuntimeStreamEvent as $r, isPeerMailEnvelope as $t, driverExecutorFactory as A, addResourceSpend as Aa, prepareJsonlAppend as Ai, resolveAgentEnvironmentProvider as An, contentAddress as Ar, createExecutor as At, recordScopeOwnerDriverAttempt as B, promptFromAgentTurnInput as Ba, newExecutionAttemptId as Bi, InMemoryResultBlobStore as Bn, buildRuntimeEventOtelSpans as Br, workerTraceEnv as Bt, createContinuationKeeper as C, sleep as Ca, renderProfileMaterializationIssues as Ci, readPromptOptions as Cn, runAbortable as Cr, freeSlots as Ct, passedItems as D, unmeteredSpend as Da, validateProfileMaterialization as Di, createAgentEnvironmentProviderRegistry as Dn, readHarnessTranscript as Dr, captureReusableExecutorConfig as Dt, failedItems as E, throwIfAborted as Ea, unsupportedProfileDimensions as Ei, LEAF_CONTINUATION_TASK as En, persistHarnessTranscript as Er, bindReusableExecutorExecutionId as Et, beginScopeOwnerAttempt as F, awaitAbortable$1 as Fa, authoredProfileDigest as Fi, sandboxSessionTraceSource as Fn, defaultRedactor as Fr, createSteerableSandboxSession as Ft, settledToIteration as G, runtimeOwnedExecutorMaterialization as Gi, insideCursorNamespace as Gn, loopEventToOtelSpan as Gr, createActivityLog as Gt, recordScopeOwnerPause as H, providerMessageText as Ha, recordRuntimeOwnedDriveHarnessProviderEvidence as Hi, SpawnEventIndex as Hn, createOtelExporter as Hr, workerTraceSeamKey as Ht, createScope as I, DEFAULT_SUCCESSFUL_SHUTDOWN_MS as Ia, finalizeRuntimeOwnedPendingExecutor as Ii, registerRetainedExecutorPreparation as In, defaultRedactorIdentityMaterial as Ir, createRouterTranscript as It, pollFor as J, runtimeOwnedScopeOwnerRuntime as Ji, pendingWaits as Jn, toOtelAttributes as Jr, AUTHORITY_MARKERS as Jt, createWaitProbes as K, runtimeOwnedExecutorProviderEvidence as Ki, loadSpawnForest as Kn, padSpanId as Kr, readWorkerProgress as Kt, deriveNodeExecutionIdentity as L, armDeadlineTimer as La, inheritRuntimeOwnedExecutorAttestation as Li, retainedExecutorSeamKey as Ln, resolveRedactor as Lr, createInPlaceCliExecutor as Lt, withDriverExecutor as M, withBudgetResources as Ma, writeAllBytes as Mi, unavailableSignalOfFailure as Mn, mergeTraceEnv as Mr, snapshotExecutorConfig as Mt, SUBTREE_RESULT_LIMIT as N, decodeHarnessUsage as Na, attestRuntimeOwnedPendingExecutor as Ni, createPushTraceSource as Nn, readTraceContextFromEnv as Nr, createWorktreeCliExecutor as Nt, verdictFromJudgeScore as O, withTimeout as Oa, worktreeCliProfileMaterialization as Oi, providerAsExecutor as On, resolveHarnessTranscriptCapture as Or, cliInPlaceExecutor as Ot, assertRecursiveReservationPolicy as P, abortError$2 as Pa, attestRuntimeOwnedScopeOwner as Pi, decodeToolPart as Pn, traceContextToEnv as Pr, DEFAULT_SANDBOX_STEERING_MAX_TURNS as Pt, bindScopeRetainedOwnerEnvironmentId as Q, executableAgentSpecSnapshot as Qi, isTraceAnalysisStore as Qn, sanitizeKnowledgeReadinessReport as Qr, createPeerMailbox as Qt, meterRuntimeOwnedAccounting as R, teardownExecutor as Ra, knownExecutionBindingReceipt as Ri, FileResultBlobStore as Rn, buildLoopOtelSpans as Rr, WORKER_TRACE_PROPAGATION as Rt, composeContinuationNote as S, randomSuffix as Sa, promptResourceProfileMaterialization as Si, assertBoxlessPromptOptions as Sn, linkAbort as Sr, startRetainedInteractiveRun as St, expandQuestions as T, throwAbort as Ta, sandboxActProfileMaterialization as Ti, runBrainLoop as Tn, harnessTranscriptArtifact as Tr, rollingDispatch as Tt, restoreScopeOwnerAcceptedExecution as U, runtimeOwnedDriveHarnessProviderEvidence as Ui, assertContentAddress as Un, flatOtelSpan as Ur, taskToPrompt as Ut, recordScopeOwnerMaterialization as V, promptOptionsFromAgentTurnInput as Va, providerAttemptEvidence as Vi, InMemorySpawnJournal as Vn, createOpenInferenceFileExporter as Vr, workerTraceHeaders as Vt, scopeOwnerExecutorNodeContext as W, runtimeOwnedExecutorExecutionBinding as Wi, encodeResultBlob as Wn, generateSpanId as Wr, DEFAULT_STALL_AFTER_MS as Wt, validateWaitSpec as X, unknownMaterializationReceipt as Xi, WORKER_TOOL_TRACE_SCHEMA_VERSION as Xn, createRuntimeStreamEventCollector as Xr, PEER_MAIL_WIRE_KEY as Xt, timerAt as Y, unknownExecutionBindingReceipt as Yi, replaySpawnTree as Yn, createRuntimeEventCollector as Yr, DEFAULT_PEER_MAIL_LIMITS as Yt, waitUntil as Z, executableAgentProfileSnapshot as Zi, captureWorkerTraceEvidence as Zn, sanitizeAgentRuntimeEvent as Zr, claimsAuthority as Zt, CheckUnavailableError as _, cloneSpend as _a, fullProfileMaterialization as _i, createSandboxLineage as _n, environmentGone as _r, readWorkerInteractiveBinding as _t, collectDelivered as a, createSandboxToolPartState as aa, DEFAULT_LOCAL_HARNESS as ai, bridgeModelRouteRefusal as an, createBudgetPool as ar, scopeRetainedOwnerPriorSpend as at, bestComposite as b, isAbortError$2 as ba, promptModelProfileMaterialization as bi, SandboxEvidenceRetentionError as bn, RunCancellationReason as br, reconnectRetainedInteractiveRun as bt, runTree as c, isSandboxTerminalEvent as ca, harnessSupportsReasoningEffort as ci, harnessUsageIsEmpty as cn, spendFromUsageEvents as cr, scopeRetainedOwnerResult as ct, classifyDriverFailure as d, notifySandboxEventObserver as da, CodexExecutionDiagnosticError as di, bridgeStopSignalKey as dn, reconnectRetainedRun as dr, hostDirectoryReader as dt, detachedSnapshot as ea, runSettledCommand as ei, peerMailTools as en, workerTraceAnalysisStore as er, consumeScopeRetainedOwnerResult as et, runDriverWithRetry as f, sandboxEventServedBackend as fa, terminateProcessTreeAndConfirm as fi, TERMINAL_DECISIONS as fn, recoverRetainedRun as fr, resolveSpawnResourcePaths as ft, CONTINUATION_FACTS as g, chargedTokens as ga, defineProfileMaterializationContract as gi, runAgentRounds as gn, destroyInteractiveEnvironment as gr, attachWorker as gt, CONTINUATIONS_DIR as h, addSpend as ha, controlProfileMaterialization as hi, isTerminalDecision as hn, retainedCreateMaterial as hr, workerInteractiveAdmissionFile as ht, bestDelivered as i, canonicalStreamEventFromSandboxEvent as ia, removeWorktree as ii, bridgeAdmissionRefusal as in, assertValidBudget as ir, scopeRetainedOwnerContext as it, isDriverSpec as j, resourceTelemetry as ja, readCommittedJsonLines as ji, unavailablePauseMs as jn, createPropagatingTraceEmitter as jr, createExecutorRegistry as jt, driverChild as k, zeroSpend as ka, isNoEntError as ki, providerAsSandboxClient as kn, retainHarnessTranscript as kr, cliWorktreeExecutor as kt, DriverAttemptsExhaustedError as l, mapSandboxEvent as la, localHarnessExecutable as li, readCodexRolloutSession as ln, spendFromUsageTotals as lr, SPAWN_RESOURCE_PATH_MAX_BYTES as lt, upstreamUnavailableSignal as m, sumSandboxUsage as ma, assertProfileMaterialization as mi, defaultSelectWinner as mn, startRetainedRunInEnvironment as mr, readWorkerInteractiveAdmissions as mt, createRootHandle as n, readSandboxOutcome as na, captureWorktreeDiff as ni, isLiveNodeStatus as nn, BudgetReconcileFault as nr, prepareScopeRetainedOwnerTask as nt, pickBestDelivered as o, createSandboxUsageLedger as oa, LOCAL_HARNESSES as oi, addHarnessUsage as on, meterUsageEvent as or, scopeRetainedOwnerResourceReader as ot, summarizeDriverAttempts as p, sandboxProgressEvents as pa, AGENT_PROFILE_MATERIALIZATION_AXES as pi, createSandboxForSpec as pn, startRetainedRun as pr, interactiveAdmissionSeamKey as pt, isWaitOutcome as q, runtimeOwnedPendingExecutorMaterialization as qi, materializeTreeView as qn, padTraceId as qr, createInbox as qt, createSupervisor as r, assertSandboxServedModel as ra, createWorktree as ri, isTerminalNodeStatus as rn, ReservationWaitRefused as rr, reconcileScopeRetainedOwnerEnvironment as rt, runFinalizer as s, extractLlmCallEvent as sa, harnessInvocation as si, createCodexRolloutStoreReader as sn, newUsageTotals as sr, scopeRetainedOwnerRestorePoint as st, DEFAULT_MAX_DEPTH as t, projectSandboxOutcome as ta, runWorktreeHarness as ti, peerMailVerbNames as tn, executorFailure as tr, noteScopeRetainedOwnerCoordination as tt, HarnessTurnFailedError as u, mapSandboxToolEvent as ua, parseCodexTokenUsage as ui, bridgeRuntimeAttachmentsKey as un, errMessage as ur, environmentReader as ut, admitContinuationPolicy as v, deleteBoxSafe as va, profileMaterializationAxes$1 as vi, probeSandboxCapabilities as vn, createWorkerSlots as vr, workerInteractiveBindingFile as vt, distillFindings as w, stringifySafe as wa, renderUnsupported as wi, routerBrain as wn, captureHarnessTranscript as wr, queueOf as wt, checkVerdictOf as x, promptCacheTokenClasses as xa, promptOnlyProfileMaterialization as xi, captureBeforeDestroy as xn, abortError as xr, recoverRetainedInteractiveRun as xt, admitFinding as y, hasCompleteCacheBreakdown as ya, promptControlProfileMaterialization as yi, acquireSandbox as yn, openSlotGroup as yr, workerInteractiveBindingsDir as yt, meterRuntimeOwnedProviderAttempt as z, teardownSurfaces as za, knownMaterializationReceipt as zi, FileSpawnJournal as zn, buildLoopSpanNodes as zr, readWorkerTraceContext as zt };
|
|
29050
29059
|
|
|
29051
|
-
//# sourceMappingURL=supervisor-
|
|
29060
|
+
//# sourceMappingURL=supervisor-DRJVshYz.js.map
|