@tangle-network/agent-runtime 0.349.0 → 0.350.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 (126) hide show
  1. package/dist/{activation-tNGW73Y9.js → activation-CfJMyzEs.js} +12 -14
  2. package/dist/{activation-tNGW73Y9.js.map → activation-CfJMyzEs.js.map} +1 -1
  3. package/dist/{activation-wBipBkCf.d.ts → activation-DyiHrTlS.d.ts} +2 -24
  4. package/dist/agent.d.ts +8 -12
  5. package/dist/agent.js +9 -12
  6. package/dist/agent.js.map +1 -1
  7. package/dist/{analyst-loop-DZw5QWT9.js → analyst-loop-BZvXCDKy.js} +2 -3
  8. package/dist/{analyst-loop-DZw5QWT9.js.map → analyst-loop-BZvXCDKy.js.map} +1 -1
  9. package/dist/analyst-loop.d.ts +3 -5
  10. package/dist/analyst-loop.js +1 -2
  11. package/dist/{bundle-1xaJEgjq.js → bundle-Ze8pd07a.js} +3 -4
  12. package/dist/{bundle-1xaJEgjq.js.map → bundle-Ze8pd07a.js.map} +1 -1
  13. package/dist/candidate-execution/index.d.ts +13 -33
  14. package/dist/candidate-execution/index.js +16 -18
  15. package/dist/candidate-execution/index.js.map +1 -1
  16. package/dist/{coordination-manager-B2Z_MmL9.js → coordination-manager-BkVfWlMz.js} +101 -132
  17. package/dist/{coordination-manager-B2Z_MmL9.js.map → coordination-manager-BkVfWlMz.js.map} +1 -1
  18. package/dist/{delegate-Dr-63jFl.js → delegate-DgEie4ad.js} +19 -21
  19. package/dist/delegate-DgEie4ad.js.map +1 -0
  20. package/dist/durable.d.ts +13 -23
  21. package/dist/durable.js +48 -43
  22. package/dist/durable.js.map +1 -1
  23. package/dist/{errors-DodWX-cb.js → errors-wuhGvpE3.js} +2 -3
  24. package/dist/{errors-DodWX-cb.js.map → errors-wuhGvpE3.js.map} +1 -1
  25. package/dist/{graph-DPejYB3C.js → graph-Cx0FhKSE.js} +191 -14
  26. package/dist/graph-Cx0FhKSE.js.map +1 -0
  27. package/dist/{improve-DwSahPi1.js → improve-i0HU1-aa.js} +35 -53
  28. package/dist/{improve-DwSahPi1.js.map → improve-i0HU1-aa.js.map} +1 -1
  29. package/dist/{improvement-adapter-sIthWkcN.d.ts → improvement-adapter-D5GRU1eY.d.ts} +2 -6
  30. package/dist/index.d.ts +41 -89
  31. package/dist/index.js +43 -61
  32. package/dist/index.js.map +1 -1
  33. package/dist/intelligence.d.ts +39 -59
  34. package/dist/intelligence.js +23 -33
  35. package/dist/intelligence.js.map +1 -1
  36. package/dist/kernel.d.ts +5 -5
  37. package/dist/kernel.js +11 -11
  38. package/dist/{loop-runner-CP6MfO1b.js → loop-runner-BwN9MhdP.js} +5 -6
  39. package/dist/{loop-runner-CP6MfO1b.js.map → loop-runner-BwN9MhdP.js.map} +1 -1
  40. package/dist/{loop-runner-C6pGq-2l.d.ts → loop-runner-DvfOXVx9.d.ts} +3 -5
  41. package/dist/loop-runner-bin.d.ts +5 -8
  42. package/dist/loop-runner-bin.js +2 -3
  43. package/dist/mcp/bin.js +6 -8
  44. package/dist/mcp/bin.js.map +1 -1
  45. package/dist/mcp/index.d.ts +8 -18
  46. package/dist/mcp/index.js +17 -25
  47. package/dist/mcp/index.js.map +1 -1
  48. package/dist/mcp/memory-bin.js +4 -6
  49. package/dist/mcp/memory-bin.js.map +1 -1
  50. package/dist/{model-policy-CyCUwHed.js → model-policy-GSxWwP-b.js} +11 -13
  51. package/dist/{model-policy-CyCUwHed.js.map → model-policy-GSxWwP-b.js.map} +1 -1
  52. package/dist/placement.d.ts +12 -14
  53. package/dist/placement.js +1 -2
  54. package/dist/platform.d.ts +7 -13
  55. package/dist/platform.js +3 -6
  56. package/dist/platform.js.map +1 -1
  57. package/dist/{prepare-B9wWffjO.js → prepare-DE8TQnLu.js} +49 -69
  58. package/dist/{prepare-B9wWffjO.js.map → prepare-DE8TQnLu.js.map} +1 -1
  59. package/dist/{profile-JLJd2wFG.js → profile-CAhZDW2T.js} +58 -92
  60. package/dist/profile-CAhZDW2T.js.map +1 -0
  61. package/dist/{profile-materialization-bPm0gGLO.d.ts → profile-materialization-BRY22Oh8.d.ts} +1 -3
  62. package/dist/profiles.d.ts +25 -12
  63. package/dist/profiles.js +52 -11
  64. package/dist/profiles.js.map +1 -1
  65. package/dist/{protected-model-port-DVVh-hEk.d.ts → protected-model-port-IKqhTypD.d.ts} +2 -14
  66. package/dist/{protected-redaction-DFCeo4vg.js → protected-redaction-DilFZch5.js} +2 -3
  67. package/dist/{protected-redaction-DFCeo4vg.js.map → protected-redaction-DilFZch5.js.map} +1 -1
  68. package/dist/{provision-supervisor-C4v2vqDo.js → provision-supervisor-Bde_FF0R.js} +11 -15
  69. package/dist/{provision-supervisor-C4v2vqDo.js.map → provision-supervisor-Bde_FF0R.js.map} +1 -1
  70. package/dist/{record-events-D93DkpAx.js → record-events-B2GUgYdz.js} +12 -14
  71. package/dist/{record-events-D93DkpAx.js.map → record-events-B2GUgYdz.js.map} +1 -1
  72. package/dist/{run-cancellation-CzFhQGMa.js → run-cancellation-BLy_Zz-w.js} +6 -7
  73. package/dist/{run-cancellation-CzFhQGMa.js.map → run-cancellation-BLy_Zz-w.js.map} +1 -1
  74. package/dist/{runtime-CsvGCQpl.js → runtime-6Ec9sHRe.js} +648 -215
  75. package/dist/runtime-6Ec9sHRe.js.map +1 -0
  76. package/dist/{runtime-hooks-tXpAarhW.js → runtime-hooks-CsW2pfFk.js} +2 -3
  77. package/dist/{runtime-hooks-tXpAarhW.js.map → runtime-hooks-CsW2pfFk.js.map} +1 -1
  78. package/dist/{runtime-hooks-nsqxSUFL.d.ts → runtime-hooks-ZQqPw-0g.d.ts} +1 -3
  79. package/dist/{sandbox-profile-compat-DtuJWFrM.js → sandbox-profile-compat-BxMQ1VXv.js} +61 -43
  80. package/dist/sandbox-profile-compat-BxMQ1VXv.js.map +1 -0
  81. package/dist/{search-executor-CCb82Umc.js → search-executor-B7g_5Wjl.js} +10 -15
  82. package/dist/{search-executor-CCb82Umc.js.map → search-executor-B7g_5Wjl.js.map} +1 -1
  83. package/dist/{server-CKPwZU-I.js → server-fvEMwGMQ.js} +19 -30
  84. package/dist/{server-CKPwZU-I.js.map → server-fvEMwGMQ.js.map} +1 -1
  85. package/dist/{structural-rollout-DylC_fwU.js → structural-rollout-B86bSixU.js} +69 -70
  86. package/dist/structural-rollout-B86bSixU.js.map +1 -0
  87. package/dist/{substrate-CGDFTSRh.js → substrate-Db2pp6y3.js} +2 -3
  88. package/dist/{substrate-CGDFTSRh.js.map → substrate-Db2pp6y3.js.map} +1 -1
  89. package/dist/{supervise-BGfm2GlY.js → supervise-CaeZcgAW.js} +460 -195
  90. package/dist/supervise-CaeZcgAW.js.map +1 -0
  91. package/dist/{supervisor-wS9Ehz_x.js → supervisor-C1OePYE-.js} +511 -626
  92. package/dist/supervisor-C1OePYE-.js.map +1 -0
  93. package/dist/{task-queue-0fKkoweu.d.ts → task-queue-kefGy79U.d.ts} +1 -3
  94. package/dist/task-queue.d.ts +1 -1
  95. package/dist/task-queue.js +1 -2
  96. package/dist/testing.d.ts +7 -15
  97. package/dist/testing.js +241 -244
  98. package/dist/testing.js.map +1 -1
  99. package/dist/tool-loop.d.ts +16 -19
  100. package/dist/tool-loop.js +2 -3
  101. package/dist/{tool-server-XV4aJwoQ.js → tool-server-CwuYeW_Z.js} +3 -4
  102. package/dist/{tool-server-XV4aJwoQ.js.map → tool-server-CwuYeW_Z.js.map} +1 -1
  103. package/dist/{top-snapshot-CflmaDgk.js → top-snapshot-ChwpTr7A.js} +4 -5
  104. package/dist/{top-snapshot-CflmaDgk.js.map → top-snapshot-ChwpTr7A.js.map} +1 -1
  105. package/dist/tui/bin.js +7 -9
  106. package/dist/tui/bin.js.map +1 -1
  107. package/dist/tui/index.d.ts +3 -5
  108. package/dist/tui/index.js +2 -2
  109. package/dist/{types-C8BGOCBn.d.ts → types-Fowuwdz2.d.ts} +364 -483
  110. package/dist/{types-Cwrea-bU.d.ts → types-qsqfyQoY.d.ts} +1 -3
  111. package/dist/workspace-store/index.d.ts +12 -22
  112. package/dist/workspace-store/index.js +4 -7
  113. package/dist/workspace-store/index.js.map +1 -1
  114. package/dist/{workspace-streams-BiS4ABah.d.ts → workspace-streams-Dq2Fzk3c.d.ts} +1 -11
  115. package/package.json +25 -25
  116. package/skills/agent-graphs/SKILL.md +17 -4
  117. package/skills/be-ambitious/SKILL.md +46 -0
  118. package/skills/graph-designer/SKILL.md +9 -2
  119. package/dist/delegate-Dr-63jFl.js.map +0 -1
  120. package/dist/graph-DPejYB3C.js.map +0 -1
  121. package/dist/profile-JLJd2wFG.js.map +0 -1
  122. package/dist/runtime-CsvGCQpl.js.map +0 -1
  123. package/dist/sandbox-profile-compat-DtuJWFrM.js.map +0 -1
  124. package/dist/structural-rollout-DylC_fwU.js.map +0 -1
  125. package/dist/supervise-BGfm2GlY.js.map +0 -1
  126. package/dist/supervisor-wS9Ehz_x.js.map +0 -1
