@tangle-network/agent-runtime 0.307.2 → 0.309.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.
Files changed (54) hide show
  1. package/dist/{activation-DNZrAzZM.js → activation-BNGcdwKv.js} +2 -2
  2. package/dist/{activation-DNZrAzZM.js.map → activation-BNGcdwKv.js.map} +1 -1
  3. package/dist/{activation-Bdugb7li.d.ts → activation-CPlj7oAq.d.ts} +3 -3
  4. package/dist/agent.d.ts +2 -2
  5. package/dist/agent.js +2 -2
  6. package/dist/{coordination-driver-DCQUXZ54.js → coordination-driver-nxGtWmJm.js} +2 -2
  7. package/dist/{coordination-driver-DCQUXZ54.js.map → coordination-driver-nxGtWmJm.js.map} +1 -1
  8. package/dist/{delegate-BcMmgX_Y.js → delegate-BH1mMsM-.js} +2 -2
  9. package/dist/{delegate-BcMmgX_Y.js.map → delegate-BH1mMsM-.js.map} +1 -1
  10. package/dist/durable.d.ts +2 -2
  11. package/dist/durable.js +2 -2
  12. package/dist/{graph-D2yO7Epi.js → graph-DEbRy7GI.js} +4 -4
  13. package/dist/{graph-D2yO7Epi.js.map → graph-DEbRy7GI.js.map} +1 -1
  14. package/dist/{improvement-cycle-C6PDngmf.js → improvement-cycle-D-GFP8a-.js} +3 -3
  15. package/dist/{improvement-cycle-C6PDngmf.js.map → improvement-cycle-D-GFP8a-.js.map} +1 -1
  16. package/dist/{index-1T1fjIUs.d.ts → index-B-VvfcHa.d.ts} +4 -4
  17. package/dist/index.d.ts +6 -6
  18. package/dist/index.js +7 -7
  19. package/dist/intelligence.d.ts +3 -3
  20. package/dist/intelligence.js +3 -3
  21. package/dist/kernel.d.ts +3 -3
  22. package/dist/kernel.js +8 -8
  23. package/dist/{loop-runner-bin-Be2jWumB.d.ts → loop-runner-bin-Bvd0J2OR.d.ts} +3 -3
  24. package/dist/{loop-runner-bin-Bwxtx1go.js → loop-runner-bin-DxH6LwIB.js} +3 -3
  25. package/dist/{loop-runner-bin-Bwxtx1go.js.map → loop-runner-bin-DxH6LwIB.js.map} +1 -1
  26. package/dist/loop-runner-bin.d.ts +1 -1
  27. package/dist/loop-runner-bin.js +1 -1
  28. package/dist/mcp/bin.js +3 -3
  29. package/dist/mcp/index.d.ts +5 -5
  30. package/dist/mcp/index.js +4 -4
  31. package/dist/{openai-tools-C-lvIN3-.d.ts → openai-tools-CP1hPxJd.d.ts} +2 -2
  32. package/dist/profiles.d.ts +1 -1
  33. package/dist/{provision-supervisor-De_3kjM3.js → provision-supervisor-CLGUAePU.js} +3 -3
  34. package/dist/{provision-supervisor-De_3kjM3.js.map → provision-supervisor-CLGUAePU.js.map} +1 -1
  35. package/dist/{runtime-B3dR7tdY.js → runtime-B0td3fc3.js} +8 -8
  36. package/dist/{runtime-B3dR7tdY.js.map → runtime-B0td3fc3.js.map} +1 -1
  37. package/dist/{search-executor-H1IRkoRg.js → search-executor-DV-AfHq0.js} +2 -2
  38. package/dist/{search-executor-H1IRkoRg.js.map → search-executor-DV-AfHq0.js.map} +1 -1
  39. package/dist/{server-DATtZ0Q9.js → server-B5JWg4Oq.js} +3 -3
  40. package/dist/{server-DATtZ0Q9.js.map → server-B5JWg4Oq.js.map} +1 -1
  41. package/dist/{stream-agent-turn-Ch1g6gYE.d.ts → stream-agent-turn-D-zmKgU2.d.ts} +2 -2
  42. package/dist/{substrate-Buuxd_OX.d.ts → substrate-DQnwvsFT.d.ts} +2 -2
  43. package/dist/{supervise-D1qqMFAu.js → supervise-B5iHXeuw.js} +4 -3
  44. package/dist/supervise-B5iHXeuw.js.map +1 -0
  45. package/dist/{supervisor-Dz4XXtK1.js → supervisor-Cd39ZN4b.js} +239 -102
  46. package/dist/supervisor-Cd39ZN4b.js.map +1 -0
  47. package/dist/testing.d.ts +2 -2
  48. package/dist/testing.js +12 -12
  49. package/dist/tui/index.d.ts +1 -1
  50. package/dist/tui/index.js +1 -1
  51. package/dist/{types-CBcc0_5y.d.ts → types-CFGESVFO.d.ts} +107 -75
  52. package/package.json +1 -1
  53. package/dist/supervise-D1qqMFAu.js.map +0 -1
  54. package/dist/supervisor-Dz4XXtK1.js.map +0 -1
