@tangle-network/agent-runtime 0.348.1 → 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 (130) hide show
  1. package/dist/{activation-BEGalhOL.js → activation-CfJMyzEs.js} +12 -14
  2. package/dist/{activation-BEGalhOL.js.map → activation-CfJMyzEs.js.map} +1 -1
  3. package/dist/{activation-NQZP_mdI.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-DKQtOO9d.js → bundle-Ze8pd07a.js} +3 -4
  12. package/dist/{bundle-DKQtOO9d.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-Bm6leXc6.js → coordination-manager-BkVfWlMz.js} +101 -132
  17. package/dist/coordination-manager-BkVfWlMz.js.map +1 -0
  18. package/dist/{delegate-Cp5-PsaX.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-CE_pzU31.js → graph-Cx0FhKSE.js} +192 -15
  26. package/dist/graph-Cx0FhKSE.js.map +1 -0
  27. package/dist/{improve-wT11zteg.js → improve-i0HU1-aa.js} +35 -53
  28. package/dist/{improve-wT11zteg.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-CZzeeJTG.js → loop-runner-BwN9MhdP.js} +5 -6
  39. package/dist/{loop-runner-CZzeeJTG.js.map → loop-runner-BwN9MhdP.js.map} +1 -1
  40. package/dist/{loop-runner-CY5HHhtR.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-GSxWwP-b.js.map +1 -0
  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-TEEHSJwq.js → prepare-DE8TQnLu.js} +49 -69
  58. package/dist/{prepare-TEEHSJwq.js.map → prepare-DE8TQnLu.js.map} +1 -1
  59. package/dist/{profile-6OLpbjvV.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-CC0HdOHo.js → provision-supervisor-Bde_FF0R.js} +11 -15
  69. package/dist/{provision-supervisor-CC0HdOHo.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-B_40dXlF.js → runtime-6Ec9sHRe.js} +833 -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-_fEtHPCj.js → sandbox-profile-compat-BxMQ1VXv.js} +62 -44
  80. package/dist/sandbox-profile-compat-BxMQ1VXv.js.map +1 -0
  81. package/dist/{search-executor-COd2F2wp.js → search-executor-B7g_5Wjl.js} +12 -17
  82. package/dist/search-executor-B7g_5Wjl.js.map +1 -0
  83. package/dist/{server-BGB4R4wQ.js → server-fvEMwGMQ.js} +19 -30
  84. package/dist/{server-BGB4R4wQ.js.map → server-fvEMwGMQ.js.map} +1 -1
  85. package/dist/{structural-rollout-Wl_rCuzM.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-BUOeThuB.js → supervise-CaeZcgAW.js} +615 -203
  90. package/dist/supervise-CaeZcgAW.js.map +1 -0
  91. package/dist/{supervisor-DDy0aEtR.js → supervisor-C1OePYE-.js} +526 -642
  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 +8 -16
  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-hc4cmSc7.d.ts → types-Fowuwdz2.d.ts} +555 -503
  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 +19 -4
  117. package/skills/be-ambitious/SKILL.md +46 -0
  118. package/skills/graph-designer/SKILL.md +15 -2
  119. package/skills/profile-authoring/SKILL.md +1 -1
  120. package/dist/coordination-manager-Bm6leXc6.js.map +0 -1
  121. package/dist/delegate-Cp5-PsaX.js.map +0 -1
  122. package/dist/graph-CE_pzU31.js.map +0 -1
  123. package/dist/model-policy-CyCUwHed.js.map +0 -1
  124. package/dist/profile-6OLpbjvV.js.map +0 -1
  125. package/dist/runtime-B_40dXlF.js.map +0 -1
  126. package/dist/sandbox-profile-compat-_fEtHPCj.js.map +0 -1
  127. package/dist/search-executor-COd2F2wp.js.map +0 -1
  128. package/dist/structural-rollout-Wl_rCuzM.js.map +0 -1
  129. package/dist/supervise-BUOeThuB.js.map +0 -1
  130. package/dist/supervisor-DDy0aEtR.js.map +0 -1
@@ -1,4 +1,3 @@
1
- //#region src/runtime/task-queue.d.ts
2
1
  /** One identified task admitted by a caller-owned ready queue. */
