@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,385 @@
1
+ import type { Mailbox } from '../coordination/mailbox-types.js';
2
+ import type { ToolCallPipelinePayload } from '../core/agent.js';
3
+ import type { Context } from '../core/context.js';
4
+ import type { ExtensionRegistry } from '../extension/registry.js';
5
+ import type { Container } from '../kernel/container.js';
6
+ import type { EventBus, EventName, Listener } from '../kernel/events.js';
7
+ import type { ReadonlyPipeline } from '../kernel/pipeline.js';
8
+ import type { ToolWrapper } from '../registry/tool-registry.js';
9
+ import type { TextBlock } from './blocks.js';
10
+ import type { Config } from './config.js';
11
+ import type { HookEvent, HookMatcher, HookRegistrationOptions, InProcessHook } from './hooks.js';
12
+ import type { Logger } from './logger.js';
13
+ import type { ModelsRegistry, WireFamily } from './models-registry.js';
14
+ import type { Provider, Request, Response } from './provider.js';
15
+ import type { SlashCommand } from './slash-command.js';
16
+ import type { SystemPromptContributor } from './system-prompt-contributor.js';
17
+ import type { JSONSchema, Tool } from './tool.js';
18
+ export interface ToolRegistryView {
19
+ register(t: Tool): void;
20
+ unregister(name: string): void;
21
+ /** Wrap (decorate) an existing tool. The wrapper gets the current tool and returns the decorated version. */
22
+ wrap(name: string, wrapper: ToolWrapper): void;
23
+ get(name: string): Tool | undefined;
24
+ list(): Tool[];
25
+ }
26
+ export interface ProviderFactory {
27
+ type: string;
28
+ family: WireFamily;
29
+ create(cfg: unknown): Provider;
30
+ }
31
+ export interface ProviderRegistryView {
32
+ register(f: ProviderFactory): void;
33
+ unregister(type: string): boolean;
34
+ create(cfg: {
35
+ type: string;
36
+ } & Record<string, unknown>): Provider;
37
+ list(): string[];
38
+ }
39
+ export interface MCPRegistryView {
40
+ start(cfg: unknown): Promise<void>;
41
+ stop(name: string): Promise<void>;
42
+ restart(name: string): Promise<void>;
43
+ list(): {
44
+ name: string;
45
+ state: string;
46
+ toolCount: number;
47
+ }[];
48
+ }
49
+ export interface SlashCommandRegistryView {
50
+ register(cmd: SlashCommand): void;
51
+ unregister(name: string): boolean;
52
+ get(name: string): SlashCommand | undefined;
53
+ list(): SlashCommand[];
54
+ }
55
+ /**
56
+ * Read-only view of the session writer. Plugins can append custom events
57
+ * to the JSONL session log and read the transcript path.
58
+ *
59
+ * The `append` method accepts any JSON-serializable payload — custom
60
+ * event types are persisted verbatim next to the built-in events.
61
+ */
62
+ export interface SessionWriterView {
63
+ readonly transcriptPath?: string | undefined;
64
+ append(event: Record<string, unknown> & {
65
+ type: string;
66
+ ts: string;
67
+ }): Promise<void>;
68
+ }
69
+ /**
70
+ * Metrics sink scoped to a plugin. The host auto-prefixes metric names
71
+ * with `plugin.<pluginName>.` so plugins don't need to namespace
72
+ * manually. Plugins call counter/histogram/gauge directly; the values
73
+ * flow to the host's MetricsSink (Prometheus, OTLP, or noop).
74
+ */
75
+ export interface MetricsSinkView {
76
+ counter(name: string, value?: number | undefined, labels?: Record<string, string>): void;
77
+ histogram(name: string, value: number, labels?: Record<string, string>): void;
78
+ gauge(name: string, value: number, labels?: Record<string, string>): void;
79
+ }
80
+ /**
81
+ * Options for a single `api.llm.complete()` call. Everything is
82
+ * optional — omitted fields fall back first to the plugin's own
83
+ * configured defaults (`config.extensions[<name>].llm`), then to the
84
+ * host session's provider/model.
85
+ */
86
+ export interface PluginLLMOptions {
87
+ /** System prompt for this call. */
88
+ system?: string | undefined;
89
+ /** Model override (e.g. `claude-haiku-4-5`). */
90
+ model?: string | undefined;
91
+ /**
92
+ * Provider override by configured provider name (a key of
93
+ * `config.providers`, e.g. `anthropic`, `openai`, `omniroute`).
94
+ * When omitted the host session's provider is used.
95
+ */
96
+ provider?: string | undefined;
97
+ /** Output-token cap. Default 2048, hard-capped by the host. */
98
+ maxTokens?: number | undefined;
99
+ temperature?: number | undefined;
100
+ /** `'json'` asks the provider for a JSON object response. */
101
+ responseFormat?: 'text' | 'json' | undefined;
102
+ /** Abort signal — plugins should pass one for cancellable work. */
103
+ signal?: AbortSignal | undefined;
104
+ }
105
+ export interface PluginLLMResult {
106
+ /** Concatenated text blocks of the response. */
107
+ text: string;
108
+ /** The model that actually served the call. */
109
+ model: string;
110
+ /** The provider name the call was routed through. */
111
+ provider: string;
112
+ usage: {
113
+ input: number;
114
+ output: number;
115
+ };
116
+ stopReason: string;
117
+ }
118
+ /**
119
+ * LLM access for plugins, routed through the host's provider layer —
120
+ * plugins never handle API keys themselves. Resolution order for
121
+ * provider/model on each call:
122
+ *
123
+ * 1. `PluginLLMOptions.provider` / `.model` (per call)
124
+ * 2. `config.extensions[<plugin>].llm.provider` / `.model` (per plugin)
125
+ * 3. the host session's active provider/model (default)
126
+ *
127
+ * Exposed as `api.llm` — `undefined` on minimal hosts (tests, the LSP
128
+ * server) that have no provider wired. Always guard:
129
+ * `if (!api.llm) return;`
130
+ */
131
+ export interface PluginLLM {
132
+ /** The effective defaults for this plugin (after config resolution). */
133
+ defaults(): {
134
+ provider: string;
135
+ model: string;
136
+ };
137
+ /** One-shot completion. Throws on provider errors. */
138
+ complete(prompt: string, opts?: PluginLLMOptions): Promise<PluginLLMResult>;
139
+ }
140
+ export interface PluginPipelines {
141
+ request: ReadonlyPipeline<Request>;
142
+ response: ReadonlyPipeline<Response>;
143
+ toolCall: ReadonlyPipeline<ToolCallPipelinePayload>;
144
+ userInput: ReadonlyPipeline<{
145
+ content: import('./blocks.js').ContentBlock[];
146
+ text: string;
147
+ ctx: Context;
148
+ }>;
149
+ assistantOutput: ReadonlyPipeline<TextBlock>;
150
+ contextWindow: ReadonlyPipeline<Context>;
151
+ [k: string]: ReadonlyPipeline<any>;
152
+ }
153
+ export interface PluginAPI {
154
+ container: Container;
155
+ pipelines: PluginPipelines;
156
+ events: EventBus;
157
+ tools: ToolRegistryView;
158
+ providers: ProviderRegistryView;
159
+ mcp: MCPRegistryView;
160
+ slashCommands: SlashCommandRegistryView;
161
+ /** Live session writer — plugins can append custom events here. */
162
+ session: SessionWriterView;
163
+ /** Scoped metrics sink — counters/histograms/gauges auto-namespaced under `plugin.<name>.` */
164
+ metrics: MetricsSinkView;
165
+ /** Registry for agent lifecycle extensions — hooks like beforeRun, beforeIteration, onError, etc. */
166
+ extensions: ExtensionRegistry;
167
+ /**
168
+ * Register a system prompt contributor. Plugins call this to inject
169
+ * ephemeral TextBlocks into the system prompt on every build.
170
+ * Returns an unregister function.
171
+ */
172
+ registerSystemPromptContributor(c: SystemPromptContributor): () => void;
173
+ /**
174
+ * Register an in-process lifecycle hook. `matcher` is a tool-name filter for
175
+ * `PreToolUse`/`PostToolUse` (`"Bash"`, `"edit|write"`, `"*"`) and ignored
176
+ * for other events. The hook can block, rewrite tool input, or inject extra
177
+ * context — see `HookOutcome`. Automatically removed when the plugin is
178
+ * uninstalled. Returns an unregister function.
179
+ */
180
+ registerHook(event: HookEvent, matcher: HookMatcher | undefined, hook: InProcessHook, options?: HookRegistrationOptions | undefined): () => void;
181
+ config: Config;
182
+ log: Logger;
183
+ /**
184
+ * Register a one-time event listener. The handler is automatically removed
185
+ * after the first emission, or when the plugin is uninstalled — whichever
186
+ * comes first.
187
+ */
188
+ onEvent<K extends EventName>(event: K, handler: Listener<K>): () => void;
189
+ /**
190
+ * Subscribe to all events matching a glob-style pattern.
191
+ * `'tool.*'` matches all tool events. `'*'` matches everything.
192
+ * Returns an unsubscribe function.
193
+ */
194
+ onPattern(pattern: string, handler: (event: string, payload: unknown) => void): () => void;
195
+ /**
196
+ * Emit a custom event on the agent's EventBus. Use for inter-plugin
197
+ * communication or to surface plugin-specific state to the host.
198
+ *
199
+ * Custom events use a `pluginName:eventName` convention to avoid
200
+ * collisions with built-in events (e.g. `my-plugin:cache_hit`).
201
+ * The payload is passed through to all subscribers.
202
+ */
203
+ emitCustom(event: string, payload: unknown): void;
204
+ /**
205
+ * Register a callback that fires when the configuration changes at
206
+ * runtime (e.g. via `/config` slash command or programmatic update).
207
+ * The handler receives the new and previous config snapshots.
208
+ * Returns an unsubscribe function.
209
+ */
210
+ onConfigChange(handler: (next: Readonly<Config>, prev: Readonly<Config>) => void): () => void;
211
+ /**
212
+ * The models registry (models.dev-backed catalog of providers, models,
213
+ * and per-token pricing). Optional — some hosts may not construct one
214
+ * (e.g. minimal CLI invocations, tests). Plugins that need pricing
215
+ * data (cost-tracker, billing reports) should treat this as the
216
+ * preferred source when present and fall back to a bundled table
217
+ * otherwise.
218
+ */
219
+ modelsRegistry?: ModelsRegistry | undefined;
220
+ /**
221
+ * The host's project-level mailbox. Optional — minimal hosts (tests,
222
+ * standalone CLI invocations, the LSP server) may not construct one.
223
+ * Plugins that publish status to other agents (todo-listener,
224
+ * session-recap) should treat this as the preferred source when present
225
+ * and gracefully no-op otherwise.
226
+ */
227
+ mailbox?: Mailbox | undefined;
228
+ /**
229
+ * LLM access routed through the host's provider layer. Optional —
230
+ * minimal hosts without a wired provider omit it; plugins must guard
231
+ * (`if (!api.llm) …`). Per-plugin provider/model defaults come from
232
+ * `config.extensions[<name>].llm = { provider, model }`.
233
+ */
234
+ llm?: PluginLLM | undefined;
235
+ }
236
+ /**
237
+ * Capability declaration — informs the host which subsystems a plugin
238
+ * intends to touch. Used for diagnostics and per-plugin enable/disable UX
239
+ * (e.g. "this plugin registers tools — disable to remove them"). Not
240
+ * enforced at runtime: a plugin that declares `tools: false` can still
241
+ * call `api.tools.register()`, but the host can flag the discrepancy.
242
+ */
243
+ export interface PluginCapabilities {
244
+ /** Will register tools via `api.tools.register()`. */
245
+ tools?: boolean | undefined;
246
+ /** Will register provider factories via `api.providers.register()`. */
247
+ providers?: boolean | undefined;
248
+ /**
249
+ * Pipelines the plugin hooks into. Use the standard names
250
+ * (`request | response | toolCall | userInput | assistantOutput | contextWindow`)
251
+ * or custom pipeline names exposed by other plugins.
252
+ */
253
+ pipelines?: string[] | undefined;
254
+ /** Will register slash commands via `api.slashCommands.register()`. */
255
+ slashCommands?: boolean | undefined;
256
+ /** Will start MCP servers via `api.mcp.start()`. */
257
+ mcp?: boolean | undefined;
258
+ /**
259
+ * Capabilities required to mutate (wrap, unregister, override) tools
260
+ * the plugin does not own. If empty or omitted, the plugin may only
261
+ * mutate its own tools. Official plugins bypass this check.
262
+ *
263
+ * Example: `['fs.read', 'net.outbound']` allows the plugin to wrap
264
+ * read-only tools, but not `fs.write` or `shell.arbitrary` tools.
265
+ */
266
+ toolMutateCapabilities?: string[] | undefined;
267
+ /**
268
+ * Will register in-process lifecycle hooks via `api.registerHook()`. When
269
+ * false (or omitted by a non-official plugin), the loader either logs a
270
+ * warning or throws — see `LoadPluginsOptions.enforceCapabilities`.
271
+ * Official plugins are not gated.
272
+ */
273
+ hooks?: boolean | undefined;
274
+ }
275
+ /**
276
+ * Structured dependency declaration. The string form (`dependsOn: ['foo']`)
277
+ * is shorthand for `[{ name: 'foo' }]` — both work. Use the structured form
278
+ * when you need a version constraint:
279
+ *
280
+ * dependsOn: [{ name: 'wstack-auth', version: '^1.2.0' }]
281
+ */
282
+ export interface PluginDependency {
283
+ name: string;
284
+ /** npm-style semver range. Supports `^`, `~`, exact, and unprefixed. */
285
+ version?: string | undefined;
286
+ }
287
+ export interface Plugin {
288
+ name: string;
289
+ version?: string | undefined;
290
+ /** One-line summary for `wstack plugins list` and error messages. */
291
+ description?: string | undefined;
292
+ /** Semver range against the kernel API version (KERNEL_API_VERSION). */
293
+ apiVersion: string;
294
+ /**
295
+ * Capability hints — what subsystems the plugin will register against.
296
+ * Optional; provided for diagnostics and UX. The loader does not enforce
297
+ * these, but mismatch is surfaced via logger at warn level.
298
+ */
299
+ capabilities?: PluginCapabilities | undefined;
300
+ /**
301
+ * JSON Schema for the options under `Config.plugins[<name>].options`.
302
+ * When present, the loader validates that section before calling `setup`
303
+ * and rejects the plugin with a clear error path on failure.
304
+ */
305
+ configSchema?: JSONSchema | undefined;
306
+ /**
307
+ * Mandatory plugin dependencies — loading fails if any are absent or
308
+ * version-incompatible. Accepts both the legacy string-array form and
309
+ * the structured form with version constraints.
310
+ */
311
+ dependsOn?: (string | PluginDependency)[] | undefined;
312
+ /** Optional plugin dependencies — silently skipped if absent. */
313
+ optionalDeps?: (string | PluginDependency)[] | undefined;
314
+ conflictsWith?: string[] | undefined;
315
+ /**
316
+ * Default configuration values, deep-merged under the plugin's options
317
+ * key before `configSchema` validation. User-provided values take
318
+ * precedence over defaults — this is a fallback, not an override.
319
+ *
320
+ * @example
321
+ * defaultConfig: { ttl: 3600, maxSize: 100 }
322
+ */
323
+ defaultConfig?: Record<string, unknown>;
324
+ /**
325
+ * Called by the host to activate the plugin. Receives the `PluginAPI`
326
+ * and an optional `AbortSignal` the plugin should respect for
327
+ * cancellation and timeout. `setup` must complete before the plugin is
328
+ * considered loaded; if it times out the plugin is rejected.
329
+ */
330
+ setup(api: PluginAPI, opts?: {
331
+ signal?: AbortSignal | undefined;
332
+ }): void | Promise<void>;
333
+ /**
334
+ * Called by the host during unload. Receives the same `PluginAPI` instance
335
+ * the plugin saw during `setup` and an optional `AbortSignal`. Teardown
336
+ * is best-effort — a timeout does not prevent other plugins from unloading.
337
+ */
338
+ teardown?(api: PluginAPI, opts?: {
339
+ signal?: AbortSignal | undefined;
340
+ }): void | Promise<void>;
341
+ /**
342
+ * Optional health check. Called by the host (e.g. `/diag plugins` slash
343
+ * command or health endpoint) to surface plugin status. Return
344
+ * `{ ok: false, message: '...' }` when the plugin is degraded.
345
+ */
346
+ health?(): Promise<{
347
+ ok: boolean;
348
+ message?: string | undefined;
349
+ }>;
350
+ /**
351
+ * Optional runtime descriptor. Plugins that spawn a language tool
352
+ * (`tsc`, `vitest`, `pytest`, `cargo test`, `go test`, …) should
353
+ * declare the target language, package manager, runner executable,
354
+ * and default command. The shared runtime helper
355
+ * (`@wrongstack/plugins/runtime`) consumes this declaration so the
356
+ * argv-sandboxing and flag-allowlist logic live in one place.
357
+ *
358
+ * Declaring a runtime is a UX hint today — the loader surfaces it in
359
+ * `/diag plugins` and the audit report. It will become a requirement
360
+ * for plugins that spawn language tools in a future release.
361
+ */
362
+ runtime?: PluginRuntime | undefined;
363
+ }
364
+ /**
365
+ * Plugin runtime declaration. The shared runtime helper
366
+ * (`@wrongstack/plugins/runtime`) is the source of truth for the
367
+ * shape and validation; this type lives in core so plugin manifests
368
+ * can depend on it without crossing the plugin boundary.
369
+ */
370
+ export interface PluginRuntime {
371
+ /** Stable identifier for diagnostics and listing (e.g. "typescript"). */
372
+ language: string;
373
+ /** Default package manager launcher (e.g. "pnpm"). "none" for bare-binary use. */
374
+ packageManager: 'none' | 'npm' | 'pnpm' | 'yarn' | 'bun' | 'pip' | 'poetry' | 'go' | 'cargo' | 'gem' | 'maven' | 'gradle' | 'dotnet';
375
+ /** Runner executable token, e.g. "tsc", "vitest", "pytest", "test" (cargo), "test" (go). */
376
+ executable: string;
377
+ /**
378
+ * Default command spelling used when the plugin has no user-supplied
379
+ * command. Must be parseable by the shared runtime helper — typically
380
+ * the launcher followed by `subcommand executable …flags`, or the
381
+ * bare executable.
382
+ */
383
+ defaultCommand: string;
384
+ }
385
+ //# sourceMappingURL=plugin.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.d.ts","sourceRoot":"","sources":["../../src/types/plugin.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,kCAAkC,CAAC;AAChE,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAChE,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAClE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,KAAK,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACzE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,8BAA8B,CAAC;AAChE,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,EAAE,SAAS,EAAE,WAAW,EAAE,uBAAuB,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AACjG,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,EAAE,cAAc,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AACvE,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,KAAK,EAAE,YAAY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cAAc,EAAE,MAAM,GAAG,KAAK,GAAG,MAAM,GAAG,MAAM,GAAG,KAAK,GAAG,KAAK,GAAG,QAAQ,GAAG,IAAI,GAAG,OAAO,GAAG,KAAK,GAAG,OAAO,GAAG,QAAQ,GAAG,QAAQ,CAAC;IACrI,4FAA4F;IAC5F,UAAU,EAAE,MAAM,CAAC;IACnB;;;;;OAKG;IACH,cAAc,EAAE,MAAM,CAAC;CACxB"}
@@ -0,0 +1,81 @@
1
+ /**
2
+ * Prompt registry / sync types — the contract for a remote prompt hub
3
+ * (e.g. prompts.wrongstack.com) and the local installed-prompts manifest.
4
+ *
5
+ * The manifest shape intentionally mirrors the bundled dataset's
6
+ * `data/prompts/index.json` (see `PromptManifest` in `types/prompt.ts`): the
7
+ * builtin dataset IS a local registry, so builtin and synced prompts can flow
8
+ * through one validation + diff path. This file defines the format and the
9
+ * structural validator; the actual fetch/download is a deliberately small stub
10
+ * (see `prompts/prompt-installer.ts`) — "groundwork now, sync later".
11
+ */
12
+ import type { PromptCategory } from './prompt.js';
13
+ export interface PromptRegistryRef {
14
+ id: string;
15
+ slug: string;
16
+ title: string;
17
+ description: string;
18
+ category: PromptCategory;
19
+ tags: string[];
20
+ /** sha256 of the prompt content — drives the update diff. */
21
+ checksum: string;
22
+ version?: string | undefined;
23
+ license?: string | undefined;
24
+ /** Optional direct URL to the full prompt JSON. */
25
+ url?: string | undefined;
26
+ }
27
+ export interface PromptRegistryManifest {
28
+ registryVersion: 1;
29
+ /** Where this manifest came from (hub URL or `owner/repo`). */
30
+ source: string;
31
+ generatedAt: string;
32
+ prompts: PromptRegistryRef[];
33
+ }
34
+ /** One entry recorded in `~/.wrongstack/installed-prompts.json`. */
35
+ export interface InstalledPromptEntry {
36
+ slug: string;
37
+ /** The registry/source this prompt was pulled from. */
38
+ source: string;
39
+ /** The ref pinned at install (tag/branch/commit or manifest version). */
40
+ ref: string;
41
+ checksum: string;
42
+ /** True once the prompt body has actually been written locally. */
43
+ synced: boolean;
44
+ installedAt: string;
45
+ }
46
+ export interface PromptManifestData {
47
+ version: 1;
48
+ entries: InstalledPromptEntry[];
49
+ }
50
+ /** Result of validating an untrusted manifest. */
51
+ export type ManifestValidation = {
52
+ ok: true;
53
+ manifest: PromptRegistryManifest;
54
+ } | {
55
+ ok: false;
56
+ errors: string[];
57
+ };
58
+ /**
59
+ * Structurally validate an untrusted registry manifest. Treats the manifest as
60
+ * DATA, not instructions: enforces slug charset, checksum format, and field
61
+ * lengths so a malicious hub can't smuggle oversized or malformed entries into
62
+ * the local store. Does NOT fetch prompt bodies.
63
+ */
64
+ export declare function validateRegistryManifest(raw: unknown): ManifestValidation;
65
+ export interface RegistryDiff {
66
+ /** Slugs present in the manifest but not locally. */
67
+ added: PromptRegistryRef[];
68
+ /** Slugs present locally but whose checksum differs in the manifest. */
69
+ updated: PromptRegistryRef[];
70
+ /** Slugs present locally and identical in the manifest. */
71
+ unchanged: PromptRegistryRef[];
72
+ }
73
+ /**
74
+ * Compute what a pull WOULD change, by slug+checksum, against the prompts the
75
+ * caller already has. Pure — no I/O, no writes.
76
+ */
77
+ export declare function diffRegistry(local: {
78
+ slug: string;
79
+ checksum?: string | undefined;
80
+ }[], manifest: PromptRegistryManifest): RegistryDiff;
81
+ //# sourceMappingURL=prompt-registry.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt-registry.d.ts","sourceRoot":"","sources":["../../src/types/prompt-registry.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AACH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,cAAc,CAAC;IACzB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,6DAA6D;IAC7D,QAAQ,EAAE,MAAM,CAAC;IAC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AK,EAAE;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,EAAE,EACxD,QAAQ,EAAE,sBAAsB,GAC/B,YAAY,CASd"}
@@ -5,28 +5,28 @@
5
5
  * without creating a cycle.