@@ -1,10 +1,10 @@
1
- import { A as scopeOwnerExecutorNodeContext, B as noteScopeRetainedOwnerCoordination, Bi as runtimeOwnedDriveHarnessProviderEvidence, Bt as WORKER_TRACE_PROPAGATION, C as deriveNodeExecutionIdentity, Cn as routerBrain, Cr as linkAbort, D as recordScopeOwnerMaterialization, Di as unsupportedProfileDimensions, Dr as persistHarnessTranscript, E as recordScopeOwnerDriverAttempt, F as seatExecutionProfile, Fn as registerRetainedExecutorPreparation, G as scopeRetainedOwnerJournalRoot, Gi as runtimeOwnedScopeOwnerRuntime, Gn as isNoEntError, Gr as generateSpanId, H as prepareScopeRetainedOwnerTask, Hi as runtimeOwnedExecutorMaterialization, I as beginScopeRetainedOwnerDrive, In as retainedExecutorSeamKey, J as scopeRetainedOwnerRestorePoint, K as scopeRetainedOwnerPriorSpend, Kn as prepareJsonlAppend, L as bindScopeRetainedOwnerEnvironmentId, M as SeatChain, Mt as createExecutor, N as SeatChainExhaustedError, O as recordScopeOwnerPause, Or as readHarnessTranscript, Ot as bindReusableExecutorExecutionId, P as authoredSeatStages, Pi as inheritRuntimeOwnedExecutorAttestation, Pt as snapshotExecutorConfig, Qn as parseWorkerToolTraceArtifact, R as bindScopeRetainedOwnerProvider, Ri as providerAttemptEvidence, Rt as createRouterTranscript, St as createContinuationKeeper, T as meterRuntimeOwnedProviderAttempt, Ti as renderUnsupported, U as reconcileScopeRetainedOwnerEnvironment, Ui as runtimeOwnedExecutorProviderEvidence, Ur as createOtelExporter, V as prepareScopeRetainedOwnerSeatSwitch, Vi as runtimeOwnedExecutorExecutionBinding, W as scopeRetainedOwnerContext, Wi as runtimeOwnedPendingExecutorMaterialization, X as scopeRetainedOwnerTurnEnded, Y as scopeRetainedOwnerResult, Yr as toOtelAttributes, Yt as createInbox, Zi as detachedSnapshot, _ as isDriverSpec, _i as defineProfileMaterializationContract, _t as CheckUnavailableError, ar as meterUsageEvent, b as assertRecursiveReservationPolicy, bi as promptControlProfileMaterialization, bt as bestComposite, c as runTree, cr as spendFromUsageTotals, dr as errMessage, er as executorFailure, f as runDriverWithRetry, g as driverExecutorFactory, gi as controlProfileMaterialization, h as driverChild, hi as assertProfileMaterialization, ht as CONTINUATIONS_DIR, i as bestDelivered, in as isLiveNodeStatus, ji as attestRuntimeOwnedScopeOwner, jr as contentAddress, k as restoreScopeOwnerAcceptedExecution, ki as worktreeCliProfileMaterialization, kn as resolveAgentEnvironmentProvider, kt as captureReusableExecutorConfig, lr as bridgeRuntimeAttachmentsKey, n as createRootHandle, nt as coordinationProfileToolPrefix, on as bridgeAdmissionRefusal, or as newUsageTotals, p as summarizeDriverAttempts, pt as gateOnDeliverable, q as scopeRetainedOwnerResourceReader, qn as readCommittedJsonLines, qt as createActivityLog, r as createSupervisor, rr as assertValidBudget, rt as providerVisibleProfile, s as runFinalizer, sn as bridgeModelRouteRefusal, tt as coordinationMcpAlias, u as HarnessTurnFailedError, ur as bridgeStopSignalKey, vi as fullProfileMaterialization, vt as admitContinuationPolicy, w as meterRuntimeOwnedAccounting, wr as runAbortable, x as beginScopeOwnerAttempt, xi as promptModelProfileMaterialization, xr as RunCancellationReason, xt as checkVerdictOf, yi as profileMaterializationAxes$1, z as consumeScopeRetainedOwnerResult, zi as recordRuntimeOwnedDriveHarnessProviderEvidence } from "./supervisor-Dz4XXtK1.js";
1
+ import { $n as parseWorkerToolTraceArtifact, A as scopeOwnerExecutorNodeContext, Ai as worktreeCliProfileMaterialization, An as resolveAgentEnvironmentProvider, At as captureReusableExecutorConfig, B as consumeScopeRetainedOwnerResult, Bi as recordRuntimeOwnedDriveHarnessProviderEvidence, C as deriveNodeExecutionIdentity, Ct as createContinuationKeeper, D as recordScopeOwnerMaterialization, E as recordScopeOwnerDriverAttempt, Ei as renderUnsupported, F as seatExecutionProfile, Fi as inheritRuntimeOwnedExecutorAttestation, Fn as retainedExecutorSeamKey, Ft as snapshotExecutorConfig, G as scopeRetainedOwnerContext, Gi as runtimeOwnedPendingExecutorMaterialization, H as prepareScopeRetainedOwnerSeatSwitch, Hi as runtimeOwnedExecutorExecutionBinding, I as abandonScopeRetainedOwnerInvocation, J as scopeRetainedOwnerResourceReader, Jn as readCommittedJsonLines, Jt as createActivityLog, K as scopeRetainedOwnerJournalRoot, Ki as runtimeOwnedScopeOwnerRuntime, Kn as isNoEntError, Kr as generateSpanId, L as beginScopeRetainedOwnerDrive, M as SeatChain, Mi as attestRuntimeOwnedScopeOwner, Mr as contentAddress, N as SeatChainExhaustedError, Nt as createExecutor, O as recordScopeOwnerPause, Oi as unsupportedProfileDimensions, Or as persistHarnessTranscript, P as authoredSeatStages, Pn as registerRetainedExecutorPreparation, Qi as detachedSnapshot, R as bindScopeRetainedOwnerEnvironmentId, Si as promptModelProfileMaterialization, Sr as RunCancellationReason, St as checkVerdictOf, T as meterRuntimeOwnedProviderAttempt, Tr as runAbortable, U as prepareScopeRetainedOwnerTask, Ui as runtimeOwnedExecutorMaterialization, V as noteScopeRetainedOwnerCoordination, Vi as runtimeOwnedDriveHarnessProviderEvidence, Vt as WORKER_TRACE_PROPAGATION, W as reconcileScopeRetainedOwnerEnvironment, Wi as runtimeOwnedExecutorProviderEvidence, Wr as createOtelExporter, X as scopeRetainedOwnerResult, Xr as toOtelAttributes, Xt as createInbox, Y as scopeRetainedOwnerRestorePoint, Z as scopeRetainedOwnerTurnEnded, _ as isDriverSpec, _i as controlProfileMaterialization, an as isLiveNodeStatus, b as assertRecursiveReservationPolicy, bi as profileMaterializationAxes$1, c as runTree, cn as bridgeModelRouteRefusal, dr as bridgeStopSignalKey, f as runDriverWithRetry, fr as errMessage, g as driverExecutorFactory, gi as assertProfileMaterialization, gt as CONTINUATIONS_DIR, h as driverChild, i as bestDelivered, ir as assertValidBudget, it as providerVisibleProfile, k as restoreScopeOwnerAcceptedExecution, kr as readHarnessTranscript, kt as bindReusableExecutorExecutionId, lr as spendFromUsageTotals, mt as gateOnDeliverable, n as createRootHandle, nt as coordinationMcpAlias, or as meterUsageEvent, p as summarizeDriverAttempts, q as scopeRetainedOwnerPriorSpend, qn as prepareJsonlAppend, r as createSupervisor, rt as coordinationProfileToolPrefix, s as runFinalizer, sn as bridgeAdmissionRefusal, sr as newUsageTotals, tr as executorFailure, u as HarnessTurnFailedError, ur as bridgeRuntimeAttachmentsKey, vi as defineProfileMaterializationContract, vt as CheckUnavailableError, w as meterRuntimeOwnedAccounting, wn as routerBrain, wr as linkAbort, x as beginScopeOwnerAttempt, xi as promptControlProfileMaterialization, xt as bestComposite, yi as fullProfileMaterialization, yt as admitContinuationPolicy, z as bindScopeRetainedOwnerProvider, zi as providerAttemptEvidence, zt as createRouterTranscript } from "./supervisor-Cd39ZN4b.js";
2
2
  import { f as RuntimeRunStateError, i as ConfigError, m as ValidationError } from "./errors-DodWX-cb.js";
