@tangle-network/agent-runtime 8.0.0 → 9.0.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 (93) hide show
  1. package/CHANGELOG.md +30 -0
  2. package/dist/{activation-xxvLF1-1.d.ts → activation-Cvw_7nrn.d.ts} +2 -2
  3. package/dist/{activation-Ce4zUcu8.js → activation-jAPhmkOb.js} +3 -3
  4. package/dist/{activation-Ce4zUcu8.js.map → activation-jAPhmkOb.js.map} +1 -1
  5. package/dist/agent.d.ts +3 -3
  6. package/dist/agent.js +2 -2
  7. package/dist/agent.js.map +1 -1
  8. package/dist/candidate-execution/index.js +2 -2
  9. package/dist/{continuation-CIyKnS1Q.js → continuation-DDPfLw2w.js} +2 -2
  10. package/dist/{continuation-CIyKnS1Q.js.map → continuation-DDPfLw2w.js.map} +1 -1
  11. package/dist/{coordination-manager-sa_PkISw.js → coordination-manager-T9_VZ_Gh.js} +8 -9
  12. package/dist/coordination-manager-T9_VZ_Gh.js.map +1 -0
  13. package/dist/{delegate-DhTkJIta.js → delegate-BCMyrm5n.js} +2 -2
  14. package/dist/{delegate-DhTkJIta.js.map → delegate-BCMyrm5n.js.map} +1 -1
  15. package/dist/durable.d.ts +33 -2
  16. package/dist/durable.js +75 -14
  17. package/dist/durable.js.map +1 -1
  18. package/dist/{graph-tSIT_eWK.js → graph-CajniLnc.js} +10 -10
  19. package/dist/graph-CajniLnc.js.map +1 -0
  20. package/dist/{graph-registry-czAwYwNj.js → graph-registry-D3cY0BJU.js} +3 -3
  21. package/dist/{graph-registry-czAwYwNj.js.map → graph-registry-D3cY0BJU.js.map} +1 -1
  22. package/dist/{graph-registry-uTIyyy7A.js → graph-registry-DTeb6qhB.js} +1 -1
  23. package/dist/{improve-H08hiIw9.js → improve-Bv419bnu.js} +7 -7
  24. package/dist/{improve-H08hiIw9.js.map → improve-Bv419bnu.js.map} +1 -1
  25. package/dist/index.d.ts +5 -5
  26. package/dist/index.js +13 -13
  27. package/dist/intelligence.d.ts +4 -4
  28. package/dist/intelligence.js +6 -6
  29. package/dist/kernel.d.ts +2 -2
  30. package/dist/kernel.js +15 -15
  31. package/dist/{loop-runner-BGwhcn1p.d.ts → loop-runner-Bd9Ieh5w.d.ts} +2 -2
  32. package/dist/{loop-runner-ChqK8kSz.js → loop-runner-DaMM2vSj.js} +3 -3
  33. package/dist/{loop-runner-ChqK8kSz.js.map → loop-runner-DaMM2vSj.js.map} +1 -1
  34. package/dist/loop-runner-bin.d.ts +1 -1
  35. package/dist/loop-runner-bin.js +1 -1
  36. package/dist/mcp/bin.js +3 -3
  37. package/dist/mcp/index.d.ts +1 -1
  38. package/dist/mcp/index.js +6 -6
  39. package/dist/{model-policy-yxOrDTTj.js → model-policy-CZwhXp8O.js} +7 -2
  40. package/dist/model-policy-CZwhXp8O.js.map +1 -0
  41. package/dist/{prepare-BnF8nGIg.js → prepare-D7WwIddG.js} +2 -2
  42. package/dist/{prepare-BnF8nGIg.js.map → prepare-D7WwIddG.js.map} +1 -1
  43. package/dist/{profile-CD25rTJF.js → profile-BT0X-dm5.js} +2 -2
  44. package/dist/{profile-CD25rTJF.js.map → profile-BT0X-dm5.js.map} +1 -1
  45. package/dist/profiles.d.ts +1 -1
  46. package/dist/profiles.js +1 -1
  47. package/dist/{provision-supervisor-Dx4TXTMM.js → provision-supervisor-mJuBx86X.js} +6 -6
  48. package/dist/{provision-supervisor-Dx4TXTMM.js.map → provision-supervisor-mJuBx86X.js.map} +1 -1
  49. package/dist/{run-cancellation-DYszFJtQ.js → run-cancellation-DZn4OSl8.js} +2 -2
  50. package/dist/{run-cancellation-DYszFJtQ.js.map → run-cancellation-DZn4OSl8.js.map} +1 -1
  51. package/dist/{run-state-DHBoJjaF.js → run-state-ZjIxcjfp.js} +6 -6
  52. package/dist/{run-state-DHBoJjaF.js.map → run-state-ZjIxcjfp.js.map} +1 -1
  53. package/dist/{runtime-CaM5Gbbv.js → runtime-C-G9MAGo.js} +99 -31
  54. package/dist/runtime-C-G9MAGo.js.map +1 -0
  55. package/dist/{search-executor-B9L8W_1O.js → search-executor-D3la0D_r.js} +4 -4
  56. package/dist/{search-executor-B9L8W_1O.js.map → search-executor-D3la0D_r.js.map} +1 -1
  57. package/dist/{server-BlDV8sj_.js → server-CrckVQDt.js} +3 -3
  58. package/dist/{server-BlDV8sj_.js.map → server-CrckVQDt.js.map} +1 -1
  59. package/dist/{settle-record-WWQasnDq.js → settle-record-B95oiypS.js} +3 -3
  60. package/dist/{settle-record-WWQasnDq.js.map → settle-record-B95oiypS.js.map} +1 -1
  61. package/dist/{structural-rollout-C1xxoWcN.js → structural-rollout-U49dEq3i.js} +5 -5
  62. package/dist/{structural-rollout-C1xxoWcN.js.map → structural-rollout-U49dEq3i.js.map} +1 -1
  63. package/dist/{supervise-DWiSgPLB.js → supervise-CSB-Kl6S.js} +16 -16
  64. package/dist/supervise-CSB-Kl6S.js.map +1 -0
  65. package/dist/{supervision-discovery-C9kfBLKy.js → supervision-discovery-DUpm_6nQ.js} +2 -2
  66. package/dist/{supervision-discovery-C9kfBLKy.js.map → supervision-discovery-DUpm_6nQ.js.map} +1 -1
  67. package/dist/{supervisor-Dpeu7rnZ.js → supervisor-K2sskHJV.js} +147 -69
  68. package/dist/{supervisor-Dpeu7rnZ.js.map → supervisor-K2sskHJV.js.map} +1 -1
  69. package/dist/{supervisor-accounting-Bw4MJk-b.js → supervisor-accounting-BB22j3hu.js} +47 -32
  70. package/dist/supervisor-accounting-BB22j3hu.js.map +1 -0
  71. package/dist/testing.d.ts +1 -1
  72. package/dist/testing.js +60 -60
  73. package/dist/{top-web-B3HOAtrZ.js → top-web-DsFGyUlS.js} +5 -5
  74. package/dist/{top-web-B3HOAtrZ.js.map → top-web-DsFGyUlS.js.map} +1 -1
  75. package/dist/tui/bin.js +3 -3
  76. package/dist/tui/index.d.ts +1 -1
  77. package/dist/tui/index.js +2 -2
  78. package/dist/{types-C_qbnw9N.d.ts → types-CwGD-823.d.ts} +43 -32
  79. package/dist/viewer/report-viewer.js +90 -90
  80. package/dist/viewer/runtime-viewer/AgentGraphCanvas-P_PFS2Ko-B7S6Fwwy.js +563 -0
  81. package/dist/viewer/runtime-viewer/latest-events-wofY6ifW-B8_bfLwI.js +17870 -0
  82. package/dist/viewer/styles.css +1637 -7280
  83. package/dist/viewer/workspace-viewer.js +10927 -10523
  84. package/package.json +16 -16
  85. package/dist/coordination-manager-sa_PkISw.js.map +0 -1
  86. package/dist/graph-tSIT_eWK.js.map +0 -1
  87. package/dist/model-policy-yxOrDTTj.js.map +0 -1
  88. package/dist/runtime-CaM5Gbbv.js.map +0 -1
  89. package/dist/supervise-DWiSgPLB.js.map +0 -1
  90. package/dist/supervisor-accounting-Bw4MJk-b.js.map +0 -1
  91. package/dist/viewer/runtime-viewer/AgentGraphCanvas-DGq7_u8--C6yDfIUT.js +0 -8555
  92. package/dist/viewer/runtime-viewer/latest-events-CRq9sGkK-CfoBl1dP.js +0 -9592
  93. package/dist/viewer/runtime-viewer/sandbox-ui-BEziPi7D.css +0 -2