@@ -1,13 +1,13 @@
1
- import { xn as buildLoopSpanNodes } from "./supervisor-wS9Ehz_x.js";
2
- import { m as ValidationError, o as NotFoundError, t as AgentEvalError } from "./errors-DodWX-cb.js";
3
- import { X as errorMessage, Z as fnv1a32Hex } from "./sandbox-profile-compat-DtuJWFrM.js";
4
- import { n as createStdioToolServer } from "./tool-server-XV4aJwoQ.js";
5
- import { n as delegate } from "./delegate-Dr-63jFl.js";
6
- import { t as UI_LENSES } from "./substrate-CGDFTSRh.js";
1
+ import { xn as buildLoopSpanNodes } from "./supervisor-C1OePYE-.js";
2
+ import { m as ValidationError, o as NotFoundError, t as AgentEvalError } from "./errors-wuhGvpE3.js";
3
+ import { Q as fnv1a32Hex, Z as errorMessage } from "./sandbox-profile-compat-BxMQ1VXv.js";
4
+ import { n as createStdioToolServer } from "./tool-server-CwuYeW_Z.js";
5
+ import { n as delegate } from "./delegate-DgEie4ad.js";
6
+ import { t as UI_LENSES } from "./substrate-Db2pp6y3.js";
7
7
  import path, { dirname } from "node:path";
