@tangle-network/agent-runtime 0.325.0 → 0.325.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-Q3CJgiCu.d.ts → activation-BMsOQxMD.d.ts} +2 -2
- package/dist/{activation--9-iyGR8.js → activation-C1O2zCvn.js} +3 -3
- package/dist/{activation--9-iyGR8.js.map → activation-C1O2zCvn.js.map} +1 -1
- package/dist/agent.d.ts +2 -2
- package/dist/agent.js +2 -2
- package/dist/{bundle-BJJmfEsw.js → bundle-KZGUQqRM.js} +2 -2
- package/dist/{bundle-BJJmfEsw.js.map → bundle-KZGUQqRM.js.map} +1 -1
- package/dist/candidate-execution/index.js +5 -5
- package/dist/{coordination-driver-DkkUVe9g.js → coordination-driver-g2IGDTZ5.js} +4 -4
- package/dist/{coordination-driver-DkkUVe9g.js.map → coordination-driver-g2IGDTZ5.js.map} +1 -1
- package/dist/{delegate-BDsaIl2K.js → delegate-BQc-9bkv.js} +2 -2
- package/dist/{delegate-BDsaIl2K.js.map → delegate-BQc-9bkv.js.map} +1 -1
- package/dist/durable.d.ts +1 -1
- package/dist/durable.js +5 -5
- package/dist/{graph-Cuz6Ubzd.js → graph-N80-QQQD.js} +4 -4
- package/dist/{graph-Cuz6Ubzd.js.map → graph-N80-QQQD.js.map} +1 -1
- package/dist/{improvement-cycle-B5Z8cHKx.js → improvement-cycle-IncBZK-W.js} +6 -6
- package/dist/{improvement-cycle-B5Z8cHKx.js.map → improvement-cycle-IncBZK-W.js.map} +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +9 -9
- package/dist/intelligence.d.ts +2 -2
- package/dist/intelligence.js +7 -7
- package/dist/kernel.d.ts +2 -2
- package/dist/kernel.js +9 -9
- package/dist/{loop-runner-bin-C16VR9cI.js → loop-runner-bin-CcpZdDHc.js} +3 -3
- package/dist/{loop-runner-bin-C16VR9cI.js.map → loop-runner-bin-CcpZdDHc.js.map} +1 -1
- package/dist/{loop-runner-bin-Co7JKSwi.d.ts → loop-runner-bin-ECJA--ZN.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 +5 -5
- package/dist/{openai-tools-CbgZrQJ_.d.ts → openai-tools-C_dJoluR.d.ts} +2 -2
- package/dist/placement.d.ts +1 -1
- package/dist/{prepare-DpavgJT8.js → prepare-BrgoOJmU.js} +8 -7
- package/dist/{prepare-DpavgJT8.js.map → prepare-BrgoOJmU.js.map} +1 -1
- package/dist/{profile-ZS7_KLwK.js → profile-ChWlsNCI.js} +30 -55
- package/dist/profile-ChWlsNCI.js.map +1 -0
- package/dist/{profile-materialization-C5-t3HJ7.d.ts → profile-materialization-BnoEf1co.d.ts} +3 -8
- package/dist/profiles.d.ts +1 -1
- package/dist/{protected-model-port-BLyyfL3l.js → protected-model-port-CJzC-FRs.js} +4 -4
- package/dist/{protected-model-port-BLyyfL3l.js.map → protected-model-port-CJzC-FRs.js.map} +1 -1
- package/dist/{provision-supervisor-4BoHpGFJ.js → provision-supervisor-BpydSDTn.js} +4 -4
- package/dist/{provision-supervisor-4BoHpGFJ.js.map → provision-supervisor-BpydSDTn.js.map} +1 -1
- package/dist/{runtime-B9X_U-aV.js → runtime-C-ic9jfY.js} +9 -9
- package/dist/{runtime-B9X_U-aV.js.map → runtime-C-ic9jfY.js.map} +1 -1
- package/dist/{workspace-streams-CcoARX4v.js → sandbox-profile-compat-Dq7ujONv.js} +40 -6
- package/dist/sandbox-profile-compat-Dq7ujONv.js.map +1 -0
- package/dist/{search-executor-C-b4NaFl.js → search-executor-CKIXXaiX.js} +3 -3
- package/dist/{search-executor-C-b4NaFl.js.map → search-executor-CKIXXaiX.js.map} +1 -1
- package/dist/{server-CcHaXgUT.js → server-B9_c16pR.js} +4 -4
- package/dist/{server-CcHaXgUT.js.map → server-B9_c16pR.js.map} +1 -1
- package/dist/{supervise-BlaB4CeL.js → supervise-CgEHAUEr.js} +22 -9
- package/dist/supervise-CgEHAUEr.js.map +1 -0
- package/dist/{supervisor-fq4JGynd.js → supervisor-CESg1FQx.js} +12 -11
- package/dist/supervisor-CESg1FQx.js.map +1 -0
- package/dist/testing.d.ts +1 -1
- package/dist/testing.js +14 -14
- package/dist/tui/index.d.ts +1 -1
- package/dist/tui/index.js +1 -1
- package/dist/{types-5r334mcg.d.ts → types-CTjiMrcF.d.ts} +2 -2
- package/package.json +9 -9
- package/dist/profile-ZS7_KLwK.js.map +0 -1
- package/dist/supervise-BlaB4CeL.js.map +0 -1
- package/dist/supervisor-fq4JGynd.js.map +0 -1
- package/dist/workspace-streams-CcoARX4v.js.map +0 -1
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import { n as assertNoSymlinkDescendant } from "./durable-file-B_eJr6Mb.js";
|
|
2
|
-
import { $n as readHarnessTranscript, $r as renderUnsupported, A as scopeOwnerExecutorNodeContext, At as bindReusableExecutorExecutionId, B as consumeScopeRetainedOwnerResult, Bt as createRouterTranscript, C as deriveNodeExecutionIdentity, Ct as checkVerdictOf, D as recordScopeOwnerMaterialization, E as recordScopeOwnerDriverAttempt, F as seatExecutionProfile, Fn as bridgeRuntimeAttachmentsKey, G as scopeRetainedOwnerContext, Gr as defineProfileMaterializationContract, H as prepareScopeRetainedOwnerSeatSwitch, Hr as assertProfileMaterialization, Ht as WORKER_TRACE_PROPAGATION, I as abandonScopeRetainedOwnerInvocation, In as bridgeStopSignalKey, It as snapshotExecutorConfig, J as scopeRetainedOwnerResourceReader, Jn as linkAbort, Jr as promptControlProfileMaterialization, K as scopeRetainedOwnerJournalRoot, Kn as RunCancellationReason, Kr as fullProfileMaterialization, L as beginScopeRetainedOwnerDrive, M as SeatChain, Mi as
|
|
2
|
+
import { $n as readHarnessTranscript, $r as renderUnsupported, A as scopeOwnerExecutorNodeContext, At as bindReusableExecutorExecutionId, B as consumeScopeRetainedOwnerResult, Bt as createRouterTranscript, C as deriveNodeExecutionIdentity, Ct as checkVerdictOf, D as recordScopeOwnerMaterialization, E as recordScopeOwnerDriverAttempt, F as seatExecutionProfile, Fn as bridgeRuntimeAttachmentsKey, G as scopeRetainedOwnerContext, Gr as defineProfileMaterializationContract, H as prepareScopeRetainedOwnerSeatSwitch, Hr as assertProfileMaterialization, Ht as WORKER_TRACE_PROPAGATION, I as abandonScopeRetainedOwnerInvocation, In as bridgeStopSignalKey, It as snapshotExecutorConfig, J as scopeRetainedOwnerResourceReader, Jn as linkAbort, Jr as promptControlProfileMaterialization, K as scopeRetainedOwnerJournalRoot, Kn as RunCancellationReason, Kr as fullProfileMaterialization, L as beginScopeRetainedOwnerDrive, M as SeatChain, Mi as registerRetainedExecutorPreparation, N as SeatChainExhaustedError, Ni as retainedExecutorSeamKey, O as recordScopeOwnerPause, P as authoredSeatStages, Pt as createExecutor, Qn as persistHarnessTranscript, R as bindScopeRetainedOwnerEnvironmentId, Sa as spendFromUsageTotals, Sr as toOtelAttributes, St as bestComposite, T as meterRuntimeOwnedProviderAttempt, Tn as routerBrain, U as prepareScopeRetainedOwnerTask, V as noteScopeRetainedOwnerCoordination, W as reconcileScopeRetainedOwnerEnvironment, Wr as controlProfileMaterialization, X as scopeRetainedOwnerResult, Y as scopeRetainedOwnerRestorePoint, Yn as runAbortable, Yr as promptModelProfileMaterialization, Yt as createActivityLog, Z as scopeRetainedOwnerTurnEnded, Zt as createInbox, _ as isDriverSpec, _a as assertValidBudget, _i as runtimeOwnedExecutorExecutionBinding, _t as CONTINUATIONS_DIR, at as runtimeGraphMetadataKey, b as assertRecursiveReservationPolicy, ba as newUsageTotals, bi as runtimeOwnedPendingExecutorMaterialization, bt as admitContinuationPolicy, c as runTree, ca as parseWorkerToolTraceArtifact, cn as bridgeAdmissionRefusal, en as PEER_MAIL_WIRE_KEY, f as runDriverWithRetry, fa as detachedSnapshot, g as driverExecutorFactory, gi as runtimeOwnedDriveHarnessProviderEvidence, gr as createOtelExporter, h as driverChild, hi as recordRuntimeOwnedDriveHarnessProviderEvidence, ht as gateOnDeliverable, i as bestDelivered, ii as worktreeCliProfileMaterialization, it as providerVisibleProfile, jn as resolveAgentEnvironmentProvider, jt as captureReusableExecutorConfig, k as restoreScopeOwnerAcceptedExecution, ln as bridgeModelRouteRefusal, ma as errMessage, mi as providerAttemptEvidence, n as createRootHandle, ni as unsupportedProfileDimensions, nt as coordinationMcpAlias, oi as attestRuntimeOwnedScopeOwner, on as isLiveNodeStatus, p as summarizeDriverAttempts, pa as executorFailure, q as scopeRetainedOwnerPriorSpend, qr as profileMaterializationAxes$1, r as createSupervisor, rn as isPeerMailEnvelope, rt as coordinationProfileToolPrefix, s as runFinalizer, si as authoredAgentIdentity, ti as sandboxProfileMaterialization, u as HarnessTurnFailedError, ua as contentAddress, ui as inheritRuntimeOwnedExecutorAttestation, vi as runtimeOwnedExecutorMaterialization, vr as generateSpanId, w as meterRuntimeOwnedAccounting, wt as createContinuationKeeper, x as beginScopeOwnerAttempt, xi as runtimeOwnedScopeOwnerRuntime, ya as meterUsageEvent, yi as runtimeOwnedExecutorProviderEvidence, yt as CheckUnavailableError, z as bindScopeRetainedOwnerProvider } from "./supervisor-CESg1FQx.js";
|
|
3
3
|
import { f as RuntimeRunStateError, i as ConfigError, m as ValidationError } from "./errors-DodWX-cb.js";
|
|
4
|
-
import {
|
|
4
|
+
import { $ as isAsyncIterable$1, Ot as teardownExecutor, U as addSpend, Y as errorMessage, at as sleep, dt as zeroSpend, gt as withBudgetResources, ht as resourceTelemetry, kt as teardownSurfaces, lt as unmeteredSpend, pt as addResourceSpend, ut as withTimeout, xt as DEFAULT_SUCCESSFUL_SHUTDOWN_MS } from "./sandbox-profile-compat-Dq7ujONv.js";
|
|
5
5
|
import { a as readCommittedJsonLines, n as isNoEntError, r as prepareJsonlAppend } from "./jsonl-file-DBv31uPi.js";
|
|
6
6
|
import { _ as agentHarness, a as concreteProfileModel, c as profileModelExecutionSettings, n as assertModelAllowed, o as enforceTokenLimits, r as assertProfileModelsAllowed, s as profileBridgeWireModel, t as assertExecutableAgentProfile, v as harnessRunsAgent } from "./model-policy-CyCUwHed.js";
|
|
7
7
|
import { t as composeRuntimeHooks } from "./runtime-hooks-tXpAarhW.js";
|
|
8
|
-
import { C as createFileRunContext, F as createCoordinationToolsForManager, N as coordinationVerbNames, O as applyRunCancellation, T as withRunContext, c as refreshedWake, g as progressStop, h as plateau, k as watchRunCancellation, l as resolveWakePolicy, n as createSteerAcknowledger, o as composeWakeInput, p as createProgressTracker, r as driverAgent, s as deadlineWarningAt, t as createCancelAcknowledger, w as createInMemoryRunContext } from "./coordination-driver-
|
|
8
|
+
import { C as createFileRunContext, F as createCoordinationToolsForManager, N as coordinationVerbNames, O as applyRunCancellation, T as withRunContext, c as refreshedWake, g as progressStop, h as plateau, k as watchRunCancellation, l as resolveWakePolicy, n as createSteerAcknowledger, o as composeWakeInput, p as createProgressTracker, r as driverAgent, s as deadlineWarningAt, t as createCancelAcknowledger, w as createInMemoryRunContext } from "./coordination-driver-g2IGDTZ5.js";
|
|
9
9
|
import { r as createStdioToolServer, t as PROTOCOL_VERSION } from "./tool-server-Dqer2M4_.js";
|
|
10
10
|
import { c as loadGraph, i as graphRegistry } from "./graph-registry-DAI6KNXB.js";
|
|
11
11
|
import { k as writeRunCancellation, o as readRunCancelRequest, s as readRunCancellation } from "./run-layout-Cu8H7aeh.js";
|
|
@@ -3583,8 +3583,8 @@ function workerTraceUnpropagatedDeclaration(backend) {
|
|
|
3583
3583
|
function backendProfileMaterialization(backend) {
|
|
3584
3584
|
switch (backend.backend) {
|
|
3585
3585
|
case "bridge":
|
|
3586
|
-
case "sandbox":
|
|
3587
3586
|
case "provider": return fullProfileMaterialization;
|
|
3587
|
+
case "sandbox": return sandboxProfileMaterialization;
|
|
3588
3588
|
case "cli-worktree": return backend.bridge ? fullProfileMaterialization : worktreeCliProfileMaterialization;
|
|
3589
3589
|
case "cli-in-place": return worktreeCliProfileMaterialization;
|
|
3590
3590
|
case "router":
|
|
@@ -4973,6 +4973,17 @@ async function storedGraphTopology(dir, digest) {
|
|
|
4973
4973
|
});
|
|
4974
4974
|
}
|
|
4975
4975
|
/**
|
|
4976
|
+
* The completion check of a managed node inside a `run_graph` subtask: its submission is accepted
|
|
4977
|
+
* and settles it. Under the run's own check, a node's narrower result is refused for as long as
|
|
4978
|
+
* the run's is: on 2026-10-17 every node of test-canary-graph-tools-20261017a was refused at
|
|
4979
|
+
* submit_result and sent back to the run's commission until the run's deadline, so the graph never
|
|
4980
|
+
* settled and its caller was never woken with it.
|
|
4981
|
+
*/
|
|
4982
|
+
const graphNodeDeliverable = Object.freeze({
|
|
4983
|
+
describe: "the result your task asks for; the graph hands it to the manager that ran the graph, and the run's own check judges that manager's result",
|
|
4984
|
+
check: () => true
|
|
4985
|
+
});
|
|
4986
|
+
/**
|
|
4976
4987
|
* What a `run_graph` subtask settles with once its root manager returned and its subtree closed:
|
|
4977
4988
|
* the root's result and the graph's edge ledger. A delegates cap that refused work while the root
|
|
4978
4989
|
* delivered nothing ended the graph, not the task, so that fails loud with the cap named, as
|
|
@@ -5355,6 +5366,8 @@ function superviseInternal(profile, task, opts, testBrain) {
|
|
|
5355
5366
|
if (subtask !== void 0 && graph !== void 0) throw new ValidationError("supervise: a node of a graph cannot start another graph; add the work as nodes");
|
|
5356
5367
|
const ownGraph = subtask === void 0 ? void 0 : graphOverlayFor(subtask);
|
|
5357
5368
|
const subtreeGraph = ownGraph ?? graph;
|
|
5369
|
+
const graphNode = subtreeGraph !== void 0 && selectedDeliverable === void 0;
|
|
5370
|
+
const managerDeliverable = graphNode ? graphNodeDeliverable : childDeliverable;
|
|
5358
5371
|
const nestedDriveHarness = isExternalSupervisor(authorized) ? driveHarnessForOwner(freezeDetached({
|
|
5359
5372
|
runId,
|
|
5360
5373
|
runNamespace,
|
|
@@ -5437,11 +5450,11 @@ function superviseInternal(profile, task, opts, testBrain) {
|
|
|
5437
5450
|
...options.compaction ? { compaction: options.compaction } : {},
|
|
5438
5451
|
...options.driverRetry ? { driverRetry: options.driverRetry } : {},
|
|
5439
5452
|
...options.onDriverAttempt ? { onDriverAttempt: options.onDriverAttempt } : {},
|
|
5440
|
-
...
|
|
5441
|
-
...
|
|
5453
|
+
...managerDeliverable && !seatManagedLeaf ? { deliverable: managerDeliverable } : {},
|
|
5454
|
+
...managerDeliverable && !seatManagedLeaf ? { onAcceptedSubmission: () => {
|
|
5442
5455
|
acceptedSubmission = true;
|
|
5443
5456
|
} } : {},
|
|
5444
|
-
...
|
|
5457
|
+
...managerDeliverable && !graphNode && !seatManagedLeaf && options.continuation && isExternalSupervisor(authorized) ? {
|
|
5445
5458
|
continuation: options.continuation,
|
|
5446
5459
|
...options.runDir === void 0 ? {} : { continuationDir: resolve(options.runDir, CONTINUATIONS_DIR, "managers", encodeURIComponent(ownerId)) }
|
|
5447
5460
|
} : {},
|
|
@@ -5456,7 +5469,7 @@ function superviseInternal(profile, task, opts, testBrain) {
|
|
|
5456
5469
|
},
|
|
5457
5470
|
...options.steerDir === void 0 ? {} : { steerDir: resolve(options.steerDir) },
|
|
5458
5471
|
...options.runDir === void 0 && options.steerDir === void 0 ? {} : { controlScope: "subtree" }
|
|
5459
|
-
}), journal, childExecution.ref, () => acceptedSubmission, recoveryFactories.get(childFactory), () => unassessedOutput, seatManagedLeaf ?
|
|
5472
|
+
}), journal, childExecution.ref, () => acceptedSubmission, recoveryFactories.get(childFactory), () => unassessedOutput, seatManagedLeaf ? managerDeliverable : void 0, ownGraph ? (out) => graphSubtaskOutput(ownGraph, out) : void 0);
|
|
5460
5473
|
};
|
|
5461
5474
|
if (options.makeLeafAgent === void 0 && options.backend?.backend === "provider" && !options.backend.steering) {
|
|
5462
5475
|
const factory = registerRetainedExecutorPreparation(createExecutor(options.backend), ({ spawned, profile, task }) => {
|
|
@@ -5717,4 +5730,4 @@ function rootProviderModelEvidenceFromExecution(evidence) {
|
|
|
5717
5730
|
//#endregion
|
|
5718
5731
|
export { dumbContinuationPassPrompt as A, defaultEdgeTraversalCap as C, createPromptRegistry as D, analyzesFindingsReportPrompt as E, serveCoordinationMcp as F, kernelPromptRegistry as M, naiveContinuationPrompt as N, delegatesWorkerBriefPrompt as O, promptHandle as P, createGraphOverlay as S, validateGraphTopology as T, readRootStream as _, superviseRootProfile as a, composeReentryTask as b, isPreSpawnExecutorFailure as c, withWorkerSpawnRetry as d, assertCoordinationBinding as f, ROOT_STREAM_FILE as g, supervisorAgentWithTestBrain as h, superviseFleetCapabilities as i, formatPromptHandle as j, dumbContinuationFailPrompt as k, resolveWorkerSpawnRetry as l, supervisorAgent as m, profileGuidanceComposer as n, superviseWithTestBrain as o, resolveSupervisorProfile as p, supervise as r, workerFromBackend as s, DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY as t, retryPreSpawnRefusals as u, readRootStreamReceipt as v, graphRootProfile as w, createSupervisorSpanRecorder as x, UNPROVEN_CONTINUITY as y };
|
|
5719
5732
|
|
|
5720
|
-
//# sourceMappingURL=supervise-
|
|
5733
|
+
//# sourceMappingURL=supervise-CgEHAUEr.js.map
|