@wrongstack/core 0.284.1 → 0.285.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 (810) hide show
  1. package/dist/agent-status-tracker.d.ts +74 -0
  2. package/dist/agent-status-tracker.d.ts.map +1 -0
  3. package/dist/autophase/auto-phase-planner.d.ts +79 -0
  4. package/dist/autophase/auto-phase-planner.d.ts.map +1 -0
  5. package/dist/autophase/auto-phase-runner.d.ts +79 -0
  6. package/dist/autophase/auto-phase-runner.d.ts.map +1 -0
  7. package/dist/autophase/checkpoint.d.ts +49 -0
  8. package/dist/autophase/checkpoint.d.ts.map +1 -0
  9. package/dist/autophase/index.d.ts +9 -0
  10. package/dist/autophase/index.d.ts.map +1 -0
  11. package/dist/autophase/phase-graph-builder.d.ts +46 -0
  12. package/dist/autophase/phase-graph-builder.d.ts.map +1 -0
  13. package/dist/autophase/phase-orchestrator.d.ts +150 -0
  14. package/dist/autophase/phase-orchestrator.d.ts.map +1 -0
  15. package/dist/autophase/phase-store.d.ts +29 -0
  16. package/dist/autophase/phase-store.d.ts.map +1 -0
  17. package/dist/autophase/types.d.ts +329 -0
  18. package/dist/autophase/types.d.ts.map +1 -0
  19. package/dist/boot.d.ts +73 -0
  20. package/dist/boot.d.ts.map +1 -0
  21. package/dist/coordination/adaptive-concurrency.d.ts +63 -0
  22. package/dist/coordination/adaptive-concurrency.d.ts.map +1 -0
  23. package/dist/coordination/agent-bridge.d.ts +24 -0
  24. package/dist/coordination/agent-bridge.d.ts.map +1 -0
  25. package/dist/coordination/agent-monitor.d.ts +100 -0
  26. package/dist/coordination/agent-monitor.d.ts.map +1 -0
  27. package/dist/coordination/agent-subagent-runner.d.ts +74 -0
  28. package/dist/coordination/agent-subagent-runner.d.ts.map +1 -0
  29. package/dist/coordination/agents/agent-prompts.d.ts +2 -0
  30. package/dist/coordination/agents/agent-prompts.d.ts.map +1 -0
  31. package/dist/coordination/agents/index.d.ts +35 -0
  32. package/dist/coordination/agents/index.d.ts.map +1 -0
  33. package/dist/coordination/agents/phase1-discovery.d.ts +4 -0
  34. package/dist/coordination/agents/phase1-discovery.d.ts.map +1 -0
  35. package/dist/coordination/agents/phase2-planning.d.ts +4 -0
  36. package/dist/coordination/agents/phase2-planning.d.ts.map +1 -0
  37. package/dist/coordination/agents/phase3-build.d.ts +4 -0
  38. package/dist/coordination/agents/phase3-build.d.ts.map +1 -0
  39. package/dist/coordination/agents/phase3-techstack.d.ts +13 -0
  40. package/dist/coordination/agents/phase3-techstack.d.ts.map +1 -0
  41. package/dist/coordination/agents/phase4-verify.d.ts +4 -0
  42. package/dist/coordination/agents/phase4-verify.d.ts.map +1 -0
  43. package/dist/coordination/agents/phase5-review.d.ts +4 -0
  44. package/dist/coordination/agents/phase5-review.d.ts.map +1 -0
  45. package/dist/coordination/agents/phase6-domain.d.ts +4 -0
  46. package/dist/coordination/agents/phase6-domain.d.ts.map +1 -0
  47. package/dist/coordination/agents/phase7-knowledge.d.ts +4 -0
  48. package/dist/coordination/agents/phase7-knowledge.d.ts.map +1 -0
  49. package/dist/coordination/agents/phase8-delivery.d.ts +4 -0
  50. package/dist/coordination/agents/phase8-delivery.d.ts.map +1 -0
  51. package/dist/coordination/agents/phase9-meta.d.ts +4 -0
  52. package/dist/coordination/agents/phase9-meta.d.ts.map +1 -0
  53. package/dist/coordination/agents/types.d.ts +79 -0
  54. package/dist/coordination/agents/types.d.ts.map +1 -0
  55. package/dist/coordination/agents.d.ts +8 -0
  56. package/dist/coordination/agents.d.ts.map +1 -0
  57. package/dist/coordination/auto-extend.d.ts +46 -0
  58. package/dist/coordination/auto-extend.d.ts.map +1 -0
  59. package/dist/coordination/autonomous-brain.d.ts +154 -0
  60. package/dist/coordination/autonomous-brain.d.ts.map +1 -0
  61. package/dist/coordination/autonomous-coordinator.d.ts +239 -0
  62. package/dist/coordination/autonomous-coordinator.d.ts.map +1 -0
  63. package/dist/coordination/brain-monitor.d.ts +74 -0
  64. package/dist/coordination/brain-monitor.d.ts.map +1 -0
  65. package/dist/coordination/brain.d.ts +104 -0
  66. package/dist/coordination/brain.d.ts.map +1 -0
  67. package/dist/coordination/change-manager.d.ts +151 -0
  68. package/dist/coordination/change-manager.d.ts.map +1 -0
  69. package/dist/coordination/checkpoint-wiring.d.ts +61 -0
  70. package/dist/coordination/checkpoint-wiring.d.ts.map +1 -0
  71. package/dist/coordination/collab-bus.d.ts +132 -0
  72. package/dist/coordination/collab-bus.d.ts.map +1 -0
  73. package/dist/coordination/collab-debug.d.ts +302 -0
  74. package/dist/coordination/collab-debug.d.ts.map +1 -0
  75. package/dist/coordination/commit-safety.d.ts +72 -0
  76. package/dist/coordination/commit-safety.d.ts.map +1 -0
  77. package/dist/coordination/consensus-protocol.d.ts +106 -0
  78. package/dist/coordination/consensus-protocol.d.ts.map +1 -0
  79. package/dist/coordination/coordinator/error-classifier.d.ts +15 -0
  80. package/dist/coordination/coordinator/error-classifier.d.ts.map +1 -0
  81. package/dist/coordination/delegate-tool.d.ts +101 -0
  82. package/dist/coordination/delegate-tool.d.ts.map +1 -0
  83. package/dist/coordination/dep-watcher-bridge.d.ts +47 -0
  84. package/dist/coordination/dep-watcher-bridge.d.ts.map +1 -0
  85. package/dist/coordination/dep-watcher.d.ts +74 -0
  86. package/dist/coordination/dep-watcher.d.ts.map +1 -0
  87. package/dist/coordination/director/director-errors.d.ts +29 -0
  88. package/dist/coordination/director/director-errors.d.ts.map +1 -0
  89. package/dist/coordination/director-construction.d.ts +90 -0
  90. package/dist/coordination/director-construction.d.ts.map +1 -0
  91. package/dist/coordination/director-prompts.d.ts +119 -0
  92. package/dist/coordination/director-prompts.d.ts.map +1 -0
  93. package/dist/coordination/director-session.d.ts +68 -0
  94. package/dist/coordination/director-session.d.ts.map +1 -0
  95. package/dist/coordination/director-tools.d.ts +65 -0
  96. package/dist/coordination/director-tools.d.ts.map +1 -0
  97. package/dist/coordination/director.d.ts +802 -0
  98. package/dist/coordination/director.d.ts.map +1 -0
  99. package/dist/coordination/dispatcher.d.ts +82 -0
  100. package/dist/coordination/dispatcher.d.ts.map +1 -0
  101. package/dist/coordination/file-author-tracker.d.ts +76 -0
  102. package/dist/coordination/file-author-tracker.d.ts.map +1 -0
  103. package/dist/coordination/fleet-bus.d.ts +122 -0
  104. package/dist/coordination/fleet-bus.d.ts.map +1 -0
  105. package/dist/coordination/fleet-event-validation.d.ts +10 -0
  106. package/dist/coordination/fleet-event-validation.d.ts.map +1 -0
  107. package/dist/coordination/fleet-manager.d.ts +234 -0
  108. package/dist/coordination/fleet-manager.d.ts.map +1 -0
  109. package/dist/coordination/fleet-spawn.d.ts +102 -0
  110. package/dist/coordination/fleet-spawn.d.ts.map +1 -0
  111. package/dist/coordination/fleet-status-tool.d.ts +36 -0
  112. package/dist/coordination/fleet-status-tool.d.ts.map +1 -0
  113. package/dist/coordination/fleet-supervisor.d.ts +157 -0
  114. package/dist/coordination/fleet-supervisor.d.ts.map +1 -0
  115. package/dist/coordination/fleet.d.ts +96 -0
  116. package/dist/coordination/fleet.d.ts.map +1 -0
  117. package/dist/coordination/global-mailbox.d.ts +234 -0
  118. package/dist/coordination/global-mailbox.d.ts.map +1 -0
  119. package/dist/coordination/icoordinator.d.ts +97 -0
  120. package/dist/coordination/icoordinator.d.ts.map +1 -0
  121. package/dist/coordination/ifleet-manager.d.ts +177 -0
  122. package/dist/coordination/ifleet-manager.d.ts.map +1 -0
  123. package/dist/coordination/in-memory-transport.d.ts +12 -0
  124. package/dist/coordination/in-memory-transport.d.ts.map +1 -0
  125. package/dist/coordination/index.d.ts +78 -2587
  126. package/dist/coordination/index.d.ts.map +1 -0
  127. package/dist/coordination/index.js +739 -254
  128. package/dist/coordination/index.js.map +7 -1
  129. package/dist/coordination/knowledge-graph.d.ts +217 -0
  130. package/dist/coordination/knowledge-graph.d.ts.map +1 -0
  131. package/dist/coordination/large-answer-store.d.ts +61 -0
  132. package/dist/coordination/large-answer-store.d.ts.map +1 -0
  133. package/dist/coordination/mail-tools.d.ts +34 -0
  134. package/dist/coordination/mail-tools.d.ts.map +1 -0
  135. package/dist/coordination/mailbox-actions.d.ts +68 -0
  136. package/dist/coordination/mailbox-actions.d.ts.map +1 -0
  137. package/dist/coordination/mailbox-health.d.ts +131 -0
  138. package/dist/coordination/mailbox-health.d.ts.map +1 -0
  139. package/dist/coordination/mailbox-hooks.d.ts +55 -0
  140. package/dist/coordination/mailbox-hooks.d.ts.map +1 -0
  141. package/dist/coordination/mailbox-tool.d.ts +75 -0
  142. package/dist/coordination/mailbox-tool.d.ts.map +1 -0
  143. package/dist/{mailbox-types-BGZWrYTJ.d.ts → coordination/mailbox-types.d.ts} +37 -22
  144. package/dist/coordination/mailbox-types.d.ts.map +1 -0
  145. package/dist/coordination/mailbox.d.ts +69 -0
  146. package/dist/coordination/mailbox.d.ts.map +1 -0
  147. package/dist/coordination/model-matrix.d.ts +98 -0
  148. package/dist/coordination/model-matrix.d.ts.map +1 -0
  149. package/dist/coordination/multi-agent-coordinator.d.ts +202 -0
  150. package/dist/coordination/multi-agent-coordinator.d.ts.map +1 -0
  151. package/dist/coordination/null-fleet-bus.d.ts +10 -0
  152. package/dist/coordination/null-fleet-bus.d.ts.map +1 -0
  153. package/dist/coordination/package-author-tracker.d.ts +87 -0
  154. package/dist/coordination/package-author-tracker.d.ts.map +1 -0
  155. package/dist/coordination/package-outdated-watcher.d.ts +83 -0
  156. package/dist/coordination/package-outdated-watcher.d.ts.map +1 -0
  157. package/dist/coordination/single-instance-mailbox.d.ts +154 -0
  158. package/dist/coordination/single-instance-mailbox.d.ts.map +1 -0
  159. package/dist/coordination/spawn-budget.d.ts +6 -0
  160. package/dist/coordination/spawn-budget.d.ts.map +1 -0
  161. package/dist/coordination/subagent-budget.d.ts +323 -0
  162. package/dist/coordination/subagent-budget.d.ts.map +1 -0
  163. package/dist/coordination/subagent-nicknames.d.ts +42 -0
  164. package/dist/coordination/subagent-nicknames.d.ts.map +1 -0
  165. package/dist/coordination/subagent-result-tool.d.ts +20 -0
  166. package/dist/coordination/subagent-result-tool.d.ts.map +1 -0
  167. package/dist/coordination/task-auctioneer.d.ts +143 -0
  168. package/dist/coordination/task-auctioneer.d.ts.map +1 -0
  169. package/dist/coordination/task-dag.d.ts +147 -0
  170. package/dist/coordination/task-dag.d.ts.map +1 -0
  171. package/dist/coordination/techstack-mailbox-consumer.d.ts +50 -0
  172. package/dist/coordination/techstack-mailbox-consumer.d.ts.map +1 -0
  173. package/dist/coordination/transport.d.ts +2 -0
  174. package/dist/coordination/transport.d.ts.map +1 -0
  175. package/dist/coordination/worktree-task-runner.d.ts +45 -0
  176. package/dist/coordination/worktree-task-runner.d.ts.map +1 -0
  177. package/dist/core/agent-internals.d.ts +41 -0
  178. package/dist/core/agent-internals.d.ts.map +1 -0
  179. package/dist/core/agent-loop.d.ts +18 -0
  180. package/dist/core/agent-loop.d.ts.map +1 -0
  181. package/dist/core/agent-response.d.ts +21 -0
  182. package/dist/core/agent-response.d.ts.map +1 -0
  183. package/dist/core/agent-tools.d.ts +21 -0
  184. package/dist/core/agent-tools.d.ts.map +1 -0
  185. package/dist/core/agent-types.d.ts +95 -0
  186. package/dist/core/agent-types.d.ts.map +1 -0
  187. package/dist/core/agent.d.ts +54 -0
  188. package/dist/core/agent.d.ts.map +1 -0
  189. package/dist/core/btw.d.ts +40 -0
  190. package/dist/core/btw.d.ts.map +1 -0
  191. package/dist/core/context.d.ts +269 -0
  192. package/dist/core/context.d.ts.map +1 -0
  193. package/dist/core/continue-intent.d.ts +92 -0
  194. package/dist/core/continue-intent.d.ts.map +1 -0
  195. package/dist/core/continue-to-next-iteration.d.ts +96 -0
  196. package/dist/core/continue-to-next-iteration.d.ts.map +1 -0
  197. package/dist/core/conversation-state.d.ts +96 -0
  198. package/dist/core/conversation-state.d.ts.map +1 -0
  199. package/dist/core/fallback-model.d.ts +94 -0
  200. package/dist/core/fallback-model.d.ts.map +1 -0
  201. package/dist/core/fleet-pulse.d.ts +42 -0
  202. package/dist/core/fleet-pulse.d.ts.map +1 -0
  203. package/dist/core/input-builder.d.ts +95 -0
  204. package/dist/core/input-builder.d.ts.map +1 -0
  205. package/dist/core/instruction-bundle.d.ts +22 -0
  206. package/dist/core/instruction-bundle.d.ts.map +1 -0
  207. package/dist/core/iteration-limit.d.ts +35 -0
  208. package/dist/core/iteration-limit.d.ts.map +1 -0
  209. package/dist/core/mailbox-loop.d.ts +63 -0
  210. package/dist/core/mailbox-loop.d.ts.map +1 -0
  211. package/dist/core/modes/brief.d.ts +2 -0
  212. package/dist/core/modes/brief.d.ts.map +1 -0
  213. package/dist/core/modes/default.d.ts +8 -0
  214. package/dist/core/modes/default.d.ts.map +1 -0
  215. package/dist/core/modes/teach.d.ts +2 -0
  216. package/dist/core/modes/teach.d.ts.map +1 -0
  217. package/dist/core/provider-runner.d.ts +24 -0
  218. package/dist/core/provider-runner.d.ts.map +1 -0
  219. package/dist/core/queued-messages.d.ts +55 -0
  220. package/dist/core/queued-messages.d.ts.map +1 -0
  221. package/dist/core/run-env.d.ts +49 -0
  222. package/dist/core/run-env.d.ts.map +1 -0
  223. package/dist/core/streaming-response-builder.d.ts +78 -0
  224. package/dist/core/streaming-response-builder.d.ts.map +1 -0
  225. package/dist/core/system-prompt-builder.d.ts +213 -0
  226. package/dist/core/system-prompt-builder.d.ts.map +1 -0
  227. package/dist/defaults/index.d.ts +68 -158
  228. package/dist/defaults/index.d.ts.map +1 -0
  229. package/dist/defaults/index.js +1257 -819
  230. package/dist/defaults/index.js.map +7 -1
  231. package/dist/execution/auto-compaction-middleware.d.ts +123 -0
  232. package/dist/execution/auto-compaction-middleware.d.ts.map +1 -0
  233. package/dist/execution/autonomous-runner.d.ts +55 -0
  234. package/dist/execution/autonomous-runner.d.ts.map +1 -0
  235. package/dist/execution/autonomy-brain.d.ts +90 -0
  236. package/dist/execution/autonomy-brain.d.ts.map +1 -0
  237. package/dist/execution/autonomy-prompt-contributor.d.ts +39 -0
  238. package/dist/execution/autonomy-prompt-contributor.d.ts.map +1 -0
  239. package/dist/execution/compaction-core.d.ts +103 -0
  240. package/dist/execution/compaction-core.d.ts.map +1 -0
  241. package/dist/execution/compactor.d.ts +56 -0
  242. package/dist/execution/compactor.d.ts.map +1 -0
  243. package/dist/execution/design-color.d.ts +31 -0
  244. package/dist/execution/design-color.d.ts.map +1 -0
  245. package/dist/execution/design-detect.d.ts +96 -0
  246. package/dist/execution/design-detect.d.ts.map +1 -0
  247. package/dist/execution/design-kit-loader.d.ts +53 -0
  248. package/dist/execution/design-kit-loader.d.ts.map +1 -0
  249. package/dist/execution/design-materialize.d.ts +32 -0
  250. package/dist/execution/design-materialize.d.ts.map +1 -0
  251. package/dist/execution/design-project-store.d.ts +57 -0
  252. package/dist/execution/design-project-store.d.ts.map +1 -0
  253. package/dist/execution/design-verify.d.ts +44 -0
  254. package/dist/execution/design-verify.d.ts.map +1 -0
  255. package/dist/execution/error-handler.d.ts +34 -0
  256. package/dist/execution/error-handler.d.ts.map +1 -0
  257. package/dist/{parallel-eternal-engine-HUrtePLd.d.ts → execution/eternal-autonomy.d.ts} +10 -225
  258. package/dist/execution/eternal-autonomy.d.ts.map +1 -0
  259. package/dist/execution/goal-preamble.d.ts +2 -0
  260. package/dist/execution/goal-preamble.d.ts.map +1 -0
  261. package/dist/execution/index.d.ts +21 -180
  262. package/dist/execution/index.d.ts.map +1 -0
  263. package/dist/execution/index.js +465 -180
  264. package/dist/execution/index.js.map +7 -1
  265. package/dist/execution/intelligent-compactor.d.ts +85 -0
  266. package/dist/execution/intelligent-compactor.d.ts.map +1 -0
  267. package/dist/execution/model-runtime.d.ts +75 -0
  268. package/dist/execution/model-runtime.d.ts.map +1 -0
  269. package/dist/execution/parallel-eternal-engine.d.ts +130 -0
  270. package/dist/execution/parallel-eternal-engine.d.ts.map +1 -0
  271. package/dist/execution/prompt-enhancer.d.ts +12 -13
  272. package/dist/execution/prompt-enhancer.d.ts.map +1 -0
  273. package/dist/execution/prompt-enhancer.js +13 -7
  274. package/dist/execution/prompt-enhancer.js.map +7 -1
  275. package/dist/execution/prompt-loader.d.ts +52 -0
  276. package/dist/execution/prompt-loader.d.ts.map +1 -0
  277. package/dist/execution/provider-runner-impl.d.ts +14 -0
  278. package/dist/execution/provider-runner-impl.d.ts.map +1 -0
  279. package/dist/execution/regex-patterns.d.ts +7 -0
  280. package/dist/execution/regex-patterns.d.ts.map +1 -0
  281. package/dist/execution/retry-policy.d.ts +35 -0
  282. package/dist/execution/retry-policy.d.ts.map +1 -0
  283. package/dist/execution/selective-compactor.d.ts +94 -0
  284. package/dist/execution/selective-compactor.d.ts.map +1 -0
  285. package/dist/execution/skill-loader.d.ts +43 -0
  286. package/dist/execution/skill-loader.d.ts.map +1 -0
  287. package/dist/execution/strategy-compactor.d.ts +43 -0
  288. package/dist/execution/strategy-compactor.d.ts.map +1 -0
  289. package/dist/execution/tool-executor.d.ts +112 -0
  290. package/dist/execution/tool-executor.d.ts.map +1 -0
  291. package/dist/extension/extension-points.d.ts +121 -0
  292. package/dist/extension/extension-points.d.ts.map +1 -0
  293. package/dist/extension/index.d.ts +3 -10
  294. package/dist/extension/index.d.ts.map +1 -0
  295. package/dist/extension/index.js +59 -5
  296. package/dist/extension/index.js.map +7 -1
  297. package/dist/extension/registry.d.ts +86 -0
  298. package/dist/extension/registry.d.ts.map +1 -0
  299. package/dist/fleet-notifier.d.ts +28 -0
  300. package/dist/fleet-notifier.d.ts.map +1 -0
  301. package/dist/hooks/http-executor.d.ts +11 -0
  302. package/dist/hooks/http-executor.d.ts.map +1 -0
  303. package/dist/hooks/index.d.ts +10 -0
  304. package/dist/hooks/index.d.ts.map +1 -0
  305. package/dist/hooks/registry.d.ts +71 -0
  306. package/dist/hooks/registry.d.ts.map +1 -0
  307. package/dist/hooks/runner.d.ts +65 -0
  308. package/dist/hooks/runner.d.ts.map +1 -0
  309. package/dist/hooks/shell-executor.d.ts +33 -0
  310. package/dist/hooks/shell-executor.d.ts.map +1 -0
  311. package/dist/hooks/shell-hooks-equal.d.ts +15 -0
  312. package/dist/hooks/shell-hooks-equal.d.ts.map +1 -0
  313. package/dist/hq/agent-bridge.d.ts +27 -0
  314. package/dist/hq/agent-bridge.d.ts.map +1 -0
  315. package/dist/hq/alerts.d.ts +67 -0
  316. package/dist/hq/alerts.d.ts.map +1 -0
  317. package/dist/hq/auth-store.d.ts +161 -0
  318. package/dist/hq/auth-store.d.ts.map +1 -0
  319. package/dist/hq/brain-bridge.d.ts +37 -0
  320. package/dist/hq/brain-bridge.d.ts.map +1 -0
  321. package/dist/hq/commands.d.ts +122 -0
  322. package/dist/hq/commands.d.ts.map +1 -0
  323. package/dist/hq/cost-bridge.d.ts +36 -0
  324. package/dist/hq/cost-bridge.d.ts.map +1 -0
  325. package/dist/hq/factory.d.ts +66 -0
  326. package/dist/hq/factory.d.ts.map +1 -0
  327. package/dist/hq/fleet-bridge.d.ts +39 -0
  328. package/dist/hq/fleet-bridge.d.ts.map +1 -0
  329. package/dist/hq/index.d.ts +18 -816
  330. package/dist/hq/index.d.ts.map +1 -0
  331. package/dist/hq/index.js +417 -122
  332. package/dist/hq/index.js.map +7 -1
  333. package/dist/hq/mailbox-mapper.d.ts +27 -0
  334. package/dist/hq/mailbox-mapper.d.ts.map +1 -0
  335. package/dist/hq/persistence.d.ts +121 -0
  336. package/dist/hq/persistence.d.ts.map +1 -0
  337. package/dist/hq/protocol.d.ts +560 -0
  338. package/dist/hq/protocol.d.ts.map +1 -0
  339. package/dist/hq/publisher.d.ts +177 -0
  340. package/dist/hq/publisher.d.ts.map +1 -0
  341. package/dist/hq/redaction.d.ts +30 -0
  342. package/dist/hq/redaction.d.ts.map +1 -0
  343. package/dist/hq/session-bridge.d.ts +29 -0
  344. package/dist/hq/session-bridge.d.ts.map +1 -0
  345. package/dist/hq/tool-bridge.d.ts +41 -0
  346. package/dist/hq/tool-bridge.d.ts.map +1 -0
  347. package/dist/hq/transcript-mapper.d.ts +36 -0
  348. package/dist/hq/transcript-mapper.d.ts.map +1 -0
  349. package/dist/hq/worktree-bridge.d.ts +34 -0
  350. package/dist/hq/worktree-bridge.d.ts.map +1 -0
  351. package/dist/index.d.ts +108 -2872
  352. package/dist/index.d.ts.map +1 -0
  353. package/dist/index.js +2724 -1344
  354. package/dist/index.js.map +7 -1
  355. package/dist/infrastructure/context-manager.d.ts +92 -0
  356. package/dist/infrastructure/context-manager.d.ts.map +1 -0
  357. package/dist/infrastructure/index.d.ts +6 -64
  358. package/dist/infrastructure/index.d.ts.map +1 -0
  359. package/dist/infrastructure/index.js +39 -12
  360. package/dist/infrastructure/index.js.map +7 -1
  361. package/dist/infrastructure/logger.d.ts +99 -0
  362. package/dist/infrastructure/logger.d.ts.map +1 -0
  363. package/dist/infrastructure/mcp-servers.d.ts +83 -0
  364. package/dist/infrastructure/mcp-servers.d.ts.map +1 -0
  365. package/dist/{path-resolver-CMS5307d.d.ts → infrastructure/path-resolver.d.ts} +3 -5
  366. package/dist/infrastructure/path-resolver.d.ts.map +1 -0
  367. package/dist/infrastructure/token-counter.d.ts +57 -0
  368. package/dist/infrastructure/token-counter.d.ts.map +1 -0
  369. package/dist/kernel/container.d.ts +84 -0
  370. package/dist/kernel/container.d.ts.map +1 -0
  371. package/dist/{events-Bgnh43r9.d.ts → kernel/events.d.ts} +112 -206
  372. package/dist/kernel/events.d.ts.map +1 -0
  373. package/dist/kernel/index.d.ts +6 -107
  374. package/dist/kernel/index.d.ts.map +1 -0
  375. package/dist/kernel/index.js +56 -4
  376. package/dist/kernel/index.js.map +7 -1
  377. package/dist/kernel/pipeline.d.ts +105 -0
  378. package/dist/kernel/pipeline.d.ts.map +1 -0
  379. package/dist/kernel/run-controller.d.ts +55 -0
  380. package/dist/kernel/run-controller.d.ts.map +1 -0
  381. package/dist/kernel/tokens.d.ts +53 -0
  382. package/dist/kernel/tokens.d.ts.map +1 -0
  383. package/dist/mailbox-attach.d.ts +27 -0
  384. package/dist/mailbox-attach.d.ts.map +1 -0
  385. package/dist/middleware/collab-pause.d.ts +73 -0
  386. package/dist/middleware/collab-pause.d.ts.map +1 -0
  387. package/dist/models/codex-catalog.d.ts +41 -0
  388. package/dist/models/codex-catalog.d.ts.map +1 -0
  389. package/dist/models/index.d.ts +8 -163
  390. package/dist/models/index.d.ts.map +1 -0
  391. package/dist/models/index.js +150 -51
  392. package/dist/models/index.js.map +7 -1
  393. package/dist/models/llm-selector.d.ts +47 -0
  394. package/dist/models/llm-selector.d.ts.map +1 -0
  395. package/dist/models/mode-store.d.ts +22 -0
  396. package/dist/models/mode-store.d.ts.map +1 -0
  397. package/dist/models/model-intelligence.d.ts +56 -0
  398. package/dist/models/model-intelligence.d.ts.map +1 -0
  399. package/dist/models/model-router.d.ts +100 -0
  400. package/dist/models/model-router.d.ts.map +1 -0
  401. package/dist/models/models-registry.d.ts +106 -0
  402. package/dist/models/models-registry.d.ts.map +1 -0
  403. package/dist/models/provider-model-resolve.d.ts +69 -0
  404. package/dist/models/provider-model-resolve.d.ts.map +1 -0
  405. package/dist/observability/event-bridge.d.ts +10 -0
  406. package/dist/observability/event-bridge.d.ts.map +1 -0
  407. package/dist/observability/health.d.ts +18 -0
  408. package/dist/observability/health.d.ts.map +1 -0
  409. package/dist/observability/index.d.ts +9 -354
  410. package/dist/observability/index.d.ts.map +1 -0
  411. package/dist/observability/index.js +21 -8
  412. package/dist/observability/index.js.map +7 -1
  413. package/dist/observability/metrics.d.ts +26 -0
  414. package/dist/observability/metrics.d.ts.map +1 -0
  415. package/dist/observability/otel-tracer.d.ts +41 -0
  416. package/dist/observability/otel-tracer.d.ts.map +1 -0
  417. package/dist/observability/otlp-metrics.d.ts +111 -0
  418. package/dist/observability/otlp-metrics.d.ts.map +1 -0
  419. package/dist/observability/otlp-traces.d.ts +95 -0
  420. package/dist/observability/otlp-traces.d.ts.map +1 -0
  421. package/dist/observability/prometheus.d.ts +49 -0
  422. package/dist/observability/prometheus.d.ts.map +1 -0
  423. package/dist/observability/tracer.d.ts +9 -0
  424. package/dist/observability/tracer.d.ts.map +1 -0
  425. package/dist/plugin/api.d.ts +226 -0
  426. package/dist/plugin/api.d.ts.map +1 -0
  427. package/dist/plugin/loader.d.ts +73 -0
  428. package/dist/plugin/loader.d.ts.map +1 -0
  429. package/dist/plugins/chimera-plugin.d.ts +37 -0
  430. package/dist/plugins/chimera-plugin.d.ts.map +1 -0
  431. package/dist/plugins/git-plugin.d.ts +15 -0
  432. package/dist/plugins/git-plugin.d.ts.map +1 -0
  433. package/dist/plugins/observability-plugin.d.ts +19 -0
  434. package/dist/plugins/observability-plugin.d.ts.map +1 -0
  435. package/dist/plugins/plan-plugin.d.ts +16 -0
  436. package/dist/plugins/plan-plugin.d.ts.map +1 -0
  437. package/dist/plugins/prompts-plugin.d.ts +26 -0
  438. package/dist/plugins/prompts-plugin.d.ts.map +1 -0
  439. package/dist/plugins/security-plugin.d.ts +19 -0
  440. package/dist/plugins/security-plugin.d.ts.map +1 -0
  441. package/dist/plugins/skills-plugin.d.ts +42 -0
  442. package/dist/plugins/skills-plugin.d.ts.map +1 -0
  443. package/dist/plugins/sync-plugin.d.ts +22 -0
  444. package/dist/plugins/sync-plugin.d.ts.map +1 -0
  445. package/dist/prompts/index.d.ts +3 -0
  446. package/dist/prompts/index.d.ts.map +1 -0
  447. package/dist/prompts/prompt-installer.d.ts +50 -0
  448. package/dist/prompts/prompt-installer.d.ts.map +1 -0
  449. package/dist/prompts/prompt-manifest-store.d.ts +18 -0
  450. package/dist/prompts/prompt-manifest-store.d.ts.map +1 -0
  451. package/dist/registry/provider-registry.d.ts +51 -0
  452. package/dist/registry/provider-registry.d.ts.map +1 -0
  453. package/dist/registry/slash-command-registry.d.ts +61 -0
  454. package/dist/registry/slash-command-registry.d.ts.map +1 -0
  455. package/dist/registry/tool-registry.d.ts +154 -0
  456. package/dist/registry/tool-registry.d.ts.map +1 -0
  457. package/dist/replay/hash.d.ts +31 -0
  458. package/dist/replay/hash.d.ts.map +1 -0
  459. package/dist/replay/replay-provider-runner.d.ts +53 -0
  460. package/dist/replay/replay-provider-runner.d.ts.map +1 -0
  461. package/dist/{index-CbyuOE5y.d.ts → security/capabilities.d.ts} +31 -34
  462. package/dist/security/capabilities.d.ts.map +1 -0
  463. package/dist/security/config-secrets.d.ts +25 -0
  464. package/dist/security/config-secrets.d.ts.map +1 -0
  465. package/dist/security/index.d.ts +6 -8
  466. package/dist/security/index.d.ts.map +1 -0
  467. package/dist/security/index.js +102 -381
  468. package/dist/security/index.js.map +7 -1
  469. package/dist/security/permission-policy.d.ts +153 -0
  470. package/dist/security/permission-policy.d.ts.map +1 -0
  471. package/dist/security/secret-scrubber.d.ts +14 -0
  472. package/dist/security/secret-scrubber.d.ts.map +1 -0
  473. package/dist/security/secret-vault.d.ts +87 -0
  474. package/dist/security/secret-vault.d.ts.map +1 -0
  475. package/dist/security/yolo-risk.d.ts +11 -0
  476. package/dist/security/yolo-risk.d.ts.map +1 -0
  477. package/dist/{session-registry-Dvg7i_IA.d.ts → session-registry.d.ts} +8 -9
  478. package/dist/session-registry.d.ts.map +1 -0
  479. package/dist/skills/foreign-sources.d.ts +59 -0
  480. package/dist/skills/foreign-sources.d.ts.map +1 -0
  481. package/dist/skills/frontmatter.d.ts +44 -0
  482. package/dist/skills/frontmatter.d.ts.map +1 -0
  483. package/dist/skills/github-fetcher.d.ts +38 -0
  484. package/dist/skills/github-fetcher.d.ts.map +1 -0
  485. package/dist/skills/index.d.ts +11 -582
  486. package/dist/skills/index.d.ts.map +1 -0
  487. package/dist/skills/index.js +81 -43
  488. package/dist/skills/index.js.map +7 -1
  489. package/dist/skills/limits.d.ts +92 -0
  490. package/dist/skills/limits.d.ts.map +1 -0
  491. package/dist/skills/manifest-store.d.ts +42 -0
  492. package/dist/skills/manifest-store.d.ts.map +1 -0
  493. package/dist/skills/registry/github-direct-adapter.d.ts +17 -0
  494. package/dist/skills/registry/github-direct-adapter.d.ts.map +1 -0
  495. package/dist/skills/registry/registry-adapter.d.ts +84 -0
  496. package/dist/skills/registry/registry-adapter.d.ts.map +1 -0
  497. package/dist/skills/registry/skills-sh-adapter.d.ts +13 -0
  498. package/dist/skills/registry/skills-sh-adapter.d.ts.map +1 -0
  499. package/dist/skills/skill-generator.d.ts +82 -0
  500. package/dist/skills/skill-generator.d.ts.map +1 -0
  501. package/dist/skills/skill-installer.d.ts +124 -0
  502. package/dist/skills/skill-installer.d.ts.map +1 -0
  503. package/dist/storage/annotations-store.d.ts +118 -0
  504. package/dist/storage/annotations-store.d.ts.map +1 -0
  505. package/dist/storage/attachment-store.d.ts +31 -0
  506. package/dist/storage/attachment-store.d.ts.map +1 -0
  507. package/dist/storage/cloud-sync.d.ts +44 -0
  508. package/dist/storage/cloud-sync.d.ts.map +1 -0
  509. package/dist/storage/completed-work-checkpoint.d.ts +11 -0
  510. package/dist/storage/completed-work-checkpoint.d.ts.map +1 -0
  511. package/dist/storage/config-loader.d.ts +104 -0
  512. package/dist/storage/config-loader.d.ts.map +1 -0
  513. package/dist/storage/config-migration.d.ts +87 -0
  514. package/dist/storage/config-migration.d.ts.map +1 -0
  515. package/dist/storage/config-store.d.ts +22 -0
  516. package/dist/storage/config-store.d.ts.map +1 -0
  517. package/dist/{director-state-CMS_bMs4.d.ts → storage/director-state.d.ts} +28 -8
  518. package/dist/storage/director-state.d.ts.map +1 -0
  519. package/dist/storage/file-session-writer.d.ts +169 -0
  520. package/dist/storage/file-session-writer.d.ts.map +1 -0
  521. package/dist/{goal-store-Datpp-ar.d.ts → storage/goal-store.d.ts} +26 -19
  522. package/dist/storage/goal-store.d.ts.map +1 -0
  523. package/dist/storage/index.d.ts +39 -1031
  524. package/dist/storage/index.d.ts.map +1 -0
  525. package/dist/storage/index.js +655 -300
  526. package/dist/storage/index.js.map +7 -1
  527. package/dist/storage/input-history-store.d.ts +56 -0
  528. package/dist/storage/input-history-store.d.ts.map +1 -0
  529. package/dist/storage/memory-backend.d.ts +66 -0
  530. package/dist/storage/memory-backend.d.ts.map +1 -0
  531. package/dist/storage/memory-consolidator.d.ts +50 -0
  532. package/dist/storage/memory-consolidator.d.ts.map +1 -0
  533. package/dist/storage/memory-graph-backend.d.ts +117 -0
  534. package/dist/storage/memory-graph-backend.d.ts.map +1 -0
  535. package/dist/storage/memory-store.d.ts +119 -0
  536. package/dist/storage/memory-store.d.ts.map +1 -0
  537. package/dist/storage/plan-store.d.ts +78 -0
  538. package/dist/storage/plan-store.d.ts.map +1 -0
  539. package/dist/storage/plan-templates.d.ts +21 -0
  540. package/dist/storage/plan-templates.d.ts.map +1 -0
  541. package/dist/storage/prompt-store.d.ts +37 -0
  542. package/dist/storage/prompt-store.d.ts.map +1 -0
  543. package/dist/storage/prompt-usage-store.d.ts +29 -0
  544. package/dist/storage/prompt-usage-store.d.ts.map +1 -0
  545. package/dist/storage/provider-config-watcher.d.ts +34 -0
  546. package/dist/storage/provider-config-watcher.d.ts.map +1 -0
  547. package/dist/storage/queue-store.d.ts +37 -0
  548. package/dist/storage/queue-store.d.ts.map +1 -0
  549. package/dist/storage/recovery-lock.d.ts +79 -0
  550. package/dist/storage/recovery-lock.d.ts.map +1 -0
  551. package/dist/storage/replay-log-store.d.ts +97 -0
  552. package/dist/storage/replay-log-store.d.ts.map +1 -0
  553. package/dist/storage/session-analyzer.d.ts +48 -0
  554. package/dist/storage/session-analyzer.d.ts.map +1 -0
  555. package/dist/storage/session-checkpoint-cas.d.ts +37 -0
  556. package/dist/storage/session-checkpoint-cas.d.ts.map +1 -0
  557. package/dist/{session-event-bridge-D_z_mBwk.d.ts → storage/session-event-bridge.d.ts} +14 -15
  558. package/dist/storage/session-event-bridge.d.ts.map +1 -0
  559. package/dist/storage/session-helpers.d.ts +9 -0
  560. package/dist/storage/session-helpers.d.ts.map +1 -0
  561. package/dist/storage/session-id.d.ts +18 -0
  562. package/dist/storage/session-id.d.ts.map +1 -0
  563. package/dist/storage/session-reader.d.ts +21 -0
  564. package/dist/storage/session-reader.d.ts.map +1 -0
  565. package/dist/storage/session-recovery.d.ts +93 -0
  566. package/dist/storage/session-recovery.d.ts.map +1 -0
  567. package/dist/storage/session-resume-validation.d.ts +6 -0
  568. package/dist/storage/session-resume-validation.d.ts.map +1 -0
  569. package/dist/storage/session-rewinder.d.ts +21 -0
  570. package/dist/storage/session-rewinder.d.ts.map +1 -0
  571. package/dist/storage/session-store.d.ts +210 -0
  572. package/dist/storage/session-store.d.ts.map +1 -0
  573. package/dist/storage/session-summary.d.ts +12 -0
  574. package/dist/storage/session-summary.d.ts.map +1 -0
  575. package/dist/storage/session-tool-call-ends.d.ts +5 -0
  576. package/dist/storage/session-tool-call-ends.d.ts.map +1 -0
  577. package/dist/storage/storage-concurrency.d.ts +2 -0
  578. package/dist/storage/storage-concurrency.d.ts.map +1 -0
  579. package/dist/storage/task-store.d.ts +33 -0
  580. package/dist/storage/task-store.d.ts.map +1 -0
  581. package/dist/storage/todos-checkpoint.d.ts +39 -0
  582. package/dist/storage/todos-checkpoint.d.ts.map +1 -0
  583. package/dist/storage/tool-audit-log.d.ts +141 -0
  584. package/dist/storage/tool-audit-log.d.ts.map +1 -0
  585. package/dist/tasking/index.d.ts +3 -124
  586. package/dist/tasking/index.d.ts.map +1 -0
  587. package/dist/tasking/index.js +57 -4
  588. package/dist/tasking/index.js.map +7 -1
  589. package/dist/tasking/task-store.d.ts +22 -0
  590. package/dist/tasking/task-store.d.ts.map +1 -0
  591. package/dist/tasking/task-tracker.d.ts +102 -0
  592. package/dist/tasking/task-tracker.d.ts.map +1 -0
  593. package/dist/tools/index.d.ts +2 -59
  594. package/dist/tools/index.d.ts.map +1 -0
  595. package/dist/tools/index.js +93 -14
  596. package/dist/tools/index.js.map +7 -1
  597. package/dist/tools/mcp-control.d.ts +53 -0
  598. package/dist/tools/mcp-control.d.ts.map +1 -0
  599. package/dist/tools/mcp-use.d.ts +24 -0
  600. package/dist/tools/mcp-use.d.ts.map +1 -0
  601. package/dist/types/agent-bridge.d.ts +42 -0
  602. package/dist/types/agent-bridge.d.ts.map +1 -0
  603. package/dist/types/attachment.d.ts +54 -0
  604. package/dist/types/attachment.d.ts.map +1 -0
  605. package/dist/types/autonomy.d.ts +5 -0
  606. package/dist/types/autonomy.d.ts.map +1 -0
  607. package/dist/types/blocks.d.ts +76 -0
  608. package/dist/types/blocks.d.ts.map +1 -0
  609. package/dist/{compactor-DQLL4HTo.d.ts → types/compactor.d.ts} +5 -7
  610. package/dist/types/compactor.d.ts.map +1 -0
  611. package/dist/{config-MRqn1V-u.d.ts → types/config.d.ts} +135 -354
  612. package/dist/types/config.d.ts.map +1 -0
  613. package/dist/types/context-evidence.d.ts +68 -0
  614. package/dist/types/context-evidence.d.ts.map +1 -0
  615. package/dist/types/context-window.d.ts +35 -0
  616. package/dist/types/context-window.d.ts.map +1 -0
  617. package/dist/{default-config-B79_gJYv.d.ts → types/default-config.d.ts} +10 -11
  618. package/dist/types/default-config.d.ts.map +1 -0
  619. package/dist/types/design-kit.d.ts +91 -0
  620. package/dist/types/design-kit.d.ts.map +1 -0
  621. package/dist/{retry-policy-CQ7KwXJa.d.ts → types/error-handler.d.ts} +5 -12
  622. package/dist/types/error-handler.d.ts.map +1 -0
  623. package/dist/types/errors.d.ts +277 -0
  624. package/dist/types/errors.d.ts.map +1 -0
  625. package/dist/types/hooks.d.ts +167 -0
  626. package/dist/types/hooks.d.ts.map +1 -0
  627. package/dist/types/index.d.ts +40 -244
  628. package/dist/types/index.d.ts.map +1 -0
  629. package/dist/types/index.js +90 -12
  630. package/dist/types/index.js.map +7 -1
  631. package/dist/{input-reader-E-ffP2ee.d.ts → types/input-reader.d.ts} +3 -4
  632. package/dist/types/input-reader.d.ts.map +1 -0
  633. package/dist/{logger-B63L5bTg.d.ts → types/logger.d.ts} +3 -4
  634. package/dist/types/logger.d.ts.map +1 -0
  635. package/dist/types/memory.d.ts +89 -0
  636. package/dist/types/memory.d.ts.map +1 -0
  637. package/dist/types/messages.d.ts +24 -0
  638. package/dist/types/messages.d.ts.map +1 -0
  639. package/dist/types/mode-prompts.d.ts +2 -0
  640. package/dist/types/mode-prompts.d.ts.map +1 -0
  641. package/dist/{mode-CZlO9iU1.d.ts → types/mode.d.ts} +6 -7
  642. package/dist/types/mode.d.ts.map +1 -0
  643. package/dist/types/models-registry.d.ts +105 -0
  644. package/dist/types/models-registry.d.ts.map +1 -0
  645. package/dist/types/multi-agent.d.ts +435 -0
  646. package/dist/types/multi-agent.d.ts.map +1 -0
  647. package/dist/{observability-D-HZN_mF.d.ts → types/observability.d.ts} +12 -13
  648. package/dist/types/observability.d.ts.map +1 -0
  649. package/dist/{path-resolver-CPRj4bFY.d.ts → types/path-resolver.d.ts} +2 -3
  650. package/dist/types/path-resolver.d.ts.map +1 -0
  651. package/dist/{permission-ByDKXEcG.d.ts → types/permission.d.ts} +8 -9
  652. package/dist/types/permission.d.ts.map +1 -0
  653. package/dist/types/plugin.d.ts +385 -0
  654. package/dist/types/plugin.d.ts.map +1 -0
  655. package/dist/types/prompt-registry.d.ts +81 -0
  656. package/dist/types/prompt-registry.d.ts.map +1 -0
  657. package/dist/{prompt-DLd35n4Q.d.ts → types/prompt.d.ts} +14 -15
  658. package/dist/types/prompt.d.ts.map +1 -0
  659. package/dist/{provider-runner-ChL-kVg6.d.ts → types/provider-runner.d.ts} +9 -10
  660. package/dist/types/provider-runner.d.ts.map +1 -0
  661. package/dist/types/provider.d.ts +387 -0
  662. package/dist/types/provider.d.ts.map +1 -0
  663. package/dist/types/renderer.d.ts +23 -0
  664. package/dist/types/renderer.d.ts.map +1 -0
  665. package/dist/types/retry-policy.d.ts +7 -0
  666. package/dist/types/retry-policy.d.ts.map +1 -0
  667. package/dist/types/secret-scrubber.d.ts +5 -0
  668. package/dist/types/secret-scrubber.d.ts.map +1 -0
  669. package/dist/{secret-vault-BAKpgFw_.d.ts → types/secret-vault.d.ts} +13 -7
  670. package/dist/types/secret-vault.d.ts.map +1 -0
  671. package/dist/{selector-D8O6B_Rm.d.ts → types/selector.d.ts} +4 -6
  672. package/dist/types/selector.d.ts.map +1 -0
  673. package/dist/types/session-reader.d.ts +81 -0
  674. package/dist/types/session-reader.d.ts.map +1 -0
  675. package/dist/{session-rewinder-C9HnMkhP.d.ts → types/session-rewinder.d.ts} +5 -6
  676. package/dist/types/session-rewinder.d.ts.map +1 -0
  677. package/dist/types/session.d.ts +650 -0
  678. package/dist/types/session.d.ts.map +1 -0
  679. package/dist/types/side-effect.d.ts +34 -0
  680. package/dist/types/side-effect.d.ts.map +1 -0
  681. package/dist/{skill-DHniprNl.d.ts → types/skill.d.ts} +4 -5
  682. package/dist/types/skill.d.ts.map +1 -0
  683. package/dist/types/slash-command.d.ts +59 -0
  684. package/dist/types/slash-command.d.ts.map +1 -0
  685. package/dist/types/spec.d.ts +77 -0
  686. package/dist/types/spec.d.ts.map +1 -0
  687. package/dist/types/system-prompt-contributor.d.ts +20 -0
  688. package/dist/types/system-prompt-contributor.d.ts.map +1 -0
  689. package/dist/types/system-prompt.d.ts +51 -0
  690. package/dist/types/system-prompt.d.ts.map +1 -0
  691. package/dist/{task-graph-CH3acNQ7.d.ts → types/task-graph.d.ts} +21 -22
  692. package/dist/types/task-graph.d.ts.map +1 -0
  693. package/dist/types/token-counter.d.ts +42 -0
  694. package/dist/types/token-counter.d.ts.map +1 -0
  695. package/dist/types/tool-executor.d.ts +133 -0
  696. package/dist/types/tool-executor.d.ts.map +1 -0
  697. package/dist/types/tool-markers.d.ts +23 -0
  698. package/dist/types/tool-markers.d.ts.map +1 -0
  699. package/dist/types/tool.d.ts +245 -0
  700. package/dist/types/tool.d.ts.map +1 -0
  701. package/dist/types/utility-types.d.ts +31 -0
  702. package/dist/types/utility-types.d.ts.map +1 -0
  703. package/dist/utils/assert-never.d.ts +14 -0
  704. package/dist/utils/assert-never.d.ts.map +1 -0
  705. package/dist/utils/atomic-write.d.ts +12 -0
  706. package/dist/utils/atomic-write.d.ts.map +1 -0
  707. package/dist/utils/child-env.d.ts +67 -0
  708. package/dist/utils/child-env.d.ts.map +1 -0
  709. package/dist/utils/color.d.ts +20 -0
  710. package/dist/utils/color.d.ts.map +1 -0
  711. package/dist/utils/config-json.d.ts +14 -0
  712. package/dist/utils/config-json.d.ts.map +1 -0
  713. package/dist/utils/context-evidence.d.ts +47 -0
  714. package/dist/utils/context-evidence.d.ts.map +1 -0
  715. package/dist/utils/deep-merge.d.ts +64 -0
  716. package/dist/utils/deep-merge.d.ts.map +1 -0
  717. package/dist/utils/diff.d.ts +11 -0
  718. package/dist/utils/diff.d.ts.map +1 -0
  719. package/dist/utils/error.d.ts +2 -3
  720. package/dist/utils/error.d.ts.map +1 -0
  721. package/dist/utils/error.js +3 -3
  722. package/dist/utils/error.js.map +7 -1
  723. package/dist/utils/expect-defined.d.ts +2 -3
  724. package/dist/utils/expect-defined.d.ts.map +1 -0
  725. package/dist/utils/expect-defined.js +3 -3
  726. package/dist/utils/expect-defined.js.map +7 -1
  727. package/dist/utils/glob-expand.d.ts +10 -0
  728. package/dist/utils/glob-expand.d.ts.map +1 -0
  729. package/dist/utils/glob-match.d.ts +4 -0
  730. package/dist/utils/glob-match.d.ts.map +1 -0
  731. package/dist/utils/index.d.ts +37 -920
  732. package/dist/utils/index.d.ts.map +1 -0
  733. package/dist/utils/index.js +242 -33
  734. package/dist/utils/index.js.map +7 -1
  735. package/dist/utils/instruction-file.d.ts +3 -0
  736. package/dist/utils/instruction-file.d.ts.map +1 -0
  737. package/dist/utils/ip-guard.d.ts +34 -0
  738. package/dist/utils/ip-guard.d.ts.map +1 -0
  739. package/dist/utils/json-repair.d.ts +23 -0
  740. package/dist/utils/json-repair.d.ts.map +1 -0
  741. package/dist/utils/json-schema-validate.d.ts +42 -0
  742. package/dist/utils/json-schema-validate.d.ts.map +1 -0
  743. package/dist/utils/lru-cache.d.ts +29 -0
  744. package/dist/utils/lru-cache.d.ts.map +1 -0
  745. package/dist/utils/merge-custom-models.d.ts +12 -0
  746. package/dist/utils/merge-custom-models.d.ts.map +1 -0
  747. package/dist/utils/merge-models-payload.d.ts +20 -0
  748. package/dist/utils/merge-models-payload.d.ts.map +1 -0
  749. package/dist/utils/message-invariants.d.ts +22 -0
  750. package/dist/utils/message-invariants.d.ts.map +1 -0
  751. package/dist/utils/newline-normalize.d.ts +5 -0
  752. package/dist/utils/newline-normalize.d.ts.map +1 -0
  753. package/dist/utils/regex-guard.d.ts +21 -0
  754. package/dist/utils/regex-guard.d.ts.map +1 -0
  755. package/dist/utils/safe-json.d.ts +31 -0
  756. package/dist/utils/safe-json.d.ts.map +1 -0
  757. package/dist/utils/session-scoped-path.d.ts +13 -0
  758. package/dist/utils/session-scoped-path.d.ts.map +1 -0
  759. package/dist/utils/sleep.d.ts +5 -0
  760. package/dist/utils/sleep.d.ts.map +1 -0
  761. package/dist/utils/slug.d.ts +13 -0
  762. package/dist/utils/slug.d.ts.map +1 -0
  763. package/dist/utils/string.d.ts +9 -0
  764. package/dist/utils/string.d.ts.map +1 -0
  765. package/dist/utils/task-format.d.ts +22 -0
  766. package/dist/utils/task-format.d.ts.map +1 -0
  767. package/dist/utils/term.d.ts +133 -0
  768. package/dist/utils/term.d.ts.map +1 -0
  769. package/dist/utils/todos-format.d.ts +30 -0
  770. package/dist/utils/todos-format.d.ts.map +1 -0
  771. package/dist/utils/token-estimate.d.ts +112 -0
  772. package/dist/utils/token-estimate.d.ts.map +1 -0
  773. package/dist/utils/tool-description-mode.d.ts +28 -0
  774. package/dist/utils/tool-description-mode.d.ts.map +1 -0
  775. package/dist/utils/tool-output-serializer.d.ts +40 -0
  776. package/dist/utils/tool-output-serializer.d.ts.map +1 -0
  777. package/dist/utils/tool-result-render-mode.d.ts +55 -0
  778. package/dist/utils/tool-result-render-mode.d.ts.map +1 -0
  779. package/dist/utils/tool-subject.d.ts +5 -0
  780. package/dist/utils/tool-subject.d.ts.map +1 -0
  781. package/dist/utils/tool-wire-compact.d.ts +28 -0
  782. package/dist/utils/tool-wire-compact.d.ts.map +1 -0
  783. package/dist/utils/ulid.d.ts +11 -0
  784. package/dist/utils/ulid.d.ts.map +1 -0
  785. package/dist/{wstack-paths-C3K40Qst.d.ts → utils/wstack-paths.d.ts} +7 -8
  786. package/dist/utils/wstack-paths.d.ts.map +1 -0
  787. package/dist/worktree/index.d.ts +2 -0
  788. package/dist/worktree/index.d.ts.map +1 -0
  789. package/dist/{worktree-manager-DzwxKE35.d.ts → worktree/worktree-manager.d.ts} +19 -13
  790. package/dist/worktree/worktree-manager.d.ts.map +1 -0
  791. package/instructions/autonomy/active-mission.md +2 -4
  792. package/instructions/sections/tool/delegation-full.md +1 -1
  793. package/package.json +4 -5
  794. package/skills/node-modern/SKILL.md +2 -2
  795. package/skills/plugin-author/SKILL.md +9 -16
  796. package/dist/dispatcher-types.d-BBeXBQgS.d.ts +0 -66
  797. package/dist/global-mailbox-sZwyI6CS.d.ts +0 -959
  798. package/dist/index--Gm41aBJ.d.ts +0 -671
  799. package/dist/mcp-servers-DEV4s6Ks.d.ts +0 -259
  800. package/dist/multi-agent-coordinator-4RCRZKjN.d.ts +0 -1770
  801. package/dist/null-fleet-bus-CFoNVQEK.d.ts +0 -2127
  802. package/dist/pipeline-DGDyIohT.d.ts +0 -331
  803. package/dist/provider-model-resolve-o2hHLs79.d.ts +0 -263
  804. package/dist/secret-scrubber-3MHDDAtm.d.ts +0 -6
  805. package/dist/secret-vault-DxohkUBc.d.ts +0 -272
  806. package/dist/session-reader-7Esxrkpw.d.ts +0 -155
  807. package/dist/task-format-GX0B1mMC.d.ts +0 -23
  808. package/dist/todos-checkpoint-FY7PjmMx.d.ts +0 -850
  809. package/dist/tool-BNlnIJvo.d.ts +0 -2190
  810. package/dist/tool-executor-CckSCM5E.d.ts +0 -906
