@tangle-network/agent-runtime 0.322.1 → 0.322.4
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-CZGz2kuu.d.ts → activation-Bw6S7lI1.d.ts} +2 -2
- package/dist/{activation-CBv_0LUh.js → activation-ClHYiUF-.js} +2 -2
- package/dist/{activation-CBv_0LUh.js.map → activation-ClHYiUF-.js.map} +1 -1
- package/dist/agent.d.ts +1 -1
- package/dist/agent.js +2 -2
- package/dist/{coordination-driver-C2Zm5lU4.js → coordination-driver-xq1y2G6E.js} +2 -2
- package/dist/{coordination-driver-C2Zm5lU4.js.map → coordination-driver-xq1y2G6E.js.map} +1 -1
- package/dist/{delegate-BV7AVmbB.js → delegate-C9dMTZ8s.js} +2 -2
- package/dist/{delegate-BV7AVmbB.js.map → delegate-C9dMTZ8s.js.map} +1 -1
- package/dist/durable.d.ts +1 -1
- package/dist/durable.js +2 -2
- package/dist/{graph-CH3YiPog.js → graph-DLgIEaDB.js} +4 -4
- package/dist/{graph-CH3YiPog.js.map → graph-DLgIEaDB.js.map} +1 -1
- package/dist/{improvement-cycle-CD1h5GSM.js → improvement-cycle-C0N4tt1G.js} +3 -3
- package/dist/{improvement-cycle-CD1h5GSM.js.map → improvement-cycle-C0N4tt1G.js.map} +1 -1
- package/dist/{index-CGNQWpge.d.ts → index-BE5-_p0B.d.ts} +8 -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 +22 -6
- package/dist/intelligence.js.map +1 -1
- package/dist/kernel.d.ts +1 -1
- package/dist/kernel.js +8 -8
- package/dist/{loop-runner-bin-CFxE376A.js → loop-runner-bin-B4QRhI5z.js} +3 -3
- package/dist/{loop-runner-bin-CFxE376A.js.map → loop-runner-bin-B4QRhI5z.js.map} +1 -1
- package/dist/{loop-runner-bin-C_jaLCUO.d.ts → loop-runner-bin-DeT99QWD.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 +2 -2
- package/dist/mcp/index.js +4 -4
- package/dist/{openai-tools-D1PDoBOz.d.ts → openai-tools-C80KeWl4.d.ts} +2 -2
- package/dist/profiles.d.ts +1 -1
- package/dist/{provision-supervisor-ftJZhqBU.js → provision-supervisor-C40ye4h2.js} +3 -3
- package/dist/{provision-supervisor-ftJZhqBU.js.map → provision-supervisor-C40ye4h2.js.map} +1 -1
- package/dist/{runtime-EiTCboO2.js → runtime-zv5GK0m4.js} +8 -8
- package/dist/{runtime-EiTCboO2.js.map → runtime-zv5GK0m4.js.map} +1 -1
- package/dist/{search-executor-ECJ2TmC-.js → search-executor-BtJktjPt.js} +2 -2
- package/dist/{search-executor-ECJ2TmC-.js.map → search-executor-BtJktjPt.js.map} +1 -1
- package/dist/{server-C2k5wX4k.js → server-DNnLa4KU.js} +3 -3
- package/dist/{server-C2k5wX4k.js.map → server-DNnLa4KU.js.map} +1 -1
- package/dist/{supervise-BjrRk-AN.js → supervise-DLezpJcp.js} +15 -4
- package/dist/supervise-DLezpJcp.js.map +1 -0
- package/dist/{supervisor-BMMdI4T-.js → supervisor-dlufUXys.js} +45 -4
- package/dist/supervisor-dlufUXys.js.map +1 -0
- 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/package.json +2 -2
- package/skills/profile-authoring/SKILL.md +3 -3
- package/dist/supervise-BjrRk-AN.js.map +0 -1
- package/dist/supervisor-BMMdI4T-.js.map +0 -1
|
@@ -1953,6 +1953,33 @@ function authoredProfileDigest(profile) {
|
|
|
1953
1953
|
return;
|
|
1954
1954
|
}
|
|
1955
1955
|
}
|
|
1956
|
+
/**
|
|
1957
|
+
* Who acted, as a trace span says it: the authored profile's canonical digest, its name, the model
|
|
1958
|
+
* and harness it declares, and a digest of its skill set. `profileDigest` is the digest the spawn
|
|
1959
|
+
* journal already recorded for the node, passed so the span and the journal name the same agent.
|
|
1960
|
+
* A field the profile does not declare stays absent; input that is not an AgentProfile yields only
|
|
1961
|
+
* the recorded digest, if any.
|
|
1962
|
+
*/
|
|
1963
|
+
function authoredAgentIdentity(profile, profileDigest) {
|
|
1964
|
+
const parsed = agentProfileSchema.safeParse(profile);
|
|
1965
|
+
if (!parsed.success) return profileDigest === void 0 ? {} : { profileDigest };
|
|
1966
|
+
const authored = parsed.data;
|
|
1967
|
+
const digest = profileDigest ?? authoredProfileDigest(authored);
|
|
1968
|
+
const skills = authored.resources?.skills;
|
|
1969
|
+
let skillsDigest;
|
|
1970
|
+
try {
|
|
1971
|
+
skillsDigest = skills && skills.length > 0 ? canonicalCandidateDigest(skills) : void 0;
|
|
1972
|
+
} catch {
|
|
1973
|
+
skillsDigest = void 0;
|
|
1974
|
+
}
|
|
1975
|
+
return {
|
|
1976
|
+
...digest === void 0 ? {} : { profileDigest: digest },
|
|
1977
|
+
...authored.name ? { profileName: authored.name } : {},
|
|
1978
|
+
...authored.model?.default ? { model: authored.model.default } : {},
|
|
1979
|
+
...authored.harness ? { harness: authored.harness } : {},
|
|
1980
|
+
...skillsDigest === void 0 ? {} : { skillsDigest }
|
|
1981
|
+
};
|
|
1982
|
+
}
|
|
1956
1983
|
function assertExactDeclaration(value) {
|
|
1957
1984
|
if (typeof value !== "object" || value === null || Array.isArray(value)) throw new ValidationError$1("executor materialization: declaration must be an object");
|
|
1958
1985
|
const unknown = Object.keys(value).filter((key) => !declarationKeys.has(key));
|
|
@@ -26151,7 +26178,11 @@ function ownerCaptureIdentity(attempt, owner) {
|
|
|
26151
26178
|
node
|
|
26152
26179
|
};
|
|
26153
26180
|
}
|
|
26154
|
-
/**
|
|
26181
|
+
/**
|
|
26182
|
+
* Recover evidence before reuse. An accepted turn requires a complete receipt. A failed turn
|
|
26183
|
+
* keeps its source and pending evidence, while the driver's own classification decides retry.
|
|
26184
|
+
* Retry uses another environment if recovery cannot certify the failed turn's workspace.
|
|
26185
|
+
*/
|
|
26155
26186
|
async function reconcileOwnerWorkspaceBeforeReuse(state, signal) {
|
|
26156
26187
|
const { args } = state;
|
|
26157
26188
|
const events = await args.journal.loadTree(args.rootId) ?? [];
|
|
@@ -26197,7 +26228,16 @@ async function reconcileOwnerWorkspaceBeforeReuse(state, signal) {
|
|
|
26197
26228
|
if (!hasDurableWorkspaceCapture(output, captured.snapshot, environmentId, attempt.executionId, controlRef, identity)) throw new Error(captured.incompleteReason ?? "accepted workspace capture is incomplete");
|
|
26198
26229
|
await state.context.onEvidence(output);
|
|
26199
26230
|
} catch (cause) {
|
|
26200
|
-
|
|
26231
|
+
const pending = new RetainedWorkspaceCapturePendingError(attempt.executionId ?? args.nodeId, cause);
|
|
26232
|
+
if (executorFailureReason(attempt.result) === void 0) throw pending;
|
|
26233
|
+
await state.context.onEvidence({
|
|
26234
|
+
executionId: attempt.executionId,
|
|
26235
|
+
environmentId,
|
|
26236
|
+
controlRef: attempt.controlByEnvironment.get(environmentId),
|
|
26237
|
+
...ownerCaptureIdentity(attempt, args),
|
|
26238
|
+
workspaceCaptureFailure: pending.message
|
|
26239
|
+
});
|
|
26240
|
+
state.forceNewSession = true;
|
|
26201
26241
|
}
|
|
26202
26242
|
}
|
|
26203
26243
|
}
|
|
@@ -27668,6 +27708,7 @@ function createScope(args) {
|
|
|
27668
27708
|
...opts.successorOf === void 0 ? {} : { successorOf: opts.successorOf },
|
|
27669
27709
|
runtime: executor.runtime,
|
|
27670
27710
|
...identity ? { identity } : {},
|
|
27711
|
+
agent: authoredAgentIdentity(spec.profile, identity?.profileDigest),
|
|
27671
27712
|
budget: opts.budget,
|
|
27672
27713
|
depth: args.depth,
|
|
27673
27714
|
attemptId,
|
|
@@ -31534,6 +31575,6 @@ function isNonEmptySpend(s) {
|
|
|
31534
31575
|
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);
|
|
31535
31576
|
}
|
|
31536
31577
|
//#endregion
|
|
31537
|
-
export { environmentReader as $,
|
|
31578
|
+
export { environmentReader as $, runtimeOwnedExecutorMaterialization as $i, captureWorkerTraceEvidence as $n, flatOtelSpan as $r, PEER_MAIL_WIRE_KEY as $t, scopeOwnerExecutorNodeContext as A, promptControlProfileMaterialization as Ai, resolveAgentEnvironmentProvider as An, persistHarnessTranscript as Ar, captureReusableExecutorConfig as At, consumeScopeRetainedOwnerResult as B, attestRuntimeOwnedPendingExecutor as Bi, FileResultBlobStore as Bn, ROUTER_PRICE_SOURCE as Br, createInPlaceCliExecutor as Bt, deriveNodeExecutionIdentity as C, decodeHarnessUsage as Ca, AGENT_PROFILE_MATERIALIZATION_AXES as Ci, readPromptOptions as Cn, openSlotGroup as Cr, createContinuationKeeper as Ct, recordScopeOwnerMaterialization as D, promptOptionsFromAgentTurnInput as Da, defineProfileMaterializationContract as Di, createAgentEnvironmentProviderRegistry as Dn, runAbortable as Dr, passedItems as Dt, recordScopeOwnerDriverAttempt as E, promptFromAgentTurnInput as Ea, controlProfileMaterialization as Ei, LEAF_CONTINUATION_TASK as En, linkAbort as Er, failedItems as Et, seatExecutionProfile as F, renderUnsupported as Fi, retainedExecutorSeamKey as Fn, createCodeModeTools as Fr, snapshotExecutorConfig as Ft, scopeRetainedOwnerContext as G, inheritRuntimeOwnedExecutorAttestation as Gi, loadSpawnForest as Gn, defaultRedactor as Gr, workerTraceSeamKey as Gt, prepareScopeRetainedOwnerSeatSwitch as H, authoredAgentIdentity as Hi, InMemoryResultBlobStore as Hn, mergeTraceEnv as Hr, readWorkerTraceContext as Ht, abandonScopeRetainedOwnerInvocation as I, sandboxActProfileMaterialization as Ii, unavailablePauseMs as In, describeCodeModeTools as Ir, createWorktreeCliExecutor as It, scopeRetainedOwnerResourceReader as J, newExecutionAttemptId as Ji, isNoEntError as Jn, buildLoopOtelSpans as Jr, createActivityLog as Jt, scopeRetainedOwnerJournalRoot as K, knownExecutionBindingReceipt as Ki, materializeTreeView as Kn, defaultRedactorIdentityMaterial as Kr, taskToPrompt as Kt, beginScopeRetainedOwnerDrive as L, unsupportedProfileDimensions as Li, unavailableSignalOfFailure as Ln, runCodeMode as Lr, DEFAULT_SANDBOX_STEERING_MAX_TURNS as Lt, SeatChain as M, promptOnlyProfileMaterialization as Mi, decodeToolPart as Mn, resolveHarnessTranscriptCapture as Mr, cliWorktreeExecutor as Mt, SeatChainExhaustedError as N, promptResourceProfileMaterialization as Ni, sandboxSessionTraceSource as Nn, retainHarnessTranscript as Nr, createExecutor as Nt, recordScopeOwnerPause as O, providerMessageText as Oa, fullProfileMaterialization as Oi, providerAsExecutor as On, captureHarnessTranscript as Or, verdictFromJudgeScore as Ot, authoredSeatStages as P, renderProfileMaterializationIssues as Pi, registerRetainedExecutorPreparation as Pn, contentAddress as Pr, createExecutorRegistry as Pt, SPAWN_RESOURCE_PATH_MAX_BYTES as Q, runtimeOwnedExecutorExecutionBinding as Qi, WORKER_TOOL_TRACE_SCHEMA_VERSION as Qn, createOtelExporter as Qr, DEFAULT_PEER_MAIL_LIMITS as Qt, bindScopeRetainedOwnerEnvironmentId as R, validateProfileMaterialization as Ri, TRACE_ROOT_SCHEMA as Rn, priceTokens as Rr, createSteerableSandboxSession as Rt, createScope as S, sumSandboxUsage as Sa, terminateProcessTreeAndConfirm as Si, assertBoxlessPromptOptions as Sn, createWorkerSlots as Sr, checkVerdictOf as St, meterRuntimeOwnedProviderAttempt as T, awaitAbortable$1 as Ta, assertProfileMaterializes as Ti, runBrainLoop as Tn, abortError as Tr, expandQuestions as Tt, prepareScopeRetainedOwnerTask as U, authoredProfileDigest as Ui, InMemorySpawnJournal as Un, readTraceContextFromEnv as Ur, workerTraceEnv as Ut, noteScopeRetainedOwnerCoordination as V, attestRuntimeOwnedScopeOwner as Vi, FileSpawnJournal as Vn, createPropagatingTraceEmitter as Vr, WORKER_TRACE_PROPAGATION as Vt, reconcileScopeRetainedOwnerEnvironment as W, finalizeRuntimeOwnedPendingExecutor as Wi, insideCursorNamespace as Wn, traceContextToEnv as Wr, workerTraceHeaders as Wt, scopeRetainedOwnerResult as X, recordRuntimeOwnedDriveHarnessProviderEvidence as Xi, readCommittedJsonLines as Xn, buildRuntimeEventOtelSpans as Xr, createInbox as Xt, scopeRetainedOwnerRestorePoint as Y, providerAttemptEvidence as Yi, prepareJsonlAppend as Yn, buildLoopSpanNodes as Yr, readWorkerProgress as Yt, scopeRetainedOwnerTurnEnded as Z, runtimeOwnedDriveHarnessProviderEvidence as Zi, writeAllBytes as Zn, createOpenInferenceFileExporter as Zr, AUTHORITY_MARKERS as Zt, isDriverSpec as _, mapSandboxEvent as _a, harnessInvocation as _i, runAgentRounds as _n, startRetainedRun as _r, CONTINUATION_FACTS as _t, collectDelivered as a, executableAgentProfileSnapshot as aa, createRuntimeEventCollector as ai, isLiveNodeStatus as an, ReservationWaitRefused as ar, interactiveAdmissionSeamKey as at, assertRecursiveReservationPolicy as b, sandboxEventServedBackend as ba, parseCodexTokenUsage as bi, SandboxEvidenceRetentionError as bn, destroyInteractiveEnvironment as br, admitFinding as bt, runTree as c, detachedSnapshot as ca, sanitizeKnowledgeReadinessReport as ci, bridgeModelRouteRefusal as cn, meterUsageEvent as cr, reconnectRetainedInteractiveRun as ct, classifyDriverFailure as d, assertSandboxServedModel as da, runWorktreeHarness as di, harnessUsageIsEmpty as dn, spendFromUsageTotals as dr, freeSlots as dt, runtimeOwnedExecutorProviderEvidence as ea, generateSpanId as ei, claimsAuthority as en, isTraceAnalysisStore as er, hostDirectoryReader as et, runDriverWithRetry as f, canonicalStreamEventFromSandboxEvent as fa, captureWorktreeDiff as fi, readCodexRolloutSession as fn, bridgeRuntimeAttachmentsKey as fr, queueOf as ft, driverExecutorFactory as g, isSandboxTerminalEvent as ga, LOCAL_HARNESSES as gi, isTerminalDecision as gn, recoverRetainedRun as gr, CONTINUATIONS_DIR as gt, driverChild as h, extractLlmCallEvent as ha, DEFAULT_LOCAL_HARNESS as hi, defaultSelectWinner as hn, reconnectRetainedRun as hr, mapExecutorResult as ht, bestDelivered as i, unknownMaterializationReceipt as ia, toOtelAttributes as ii, peerMailVerbNames as in, BudgetReconcileFault as ir, providerVisibleProfile as it, settledToIteration as j, promptModelProfileMaterialization as ji, createPushTraceSource as jn, readHarnessTranscript as jr, cliInPlaceExecutor as jt, restoreScopeOwnerAcceptedExecution as k, profileMaterializationAxes$1 as ki, providerAsSandboxClient as kn, harnessTranscriptArtifact as kr, bindReusableExecutorExecutionId as kt, DriverAttemptsExhaustedError as l, projectSandboxOutcome as la, sanitizeRuntimeStreamEvent as li, addHarnessUsage as ln, newUsageTotals as lr, recoverRetainedInteractiveRun as lt, upstreamUnavailableSignal as m, createSandboxUsageLedger as ma, removeWorktree as mi, createSandboxForSpec as mn, errMessage as mr, gateOnDeliverable as mt, createRootHandle as n, runtimeOwnedScopeOwnerRuntime as na, padSpanId as ni, isPeerMailEnvelope as nn, workerTraceAnalysisStore as nr, coordinationMcpAlias as nt, pickBestDelivered as o, executableAgentSpecSnapshot as oa, createRuntimeStreamEventCollector as oi, isTerminalNodeStatus as on, assertValidBudget as or, attachWorker as ot, summarizeDriverAttempts as p, createSandboxToolPartState as pa, createWorktree as pi, TERMINAL_DECISIONS as pn, bridgeStopSignalKey as pr, rollingDispatch as pt, scopeRetainedOwnerPriorSpend as q, knownMaterializationReceipt as qi, replaySpawnTree as qn, resolveRedactor as qr, DEFAULT_STALL_AFTER_MS as qt, createSupervisor as r, unknownExecutionBindingReceipt as ra, padTraceId as ri, peerMailTools as rn, executorFailure as rr, coordinationProfileToolPrefix as rt, runFinalizer as s, detachedFrozen as sa, sanitizeAgentRuntimeEvent as si, bridgeAdmissionRefusal as sn, createBudgetPool as sr, readWorkerInteractiveBinding as st, DEFAULT_MAX_DEPTH as t, runtimeOwnedPendingExecutorMaterialization as ta, loopEventToOtelSpan as ti, createPeerMailbox as tn, parseWorkerToolTraceArtifact as tr, resolveSpawnResourcePaths as tt, HarnessTurnFailedError as u, readSandboxOutcome as ua, runSettledCommand as ui, createCodexRolloutStoreReader as un, spendFromUsageEvents as ur, startRetainedInteractiveRun as ut, withDriverExecutor as v, mapSandboxToolEvent as va, harnessSupportsReasoningEffort as vi, createSandboxLineage as vn, startRetainedRunInEnvironment as vr, CheckUnavailableError as vt, meterRuntimeOwnedAccounting as w, abortError$1 as wa, assertProfileMaterialization as wi, routerBrain as wn, RunCancellationReason as wr, distillFindings as wt, beginScopeOwnerAttempt as x, sandboxProgressEvents as xa, CodexExecutionDiagnosticError as xi, captureBeforeDestroy as xn, environmentGone as xr, bestComposite as xt, SUBTREE_RESULT_LIMIT as y, notifySandboxEventObserver as ya, localHarnessExecutable as yi, acquireSandbox as yn, retainedCreateMaterial as yr, admitContinuationPolicy as yt, bindScopeRetainedOwnerProvider as z, worktreeCliProfileMaterialization as zi, TRACE_SUMMARY_SCHEMA as zn, routerTokenPrice as zr, createRouterTranscript as zt };
|
|
31538
31579
|
|
|
31539
|
-
//# sourceMappingURL=supervisor-
|
|
31580
|
+
//# sourceMappingURL=supervisor-dlufUXys.js.map
|