8
8
  import { mkdir, readFile, rename, writeFile } from "node:fs/promises";
9
9
  import "node:stream";
10
- //#region src/mcp/delegation-trace.ts
10
+ // src/mcp/delegation-trace.ts
11
11
  /**
12
12
  *
13
13
  * Compact loop-trace tee for the delegation journal.
@@ -29,7 +29,7 @@ import "node:stream";
29
29
  /** Default cap on spans retained per delegation record. @experimental */
30
30
  const DELEGATION_TRACE_MAX_SPANS = 512;
31
31
  /** Default cap on the serialized trace payload per record, in bytes. @experimental */
32
- const DELEGATION_TRACE_MAX_BYTES = 256 * 1024;
32
+ const DELEGATION_TRACE_MAX_BYTES = 262144;
33
33
  /**
34
34
  * Derive the compact span tree for ONE loop run from its buffered
35
35
  * `LoopTraceEvent` stream. Same reconstruction as the OTEL exporter
@@ -131,8 +131,7 @@ function composeLoopTraceEmitters(...emitters) {
131
131
  if (pending.length > 0) return Promise.all(pending).then(() => void 0);
132
132
  } };
133
133
  }
134
- //#endregion
135
- //#region src/mcp/delegation-store.ts
134
+ // src/mcp/delegation-store.ts
136
135
  /**
137
136
  *
138
137
  * Persistence port for the MCP delegation queue.
@@ -304,8 +303,7 @@ function parsePersistedState(raw) {
304
303
  function cloneRecord(record) {
305
304
  return structuredClone(record);
306
305
  }
307
- //#endregion
308
- //#region src/mcp/feedback-store.ts
306
+ // src/mcp/feedback-store.ts
309
307
  /** In-memory `FeedbackStore` — suitable for single-process use and tests. @stable */
