@tangle-network/agent-runtime 0.350.2 → 0.353.2

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.
Files changed (95) hide show
  1. package/dist/{activation-CfJMyzEs.js → activation-BkRaG5t0.js} +4 -4
  2. package/dist/{activation-CfJMyzEs.js.map → activation-BkRaG5t0.js.map} +1 -1
  3. package/dist/{activation-DyiHrTlS.d.ts → activation-CFS31SWI.d.ts} +2 -2
  4. package/dist/agent.d.ts +1 -1
  5. package/dist/agent.js +3 -3
  6. package/dist/{bundle-Ze8pd07a.js → bundle-DeDkJbsr.js} +2 -2
  7. package/dist/{bundle-Ze8pd07a.js.map → bundle-DeDkJbsr.js.map} +1 -1
  8. package/dist/candidate-execution/index.js +4 -4
  9. package/dist/chat-turn.d.ts +2 -0
  10. package/dist/chat-turn.js +1 -0
  11. package/dist/{coordination-manager-BkVfWlMz.js → coordination-manager-BrRkc55z.js} +4 -4
  12. package/dist/{coordination-manager-BkVfWlMz.js.map → coordination-manager-BrRkc55z.js.map} +1 -1
  13. package/dist/{delegate-DgEie4ad.js → delegate-CAdajnf8.js} +3 -3
  14. package/dist/{delegate-DgEie4ad.js.map → delegate-CAdajnf8.js.map} +1 -1
  15. package/dist/durable.d.ts +7 -130
  16. package/dist/durable.js +24 -952
  17. package/dist/durable.js.map +1 -1
  18. package/dist/{errors-wuhGvpE3.js → errors-AzSuGI23.js} +4 -1
  19. package/dist/errors-AzSuGI23.js.map +1 -0
  20. package/dist/execution-handle-Bd2_nUB6.js +167 -0
  21. package/dist/execution-handle-Bd2_nUB6.js.map +1 -0
  22. package/dist/execution-handle-CujvqgCn.d.ts +130 -0
  23. package/dist/{graph-Cx0FhKSE.js → graph-CyaIHVGR.js} +7 -6
  24. package/dist/{graph-Cx0FhKSE.js.map → graph-CyaIHVGR.js.map} +1 -1
  25. package/dist/{improve-i0HU1-aa.js → improve-DwG-yioQ.js} +10 -9
  26. package/dist/{improve-i0HU1-aa.js.map → improve-DwG-yioQ.js.map} +1 -1
  27. package/dist/index.d.ts +4 -3
  28. package/dist/index.js +14 -11
  29. package/dist/index.js.map +1 -1
  30. package/dist/intelligence.d.ts +2 -2
  31. package/dist/intelligence.js +12 -10
  32. package/dist/intelligence.js.map +1 -1
  33. package/dist/journal-store-BJPMUydp.js +3925 -0
  34. package/dist/journal-store-BJPMUydp.js.map +1 -0
  35. package/dist/kernel.d.ts +1 -1
  36. package/dist/kernel.js +11 -10
  37. package/dist/{loop-runner-DvfOXVx9.d.ts → loop-runner-D9rcTNf2.d.ts} +2 -2
  38. package/dist/{loop-runner-BwN9MhdP.js → loop-runner-DwS3jARE.js} +3 -3
  39. package/dist/{loop-runner-BwN9MhdP.js.map → loop-runner-DwS3jARE.js.map} +1 -1
  40. package/dist/loop-runner-bin.d.ts +1 -1
  41. package/dist/loop-runner-bin.js +1 -1
  42. package/dist/mcp/bin.js +4 -4
  43. package/dist/mcp/index.d.ts +1 -1
  44. package/dist/mcp/index.js +8 -8
  45. package/dist/mcp/memory-bin.js +2 -2
  46. package/dist/{model-policy-GSxWwP-b.js → model-policy-C-RGAUW4.js} +2 -2
  47. package/dist/{model-policy-GSxWwP-b.js.map → model-policy-C-RGAUW4.js.map} +1 -1
  48. package/dist/{prepare-DE8TQnLu.js → prepare-XWwsOh8O.js} +4 -3
  49. package/dist/{prepare-DE8TQnLu.js.map → prepare-XWwsOh8O.js.map} +1 -1
  50. package/dist/{profile-CAhZDW2T.js → profile-C01SQZKa.js} +3 -3
  51. package/dist/{profile-CAhZDW2T.js.map → profile-C01SQZKa.js.map} +1 -1
  52. package/dist/profiles.d.ts +1 -1
  53. package/dist/profiles.js +2 -2
  54. package/dist/{provision-supervisor-Bde_FF0R.js → provision-supervisor-AEnei2Jq.js} +7 -7
  55. package/dist/{provision-supervisor-Bde_FF0R.js.map → provision-supervisor-AEnei2Jq.js.map} +1 -1
  56. package/dist/{run-cancellation-BLy_Zz-w.js → run-cancellation-CoJRKvih.js} +2 -2
  57. package/dist/{run-cancellation-BLy_Zz-w.js.map → run-cancellation-CoJRKvih.js.map} +1 -1
  58. package/dist/{runtime-6Ec9sHRe.js → runtime-DCYSaYHW.js} +42 -39
  59. package/dist/{runtime-6Ec9sHRe.js.map → runtime-DCYSaYHW.js.map} +1 -1
  60. package/dist/{sandbox-profile-compat-BxMQ1VXv.js → sandbox-profile-compat-CXjozdWL.js} +4 -623
  61. package/dist/{sandbox-profile-compat-BxMQ1VXv.js.map → sandbox-profile-compat-CXjozdWL.js.map} +1 -1
  62. package/dist/{search-executor-B7g_5Wjl.js → search-executor-B2jc63hZ.js} +14 -11
  63. package/dist/{search-executor-B7g_5Wjl.js.map → search-executor-B2jc63hZ.js.map} +1 -1
  64. package/dist/{server-fvEMwGMQ.js → server-CKBTwWM8.js} +6 -6
  65. package/dist/{server-fvEMwGMQ.js.map → server-CKBTwWM8.js.map} +1 -1
  66. package/dist/{structural-rollout-B86bSixU.js → structural-rollout-rRT3ypqz.js} +7 -5
  67. package/dist/{structural-rollout-B86bSixU.js.map → structural-rollout-rRT3ypqz.js.map} +1 -1
  68. package/dist/{supervise-CaeZcgAW.js → supervise-B3_wtgHS.js} +18 -21
  69. package/dist/supervise-B3_wtgHS.js.map +1 -0
  70. package/dist/supervision-discovery-CewADdEs.js +772 -0
  71. package/dist/supervision-discovery-CewADdEs.js.map +1 -0
  72. package/dist/{supervisor-C1OePYE-.js → supervisor-C_sDmX5H.js} +156 -3984
  73. package/dist/supervisor-C_sDmX5H.js.map +1 -0
  74. package/dist/testing.d.ts +1 -1
  75. package/dist/testing.js +13 -13
  76. package/dist/{tool-server-CwuYeW_Z.js → tool-server-CZWd_Opp.js} +2 -2
  77. package/dist/{tool-server-CwuYeW_Z.js.map → tool-server-CZWd_Opp.js.map} +1 -1
  78. package/dist/{top-snapshot-ChwpTr7A.js → top-snapshot-DcV7VG4m.js} +178 -161
  79. package/dist/top-snapshot-DcV7VG4m.js.map +1 -0
  80. package/dist/tui/bin.js +45 -74
  81. package/dist/tui/bin.js.map +1 -1
  82. package/dist/tui/index.d.ts +25 -54
  83. package/dist/tui/index.js +2 -2
  84. package/dist/{types-Fowuwdz2.d.ts → types-DTHxh4X9.d.ts} +47 -63
  85. package/dist/util-ebWMWzY0.js +624 -0
  86. package/dist/util-ebWMWzY0.js.map +1 -0
  87. package/dist/workspace-store/index.js +9 -3
  88. package/dist/workspace-store/index.js.map +1 -1
  89. package/package.json +18 -13
  90. package/dist/errors-wuhGvpE3.js.map +0 -1
  91. package/dist/record-events-B2GUgYdz.js +0 -261
  92. package/dist/record-events-B2GUgYdz.js.map +0 -1
  93. package/dist/supervise-CaeZcgAW.js.map +0 -1
  94. package/dist/supervisor-C1OePYE-.js.map +0 -1
  95. package/dist/top-snapshot-ChwpTr7A.js.map +0 -1