@@ -1,10 +1,10 @@
1
- import { E as writeWorkerCancellation, F as parseWorkerToolTraceArtifact, I as workerTraceAnalysisStore, K as spawnJournalRecordEvents, O as writeWorkerSteerAcknowledgement, Rt as runtimeGraphMetadataKey, S as workerCancelRequestsFile, St as resolveSpawnResourcePaths, T as workerSteerRequestsDir, W as FileSpawnJournal, _ as readWorkerSteerAcknowledgement, d as claimWorkerSteerDelivery, dr as isLiveNodeStatus, fr as isTerminalNodeStatus, g as readWorkerCancellation, h as readWorkerCancelRequests, in as FileResultBlobStore, it as meterRuntimeOwnedAccounting, v as readWorkerSteerRequests } from "./supervisor-accounting-Bw4MJk-b.js";
1
+ import { E as writeWorkerCancellation, F as parseWorkerToolTraceArtifact, I as workerTraceAnalysisStore, K as spawnJournalRecordEvents, O as writeWorkerSteerAcknowledgement, Rt as runtimeGraphMetadataKey, S as workerCancelRequestsFile, St as resolveSpawnResourcePaths, T as workerSteerRequestsDir, W as FileSpawnJournal, _ as readWorkerSteerAcknowledgement, an as FileResultBlobStore, d as claimWorkerSteerDelivery, fr as isLiveNodeStatus, g as readWorkerCancellation, h as readWorkerCancelRequests, it as meterRuntimeOwnedAccounting, pr as isTerminalNodeStatus, v as readWorkerSteerRequests } from "./supervisor-accounting-BB22j3hu.js";
2
2
  import { m as ValidationError } from "./errors-DG8yufqX.js";
