@tangle-network/agent-runtime 0.246.0 → 0.247.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 (61) hide show
  1. package/dist/{activation-C6d-NTWk.js → activation-DYqnl8zq.js} +2 -2
  2. package/dist/{activation-C6d-NTWk.js.map → activation-DYqnl8zq.js.map} +1 -1
  3. package/dist/{activation-Df-ae5Uq.d.ts → activation-DizpINK3.d.ts} +2 -2
  4. package/dist/agent.d.ts +2 -2
  5. package/dist/agent.js +2 -2
  6. package/dist/{coordination-driver-De8pyM57.js → coordination-driver-BV4AAUns.js} +20 -7
  7. package/dist/{coordination-driver-De8pyM57.js.map → coordination-driver-BV4AAUns.js.map} +1 -1
  8. package/dist/{delegate-DE6hNhbD.js → delegate-DQAzB5Xv.js} +2 -2
  9. package/dist/{delegate-DE6hNhbD.js.map → delegate-DQAzB5Xv.js.map} +1 -1
  10. package/dist/durable.d.ts +2 -2
  11. package/dist/durable.js +2 -2
  12. package/dist/{graph-s57f-VCR.js → graph-DcBmMLIp.js} +3 -3
  13. package/dist/{graph-s57f-VCR.js.map → graph-DcBmMLIp.js.map} +1 -1
  14. package/dist/{improvement-cycle-BE3gIJwL.js → improvement-cycle-B049YmQ8.js} +3 -3
  15. package/dist/{improvement-cycle-BE3gIJwL.js.map → improvement-cycle-B049YmQ8.js.map} +1 -1
  16. package/dist/{index-CAG31NtK.d.ts → index-DLzlXwr6.d.ts} +11 -6
  17. package/dist/index.d.ts +6 -6
  18. package/dist/index.js +7 -7
  19. package/dist/intelligence.d.ts +7 -5
  20. package/dist/intelligence.js +9 -8
  21. package/dist/intelligence.js.map +1 -1
  22. package/dist/kernel.d.ts +3 -3
  23. package/dist/kernel.js +9 -9
  24. package/dist/{loop-runner-bin-B_oSVrE7.d.ts → loop-runner-bin-HbMECmxT.d.ts} +3 -3
  25. package/dist/{loop-runner-bin-Bp8Mih20.js → loop-runner-bin-iqq1azfy.js} +3 -3
  26. package/dist/{loop-runner-bin-Bp8Mih20.js.map → loop-runner-bin-iqq1azfy.js.map} +1 -1
  27. package/dist/loop-runner-bin.d.ts +1 -1
  28. package/dist/loop-runner-bin.js +1 -1
  29. package/dist/mcp/bin.js +3 -3
  30. package/dist/mcp/index.d.ts +5 -5
  31. package/dist/mcp/index.js +4 -4
  32. package/dist/{openai-tools-B1GMKDjW.d.ts → openai-tools-DvLk_Ddg.d.ts} +2 -2
  33. package/dist/profiles.d.ts +2 -2
  34. package/dist/{provision-supervisor-D0X9KUv-.js → provision-supervisor-BgQx2Avp.js} +4 -4
  35. package/dist/{provision-supervisor-D0X9KUv-.js.map → provision-supervisor-BgQx2Avp.js.map} +1 -1
  36. package/dist/{run-layout-B8-Gqhpg.js → run-layout-hKAJGF4g.js} +6 -1
  37. package/dist/run-layout-hKAJGF4g.js.map +1 -0
  38. package/dist/{runtime-CHbVv5UI.js → runtime-HpTXhB3g.js} +9 -9
  39. package/dist/{runtime-CHbVv5UI.js.map → runtime-HpTXhB3g.js.map} +1 -1
  40. package/dist/{server-DwsC_FyV.js → server-OOE7mXrN.js} +3 -3
  41. package/dist/{server-DwsC_FyV.js.map → server-OOE7mXrN.js.map} +1 -1
  42. package/dist/{stream-agent-turn-DQ-W8mHf.d.ts → stream-agent-turn-CcumM0Bu.d.ts} +2 -2
  43. package/dist/{structural-rollout-DasmuuUp.js → structural-rollout-z1A0okaB.js} +2 -2
  44. package/dist/{structural-rollout-DasmuuUp.js.map → structural-rollout-z1A0okaB.js.map} +1 -1
  45. package/dist/{substrate-DJOnuoa_.d.ts → substrate-CQ0hfewn.d.ts} +2 -2
  46. package/dist/{supervise-o6CzD2Rt.js → supervise-DZEOpzRw.js} +11 -5
  47. package/dist/supervise-DZEOpzRw.js.map +1 -0
  48. package/dist/{supervisor-tGq-TPIv.js → supervisor-BIBWUFUr.js} +165 -48
  49. package/dist/supervisor-BIBWUFUr.js.map +1 -0
  50. package/dist/testing.d.ts +2 -2
  51. package/dist/testing.js +12 -12
  52. package/dist/{top-app-DL-sjv7K.js → top-app-d-bmwO7O.js} +2 -2
  53. package/dist/{top-app-DL-sjv7K.js.map → top-app-d-bmwO7O.js.map} +1 -1
  54. package/dist/tui/bin.js +1 -1
  55. package/dist/tui/index.d.ts +1 -1
  56. package/dist/tui/index.js +2 -2
  57. package/dist/{types-BoEzH8V6.d.ts → types-BUhz284C.d.ts} +23 -10
  58. package/package.json +1 -1
  59. package/dist/run-layout-B8-Gqhpg.js.map +0 -1
  60. package/dist/supervise-o6CzD2Rt.js.map +0 -1
  61. package/dist/supervisor-tGq-TPIv.js.map +0 -1