@@ -0,0 +1,323 @@
1
+ import type { Usage } from '../types/provider.js';
2
+ import type { EventBus } from '../kernel/events.js';
3
+ export type BudgetKind = 'tool_calls' | 'iterations' | 'tokens' | 'timeout' | 'idle_timeout' | 'cost';
4
+ /**
5
+ * Fraction of the wall-clock `timeoutMs` window at which a PROACTIVE extension
6
+ * is negotiated — BEFORE the deadline is actually crossed. The coordinator
7
+ * watchdog (`executeWithTimeout`) arms at `timeoutMs * TIMEOUT_PREEMPT_FRACTION`
8
+ * so a still-progressing subagent gets its ceiling raised while it is below the
9
+ * limit, and never enters a "timed out" state. Reactive enforcement at the real
10
+ * deadline still stands for the no-progress / denied case. Shared so the asking
11
+ * side and any future caller agree on the same lead point.
12
+ */
13
+ export declare const TIMEOUT_PREEMPT_FRACTION = 0.85;
14
+ /**
15
+ * Hard safety net for budget negotiation decisions. If no listener responds to
16
+ * `budget.threshold_reached` within this window the negotiation defaults to
17
+ * `'stop'`. Exported so the coordinator's watchdog can reuse the same ceiling
18
+ * without hardcoding a second copy.
19
+ */
20
+ export declare const DECISION_TIMEOUT_MS = 60000;
21
+ export declare class BudgetExceededError extends Error {
22
+ readonly kind: BudgetKind;
23
+ readonly limit: number;
24
+ readonly observed: number;
25
+ constructor(kind: BudgetKind, limit: number, observed: number);
26
+ }
27
+ export interface BudgetLimits {
28
+ maxIterations?: number | undefined;
29
+ maxToolCalls?: number | undefined;
30
+ maxTokens?: number | undefined;
31
+ /** Estimated USD cost ceiling. */
32
+ maxCostUsd?: number | undefined;
33
+ /**
34
+ * Hard wall-clock timeout measured from `start()`. Off by default — set it
35
+ * explicitly only when a task must finish within an absolute window. For
36
+ * the everyday "don't kill an agent that's still working" guard, prefer
37
+ * `idleTimeoutMs`, which resets on activity.
38
+ */
39
+ timeoutMs?: number | undefined;
40
+ /**
41
+ * Idle timeout: the maximum gap (ms) between activity signals (iterations,
42
+ * tool calls, token usage, streamed progress) before the subagent is
43
+ * considered hung and reaped. Unlike `timeoutMs`, an actively-working
44
+ * agent continuously resets this clock via `markActivity()`, so it never
45
+ * trips on a long-but-productive run — only on a genuine stall.
46
+ */
47
+ idleTimeoutMs?: number | undefined;
48
+ }
49
+ /**
50
+ * Controls how the budget behaves when `onThreshold` is set and a limit is hit.
51
+ *
52
+ * `'auto'` — emit `budget.threshold_reached` on the EventBus and wait for a
53
+ * coordinator response (extend/stop). If no listener responds within
54
+ * `DECISION_TIMEOUT_MS` the decision defaults to `'stop'`.
55
+ * `'sync'` — do not emit any event; treat the threshold as a hard stop and
56
+ * throw `BudgetExceededError` synchronously. Useful for fire-and-forget
57
+ * subagents that have an `onThreshold` handler for logging/metrics but are
58
+ * not wired into a coordinator.
59
+ *
60
+ * @default 'auto'
61
+ */
62
+ export type BudgetNegotiationMode = 'auto' | 'sync';
63
+ export type BudgetSessionIdSource = string | (() => string | undefined);
64
+ export interface SubagentBudgetOptions {
65
+ sessionId?: BudgetSessionIdSource | undefined;
66
+ }
67
+ export interface BudgetUsage {
68
+ iterations: number;
69
+ toolCalls: number;
70
+ tokens: {
71
+ input: number;
72
+ output: number;
73
+ total: number;
74
+ };
75
+ costUsd: number;
76
+ elapsedMs: number;
77
+ }
78
+ /**
79
+ * Thrown by `SubagentBudget.record*` when a soft limit is hit and
80
+ * an `onThreshold` handler is configured that wants to ask the
81
+ * coordinator (via `budget.threshold_reached` event). The runner
82
+ * catches this and awaits the embedded `decision` promise to get
83
+ * the coordinator's extend/stop decision.
84
+ *
85
+ * Distinct from `BudgetExceededError` which is a hard stop.
86
+ */
87
+ export declare class BudgetThresholdSignal extends Error {
88
+ readonly kind: BudgetKind;
89
+ readonly limit: number;
90
+ readonly used: number;
91
+ /** Resolves to 'extend' (with optional new limits) or 'stop' */
92
+ readonly decision: Promise<BudgetThresholdDecision>;
93
+ constructor(kind: BudgetKind, limit: number, used: number, decision: Promise<BudgetThresholdDecision>);
94
+ }
95
+ export type BudgetThresholdDecision = 'stop' | {
96
+ extend: Partial<BudgetLimits>;
97
+ };
98
+ /**
99
+ * Callback invoked when a budget limit is about to be exceeded.
100
+ * Return 'throw' for hard stop (default — throws BudgetExceededError).
101
+ * Return 'continue' to allow one more unit and re-check next time.
102
+ * Return a Promise to ask the coordinator via `budget.threshold_reached`
103
+ * event (uses the same grant/deny pattern as `iteration.limit_reached`).
104
+ */
105
+ export type BudgetThresholdHandler = (info: {
106
+ kind: BudgetKind;
107
+ used: number;
108
+ limit: number;
109
+ requestDecision: () => Promise<BudgetThresholdDecision>;
110
+ /**
111
+ * Direct grant/deny hooks for SYNCHRONOUS policy or recording handlers that
112
+ * decide in-process without a wired `budget.threshold_reached` listener
113
+ * (e.g. the coordinator watchdog). `extend` patches the limits in place;
114
+ * `deny` records the intent to stop. Production listener-driven handlers use
115
+ * `requestDecision()` instead and can ignore these.
116
+ */
117
+ extend?: (extra: Partial<BudgetLimits>) => void;
118
+ deny?: () => void;
119
+ }) => 'throw' | 'continue' | 'stop' | {
120
+ extend: Partial<BudgetLimits>;
121
+ } | Promise<BudgetThresholdDecision>;
122
+ /**
123
+ * Per-subagent budget enforcement. Each subagent gets its own instance so a
124
+ * runaway agent can't drain the cost ceiling of its siblings. All record/check
125
+ * methods are O(1) and safe to call from hot paths.
126
+ *
127
+ * Behavior without `onThreshold`: hard stops synchronously on every limit hit.
128
+ *
129
+ * Behavior with `onThreshold` and `_mode === 'auto'`: emits `budget.threshold_reached`
130
+ * on the EventBus and throws `BudgetThresholdSignal`. The coordinator's verdict
131
+ * (extend/stop) resolves the embedded promise. If no listener responds within
132
+ * `DECISION_TIMEOUT_MS` the decision defaults to `'stop'`.
133
+ *
134
+ * Behavior with `onThreshold` and `_mode === 'sync'`: throws `BudgetExceededError`
135
+ * synchronously regardless of EventBus state or listener presence. This is useful
136
+ * for fire-and-forget subagents that have an `onThreshold` handler for logging/metrics
137
+ * but are not wired into a coordinator — the `'sync'` mode makes the hard-stop
138
+ * behavior explicit and means tests can use `expect().toThrow()` even without
139
+ * a fully-wired EventBus.
140
+ */
141
+ export declare class SubagentBudget {
142
+ readonly limits: Readonly<BudgetLimits>;
143
+ /** Patch one or more budget limits in-place after construction.
144
+ * Used by the coordinator watchdog when granting an extension.
145
+ * All fields are optional — only provided fields are updated.
146
+ * This is the single write path for limit mutations so that future
147
+ * validation or side-effects live in one place (M1). */
148
+ patchLimits(ext: Partial<BudgetLimits>): void;
149
+ private iterations;
150
+ private toolCalls;
151
+ private tokenInput;
152
+ private tokenOutput;
153
+ private costUsd;
154
+ private startTime;
155
+ /**
156
+ * Timestamp of the most recent activity (iteration / tool call / token
157
+ * usage / streamed progress). Drives the idle timeout — reset by
158
+ * `markActivity()`. Initialised to `start()` time so a never-active agent
159
+ * still eventually trips its idle window.
160
+ */
161
+ private lastActivityTime;
162
+ private _onThreshold;
163
+ private readonly _sessionId;
164
+ /**
165
+ * Hard cap on how long `_negotiateExtension` waits for the coordinator to
166
+ * respond before defaulting to 'stop'. Without this fallback an absent
167
+ * or hung listener (Director not built / event filter detached mid-run)
168
+ * leaves the budget over-limit and never enforces anything.
169
+ */
170
+ private static readonly DECISION_TIMEOUT_MS;
171
+ /**
172
+ * Injected by the runner when wiring the budget to its EventBus.
173
+ * Used to emit `budget.threshold_reached` events in `'auto'` mode.
174
+ */
175
+ _events?: EventBus | undefined;
176
+ /**
177
+ * Guard against dual-path races between the coordinator watchdog
178
+ * (`executeWithTimeout`) and the budget's own `checkTimeout()`.
179
+ * Both paths detect `elapsed >= timeoutMs` and can emit
180
+ * `budget.threshold_reached` for kind `'timeout'` simultaneously.
181
+ * Set to the current `timeoutMs` ceiling by the coordinator BEFORE
182
+ * calling `onThreshold`, and cleared after the negotiation resolves.
183
+ * `checkTimeout()` skips its wall-clock check while this is set so
184
+ * the coordinator's watchdog is the sole source of wall-clock timeout
185
+ * events — `checkTimeout()` focuses exclusively on `idle_timeout`.
186
+ */
187
+ private _watchdogActive;
188
+ /** Returns the timeout ceiling currently being negotiated by the watchdog,
189
+ * or `undefined` when no wall-clock negotiation is in flight.
190
+ * Used by `executeWithTimeout` to detect a stale lock (M3). */
191
+ get watchdogActive(): number | undefined;
192
+ /** Called by the coordinator watchdog BEFORE calling `onThreshold` so that
193
+ * `checkTimeout()` skips its wall-clock check for this ceiling. Prevents
194
+ * the budget's own `checkTimeout()` from emitting a second
195
+ * `budget.threshold_reached` event while the watchdog is already
196
+ * negotiating the same wall-clock deadline (C1). */
197
+ setWatchdogNegotiation(timeoutMs: number): void;
198
+ /** Clears the watchdog guard after negotiation resolves. Called in the
199
+ * `finally` block of both the pre-empt and deadline branches so it fires
200
+ * on every exit path: grant, deny, throw, or error. */
201
+ clearWatchdogNegotiation(): void;
202
+ /**
203
+ * Negotiation mode — controls whether a threshold hit tries to emit
204
+ * `budget.threshold_reached` and wait for a coordinator decision, or
205
+ * falls straight through to a synchronous hard stop.
206
+ *
207
+ * `'auto'` (default) — emit on the EventBus and wait; times out to 'stop'.
208
+ * `'sync'` — throw `BudgetExceededError` immediately regardless of listeners.
209
+ */
210
+ private _mode;
211
+ /**
212
+ * Optional callback for soft-limit handling. When set, the budget will
213
+ * invoke it rather than throw immediately. The handler decides whether to
214
+ * throw synchronously, continue, or ask the coordinator for an extension.
215
+ */
216
+ get onThreshold(): BudgetThresholdHandler | undefined;
217
+ set onThreshold(fn: BudgetThresholdHandler | undefined);
218
+ /** Returns the current negotiation mode. */
219
+ get mode(): BudgetNegotiationMode;
220
+ constructor(limits?: BudgetLimits, mode?: BudgetNegotiationMode, options?: SubagentBudgetOptions);
221
+ private currentSessionId;
222
+ start(): void;
223
+ /**
224
+ * Reset the idle clock. Called on any sign of forward progress —
225
+ * iterations, tool calls, token usage, and streamed tool/text progress —
226
+ * so a long-but-productive subagent never trips its `idleTimeoutMs`.
227
+ */
228
+ markActivity(): void;
229
+ /**
230
+ * Milliseconds since the last activity signal. Returns 0 before `start()`
231
+ * (nothing to measure yet). Used by the coordinator watchdog to decide
232
+ * whether to re-arm (still active) or reap (genuinely idle).
233
+ */
234
+ idleMs(): number;
235
+ /** Returns true if we're within 10% of any limit — useful for pre-flight checks. */
236
+ isNearLimit(): boolean;
237
+ /**
238
+ * Synchronous budget check. Always throws synchronously so callers (especially
239
+ * test event handlers using `expect().toThrow()`) get an unhandled rejection
240
+ * when the budget is exceeded without a handler.
241
+ *
242
+ * Decision table:
243
+ * - no `onThreshold` handler → throw `BudgetExceededError` (hard stop, always)
244
+ * - `mode === 'sync'` → throw `BudgetExceededError` (hard stop, always)
245
+ * - `mode === 'auto'` + no listener → throw `BudgetExceededError` (hard stop; no one to ask)
246
+ * - `mode === 'auto'` + listener → throw `BudgetThresholdSignal` with async decision promise
247
+ */
248
+ /**
249
+ * Collects all exceeded budget kinds into a single NOOP-free negotiation.
250
+ * Called by recordIteration / recordToolCall / recordUsage — each may call
251
+ * this for its own kind. The first call starts the negotiation and stores
252
+ * the Promise in _pendingNegotiation. Subsequent calls for DIFFERENT
253
+ * kinds (while a negotiation is in flight) are NOOPs — they don't start
254
+ * new conversations with the coordinator. This prevents an EventBus flood
255
+ * when multiple budget kinds are exceeded simultaneously in one iteration.
256
+ *
257
+ * Returns the kinds that were found to be exceeded (for logging/debugging).
258
+ */
259
+ private checkLimits;
260
+ /**
261
+ * Invoke `onThreshold` once for `entry` on the NO-LISTENER path and report
262
+ * whether it decided synchronously. Returns `true` when the handler returned
263
+ * a synchronous decision (already honored — an `extend` patched the limits),
264
+ * or `false` when it returned a Promise (async; the caller hard-stops, since
265
+ * there is no listener to resolve the negotiation). The handler is given the
266
+ * full info shape (`requestDecision` plus direct `extend`/`deny`) so both
267
+ * recording handlers and policy handlers work without a wired listener.
268
+ */
269
+ private _invokeHandlerSync;
270
+ /**
271
+ * Emit `budget.threshold_reached` and resolve to the listener's verdict.
272
+ * Resolves to `'stop'` immediately when there is no listener (or no bus) so
273
+ * no negotiation can hang and no fallback timer leaks. Mirrors the
274
+ * coordinator watchdog's own request path so both agree on the no-listener
275
+ * default.
276
+ */
277
+ private _busRequestDecision;
278
+ /**
279
+ * Per-kind in-flight negotiation Promises. Each budget kind can have its
280
+ * own concurrent negotiation — e.g. iterations and timeout can both
281
+ * be exceeded simultaneously without blocking each other. The same kind
282
+ * cannot start two concurrent negotiations (dedup guard).
283
+ * Cleared in `_negotiateExtension`'s `finally` block.
284
+ */
285
+ private _pendingNegotiations;
286
+ /**
287
+ * Drive the threshold handler to a decision. Resolves with `'stop'`
288
+ * (signal the runner to abort) or `{ extend: ... }` (limits already
289
+ * patched in-place; the runner should not abort). Clears the
290
+ * per-kind slot in `_pendingNegotiations` in `finally`.
291
+ *
292
+ * The 'continue' return from a sync handler is treated as
293
+ * `{ extend: {} }` — keep going without patching; next overrun fires
294
+ * a fresh signal.
295
+ */
296
+ private _negotiateExtension;
297
+ recordIteration(): void;
298
+ recordToolCall(): void;
299
+ recordUsage(usage: Usage, costUsd?: number): void;
300
+ /**
301
+ * Wall-clock / idle budget check. Delegates to `checkLimits(elapsed)`, so
302
+ * `timeout` and `idle_timeout` follow the SAME negotiation path as the other
303
+ * kinds — they are NOT a special-cased hard stop. This is deliberate: a
304
+ * heartbeat-aware policy (see `attachAutoExtend` and `CollabSession`) grants
305
+ * a timeout extension only while the agent is making progress and denies it
306
+ * once the agent is genuinely stuck, which is safer than an unconditional
307
+ * hard kill of a long-but-working agent. The runner translates the resulting
308
+ * `BudgetThresholdSignal` decision (`extend` → patch limits in place,
309
+ * `stop` → abort) just like every other kind.
310
+ *
311
+ * Decision table (same as `checkLimits`):
312
+ * - no `onThreshold` handler → throw `BudgetExceededError` (hard stop)
313
+ * - `mode === 'sync'` → throw `BudgetExceededError` (hard stop)
314
+ * - `mode === 'auto'` + no listener → throw `BudgetExceededError` (no one to ask)
315
+ * - `mode === 'auto'` + listener → throw `BudgetThresholdSignal` (negotiated;
316
+ * a heartbeat-aware policy may extend the timeout)
317
+ */
318
+ checkTimeout(): void;
319
+ /** Returns true if a wall-clock or idle timeout has occurred without throwing. */
320
+ isTimedOut(): boolean;
321
+ usage(): BudgetUsage;
322
+ }
323
+ //# sourceMappingURL=subagent-budget.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subagent-budget.d.ts","sourceRoot":"","sources":["../../src/coordination/subagent-budget.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AAEpD,MAAM,MAAM,UAAU,GAAG,YAAY,GAAG,YAAY,GAAG,QAAQ,GAAG,SAAS,GAAG,cAAc,GAAG,MAA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;;;;;;;;OAUG;IACH;;;;;;;;;;OAUG;IACH,OAAO,CAAC,WAAW;IA8GnB;;;;;;;;OAQG;IACH,OAAO,CAAC,kBAAkB;IA2B1B;;;;;;OAMG;IACH,OAAO,CAAC,mBAAmB;IAyC3B;;;;;;OAMG;IACH,OAAO,CAAC,oBAAoB,CAA2D;IAEvF;;;;;;;;;OASG;YACW,mBAAmB;IAoCjC,eAAe,IAAI,IAAI,CAItB;IAED,cAAc,IAAI,IAAI,CAIrB;IAED,WAAW,CAAC,KAAK,EAAE,KAAK,EAAE,OAAO,SAAI,GAAG,IAAI,CAM3C;IAED;;;;;;;;;;;;;;;;;OAiBG;IACH,YAAY,IAAI,IAAI,CAkBnB;IAED,kFAAkF;IAClF,UAAU,IAAI,OAAO,CAMpB;IAED,KAAK,IAAI,WAAW,CAYnB;CACF"}
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Subagent nickname pool — famous scientists, mathematicians, and computing pioneers.
3
+ * Names are grouped by domain affinity so the nickname hints at the agent's role.
4
+ */
5
+ /** Result of a nickname assignment. */
6
+ export interface NicknameAssignment {
7
+ /**
8
+ * Canonical pool key (e.g. `von-neumann`). This — NOT the display string — is
9
+ * what callers must add to their `used` set and later remove on release.
10
+ * Deriving the key by parsing the display string is unsafe: multi-word names
11
+ * like "Von Neumann" would be truncated to "von" and never dedupe correctly.
12
+ */
13
+ key: string;
14
+ /** Human display string, e.g. `Von Neumann (Backend)`. */
15
+ display: string;
16
+ }
17
+ /**
18
+ * Assign a unique nickname to a subagent based on its role.
19
+ *
20
+ * Returns both the canonical pool `key` (for the `used` set) and the formatted
21
+ * `display` string (`Name (Role)`, e.g. `Einstein (Bug Hunter)`).
22
+ *
23
+ * @param role - The subagent's role id (e.g. 'bug-hunter', 'security-scanner')
24
+ * @param used - Set of nickname KEYS already assigned in this fleet
25
+ * (so no two subagents share the same base name)
26
+ */
27
+ export declare function assignNickname(role: string, used: ReadonlySet<string>): NicknameAssignment;
28
+ /**
29
+ * Resolve a previously-assigned display string back to its canonical pool key,
30
+ * for release paths that only retained the formatted name (e.g. a manifest
31
+ * entry). Strips the trailing ` (Role)` suffix, then matches the base name
32
+ * against the pool. Returns `undefined` when the name is not a known nickname.
33
+ *
34
+ * Use this instead of `name.split(' ')[0]` — the latter mangles multi-word
35
+ * names like "Von Neumann" and "Berners-Lee".
36
+ */
37
+ export declare function nicknameKeyFromDisplay(display: string): string | undefined;
38
+ /**
39
+ * Returns all available nickname keys. Useful for testing or reset logic.
40
+ */
41
+ export declare function getAllNicknameKeys(): string[];
42
+ //# sourceMappingURL=subagent-nicknames.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subagent-nicknames.d.ts","sourceRoot":"","sources":["../../src/coordination/subagent-nicknames.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAoGH,uCAAuC;AACvC,MAAM,WAAW,kBAAkB;IACjC;;;;;OAKG;IACH,GAAG,EAAE,MAAM,CAAC;IACZ,0DAA0D;IAC1D,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;;;GASG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,WAAW,CAAC,MAAM,CAAC,GAAG,kBAAkB,CA2B1F;AAED;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAM1E;AAUD;;GAEG;AACH,wBAAgB,kBAAkB,IAAI,MAAM,EAAE,CAE7C"}
@@ -0,0 +1,20 @@
1
+ import type { Context } from '../core/context.js';
2
+ import type { SubagentStructuredReport } from '../types/multi-agent.js';
3
+ import type { Tool } from '../types/tool.js';
4
+ /** Context metadata key used to hand the submitted report to the task runner. */
5
+ export declare const SUBAGENT_STRUCTURED_REPORT_META_KEY = "subagentStructuredReport";
6
+ export declare const MAX_SUBAGENT_STRUCTURED_REPORT_CHARS = 8000;
7
+ /**
8
+ * Validate and normalize a model-supplied structured result. The tool executor
9
+ * already applies JSON Schema validation, but this guard keeps direct callers,
10
+ * custom executors, and data read back from Context metadata honest too.
11
+ */
12
+ export declare function normalizeSubagentStructuredReport(value: unknown): SubagentStructuredReport | undefined;
13
+ export declare function readSubagentStructuredReport(ctx: Pick<Context, 'meta'> | {
14
+ meta?: Record<string, unknown>;
15
+ } | undefined): SubagentStructuredReport | undefined;
16
+ /** Stable compact text form for mailbox/roll-up surfaces. */
17
+ export declare function formatSubagentStructuredReport(report: SubagentStructuredReport): string;
18
+ /** Safe, task-local handoff channel from a subagent to its Director. */
19
+ export declare function makeSubagentResultTool(): Tool;
20
+ //# sourceMappingURL=subagent-result-tool.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"subagent-result-tool.d.ts","sourceRoot":"","sources":["../../src/coordination/subagent-result-tool.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,yBAAyB,CAAC;AACxE,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAE7C,iFAAiF;AACjF,eAAO,MAAM,mCAAmC,6BAA6B,CAAC;AAC9E,eAAO,MAAM,oCAAoC,OAAQ,CAAC;AAQ1D;;;;GAIG;AACH,wBAAgB,iCAAiC,CAC/C,KAAK,EAAE,OAAO,GACb,wBAAwB,GAAG,SAAS,CAoCtC;AAED,wBAAgB,4BAA4B,CAC1C,GAAG,EAAE,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,GAAG;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CAAE,GAAG,SAAS,GAC1E,wBAAwB,GAAG,SAAS,CAEtC;AAED,6DAA6D;AAC7D,wBAAgB,8BAA8B,CAAC,MAAM,EAAE,wBAAwB,GAAG,MAAM,CAevF;AAED,wEAAwE;AACxE,wBAAgB,sBAAsB,IAAI,IAAI,CA8D7C"}
@@ -0,0 +1,143 @@
1
+ import type { GoalNode, GoalStatus, GoalPriority } from './knowledge-graph.js';
2
+ import type { KnowledgeGraph } from './knowledge-graph.js';
3
+ import type { FleetBus } from './fleet-bus.js';
4
+ import type { Mailbox } from './mailbox-types.js';
5
+ export type { GoalStatus, GoalPriority };
6
+ export interface TaskBid {
7
+ id: string;
8
+ taskId: string;
9
+ agentId: string;
10
+ agentName: string;
11
+ agentRole: string;
12
+ /** Dispatcher score for this task */
13
+ score: number;
14
+ /** Why this agent is a good fit */
15
+ rationale: string;
16
+ submittedAt: string;
17
+ }
18
+ export interface TaskAuctionOptions {
19
+ graph: KnowledgeGraph;
20
+ fleet?: FleetBus | undefined;
21
+ mailbox?: Mailbox | undefined;
22
+ selfAgentId?: string | undefined;
23
+ /** How long a bid window stays open before auto-awarding. Default: 30s */
24
+ bidWindowMs?: number | undefined;
25
+ /** Maximum concurrent tasks per agent. Default: 3 */
26
+ maxTasksPerAgent?: number | undefined;
27
+ /** Minimum confidence threshold for dispatcher scoring. Default: 0.3 */
28
+ minConfidence?: number | undefined;
29
+ /**
30
+ * Maximum times a task can be republished when no bids are received.
31
+ * After this, the task is marked as 'failed' with reason 'no_bids'.
32
+ * Default: 3.
33
+ */
34
+ maxBidRetries?: number | undefined;
35
+ }
36
+ export declare class TaskAuctioneer {
37
+ private readonly graph;
38
+ private readonly fleet?;
39
+ private readonly mailbox?;
40
+ private readonly selfAgentId;
41
+ private readonly bidWindowMs;
42
+ private readonly maxTasksPerAgent;
43
+ private readonly minConfidence;
44
+ private readonly maxBidRetries;
45
+ /** Pending bids keyed by taskId. */
46
+ private readonly pendingBids;
47
+ /** Active bid windows keyed by taskId. */
48
+ private readonly bidTimers;
49
+ /** FleetBus subscription disposers, detached in dispose(). */
50
+ private readonly unsubs;
51
+ /** How many times a task has been republished with no bids received. */
52
+ private readonly bidRetryCounts;
53
+ /** Agent → current task count (from graph + in-flight). */
54
+ private readonly agentTaskCounts;
55
+ constructor(opts: TaskAuctionOptions);
56
+ /**
57
+ * Detach all FleetBus subscriptions and cancel any open bid-window timers.
58
+ * Call when the owning coordinator stops/restarts so handlers and timers
59
+ * don't accumulate across cycles.
60
+ */
61
+ dispose(): void;
62
+ /**
63
+ * Publish a new task to the auction. Creates a GoalNode and broadcasts
64
+ * it to all online agents. Returns the goal id.
65
+ *
66
+ * If `targetAgent` is specified, the task is assigned directly without auction.
67
+ */
68
+ publishTask(input: {
69
+ title: string;
70
+ description: string;
71
+ priority?: GoalPriority;
72
+ tags?: string[];
73
+ targetAgent?: string;
74
+ parentGoal?: string;
75
+ satisfiesGoals?: string[];
76
+ /** Goal ids that must reach 'done' before this goal becomes workable. */
77
+ blockedBy?: string[];
78
+ deadline?: string;
79
+ reward?: string;
80
+ }): Promise<string>;
81
+ /**
82
+ * Submit a bid for a task. Called by agents who want to work on it.
83
+ * Returns true if the bid was accepted, false if the task was already claimed.
84
+ */
85
+ bid(taskId: string, agent: {
86
+ agentId: string;
87
+ agentName: string;
88
+ agentRole: string;
89
+ }, rationale: string): Promise<boolean>;
90
+ /**
91
+ * Award a task to a specific agent. Called internally by the bid window
92
+ * expiry, or can be called directly to force an award.
93
+ */
94
+ claim(taskId: string, agentId: string, agentName: string): Promise<boolean>;
95
+ /**
96
+ * Mark a task as done. Called by the agent when it finishes.
97
+ */
98
+ complete(taskId: string, _result?: string): Promise<void>;
99
+ /**
100
+ * Mark a task as failed. Optionally spawn a retry.
101
+ */
102
+ fail(taskId: string, error: string): Promise<void>;
103
+ /**
104
+ * Find the best available tasks for an agent based on its capabilities.
105
+ * Returns tasks sorted by match score (best first).
106
+ */
107
+ findWork(_agentId: string, agentRole: string, limit?: number): Promise<{
108
+ task: GoalNode;
109
+ score: number;
110
+ bids: number;
111
+ }[]>;
112
+ /** Get all pending tasks (available for bidding). */
113
+ getPendingTasks(): GoalNode[];
114
+ /** Get tasks assigned to a specific agent. */
115
+ getTasksForAgent(agentId: string): GoalNode[];
116
+ /** Get the current bid count for a task. */
117
+ getBidCount(taskId: string): number;
118
+ /** Get bids for a task. */
119
+ getBids(taskId: string): TaskBid[];
120
+ /** Get task stats for a project-wide dashboard. */
121
+ getStats(): {
122
+ total: number;
123
+ pending: number;
124
+ in_progress: number;
125
+ done: number;
126
+ failed: number;
127
+ totalBids: number;
128
+ avgBidsPerTask: number;
129
+ };
130
+ private _emit;
131
+ private _broadcastTask;
132
+ private _mailboxPublish;
133
+ private _notifyAgent;
134
+ private _startBidWindow;
135
+ private _cancelBidWindow;
136
+ private _evaluateBids;
137
+ private _assignDirect;
138
+ private _onBidEvent;
139
+ private _onClaimedEvent;
140
+ private _getAgentTaskCount;
141
+ private agentTaskCount;
142
+ }
143
+ //# sourceMappingURL=task-auctioneer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"task-auctioneer.d.ts","sourceRoot":"","sources":["../../src/coordination/task-auctioneer.ts"],"names":[],"mappings":"AA8CA,OAAO,KAAK,EAAE,QAAQ,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAC/E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AAC3D,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC/C,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAGlD,YAAY,EAAE,UAAU,EAAE,YAAY,EAAE,CAAC;AAIzC,MAAM,WAAW,OAAO;IACtB,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,qCAAqC;IACrC,KAAK,EAAE,MAAM,CAAC;IACd,mCAAmC;IACnC,SAAS,EAAE,MAAM,CAAC;IAClB,WAAW,EAAE,MAAM,CAAC;CACrB;AAID,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,cAAc,CAAC;IACtB,KAAK,CAAC,EAAE,QAAQ,GAA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