@@ -1,12 +1,13 @@
1
- import { c as captureRunWriteContext, l as fenceRunWrite, m as __exportAll, p as sha256, r as assertNoSymlinkDescendant, s as writeAtomicDurableFile } from "./record-events-B2GUgYdz.js";
2
- import { $n as HarnessTurnFailedError, A as beginScopeOwnerAttempt, Ai as registerRetainedExecutorPreparation, An as toOtelAttributes, At as createExecutor, B as assertRecursiveReservationPolicy, Bi as detachedSnapshot, Bn as PEER_MAIL_WIRE_KEY, Cr as bridgeAdmissionRefusal, Ct as readCommittedJsonLines, En as generateSpanId, F as coordinationMcpAlias, Fi as unavailableResumeAt, Fn as INBOX_RECEIPT_KEY, G as meterRuntimeOwnedAccounting, Gi as meterUsageEvent, Hi as executorFailure, Ht as codeModeArguments, I as coordinationProfileToolPrefix, In as createInbox, Ir as bridgeRuntimeAttachmentsKey, J as recordScopeOwnerDriverAttempt, Ji as spendFromUsageTotals, Jn as createActivityLog, Jr as fullProfileMaterialization, Jt as routerBrain, K as meterRuntimeOwnedProviderAttempt, Ki as newUsageTotals, Kr as controlProfileMaterialization, Kt as toolResultText, L as providerVisibleProfile, Lr as bridgeStopSignalKey, M as recordScopeOwnerMaterialization, Mi as cappedDoublingMs, Mr as RunCancellationReason, N as restoreScopeOwnerAcceptedExecution, Ni as jitteredMs, Nr as linkAbort, Ot as bindReusableExecutorExecutionId, P as scopeOwnerExecutorNodeContext, Pi as unavailablePauseMs, Pr as runAbortable, Qn as DriverAttemptsExhaustedError, Qr as renderUnsupported, R as runtimeGraphMetadataKey, St as readCommittedJsonFile, Tt as withJsonlFileLock, Ui as errMessage, Un as isPeerMailEnvelope, Ut as codeModeModelOutput, V as deriveNodeExecutionIdentity, Vi as contentAddress, Wr as assertProfileMaterialization, Wt as createCodeModeTools, X as prepareScopeRetainedOwnerSeatSwitch, Xn as isLiveNodeStatus, Xr as promptControlProfileMaterialization, Xt as resolveAgentEnvironmentProvider, Y as recordScopeOwnerPause, Yi as assertValidBudget, Yr as profileMaterializationAxes$1, Z as scopeRetainedOwnerResourceReader, Zn as isTerminalNodeStatus, Zr as promptModelProfileMaterialization, _i as runtimeOwnedExecutorProviderEvidence, _n as WORKER_TRACE_PROPAGATION, _r as admitContinuationPolicy, a as assertRunParking, ai as authoredAgentIdentity, ar as upstreamUnavailableSignal, at as beginScopeRetainedOwnerDrive, br as createContinuationKeeper, bt as isNoEntError, c as sleepScopeWait, ci as inheritRuntimeOwnedExecutorAttestation, cr as authoredSeatStages, ct as scopeRetainedOwnerRestorePoint, d as runFinalizer, dr as CheckUnavailableError, dt as bindScopeRetainedOwnerProvider, ei as sandboxProfileMaterialization, er as abandonablePending, et as abandonScopeRetainedOwnerInvocation, f as runTree, fi as providerAttemptEvidence, fr as gateFactoryOnDeliverable, ft as scopeRetainedOwnerContext, g as isDriverSpec, gi as runtimeOwnedExecutorMaterialization, gr as CONTINUATIONS_DIR, h as driverExecutorFactory, hi as runtimeOwnedExecutorExecutionBinding, i as RunParkedError, ii as attestRuntimeOwnedScopeOwner, ir as undispatchedCredentialExit, it as scopeRetainedOwnerResult, j as noteScopeOwnerPlannedExecution, ji as retainedExecutorSeamKey, jt as snapshotExecutorConfig, ki as RetainedExecutionPendingError, kt as captureReusableExecutorConfig, l as withRunParking, ln as persistHarnessTranscript, lr as seatExecutionProfile, lt as noteScopeRetainedOwnerCoordination, m as driverChild, mi as runtimeOwnedDriveHarnessProviderEvidence, n as createSupervisor, ni as worktreeCliProfileMaterialization, nr as classifyDriverFailure, nt as prepareScopeRetainedOwnerTask, o as bindScopeParkingDrain, or as SeatChain, ot as scopeRetainedOwnerTurnEnded, p as createRootHandle, pi as recordRuntimeOwnedDriveHarnessProviderEvidence, pt as scopeRetainedOwnerJournalRoot, q as recordScopeOwnerBarrenPause, qr as defineProfileMaterializationContract, qt as createRouterTranscript, rr as summarizeDriverAttempts, rt as scopeRetainedOwnerPriorSpend, sr as SeatChainExhaustedError, st as reconcileScopeRetainedOwnerEnvironment, ti as unsupportedProfileDimensions, tr as causedByPartialFailure, tt as consumeScopeRetainedOwnerResult, u as bestDelivered, un as readHarnessTranscript, ut as bindScopeRetainedOwnerEnvironmentId, vi as runtimeOwnedPendingExecutorMaterialization, vr as bestComposite, wn as createOtelExporter, wr as bridgeModelRouteRefusal, wt as upsertCommittedJsonLine, x as parseWorkerToolTraceArtifact, xt as prepareJsonlAppend, yi as runtimeOwnedScopeOwnerRuntime, yr as checkVerdictOf } from "./supervisor-C1OePYE-.js";
3
- import { f as RuntimeRunStateError, i as ConfigError, m as ValidationError } from "./errors-wuhGvpE3.js";
4
- import { At as teardownSurfaces, Dt as isDeadlineAbortReason, G as addSpend, St as DEFAULT_SUCCESSFUL_SHUTDOWN_MS, Z as errorMessage, _t as resourceTelemetry, dt as unmeteredSpend, ft as withTimeout, ht as addResourceSpend, kt as teardownExecutor, pt as zeroSpend, q as chargedTokens, rt as promptCacheTokenClasses, st as sleep, tt as isAsyncIterable, vt as withBudgetResources } from "./sandbox-profile-compat-BxMQ1VXv.js";
5
- 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-GSxWwP-b.js";
1
+ import { G as cappedDoublingMs, J as unavailableResumeAt, K as jitteredMs, P as RetainedExecutionPendingError, St as newUsageTotals, T as sha256, Tt as assertValidBudget, V as retainedExecutorSeamKey, Xt as __exportAll, a as isNoEntError, at as executorFailure, b as captureRunWriteContext, c as readCommittedJsonLines, ft as errMessage, g as assertNoSymlinkDescendant, l as upsertCommittedJsonLine, o as prepareJsonlAppend, q as unavailablePauseMs, rt as contentAddress, s as readCommittedJsonFile, tt as detachedSnapshot, u as withJsonlFileLock, wt as spendFromUsageTotals, x as fenceRunWrite, xt as meterUsageEvent, y as writeAtomicDurableFile, z as registerRetainedExecutorPreparation } from "./journal-store-BJPMUydp.js";
2
+ import { $ as abandonScopeRetainedOwnerInvocation, $n as CheckUnavailableError, A as noteScopeOwnerPlannedExecution, B as deriveNodeExecutionIdentity, Bn as DriverAttemptsExhaustedError, Br as renderUnsupported, Cn as INBOX_RECEIPT_KEY, F as coordinationProfileToolPrefix, Fr as defineProfileMaterializationContract, Ft as createCodeModeTools, G as meterRuntimeOwnedProviderAttempt, Gn as summarizeDriverAttempts, Hn as abandonablePending, Hr as sandboxProfileMaterialization, I as providerVisibleProfile, In as createActivityLog, Ir as fullProfileMaterialization, J as recordScopeOwnerPause, Jn as SeatChain, K as recordScopeOwnerBarrenPause, Kn as undispatchedCredentialExit, Kr as attestRuntimeOwnedScopeOwner, L as runtimeGraphMetadataKey, Lr as profileMaterializationAxes$1, Lt as toolResultText, M as restoreScopeOwnerAcceptedExecution, Mr as assertProfileMaterialization, N as scopeOwnerExecutorNodeContext, Nt as codeModeArguments, On as PEER_MAIL_WIRE_KEY, P as coordinationMcpAlias, Pr as controlProfileMaterialization, Pt as codeModeModelOutput, Rn as isLiveNodeStatus, Rr as promptControlProfileMaterialization, Rt as createRouterTranscript, Sr as runAbortable, St as snapshotExecutorConfig, Tr as bridgeStopSignalKey, Un as causedByPartialFailure, Ur as unsupportedProfileDimensions, Vn as HarnessTurnFailedError, Vt as resolveAgentEnvironmentProvider, W as meterRuntimeOwnedAccounting, Wn as classifyDriverFailure, Wr as worktreeCliProfileMaterialization, X as scopeRetainedOwnerResourceReader, Xn as authoredSeatStages, Xr as inheritRuntimeOwnedExecutorAttestation, Y as prepareScopeRetainedOwnerSeatSwitch, Yn as SeatChainExhaustedError, Zn as seatExecutionProfile, _n as generateSpanId, a as assertRunParking, ai as runtimeOwnedExecutorProviderEvidence, ar as admitContinuationPolicy, at as scopeRetainedOwnerTurnEnded, br as RunCancellationReason, bt as captureReusableExecutorConfig, c as sleepScopeWait, cn as WORKER_TRACE_PROPAGATION, cr as createContinuationKeeper, ct as noteScopeRetainedOwnerCoordination, d as runFinalizer, dr as bridgeAdmissionRefusal, dt as scopeRetainedOwnerContext, ei as providerAttemptEvidence, en as persistHarnessTranscript, er as gateFactoryOnDeliverable, et as consumeScopeRetainedOwnerResult, f as runTree, fr as bridgeModelRouteRefusal, ft as scopeRetainedOwnerJournalRoot, g as isDriverSpec, h as driverExecutorFactory, hn as createOtelExporter, i as RunParkedError, ii as runtimeOwnedExecutorMaterialization, ir as CONTINUATIONS_DIR, it as beginScopeRetainedOwnerDrive, j as recordScopeOwnerMaterialization, jn as isPeerMailEnvelope, k as beginScopeOwnerAttempt, l as withRunParking, lt as bindScopeRetainedOwnerEnvironmentId, m as driverChild, n as createSupervisor, ni as runtimeOwnedDriveHarnessProviderEvidence, nt as scopeRetainedOwnerPriorSpend, o as bindScopeParkingDrain, oi as runtimeOwnedPendingExecutorMaterialization, or as bestComposite, ot as reconcileScopeRetainedOwnerEnvironment, p as createRootHandle, q as recordScopeOwnerDriverAttempt, qn as upstreamUnavailableSignal, qr as authoredAgentIdentity, ri as runtimeOwnedExecutorExecutionBinding, rt as scopeRetainedOwnerResult, si as runtimeOwnedScopeOwnerRuntime, sr as checkVerdictOf, st as scopeRetainedOwnerRestorePoint, ti as recordRuntimeOwnedDriveHarnessProviderEvidence, tn as readHarnessTranscript, tt as prepareScopeRetainedOwnerTask, u as bestDelivered, ut as bindScopeRetainedOwnerProvider, wn as createInbox, wr as bridgeRuntimeAttachmentsKey, x as parseWorkerToolTraceArtifact, xr as linkAbort, xt as createExecutor, yt as bindReusableExecutorExecutionId, z as assertRecursiveReservationPolicy, zn as isTerminalNodeStatus, zr as promptModelProfileMaterialization, zt as routerBrain } from "./supervisor-C_sDmX5H.js";
3
+ import { f as RuntimeRunStateError, i as ConfigError, m as ValidationError } from "./errors-AzSuGI23.js";
4
+ import { B as teardownExecutor, C as withTimeout, E as addResourceSpend, N as DEFAULT_SUCCESSFUL_SHUTDOWN_MS, O as resourceTelemetry, R as isDeadlineAbortReason, S as unmeteredSpend, V as teardownSurfaces, c as errorMessage, f as isAsyncIterable, i as chargedTokens, k as withBudgetResources, m as promptCacheTokenClasses, n as addSpend, v as sleep, w as zeroSpend } from "./util-ebWMWzY0.js";
5
+ 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";
6
6
  import { t as composeRuntimeHooks } from "./runtime-hooks-CsW2pfFk.js";