3
3
  import { G as errorMessage, St as teardownSurfaces, Y as isAsyncIterable$1, at as unmeteredSpend, dt as resourceTelemetry, ft as withBudgetResources, ht as DEFAULT_SUCCESSFUL_SHUTDOWN_MS, lt as addResourceSpend, ot as withTimeout, st as zeroSpend, tt as sleep, xt as teardownExecutor, z as addSpend } from "./workspace-streams-DaQceg2p.js";
4
4
  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-DydyWTQg.js";
5
5
  import { n as assertNoSymlinkDescendant } from "./durable-file-DWQA4ooo.js";
6
6
  import { t as composeRuntimeHooks } from "./runtime-hooks-tXpAarhW.js";
7
- import { C as createInMemoryRunContext, D as applyRunCancellation, M as coordinationVerbNames, O as watchRunCancellation, P as createCoordinationToolsForManager, S as createFileRunContext, c as resolveWakePolicy, f as createProgressTracker, h as progressStop, m as plateau, n as createSteerAcknowledger, o as composeWakeInput, r as driverAgent, s as deadlineWarningAt, t as createCancelAcknowledger, w as withRunContext } from "./coordination-driver-DCQUXZ54.js";
7
+ import { C as createInMemoryRunContext, D as applyRunCancellation, M as coordinationVerbNames, O as watchRunCancellation, P as createCoordinationToolsForManager, S as createFileRunContext, c as resolveWakePolicy, f as createProgressTracker, h as progressStop, m as plateau, n as createSteerAcknowledger, o as composeWakeInput, r as driverAgent, s as deadlineWarningAt, t as createCancelAcknowledger, w as withRunContext } from "./coordination-driver-nxGtWmJm.js";
8
8
  import { r as createStdioToolServer, t as PROTOCOL_VERSION } from "./tool-server-Dqer2M4_.js";
