@tangle-network/agent-runtime 0.353.2 → 0.353.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-BkRaG5t0.js → activation-DTgC0RvI.js} +2 -2
- package/dist/{activation-BkRaG5t0.js.map → activation-DTgC0RvI.js.map} +1 -1
- package/dist/agent.js +2 -2
- package/dist/{coordination-manager-BrRkc55z.js → coordination-manager-D-J0Osf4.js} +2 -2
- package/dist/{coordination-manager-BrRkc55z.js.map → coordination-manager-D-J0Osf4.js.map} +1 -1
- package/dist/{delegate-CAdajnf8.js → delegate-DfRQSGVk.js} +2 -2
- package/dist/{delegate-CAdajnf8.js.map → delegate-DfRQSGVk.js.map} +1 -1
- package/dist/durable.js +3 -3
- package/dist/{graph-CyaIHVGR.js → graph-BtGsqcOF.js} +4 -4
- package/dist/{graph-CyaIHVGR.js.map → graph-BtGsqcOF.js.map} +1 -1
- package/dist/{improve-DwG-yioQ.js → improve-CL-Dsf63.js} +5 -5
- package/dist/{improve-DwG-yioQ.js.map → improve-CL-Dsf63.js.map} +1 -1
- package/dist/index.js +7 -7
- package/dist/intelligence.js +3 -3
- package/dist/kernel.js +9 -9
- package/dist/{loop-runner-DwS3jARE.js → loop-runner-B1Xpgp2w.js} +2 -2
- package/dist/{loop-runner-DwS3jARE.js.map → loop-runner-B1Xpgp2w.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-AEnei2Jq.js → provision-supervisor-CzCFHTxe.js} +3 -3
- package/dist/{provision-supervisor-AEnei2Jq.js.map → provision-supervisor-CzCFHTxe.js.map} +1 -1
- package/dist/{runtime-DCYSaYHW.js → runtime-DmdhgaTH.js} +11 -11
- package/dist/{runtime-DCYSaYHW.js.map → runtime-DmdhgaTH.js.map} +1 -1
- package/dist/{search-executor-B2jc63hZ.js → search-executor-Djo4ssci.js} +2 -2
- package/dist/{search-executor-B2jc63hZ.js.map → search-executor-Djo4ssci.js.map} +1 -1
- package/dist/{server-CKBTwWM8.js → server-DAanPY7z.js} +3 -3
- package/dist/{server-CKBTwWM8.js.map → server-DAanPY7z.js.map} +1 -1
- package/dist/{structural-rollout-rRT3ypqz.js → structural-rollout-qqsbQW8M.js} +2 -2
- package/dist/{structural-rollout-rRT3ypqz.js.map → structural-rollout-qqsbQW8M.js.map} +1 -1
- package/dist/{supervise-B3_wtgHS.js → supervise-DKwnVruI.js} +23 -50
- package/dist/supervise-DKwnVruI.js.map +1 -0
- package/dist/{supervisor-C_sDmX5H.js → supervisor-C3JhrVVU.js} +28 -18
- package/dist/supervisor-C3JhrVVU.js.map +1 -0
- package/dist/testing.js +11 -11
- package/dist/tui/index.js +1 -1
- package/package.json +1 -1
- package/dist/supervise-B3_wtgHS.js.map +0 -1
- package/dist/supervisor-C_sDmX5H.js.map +0 -1
|
@@ -357,27 +357,37 @@ function readSandboxOutcome(value) {
|
|
|
357
357
|
if (!outcome || typeof outcome !== "object") return void 0;
|
|
358
358
|
return outcome;
|
|
359
359
|
}
|
|
360
|
+
// src/runtime/supervise/flow-brain.ts
|
|
361
|
+
const flowOwners = /* @__PURE__ */ new WeakSet();
|
|
362
|
+
/** Runtime schedules this model-free brain under graph edge caps, pool, deadline and abort. */
|
|
363
|
+
function runtimeFlowBrain() {
|
|
364
|
+
const brain = async () => ({
|
|
365
|
+
content: null,
|
|
366
|
+
toolCalls: []
|
|
367
|
+
});
|
|
368
|
+
flowOwners.add(brain);
|
|
369
|
+
return brain;
|
|
370
|
+
}
|
|
371
|
+
/** True only for a brain `runtimeFlowBrain` minted. */
|
|
372
|
+
function isRuntimeFlowBrain(brain) {
|
|
373
|
+
return flowOwners.has(brain);
|
|
374
|
+
}
|
|
375
|
+
/** Carry the same unforgeable ownership through the built code driver and its spec copies. */
|
|
376
|
+
function runtimeFlowAgent(agent, brain) {
|
|
377
|
+
if (brain && isRuntimeFlowBrain(brain)) flowOwners.add(agent);
|
|
378
|
+
return agent;
|
|
379
|
+
}
|
|
380
|
+
function isRuntimeFlowAgent(agent) {
|
|
381
|
+
return typeof agent === "object" && agent !== null && flowOwners.has(agent);
|
|
382
|
+
}
|
|
360
383
|
// src/runtime/supervise/executable-spec.ts
|
|
361
|
-
/**
|
|
362
|
-
* Parse one untrusted profile into the exact immutable value execution may consume.
|
|
363
|
-
*
|
|
364
|
-
* Snapshotting before schema parsing reads caller-owned fields once. Snapshotting the parsed
|
|
365
|
-
* result prevents downstream custom code from changing any identity or authority field.
|
|
366
|
-
*/
|
|
384
|
+
/** Read untrusted fields once, then parse and seal the exact executable profile. */
|
|
367
385
|
function executableAgentProfileSnapshot(raw, context) {
|
|
368
386
|
const profile = authoredAgentProfileSnapshot(raw, context);
|
|
369
387
|
assertExecutableAgentProfile(profile, context);
|
|
370
388
|
return profile;
|
|
371
389
|
}
|
|
372
|
-
/**
|
|
373
|
-
* Parse and seal a profile as authored, without requiring it to select a harness and model.
|
|
374
|
-
*
|
|
375
|
-
* This is the intake for a leaf whose behavior is code the caller already built: a verbatim
|
|
376
|
-
* `AgentSpec.executor`. Such an executor receives only the task and a signal, so no registry,
|
|
377
|
-
* harness, or backend reads the profile after intake, and there is no ambient fill to refuse. The
|
|
378
|
-
* profile still parses and still digests into the node's identity; it is simply not obliged to
|
|
379
|
-
* claim a model that nothing runs. A graph script node is the canonical case.
|
|
380
|
-
*/
|
|
390
|
+
/** Seal code-owned behavior without inventing a model: verbatim executors and owned flow drivers. */
|
|
381
391
|
function authoredAgentProfileSnapshot(raw, context) {
|
|
382
392
|
const input = detachedSnapshot(raw, `${context}: AgentProfile input`);
|
|
383
393
|
const profile = agentProfileSchema.parse(input);
|
|
@@ -386,7 +396,7 @@ function authoredAgentProfileSnapshot(raw, context) {
|
|
|
386
396
|
/** Snapshot an executable spec while retaining trusted callbacks by reference. */
|
|
387
397
|
function executableAgentSpecSnapshot(raw, context) {
|
|
388
398
|
const { profile: rawProfile, harness, execution: rawExecution, ...runtimeExtensions } = raw;
|
|
389
|
-
const profile = raw.executor === void 0 ? executableAgentProfileSnapshot(rawProfile, context) : authoredAgentProfileSnapshot(rawProfile, context);
|
|
399
|
+
const profile = raw.executor === void 0 && !isRuntimeFlowAgent(runtimeExtensions.driver) ? executableAgentProfileSnapshot(rawProfile, context) : authoredAgentProfileSnapshot(rawProfile, context);
|
|
390
400
|
const execution = rawExecution === void 0 ? void 0 : detachedSnapshot(rawExecution, `${context}: execution attribution`);
|
|
391
401
|
return Object.freeze({
|
|
392
402
|
...runtimeExtensions,
|
|
@@ -29642,6 +29652,6 @@ async function noWinner(settled, rejection) {
|
|
|
29642
29652
|
reason: "no-result-selected"
|
|
29643
29653
|
};
|
|
29644
29654
|
}
|
|
29645
|
-
export { abandonScopeRetainedOwnerInvocation as $, CheckUnavailableError as $n, newExecutionAttemptId as $r, harnessTranscriptArtifact as $t, noteScopeOwnerPlannedExecution as A, createPeerMailbox as An, harnessInvocation as Ar, acquireSandbox as At, deriveNodeExecutionIdentity as B, DriverAttemptsExhaustedError as Bn, renderUnsupported as Br, createAgentEnvironmentProviderRegistry as Bt, interactiveAdmissionSeamKey as C, INBOX_RECEIPT_KEY as Cn, signalAbortError as Cr, DEFAULT_SANDBOX_STEERING_MAX_TURNS as Ct, recoverRetainedInteractiveRun as D, DEFAULT_PEER_MAIL_LIMITS as Dn, runSettledCommand as Dr, readPromptOptions as Dt, reconnectRetainedInteractiveRun as E, AUTHORITY_MARKERS as En, defaultRunCommand as Er, assertBoxlessPromptOptions as Et, coordinationProfileToolPrefix as F, DEFAULT_STALL_AFTER_MS as Fn, defineProfileMaterializationContract as Fr, createCodeModeTools as Ft, meterRuntimeOwnedProviderAttempt as G, summarizeDriverAttempts as Gn, attestRuntimeOwnedPendingExecutor as Gr, reconnectRetainedRun as Gt, queueOf as H, abandonablePending as Hn, sandboxProfileMaterialization as Hr, providerAsExecutor as Ht, providerVisibleProfile as I, createActivityLog as In, fullProfileMaterialization as Ir, runCodeMode as It, recordScopeOwnerPause as J, SeatChain as Jn, authoredProfileDigest as Jr, startRetainedRunInEnvironment as Jt, recordScopeOwnerBarrenPause as K, undispatchedCredentialExit as Kn, attestRuntimeOwnedScopeOwner as Kr, recoverRetainedRun as Kt, runtimeGraphMetadataKey as L, readWorkerProgress as Ln, profileMaterializationAxes$1 as Lr, toolResultText as Lt, restoreScopeOwnerAcceptedExecution as M, peerMailTools as Mn, assertProfileMaterialization as Mr, defaultSelectWinner as Mt, scopeOwnerExecutorNodeContext as N, peerMailVerbNames as Nn, assertProfileMaterializes as Nr, codeModeArguments as Nt, startRetainedInteractiveRun as O, PEER_MAIL_WIRE_KEY as On, runWorktreeHarness as Or, createSandboxForSpec as Ot, coordinationMcpAlias as P, taskToPrompt$1 as Pn, controlProfileMaterialization as Pr, codeModeModelOutput as Pt, resolveSpawnResourcePaths as Q, subscriptionUsageLimitSignal as Qn, knownMaterializationReceipt as Qr, captureHarnessTranscript as Qt, settledToIteration as R, isLiveNodeStatus as Rn, promptControlProfileMaterialization as Rr, createRouterTranscript as Rt, workerTraceAnalysisStore as S, sanitizeRuntimeStreamEvent as Sn, runAbortable as Sr, snapshotExecutorConfig as St, readWorkerInteractiveBinding as T, failPendingAfter as Tn, bridgeStopSignalKey as Tr, runAgentRounds as Tt, rollingDispatch as U, causedByPartialFailure as Un, unsupportedProfileDimensions as Ur, LEAF_CONTINUATION_TASK as Ut, freeSlots as V, HarnessTurnFailedError as Vn, sandboxActProfileMaterialization as Vr, resolveAgentEnvironmentProvider as Vt, meterRuntimeOwnedAccounting as W, classifyDriverFailure as Wn, worktreeCliProfileMaterialization as Wr, providerAsSandboxClient as Wt, scopeRetainedOwnerResourceReader as X, authoredSeatStages as Xn, inheritRuntimeOwnedExecutorAttestation as Xr, destroyInteractiveEnvironment as Xt, prepareScopeRetainedOwnerSeatSwitch as Y, SeatChainExhaustedError as Yn, finalizeRuntimeOwnedPendingExecutor as Yr, retainedCreateMaterial as Yt, environmentReader as Z, seatExecutionProfile as Zn, knownExecutionBindingReceipt as Zr, environmentGone as Zt, withDriverExecutor as _,
|
|
29655
|
+
export { abandonScopeRetainedOwnerInvocation as $, CheckUnavailableError as $n, newExecutionAttemptId as $r, harnessTranscriptArtifact as $t, noteScopeOwnerPlannedExecution as A, createPeerMailbox as An, harnessInvocation as Ar, acquireSandbox as At, deriveNodeExecutionIdentity as B, DriverAttemptsExhaustedError as Bn, renderUnsupported as Br, createAgentEnvironmentProviderRegistry as Bt, interactiveAdmissionSeamKey as C, INBOX_RECEIPT_KEY as Cn, signalAbortError as Cr, DEFAULT_SANDBOX_STEERING_MAX_TURNS as Ct, recoverRetainedInteractiveRun as D, DEFAULT_PEER_MAIL_LIMITS as Dn, runSettledCommand as Dr, readPromptOptions as Dt, reconnectRetainedInteractiveRun as E, AUTHORITY_MARKERS as En, defaultRunCommand as Er, assertBoxlessPromptOptions as Et, coordinationProfileToolPrefix as F, DEFAULT_STALL_AFTER_MS as Fn, defineProfileMaterializationContract as Fr, createCodeModeTools as Ft, meterRuntimeOwnedProviderAttempt as G, summarizeDriverAttempts as Gn, attestRuntimeOwnedPendingExecutor as Gr, reconnectRetainedRun as Gt, queueOf as H, abandonablePending as Hn, sandboxProfileMaterialization as Hr, providerAsExecutor as Ht, providerVisibleProfile as I, createActivityLog as In, fullProfileMaterialization as Ir, runCodeMode as It, recordScopeOwnerPause as J, SeatChain as Jn, authoredProfileDigest as Jr, startRetainedRunInEnvironment as Jt, recordScopeOwnerBarrenPause as K, undispatchedCredentialExit as Kn, attestRuntimeOwnedScopeOwner as Kr, recoverRetainedRun as Kt, runtimeGraphMetadataKey as L, readWorkerProgress as Ln, profileMaterializationAxes$1 as Lr, toolResultText as Lt, restoreScopeOwnerAcceptedExecution as M, peerMailTools as Mn, assertProfileMaterialization as Mr, defaultSelectWinner as Mt, scopeOwnerExecutorNodeContext as N, peerMailVerbNames as Nn, assertProfileMaterializes as Nr, codeModeArguments as Nt, startRetainedInteractiveRun as O, PEER_MAIL_WIRE_KEY as On, runWorktreeHarness as Or, createSandboxForSpec as Ot, coordinationMcpAlias as P, taskToPrompt$1 as Pn, controlProfileMaterialization as Pr, codeModeModelOutput as Pt, resolveSpawnResourcePaths as Q, subscriptionUsageLimitSignal as Qn, knownMaterializationReceipt as Qr, captureHarnessTranscript as Qt, settledToIteration as R, isLiveNodeStatus as Rn, promptControlProfileMaterialization as Rr, createRouterTranscript as Rt, workerTraceAnalysisStore as S, sanitizeRuntimeStreamEvent as Sn, runAbortable as Sr, snapshotExecutorConfig as St, readWorkerInteractiveBinding as T, failPendingAfter as Tn, bridgeStopSignalKey as Tr, runAgentRounds as Tt, rollingDispatch as U, causedByPartialFailure as Un, unsupportedProfileDimensions as Ur, LEAF_CONTINUATION_TASK as Ut, freeSlots as V, HarnessTurnFailedError as Vn, sandboxActProfileMaterialization as Vr, resolveAgentEnvironmentProvider as Vt, meterRuntimeOwnedAccounting as W, classifyDriverFailure as Wn, worktreeCliProfileMaterialization as Wr, providerAsSandboxClient as Wt, scopeRetainedOwnerResourceReader as X, authoredSeatStages as Xn, inheritRuntimeOwnedExecutorAttestation as Xr, destroyInteractiveEnvironment as Xt, prepareScopeRetainedOwnerSeatSwitch as Y, SeatChainExhaustedError as Yn, finalizeRuntimeOwnedPendingExecutor as Yr, retainedCreateMaterial as Yt, environmentReader as Z, seatExecutionProfile as Zn, knownExecutionBindingReceipt as Zr, environmentGone as Zt, withDriverExecutor as _, awaitAbortable$1 as _i, generateSpanId as _n, harnessUsageIsEmpty as _r, FileResultBlobStore as _t, assertRunParking as a, runtimeOwnedExecutorProviderEvidence as ai, openSlotGroup as an, admitContinuationPolicy as ar, scopeRetainedOwnerTurnEnded as at, isTraceAnalysisStore as b, providerMessageText as bi, createRuntimeStreamEventCollector as bn, RunCancellationReason as br, captureReusableExecutorConfig as bt, sleepScopeWait as c, unknownExecutionBindingReceipt as ci, WORKER_TRACE_PROPAGATION as cn, createContinuationKeeper as cr, noteScopeRetainedOwnerCoordination as ct, runFinalizer as d, executableAgentSpecSnapshot as di, buildLoopOtelSpans as dn, bridgeAdmissionRefusal as dr, scopeRetainedOwnerContext as dt, providerAttemptEvidence as ei, persistHarnessTranscript as en, gateFactoryOnDeliverable as er, consumeScopeRetainedOwnerResult as et, runTree as f, isRuntimeFlowBrain as fi, buildLoopSpanNodes as fn, bridgeModelRouteRefusal as fr, scopeRetainedOwnerJournalRoot as ft, isDriverSpec as g, readSandboxOutcome as gi, flatOtelSpan as gn, createCodexRolloutStoreReader as gr, InMemorySpawnJournal as gt, driverExecutorFactory as h, projectSandboxOutcome as hi, createOtelExporter as hn, addHarnessUsage as hr, InMemoryResultBlobStore as ht, RunParkedError as i, runtimeOwnedExecutorMaterialization as ii, createWorkerSlots as in, CONTINUATIONS_DIR as ir, beginScopeRetainedOwnerDrive as it, recordScopeOwnerMaterialization as j, isPeerMailEnvelope as jn, terminateProcessTreeAndConfirm as jr, TERMINAL_DECISIONS as jt, beginScopeOwnerAttempt as k, claimsAuthority as kn, LOCAL_HARNESSES as kr, createSandboxLineage as kt, withRunParking as l, unknownMaterializationReceipt as li, createPropagatingTraceEmitter as ln, failedItems as lr, bindScopeRetainedOwnerEnvironmentId as lt, driverChild as m, runtimeFlowBrain as mi, createOpenInferenceFileExporter as mn, ROUTER_PRICE_SOURCE as mr, materializeTreeView as mt, createSupervisor as n, runtimeOwnedDriveHarnessProviderEvidence as ni, resolveHarnessTranscriptCapture as nn, mapExecutorResult as nr, scopeRetainedOwnerPriorSpend as nt, bindScopeParkingDrain as o, runtimeOwnedPendingExecutorMaterialization as oi, createWorktreeCliExecutor as on, bestComposite as or, reconcileScopeRetainedOwnerEnvironment as ot, createRootHandle as p, runtimeFlowAgent as pi, buildRuntimeEventOtelSpans as pn, priceTokens as pr, loadSpawnForest as pt, recordScopeOwnerDriverAttempt as q, upstreamUnavailableSignal as qn, authoredAgentIdentity as qr, startRetainedRun as qt, assertResumeLimits as r, runtimeOwnedExecutorExecutionBinding as ri, retainHarnessTranscript as rn, verdictFromJudgeScore as rr, scopeRetainedOwnerResult as rt, readRunParking as s, runtimeOwnedScopeOwnerRuntime as si, createInPlaceCliExecutor as sn, checkVerdictOf as sr, scopeRetainedOwnerRestorePoint as st, DEFAULT_MAX_DEPTH as t, recordRuntimeOwnedDriveHarnessProviderEvidence as ti, readHarnessTranscript as tn, gateOnDeliverable as tr, prepareScopeRetainedOwnerTask as tt, bestDelivered as u, executableAgentProfileSnapshot as ui, readTraceContextFromEnv as un, isFiniteNumber as ur, bindScopeRetainedOwnerProvider as ut, createScope as v, promptFromAgentTurnInput as vi, loopEventToOtelSpan as vn, readCodexRolloutSession as vr, createExecutorRegistry as vt, attachWorker as w, createInbox as wn, bridgeRuntimeAttachmentsKey as wr, createSteerableSandboxSession as wt, parseWorkerToolTraceArtifact as x, sanitizeKnowledgeReadinessReport as xn, linkAbort as xr, createExecutor as xt, replaySpawnTree as y, promptOptionsFromAgentTurnInput as yi, createRuntimeEventCollector as yn, createPushTraceSource as yr, bindReusableExecutorExecutionId as yt, assertRecursiveReservationPolicy as z, isTerminalNodeStatus as zn, promptModelProfileMaterialization as zr, routerBrain as zt };
|
|
29646
29656
|
|
|
29647
|
-
//# sourceMappingURL=supervisor-
|
|
29657
|
+
//# sourceMappingURL=supervisor-C3JhrVVU.js.map
|