@tangle-network/agent-runtime 0.324.0 → 0.325.0
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-CmWGOW1x.js → activation--9-iyGR8.js} +2 -2
- package/dist/{activation-CmWGOW1x.js.map → activation--9-iyGR8.js.map} +1 -1
- package/dist/{activation-CB2npL7F.d.ts → activation-Q3CJgiCu.d.ts} +2 -2
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/{coordination-driver-CNEeqMoh.js → coordination-driver-DkkUVe9g.js} +242 -139
- package/dist/coordination-driver-DkkUVe9g.js.map +1 -0
- package/dist/{delegate-C6oOTFB6.js → delegate-BDsaIl2K.js} +2 -2
- package/dist/{delegate-C6oOTFB6.js.map → delegate-BDsaIl2K.js.map} +1 -1
- package/dist/durable.d.ts +2 -2
- package/dist/durable.js +60 -21
- package/dist/durable.js.map +1 -1
- package/dist/graph-Cuz6Ubzd.js +348 -0
- package/dist/graph-Cuz6Ubzd.js.map +1 -0
- package/dist/{improvement-cycle-U74a-YKi.js → improvement-cycle-B5Z8cHKx.js} +3 -3
- package/dist/{improvement-cycle-U74a-YKi.js.map → improvement-cycle-B5Z8cHKx.js.map} +1 -1
- package/dist/index.d.ts +4 -4
- 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-bin-BfcTX4-n.js → loop-runner-bin-C16VR9cI.js} +3 -3
- package/dist/{loop-runner-bin-BfcTX4-n.js.map → loop-runner-bin-C16VR9cI.js.map} +1 -1
- package/dist/{loop-runner-bin-CkchKbaB.d.ts → loop-runner-bin-Co7JKSwi.d.ts} +2 -2
- package/dist/loop-runner-bin.d.ts +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/mcp/bin.js +3 -3
- package/dist/mcp/index.d.ts +3 -3
- package/dist/mcp/index.js +4 -4
- package/dist/{openai-tools-BR3rRmmC.d.ts → openai-tools-CbgZrQJ_.d.ts} +2 -2
- package/dist/profiles.d.ts +1 -1
- package/dist/{provision-supervisor-DhPJqazM.js → provision-supervisor-4BoHpGFJ.js} +3 -3
- package/dist/{provision-supervisor-DhPJqazM.js.map → provision-supervisor-4BoHpGFJ.js.map} +1 -1
- package/dist/{runtime-B9-ZiYFa.js → runtime-B9X_U-aV.js} +9 -9
- package/dist/{runtime-B9-ZiYFa.js.map → runtime-B9X_U-aV.js.map} +1 -1
- package/dist/{search-executor-CtNb_lIB.js → search-executor-C-b4NaFl.js} +2 -2
- package/dist/{search-executor-CtNb_lIB.js.map → search-executor-C-b4NaFl.js.map} +1 -1
- package/dist/{server-BLYiq6fK.js → server-CcHaXgUT.js} +3 -3
- package/dist/{server-BLYiq6fK.js.map → server-CcHaXgUT.js.map} +1 -1
- package/dist/{supervise-FOCAUADN.js → supervise-BlaB4CeL.js} +734 -18
- package/dist/supervise-BlaB4CeL.js.map +1 -0
- package/dist/{supervisor-DnKhkhKc.js → supervisor-fq4JGynd.js} +26 -9
- package/dist/{supervisor-DnKhkhKc.js.map → supervisor-fq4JGynd.js.map} +1 -1
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +12 -12
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +1 -1
- package/dist/{types-ytkoP4VV.d.ts → types-5r334mcg.d.ts} +577 -508
- package/package.json +1 -1
- package/skills/profile-authoring/SKILL.md +1 -1
- package/dist/coordination-driver-CNEeqMoh.js.map +0 -1
- package/dist/graph-BKmo7d42.js +0 -805
- package/dist/graph-BKmo7d42.js.map +0 -1
- package/dist/supervise-FOCAUADN.js.map +0 -1
|
@@ -24314,19 +24314,34 @@ function stableText(value, label) {
|
|
|
24314
24314
|
const coordinationMcpAlias = "agent-runtime-coordination";
|
|
24315
24315
|
/** A profile declares Runtime-owned tools with this provider-neutral prefix. */
|
|
24316
24316
|
const coordinationProfileToolPrefix = `${coordinationMcpAlias.replaceAll("-", "_")}_`;
|
|
24317
|
-
/**
|
|
24317
|
+
/** The metadata key under which the root of a `run_graph` subtask carries its graph's topology.
|
|
24318
|
+
* Runtime writes it; `spawn_worker` refuses a profile that carries it. */
|
|
24319
|
+
const runtimeGraphMetadataKey = "agentRuntimeGraph";
|
|
24320
|
+
/** Remove Runtime-only grants, seat policy and graph topology from the provider-facing profile. */
|
|
24318
24321
|
function providerVisibleProfile(profile) {
|
|
24319
24322
|
const { seats: _seats, ...withoutSeats } = profile;
|
|
24320
|
-
|
|
24323
|
+
const visible = withoutRuntimeGraph(withoutSeats);
|
|
24324
|
+
if (profile.tools === void 0) return visible;
|
|
24321
24325
|
const providerTools = Object.fromEntries(Object.entries(profile.tools).filter(([name]) => !name.startsWith(coordinationProfileToolPrefix)));
|
|
24322
|
-
if (Object.keys(providerTools).length === Object.keys(profile.tools).length) return
|
|
24326
|
+
if (Object.keys(providerTools).length === Object.keys(profile.tools).length) return visible;
|
|
24323
24327
|
if (Object.keys(providerTools).length > 0) return {
|
|
24324
|
-
...
|
|
24328
|
+
...visible,
|
|
24325
24329
|
tools: providerTools
|
|
24326
24330
|
};
|
|
24327
|
-
const { tools: _runtimeTools, ...withoutTools } =
|
|
24331
|
+
const { tools: _runtimeTools, ...withoutTools } = visible;
|
|
24328
24332
|
return withoutTools;
|
|
24329
24333
|
}
|
|
24334
|
+
function withoutRuntimeGraph(profile) {
|
|
24335
|
+
const source = profile.metadata;
|
|
24336
|
+
if (source === void 0 || source["agentRuntimeGraph"] === void 0) return profile;
|
|
24337
|
+
const { [runtimeGraphMetadataKey]: _graph, ...metadata } = source;
|
|
24338
|
+
if (Object.keys(metadata).length > 0) return {
|
|
24339
|
+
...profile,
|
|
24340
|
+
metadata
|
|
24341
|
+
};
|
|
24342
|
+
const { metadata: _metadata, ...withoutMetadata } = profile;
|
|
24343
|
+
return withoutMetadata;
|
|
24344
|
+
}
|
|
24330
24345
|
//#endregion
|
|
24331
24346
|
//#region src/runtime/supervise/terminal-record.ts
|
|
24332
24347
|
/** The settlement fields every writer copies, in the terminal record's key order. The
|
|
@@ -29515,7 +29530,7 @@ function isInfraError(err) {
|
|
|
29515
29530
|
* journal so the executor can run its `act` inside a nested scope. `act` fails loud if
|
|
29516
29531
|
* called directly — a driver child runs THROUGH its nested-scope executor, never as a root.
|
|
29517
29532
|
*/
|
|
29518
|
-
function driverChild(profile, driver, journal, execution, acceptedSubmission, recoverExecutor, unassessedOutput, leafDeliverable) {
|
|
29533
|
+
function driverChild(profile, driver, journal, execution, acceptedSubmission, recoverExecutor, unassessedOutput, leafDeliverable, finishOutput) {
|
|
29519
29534
|
const name = profile.name ?? driver.name;
|
|
29520
29535
|
const traceSource = driver.traceSource;
|
|
29521
29536
|
const progress = driver.progress;
|
|
@@ -29531,6 +29546,7 @@ function driverChild(profile, driver, journal, execution, acceptedSubmission, re
|
|
|
29531
29546
|
...acceptedSubmission ? { acceptedSubmission } : {},
|
|
29532
29547
|
...unassessedOutput ? { unassessedOutput } : {},
|
|
29533
29548
|
...leafDeliverable ? { leafDeliverable } : {},
|
|
29549
|
+
...finishOutput ? { finishOutput } : {},
|
|
29534
29550
|
...recoverExecutor ? { recoverExecutor } : {},
|
|
29535
29551
|
...traceSource ? { traceSource } : {},
|
|
29536
29552
|
...progress ? { progress } : {},
|
|
@@ -29667,9 +29683,10 @@ const driverExecutorFactory = (rawSpec, ctx) => {
|
|
|
29667
29683
|
};
|
|
29668
29684
|
const acceptedSubmission = spec.acceptedSubmission?.() === true;
|
|
29669
29685
|
const verdict = !acceptedSubmission && spec.unassessedOutput?.() === true ? void 0 : deriveDeliveryVerdict(events.filter((event) => event.kind === "settled"), out, acceptedSubmission);
|
|
29686
|
+
const finished = spec.finishOutput ? await spec.finishOutput(out) : out;
|
|
29670
29687
|
artifact = {
|
|
29671
29688
|
outRef: `${driverRuntime}:${nestedRoot}`,
|
|
29672
|
-
out:
|
|
29689
|
+
out: finished === void 0 ? null : finished,
|
|
29673
29690
|
spent: childWork,
|
|
29674
29691
|
...verdict ? { verdict } : {}
|
|
29675
29692
|
};
|
|
@@ -31692,6 +31709,6 @@ function isNonEmptySpend(s) {
|
|
|
31692
31709
|
return s.iterations > 0 || s.tokens.input > 0 || s.tokens.output > 0 || s.usd > 0 || s.ms > 0 || s.tokensKnown === false || s.usdKnown === false || Object.values(s.resources ?? {}).some((resource) => resource.amount > 0 || !resource.known);
|
|
31693
31710
|
}
|
|
31694
31711
|
//#endregion
|
|
31695
|
-
export { environmentReader as $,
|
|
31712
|
+
export { environmentReader as $, InMemorySpawnJournal as $i, readHarnessTranscript as $n, renderUnsupported as $r, DEFAULT_PEER_MAIL_LIMITS as $t, scopeOwnerExecutorNodeContext as A, settlementFailureCause as Ai, providerAsSandboxClient as An, captureWorktreeDiff as Ar, bindReusableExecutorExecutionId as At, consumeScopeRetainedOwnerResult as B, createSandboxUsageLedger as Bi, startRetainedRunInEnvironment as Bn, terminateProcessTreeAndConfirm as Br, createRouterTranscript as Bt, deriveNodeExecutionIdentity as C, defaultRedactorIdentityMaterial as Ca, executableAgentProfileSnapshot as Ci, assertBoxlessPromptOptions as Cn, createRuntimeEventCollector as Cr, checkVerdictOf as Ct, recordScopeOwnerMaterialization as D, providerMessageText as Da, abortError$1 as Di, LEAF_CONTINUATION_TASK as Dn, sanitizeRuntimeStreamEvent as Dr, failedItems as Dt, recordScopeOwnerDriverAttempt as E, promptOptionsFromAgentTurnInput as Ea, readSandboxOutcome as Ei, runBrainLoop as En, sanitizeKnowledgeReadinessReport as Er, expandQuestions as Et, seatExecutionProfile as F, TRACE_ROOT_SCHEMA as Fi, bridgeRuntimeAttachmentsKey as Fn, harnessInvocation as Fr, createExecutorRegistry as Ft, scopeRetainedOwnerContext as G, notifySandboxEventObserver as Gi, openSlotGroup as Gn, defineProfileMaterializationContract as Gr, workerTraceHeaders as Gt, prepareScopeRetainedOwnerSeatSwitch as H, isSandboxTerminalEvent as Hi, destroyInteractiveEnvironment as Hn, assertProfileMaterialization as Hr, WORKER_TRACE_PROPAGATION as Ht, abandonScopeRetainedOwnerInvocation as I, TRACE_SUMMARY_SCHEMA as Ii, bridgeStopSignalKey as In, harnessSupportsReasoningEffort as Ir, snapshotExecutorConfig as It, scopeRetainedOwnerResourceReader as J, sumSandboxUsage as Ji, linkAbort as Jn, promptControlProfileMaterialization as Jr, DEFAULT_STALL_AFTER_MS as Jt, scopeRetainedOwnerJournalRoot as K, sandboxEventServedBackend as Ki, RunCancellationReason as Kn, fullProfileMaterialization as Kr, workerTraceSeamKey as Kt, beginScopeRetainedOwnerDrive as L, assertSandboxServedModel as Li, reconnectRetainedRun as Ln, localHarnessExecutable as Lr, createWorktreeCliExecutor as Lt, SeatChain as M, retainedExecutorSeamKey as Mi, createPushTraceSource as Mn, removeWorktree as Mr, cliInPlaceExecutor as Mt, SeatChainExhaustedError as N, unavailablePauseMs as Ni, decodeToolPart as Nn, DEFAULT_LOCAL_HARNESS as Nr, cliWorktreeExecutor as Nt, recordScopeOwnerPause as O, awaitAbortable$1 as Oi, createAgentEnvironmentProviderRegistry as On, runSettledCommand as Or, passedItems as Ot, authoredSeatStages as P, unavailableSignalOfFailure as Pi, sandboxSessionTraceSource as Pn, LOCAL_HARNESSES as Pr, createExecutor as Pt, SPAWN_RESOURCE_PATH_MAX_BYTES as Q, InMemoryResultBlobStore as Qi, persistHarnessTranscript as Qn, renderProfileMaterializationIssues as Qr, AUTHORITY_MARKERS as Qt, bindScopeRetainedOwnerEnvironmentId as R, canonicalStreamEventFromSandboxEvent as Ri, recoverRetainedRun as Rn, parseCodexTokenUsage as Rr, DEFAULT_SANDBOX_STEERING_MAX_TURNS as Rt, createScope as S, defaultRedactor as Sa, unknownMaterializationReceipt as Si, captureBeforeDestroy as Sn, toOtelAttributes as Sr, bestComposite as St, meterRuntimeOwnedProviderAttempt as T, promptFromAgentTurnInput as Ta, projectSandboxOutcome as Ti, routerBrain as Tn, sanitizeAgentRuntimeEvent as Tr, distillFindings as Tt, prepareScopeRetainedOwnerTask as U, mapSandboxEvent as Ui, environmentGone as Un, assertProfileMaterializes as Ur, readWorkerTraceContext as Ut, noteScopeRetainedOwnerCoordination as V, extractLlmCallEvent as Vi, retainedCreateMaterial as Vn, AGENT_PROFILE_MATERIALIZATION_AXES as Vr, createInPlaceCliExecutor as Vt, reconcileScopeRetainedOwnerEnvironment as W, mapSandboxToolEvent as Wi, createWorkerSlots as Wn, controlProfileMaterialization as Wr, workerTraceEnv as Wt, scopeRetainedOwnerResult as X, FileResultBlobStore as Xi, captureHarnessTranscript as Xn, promptOnlyProfileMaterialization as Xr, readWorkerProgress as Xt, scopeRetainedOwnerRestorePoint as Y, decodeHarnessUsage as Yi, runAbortable as Yn, promptModelProfileMaterialization as Yr, createActivityLog as Yt, scopeRetainedOwnerTurnEnded as Z, FileSpawnJournal as Zi, harnessTranscriptArtifact as Zn, promptResourceProfileMaterialization as Zr, createInbox as Zt, isDriverSpec as _, createBudgetPool as _a, runtimeOwnedExecutorMaterialization as _i, isTerminalDecision as _n, flatOtelSpan as _r, CONTINUATIONS_DIR as _t, collectDelivered as a, captureWorkerTraceEvidence as aa, attestRuntimeOwnedScopeOwner as ai, peerMailVerbNames as an, priceTokens as ar, runtimeGraphMetadataKey as at, assertRecursiveReservationPolicy as b, spendFromUsageEvents as ba, runtimeOwnedScopeOwnerRuntime as bi, acquireSandbox as bn, padSpanId as br, admitContinuationPolicy as bt, runTree as c, workerTraceAnalysisStore as ca, finalizeRuntimeOwnedPendingExecutor as ci, bridgeAdmissionRefusal as cn, createPropagatingTraceEmitter as cr, readWorkerInteractiveBinding as ct, classifyDriverFailure as d, detachedSnapshot as da, knownMaterializationReceipt as di, createCodexRolloutStoreReader as dn, traceContextToEnv as dr, startRetainedInteractiveRun as dt, insideCursorNamespace as ea, sandboxActProfileMaterialization as ei, PEER_MAIL_WIRE_KEY as en, resolveHarnessTranscriptCapture as er, hostDirectoryReader as et, runDriverWithRetry as f, executorFailure as fa, newExecutionAttemptId as fi, harnessUsageIsEmpty as fn, buildLoopOtelSpans as fr, freeSlots as ft, driverExecutorFactory as g, assertValidBudget as ga, runtimeOwnedExecutorExecutionBinding as gi, defaultSelectWinner as gn, createOtelExporter as gr, mapExecutorResult as gt, driverChild as h, ReservationWaitRefused as ha, runtimeOwnedDriveHarnessProviderEvidence as hi, createSandboxForSpec as hn, createOpenInferenceFileExporter as hr, gateOnDeliverable as ht, bestDelivered as i, WORKER_TOOL_TRACE_SCHEMA_VERSION as ia, attestRuntimeOwnedPendingExecutor as ii, peerMailTools as in, runCodeMode as ir, providerVisibleProfile as it, settledToIteration as j, registerRetainedExecutorPreparation as ji, resolveAgentEnvironmentProvider as jn, createWorktree as jr, captureReusableExecutorConfig as jt, restoreScopeOwnerAcceptedExecution as k, runtimeFailureCause as ki, providerAsExecutor as kn, runWorktreeHarness as kr, verdictFromJudgeScore as kt, DriverAttemptsExhaustedError as l, contentAddress as la, inheritRuntimeOwnedExecutorAttestation as li, bridgeModelRouteRefusal as ln, mergeTraceEnv as lr, reconnectRetainedInteractiveRun as lt, upstreamUnavailableSignal as m, BudgetReconcileFault as ma, recordRuntimeOwnedDriveHarnessProviderEvidence as mi, TERMINAL_DECISIONS as mn, buildRuntimeEventOtelSpans as mr, rollingDispatch as mt, createRootHandle as n, materializeTreeView as na, validateProfileMaterialization as ni, createPeerMailbox as nn, createCodeModeTools as nr, coordinationMcpAlias as nt, pickBestDelivered as o, isTraceAnalysisStore as oa, authoredAgentIdentity as oi, isLiveNodeStatus as on, routerTokenPrice as or, interactiveAdmissionSeamKey as ot, summarizeDriverAttempts as p, errMessage as pa, providerAttemptEvidence as pi, readCodexRolloutSession as pn, buildLoopSpanNodes as pr, queueOf as pt, scopeRetainedOwnerPriorSpend as q, sandboxProgressEvents as qi, abortError as qn, profileMaterializationAxes$1 as qr, taskToPrompt as qt, createSupervisor as r, replaySpawnTree as ra, worktreeCliProfileMaterialization as ri, isPeerMailEnvelope as rn, describeCodeModeTools as rr, coordinationProfileToolPrefix as rt, runFinalizer as s, parseWorkerToolTraceArtifact as sa, authoredProfileDigest as si, isTerminalNodeStatus as sn, ROUTER_PRICE_SOURCE as sr, attachWorker as st, DEFAULT_MAX_DEPTH as t, loadSpawnForest as ta, unsupportedProfileDimensions as ti, claimsAuthority as tn, retainHarnessTranscript as tr, resolveSpawnResourcePaths as tt, HarnessTurnFailedError as u, detachedFrozen as ua, knownExecutionBindingReceipt as ui, addHarnessUsage as un, readTraceContextFromEnv as ur, recoverRetainedInteractiveRun as ut, withDriverExecutor as v, meterUsageEvent as va, runtimeOwnedExecutorProviderEvidence as vi, runAgentRounds as vn, generateSpanId as vr, CONTINUATION_FACTS as vt, meterRuntimeOwnedAccounting as w, resolveRedactor as wa, executableAgentSpecSnapshot as wi, readPromptOptions as wn, createRuntimeStreamEventCollector as wr, createContinuationKeeper as wt, beginScopeOwnerAttempt as x, spendFromUsageTotals as xa, unknownExecutionBindingReceipt as xi, SandboxEvidenceRetentionError as xn, padTraceId as xr, admitFinding as xt, SUBTREE_RESULT_LIMIT as y, newUsageTotals as ya, runtimeOwnedPendingExecutorMaterialization as yi, createSandboxLineage as yn, loopEventToOtelSpan as yr, CheckUnavailableError as yt, bindScopeRetainedOwnerProvider as z, createSandboxToolPartState as zi, startRetainedRun as zn, CodexExecutionDiagnosticError as zr, createSteerableSandboxSession as zt };
|
|
31696
31713
|
|
|
31697
|
-
//# sourceMappingURL=supervisor-
|
|
31714
|
+
//# sourceMappingURL=supervisor-fq4JGynd.js.map
|