@wrongstack/core 0.284.0 → 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,167 @@
1
+ /**
2
+ * Lifecycle hook types — the pure, serializable contract shared by the config
3
+ * layer, the in-process plugin API, and the shell-hook executor.
4
+ *
5
+ * These types intentionally avoid referencing the live `Context` (which lives
6
+ * in `core/`, a higher layer) so `types/config.ts` can import them without
7
+ * creating a layering cycle. The runtime pieces (`hooks/registry`,
8
+ * `hooks/runner`, `hooks/shell-executor`) translate live run state into the
9
+ * serializable `HookInput` below.
10
+ */
11
+ /** Lifecycle phases a hook can subscribe to. */
12
+ export type HookEvent = 'PreToolUse' | 'PostToolUse' | 'UserPromptSubmit' | 'SessionStart' | 'Stop';
13
+ /**
14
+ * Tool-name matcher for `PreToolUse`/`PostToolUse` hooks. A pipe-delimited
15
+ * list of exact tool names, or `*` for all tools. Examples: `"Bash"`,
16
+ * `"edit|write"`, `"*"`. Ignored (treated as `*`) for non-tool events.
17
+ */
18
+ export type HookMatcher = string;
19
+ /** What to do when a hook crashes, times out, or returns malformed output. */
20
+ export type HookFailurePolicy = 'open' | 'closed';
21
+ /**
22
+ * PreToolUse hooks run in two phases. Mutators compose first; validators then
23
+ * inspect the final arguments and may no longer rewrite them.
24
+ */
25
+ export type PreToolUseStage = 'mutate' | 'validate';
26
+ /** Per-registration runtime controls shared by every hook transport. */
27
+ export interface HookRegistrationOptions {
28
+ /** Stable name used in logs and model-visible fail-closed errors. */
29
+ name?: string | undefined;
30
+ /** Per-invocation deadline in milliseconds (default 5000). */
31
+ timeoutMs?: number | undefined;
32
+ /** `open` skips a failed hook; `closed` converts failure to a denial. */
33
+ failurePolicy?: HookFailurePolicy | undefined;
34
+ /** PreToolUse phase. Legacy registrations default to `mutate`. */
35
+ stage?: PreToolUseStage | undefined;
36
+ /**
37
+ * Trusted enforcement hook. Policy hooks remain active under `--no-hooks`;
38
+ * ordinary automation hooks do not.
39
+ */
40
+ policy?: boolean | undefined;
41
+ }
42
+ /** Deadline/cancellation context passed to in-process hooks. */
43
+ export interface HookInvocationContext {
44
+ signal: AbortSignal;
45
+ /** Absolute Unix epoch deadline in milliseconds. */
46
+ deadlineAt: number;
47
+ }
48
+ /**
49
+ * The JSON payload handed to a hook. For shell hooks this is serialized to
50
+ * stdin; for in-process hooks it is passed as the sole argument. Kept flat and
51
+ * serializable so both transports see the same shape.
52
+ */
53
+ export interface HookInput {
54
+ event: HookEvent;
55
+ /** Present for PreToolUse / PostToolUse. */
56
+ toolName?: string | undefined;
57
+ /** Tool arguments (PreToolUse / PostToolUse). */
58
+ toolInput?: unknown | undefined;
59
+ /** Tool result preview (PostToolUse only). */
60
+ toolResult?: {
61
+ content: string;
62
+ isError: boolean;
63
+ };
64
+ /** The submitted user text (UserPromptSubmit only). */
65
+ prompt?: string | undefined;
66
+ /** Absolute working directory of the session. */
67
+ cwd: string;
68
+ /** Active session id, when known. */
69
+ sessionId?: string | undefined;
70
+ }
71
+ /**
72
+ * What a hook returns. Every field is optional — an empty object (or a hook
73
+ * that returns nothing) is a no-op "allow".
74
+ */
75
+ export interface HookOutcome {
76
+ /**
77
+ * `block` stops the action (PreToolUse → tool not run; UserPromptSubmit →
78
+ * turn short-circuited). `allow` is the explicit no-op. Omitted = allow.
79
+ */
80
+ decision?: 'block' | 'allow' | undefined;
81
+ /** Human-readable reason, surfaced to the model when blocking. */
82
+ reason?: string | undefined;
83
+ /**
84
+ * PreToolUse only: replacement tool arguments. The executor swaps these in
85
+ * and RE-VALIDATES them against the tool's input schema before running.
86
+ */
87
+ modifiedInput?: Record<string, unknown>;
88
+ /**
89
+ * Extra context to fold back to the model — appended to the tool_result
90
+ * (PostToolUse), the user message (UserPromptSubmit), or the system preamble
91
+ * (SessionStart).
92
+ */
93
+ additionalContext?: string | undefined;
94
+ /**
95
+ * Where the additionalContext should appear. `inline` (default) appends it
96
+ * to the tool_result / user message content so it renders as part of that
97
+ * block. `separate` appends it as a new user message, keeping plugin notices
98
+ * visually separated from the actual tool output.
99
+ */
100
+ contextAs?: 'inline' | 'separate' | undefined;
101
+ }
102
+ /**
103
+ * Preferred, mutually-exclusive PreToolUse result. `allow` means only that
104
+ * this hook has no objection; it never bypasses the core permission policy.
105
+ */
106
+ export type PreToolUseOutcome = {
107
+ additionalContext?: string | undefined;
108
+ contextAs?: 'inline' | 'separate' | undefined;
109
+ } & ({
110
+ action: 'allow';
111
+ } | {
112
+ action: 'deny';
113
+ reason: string;
114
+ } | {
115
+ action: 'mutate';
116
+ input: Record<string, unknown>;
117
+ reason?: string | undefined;
118
+ });
119
+ /** New and legacy hook outputs accepted at the transport boundary. */
120
+ export type AnyHookOutcome = HookOutcome | PreToolUseOutcome;
121
+ /** An in-process hook function (registered via the plugin API). */
122
+ export type InProcessHook = (input: HookInput, runtime: HookInvocationContext) => AnyHookOutcome | void | Promise<AnyHookOutcome | void>;
123
+ interface ConfiguredHookBase extends HookRegistrationOptions {
124
+ /** Tool-name matcher (defaults to `*`). */
125
+ matcher?: HookMatcher | undefined;
126
+ }
127
+ /**
128
+ * A shell-command hook (declared in `config.hooks`). Claude-compatible: the
129
+ * `HookInput` JSON is written to the command's stdin; a JSON `HookOutcome` may
130
+ * be printed to stdout, and exit code 2 forces `decision: 'block'`.
131
+ */
132
+ export interface ShellHook extends ConfiguredHookBase {
133
+ type?: 'command' | undefined;
134
+ /** Command line run via the platform shell. */
135
+ command: string;
136
+ }
137
+ /** Native HTTP hook. The HookInput JSON is POSTed and JSON output is parsed. */
138
+ export interface HttpHook extends ConfiguredHookBase {
139
+ type: 'http';
140
+ url: string;
141
+ headers?: Record<string, string> | undefined;
142
+ }
143
+ export type ConfiguredHook = ShellHook | HttpHook;
144
+ interface HookEntryBase {
145
+ event: HookEvent;
146
+ matcher: HookMatcher;
147
+ name: string;
148
+ timeoutMs?: number | undefined;
149
+ failurePolicy: HookFailurePolicy;
150
+ stage: PreToolUseStage;
151
+ policy: boolean;
152
+ }
153
+ /** A registered hook entry, discriminated by transport. */
154
+ export type HookEntry = (HookEntryBase & {
155
+ kind: 'inprocess';
156
+ hook: InProcessHook;
157
+ owner?: string | undefined;
158
+ }) | (HookEntryBase & {
159
+ kind: 'shell';
160
+ command: string;
161
+ }) | (HookEntryBase & {
162
+ kind: 'http';
163
+ url: string;
164
+ headers?: Record<string, string> | undefined;
165
+ });
166
+ export {};
167
+ //# sourceMappingURL=hooks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hooks.d.ts","sourceRoot":"","sources":["../../src/types/hooks.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAEH,gDAAgD;AAChD,MAAM,MAAM,SAAS,GAAG,YAAY,GAAG,aAAa,GAAG,kBAAkB,GAAG,cAAc,GAAG,MAAM,CAAC;AAEpG;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,MAAM,CAAC;AAEjC,8EAA8E;AAC9E,MAAM,MAAM,iBAAiB,GAAG,MAAM,GAAG,QAAQ,CAAC;AAElD;;;GAGG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,UAAU,CAAC;AAEpD,wEAAwE;AACxE,MAAM,WAAW,uBAAuB;IACtC,qEAAqE;IACrE,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC1B,8DAA8D;IAC9D,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,yEAAyE;IACzE,aAAa,CAAC,EAAE,iBAAiB,GAAG,SAAS,CAAC;IAC9C,kEAAkE;IAClE,KAAK,CAAC,EAAE,eAAe,GAAG,SAAS,CAAC;IACpC;;;OAGG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;CAC9B;AAED,gEAAgE;AAChE,MAAM,WAAW,qBAAqB;IACpC,MAAM,EAAE,WAAW,CAAC;IACpB,oDAAoD;IACpD,UAAU,EAAE,MAAM,CAAC;CACpB;AAED;;;;GAIG;AACH,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,SAAS,CAAC;IACjB,4CAA4C;IAC5C,QAAQ,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC9B,iDAAiD;IACjD,SAAS,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAChC,8CAA8C;IAC9C,UAAU,CAAC,EAAE;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,CAAC;IACnD,uDAAuD;IACvD,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B,iDAAiD;IACjD,GAAG,EAAE,MAAM,CAAC;IACZ,qCAAqC;IACrC,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC;AAED;;;GAGG;AACH,MAAM,WAAW,WAAW;IAC1B;;;OAGG;IACH,QAAQ,CAAC,EAAE,OAAO,GAAG,OAAO,GAAG,SAAS,CAAC;IACzC,kEAAkE;IAClE,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;;OAGG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACxC;;;;OAIG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC;;;;;OAKG;IACH,SAAS,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;CAC/C;AAED;;;GAGG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B,iBAAiB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACvC,SAAS,CAAC,EAAE,QAAQ,GAAG,UAAU,GAAG,SAAS,CAAC;CAC/C,GAAG,CACA;IAAE,MAAM,EAAE,OAAO,CAAA;CAAE,GACnB;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE,GAClC;IAAE,MAAM,EAAE,QAAQ,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAA;CAAE,CACpF,CAAC;AAEF,sEAAsE;AACtE,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,iBAAiB,CAAC;AAE7D,mEAAmE;AACnE,MAAM,MAAM,aAAa,GAAG,CAC1B,KAAK,EAAE,SAAS,EAChB,OAAO,EAAE,qBAAqB,KAC3B,cAAc,GAAG,IAAI,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;AAE5D,UAAU,kBAAmB,SAAQ,uBAAuB;IAC1D,2CAA2C;IAC3C,OAAO,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;CACnC;AAED;;;;GAIG;AACH,MAAM,WAAW,SAAU,SAAQ,kBAAkB;IACnD,IAAI,CAAC,EAAE,SAAS,GAAG,SAAS,CAAC;IAC7B,+CAA+C;IAC/C,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,gFAAgF;AAChF,MAAM,WAAW,QAAS,SAAQ,kBAAkB;IAClD,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAC;CAC9C;AAED,MAAM,MAAM,cAAc,GAAG,SAAS,GAAG,QAAQ,CAAC;AAElD,UAAU,aAAa;IACrB,KAAK,EAAE,SAAS,CAAC;IACjB,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B,aAAa,EAAE,iBAAiB,CAAC;IACjC,KAAK,EAAE,eAAe,CAAC;IACvB,MAAM,EAAE,OAAO,CAAC;CACjB;AAED,2DAA2D;AAC3D,MAAM,MAAM,SAAS,GACjB,CAAC,aAAa,GAAG;IACf,IAAI,EAAE,WAAW,CAAC;IAClB,IAAI,EAAE,aAAa,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5B,CAAC,GACF,CAAC,aAAa,GAAG;IAAE,IAAI,EAAE,OAAO,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,CAAC,GACpD,CAAC,aAAa,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,SAAS,CAAA;CAAE,CAAC,CAAC"}
@@ -1,244 +1,40 @@
1
- export { E as AgentError, q as CacheTtl, r as Capabilities, G as CompletedWorkEvidence, H as CompletedWorkSource, I as ConfigError, i as ContentBlock, K as ContextEvidenceState, L as ContextFileEvidence, O as ContextIntentEvidence, Q as ContextRepeatedReadEvidence, V as ERROR_CODES, X as ErrorCode, Y as ErrorSeverity, Z as ErrorSubsystem, _ as FetchError, $ as FileSnapshot, F as ForkedSession, a0 as FsError, a1 as ImageBlock, J as JSONSchema, a2 as JsonSchemaSpec, M as Message, a3 as MessageRole, a4 as ParseError, f as Permission, a5 as PluginError, P as Provider, h as ProviderError, a6 as ProviderErrorBody, a7 as ProviderErrorKind, a as ReasoningConfig, p as ReasoningEffort, R as ReasoningRequest, c as Request, a9 as RequestCacheControl, e as Response, aa as ResponseFormat, ab as ResumeFileStatus, ac as ResumeFileValidationEntry, ad as ResumeValidation, x as ResumedSession, n as RiskTier, af as SafetySetting, ag as SddError, y as SessionData, ah as SessionError, S as SessionEvent, v as SessionForkOptions, j as SessionMetadata, k as SessionStore, z as SessionSummary, b as SessionWriter, ai as SideEffect, aj as SideEffectRisk, am as StopReason, an as StreamEvent, ao as StreamHangError, s as TextBlock, ap as ThinkingBlock, g as Tool, aq as ToolCallContext, ar as ToolError, l as ToolErrorCategory, as as ToolErrorInfo, at as ToolEvidenceStatus, au as ToolFinalEvent, av as ToolIconId, o as ToolOutputMetadata, m as ToolProgressEvent, D as ToolResultBlock, aw as ToolStreamEvent, B as ToolUseBlock, ax as ToolValidationError, U as Usage, W as WorkspaceCheckpointRef, w as WorkspaceMaterializationResult, ay as WrongStackError, az as classifyProviderError, aA as effectiveInputTokens, aC as isAgentError, aD as isConfigError, aE as isFetchError, aF as isFsError, aG as isImageBlock, aH as isParseError, aI as isPluginError, aJ as isRetryableKind, aK as isSddError, aL as isSessionError, aM as isTextBlock, aN as isToolError, aO as isToolResultBlock, aP as isToolUseBlock, aQ as isToolValidationError, aR as isWrongStackError, aS as toWrongStackError } from '../tool-BNlnIJvo.js';
2
- export { P as ProviderRunner, R as RunProviderOptions } from '../provider-runner-ChL-kVg6.js';
3
- export { A as AdaptiveConcurrencyConfig, t as AnyHookOutcome, u as AutonomyConfig, v as CONTEXT_WINDOW_MODES, w as CircuitBreakerRuntimeConfig, j as Config, l as ConfigLoader, n as ConfigStore, C as ConfiguredHook, x as ContextConfig, o as ContextWindowAggressiveOn, y as ContextWindowConfigLike, z as ContextWindowMode, B as ContextWindowModeId, p as ContextWindowPolicy, D as ContextWindowThresholds, E as CustomModelDefinition, G as DEFAULT_CONTEXT_WINDOW_MODE_ID, J as DEFAULT_TUI_THINKING_WORD, K as ExecDangerConfig, L as ExecToolConfig, N as FeaturesConfig, F as FleetConfig, O as FleetSupervisorConfig, i as HookEntry, H as HookEvent, Q as HookFailurePolicy, r as HookInput, U as HookInvocationContext, f as HookMatcher, s as HookOutcome, g as HookRegistrationOptions, V as HqClientConfig, h as HttpHook, I as InProcessHook, X as IndexingConfig, Y as InputHistoryConfig, Z as LaunchConfig, _ as LogConfig, $ as LoopDetectionConfig, a0 as MAX_TUI_THINKING_WORD_LENGTH, b as MCPServerConfig, a as ModelMatrixEntry, a1 as ModelRuntimeCacheConfig, k as ModelRuntimeConfig, a2 as ModelRuntimeParametersConfig, a3 as ModelRuntimeReasoningConfig, e as ModelsDevModel, c as ModelsDevPayload, a4 as ModelsDevProvider, M as ModelsRegistry, a5 as PluginConfig, a6 as PreToolUseOutcome, a7 as PreToolUseStage, a8 as ProviderApiKey, P as ProviderConfig, R as ResolvedModel, d as ResolvedProvider, a9 as SessionLoggingConfig, S as ShellHook, aa as SkillsConfig, ab as SyncCategory, m as SyncConfig, q as TokenSavingTier, ac as ToolDescriptionMode, ad as ToolDescriptionModeConfig, T as ToolResultRenderMode, ae as ToolResultRenderModeConfig, af as ToolsConfig, W as WireFamily, ag as formatContextWindowModeList, ah as getContextWindowMode, ai as isContextWindowModeId, aj as listContextWindowModes, ak as normalizeTokenSavingTier, al as normalizeTuiThinkingWord, am as resolveContextWindowPolicy } from '../config-MRqn1V-u.js';
4
- export { a as CompactReport, C as Compactor } from '../compactor-DQLL4HTo.js';
5
- export { a as PermissionDecision, P as PermissionPolicy, T as TrustPolicy } from '../permission-ByDKXEcG.js';
6
- export { C as CheckpointInfo, R as RewindResult, a as RewindResultExtended, S as SessionRewinder } from '../session-rewinder-C9HnMkhP.js';
7
- export { a as AddAttachmentInput, c as Attachment, d as AttachmentKind, e as AttachmentMeta, b as AttachmentRef, A as AttachmentStore, D as DefaultSessionReader } from '../session-reader-7Esxrkpw.js';
8
- export { D as DEFAULT_AUTONOMY_CONFIG, a as DEFAULT_CIRCUIT_BREAKER_CONFIG, b as DEFAULT_CONTEXT_CONFIG, c as DEFAULT_SESSION_LOGGING_CONFIG, d as DEFAULT_SESSION_PRUNE_DAYS, e as DEFAULT_TOOLS_CONFIG } from '../default-config-B79_gJYv.js';
9
- export { o as MEMORY_TYPE_LABELS, p as MemoryClearedPayload, q as MemoryConsolidatedPayload, b as MemoryEntry, r as MemoryForgottenPayload, s as MemoryPriority, d as MemoryRelevanceContext, t as MemoryRememberedPayload, M as MemoryScope, c as MemoryStore, u as MemoryType, S as ScoredEntry } from '../events-Bgnh43r9.js';
10
- export { b as SkillEntry, S as SkillLoader, a as SkillManifest } from '../skill-DHniprNl.js';
11
- import { f as PromptCategory } from '../prompt-DLd35n4Q.js';
12
- export { B as BUILTIN_PROMPT_CATEGORIES, d as BuiltinPromptCategory, e as PROMPT_CATEGORY_LABELS, c as PromptCategoryCount, a as PromptEntry, P as PromptLoader, g as PromptManifest, h as PromptManifestRef, b as PromptSearchOptions, i as PromptSource, j as PromptVariable, k as isBuiltinCategory } from '../prompt-DLd35n4Q.js';
13
- import { I as IterationStage, l as ParallelIterationStage } from '../parallel-eternal-engine-HUrtePLd.js';
14
- export { f as DESIGN_STACKS, d as DesignKitEntry, b as DesignKitLoader, c as DesignKitManifest, e as DesignKitTokens, D as DesignStack, a as DesignStudioState, g as DesignTokenSet, m as isDesignStack } from '../parallel-eternal-engine-HUrtePLd.js';
15
- export { B as BuildContext, c as ModelCapabilities, a as Renderer, S as SystemPromptBuilder, d as SystemPromptRegions, g as flattenSystemPromptRegions } from '../pipeline-DGDyIohT.js';
16
- export { I as InputReader, P as PromptOption } from '../input-reader-E-ffP2ee.js';
17
- export { m as AwaitAnyResult, V as CoordinatorEvents, C as CoordinatorStatus, c as DoneCondition, r as MCPRegistryView, u as MetricsSinkView, M as MultiAgentConfig, a5 as MultiAgentCoordinator, y as Plugin, P as PluginAPI, w as PluginCapabilities, x as PluginDependency, v as PluginLLM, a7 as PluginLLMOptions, a8 as PluginLLMResult, o as PluginPipelines, ar as ProviderFactory, q as ProviderRegistryView, t as SessionWriterView, n as SlashCommand, s as SlashCommandRegistryView, a9 as SpawnResult, i as SubagentConfig, ab as SubagentContext, ac as SubagentError, ad as SubagentErrorKind, ae as SubagentPartialResult, af as SubagentRunContext, ag as SubagentRunOutcome, S as SubagentRunner, ah as SubagentSpawnLineage, ai as SubagentStructuredReport, al as TaskDelegation, l as TaskResult, T as TaskSpec, p as ToolRegistryView } from '../multi-agent-coordinator-4RCRZKjN.js';
18
- export { D as DEFAULT_MODES, b as Mode, a as ModeConfig, c as ModeManifest, M as ModeStore } from '../mode-CZlO9iU1.js';
19
- export { C as CriticalPathResult, S as SerializableTaskGraph, f as SerializableTaskGraphNodes, g as SerializedTaskGraph, h as TaskAssignment, i as TaskDependency, j as TaskEdge, k as TaskFilter, d as TaskGraph, e as TaskNode, a as TaskPriority, c as TaskProgress, l as TaskSort, b as TaskStatus, T as TaskType, m as computeTaskProgress, n as deserializeTaskGraph, o as findCriticalPath, s as serializeTaskGraph, t as topologicalSort } from '../task-graph-CH3acNQ7.js';
20
- export { A as AggregateHealth, a as HealthCheck, b as HealthCheckResult, H as HealthRegistry, c as HealthStatus, d as MetricLabels, e as MetricSeries, M as MetricsSink, f as MetricsSnapshot, S as Span, T as Tracer } from '../observability-D-HZN_mF.js';
21
- export { S as SystemPromptContributor } from '../index--Gm41aBJ.js';
22
- import '../logger-B63L5bTg.js';
23
- import '../retry-policy-CQ7KwXJa.js';
24
- import '../goal-store-Datpp-ar.js';
25
- import '../mailbox-types-BGZWrYTJ.js';
26
- import 'node:events';
27
- import '../secret-scrubber-3MHDDAtm.js';
28
-
29
- /**
30
- * Prompt registry / sync types — the contract for a remote prompt hub
31
- * (e.g. prompts.wrongstack.com) and the local installed-prompts manifest.
32
- *
33
- * The manifest shape intentionally mirrors the bundled dataset's
34
- * `data/prompts/index.json` (see `PromptManifest` in `types/prompt.ts`): the
35
- * builtin dataset IS a local registry, so builtin and synced prompts can flow
36
- * through one validation + diff path. This file defines the format and the
37
- * structural validator; the actual fetch/download is a deliberately small stub
38
- * (see `prompts/prompt-installer.ts`) — "groundwork now, sync later".
39
- */
40
-
41
- interface PromptRegistryRef {
42
- id: string;
43
- slug: string;
44
- title: string;
45
- description: string;
46
- category: PromptCategory;
47
- tags: string[];
48
- /** sha256 of the prompt content — drives the update diff. */
49
- checksum: string;
50
- version?: string | undefined;
51
- license?: string | undefined;
52
- /** Optional direct URL to the full prompt JSON. */
53
- url?: string | undefined;
54
- }
55
- interface PromptRegistryManifest {
56
- registryVersion: 1;
57
- /** Where this manifest came from (hub URL or `owner/repo`). */
58
- source: string;
59
- generatedAt: string;
60
- prompts: PromptRegistryRef[];
61
- }
62
- /** One entry recorded in `~/.wrongstack/installed-prompts.json`. */
63
- interface InstalledPromptEntry {
64
- slug: string;
65
- /** The registry/source this prompt was pulled from. */
66
- source: string;
67
- /** The ref pinned at install (tag/branch/commit or manifest version). */
68
- ref: string;
69
- checksum: string;
70
- /** True once the prompt body has actually been written locally. */
71
- synced: boolean;
72
- installedAt: string;
73
- }
74
- interface PromptManifestData {
75
- version: 1;
76
- entries: InstalledPromptEntry[];
77
- }
78
- /** Result of validating an untrusted manifest. */
79
- type ManifestValidation = {
80
- ok: true;
81
- manifest: PromptRegistryManifest;
82
- } | {
83
- ok: false;
84
- errors: string[];
85
- };
86
- /**
87
- * Structurally validate an untrusted registry manifest. Treats the manifest as
88
- * DATA, not instructions: enforces slug charset, checksum format, and field
89
- * lengths so a malicious hub can't smuggle oversized or malformed entries into
90
- * the local store. Does NOT fetch prompt bodies.
91
- */
92
- declare function validateRegistryManifest(raw: unknown): ManifestValidation;
93
- interface RegistryDiff {
94
- /** Slugs present in the manifest but not locally. */
95
- added: PromptRegistryRef[];
96
- /** Slugs present locally but whose checksum differs in the manifest. */
97
- updated: PromptRegistryRef[];
98
- /** Slugs present locally and identical in the manifest. */
99
- unchanged: PromptRegistryRef[];
100
- }
101
- /**
102
- * Compute what a pull WOULD change, by slug+checksum, against the prompts the
103
- * caller already has. Pure — no I/O, no writes.
104
- */
105
- declare function diffRegistry(local: {
106
- slug: string;
107
- checksum?: string | undefined;
108
- }[], manifest: PromptRegistryManifest): RegistryDiff;
109
-
110
- /**
111
- * Sentinel keys provider adapters use to wrap tool-call arguments that could
112
- * not be parsed into a proper JSON object. Single source of truth — the core
113
- * tool executor (which DETECTS these markers to surface a friendly error)
114
- * defines them here, and the providers package (which PRODUCES them when
115
- * wrapping) imports from `@wrongstack/core`.
116
- *
117
- * P3 #14 (before-release.md): the list was duplicated in tool-executor.ts with
118
- * a "Keep this list in sync" comment — a manual rule that will eventually be
119
- * forgotten. Centralizing it removes the sync burden.
120
- *
121
- * Layering note: this lives in core (not providers) because the dependency
122
- * direction is providers → core, not the reverse. Putting it in providers
123
- * would force core into a forbidden upward dependency.
124
- *
125
- * Current markers:
126
- * - `__raw` — produced by `parseToolInput` (Anthropic / shared)
127
- * - `__raw_arguments` — produced by `contentFromOpenAI` (OpenAI / compatible)
128
- * - `_raw` — produced by the streaming response builder's
129
- * `safeJsonOrRaw` (legacy fallback)
130
- */
131
- declare const MALFORMED_ARG_MARKERS: readonly ["__raw", "__raw_arguments", "_raw"];
132
-
133
- type SpecStatus = 'draft' | 'review' | 'approved' | 'implemented' | 'deprecated';
134
- type SpecSectionType = 'overview' | 'requirements' | 'architecture' | 'api' | 'data' | 'security' | 'acceptance';
135
- interface SpecSection {
136
- type: SpecSectionType;
137
- title: string;
138
- content: string;
139
- level: number;
140
- children?: SpecSection[] | undefined;
141
- }
142
- interface SpecRequirement {
143
- id: string;
144
- type: 'functional' | 'non-functional' | 'security' | 'performance' | 'ux';
145
- priority: 'critical' | 'high' | 'medium' | 'low';
146
- description: string;
147
- acceptanceCriteria: string[];
148
- blockedBy?: string[] | undefined;
149
- implements?: string[] | undefined;
150
- }
151
- interface SpecApiEndpoint {
152
- method: 'GET' | 'POST' | 'PUT' | 'DELETE' | 'PATCH';
153
- path: string;
154
- description: string;
155
- request?: Record<string, unknown>;
156
- response?: Record<string, unknown>;
157
- auth?: boolean | undefined;
158
- }
159
- interface Specification {
160
- id: string;
161
- title: string;
162
- version: string;
163
- status: SpecStatus;
164
- overview: string;
165
- sections: SpecSection[];
166
- requirements: SpecRequirement[];
167
- apiEndpoints?: SpecApiEndpoint[] | undefined;
168
- dependencies?: string[] | undefined;
169
- createdAt: number;
170
- updatedAt: number;
171
- metadata?: Record<string, unknown>;
172
- }
173
- interface SpecAnalysis {
174
- specId: string;
175
- completeness: number;
176
- coverage: {
177
- requirements: number;
178
- apiEndpoints: number;
179
- edgeCases: number;
180
- errorHandling: number;
181
- };
182
- gaps: string[];
183
- risks: {
184
- requirement: string;
185
- risk: string;
186
- severity: 'high' | 'medium' | 'low';
187
- }[];
188
- suggestions: string[];
189
- }
190
- interface SpecValidationResult {
191
- valid: boolean;
192
- errors: {
193
- path: string;
194
- message: string;
195
- }[];
196
- warnings: {
197
- path: string;
198
- message: string;
199
- }[];
200
- }
201
- interface SpecTemplate {
202
- id: string;
203
- name: string;
204
- description: string;
205
- sections: Omit<SpecSection, 'content'>[];
206
- defaultRequirements: Omit<SpecRequirement, 'id' | 'description'>[];
207
- }
208
- declare const DEFAULT_SPEC_TEMPLATE: SpecTemplate;
209
-
210
- /** Union of serial and parallel autonomy engine stage types (from EternalAutonomyEngine / ParallelEternalEngine). */
211
- type AutonomyStage = IterationStage | ParallelIterationStage;
212
-
213
- /**
214
- * Shared type-level utilities used across WrongStack packages.
215
- *
216
- * These are pure type helpers with no runtime footprint. They solve
217
- * recurring TypeScript pattern problems that the standard library
218
- * types (Pick, Omit, Partial, etc.) don't handle well — particularly
219
- * around discriminated unions and distribution.
220
- */
221
- /**
222
- * Distributive version of the built-in {@link Omit}.
223
- *
224
- * **Why this exists:** The standard `Omit<T, K>` is defined as
225
- * `Pick<T, Exclude<keyof T, K>>`. When `T` is a discriminated union,
226
- * `keyof T` returns the *intersection* of all members' keys — not
227
- * what you want. `Omit<{ a: 1 } | { b: 2 }, 'id'>` collapses to `{}`.
228
- *
229
- * `DistributiveOmit` forces distribution over each union member via
230
- * a conditional type (`T extends unknown`), yielding the expected
231
- * result: `Omit<{ a: 1 }, 'id'> | Omit<{ b: 2 }, 'id'>`.
232
- *
233
- * @example
234
- * ```ts
235
- * type Entry = { id: number; kind: 'user'; text: string }
236
- * | { id: number; kind: 'tool'; name: string };
237
- *
238
- * type Broken = Omit<Entry, 'id'>; // {}
239
- * type Working = DistributiveOmit<Entry, 'id'>; // { kind: 'user'; text } | { kind: 'tool'; name }
240
- * ```
241
- */
242
- type DistributiveOmit<T, K extends string | number | symbol> = T extends unknown ? Omit<T, K> : never;
243
-
244
- export { type AutonomyStage, DEFAULT_SPEC_TEMPLATE, type DistributiveOmit, type InstalledPromptEntry, MALFORMED_ARG_MARKERS, type ManifestValidation, PromptCategory, type PromptManifestData, type PromptRegistryManifest, type PromptRegistryRef, type RegistryDiff, type SpecAnalysis, type SpecApiEndpoint, type SpecRequirement, type SpecSection, type SpecSectionType, type SpecStatus, type SpecTemplate, type SpecValidationResult, type Specification, diffRegistry, validateRegistryManifest };
1
+ export * from './blocks.js';
2
+ export * from './messages.js';
3
+ export * from './tool.js';
4
+ export * from './tool-markers.js';
5
+ export * from './side-effect.js';
6
+ export * from './provider.js';
7
+ export { StreamHangError } from './provider.js';
8
+ export * from './provider-runner.js';
9
+ export * from './config.js';
10
+ export * from './hooks.js';
11
+ export type { Compactor, CompactReport } from './compactor.js';
12
+ export * from './permission.js';
13
+ export * from './session.js';
14
+ export * from './session-rewinder.js';
15
+ export * from './attachment.js';
16
+ export * from './default-config.js';
17
+ export * from './memory.js';
18
+ export * from './skill.js';
19
+ export * from './prompt.js';
20
+ export * from './prompt-registry.js';
21
+ export * from './design-kit.js';
22
+ export * from './system-prompt.js';
23
+ export * from './renderer.js';
24
+ export * from './input-reader.js';
25
+ export * from './plugin.js';
26
+ export * from './errors.js';
27
+ export * from './models-registry.js';
28
+ export * from './mode.js';
29
+ export * from './context-window.js';
30
+ export * from './context-evidence.js';
31
+ export * from './multi-agent.js';
32
+ export * from './spec.js';
33
+ export * from './task-graph.js';
34
+ export * from './slash-command.js';
35
+ export * from './observability.js';
36
+ export * from './system-prompt-contributor.js';
37
+ export * from '../storage/session-reader.js';
38
+ export * from './autonomy.js';
39
+ export * from './utility-types.js';
40
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,eAAe,CAAC;AAC9B,OAAO,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAChD,cAAc,sBAAsB,CAAC;AACrC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,YAAY,EAAE,SAAS,EAAE,aAAa,EAAE,MAAM,gBAAgB,CAAC;AAC/D,cAAc,iBAAiB,CAAC;AAChC,cAAc,cAAc,CAAC;AAC7B,cAAc,uBAAuB,CAAC;AACtC,cAAc,iBAAiB,CAAC;AAChC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,eAAe,CAAC;AAC9B,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,uBAAuB,CAAC;AACtC,cAAc,kBAAkB,CAAC;AACjC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,oBAAoB,CAAC;AACnC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC"}
@@ -1,8 +1,3 @@
1
- import * as path2 from 'path';
2
- import { readFileSync, statSync } from 'fs';
3
- import { fileURLToPath } from 'url';
4
- import * as fs from 'fs/promises';
5
-
6
1
  // src/types/blocks.ts
