@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,269 @@
1
+ import type { TextBlock } from '../types/blocks.js';
2
+ import type { Message } from '../types/messages.js';
3
+ import type { Provider, Usage } from '../types/provider.js';
4
+ import type { SessionWriter } from '../types/session.js';
5
+ import type { ContextEvidenceState } from '../types/context-evidence.js';
6
+ import type { TokenCounter } from '../types/token-counter.js';
7
+ import type { Tool } from '../types/tool.js';
8
+ import { ConversationState } from './conversation-state.js';
9
+ import type { RunEnv } from './run-env.js';
10
+ export interface TodoItem {
11
+ id: string;
12
+ content: string;
13
+ status: 'pending' | 'in_progress' | 'completed';
14
+ activeForm?: string | undefined;
15
+ /** When promoted from a plan item, stores the plan item's id. */
16
+ promotedFromPlan?: string | undefined;
17
+ /** When promoted from a task, stores the task's id. */
18
+ promotedFromTask?: string | undefined;
19
+ }
20
+ export interface RunOptions {
21
+ signal?: AbortSignal | undefined;
22
+ model?: string | undefined;
23
+ executionStrategy?: 'parallel' | 'sequential' | 'smart' | undefined;
24
+ maxIterations?: number | undefined;
25
+ /**
26
+ * Enable autonomous continue for this specific run. When true, the agent
27
+ * loop re-runs on `[continue]`/`[next step]`/`[proceed]` markers or
28
+ * `continue_to_next_iteration()` tool calls instead of returning.
29
+ * Overrides `AgentInit.autonomousContinue` for this call only.
30
+ */
31
+ autonomousContinue?: boolean | undefined;
32
+ }
33
+ export interface ContextInit {
34
+ systemPrompt: TextBlock[];
35
+ provider: Provider;
36
+ session: SessionWriter;
37
+ signal: AbortSignal;
38
+ tokenCounter: TokenCounter;
39
+ cwd: string;
40
+ projectRoot: string;
41
+ /** Mutable working directory. Defaults to `cwd`. Must stay within `projectRoot`. */
42
+ workingDir?: string | undefined;
43
+ /**
44
+ * When false, file tools and `setWorkingDir()` are confined to `projectRoot`.
45
+ * Defaults to `false` (restrictive) when omitted so directly-constructed
46
+ * contexts (tests, embedded callers) keep the safe behavior; the runtime
47
+ * passes the config-derived value (default `true` — permissive) explicitly.
48
+ */
49
+ allowOutsideProjectRoot?: boolean | undefined;
50
+ model: string;
51
+ tools?: Tool[] | undefined;
52
+ /** Agent id performing this run (e.g. 'leader', 'executor', 'tech-stack'). */
53
+ agentId?: string | undefined;
54
+ /** Human-readable agent name. */
55
+ agentName?: string | undefined;
56
+ /**
57
+ * Session-level trace ID for correlating storage events with agent
58
+ * iterations in observability pipelines. Stored on the SessionWriter
59
+ * so that storage operations can emit it in `storage.*` events.
60
+ * When set, the Context constructor propagates it to
61
+ * `session.traceId` automatically.
62
+ */
63
+ traceId?: string | undefined;
64
+ }
65
+ /**
66
+ * L1-A: `Context` is the live agent-run object. Its read-only environment
67
+ * shape is exposed by the `RunEnv` interface (every field below the
68
+ * conversation state) and its mutable shape by `ConversationState` (the
69
+ * `state` accessor). New code should declare the narrower type at its
70
+ * parameter — pass `ctx` for it. Existing tools that accept `Context`
71
+ * still work because `Context` structurally satisfies both.
72
+ *
73
+ * The single source of truth for the project directory is `projectRoot`.
74
+ * All tools (read/write/bash/exec) resolve paths relative to this.
75
+ * Sessions, config, memory, and logs are also stored under this root.
76
+ *
77
+ * There IS a mutable `workingDir` (separate from `projectRoot`) that can be
78
+ * changed at runtime via `setWorkingDir()`. It starts as `cwd` and allows
79
+ * the agent and user to navigate within the project without spawning a new
80
+ * process. All changes must stay inside `projectRoot`.
81
+ */
82
+ export declare class Context implements RunEnv {
83
+ messages: Message[];
84
+ todos: TodoItem[];
85
+ /**
86
+ * Files whose content the **user / model has explicitly seen** via the
87
+ * `read` tool (or an edit's auto-read, which surfaces the content to the
88
+ * model). This is the set the permission policy's write-smart-bypass
89
+ * (step 7) checks — writing a file the model has already read is treated
90
+ * as "no new content to approve". It must NEVER contain files only touched
91
+ * by `edit`/`write`, otherwise the model could repeatedly overwrite a file
92
+ * whose content the user never saw (P1 #1, before-release.md).
93
+ *
94
+ * Tool-driven mutations record via `writtenFiles` + `recordRead(..., 'write')`
95
+ * so mtime tracking still works without widening the bypass.
96
+ */
97
+ readFiles: Set<string>;
98
+ /**
99
+ * Files written by `edit`/`write` in this session. Tracked for observability
100
+ * and to keep `readFiles` (the permission-bypass source of truth) clean.
101
+ * `recordRead(path, mtime, 'write')` adds here instead of `readFiles`.
102
+ */
103
+ writtenFiles: Set<string>;
104
+ fileMtimes: Map<string, number>;
105
+ /**
106
+ * sha-256 (hex) of file content at the last recorded read/write, when the
107
+ * recording tool had the content in hand. Used by `edit` as the authoritative
108
+ * staleness arbiter: mtime comparison has a 2 s tolerance window on Windows
109
+ * (FAT/NTFS granularity) during which an external modification is invisible,
110
+ * and conversely a bare `touch` bumps mtime without changing content. Hash
111
+ * equality resolves both cases exactly. Entries are dropped whenever a
112
+ * hash-less `recordRead` observes a *different* mtime (content may have
113
+ * changed under us — fall back to the mtime heuristic rather than trust a
114
+ * stale hash).
115
+ */
116
+ fileHashes: Map<string, string>;
117
+ /**
118
+ * Structured side-effect records accumulated during the current run
119
+ * (P2 #5). Populated by `recordSideEffect()` — read by /diag for an
120
+ * in-memory audit trail without parsing the JSONL file. Cleared by
121
+ * `clearFileTracking()` alongside read/written-file tracking.
122
+ */
123
+ sideEffects: import('../types/side-effect.js').SideEffect[];
124
+ contextEvidence: ContextEvidenceState;
125
+ systemPrompt: TextBlock[];
126
+ provider: Provider;
127
+ session: SessionWriter;
128
+ signal: AbortSignal;
129
+ tokenCounter: TokenCounter;
130
+ cwd: string;
131
+ projectRoot: string;
132
+ /** Mutable working directory — starts as `cwd`. Change via `setWorkingDir()`. */
133
+ workingDir: string;
134
+ /**
135
+ * When true, file tools (via `_util.ts`) and `setWorkingDir()` reject paths
136
+ * outside `projectRoot`. When false, those boundary checks are bypassed so
137
+ * tools may reach paths outside the project (still gated by permission
138
+ * tiers). Mutable so `/settings` can toggle it live on the running session.
139
+ */
140
+ allowOutsideProjectRoot: boolean;
141
+ model: string;
142
+ tools: Tool[];
143
+ meta: Record<string, unknown>;
144
+ /** Agent id performing this run (e.g. 'leader', 'executor'). */
145
+ agentId: string;
146
+ /** Human-readable agent name. */
147
+ agentName: string;
148
+ /**
149
+ * Session-level trace ID for correlating storage events with agent
150
+ * iterations. Stored here and also propagated to `session.traceId`
151
+ * so storage operations can include it in `storage.*` events.
152
+ */
153
+ traceId: string | undefined;
154
+ /** Callbacks fired when `setWorkingDir()` changes the working directory. */
155
+ private _onWorkingDirChanged;
156
+ /**
157
+ * Set to true when the conversation gains new tool_use or tool_result
158
+ * blocks — the only time repairToolUseAdjacency() can find new issues.
159
+ * buildAndRunRequestPipeline() checks this flag to skip an O(n) scan
160
+ * on iterations where no tool content was added (pure text responses).
161
+ */
162
+ toolAdjacencyDirty: boolean;
163
+ /**
164
+ * H1: pre-computed total-request token estimate from the most recent
165
+ * `estimateRequestTokens()` call in the agent loop's pre-flight step.
166
+ * The middleware that decides when to compact, the `emitContextPct`
167
+ * helper that drives the live context-fill bar, and the pre-flight
168
+ * itself all need this number; previously each one walked the same
169
+ * messages/system/tools arrays independently. Stashing it here lets
170
+ * the three call sites share a single compute per iteration.
171
+ *
172
+ * The value is the **uncalibrated** total. Callers that want the
173
+ * calibrated number apply the per-(provider,model) ratio themselves.
174
+ */
175
+ lastRequestTokens: number | undefined;
176
+ constructor(init: ContextInit);
177
+ /**
178
+ * Observable wrapper over the mutable conversation state. Lazy so
179
+ * subsystems that don't subscribe pay nothing. Mutations made directly
180
+ * on `ctx.messages` / `ctx.todos` are still visible through this
181
+ * wrapper's read API (it holds a reference, not a copy) but only
182
+ * mutations that go through `state.appendMessage()` etc. fire
183
+ * `onChange`. New code should prefer the wrapper API.
184
+ */
185
+ private _state;
186
+ get state(): ConversationState;
187
+ /**
188
+ * Register a teardown hook tied to the current run's abort signal.
189
+ * Hooks registered before a run starts are stored and fired when the
190
+ * next run ends; there is no immediate fire when no run is active.
191
+ *
192
+ * **Scope:** these hooks fire on the **whole agent run's** abort, not on
193
+ * an individual tool call. For per-tool teardown of resources owned by
194
+ * the tool author (child processes, handles), prefer `Tool.cleanup` —
195
+ * see its JSDoc for the full rule.
196
+ */
197
+ private abortHooks;
198
+ registerAbortHook(fn: () => void | Promise<void>): () => void;
199
+ drainAbortHooks(): Promise<void>;
200
+ /**
201
+ * Record that a file's content was seen / mtime was observed.
202
+ *
203
+ * `source` controls which tracking set is populated — and therefore whether
204
+ * the permission policy's write-smart-bypass (step 7) will auto-approve a
205
+ * subsequent `write` to this path:
206
+ *
207
+ * - `'user'` (default): the model/user saw the content (via `read`, or an
208
+ * edit's auto-read that surfaced it). Adds to `readFiles` → bypass applies.
209
+ * - `'write'`: a tool wrote the file (`edit`/`write`) and is recording the
210
+ * new mtime so subsequent edits detect external modification. Adds to
211
+ * `writtenFiles` only — the bypass does NOT apply, because the user never
212
+ * approved the new content (P1 #1, before-release.md).
213
+ *
214
+ * `fileMtimes` is updated in both cases so mtime-based staleness checks work.
215
+ *
216
+ * `contentHash` (sha-256 hex of the exact content seen) is optional so
217
+ * existing callers keep working. When provided it is stored in `fileHashes`
218
+ * and becomes the authoritative staleness arbiter for later edits. When
219
+ * omitted, a previously stored hash survives only if the observed mtime is
220
+ * unchanged — a different mtime with no fresh hash means the content may
221
+ * have changed, so the stale hash is dropped and staleness checks fall back
222
+ * to mtime comparison.
223
+ */
224
+ recordRead(absPath: string, mtimeMs: number, source?: 'user' | 'write', contentHash?: string): void;
225
+ /** Clear accumulated file-read metadata after compaction or at boundaries
226
+ * where stale read history could cause tools to skip legitimate re-reads.
227
+ * The agent re-populates this naturally on the next file access. */
228
+ clearFileTracking(): void;
229
+ /**
230
+ * Record a structured side effect for the audit trail (P2 #5).
231
+ * Called by tools that perform non-filesystem mutations (bash, install,
232
+ * fetch) so /diag and session replay can show what the agent did beyond
233
+ * file edits.
234
+ *
235
+ * Unlike recordFileChange(), this does NOT support undo — it is purely
236
+ * for observability and audit. The event is appended to the session
237
+ * JSONL fire-and-forget; errors are swallowed so recording never blocks
238
+ * tool execution.
239
+ */
240
+ recordSideEffect(sideEffect: import('../types/side-effect.js').SideEffect): void;
241
+ /**
242
+ * True if the model/user has explicitly seen this file's content via `read`
243
+ * (or an edit auto-read). Tool-only writes (`source: 'write'`) do NOT count
244
+ * — this is the source of truth for the permission policy's write bypass.
245
+ */
246
+ hasRead(absPath: string): boolean;
247
+ /** True if `edit`/`write` wrote this file in the current session. */
248
+ hasWritten(absPath: string): boolean;
249
+ lastReadMtime(absPath: string): number | undefined;
250
+ /** sha-256 (hex) of the content at the last recorded read/write, if the
251
+ * recording tool supplied one. See `fileHashes` for drop semantics. */
252
+ lastReadHash(absPath: string): string | undefined;
253
+ /**
254
+ * Change the working directory for path resolution. Resolves relative paths
255
+ * against `projectRoot` and validates the result is within the project root.
256
+ * Fires all registered `onWorkingDirChanged` callbacks.
257
+ * Returns the resolved absolute path.
258
+ */
259
+ setWorkingDir(dir: string): string;
260
+ /**
261
+ * Register a callback that fires when the working directory changes.
262
+ * Returns an unsubscribe function. Callbacks are fired synchronously
263
+ * inside `setWorkingDir()` — errors in callbacks are swallowed so one
264
+ * bad listener doesn't prevent others from executing.
265
+ */
266
+ onWorkingDirChanged(cb: (newDir: string, oldDir: string) => void): () => void;
267
+ usage(): Usage;
268
+ }
269
+ //# sourceMappingURL=context.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../src/core/context.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,92 @@
1
+ /**
2
+ * Continue-intent detection + continuation resolution.
3
+ *
4
+ * ## Problem
5
+ *
6
+ * Users frequently type a bare "continue" (or "devam", "go on", "keep going")
7
+ * to nudge the agent forward without supplying any new instruction. On its own
8
+ * that word carries no information about *what* to continue — the model has to
9
+ * re-derive "what was next" from history, which drifts as the context window is
10
+ * compacted. Left unanchored, a run of "continue … continue … continue" turns
11
+ * into an ever-vaguer manual loop: the model repeats work, declares completion
12
+ * prematurely, or wanders.
13
+ *
14
+ * ## Approach
15
+ *
16
+ * A bare "continue" is not new information — it points at an *existing* goal.
17
+ * So instead of asking the model to remember a hidden per-message marker, we
18
+ * resolve the continuation against the state we already keep:
19
+ *
20
+ * 1. **Open todos** — the strongest, most durable anchor. Survives context
21
+ * compaction (todos are re-injected each turn) and goal.json persistence.
22
+ * "continue" = resume the next open todo.
23
+ * 2. **Parsed `<nextsteps>` suggestions** — the menu surfaced after the last
24
+ * completed turn (already extracted and stored by the surface's
25
+ * suggestion store). "continue" = do suggestion #1.
26
+ * 3. **Open continuation** — no explicit task is queued, but the user still
27
+ * wants work to proceed. We inject an instruction that tells the model to
28
+ * pick the single most valuable next step itself and carry it out — while
29
+ * explicitly forbidding fabricated busywork. This is what keeps "continue"
30
+ * from ever dead-ending.
31
+ *
32
+ * This module is pure and surface-agnostic: detection takes the raw string,
33
+ * resolution takes already-collected data (todos + parsed suggestion strings).
34
+ * The REPL and TUI wire it in at the point where a user message becomes an
35
+ * agent run, *before* prompt refinement — a bare "continue" has nothing
36
+ * meaningful to refine, and refining it would only add latency and drift.
37
+ *
38
+ * The three triggers of the same continuation machinery — the user typing
39
+ * "continue", the model emitting the `[continue]` marker (see
40
+ * {@link parseContinueDirective}), and an autonomy tick — all ultimately want
41
+ * the same thing: advance the plan. This module is the manual-trigger path.
42
+ */
43
+ import type { TodoItem } from './context.js';
44
+ /**
45
+ * True when `raw` is a bare "continue"-style nudge and nothing else.
46
+ *
47
+ * Strict by construction: the message must normalize to exactly one of
48
+ * {@link CONTINUE_PHRASES}. Anything with additional substance ("continue but
49
+ * skip tests", "go on to the next file and commit") normalizes to a string
50
+ * outside the set and returns false, so it is handled as an ordinary message.
51
+ */
52
+ export declare function detectContinueIntent(raw: string): boolean;
53
+ /**
54
+ * Where the resolved continuation came from:
55
+ * - `todo` — resumed the next open todo (strongest anchor)
56
+ * - `suggestion` — took the top parsed `<nextsteps>` suggestion
57
+ * - `open` — no explicit task queued; model self-determines the step
58
+ */
59
+ export type ContinuationSource = 'todo' | 'suggestion' | 'open';
60
+ export interface ContinuationInput {
61
+ /** Live todo list (`ctx.todos`). */
62
+ todos?: readonly TodoItem[] | undefined;
63
+ /** Already-parsed `<nextsteps>` suggestion strings from the surface store. */
64
+ suggestions?: readonly string[] | undefined;
65
+ }
66
+ export interface ResolvedContinuation {
67
+ source: ContinuationSource;
68
+ /**
69
+ * The concrete instruction injected as the next user turn in place of the
70
+ * bare "continue". Written for the model, not the human.
71
+ */
72
+ text: string;
73
+ /**
74
+ * Short one-line label for the surface to echo (dim) so the human sees what
75
+ * "continue" resolved to without the full injected paragraph.
76
+ */
77
+ label: string;
78
+ }
79
+ /**
80
+ * Resolve what a bare "continue" should do, given the current run state.
81
+ *
82
+ * The ladder — first match wins:
83
+ * 1. an open todo (in-progress preferred, else the first pending),
84
+ * 2. the top stored suggestion,
85
+ * 3. an open continuation that never dead-ends.
86
+ *
87
+ * Always returns a usable {@link ResolvedContinuation}; the `open` branch is
88
+ * the guaranteed fallback so "continue" keeps work moving even with no todos
89
+ * and no suggestions.
90
+ */
91
+ export declare function resolveContinuation(input: ContinuationInput): ResolvedContinuation;
92
+ //# sourceMappingURL=continue-intent.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"continue-intent.d.ts","sourceRoot":"","sources":["../../src/core/continue-intent.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AA8H7C;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CASzD;AAID;;;;;GAKG;AACH,MAAM,MAAM,kBAAkB,GAAG,MAAM,GAAG,YAAY,GAAG,MAAM,CAAC;AAEhE,MAAM,WAAW,iBAAiB;IAChC,oCAAoC;IACpC,KAAK,CAAC,EAAE,SAAS,QAAQ,EAAE,GAAG,SAAS,CAAC;IACxC,8EAA8E;IAC9E,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,SAAS,CAAC;CAC7C;AAED,MAAM,WAAW,oBAAoB;IACnC,MAAM,EAAE,kBAAkB,CAAC;IAC3B;;;OAGG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAQD;;;;;;;;;;;GAWG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,iBAAiB,GAAG,oBAAoB,CAgDlF"}
@@ -0,0 +1,96 @@
1
+ /**
2
+ * L1-E: Autonomous continue — model-driven self-iteration continuation.
3
+ *
4
+ * In autonomous mode the model can signal "keep going without waiting for
5
+ * user input" by either:
6
+ *
7
+ * 1. **Tool call** — call `continue_to_next_iteration()` with no args.
8
+ * The tool returns `{ continue: true }` and sets
9
+ * `ctx.meta._autonomousContinue = true`. The agent loop detects this
10
+ * flag and re-runs the iteration instead of returning.
11
+ *
12
+ * 2. **Text marker** — include one of the below markers on its own line
13
+ * in the final text output (no tool call required):
14
+ *
15
+ * - `[continue]` — same as calling the tool; next iteration
16
+ * - `[next step]` — synonym for `[continue]`
17
+ * - `[proceed]` — synonym for `[continue]`
18
+ * - `[done]` — stop iterating; return to caller
19
+ *
20
+ * The parser matches `^\s*(?:\[continue\]|\[next step\]|\[proceed\]|\[done\])\s*$`
21
+ * so the marker must occupy its own line (possibly indented).
22
+ *
23
+ * Text markers are checked in `processResponse()` BEFORE the loop exit
24
+ * condition, so the model can emit `[continue]` as part of its final text
25
+ * block and the loop re-runs seamlessly.
26
+ *
27
+ * The `_autonomousContinue` flag lives in `ctx.meta` — it is cleared at
28
+ * the start of each iteration so a stale flag from a prior run cannot
29
+ * cause spurious continuation.
30
+ *
31
+ * @example
32
+ * ```typescript
33
+ * // Enable autonomous continuation on the Agent
34
+ * const agent = new Agent({
35
+ * // ... other options
36
+ * autonomousContinue: true, // enable text-marker parsing
37
+ * });
38
+ *
39
+ * // The model can now end a response with:
40
+ * // [continue]
41
+ * // and the agent will immediately start the next iteration without
42
+ * // returning to the caller.
43
+ * ```
44
+ */
45
+ import type { Context } from './context.js';
46
+ import type { Tool } from '../types/tool.js';
47
+ /**
48
+ * Directive emitted by the model to control the autonomous loop.
49
+ *
50
+ * `continue` — halt the current agent.run() and signal to the outer
51
+ * runner (e.g. AutonomousRunner) that it should re-invoke
52
+ * agent.run() immediately with a fresh continuation prompt.
53
+ *
54
+ * `stop` — halt and signal the outer runner to NOT continue.
55
+ * The agent.run() returns `{ status: 'done' }` as normal.
56
+ *
57
+ * `none` — no directive present; outer runner uses its own
58
+ * `doneCondition` to decide.
59
+ */
60
+ export type ContinueDirective = 'continue' | 'stop' | 'none';
61
+ /**
62
+ * Parse a `ContinueDirective` from raw assistant text.
63
+ *
64
+ * Matches markers on their own line (with optional leading/trailing
65
+ * whitespace). Case-insensitive. Returns `'none'` when no marker found.
66
+ *
67
+ * The marker must be on its own line to avoid false positives — e.g.
68
+ * "remember to use [continue] in your next email" does NOT trigger it.
69
+ */
70
+ export declare function parseContinueDirective(text: string): ContinueDirective;
71
+ /**
72
+ * Set the autonomous continue flag in the context.
73
+ * Called by `makeContinueToNextIterationTool` when the model invokes it.
74
+ */
75
+ export declare function setAutonomousContinue(ctx: Context): void;
76
+ /**
77
+ * Clear the autonomous continue flag at the start of each iteration.
78
+ * Called from `Agent.run()` before the loop body.
79
+ */
80
+ export declare function clearAutonomousContinue(ctx: Context): void;
81
+ /**
82
+ * Read and clear the autonomous continue flag in one call.
83
+ * Returns `true` if the flag was set; `false` otherwise.
84
+ */
85
+ export declare function consumeAutonomousContinue(ctx: Context): boolean;
86
+ /**
87
+ * Built-in tool that lets the model explicitly request the next iteration.
88
+ *
89
+ * When called, the agent loop detects the flag and re-runs instead of
90
+ * returning to the caller. This is the explicit counterpart to the
91
+ * `[continue]` text marker.
92
+ *
93
+ * The tool has no side effects and returns `{ continue: true }`.
94
+ */
95
+ export declare function makeContinueToNextIterationTool(): Tool;
96
+ //# sourceMappingURL=continue-to-next-iteration.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"continue-to-next-iteration.d.ts","sourceRoot":"","sources":["../../src/core/continue-to-next-iteration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2CG;AACH,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAE5C,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AAE7C;;;;;;;;;;;;GAYG;AACH,MAAM,MAAM,iBAAiB,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,CAAC;AAE7D;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,GAAG,iBAAiB,CAqCtE;AAaD;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAExD;AAED;;;GAGG;AACH,wBAAgB,uBAAuB,CAAC,GAAG,EAAE,OAAO,GAAG,IAAI,CAE1D;AAED;;;GAGG;AACH,wBAAgB,yBAAyB,CAAC,GAAG,EAAE,OAAO,GAAG,OAAO,CAI/D;AAED;;;;;;;;GAQG;AACH,wBAAgB,+BAA+B,IAAI,IAAI,CAqBtD"}
@@ -0,0 +1,96 @@
1
+ import type { ContentBlock } from '../types/blocks.js';
2
+ import type { Message } from '../types/messages.js';
3
+ import type { Context, TodoItem } from './context.js';
4
+ /**
5
+ * Observable wrapper for mutable conversation state. Production code should
6
+ * mutate messages, todos, and meta through this API so subscribers see a
7
+ * deterministic change stream. The underlying Context arrays are still
8
+ * exposed for read compatibility and legacy tests.
9
+ *
10
+ * L1-A invariant: direct mutations of `ctx.messages` / `ctx.todos` bypass
11
+ * the observer layer. Prefer `ctx.state.appendMessage()` etc. to keep
12
+ * subscribers in sync. The compatibility arrays exist so existing code
13
+ * that reads `ctx.messages` directly still works — they are NOT safe for
14
+ * external writes.
15
+ */
16
+ export type StateChange = {
17
+ kind: 'message_appended';
18
+ message: Message;
19
+ } | {
20
+ kind: 'messages_replaced';
21
+ messages: readonly Message[];
22
+ } | {
23
+ kind: 'message_updated';
24
+ index: number;
25
+ message: Message;
26
+ } | {
27
+ kind: 'todos_replaced';
28
+ todos: readonly TodoItem[];
29
+ } | {
30
+ kind: 'meta_set';
31
+ key: string;
32
+ value: unknown;
33
+ } | {
34
+ kind: 'meta_deleted';
35
+ key: string;
36
+ } | {
37
+ kind: 'meta_cleared';
38
+ };
39
+ export type StateChangeHandler = (change: StateChange, state: ConversationState) => void;
40
+ export interface ReadonlyConversationState {
41
+ readonly messages: readonly Message[];
42
+ readonly todos: readonly TodoItem[];
43
+ readonly meta: Readonly<Record<string, unknown>>;
44
+ }
45
+ export declare class ConversationState {
46
+ private readonly ctx;
47
+ private readonly listeners;
48
+ private _revision;
49
+ constructor(ctx: Context);
50
+ get messages(): readonly Message[];
51
+ get todos(): readonly TodoItem[];
52
+ get meta(): Readonly<Record<string, unknown>>;
53
+ /** Monotonic mutation counter for consumers that need to detect rewrites. */
54
+ get revision(): number;
55
+ /**
56
+ * Cheap immutable snapshot. Useful for tests and for compaction passes
57
+ * that need a stable view across an async boundary.
58
+ *
59
+ * Uses shallow-freeze instead of deep-freeze: only the wrapper object
60
+ * and the three content arrays are frozen. Individual message/todo
61
+ * objects are NOT recursively frozen — they are reconstructed via
62
+ * spread copies and are immutable by convention. This cuts the freeze
63
+ * count from O(n·m·d) (n=messages, m=content blocks, d=depth) to O(1).
64
+ */
65
+ snapshot(): ReadonlyConversationState;
66
+ appendMessage(message: Message): void;
67
+ /**
68
+ * Append a content block to the trailing user message's content array.
69
+ * Mutates only that one message (a single indexed assignment) — avoids
70
+ * the O(n) array copy + token-cache re-walk that `replaceMessages()`
71
+ * would do for a single-message edit. Used by the agent loop to fold
72
+ * btw-notes / queued-mailbox blocks into the conversation.
73
+ *
74
+ * The block is folded only into a *user* message (preserves
75
+ * user/assistant alternation between tool batches). Returns false when
76
+ * there is no trailing user message to fold into — callers should
77
+ * `appendMessage({ role: 'user', content: [block] })` instead.
78
+ */
79
+ appendBlockToLastUserMessage(block: ContentBlock): boolean;
80
+ replaceMessages(messages: Message[]): void;
81
+ replaceTodos(todos: TodoItem[]): void;
82
+ setMeta(key: string, value: unknown): void;
83
+ deleteMeta(key: string): void;
84
+ clearMeta(): void;
85
+ /**
86
+ * Subscribe to mutations that go through this wrapper. Direct mutations of
87
+ * the compatibility arrays are intentionally not observed.
88
+ */
89
+ onChange(listener: StateChangeHandler): () => void;
90
+ private emit;
91
+ }
92
+ /**
93
+ * Convenience constructor. The wrapper holds a reference, not a copy.
94
+ */
95
+ export declare function wrapAsState(ctx: Context): ConversationState;
96
+ //# sourceMappingURL=conversation-state.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"conversation-state.d.ts","sourceRoot":"","sources":["../../src/core/conversation-state.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AACvD,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,sBAAsB,CAAC;AAEpD,OAAO,KAAK,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAEtD;;;;;;;;;;;GAWG;AACH,MAAM,MAAM,WAAW,GACnB;IAAE,IAAI,EAAE,kBAAkB,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,GAC9C;IAAE,IAAI,EAAE,mBAAmB,CAAC;IAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,CAAA;CAAE,GAC3D;IAAE,IAAI,EAAE,iBAAiB,CAAC;IAAC,KAAK,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,OAAO,CAAA;CAAE,GAC5D;IAAE,IAAI,EAAE,gBAAgB,CAAC;IAAC,KAAK,EAAE,SAAS,QAAQ,EAAE,CAAA;CAAE,GACtD;IAAE,IAAI,EAAE,UAAU,CAAC;IAAC,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,OAAO,CAAA;CAAE,GACjD;IAAE,IAAI,EAAE,cAAc,CAAC;IAAC,GAAG,EAAE,MAAM,CAAA;CAAE,GACrC;IAAE,IAAI,EAAE,cAAc,CAAA;CAAE,CAAC;AAE7B,MAAM,MAAM,kBAAkB,GAAG,CAAC,MAAM,EAAE,WAAW,EAAE,KAAK,EAAE,iBAAiB,KAAK,IAAI,CAAC;AAEzF,MAAM,WAAW,yBAAyB;IACxC,QAAQ,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,CAAC;IACtC,QAAQ,CAAC,KAAK,EAAE,SAAS,QAAQ,EAAE,CAAC;IACpC,QAAQ,CAAC,IAAI,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAAC;CAClD;AAED,qBAAa,iBAAiB;IAC5B,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAU;IAC9B,OAAO,CAAC,QAAQ,CAAC,SAAS,CAAiC;IAC3D,OAAO,CAAC,SAAS,CAAK;IAEtB,YAAY,GAAG,EAAE,OAAO,EAEvB;IAED,IAAI,QAAQ,IAAI,SAAS,OAAO,EAAE,CAEjC;IAED,IAAI,KAAK,IAAI,SAAS,QAAQ,EAAE,CAE/B;IAED,IAAI,IAAI,IAAI,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC,CAE5C;IAED,6EAA6E;IAC7E,IAAI,QAAQ,IAAI,MAAM,CAErB;IAED;;;;;;;;;OASG;IACH,QAAQ,IAAI,yBAAyB,CAUpC;IAED,aAAa,CAAC,OAAO,EAAE,OAAO,GAAG,IAAI,CASpC;IAED;;;;;;;;;;;OAWG;IACH,4BAA4B,CAAC,KAAK,EAAE,YAAY,GAAG,OAAO,CAiBzD;IAED,eAAe,CAAC,QAAQ,EAAE,OAAO,EAAE,GAAG,IAAI,CAiDzC;IAED,YAAY,CAAC,KAAK,EAAE,QAAQ,EAAE,GAAG,IAAI,CAUpC;IAED,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,OAAO,GAAG,IAAI,CAGzC;IAED,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,IAAI,CAI5B;IAED,SAAS,IAAI,IAAI,CAKhB;IAED;;;OAGG;IACH,QAAQ,CAAC,QAAQ,EAAE,kBAAkB,GAAG,MAAM,IAAI,CAGjD;IAED,OAAO,CAAC,IAAI;CAWb;AAED;;GAEG;AACH,wBAAgB,WAAW,CAAC,GAAG,EAAE,OAAO,GAAG,iBAAiB,CAE3D"}