7
- import { c as createCancelAcknowledger, d as normalizeAnalyzeOnSettle, f as coordinationVerbNames, g as withRunContext, h as createInMemoryRunContext, l as createSteerAcknowledger, m as createFileRunContext, n as createCoordinationToolsForManager, o as resolveJsonPointer, p as safeJsonText, t as createCoordinationTools, u as budgetOverspendText } from "./coordination-manager-BkVfWlMz.js";
8
- import { c as writeRunCancellation, i as readRunCancellation, r as readRunCancelRequest, s as watchRunCancellation, t as applyRunCancellation } from "./run-cancellation-BLy_Zz-w.js";
9
- import { n as createStdioToolServer, t as PROTOCOL_VERSION } from "./tool-server-CwuYeW_Z.js";
7
+ import { c as createCancelAcknowledger, d as normalizeAnalyzeOnSettle, f as coordinationVerbNames, g as withRunContext, h as createInMemoryRunContext, l as createSteerAcknowledger, m as createFileRunContext, n as createCoordinationToolsForManager, o as resolveJsonPointer, p as safeJsonText, t as createCoordinationTools, u as budgetOverspendText } from "./coordination-manager-BrRkc55z.js";
8
+ import { c as writeRunCancellation, i as readRunCancellation, r as readRunCancelRequest, s as watchRunCancellation, t as applyRunCancellation } from "./run-cancellation-CoJRKvih.js";
9
+ import { n as createStdioToolServer, t as PROTOCOL_VERSION } from "./tool-server-CZWd_Opp.js";
10
+ import { ATTR, agentIdentityAttributes } from "@tangle-network/agent-trace-contract";
10
11
  import { agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, canonicalCandidateJson, validateAgentProfileSecurity } from "@tangle-network/agent-interface";