7
2
  function isTextBlock(b) {
8
3
  return b.type === "text";
@@ -38,7 +33,7 @@ function toErrorMessage(err) {
38
33
  // src/utils/expect-defined.ts
39
34
  function expectDefined(value, label) {
40
35
  if (value === null || value === void 0) {
41
- const err = new Error("Expected value to be defined");
36
+ const err = new Error(label ? `Expected ${label} to be defined` : "Expected value to be defined");
42
37
  err.name = "ExpectDefinedError";
43
38
  throw err;
44
39
  }
@@ -80,13 +75,16 @@ function compileUserRegex(pattern, flags) {
80
75
  };
81
76
  }
82
77
  }
78
+
79
+ // src/utils/session-scoped-path.ts
80
+ import * as path from "node:path";
83
81
  function sessionScopedPath(dir, sessionId, suffix) {
84
82
  if (!sessionId || sessionId.includes("\\") || sessionId.includes("..")) {
85
83
  throw invalid(sessionId);
86
84
  }
87
- const resolved = path2.resolve(dir, `${sessionId}${suffix}`);
88
- const rel = path2.relative(path2.resolve(dir), resolved);
89
- if (rel.startsWith("..") || path2.isAbsolute(rel)) {
85
+ const resolved = path.resolve(dir, `${sessionId}${suffix}`);
86
+ const rel = path.relative(path.resolve(dir), resolved);
87
+ if (rel.startsWith("..") || path.isAbsolute(rel)) {
90
88
  throw invalid(sessionId);
91
89
  }
92
90
  return resolved;
@@ -738,6 +736,11 @@ function isDesignStack(v) {
738
736
  function flattenSystemPromptRegions(regions) {
739
737
  return [...regions.core, ...regions.session, ...regions.volatile];
740
738
  }
739
+
740
+ // src/types/mode-prompts.ts
741
+ import { readFileSync, statSync } from "node:fs";
742
+ import * as path2 from "node:path";
743
+ import { fileURLToPath } from "node:url";
741
744
  function modePrompt(id) {
742
745
  for (const dir of modePromptDirCandidates()) {
743
746
  try {
@@ -1139,6 +1142,9 @@ function deserializeTaskGraph(input) {
1139
1142
  }
1140
1143
  return { ...input, nodes };
1141
1144
  }
1145
+
1146
+ // src/storage/session-reader.ts
1147
+ import * as fs from "node:fs/promises";
1142
1148
  var DefaultSessionReader = class _DefaultSessionReader {
1143
1149
  store;
1144
1150
  eventCache = /* @__PURE__ */ new Map();
@@ -1476,6 +1482,8 @@ function renderMarkdown(meta, events) {
1476
1482
  lines.push("");
1477
1483
  break;
1478
1484
  }
1485
+ default:
1486
+ break;
1479
1487
  }
1480
1488
  }
1481
1489
  return lines.join("\n");
@@ -1509,11 +1517,81 @@ function renderPlainText(meta, events) {
1509
1517
  case "error":
1510
1518
  lines.push(`[${e.ts}] ERROR (${e.phase}): ${e.message}`);
1511
1519
  break;
1520
+ default:
1521
+ break;
1512
1522
  }
1513
1523
  }
1514
1524
  return lines.join("\n");
1515
1525
  }
1516
-
1517
- export { AgentError, BUILTIN_PROMPT_CATEGORIES, CONTEXT_WINDOW_MODES, ConfigError, DEFAULT_AUTONOMY_CONFIG, DEFAULT_CIRCUIT_BREAKER_CONFIG, DEFAULT_CONTEXT_CONFIG, DEFAULT_CONTEXT_WINDOW_MODE_ID, DEFAULT_MODES, DEFAULT_SESSION_LOGGING_CONFIG, DEFAULT_SESSION_PRUNE_DAYS, DEFAULT_SPEC_TEMPLATE, DEFAULT_TOOLS_CONFIG, DEFAULT_TUI_THINKING_WORD, DESIGN_STACKS, DefaultSessionReader, ERROR_CODES, FetchError, FsError, MALFORMED_ARG_MARKERS, MAX_TUI_THINKING_WORD_LENGTH, MEMORY_TYPE_LABELS, PROMPT_CATEGORY_LABELS, ParseError, PluginError, ProviderError, SddError, SessionError, StreamHangError, ToolError, ToolErrorCategory, ToolValidationError, WrongStackError, classifyProviderError, computeTaskProgress, deserializeTaskGraph, diffRegistry, effectiveInputTokens, findCriticalPath, flattenSystemPromptRegions, formatContextWindowModeList, getContextWindowMode, isAgentError, isBuiltinCategory, isConfigError, isContextWindowModeId, isDesignStack, isFetchError, isFsError, isImageBlock, isParseError, isPluginError, isRetryableKind, isSddError, isSessionError, isTextBlock, isToolError, isToolResultBlock, isToolUseBlock, isToolValidationError, isWrongStackError, listContextWindowModes, normalizeTokenSavingTier, normalizeTuiThinkingWord, resolveContextWindowPolicy, serializeTaskGraph, toWrongStackError, topologicalSort, validateRegistryManifest };
1526
+ export {
1527
+ AgentError,
1528
+ BUILTIN_PROMPT_CATEGORIES,
1529
+ CONTEXT_WINDOW_MODES,
1530
+ ConfigError,
1531
+ DEFAULT_AUTONOMY_CONFIG,
1532
+ DEFAULT_CIRCUIT_BREAKER_CONFIG,
1533
+ DEFAULT_CONTEXT_CONFIG,
1534
+ DEFAULT_CONTEXT_WINDOW_MODE_ID,
1535
+ DEFAULT_MODES,
1536
+ DEFAULT_SESSION_LOGGING_CONFIG,
1537
+ DEFAULT_SESSION_PRUNE_DAYS,
1538
+ DEFAULT_SPEC_TEMPLATE,
1539
+ DEFAULT_TOOLS_CONFIG,
1540
+ DEFAULT_TUI_THINKING_WORD,
1541
+ DESIGN_STACKS,
1542
+ DefaultSessionReader,
1543
+ ERROR_CODES,
1544
+ FetchError,
1545
+ FsError,
1546
+ MALFORMED_ARG_MARKERS,
1547
+ MAX_TUI_THINKING_WORD_LENGTH,
1548
+ MEMORY_TYPE_LABELS,
1549
+ PROMPT_CATEGORY_LABELS,
1550
+ ParseError,
1551
+ PluginError,
1552
+ ProviderError,
1553
+ SddError,
1554
+ SessionError,
1555
+ StreamHangError,
1556
+ ToolError,
1557
+ ToolErrorCategory,
1558
+ ToolValidationError,
1559
+ WrongStackError,
1560
+ classifyProviderError,
1561
+ computeTaskProgress,
1562
+ deserializeTaskGraph,
1563
+ diffRegistry,
1564
+ effectiveInputTokens,
1565
+ findCriticalPath,
1566
+ flattenSystemPromptRegions,
1567
+ formatContextWindowModeList,
1568
+ getContextWindowMode,
1569
+ isAgentError,
1570
+ isBuiltinCategory,
1571
+ isConfigError,
1572
+ isContextWindowModeId,
1573
+ isDesignStack,
1574
+ isFetchError,
1575
+ isFsError,
1576
+ isImageBlock,
1577
+ isParseError,
1578
+ isPluginError,
1579
+ isRetryableKind,
1580
+ isSddError,
1581
+ isSessionError,
1582
+ isTextBlock,
1583
+ isToolError,
1584
+ isToolResultBlock,
1585
+ isToolUseBlock,
1586
+ isToolValidationError,
1587
+ isWrongStackError,
1588
+ listContextWindowModes,
1589
+ normalizeTokenSavingTier,
1590
+ normalizeTuiThinkingWord,
1591
+ resolveContextWindowPolicy,
1592
+ serializeTaskGraph,
1593
+ toWrongStackError,
1594
+ topologicalSort,
1595
+ validateRegistryManifest
1596
+ };
1518
1597
  //# sourceMappingURL=index.js.map
1519
- //# sourceMappingURL=index.js.map