310
308
  var InMemoryFeedbackStore = class {
311
309
  events = [];
@@ -336,8 +334,7 @@ function eventToSnapshot(event) {
336
334
  if (event.rating.label) snap.label = event.rating.label;
337
335
  return snap;
338
336
  }
339
- //#endregion
340
- //#region src/mcp/task-queue.ts
337
+ // src/mcp/task-queue.ts
341
338
  /**
342
339
  *
343
340
  * State machine for async MCP delegations:
@@ -852,8 +849,7 @@ function canonicalize(value) {
852
849
  for (const [k, v] of entries) out[k] = canonicalize(v);
853
850
  return out;
854
851
  }
855
- //#endregion
856
- //#region src/mcp/tools/delegate.ts
852
+ // src/mcp/tools/delegate.ts
857
853
  /** MCP tool name for the `delegate` generic-delegation tool. @stable */
858
854
  const DELEGATE_TOOL_NAME = "delegate";
859
855
  /** Human-readable description of the `delegate` MCP tool, injected into the tool manifest. @stable */
@@ -947,8 +943,7 @@ function createDelegateHandler(options) {
947
943
  return toDelegateResult(await delegate(args.intent, opts));
948
944
  };
949
945
  }
950
- //#endregion
951
- //#region src/mcp/tools/delegate-feedback.ts
946
+ // src/mcp/tools/delegate-feedback.ts
952
947
  /** MCP tool name for the `delegate_feedback` feedback-recording tool. @stable */