6
6
  */
7
7
  /** Provenance of a prompt — which layer it came from. */
8
- type PromptSource = 'builtin' | 'user' | 'project' | 'synced';
8
+ export type PromptSource = 'builtin' | 'user' | 'project' | 'synced';
9
9
  /**
10
10
  * The fourteen first-party categories shipped with the builtin dataset, plus
11
11
  * the `uncategorized` sentinel used when migrating legacy v1 entries. Builtin
12
12
  * prompts MUST use one of these (enforced by the dataset schema test); user and
13
13
  * project prompts may use any free-form string.
14
14
  */
15
- declare const BUILTIN_PROMPT_CATEGORIES: readonly ["coding", "debugging", "refactoring", "testing", "code-review", "architecture", "devops", "documentation", "data-analysis", "writing", "research", "product", "agentic-workflows", "meta-prompting", "uncategorized"];
16
- type BuiltinPromptCategory = (typeof BUILTIN_PROMPT_CATEGORIES)[number];
15
+ export declare const BUILTIN_PROMPT_CATEGORIES: readonly ['coding', 'debugging', 'refactoring', 'testing', 'code-review', 'architecture', 'devops', 'documentation', 'data-analysis', 'writing', 'research', 'product', 'agentic-workflows', 'meta-prompting', 'uncategorized'];
16
+ export type BuiltinPromptCategory = (typeof BUILTIN_PROMPT_CATEGORIES)[number];
17
17
  /**
18
18
  * Human-readable labels for the builtin categories (for UI chips / pickers).
19
19
  */
