@tangle-network/agent-runtime 0.325.9 → 0.325.11
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-C86mtRRn.js → activation-DhiTYhFg.js} +2 -2
- package/dist/{activation-C86mtRRn.js.map → activation-DhiTYhFg.js.map} +1 -1
- package/dist/agent.js +2 -2
- package/dist/{coordination-driver-ByRQBBQ8.js → coordination-driver-BPL3mG-y.js} +2 -2
- package/dist/{coordination-driver-ByRQBBQ8.js.map → coordination-driver-BPL3mG-y.js.map} +1 -1
- package/dist/{delegate-CBbwCU9w.js → delegate-Cc-mEn9K.js} +2 -2
- package/dist/{delegate-CBbwCU9w.js.map → delegate-Cc-mEn9K.js.map} +1 -1
- package/dist/durable.js +3 -3
- package/dist/{graph-CK3QKy1-.js → graph-DaLhFmit.js} +4 -4
- package/dist/{graph-CK3QKy1-.js.map → graph-DaLhFmit.js.map} +1 -1
- package/dist/{improvement-cycle-CdDFeDGF.js → improvement-cycle-DxshmdsJ.js} +3 -3
- package/dist/{improvement-cycle-CdDFeDGF.js.map → improvement-cycle-DxshmdsJ.js.map} +1 -1
- package/dist/index.js +7 -7
- package/dist/intelligence.js +3 -3
- package/dist/kernel.js +8 -8
- package/dist/{loop-runner-bin-CjIVrg_p.js → loop-runner-bin-D6pZA_oU.js} +3 -3
- package/dist/{loop-runner-bin-CjIVrg_p.js.map → loop-runner-bin-D6pZA_oU.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-BfCUJugY.js → provision-supervisor-ry78vyvq.js} +3 -3
- package/dist/{provision-supervisor-BfCUJugY.js.map → provision-supervisor-ry78vyvq.js.map} +1 -1
- package/dist/{runtime-BnRuJgCX.js → runtime-DHz4B790.js} +8 -8
- package/dist/{runtime-BnRuJgCX.js.map → runtime-DHz4B790.js.map} +1 -1
- package/dist/{search-executor-Y4-qp_-x.js → search-executor-CbHDJu7t.js} +2 -2
- package/dist/{search-executor-Y4-qp_-x.js.map → search-executor-CbHDJu7t.js.map} +1 -1
- package/dist/{server-Da3rQc8J.js → server-CSP6k94O.js} +3 -3
- package/dist/{server-Da3rQc8J.js.map → server-CSP6k94O.js.map} +1 -1
- package/dist/{supervise-B2dC5dbY.js → supervise-XsBr3gGC.js} +3 -3
- package/dist/{supervise-B2dC5dbY.js.map → supervise-XsBr3gGC.js.map} +1 -1
- package/dist/{supervisor-BPbzMkTH.js → supervisor-tbJOhcIf.js} +14 -14
- package/dist/supervisor-tbJOhcIf.js.map +1 -0
- package/dist/testing.js +12 -12
- package/dist/tui/index.js +1 -1
- package/package.json +3 -3
- package/dist/supervisor-BPbzMkTH.js.map +0 -1
|
@@ -12940,13 +12940,13 @@ const RETAINED_OBSERVATION_IDLE_MS = 8 * 6e4;
|
|
|
12940
12940
|
const RETAINED_RESULT_WAIT_MS = 6e4;
|
|
12941
12941
|
const RETAINED_OBSERVATION_BATCH_EVENTS = 1024;
|
|
12942
12942
|
/**
|
|
12943
|
-
*
|
|
12944
|
-
*
|
|
12945
|
-
*
|
|
12946
|
-
*
|
|
12947
|
-
*
|
|
12943
|
+
* After its exact result, a stream that still owes its terminal frame keeps reading only while its
|
|
12944
|
+
* frames keep coming: the next frame must arrive within this long of the last one. A quiet stream,
|
|
12945
|
+
* or one with no frame at all, closes on the result at once and never holds the wake. A provider
|
|
12946
|
+
* sends a turn's last frames and its result together on two connections, and a burst that
|
|
12947
|
+
* straddles the result is read whole.
|
|
12948
12948
|
*/
|
|
12949
|
-
const
|
|
12949
|
+
const RETAINED_TAIL_FLOW_MS = 100;
|
|
12950
12950
|
var RetainedReadTimeoutError = class extends Error {
|
|
12951
12951
|
constructor(label, ms) {
|
|
12952
12952
|
super(`retained provider ${label} did not settle within ${ms} ms`);
|
|
@@ -13534,8 +13534,8 @@ async function providerExecutionSource(args, turn, signal) {
|
|
|
13534
13534
|
};
|
|
13535
13535
|
let lastReplayPosition;
|
|
13536
13536
|
let sawTerminal = false;
|
|
13537
|
-
let closedByResult = false;
|
|
13538
13537
|
let lastObservedAt = Date.now();
|
|
13538
|
+
let lastFrameAt;
|
|
13539
13539
|
const seenEvents = /* @__PURE__ */ new Map();
|
|
13540
13540
|
const drain = async function* (open) {
|
|
13541
13541
|
let iterator;
|
|
@@ -13563,11 +13563,12 @@ async function providerExecutionSource(args, turn, signal) {
|
|
|
13563
13563
|
const exactWake = new Promise((resolve) => {
|
|
13564
13564
|
wake = setImmediate$1(() => {
|
|
13565
13565
|
const close = () => {
|
|
13566
|
-
|
|
13566
|
+
const flowing = sawTerminal || lastFrameAt === void 0 ? 0 : RETAINED_TAIL_FLOW_MS - (Date.now() - lastFrameAt);
|
|
13567
|
+
if (flowing <= 0) {
|
|
13567
13568
|
resolve({ kind: "exact-result" });
|
|
13568
13569
|
return;
|
|
13569
13570
|
}
|
|
13570
|
-
grace = setTimeout(() => resolve({ kind: "exact-result" }),
|
|
13571
|
+
grace = setTimeout(() => resolve({ kind: "exact-result" }), flowing);
|
|
13571
13572
|
if (typeof grace.unref === "function") grace.unref();
|
|
13572
13573
|
};
|
|
13573
13574
|
readExactResult().then(close, close);
|
|
@@ -13578,7 +13579,6 @@ async function providerExecutionSource(args, turn, signal) {
|
|
|
13578
13579
|
value
|
|
13579
13580
|
})), exactWake]), remaining, "event stream");
|
|
13580
13581
|
if (observed.kind === "exact-result") {
|
|
13581
|
-
closedByResult = true;
|
|
13582
13582
|
observationFailure ??= { error: /* @__PURE__ */ new Error("retained provider stream remained open after its exact result") };
|
|
13583
13583
|
break;
|
|
13584
13584
|
}
|
|
@@ -13620,6 +13620,7 @@ async function providerExecutionSource(args, turn, signal) {
|
|
|
13620
13620
|
seenEvents.set(eventId, digest);
|
|
13621
13621
|
}
|
|
13622
13622
|
lastObservedAt = Date.now();
|
|
13623
|
+
lastFrameAt = lastObservedAt;
|
|
13623
13624
|
if (identity.cursor !== void 0) lastReplayPosition = identity.cursor;
|
|
13624
13625
|
else if (eventId !== void 0) lastReplayPosition = eventId;
|
|
13625
13626
|
if (isTerminalEnvironmentEvent(next.value)) sawTerminal = true;
|
|
@@ -13631,13 +13632,12 @@ async function providerExecutionSource(args, turn, signal) {
|
|
|
13631
13632
|
}
|
|
13632
13633
|
return !failed;
|
|
13633
13634
|
};
|
|
13634
|
-
if (
|
|
13635
|
+
if (!(yield* drain(() => session.events({
|
|
13635
13636
|
executionId: handle.controlRef.executionId,
|
|
13636
13637
|
signal
|
|
13637
|
-
})))
|
|
13638
|
+
}))) && !sawTerminal && lastReplayPosition !== void 0 && !(observationFailure?.error instanceof RetainedReadTimeoutError)) {
|
|
13638
13639
|
const firstFailure = observationFailure;
|
|
13639
13640
|
observationFailure = void 0;
|
|
13640
|
-
closedByResult = false;
|
|
13641
13641
|
if (!(yield* drain(() => session.events({
|
|
13642
13642
|
executionId: handle.controlRef.executionId,
|
|
13643
13643
|
since: lastReplayPosition,
|
|
@@ -31733,4 +31733,4 @@ function isNonEmptySpend(s) {
|
|
|
31733
31733
|
//#endregion
|
|
31734
31734
|
export { environmentReader as $, InMemoryResultBlobStore as $i, readHarnessTranscript as $n, renderUnsupported as $r, DEFAULT_PEER_MAIL_LIMITS as $t, scopeOwnerExecutorNodeContext as A, runtimeFailureCause as Ai, providerAsSandboxClient as An, captureWorktreeDiff as Ar, bindReusableExecutorExecutionId as At, consumeScopeRetainedOwnerResult as B, createSandboxToolPartState as Bi, startRetainedRunInEnvironment as Bn, terminateProcessTreeAndConfirm as Br, createRouterTranscript as Bt, deriveNodeExecutionIdentity as C, defaultRedactor as Ca, unknownMaterializationReceipt as Ci, assertBoxlessPromptOptions as Cn, createRuntimeEventCollector as Cr, checkVerdictOf as Ct, recordScopeOwnerMaterialization as D, promptOptionsFromAgentTurnInput as Da, readSandboxOutcome as Di, LEAF_CONTINUATION_TASK as Dn, sanitizeRuntimeStreamEvent as Dr, failedItems as Dt, recordScopeOwnerDriverAttempt as E, promptFromAgentTurnInput as Ea, projectSandboxOutcome as Ei, runBrainLoop as En, sanitizeKnowledgeReadinessReport as Er, expandQuestions as Et, seatExecutionProfile as F, unavailableSignalOfFailure as Fi, bridgeRuntimeAttachmentsKey as Fn, harnessInvocation as Fr, createExecutorRegistry as Ft, scopeRetainedOwnerContext as G, mapSandboxToolEvent as Gi, openSlotGroup as Gn, defineProfileMaterializationContract as Gr, workerTraceHeaders as Gt, prepareScopeRetainedOwnerSeatSwitch as H, extractLlmCallEvent as Hi, destroyInteractiveEnvironment as Hn, assertProfileMaterialization as Hr, WORKER_TRACE_PROPAGATION as Ht, abandonScopeRetainedOwnerInvocation as I, TRACE_ROOT_SCHEMA as Ii, bridgeStopSignalKey as In, harnessSupportsReasoningEffort as Ir, snapshotExecutorConfig as It, scopeRetainedOwnerResourceReader as J, sandboxProgressEvents as Ji, linkAbort as Jn, promptControlProfileMaterialization as Jr, DEFAULT_STALL_AFTER_MS as Jt, scopeRetainedOwnerJournalRoot as K, notifySandboxEventObserver as Ki, RunCancellationReason as Kn, fullProfileMaterialization as Kr, workerTraceSeamKey as Kt, beginScopeRetainedOwnerDrive as L, TRACE_SUMMARY_SCHEMA as Li, reconnectRetainedRun as Ln, localHarnessExecutable as Lr, createWorktreeCliExecutor as Lt, SeatChain as M, registerRetainedExecutorPreparation as Mi, createPushTraceSource as Mn, removeWorktree as Mr, cliInPlaceExecutor as Mt, SeatChainExhaustedError as N, retainedExecutorSeamKey as Ni, decodeToolPart as Nn, DEFAULT_LOCAL_HARNESS as Nr, cliWorktreeExecutor as Nt, recordScopeOwnerPause as O, providerMessageText as Oa, abortError$1 as Oi, createAgentEnvironmentProviderRegistry as On, runSettledCommand as Or, passedItems as Ot, authoredSeatStages as P, unavailablePauseMs as Pi, sandboxSessionTraceSource as Pn, LOCAL_HARNESSES as Pr, createExecutor as Pt, SPAWN_RESOURCE_PATH_MAX_BYTES as Q, FileSpawnJournal as Qi, persistHarnessTranscript as Qn, renderProfileMaterializationIssues as Qr, AUTHORITY_MARKERS as Qt, bindScopeRetainedOwnerEnvironmentId as R, assertSandboxServedModel as Ri, recoverRetainedRun as Rn, parseCodexTokenUsage as Rr, DEFAULT_SANDBOX_STEERING_MAX_TURNS as Rt, createScope as S, spendFromUsageTotals as Sa, unknownExecutionBindingReceipt as Si, captureBeforeDestroy as Sn, toOtelAttributes as Sr, bestComposite as St, meterRuntimeOwnedProviderAttempt as T, resolveRedactor as Ta, executableAgentSpecSnapshot as Ti, routerBrain as Tn, sanitizeAgentRuntimeEvent as Tr, distillFindings as Tt, prepareScopeRetainedOwnerTask as U, isSandboxTerminalEvent as Ui, environmentGone as Un, assertProfileMaterializes as Ur, readWorkerTraceContext as Ut, noteScopeRetainedOwnerCoordination as V, createSandboxUsageLedger as Vi, retainedCreateMaterial as Vn, AGENT_PROFILE_MATERIALIZATION_AXES as Vr, createInPlaceCliExecutor as Vt, reconcileScopeRetainedOwnerEnvironment as W, mapSandboxEvent as Wi, createWorkerSlots as Wn, controlProfileMaterialization as Wr, workerTraceEnv as Wt, scopeRetainedOwnerResult as X, decodeHarnessUsage as Xi, captureHarnessTranscript as Xn, promptOnlyProfileMaterialization as Xr, readWorkerProgress as Xt, scopeRetainedOwnerRestorePoint as Y, sumSandboxUsage as Yi, runAbortable as Yn, promptModelProfileMaterialization as Yr, createActivityLog as Yt, scopeRetainedOwnerTurnEnded as Z, FileResultBlobStore as Zi, harnessTranscriptArtifact as Zn, promptResourceProfileMaterialization as Zr, createInbox as Zt, isDriverSpec as _, assertValidBudget as _a, runtimeOwnedExecutorExecutionBinding as _i, isTerminalDecision as _n, flatOtelSpan as _r, CONTINUATIONS_DIR as _t, collectDelivered as a, WORKER_TOOL_TRACE_SCHEMA_VERSION as aa, attestRuntimeOwnedPendingExecutor as ai, peerMailVerbNames as an, priceTokens as ar, runtimeGraphMetadataKey as at, assertRecursiveReservationPolicy as b, newUsageTotals as ba, runtimeOwnedPendingExecutorMaterialization as bi, acquireSandbox as bn, padSpanId as br, admitContinuationPolicy as bt, runTree as c, parseWorkerToolTraceArtifact as ca, authoredProfileDigest as ci, bridgeAdmissionRefusal as cn, createPropagatingTraceEmitter as cr, readWorkerInteractiveBinding as ct, classifyDriverFailure as d, detachedFrozen as da, knownExecutionBindingReceipt as di, createCodexRolloutStoreReader as dn, traceContextToEnv as dr, startRetainedInteractiveRun as dt, InMemorySpawnJournal as ea, sandboxActProfileMaterialization as ei, PEER_MAIL_WIRE_KEY as en, resolveHarnessTranscriptCapture as er, hostDirectoryReader as et, runDriverWithRetry as f, detachedSnapshot as fa, knownMaterializationReceipt as fi, harnessUsageIsEmpty as fn, buildLoopOtelSpans as fr, freeSlots as ft, driverExecutorFactory as g, ReservationWaitRefused as ga, runtimeOwnedDriveHarnessProviderEvidence as gi, defaultSelectWinner as gn, createOtelExporter as gr, mapExecutorResult as gt, driverChild as h, BudgetReconcileFault as ha, recordRuntimeOwnedDriveHarnessProviderEvidence as hi, createSandboxForSpec as hn, createOpenInferenceFileExporter as hr, gateOnDeliverable as ht, bestDelivered as i, replaySpawnTree as ia, worktreeCliProfileMaterialization as ii, peerMailTools as in, runCodeMode as ir, providerVisibleProfile as it, settledToIteration as j, settlementFailureCause as ji, resolveAgentEnvironmentProvider as jn, createWorktree as jr, captureReusableExecutorConfig as jt, restoreScopeOwnerAcceptedExecution as k, awaitAbortable$1 as ki, providerAsExecutor as kn, runWorktreeHarness as kr, verdictFromJudgeScore as kt, DriverAttemptsExhaustedError as l, workerTraceAnalysisStore as la, finalizeRuntimeOwnedPendingExecutor as li, bridgeModelRouteRefusal as ln, mergeTraceEnv as lr, reconnectRetainedInteractiveRun as lt, upstreamUnavailableSignal as m, errMessage as ma, providerAttemptEvidence as mi, TERMINAL_DECISIONS as mn, buildRuntimeEventOtelSpans as mr, rollingDispatch as mt, createRootHandle as n, loadSpawnForest as na, unsupportedProfileDimensions as ni, createPeerMailbox as nn, createCodeModeTools as nr, coordinationMcpAlias as nt, pickBestDelivered as o, captureWorkerTraceEvidence as oa, attestRuntimeOwnedScopeOwner as oi, isLiveNodeStatus as on, routerTokenPrice as or, interactiveAdmissionSeamKey as ot, summarizeDriverAttempts as p, executorFailure as pa, newExecutionAttemptId as pi, readCodexRolloutSession as pn, buildLoopSpanNodes as pr, queueOf as pt, scopeRetainedOwnerPriorSpend as q, sandboxEventServedBackend as qi, abortError as qn, profileMaterializationAxes$1 as qr, taskToPrompt as qt, createSupervisor as r, materializeTreeView as ra, validateProfileMaterialization as ri, isPeerMailEnvelope as rn, describeCodeModeTools as rr, coordinationProfileToolPrefix as rt, runFinalizer as s, isTraceAnalysisStore as sa, authoredAgentIdentity as si, isTerminalNodeStatus as sn, ROUTER_PRICE_SOURCE as sr, attachWorker as st, DEFAULT_MAX_DEPTH as t, insideCursorNamespace as ta, sandboxProfileMaterialization as ti, claimsAuthority as tn, retainHarnessTranscript as tr, resolveSpawnResourcePaths as tt, HarnessTurnFailedError as u, contentAddress as ua, inheritRuntimeOwnedExecutorAttestation as ui, addHarnessUsage as un, readTraceContextFromEnv as ur, recoverRetainedInteractiveRun as ut, withDriverExecutor as v, createBudgetPool as va, runtimeOwnedExecutorMaterialization as vi, runAgentRounds as vn, generateSpanId as vr, CONTINUATION_FACTS as vt, meterRuntimeOwnedAccounting as w, defaultRedactorIdentityMaterial as wa, executableAgentProfileSnapshot as wi, readPromptOptions as wn, createRuntimeStreamEventCollector as wr, createContinuationKeeper as wt, beginScopeOwnerAttempt as x, spendFromUsageEvents as xa, runtimeOwnedScopeOwnerRuntime as xi, SandboxEvidenceRetentionError as xn, padTraceId as xr, admitFinding as xt, SUBTREE_RESULT_LIMIT as y, meterUsageEvent as ya, runtimeOwnedExecutorProviderEvidence as yi, createSandboxLineage as yn, loopEventToOtelSpan as yr, CheckUnavailableError as yt, bindScopeRetainedOwnerProvider as z, canonicalStreamEventFromSandboxEvent as zi, startRetainedRun as zn, CodexExecutionDiagnosticError as zr, createSteerableSandboxSession as zt };
|
|
31735
31735
|
|
|
31736
|
-
//# sourceMappingURL=supervisor-
|
|
31736
|
+
//# sourceMappingURL=supervisor-tbJOhcIf.js.map
|