11
12
  import { toolSpansToTraceAnalysisStore } from "@tangle-network/agent-eval";
12
13
  import { isRecord } from "@tangle-network/agent-core";
@@ -17,7 +18,7 @@ import { dirname, join, resolve } from "node:path";
17
18
  import { mkdir, readFile, readdir } from "node:fs/promises";
18
19
  import { isMaterializerHarness } from "@tangle-network/agent-profile-materialize";
19
20
  import { createServer } from "node:http";
20
- import { ATTR, agentIdentityAttributes } from "@tangle-network/agent-trace-contract";
21
+ import { msToUnixNano, toOtlpAttributes } from "@tangle-network/agent-trace-contract/otlp";
21
22
  import { withProfileKb } from "@tangle-network/agent-interface/profile-kb";
22
23
  // src/runtime/supervise/supervise-identity.ts
23
24
  function externalExecutionId(kind, identity) {
@@ -396,9 +397,9 @@ function otelSpan(traceId, spec) {
396
397
  ...spec.parentSpanId ? { parentSpanId: spec.parentSpanId } : {},
397
398
  name: spec.name,
398
399
  kind: 1,
399
- startTimeUnixNano: msToNano(spec.startMs),
400
- endTimeUnixNano: msToNano(Math.max(spec.startMs, spec.endMs)),
401
- attributes: toOtelAttributes(spec.attrs),
400
+ startTimeUnixNano: msToUnixNano(spec.startMs),
401
+ endTimeUnixNano: msToUnixNano(Math.max(spec.startMs, spec.endMs)),
402
+ attributes: toOtlpAttributes(spec.attrs),
402
403
  status: {
403
404
  code: spec.status,
404
405
  ...spec.message ? { message: spec.message } : {}
@@ -741,9 +742,6 @@ function normalizeTraceId(traceId, runId, namespace) {
741
742
  const source = traceId ?? (namespace === void 0 ? runId : `${namespace}\u0000${runId}`);
742
743
  return contentAddress(source).slice(7, 39);
743
744
  }
744
- function msToNano(ms) {
745
- return (BigInt(Number.isFinite(ms) ? Math.floor(ms) : 0) * 1000000n).toString();
746
- }
747
745
  function record$1(value) {
748
746
  return isRecord(value) ? value : {};
749
747
  }
@@ -5118,10 +5116,9 @@ const DEFAULT_MAX_BACKOFF_MS$1 = 3e4;
5118
5116
  const DEFAULT_TRANSIENT_OUTAGE_MS = 9e5;
5119
5117
  const BARREN_PAUSE_FIRST_MS = 3e5;
5120
5118
  const BARREN_PAUSE_MAX_MS = 36e5;
5121
- /** The stops an opted-in root pauses on (`DriverRetryRun.stopPause`). `completed`, `aborted` and a
5122
- * declared `deadline` end the run; `supervise()` refuses `driverRetry.pauseRootStops` beside `retry-disabled`. */
5119
+ /** The recoverable stops an opted-in root pauses on (`DriverRetryRun.stopPause`). Terminal errors,
5120
+ * completion, cancellation and a declared deadline end the run; `supervise()` refuses `driverRetry.pauseRootStops` beside `retry-disabled`. */
5123
5121
  const PAUSED_STOPS = /* @__PURE__ */ new Set([
5124
- "terminal-error",
5125
5122
  "no-progress",
5126
5123
  "max-attempts",
5127
5124
  "repeated-failure",
@@ -5751,8 +5748,8 @@ var DriverRetryLoop = class {
5751
5748
  * outage cut off together do not re-enter together.
5752
5749
  *
5753
5750
  * STOP-PAUSE. A run started with `driverRetry.pauseRootStops` hands its ROOT a `stopPause`;
5754
- * no other manager gets one. It turns every stop except `completed`, `aborted` and a declared `deadline` into a wait that alarms:
5755
- * `terminal-error`, `no-progress`, `max-attempts`, `repeated-failure`, `pending-unresolved` and
5751
+ * no other manager gets one. Terminal refusals end the run immediately; the remaining stops wait and alarm:
5752
+ * `no-progress`, `max-attempts`, `repeated-failure`, `pending-unresolved` and
5756
5753
  * `budget-exhausted` each emit one record with `replacesStop` and pause 5 minutes, doubling per
5757
5754
  * stop-pause in a row up to 60, never past a declared deadline and not jittered. An attempt that
5758
5755
  * made progress resets the streak. A cancel ends the pause and settles the run; a root steer ends
@@ -10210,4 +10207,4 @@ function superviseWithContext(profile, task, opts, brain) {
10210
10207
  }
10211
10208
  export { delegatesWorkerBriefPrompt as $, graphRouteWhenSchema as A, runtimeFlowBrain as B, storedGraphDigests as C, compileGraphParameters as D, bindGraphParameters as E, composeReentryTask as F, journaledGateDecider as G, GraphRouteError as H, serveCoordinationMcp as I, defaultEdgeTraversalCap as J, routeFlowOf as K, coordinationControlToolNames as L, supervisorAgent as M, supervisorAgentWithTestBrain as N, graphTriggerBindingsSchema as O, UNPROVEN_CONTINUITY as P, createPromptRegistry as Q, driverAgent as R, recordStoredGraphRun as S, assertGraphTriggerBindings as T, createFlowRun as U, createGraphOverlay as V, flowRootProfile as W, validateGraphTopology as X, graphRootProfile as Y, analyzesFindingsReportPrompt as Z, listGraphRuns as _, createSupervisorSpanRecorder as _t, superviseRootProfile as a, promptHandle as at, pickBestGraph as b, retryPreSpawnRefusals as c, noProgressFor as ct, graphCorpusSummary as d, areaUnderCurve as dt, dumbContinuationFailPrompt as et, graphDigest as f, bestSoFar as ft, graph_registry_exports as g, readRootStreamReceipt as gt, graphRunsFor as h, readRootStream as ht, profileGuidanceComposer as i, naiveContinuationPrompt as it, workerFromBackend as j, graphFileSchema as k, withWorkerSpawnRetry as l, plateau as lt, graphRegistry as m, renderAnytimeTable as mt, superviseFleetCapabilities as n, formatPromptHandle as nt, isPreSpawnExecutorFailure as o, allWorkersStalled as ot, graphFromStored as p, plateauLength as pt, validateFlowGraph as q, superviseWithTestBrain as r, kernelPromptRegistry as rt, resolveWorkerSpawnRetry as s, anyOf as st, supervise as t, dumbContinuationPassPrompt as tt, digestOfGraph as u, anytimeReport as ut, loadGraph as v, taskShapeDigest as w, recordGraphRun as x, lookupGraph as y, runBrainLoop as z };
10212
10209
 
10213
- //# sourceMappingURL=supervise-CaeZcgAW.js.map
10210
+ //# sourceMappingURL=supervise-B3_wtgHS.js.map