@@ -1,4 +1,4 @@
1
- import { Ur as Driver, Vr as AgentRunSpec, hi as Validator, ui as OutputAdapter } from "./types-BoEzH8V6.js";
1
+ import { Ur as Driver, Vr as AgentRunSpec, hi as Validator, ui as OutputAdapter } from "./types-BUhz284C.js";
2
2
  import { AgentProfile } from "@tangle-network/agent-interface";
3
3
  //#region src/profiles/coder.d.ts
4
4
  /**
@@ -281,4 +281,4 @@ interface UiFinding {
281
281
  }
282
282
  //#endregion
283
283
  export { CoderTask as _, UiFindingSeverity as a, KnowledgeUpdate as c, ResearchSource as d, ResearchTask as f, researcherProfile as g, multiHarnessResearcherFanout as h, UiFindingScreenshot as i, MultiHarnessResearcherFanoutOptions as l, createResearcherValidator as m, UI_LENSES as n, UiLens as o, ResearcherProfileOptions as p, UiFinding as r, KnowledgeItem as s, UI_FINDING_SEVERITIES as t, ResearchOutput as u, coderTaskToPrompt as v };
284
- //# sourceMappingURL=substrate-DJOnuoa_.d.ts.map
284
+ //# sourceMappingURL=substrate-CQ0hfewn.d.ts.map
@@ -1,11 +1,11 @@
1
- import { $i as withBudgetResources, $n as contentAddress, Bn as linkAbort, Br as promptControlProfileMaterialization, C as restoreScopeOwnerAcceptedExecution, Cn as routerBrain, F as prepareScopeRetainedOwnerTask, Fr as assertProfileMaterialization, Ft as newUsageTotals, Gr as renderUnsupported, I as scopeRetainedOwnerContext, Ii as addSpend, In as registerRetainedExecutorPreparation, Ir as controlProfileMaterialization, Ji as unmeteredSpend, L as scopeRetainedOwnerPriorSpend, Ln as retainedExecutorSeamKey, Lr as defineProfileMaterializationContract, Lt as spendFromUsageTotals, M as bindScopeRetainedOwnerEnvironmentId, Mt as assertValidBudget, N as bindScopeRetainedOwnerProvider, P as consumeScopeRetainedOwnerResult, Pt as meterUsageEvent, Qi as resourceTelemetry, Qr as readCommittedJsonLines, R as scopeRetainedOwnerResourceReader, Rn as RunCancellationReason, Rr as fullProfileMaterialization, Rt as WORKER_TRACE_PROPAGATION, S as recordScopeOwnerMaterialization, Vn as runAbortable, Vr as promptModelProfileMaterialization, Wi as sleep, Xi as zeroSpend, Xr as isNoEntError, Yi as withTimeout, Yr as worktreeCliProfileMaterialization, Zi as addResourceSpend, Zr as prepareJsonlAppend, _ as beginScopeOwnerAttempt, aa as teardownExecutor, an as bridgeAdmissionRefusal, b as meterRuntimeOwnedAccounting, ci as providerAttemptEvidence, d as defaultUnmetContractSteer, di as runtimeOwnedExecutorExecutionBinding, dn as bridgeRuntimeAttachmentsKey, f as runDriverWithRetry, fi as runtimeOwnedExecutorMaterialization, fn as bridgeStopSignalKey, fr as generateSpanId, ft as snapshotExecutorConfig, gr as toOtelAttributes, h as isDriverSpec, hi as runtimeOwnedScopeOwnerRuntime, ii as inheritRuntimeOwnedExecutorAttestation, in as executorFailure, jn as resolveAgentEnvironmentProvider, l as HarnessTurnFailedError, li as recordRuntimeOwnedDriveHarnessProviderEvidence, lr as createOtelExporter, m as driverExecutorFactory, mi as runtimeOwnedPendingExecutorMaterialization, n as createSupervisor, o as runFinalizer, on as bridgeModelRouteRefusal, ot as bindReusableExecutorExecutionId, p as driverChild, pi as runtimeOwnedExecutorProviderEvidence, qr as unsupportedProfileDimensions, qt as createInbox, r as bestDelivered, ra as DEFAULT_SUCCESSFUL_SHUTDOWN_MS, s as runTree, st as captureReusableExecutorConfig, t as createRootHandle, ti as attestRuntimeOwnedScopeOwner, tt as errMessage, ui as runtimeOwnedDriveHarnessProviderEvidence, ut as createExecutor, w as scopeOwnerExecutorNodeContext, x as meterRuntimeOwnedProviderAttempt, xi as detachedSnapshot, y as deriveNodeExecutionIdentity, z as scopeRetainedOwnerResult, zr as profileMaterializationAxes$1 } from "./supervisor-tGq-TPIv.js";
1
+ import { $i as withBudgetResources, $n as contentAddress, Bn as linkAbort, Br as promptControlProfileMaterialization, C as restoreScopeOwnerAcceptedExecution, Cn as routerBrain, F as prepareScopeRetainedOwnerTask, Fr as assertProfileMaterialization, Ft as newUsageTotals, Gr as renderUnsupported, I as scopeRetainedOwnerContext, Ii as addSpend, In as registerRetainedExecutorPreparation, Ir as controlProfileMaterialization, Ji as unmeteredSpend, L as scopeRetainedOwnerPriorSpend, Ln as retainedExecutorSeamKey, Lr as defineProfileMaterializationContract, Lt as spendFromUsageTotals, M as bindScopeRetainedOwnerEnvironmentId, Mt as assertValidBudget, N as bindScopeRetainedOwnerProvider, P as consumeScopeRetainedOwnerResult, Pt as meterUsageEvent, Qi as resourceTelemetry, Qr as readCommittedJsonLines, R as scopeRetainedOwnerResourceReader, Rn as RunCancellationReason, Rr as fullProfileMaterialization, Rt as WORKER_TRACE_PROPAGATION, S as recordScopeOwnerMaterialization, Vn as runAbortable, Vr as promptModelProfileMaterialization, Wi as sleep, Xi as zeroSpend, Xr as isNoEntError, Yi as withTimeout, Yr as worktreeCliProfileMaterialization, Zi as addResourceSpend, Zr as prepareJsonlAppend, _ as beginScopeOwnerAttempt, aa as teardownExecutor, an as bridgeAdmissionRefusal, b as meterRuntimeOwnedAccounting, ci as providerAttemptEvidence, d as defaultUnmetContractSteer, di as runtimeOwnedExecutorExecutionBinding, dn as bridgeRuntimeAttachmentsKey, f as runDriverWithRetry, fi as runtimeOwnedExecutorMaterialization, fn as bridgeStopSignalKey, fr as generateSpanId, ft as snapshotExecutorConfig, gr as toOtelAttributes, h as isDriverSpec, hi as runtimeOwnedScopeOwnerRuntime, ii as inheritRuntimeOwnedExecutorAttestation, in as executorFailure, jn as resolveAgentEnvironmentProvider, l as HarnessTurnFailedError, li as recordRuntimeOwnedDriveHarnessProviderEvidence, lr as createOtelExporter, m as driverExecutorFactory, mi as runtimeOwnedPendingExecutorMaterialization, n as createSupervisor, o as runFinalizer, on as bridgeModelRouteRefusal, ot as bindReusableExecutorExecutionId, p as driverChild, pi as runtimeOwnedExecutorProviderEvidence, qr as unsupportedProfileDimensions, qt as createInbox, r as bestDelivered, ra as DEFAULT_SUCCESSFUL_SHUTDOWN_MS, s as runTree, st as captureReusableExecutorConfig, t as createRootHandle, ti as attestRuntimeOwnedScopeOwner, tt as errMessage, ui as runtimeOwnedDriveHarnessProviderEvidence, ut as createExecutor, w as scopeOwnerExecutorNodeContext, x as meterRuntimeOwnedProviderAttempt, xi as detachedSnapshot, y as deriveNodeExecutionIdentity, z as scopeRetainedOwnerResult, zr as profileMaterializationAxes$1 } from "./supervisor-BIBWUFUr.js";
2
2
  import { f as RuntimeRunStateError, i as ConfigError, m as ValidationError } from "./errors-DodWX-cb.js";
3
3
  import { a as concreteProfileModel, c as profileModelExecutionSettings, d as agentHarness, f as harnessRunsAgent, n as assertModelAllowed, o as enforceTokenLimits, r as assertProfileModelsAllowed, s as profileBridgeWireModel, t as assertExecutableAgentProfile } from "./model-policy-BbSCSak0.js";
4
4
  import { t as composeRuntimeHooks } from "./runtime-hooks-tXpAarhW.js";
5
5
  import { n as assertNoSymlinkDescendant } from "./durable-file-DWQA4ooo.js";
6
6
  import { n as createStdioToolServer, t as PROTOCOL_VERSION } from "./tool-server-x9NEhvHZ.js";
7
- import { D as coordinationVerbNames, S as watchRunCancellation, c as createProgressTracker, d as progressStop, k as createCoordinationToolsForManager, n as createSteerAcknowledger, r as driverAgent, t as createCancelAcknowledger, v as createFileRunContext, w as DEFAULT_AWAIT_EVENT_TIMEOUT_MS, x as applyRunCancellation, y as createInMemoryRunContext } from "./coordination-driver-De8pyM57.js";
8
- import { k as writeRunCancellation, o as readRunCancelRequest, s as readRunCancellation } from "./run-layout-B8-Gqhpg.js";
7
+ import { D as coordinationVerbNames, S as watchRunCancellation, c as createProgressTracker, d as progressStop, k as createCoordinationToolsForManager, n as createSteerAcknowledger, r as driverAgent, t as createCancelAcknowledger, v as createFileRunContext, w as DEFAULT_AWAIT_EVENT_TIMEOUT_MS, x as applyRunCancellation, y as createInMemoryRunContext } from "./coordination-driver-BV4AAUns.js";
8
+ import { k as writeRunCancellation, o as readRunCancelRequest, s as readRunCancellation } from "./run-layout-hKAJGF4g.js";
9
9
  import { agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest, canonicalCandidateJson, validateAgentProfileSecurity } from "@tangle-network/agent-interface";
10
10
  import { createHash, createHmac, randomBytes, randomUUID, timingSafeEqual } from "node:crypto";
11
11
  import { closeSync, constants, fsyncSync, openSync, writeSync } from "node:fs";
@@ -1387,7 +1387,10 @@ function observeWorkerControls(options) {
1387
1387
  ownerId: scope.view.root,
1388
1388
  controlScope
1389
1389
  };
1390
- const steers = createSteerAcknowledger(deps);
1390
+ const steers = createSteerAcknowledger({
1391
+ ...deps,
1392
+ deliverRoot: options.deliverRoot
1393
+ });
1391
1394
  const cancellations = createCancelAcknowledger(deps);
1392
1395
  let active = true;
1393
1396
  let timer;
@@ -1798,6 +1801,7 @@ function buildSupervisorAgent(profile, deps, testBrain) {
1798
1801
  scope,
1799
1802
  signal: coordinationLifetime.signal,
1800
1803
  controlScope: deps.controlScope ?? "run",
1804
+ ...deps.controlScope === "subtree" ? {} : { deliverRoot: (message) => deliver?.(message) ?? false },
1801
1805
  onError: (error) => {
1802
1806
  coordinationLifetime.abort(error);
1803
1807
  stopController.abort(error);
@@ -3574,6 +3578,7 @@ function superviseInternal(profile, task, opts, testBrain) {
3574
3578
  replaySettlements: true
3575
3579
  } : {},
3576
3580
  ...analysts ? { analysts } : {},
3581
+ ...options.escalateQuestion ? { escalateQuestion: options.escalateQuestion } : {},
3577
3582
  ...options.analyzeOnSettle ? { analyzeOnSettle: options.analyzeOnSettle } : {},
3578
3583
  ...options.watchWorkers ? { watchWorkers: options.watchWorkers } : {},
3579
3584
  ...options.stallAfterMs !== void 0 ? { stallAfterMs: options.stallAfterMs } : {},
@@ -3677,6 +3682,7 @@ function superviseInternal(profile, task, opts, testBrain) {
3677
3682
  ...options.extraTools ? { extraTools: options.extraTools } : {},
3678
3683
  ...options.executeExtraTool ? { executeExtraTool: options.executeExtraTool } : {},
3679
3684
  ...analysts ? { analysts } : {},
3685
+ ...options.escalateQuestion ? { escalateQuestion: options.escalateQuestion } : {},
3680
3686
  ...options.analyzeOnSettle ? { analyzeOnSettle: options.analyzeOnSettle } : {},
3681
3687
  ...options.watchWorkers ? { watchWorkers: options.watchWorkers } : {},
3682
3688
  ...options.stallAfterMs !== void 0 ? { stallAfterMs: options.stallAfterMs } : {},
@@ -3807,4 +3813,4 @@ function rootProviderModelEvidenceFromExecution(evidence) {
3807
3813
  //#endregion
3808
3814
  export { createSupervisorSpanRecorder as _, isPreSpawnExecutorFailure as a, mapExecutorResult as b, withWorkerSpawnRetry as c, resolveSupervisorProfile as d, supervisorAgent as f, readRootStreamReceipt as g, readRootStream as h, workerFromBackend as i, assertCoordinationBinding as l, ROOT_STREAM_FILE as m, supervise as n, resolveWorkerSpawnRetry as o, supervisorAgentWithTestBrain as p, superviseWithTestBrain as r, retryPreSpawnRefusals as s, DEFAULT_AUTHORED_PROFILE_SECURITY_POLICY as t, coordinationProfileToolPrefix as u, serveCoordinationMcp as v, gateOnDeliverable as y };
3809
3815
 
3810
- //# sourceMappingURL=supervise-o6CzD2Rt.js.map
3816
+ //# sourceMappingURL=supervise-DZEOpzRw.js.map