3
3
  import { M as contentAddress, et as assertValidBudget, o as settlementFailureCause } from "./failure-cause-CVB-YE88.js";
4
4
  import { a as errMessage, f as resolveRedactor, t as detachedFrozen } from "./snapshot-BKI_w3JD.js";
5
- import { Y as INBOX_RECEIPT_KEY, _ as withDriverExecutor, b as createExecutorRegistry, gt as CheckUnavailableError, nt as createPeerMailbox, v as InMemoryResultBlobStore, y as InMemorySpawnJournal } from "./supervisor-Dpeu7rnZ.js";
6
- import { i as checkVerdictOf, o as failedItems } from "./continuation-CIyKnS1Q.js";
7
- import { c as writeRunCancellation, i as readRunCancellation, r as readRunCancelRequest, t as applyRunCancellation, v as FileCoordinationLog } from "./run-cancellation-DYszFJtQ.js";
5
+ import { X as INBOX_RECEIPT_KEY, _t as CheckUnavailableError, b as InMemorySpawnJournal, rt as createPeerMailbox, v as withDriverExecutor, x as createExecutorRegistry, y as InMemoryResultBlobStore } from "./supervisor-K2sskHJV.js";
6
+ import { i as checkVerdictOf, o as failedItems } from "./continuation-DDPfLw2w.js";
7
+ import { c as writeRunCancellation, i as readRunCancellation, r as readRunCancelRequest, t as applyRunCancellation, v as FileCoordinationLog } from "./run-cancellation-DZn4OSl8.js";
8
8
  import { a as admitRuntimeSpawn, i as workerSettlement, n as resolveJsonPointer, o as safeJsonText, r as textBytes, t as createMapRouting } from "./coordination-map-routing-XZXTlCmn.js";
9
9
  import { ResourceRequestSchema, agentProfileSchema, canonicalAgentProfileDigest, canonicalCandidateDigest } from "@tangle-network/agent-interface";
10
10
  import { argHash, errorStreakDetector, observeAll, repeatedActionDetector } from "@tangle-network/agent-eval";
@@ -1557,7 +1557,7 @@ async function runWithin(work, ms, message) {
1557
1557
  }
1558
1558
  }
1559
1559
  // src/mcp/tools/coordination-audit-tools.ts
