@tangle-network/agent-runtime 3.0.14 → 3.0.16
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-qzYpKuLp.js → activation-DJ40anIr.js} +2 -2
- package/dist/{activation-qzYpKuLp.js.map → activation-DJ40anIr.js.map} +1 -1
- package/dist/agent.js +3 -3
- package/dist/{coordination-manager-CNSEGgvn.js → coordination-manager-CFfarnFh.js} +4 -4
- package/dist/{coordination-manager-CNSEGgvn.js.map → coordination-manager-CFfarnFh.js.map} +1 -1
- package/dist/{delegate-upnducQd.js → delegate-Byo3YB6N.js} +2 -2
- package/dist/{delegate-upnducQd.js.map → delegate-Byo3YB6N.js.map} +1 -1
- package/dist/durable.js +6 -6
- package/dist/{graph-gYLSR7wJ.js → graph-DuUW-LNW.js} +5 -5
- package/dist/{graph-gYLSR7wJ.js.map → graph-DuUW-LNW.js.map} +1 -1
- package/dist/{improve-B5s94UEb.js → improve-K6AzvHcf.js} +6 -6
- package/dist/{improve-B5s94UEb.js.map → improve-K6AzvHcf.js.map} +1 -1
- package/dist/index.js +8 -8
- package/dist/intelligence.js +4 -4
- package/dist/kernel.js +11 -11
- package/dist/{loop-runner-Chy2Fxfy.js → loop-runner-DwepGENE.js} +2 -2
- package/dist/{loop-runner-Chy2Fxfy.js.map → loop-runner-DwepGENE.js.map} +1 -1
- package/dist/loop-runner-bin.js +1 -1
- package/dist/mcp/bin.js +3 -3
- package/dist/mcp/index.js +5 -5
- package/dist/{provision-supervisor-r_0BoNs7.js → provision-supervisor-DOgH75Qk.js} +4 -4
- package/dist/{provision-supervisor-r_0BoNs7.js.map → provision-supervisor-DOgH75Qk.js.map} +1 -1
- package/dist/{run-cancellation-DIJXvIRr.js → run-cancellation-pmPWcMy0.js} +2 -2
- package/dist/{run-cancellation-DIJXvIRr.js.map → run-cancellation-pmPWcMy0.js.map} +1 -1
- package/dist/{runtime-DUKNg2rS.js → runtime-5CO88Rt2.js} +11 -11
- package/dist/{runtime-DUKNg2rS.js.map → runtime-5CO88Rt2.js.map} +1 -1
- package/dist/{scope-DlsCaLrX.js → scope-BKJ_SdfW.js} +12 -8
- package/dist/scope-BKJ_SdfW.js.map +1 -0
- package/dist/{search-executor-DPbqmita.js → search-executor-BX2Wwftx.js} +3 -3
- package/dist/{search-executor-DPbqmita.js.map → search-executor-BX2Wwftx.js.map} +1 -1
- package/dist/{server-Bde00T0D.js → server-wdjqe8et.js} +3 -3
- package/dist/{server-Bde00T0D.js.map → server-wdjqe8et.js.map} +1 -1
- package/dist/{structural-rollout-B9YW_iTZ.js → structural-rollout-oXgpKkEo.js} +3 -3
- package/dist/{structural-rollout-B9YW_iTZ.js.map → structural-rollout-oXgpKkEo.js.map} +1 -1
- package/dist/{supervise-z-h64T2Y.js → supervise-BpvUVtSI.js} +21 -16
- package/dist/supervise-BpvUVtSI.js.map +1 -0
- package/dist/{supervision-discovery-Cqv9QGnN.js → supervision-discovery-D3RjhxX4.js} +13 -16
- package/dist/supervision-discovery-D3RjhxX4.js.map +1 -0
- package/dist/{supervisor-PARoR3aR.js → supervisor-XWLIHK-U.js} +30 -41
- package/dist/supervisor-XWLIHK-U.js.map +1 -0
- package/dist/testing.js +11 -11
- package/dist/{top-web-CW_n7kil.js → top-web-BYx8LLQ7.js} +4 -4
- package/dist/{top-web-CW_n7kil.js.map → top-web-BYx8LLQ7.js.map} +1 -1
- package/dist/tui/bin.js +3 -3
- package/dist/tui/index.js +2 -2
- package/dist/viewer/report-viewer.js +126 -86
- package/dist/viewer/runtime-viewer/{AgentGraphCanvas-CcBWMidO-DIW8tof6.js → AgentGraphCanvas-DGq7_u8--C6yDfIUT.js} +2179 -2206
- package/dist/viewer/runtime-viewer/latest-events-CRq9sGkK-CfoBl1dP.js +9592 -0
- package/dist/viewer/runtime-viewer/{sandbox-ui-CUj4Q1P_.css → sandbox-ui-BEziPi7D.css} +1 -1
- package/dist/viewer/styles.css +99 -29
- package/dist/viewer/workspace-viewer.js +10742 -10828
- package/package.json +2 -2
- package/dist/scope-DlsCaLrX.js.map +0 -1
- package/dist/supervise-z-h64T2Y.js.map +0 -1
- package/dist/supervision-discovery-Cqv9QGnN.js.map +0 -1
- package/dist/supervisor-PARoR3aR.js.map +0 -1
- package/dist/viewer/runtime-viewer/latest-events-BfRc-7l9-QhJD89rn.js +0 -3808
|
@@ -1,12 +1,12 @@
|
|
|
1
|
-
import { $
|
|
1
|
+
import { $n as persistHarnessTranscript, Ai as spendFromUsageTotals, At as beginScopeRetainedOwnerDrive, B as beginScopeOwnerAttempt, Br as runtimeOwnedExecutorMaterialization, Di as meterUsageEvent, Dt as prepareScopeRetainedOwnerTask, Et as consumeScopeRetainedOwnerResult, Ft as scopeRetainedOwnerRestorePoint, G as scopeOwnerExecutorNodeContext, H as noteScopeOwnerPlannedExecution, Hr as runtimeOwnedPendingExecutorMaterialization, Ht as scopeRetainedOwnerJournalRoot, It as noteScopeRetainedOwnerCoordination, J as providerVisibleProfile, Jr as isRuntimeFlowBrain, K as coordinationMcpAlias, Mr as providerAttemptEvidence, Mt as scopeRetainedOwnerTurnEnded, Nr as recordRuntimeOwnedDriveHarnessProviderEvidence, Nt as assertRetainedOwnerCoordinationRekey, O as parseWorkerToolTraceArtifact, Oi as newUsageTotals, Or as inheritRuntimeOwnedExecutorAttestation, Ot as scopeRetainedOwnerPriorSpend, Pt as reconcileScopeRetainedOwnerEnvironment, Q as assertRecursiveReservationPolicy, Rr as runtimeOwnedDriveHarnessProviderEvidence, Rt as bindScopeRetainedOwnerEnvironmentId, Si as executorFailure, St as scopeRetainedOwnerResourceReader, Tr as authoredAgentIdentity, Tt as abandonScopeRetainedOwnerInvocation, U as recordScopeOwnerMaterialization, Ur as runtimeOwnedScopeOwnerRuntime, Vn as generateSpanId, Vr as runtimeOwnedExecutorProviderEvidence, Vt as scopeRetainedOwnerContext, W as restoreScopeOwnerAcceptedExecution, Xr as runtimeFlowBrain, Y as runtimeGraphMetadataKey, Yr as runtimeFlowAgent, a as readRootStream, bi as contentAddress, bt as prepareScopeRetainedOwnerSeatSwitch, ct as recordScopeOwnerBarrenPause, dr as SeatChain, ea as recordValue, er as readHarnessTranscript, fi as cappedDoublingMs, fr as SeatChainExhaustedError, gr as RunCancellationReason, hi as unavailableResumeAt, ii as RetainedExecutionPendingError, ji as assertValidBudget, kn as WORKER_TRACE_PROPAGATION, kt as scopeRetainedOwnerResult, li as retainedExecutorSeamKey, lr as isLiveNodeStatus, lt as recordScopeOwnerDriverAttempt, mi as unavailablePauseMs, mr as seatExecutionProfile, n as ROOT_STREAM_FILE, or as createActivityLog, ot as meterRuntimeOwnedAccounting, pi as jitteredMs, pr as authoredSeatStages, q as coordinationProfileToolPrefix, r as createRootStreamSink, si as registerRetainedExecutorPreparation, st as meterRuntimeOwnedProviderAttempt, ur as isTerminalNodeStatus, ut as recordScopeOwnerPause, vr as linkAbort, wr as attestRuntimeOwnedScopeOwner, xt as releaseScopeRetainedOwnerForSeatPause, yr as runAbortable, zn as createOtelExporter, zr as runtimeOwnedExecutorExecutionBinding, zt as bindScopeRetainedOwnerProvider } from "./scope-BKJ_SdfW.js";
|
|
2
2
|
import { f as RuntimeRunStateError, i as ConfigError, m as ValidationError } from "./errors-AzSuGI23.js";
|
|
3
3
|
import { $ as isAsyncIterable, Dt as teardownExecutor, G as chargedTokens, Ot as teardownSurfaces, St as armDeadlineTimer, Tt as isDeadlineAbortReason, U as addSpend, Y as errorMessage, at as sleep, bt as DEFAULT_SUCCESSFUL_SHUTDOWN_MS, dt as zeroSpend, gt as withBudgetResources, ht as resourceTelemetry, lt as unmeteredSpend, pt as addResourceSpend, tt as promptCacheTokenClasses, ut as withTimeout } from "./workspace-streams-8ALHaZzx.js";
|
|
4
4
|
import { d as detachedSnapshot, h as errorHttpStatus, m as errMessage } from "./jsonl-file-BBP9Dz9w.js";
|
|
5
|
-
import { B as createRouterTranscript, C as createExecutor, Ct as checkVerdictOf, Dt as bridgeAdmissionRefusal, F as codeModeArguments, I as codeModeModelOutput, It as bridgeRuntimeAttachmentsKey, Jt as fullProfileMaterialization, Kt as controlProfileMaterialization, L as createCodeModeTools, Lt as bridgeStopSignalKey, Ot as bridgeModelRouteRefusal, Qt as renderUnsupported, S as captureReusableExecutorConfig, St as bestComposite, U as resolveAgentEnvironmentProvider, V as routerBrain, Wt as assertProfileMaterialization, X as createInbox, Xt as promptControlProfileMaterialization, Y as INBOX_RECEIPT_KEY, Yt as profileMaterializationAxes$1, Zt as promptModelProfileMaterialization, a as assertRunParking, bt as CONTINUATIONS_DIR, c as sleepScopeWait, ct as HarnessTurnFailedError, d as runFinalizer, dt as classifyDriverFailure, en as sandboxProfileMaterialization, et as PEER_MAIL_WIRE_KEY, f as runTree, ft as summarizeDriverAttempts, g as isDriverSpec, gt as gateFactoryOnDeliverable, h as driverExecutorFactory, ht as CheckUnavailableError, i as RunParkedError, l as withRunParking, lt as abandonablePending, m as driverChild, mt as upstreamUnavailableSignal, n as createSupervisor, nn as worktreeCliProfileMaterialization, o as bindScopeParkingDrain, p as createRootHandle, pt as undispatchedCredentialExit, qt as defineProfileMaterializationContract, rt as isPeerMailEnvelope, st as DriverAttemptsExhaustedError, tn as unsupportedProfileDimensions, u as bestDelivered, ut as causedByPartialFailure, w as snapshotExecutorConfig, wt as createContinuationKeeper, x as bindReusableExecutorExecutionId, xt as admitContinuationPolicy, z as toolResultText } from "./supervisor-
|
|
5
|
+
import { B as createRouterTranscript, C as createExecutor, Ct as checkVerdictOf, Dt as bridgeAdmissionRefusal, F as codeModeArguments, I as codeModeModelOutput, It as bridgeRuntimeAttachmentsKey, Jt as fullProfileMaterialization, Kt as controlProfileMaterialization, L as createCodeModeTools, Lt as bridgeStopSignalKey, Ot as bridgeModelRouteRefusal, Qt as renderUnsupported, S as captureReusableExecutorConfig, St as bestComposite, U as resolveAgentEnvironmentProvider, V as routerBrain, Wt as assertProfileMaterialization, X as createInbox, Xt as promptControlProfileMaterialization, Y as INBOX_RECEIPT_KEY, Yt as profileMaterializationAxes$1, Zt as promptModelProfileMaterialization, a as assertRunParking, bt as CONTINUATIONS_DIR, c as sleepScopeWait, ct as HarnessTurnFailedError, d as runFinalizer, dt as classifyDriverFailure, en as sandboxProfileMaterialization, et as PEER_MAIL_WIRE_KEY, f as runTree, ft as summarizeDriverAttempts, g as isDriverSpec, gt as gateFactoryOnDeliverable, h as driverExecutorFactory, ht as CheckUnavailableError, i as RunParkedError, l as withRunParking, lt as abandonablePending, m as driverChild, mt as upstreamUnavailableSignal, n as createSupervisor, nn as worktreeCliProfileMaterialization, o as bindScopeParkingDrain, p as createRootHandle, pt as undispatchedCredentialExit, qt as defineProfileMaterializationContract, rt as isPeerMailEnvelope, st as DriverAttemptsExhaustedError, tn as unsupportedProfileDimensions, u as bestDelivered, ut as causedByPartialFailure, w as snapshotExecutorConfig, wt as createContinuationKeeper, x as bindReusableExecutorExecutionId, xt as admitContinuationPolicy, z as toolResultText } from "./supervisor-XWLIHK-U.js";
|
|
6
6
|
import { _ as agentHarness, a as concreteProfileModel, c as profileModelExecutionSettings, l as profileProviderModel, n as assertModelAllowed, o as enforceTokenLimits, r as assertProfileModelsAllowed, s as profileBridgeWireModel, t as assertExecutableAgentProfile, v as harnessRunsAgent } from "./model-policy-C-RGAUW4.js";
|
|
7
7
|
import { t as composeRuntimeHooks } from "./runtime-hooks-CsW2pfFk.js";
|
|
8
|
-
import { _ as workerAssignmentNamespace, c as writeRunCancellation, d as coordinationEventId, f as externalExecutionId, g as supervisionRunNamespace, h as rootCoordinationOwner, i as readRunCancellation, l as canonicalExecution, m as freezeDetachedProfile, p as freezeDetached, r as readRunCancelRequest, s as watchRunCancellation, t as applyRunCancellation, u as childCoordinationOwner } from "./run-cancellation-
|
|
9
|
-
import { c as createSteerAcknowledger, d as coordinationVerbNames, f as createFileRunContext, l as budgetOverspendText, m as withRunContext, n as createCoordinationToolsForManager, p as createInMemoryRunContext, s as createCancelAcknowledger, t as createCoordinationTools, u as normalizeAnalyzeOnSettle } from "./coordination-manager-
|
|
8
|
+
import { _ as workerAssignmentNamespace, c as writeRunCancellation, d as coordinationEventId, f as externalExecutionId, g as supervisionRunNamespace, h as rootCoordinationOwner, i as readRunCancellation, l as canonicalExecution, m as freezeDetachedProfile, p as freezeDetached, r as readRunCancelRequest, s as watchRunCancellation, t as applyRunCancellation, u as childCoordinationOwner } from "./run-cancellation-pmPWcMy0.js";
|
|
9
|
+
import { c as createSteerAcknowledger, d as coordinationVerbNames, f as createFileRunContext, l as budgetOverspendText, m as withRunContext, n as createCoordinationToolsForManager, p as createInMemoryRunContext, s as createCancelAcknowledger, t as createCoordinationTools, u as normalizeAnalyzeOnSettle } from "./coordination-manager-CFfarnFh.js";
|
|
10
10
|
import { o as safeJsonText } from "./coordination-map-routing-BllzcZov.js";
|
|
11
11
|
import { n as createStdioToolServer, t as PROTOCOL_VERSION } from "./tool-server-CZWd_Opp.js";
|
|
12
12
|
import { a as graphRegistry, c as loadGraph } from "./graph-registry-D6y6zffC.js";
|
|
@@ -5030,7 +5030,7 @@ var DriverRetryLoop = class {
|
|
|
5030
5030
|
consecutivePauses = 0;
|
|
5031
5031
|
samePending;
|
|
5032
5032
|
sameFailure;
|
|
5033
|
-
|
|
5033
|
+
sameIdle;
|
|
5034
5034
|
abandonments = 0;
|
|
5035
5035
|
stopPauses = 0;
|
|
5036
5036
|
pauses = 0;
|
|
@@ -5140,7 +5140,7 @@ var DriverRetryLoop = class {
|
|
|
5140
5140
|
this.chargedFailures = 0;
|
|
5141
5141
|
this.consecutiveBarren = 0;
|
|
5142
5142
|
this.sameFailure = void 0;
|
|
5143
|
-
this.
|
|
5143
|
+
this.sameIdle = void 0;
|
|
5144
5144
|
this.samePending = void 0;
|
|
5145
5145
|
this.abandonments = 0;
|
|
5146
5146
|
this.outageSince = void 0;
|
|
@@ -5292,17 +5292,21 @@ var DriverRetryLoop = class {
|
|
|
5292
5292
|
};
|
|
5293
5293
|
this.sameFailure = sameFailure;
|
|
5294
5294
|
const repeated = sameFailure !== void 0 && sameFailure.count >= REPEATED_FAILURE_LIMIT && failedAt - sameFailure.since >= REPEATED_FAILURE_WINDOW_MS;
|
|
5295
|
-
const
|
|
5295
|
+
const sameIdle = classification === "transient" && !progressed && failure.pending === void 0 ? this.sameIdle?.error === message ? {
|
|
5296
|
+
...this.sameIdle,
|
|
5297
|
+
count: this.sameIdle.count + 1
|
|
5298
|
+
} : {
|
|
5296
5299
|
error: message,
|
|
5297
|
-
count:
|
|
5300
|
+
count: 1,
|
|
5301
|
+
since: failedAt
|
|
5298
5302
|
} : void 0;
|
|
5299
|
-
this.
|
|
5303
|
+
this.sameIdle = sameIdle;
|
|
5300
5304
|
if (run.signal.aborted) return abortStop(run.signal);
|
|
5301
5305
|
if (classification === "terminal") return "terminal-error";
|
|
5302
5306
|
if (!limits.retryEnabled) return "retry-disabled";
|
|
5303
5307
|
const byBudget = budgetStop(run.budget(), failedAt);
|
|
5304
5308
|
if (byBudget) return byBudget;
|
|
5305
|
-
if (
|
|
5309
|
+
if (sameIdle !== void 0 && (causedByPartialFailure(error) ? sameIdle.count >= SAME_PARTIAL_FAILURE_LIMIT : run.nested === true && sameIdle.count >= REPEATED_FAILURE_LIMIT && failedAt - sameIdle.since >= REPEATED_FAILURE_WINDOW_MS)) return "repeated-failure";
|
|
5306
5310
|
if (inOutage) return void 0;
|
|
5307
5311
|
if (this.chargedFailures >= limits.maxAttempts) return "max-attempts";
|
|
5308
5312
|
if (progressed) return repeated ? "repeated-failure" : void 0;
|
|
@@ -5392,7 +5396,7 @@ var DriverRetryLoop = class {
|
|
|
5392
5396
|
this.outageSince = void 0;
|
|
5393
5397
|
this.samePending = void 0;
|
|
5394
5398
|
this.sameFailure = void 0;
|
|
5395
|
-
this.
|
|
5399
|
+
this.sameIdle = void 0;
|
|
5396
5400
|
this.abandonments = 0;
|
|
5397
5401
|
const durationMs = this.limits.now() - startedAt;
|
|
5398
5402
|
const after = run.progress();
|
|
@@ -5547,10 +5551,10 @@ var DriverRetryLoop = class {
|
|
|
5547
5551
|
* A TRANSIENT failure that spent nothing, settled nothing and made no progress is an infrastructure
|
|
5548
5552
|
* outage until its streak has lasted `transientOutageMs`: within that window it consumes neither
|
|
5549
5553
|
* `maxAttempts` nor the barren streak, like a pause. After it the failure bounds apply, so a
|
|
5550
|
-
* dead-on-arrival driver still stops in minutes rather than hours. The
|
|
5551
|
-
*
|
|
5552
|
-
*
|
|
5553
|
-
*
|
|
5554
|
+
* dead-on-arrival driver still stops in minutes rather than hours. The exceptions meet the same
|
|
5555
|
+
* failure on every re-entry and stop with `repeated-failure`: a box created and then failed its
|
|
5556
|
+
* setup (`PartialFailureError`) at a second identical attempt with no progress, and a `nested`
|
|
5557
|
+
* manager at the repeated-failure count and window. A failure that spent tokens keeps the bounds.
|
|
5554
5558
|
* A Platform restart answered
|
|
5555
5559
|
* `HTTP 502 ... Platform key verification unavailable` from 03:04:34 to 03:09:41Z, and the
|
|
5556
5560
|
* coordinator's twelve attempts ran out at 03:07:12Z with no token spent.
|
|
@@ -5968,6 +5972,7 @@ async function driveManagerTurns(inputs) {
|
|
|
5968
5972
|
stopSignal: session.state.stopController.signal,
|
|
5969
5973
|
sleep: (ms, signal) => sleepScopeWait(scope, ms, signal, "paused-root"),
|
|
5970
5974
|
...rootStopPause(config, session),
|
|
5975
|
+
nested: (config.nodeContextSeed?.depth ?? 0) > 0,
|
|
5971
5976
|
resolvePending: (failure, failures) => abandonScopeRetainedOwnerInvocation(scope, failure, failures),
|
|
5972
5977
|
wait: {
|
|
5973
5978
|
open: () => !mcp.submittedResult() && !mcp.isStopped() && session.state.progressStopReason === void 0 && (session.controls.hasOpenWork() || session.state.nextTurnInbox.pendingAuthority() > 0),
|
|
@@ -9474,4 +9479,4 @@ function superviseWithContext(profile, task, opts, brain) {
|
|
|
9474
9479
|
}
|
|
9475
9480
|
export { analyzesFindingsReportPrompt as A, anyOf as B, flowRootProfile as C, defaultEdgeTraversalCap as D, validateFlowGraph as E, formatPromptHandle as F, bestSoFar as G, plateau as H, kernelPromptRegistry as I, createSupervisorSpanRecorder as J, plateauLength as K, naiveContinuationPrompt as L, delegatesWorkerBriefPrompt as M, dumbContinuationFailPrompt as N, graphRootProfile as O, dumbContinuationPassPrompt as P, promptHandle as R, createFlowRun as S, routeFlowOf as T, anytimeReport as U, noProgressFor as V, areaUnderCurve as W, coordinationControlToolNames as _, superviseRootProfile as a, createGraphOverlay as b, retryPreSpawnRefusals as c, supervisorAgent as d, supervisorAgentWithTestBrain as f, serveCoordinationMcp as g, composeReentryTask as h, profileGuidanceComposer as i, createPromptRegistry as j, validateGraphTopology as k, withWorkerSpawnRetry as l, UNPROVEN_CONTINUITY as m, superviseFleetCapabilities as n, isPreSpawnExecutorFailure as o, runToolSpans as p, renderAnytimeTable as q, superviseWithTestBrain as r, resolveWorkerSpawnRetry as s, supervise as t, workerFromBackend as u, driverAgent as v, journaledGateDecider as w, GraphRouteError as x, runBrainLoop as y, allWorkersStalled as z };
|
|
9476
9481
|
|
|
9477
|
-
//# sourceMappingURL=supervise-
|
|
9482
|
+
//# sourceMappingURL=supervise-BpvUVtSI.js.map
|