3
2
  interface TaskQueueEntry<T> {
4
3
  readonly id: string;
@@ -30,6 +29,5 @@ interface TaskQueueOptions<T, R> {
30
29
  * Task failures are yielded, never normalized or substituted for caller failures.
31
30
  */
32
31
  declare function runTaskQueue<T, R>(options: TaskQueueOptions<T, R>): AsyncGenerator<TaskQueueSettlement<T, R>>;
33
- //#endregion
34
32
  export { runTaskQueue as i, TaskQueueOptions as n, TaskQueueSettlement as r, TaskQueueEntry as t };
35
- //# sourceMappingURL=task-queue-0fKkoweu.d.ts.map
33
+ //# sourceMappingURL=task-queue-kefGy79U.d.ts.map
@@ -1,2 +1,2 @@
1
- import { i as runTaskQueue, n as TaskQueueOptions, r as TaskQueueSettlement, t as TaskQueueEntry } from "./task-queue-0fKkoweu.js";
1
+ import { i as runTaskQueue, n as TaskQueueOptions, r as TaskQueueSettlement, t as TaskQueueEntry } from "./task-queue-kefGy79U.js";
2
2
  export { TaskQueueEntry, TaskQueueOptions, TaskQueueSettlement, runTaskQueue };
@@ -1,4 +1,4 @@
1
- //#region src/runtime/task-queue.ts
1
+ // src/runtime/task-queue.ts
2
2
  /**
3
3
  * Admit bounded work and yield settlements for the caller's policy to interpret.
4
4
  * Readiness, cancellation, retries, and persistence belong to that caller.
@@ -44,7 +44,6 @@ async function* runTaskQueue(options) {
44
44
  await Promise.allSettled(active.values());
45
45
  }
46
46
  }
47
- //#endregion
48
47
  export { runTaskQueue };
49
48
 
50
49
  //# sourceMappingURL=task-queue.js.map
package/dist/testing.d.ts CHANGED
@@ -1,6 +1,5 @@
1
- import { Ay as AnalystRegistry, Bu as RunGraphTestOptions, Ct as SuperviseProfileEntry, Cv as ChildQuestionInbox, Df as ManagerWakePolicy, Iv as AuthorizeDownMessage, Kv as MapOnSettleRoute, M as Budget, My as AnalyzeOnSettleRoute, Oi as ResultBlobStore, Pf as StopRule, Qm as ToolLoopChat, Sf as SupervisorAgentTestDeps, Sg as DeliverableSpec, Uu as runGraphWithTestBrain, Vi as Agent, Zf as SupervisorFinalizer, Zm as ToolLoopCallContext, _t as PeerAuditAccess, bt as SpawnPreflightContext, cd as superviseWithTestBrain, cv as CoordinationEvent, eh as ToolLoopCompactionOptions, ft as CoordinationTools, gt as MakeWorkerAgent, ht as GraphSubtasks, hv as DecideGate, hy as McpToolDescriptor, kp as SpawnResourceReader, mt as GraphSubtaskPreparation, mv as WorkerWatchOptions, mx as HarnessTranscriptCapture, nh as ToolLoopToolCall, nm as Inbox, pd as SuperviseTestOptions, pf as supervisorAgentWithTestBrain, qm as RouterResponseReceipt, sp as CoordinationDeliveryEvidence, th as ToolLoopMessageRecord, up as PriorCoordination, vy as BusRecord, wv as EscalateQuestion, xt as SpawnRefusal, yt as SpawnPreflight, yv as RouteFlow, zf as RunCancelRequest, zv as ContinuityMode } from "./types-hc4cmSc7.js";
1
+ import { Ch as ToolLoopCallContext, Ct as SuperviseProfileEntry, Dh as ToolLoopMessageRecord, Eh as ToolLoopCompactionOptions, Fv as CoordinationEvent, Gy as BusRecord, Hv as DecideGate, Hy as McpToolDescriptor, Ip as PriorCoordination, Kv as RouteFlow, M as Budget, Nd as superviseWithTestBrain, Np as CoordinationDeliveryEvidence, Oh as ToolLoopToolCall, Om as Inbox, Qf as ManagerWakePolicy, Rd as SuperviseTestOptions, Rf as supervisorAgentWithTestBrain, Sp as SupervisorFinalizer, Vv as WorkerWatchOptions, Vx as HarnessTranscriptCapture, Xv as ChildQuestionInbox, Yg as DeliverableSpec, Zi as ResultBlobStore, Zv as EscalateQuestion, _t as PeerAuditAccess, ab as AnalyzeOnSettleRoute, ap as StopRule, bt as SpawnPreflightContext, fd as runGraphWithTestBrain, ft as CoordinationTools, fy as ContinuityMode, gt as MakeWorkerAgent, ht as GraphSubtasks, ld as RunGraphTestOptions, ly as AuthorizeDownMessage, mt as GraphSubtaskPreparation, qf as SupervisorAgentTestDeps, rb as AnalystRegistry, tm as SpawnResourceReader, ua as Agent, up as RunCancelRequest, wh as ToolLoopChat, xt as SpawnRefusal, yh as RouterResponseReceipt, yt as SpawnPreflight, yy as MapOnSettleRoute } from "./types-Fowuwdz2.js";
2
2
  import { AgentImprovementProposal, AgentProfile, AgentProfileImprovementMeasuredComparison, SandboxSizePreset } from "@tangle-network/agent-interface";
3
- //#region src/runtime/supervise/router-transcript.d.ts
4
3
  /** What the brain returned for one turn, as the recorder keeps it. */
5
4
  interface RouterTranscriptReply {
6
5
  readonly content?: string | null;
@@ -16,8 +15,6 @@ interface RouterTranscript {
16
15
  /** The whole conversation so far as a harness transcript. */
17
16
  capture(): HarnessTranscriptCapture;
18
17
  }
19
- //#endregion
20
- //#region src/runtime/supervise/driver-agent-options.d.ts
21
18
  interface DriverAgentOptions {
22
19
  readonly name: string;
23
20
  /** The driver-LLM seam — ONE inference turn over the conversation + the coordination tool specs
@@ -122,7 +119,7 @@ interface DriverAgentOptions {
122
119
  * into it), an absolute deadline, the driver's own stop, and abort, all checked before each
123
120
  * turn. Without a deadline, a manager stops once it has overdrawn its pool by the pool's size
124
121
  * again, and a brain that reports no usage keeps a 16-turn bound unless a dollar cap applies. A manager awaits one settlement per turn, so the old default of 16 ended any manager
125
- * with more than about 14 workers and tore its unfinished workers down: measured 2026-09-25 on
122
+ * with more than about 14 workers and tore its unfinished workers down: on
126
123
  * a 1 + 20 + 400 tree, 124 of 420 agents settled `down` at 16 and none at 0. */
127
124
  readonly maxTurns?: number;
128
125
  /** Injected clock for the in-loop absolute-deadline guard — keeps the deadline check
@@ -217,30 +214,25 @@ interface DriverAgentOptions {
217
214
  */
218
215
  readonly abortRun?: (reason: string, request?: RunCancelRequest) => void;
219
216
  }
220
- //#endregion
221
- //#region src/runtime/supervise/driver-brain-agent.d.ts
222
217
  /**
223
218
  * Build the intelligent recursive driver. Its `act` is the LLM tool-loop; spawn it as a
224
219
  * `driverChild` (`driver-executor.ts`) to run it inside a nested scope, recursively.
225
220
  */
226
- declare function driverAgent(opts: DriverAgentOptions): Agent<unknown, unknown>;
227
- //#endregion
228
- //#region src/testing/index.d.ts
221
+ export declare function driverAgent(opts: DriverAgentOptions): Agent<unknown, unknown>;
229
222
  /** A proposal produced by Runtime's opaque profile-improvement path. */
230
- type AgentProfileImprovementProposalFixture = Omit<AgentImprovementProposal, 'evaluation'> & {
223
+ export type AgentProfileImprovementProposalFixture = Omit<AgentImprovementProposal, 'evaluation'> & {
231
224
  evaluation: AgentProfileImprovementMeasuredComparison;
232
225
  };
233
226
  /** Complete private state for exercising profile activation and restore in consumer tests. */
234
- interface AgentProfileImprovementFixture {
227
+ export interface AgentProfileImprovementFixture {
235
228
  proposal: AgentProfileImprovementProposalFixture;
236
229
  baselineProfile: AgentProfile;
237
230
  candidateProfile: AgentProfile;
238
231
  recommendedSize: SandboxSizePreset;
239
232
  }
240
233
  /** Load an isolated, production-validated Runtime proposal for consumer tests. */
241
- declare function loadAgentImprovementProposalFixture(): AgentImprovementProposal;
234
+ export declare function loadAgentImprovementProposalFixture(): AgentImprovementProposal;
242
235
  /** Load an isolated profile proposal and its private activation state for consumer tests. */
243
- declare function loadAgentProfileImprovementFixture(): AgentProfileImprovementFixture;
244
- //#endregion
245
- export { AgentProfileImprovementFixture, AgentProfileImprovementProposalFixture, type AuthorizeDownMessage, type ChildQuestionInbox, type CoordinationDeliveryEvidence, type DriverAgentOptions, type GraphSubtaskPreparation, type GraphSubtasks, type PeerAuditAccess, type PriorCoordination, type RunGraphTestOptions, type SpawnPreflight, type SpawnPreflightContext, type SpawnRefusal, type SuperviseTestOptions, type SupervisorAgentTestDeps, type ToolLoopCallContext, type ToolLoopChat, driverAgent, loadAgentImprovementProposalFixture, loadAgentProfileImprovementFixture, runGraphWithTestBrain, superviseWithTestBrain, supervisorAgentWithTestBrain };
236
+ export declare function loadAgentProfileImprovementFixture(): AgentProfileImprovementFixture;
237
+ export { type AuthorizeDownMessage, type ChildQuestionInbox, type CoordinationDeliveryEvidence, type DriverAgentOptions, type GraphSubtaskPreparation, type GraphSubtasks, type PeerAuditAccess, type PriorCoordination, type RunGraphTestOptions, type SpawnPreflight, type SpawnPreflightContext, type SpawnRefusal, type SuperviseTestOptions, type SupervisorAgentTestDeps, type ToolLoopCallContext, type ToolLoopChat, runGraphWithTestBrain, superviseWithTestBrain, supervisorAgentWithTestBrain };
246
238
  //# sourceMappingURL=testing.d.ts.map