20
- declare const PROMPT_CATEGORY_LABELS: Record<BuiltinPromptCategory, string>;
20
+ export declare const PROMPT_CATEGORY_LABELS: Record<BuiltinPromptCategory, string>;
21
21
  /**
22
22
  * A prompt's category. Typed as a free-form string because user/project prompts
23
23
  * may invent their own; the builtin dataset is constrained to
24
24
  * {@link BUILTIN_PROMPT_CATEGORIES} by its schema.
25
25
  */
26
- type PromptCategory = BuiltinPromptCategory | (string & {});
27
- declare function isBuiltinCategory(value: string): value is BuiltinPromptCategory;
26
+ export type PromptCategory = BuiltinPromptCategory | (string & {});
27
+ export declare function isBuiltinCategory(value: string): value is BuiltinPromptCategory;
28
28
  /** A `{{name}}` placeholder declared by a prompt. */
29
- interface PromptVariable {
29
+ export interface PromptVariable {
30
30
  /** Placeholder name as it appears between `{{ }}` (case-sensitive). */
31
31
  name: string;
32
32
  description?: string | undefined;
@@ -49,7 +49,7 @@ interface PromptVariable {
49
49
  * A reusable prompt. v2 schema. Legacy v1 entries (only `id/title/content/tags/
50
50
  * createdAt/updatedAt`) are upgraded lazily on read by `migratePromptEntry`.
51
51
  */
52
- interface PromptEntry {
52
+ export interface PromptEntry {
53
53
  /** Stable unique handle (ULID for new entries; legacy short hex tolerated). */
54
54
  id: string;
55
55
  /** kebab-case stable key — the dedup key across layers and registry key. */
@@ -76,12 +76,12 @@ interface PromptEntry {
76
76
  updatedAt: string;
77
77
  }
78
78
  /** One category with its prompt count, for picker chips. */
79
- interface PromptCategoryCount {
79
+ export interface PromptCategoryCount {
80
80
  id: PromptCategory;
81
81
  label: string;
82
82
  count: number;
83
83
  }
84
- interface PromptSearchOptions {
84
+ export interface PromptSearchOptions {
85
85
  category?: PromptCategory | undefined;
86
86
  /** Max results (default: unbounded). */
87
87
  limit?: number | undefined;
@@ -90,7 +90,7 @@ interface PromptSearchOptions {
90
90
  * Read-side contract over the three prompt layers (project > user > builtin),
91
91
  * merged and de-duplicated by slug. Mirrors `SkillLoader` in shape.
92
92
  */
93
- interface PromptLoader {
93
+ export interface PromptLoader {
94
94
  /** All prompts across layers, project/user shadowing builtin by slug. */
95
95
  list(): Promise<PromptEntry[]>;
96
96
  /** Resolve by slug first, then by id. */
@@ -120,14 +120,14 @@ interface PromptLoader {
120
120
  * The packed builtin index (also the shape a remote registry manifest mirrors
121
121
  * — see `types/prompt-registry.ts`).
122
122
  */
123
- interface PromptManifest {
123
+ export interface PromptManifest {
124
124
  datasetVersion: number;
125
125
  generatedAt: string;
126
126
  count: number;
127
127
  categories: PromptCategoryCount[];
128
128
  prompts: PromptManifestRef[];
129
129
  }
130
- interface PromptManifestRef {
130
+ export interface PromptManifestRef {
131
131
  id: string;
132
132
  slug: string;
133
133
  title: string;
@@ -138,5 +138,4 @@ interface PromptManifestRef {
138
138
  /** Relative path of the per-prompt file within the dataset. */
139
139
  file: string;
140
140
  }
141
-
142
- export { BUILTIN_PROMPT_CATEGORIES as B, type PromptLoader as P, type PromptEntry as a, type PromptSearchOptions as b, type PromptCategoryCount as c, type BuiltinPromptCategory as d, PROMPT_CATEGORY_LABELS as e, type PromptCategory as f, type PromptManifest as g, type PromptManifestRef as h, type PromptSource as i, type PromptVariable as j, isBuiltinCategory as k };
141
+ //# sourceMappingURL=prompt.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../../src/types/prompt.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,yDAAyD;AACzD,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,CAAC;AAErE;;;;;GAKG;AACH,eAAO,MAAM,yBAAyB,YACpC,QAAQ,EACR,WAAW,EACX,aAAa,EACb,SAAS,EACT,aAAa,EACb,cAAc,EACd,QAAQ,EACR,eAAe,EACf,eAAe,EACf,SAAS,EACT,UAAU,EACV,SAAS,EACT,mBAAmB,EACnB,gBAAgB,EAChB,eAAe,CACP,CAAC;AAEX,MAAM,MAAM,qBAAqB,GAAG,CAAC,OAAO,yBAAyB,CAAC,CAAC,MAAM,CAAC,CAAC;AAE/E;;GAEG;AACH,eAAO,MAAM,sBAAsB,EAAE,MAAM,CAAC,qBAAqB,EAAE,MAAM,CAgBxE,CAAC;AAEF;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,qBAAqB,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC;AAEnE,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,qBAAqB,CAE/E;AAED,qDAA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CAC9B;AAED,MAAM,WAAW,iBAAiB;IAChC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,EAAE,MAAM,CAAC;IACpB,QAAQ,EAAE,cAAc,CAAC;IACzB,IAAI,EAAE,MAAM,EAAE,CAAC;IACf,QAAQ,EAAE,MAAM,CAAC;IACjB,+DAA+D;IAC/D,IAAI,EAAE,MAAM,CAAC;CACd"}
@@ -1,15 +1,15 @@
1
- import { E as EventBus } from './events-Bgnh43r9.js';
2
- import { L as Logger } from './logger-B63L5bTg.js';
3
- import { T as Tracer } from './observability-D-HZN_mF.js';
4
- import { P as Provider, c as Request, d as Context, e as Response } from './tool-BNlnIJvo.js';
5
- import { R as RetryPolicy } from './retry-policy-CQ7KwXJa.js';
6
-
1
+ import type { EventBus } from '../kernel/events.js';
2
+ import type { Logger } from './logger.js';
3
+ import type { Tracer } from './observability.js';
4
+ import type { Provider, Request, Response } from './provider.js';
5
+ import type { RetryPolicy } from './retry-policy.js';
6
+ import type { Context } from '../core/context.js';
7
7
  /**
8
8
  * Options passed to a ProviderRunner when calling the provider.
9
9
  * Shape intentionally mirrors runProviderWithRetry's parameters
10
10
  * so the default implementation is a thin wrapper.
11
11
  */
12
- interface RunProviderOptions {
12
+ export interface RunProviderOptions {
13
13
  provider: Provider;
14
14
  request: Request;
15
15
  signal: AbortSignal;
@@ -29,8 +29,7 @@ interface RunProviderOptions {
29
29
  * For lighter-weight wrapping (add middleware without replacing),
30
30
  * use `AgentExtension.wrapProviderRunner` via the ExtensionRegistry.
31
31
  */
32
- interface ProviderRunner {
32
+ export interface ProviderRunner {
33
33
  run(opts: RunProviderOptions): Promise<Response>;
34
34
  }
35
-
36
- export type { ProviderRunner as P, RunProviderOptions as R };
35
+ //# sourceMappingURL=provider-runner.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"provider-runner.d.ts","sourceRoot":"","sources":["../../src/types/provider-runner.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qBAAqB,CAAC;AACpD,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,KAAK,EAAE,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,eAAe,CAAC;AACjE,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,mBAAmB,CAAC;AACrD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAElD;;;;GAIG;AACH,MAAM,WAAW,kBAAkB;IACjC,QAAQ,EAAE,QAAQ,CAAC;IACnB,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,EAAE,WAAW,CAAC;IACpB,GAAG,EAAE,OAAO,CAAC;IACb,MAAM,EAAE,QAAQ,CAAC;IACjB,KAAK,EAAE,WAAW,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B;AAED;;;;;;;;;GASG;AACH,MAAM,WAAW,cAAc;IAC7B,GAAG,CAAC,IAAI,EAAE,kBAAkB,GAAG,OAAO,CAAC,QAAQ,CAAC,CAAC;CAClD"}