953
948
  const DELEGATE_FEEDBACK_TOOL_NAME = "delegate_feedback";
954
949
  /** Human-readable description of the `delegate_feedback` MCP tool, injected into the tool manifest. @stable */
@@ -1110,8 +1105,7 @@ function createDelegateFeedbackHandler(options) {
1110
1105
  function randomFeedbackId() {
1111
1106
  return `fbk-${Date.now().toString(36)}-${Math.random().toString(36).slice(2, 10)}`;
1112
1107
  }
1113
- //#endregion
1114
- //#region src/mcp/tools/delegate-ui-audit.ts
1108
+ // src/mcp/tools/delegate-ui-audit.ts
1115
1109
  /**
1116
1110
  *
1117
1111
  * `delegate_ui_audit` MCP tool — async kickoff for UI audit runs. Validates
@@ -1365,8 +1359,7 @@ function defaultEstimate(args) {
1365
1359
  const routes = args.routes.length;
1366
1360
  return PER_LENS_PER_ROUTE_ESTIMATE_MS * lenses * routes;
1367
1361
  }
1368
- //#endregion
1369
- //#region src/mcp/types.ts
1362
+ // src/mcp/types.ts
1370
1363
  /**
1371
1364
  * Every delegation profile a queued record can carry. One owner: the tool schemas and validators
1372
1365
  * that filter on a profile read this list, so a profile added here cannot be one a tool refuses.
@@ -1377,8 +1370,7 @@ const delegationProfiles = [
1377
1370
  "researcher",
1378
1371
  "ui-auditor"
1379
1372
  ];
1380
- //#endregion
1381
- //#region src/mcp/tools/delegation-history.ts
1373
+ // src/mcp/tools/delegation-history.ts
1382
1374
  /** MCP tool name for the `delegation_history` read-past-delegations tool. @stable */
1383
1375
  const DELEGATION_HISTORY_TOOL_NAME = "delegation_history";
1384
1376
  /** Human-readable description of the `delegation_history` MCP tool, injected into the tool manifest. @stable */
@@ -1454,8 +1446,7 @@ function createDelegationHistoryHandler(options) {
1454
1446
  return { delegations: options.queue.history(args) };
1455
1447
  };
1456
1448
  }
1457
- //#endregion
1458
- //#region src/mcp/tools/delegation-status.ts
1449
+ // src/mcp/tools/delegation-status.ts
1459
1450
  /**
1460
1451
  *
1461
1452
  * `delegation_status` MCP tool — synchronous poll. Returns the current
@@ -1524,8 +1515,7 @@ function createDelegationStatusHandler(options) {
1524
1515
  return status;
1525
1516
  };
1526
1517
  }
1527
- //#endregion
1528
- //#region src/mcp/server.ts
1518
+ // src/mcp/server.ts
1529
1519
  const DEFAULT_SERVER_NAME = "agent-runtime-mcp";
1530
1520
  const DEFAULT_SERVER_VERSION = "0.22.0";
1531
1521
  /**
@@ -1593,7 +1583,6 @@ function createMcpServer(options = {}) {
1593
1583
  stop: stdio.stop
1594
1584
  };
1595
1585
  }
1596
- //#endregion
1597
1586
  export { composeLoopTraceEmitters as a, FileDelegationStore as i, createDelegateHandler as n, DelegationTaskQueue as r, createMcpServer as t };
1598
1587
 
1599
- //# sourceMappingURL=server-CKPwZU-I.js.map
1588
+ //# sourceMappingURL=server-fvEMwGMQ.js.map