1560
- function createAuditTools({ opts, tools, blockedReports, readJournal }) {
1560
+ function createAuditTools({ opts, blockedReports, readJournal }) {
1561
1561
  return [{
1562
1562
  name: "report_blocked",
1563
1563
  description: [
@@ -1599,7 +1599,7 @@ function createAuditTools({ opts, tools, blockedReports, readJournal }) {
1599
1599
  error: "unprobeable",
1600
1600
  reason: `${bare} changes the run, so the coordinator does not call it for you`
1601
1601
  };
1602
- const target = opts.resolveProbeTool?.(bare) ?? tools().find((tool) => tool.name === bare);
1602
+ const target = opts.resolveProbeTool?.(bare);
1603
1603
  if (target === void 0) return {
1604
1604
  blocked: false,
1605
1605
  error: "unknown-tool",
@@ -4406,7 +4406,7 @@ function spawnWorkerTool(ctx) {
4406
4406
  const { profileTable } = ctx;
4407
4407
  return {
4408
4408
  name: "spawn_worker",
4409
- description: "Start a worker the driver will drive. `profile` is the worker or another driver; `task` is what it should do. Reserves budget from the conserved pool and fails closed. Pass an optional `budget` (per-field) to give a sub-task more or less than the default — it merges over the per-worker default; the conserved pool is still the hard fence. Each worker reserves only the channels capped by the pool. workerSlots sets concurrency. A funded worker waits with `status: \"queued\"` when every slot is busy and starts when one frees. A new worker whose budget cannot fit is refused immediately. Wait for settlements or request a smaller allocation before trying again. End your turn to be woken with results. Pass a `key` naming the assignment to make it run-once ACROSS restarts: a key that already completed returns the finished result (`resumed: \"completed\"` — no work re-runs, nothing is spent). A keyed worker that settled with a `budgetStop` keeps its session for a while: spawn the same key with a larger `budget` and a new worker continues that same session where it stopped (`resumed: \"continued\"`, `priorWorkerId`), or cancel_worker the stopped worker to release it. A key whose prior attempt failed (`down`) spawns fresh and says so (`resumed: \"retried\"`), and a key the process died with IN FLIGHT retries under the same key when the executor provably died with the process (an inline worker — the same `resumed: \"retried\"`, naming the interruption). A key with no terminal receipt whose execution may still exist elsewhere (sandbox, CLI bridge, router) is refused (`error: \"in-doubt\"`) until its exact prior execution is recovered. A key still running is refused (`error: \"duplicate-key\"`). Returns `freeSlots`: how many MORE workers start at once (`null` = no slot bound), and `queued`: how many of your workers wait for a slot. Parallel workers finish the run sooner than one at a time. An authored profile must be fully executable before it spawns: `harness`, `model.provider`, a concrete `model.default`, and no legacy `systemPrompt` — one refusal names every field still missing." + (profileTable === void 0 ? "" : " This run has a profiles table: pass `profile` as one of the table's names to run that exact profile, or write a new profile under a name the table does not hold."),
4409
+ description: "Start a worker the driver will drive. `profile` is the worker or another driver; `task` is what it should do. Reserves budget from the conserved pool and fails closed. Pass an optional `budget` (per-field) to give a sub-task more or less than the default — it merges over the per-worker default; the conserved pool is still the hard fence. Each worker reserves only the channels capped by the pool. workerSlots sets concurrency. A funded worker waits with `status: \"queued\"` when every slot is busy and starts when one frees. A new worker whose budget cannot fit is refused immediately. Wait for settlements or request a smaller allocation before trying again. End your turn to be woken with results. Pass a `key` naming the assignment to make it run-once ACROSS restarts: a key that already completed returns the finished result (`resumed: \"completed\"` — no work re-runs, nothing is spent). A keyed worker that settled with a `budgetStop` keeps its session for a while: spawn the same key with a larger `budget` and a new worker continues that same session where it stopped (`resumed: \"continued\"`, `priorWorkerId`), or cancel_worker the stopped worker to release it. A key whose prior attempt failed (`down`) spawns fresh and says so (`resumed: \"retried\"`), and a key the process died with IN FLIGHT retries under the same key when the executor provably died with the process (an inline worker — the same `resumed: \"retried\"`, naming the interruption). A key with no terminal receipt whose execution may still exist elsewhere (sandbox, CLI bridge, router) is refused (`error: \"in-doubt\"`) until its exact prior execution is recovered; the first spawn of a recovered key returns that worker (`resumed: \"recovered\"`), any other spawn of a key still running is refused (`error: \"duplicate-key\"`). Returns `freeSlots`: how many MORE workers start at once (`null` = no slot bound), and `queued`: how many of your workers wait for a slot. Parallel workers finish the run sooner than one at a time. An authored profile must be fully executable before it spawns: `harness`, `model.provider`, a concrete `model.default`, and no legacy `systemPrompt` — one refusal names every field still missing." + (profileTable === void 0 ? "" : " This run has a profiles table: pass `profile` as one of the table's names to run that exact profile, or write a new profile under a name the table does not hold."),
4410
4410
  inputSchema: {
4411
4411
  type: "object",
4412
4412
  properties: {
@@ -4950,7 +4950,6 @@ function assembleTools(parts) {
4950
4950
  }),
4951
4951
  ...createAuditTools({
4952
4952
  opts,
4953
- tools: () => tools,
4954
4953
  blockedReports: state.blockedReports,
4955
4954
  readJournal: journal.readJournal
4956
4955
  })
@@ -5233,4 +5232,4 @@ function createResumeReplay({ opts, bus, ledger, analysis, projectSettled }) {
5233
5232
  }
5234
5233
  export { downMessageRefusalReasons as a, createSteerAcknowledger as c, coordinationVerbNames as d, createFileRunContext as f, watchTrace as i, budgetOverspendText as l, withRunContext as m, createCoordinationToolsForManager as n, createEventBus as o, createInMemoryRunContext as p, defaultToolDetectors as r, createCancelAcknowledger as s, createCoordinationTools as t, normalizeAnalyzeOnSettle as u };
5235
5234
 
5236
- //# sourceMappingURL=coordination-manager-sa_PkISw.js.map
5235
+ //# sourceMappingURL=coordination-manager-T9_VZ_Gh.js.map