9
9
  import { k as writeRunCancellation, o as readRunCancelRequest, s as readRunCancellation } from "./run-layout-DSCWdbX2.js";
10
10
  import { agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, canonicalCandidateJson, validateAgentProfileSecurity } from "@tangle-network/agent-interface";
@@ -2187,6 +2187,7 @@ function buildSupervisorAgent(profile, deps, testBrain) {
2187
2187
  progress: readProgress,
2188
2188
  budget: () => scope.budget,
2189
2189
  signal: scope.signal,
2190
+ resolvePending: (failure, failures) => abandonScopeRetainedOwnerInvocation(scope, failure, failures),
2190
2191
  wait: {
2191
2192
  open: () => !mcp.submittedResult() && !mcp.isStopped() && progressStopReason === void 0 && controls.hasOpenWork(),
2192
2193
  wake: async (nextAttempt) => {
@@ -4687,4 +4688,4 @@ function rootProviderModelEvidenceFromExecution(evidence) {
4687
4688
  //#endregion
4688
4689
  export { readRootStreamReceipt as _, superviseWithTestBrain as a, createSupervisorSpanRecorder as b, resolveWorkerSpawnRetry as c, assertCoordinationBinding as d, resolveSupervisorProfile as f, readRootStream as g, ROOT_STREAM_FILE as h, superviseRootProfile as i, retryPreSpawnRefusals as l, supervisorAgentWithTestBrain as m, profileGuidanceComposer as n, workerFromBackend as o, supervisorAgent as p, supervise as r, isPreSpawnExecutorFailure as s, DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY as t, withWorkerSpawnRetry as u, UNPROVEN_CONTINUITY as v, serveCoordinationMcp as x, composeReentryTask as y };
4689
4690
 
4690
- //# sourceMappingURL=supervise-D1qqMFAu.js.map
4691
+ //# sourceMappingURL=supervise-B5iHXeuw.js.map