pulseed 0.6.3 → 0.6.4

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 (509) hide show
  1. package/dist/adapters/datasources/artifact-metric-datasource.d.ts +11 -1
  2. package/dist/adapters/datasources/artifact-metric-datasource.d.ts.map +1 -1
  3. package/dist/adapters/datasources/artifact-metric-datasource.js +238 -8
  4. package/dist/adapters/datasources/artifact-metric-datasource.js.map +1 -1
  5. package/dist/base/config/global-config.d.ts +4 -4
  6. package/dist/base/protocol/exact-protocol.d.ts +47 -0
  7. package/dist/base/protocol/exact-protocol.d.ts.map +1 -0
  8. package/dist/base/protocol/exact-protocol.js +175 -0
  9. package/dist/base/protocol/exact-protocol.js.map +1 -0
  10. package/dist/base/types/core.d.ts +1 -1
  11. package/dist/base/types/core.d.ts.map +1 -1
  12. package/dist/base/types/core.js +1 -0
  13. package/dist/base/types/core.js.map +1 -1
  14. package/dist/base/utils/workspace-path.d.ts +6 -0
  15. package/dist/base/utils/workspace-path.d.ts.map +1 -0
  16. package/dist/base/utils/workspace-path.js +24 -0
  17. package/dist/base/utils/workspace-path.js.map +1 -0
  18. package/dist/index.d.ts +4 -0
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +2 -0
  21. package/dist/index.js.map +1 -1
  22. package/dist/interface/chat/chat-event-state.d.ts +2 -0
  23. package/dist/interface/chat/chat-event-state.d.ts.map +1 -1
  24. package/dist/interface/chat/chat-event-state.js +22 -41
  25. package/dist/interface/chat/chat-event-state.js.map +1 -1
  26. package/dist/interface/chat/chat-events.d.ts +15 -1
  27. package/dist/interface/chat/chat-events.d.ts.map +1 -1
  28. package/dist/interface/chat/chat-history.d.ts +3816 -192
  29. package/dist/interface/chat/chat-history.d.ts.map +1 -1
  30. package/dist/interface/chat/chat-history.js +529 -5
  31. package/dist/interface/chat/chat-history.js.map +1 -1
  32. package/dist/interface/chat/chat-runner-commands.d.ts.map +1 -1
  33. package/dist/interface/chat/chat-runner-commands.js +22 -18
  34. package/dist/interface/chat/chat-runner-commands.js.map +1 -1
  35. package/dist/interface/chat/chat-runner-contracts.d.ts +5 -1
  36. package/dist/interface/chat/chat-runner-contracts.d.ts.map +1 -1
  37. package/dist/interface/chat/chat-runner-event-bridge.d.ts +13 -1
  38. package/dist/interface/chat/chat-runner-event-bridge.d.ts.map +1 -1
  39. package/dist/interface/chat/chat-runner-event-bridge.js +51 -3
  40. package/dist/interface/chat/chat-runner-event-bridge.js.map +1 -1
  41. package/dist/interface/chat/chat-runner-routes.d.ts +5 -17
  42. package/dist/interface/chat/chat-runner-routes.d.ts.map +1 -1
  43. package/dist/interface/chat/chat-runner-routes.js +80 -51
  44. package/dist/interface/chat/chat-runner-routes.js.map +1 -1
  45. package/dist/interface/chat/chat-runner-runtime.d.ts.map +1 -1
  46. package/dist/interface/chat/chat-runner-runtime.js +4 -0
  47. package/dist/interface/chat/chat-runner-runtime.js.map +1 -1
  48. package/dist/interface/chat/chat-runner.d.ts +7 -1
  49. package/dist/interface/chat/chat-runner.d.ts.map +1 -1
  50. package/dist/interface/chat/chat-runner.js +135 -49
  51. package/dist/interface/chat/chat-runner.js.map +1 -1
  52. package/dist/interface/chat/chat-session-store.d.ts +3 -0
  53. package/dist/interface/chat/chat-session-store.d.ts.map +1 -1
  54. package/dist/interface/chat/chat-session-store.js +12 -0
  55. package/dist/interface/chat/chat-session-store.js.map +1 -1
  56. package/dist/interface/chat/cross-platform-session.d.ts +15 -0
  57. package/dist/interface/chat/cross-platform-session.d.ts.map +1 -1
  58. package/dist/interface/chat/cross-platform-session.js +260 -42
  59. package/dist/interface/chat/cross-platform-session.js.map +1 -1
  60. package/dist/interface/chat/failure-recovery.d.ts.map +1 -1
  61. package/dist/interface/chat/failure-recovery.js +15 -1
  62. package/dist/interface/chat/failure-recovery.js.map +1 -1
  63. package/dist/interface/chat/freeform-route-classifier.d.ts +2 -2
  64. package/dist/interface/chat/ingress-router.d.ts +3 -0
  65. package/dist/interface/chat/ingress-router.d.ts.map +1 -1
  66. package/dist/interface/chat/ingress-router.js +3 -0
  67. package/dist/interface/chat/ingress-router.js.map +1 -1
  68. package/dist/interface/chat/model-request-builder.d.ts +37 -0
  69. package/dist/interface/chat/model-request-builder.d.ts.map +1 -0
  70. package/dist/interface/chat/model-request-builder.js +76 -0
  71. package/dist/interface/chat/model-request-builder.js.map +1 -0
  72. package/dist/interface/chat/turn-context.d.ts +200 -0
  73. package/dist/interface/chat/turn-context.d.ts.map +1 -0
  74. package/dist/interface/chat/turn-context.js +249 -0
  75. package/dist/interface/chat/turn-context.js.map +1 -0
  76. package/dist/interface/chat/turn-protocol.d.ts +35 -0
  77. package/dist/interface/chat/turn-protocol.d.ts.map +1 -0
  78. package/dist/interface/chat/turn-protocol.js +27 -0
  79. package/dist/interface/chat/turn-protocol.js.map +1 -0
  80. package/dist/interface/chat/user-input.d.ts +55 -0
  81. package/dist/interface/chat/user-input.d.ts.map +1 -0
  82. package/dist/interface/chat/user-input.js +52 -0
  83. package/dist/interface/chat/user-input.js.map +1 -0
  84. package/dist/interface/cli/cli-command-registry.d.ts +1 -1
  85. package/dist/interface/cli/cli-command-registry.d.ts.map +1 -1
  86. package/dist/interface/cli/cli-command-registry.js +12 -16
  87. package/dist/interface/cli/cli-command-registry.js.map +1 -1
  88. package/dist/interface/cli/commands/daemon-shared.d.ts +8 -0
  89. package/dist/interface/cli/commands/daemon-shared.d.ts.map +1 -1
  90. package/dist/interface/cli/commands/daemon-shared.js +18 -2
  91. package/dist/interface/cli/commands/daemon-shared.js.map +1 -1
  92. package/dist/interface/cli/commands/daemon.d.ts.map +1 -1
  93. package/dist/interface/cli/commands/daemon.js +5 -1
  94. package/dist/interface/cli/commands/daemon.js.map +1 -1
  95. package/dist/interface/cli/commands/doctor.d.ts.map +1 -1
  96. package/dist/interface/cli/commands/doctor.js +14 -1
  97. package/dist/interface/cli/commands/doctor.js.map +1 -1
  98. package/dist/interface/cli/commands/goal-dispatch.d.ts.map +1 -1
  99. package/dist/interface/cli/commands/goal-dispatch.js +10 -6
  100. package/dist/interface/cli/commands/goal-dispatch.js.map +1 -1
  101. package/dist/interface/cli/commands/goal-utils.d.ts.map +1 -1
  102. package/dist/interface/cli/commands/goal-utils.js +3 -5
  103. package/dist/interface/cli/commands/goal-utils.js.map +1 -1
  104. package/dist/interface/cli/commands/run.d.ts.map +1 -1
  105. package/dist/interface/cli/commands/run.js +50 -0
  106. package/dist/interface/cli/commands/run.js.map +1 -1
  107. package/dist/interface/cli/setup.d.ts +1 -1
  108. package/dist/interface/cli/setup.d.ts.map +1 -1
  109. package/dist/interface/cli/setup.js +4 -3
  110. package/dist/interface/cli/setup.js.map +1 -1
  111. package/dist/interface/cli/utils/loop-runner.d.ts +1 -0
  112. package/dist/interface/cli/utils/loop-runner.d.ts.map +1 -1
  113. package/dist/interface/cli/utils/loop-runner.js +12 -3
  114. package/dist/interface/cli/utils/loop-runner.js.map +1 -1
  115. package/dist/interface/tui/app.d.ts +6 -1
  116. package/dist/interface/tui/app.d.ts.map +1 -1
  117. package/dist/interface/tui/app.js +29 -12
  118. package/dist/interface/tui/app.js.map +1 -1
  119. package/dist/interface/tui/bash-mode.d.ts.map +1 -1
  120. package/dist/interface/tui/bash-mode.js +2 -9
  121. package/dist/interface/tui/bash-mode.js.map +1 -1
  122. package/dist/interface/tui/chat/viewport.d.ts.map +1 -1
  123. package/dist/interface/tui/chat/viewport.js +57 -11
  124. package/dist/interface/tui/chat/viewport.js.map +1 -1
  125. package/dist/interface/tui/entry-deps.d.ts +6 -1
  126. package/dist/interface/tui/entry-deps.d.ts.map +1 -1
  127. package/dist/interface/tui/entry-deps.js +3 -0
  128. package/dist/interface/tui/entry-deps.js.map +1 -1
  129. package/dist/interface/tui/entry.d.ts.map +1 -1
  130. package/dist/interface/tui/entry.js +6 -2
  131. package/dist/interface/tui/entry.js.map +1 -1
  132. package/dist/interface/tui/input-action.d.ts.map +1 -1
  133. package/dist/interface/tui/input-action.js +3 -2
  134. package/dist/interface/tui/input-action.js.map +1 -1
  135. package/dist/interface/tui/intent-recognizer.d.ts.map +1 -1
  136. package/dist/interface/tui/intent-recognizer.js +21 -33
  137. package/dist/interface/tui/intent-recognizer.js.map +1 -1
  138. package/dist/orchestrator/execution/adapter-layer.d.ts +6 -1
  139. package/dist/orchestrator/execution/adapter-layer.d.ts.map +1 -1
  140. package/dist/orchestrator/execution/adapter-layer.js.map +1 -1
  141. package/dist/orchestrator/execution/agent-loop/agent-loop-command-classifier.d.ts +12 -1
  142. package/dist/orchestrator/execution/agent-loop/agent-loop-command-classifier.d.ts.map +1 -1
  143. package/dist/orchestrator/execution/agent-loop/agent-loop-command-classifier.js +16 -31
  144. package/dist/orchestrator/execution/agent-loop/agent-loop-command-classifier.js.map +1 -1
  145. package/dist/orchestrator/execution/agent-loop/agent-loop-compaction-record.d.ts +75 -0
  146. package/dist/orchestrator/execution/agent-loop/agent-loop-compaction-record.d.ts.map +1 -0
  147. package/dist/orchestrator/execution/agent-loop/agent-loop-compaction-record.js +10 -0
  148. package/dist/orchestrator/execution/agent-loop/agent-loop-compaction-record.js.map +1 -0
  149. package/dist/orchestrator/execution/agent-loop/agent-loop-compactor.d.ts +3 -2
  150. package/dist/orchestrator/execution/agent-loop/agent-loop-compactor.d.ts.map +1 -1
  151. package/dist/orchestrator/execution/agent-loop/agent-loop-compactor.js +185 -22
  152. package/dist/orchestrator/execution/agent-loop/agent-loop-compactor.js.map +1 -1
  153. package/dist/orchestrator/execution/agent-loop/agent-loop-default-profile.d.ts.map +1 -1
  154. package/dist/orchestrator/execution/agent-loop/agent-loop-default-profile.js +7 -1
  155. package/dist/orchestrator/execution/agent-loop/agent-loop-default-profile.js.map +1 -1
  156. package/dist/orchestrator/execution/agent-loop/agent-loop-events.d.ts +8 -1
  157. package/dist/orchestrator/execution/agent-loop/agent-loop-events.d.ts.map +1 -1
  158. package/dist/orchestrator/execution/agent-loop/agent-loop-events.js.map +1 -1
  159. package/dist/orchestrator/execution/agent-loop/agent-loop-history.d.ts +3 -1
  160. package/dist/orchestrator/execution/agent-loop/agent-loop-history.d.ts.map +1 -1
  161. package/dist/orchestrator/execution/agent-loop/agent-loop-history.js +12 -3
  162. package/dist/orchestrator/execution/agent-loop/agent-loop-history.js.map +1 -1
  163. package/dist/orchestrator/execution/agent-loop/agent-loop-model-client.d.ts.map +1 -1
  164. package/dist/orchestrator/execution/agent-loop/agent-loop-model-client.js +7 -1
  165. package/dist/orchestrator/execution/agent-loop/agent-loop-model-client.js.map +1 -1
  166. package/dist/orchestrator/execution/agent-loop/agent-loop-model.d.ts +37 -0
  167. package/dist/orchestrator/execution/agent-loop/agent-loop-model.d.ts.map +1 -1
  168. package/dist/orchestrator/execution/agent-loop/agent-loop-model.js +21 -0
  169. package/dist/orchestrator/execution/agent-loop/agent-loop-model.js.map +1 -1
  170. package/dist/orchestrator/execution/agent-loop/agent-loop-result.d.ts +17 -11
  171. package/dist/orchestrator/execution/agent-loop/agent-loop-result.d.ts.map +1 -1
  172. package/dist/orchestrator/execution/agent-loop/agent-loop-session-state.d.ts +4 -0
  173. package/dist/orchestrator/execution/agent-loop/agent-loop-session-state.d.ts.map +1 -1
  174. package/dist/orchestrator/execution/agent-loop/agent-loop-session-state.js +135 -0
  175. package/dist/orchestrator/execution/agent-loop/agent-loop-session-state.js.map +1 -1
  176. package/dist/orchestrator/execution/agent-loop/agent-loop-tool-runtime.d.ts +3 -2
  177. package/dist/orchestrator/execution/agent-loop/agent-loop-tool-runtime.d.ts.map +1 -1
  178. package/dist/orchestrator/execution/agent-loop/agent-loop-tool-runtime.js +68 -61
  179. package/dist/orchestrator/execution/agent-loop/agent-loop-tool-runtime.js.map +1 -1
  180. package/dist/orchestrator/execution/agent-loop/agent-loop-turn-context.d.ts +3 -1
  181. package/dist/orchestrator/execution/agent-loop/agent-loop-turn-context.d.ts.map +1 -1
  182. package/dist/orchestrator/execution/agent-loop/agent-loop-turn-context.js.map +1 -1
  183. package/dist/orchestrator/execution/agent-loop/agent-timeline.d.ts +12 -1
  184. package/dist/orchestrator/execution/agent-loop/agent-timeline.d.ts.map +1 -1
  185. package/dist/orchestrator/execution/agent-loop/agent-timeline.js +19 -56
  186. package/dist/orchestrator/execution/agent-loop/agent-timeline.js.map +1 -1
  187. package/dist/orchestrator/execution/agent-loop/anthropic-messages-agent-loop-model-client.d.ts.map +1 -1
  188. package/dist/orchestrator/execution/agent-loop/anthropic-messages-agent-loop-model-client.js +8 -2
  189. package/dist/orchestrator/execution/agent-loop/anthropic-messages-agent-loop-model-client.js.map +1 -1
  190. package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.d.ts +12 -0
  191. package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.d.ts.map +1 -1
  192. package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.js +400 -80
  193. package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.js.map +1 -1
  194. package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.d.ts +1 -1
  195. package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.d.ts.map +1 -1
  196. package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.js +80 -12
  197. package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.js.map +1 -1
  198. package/dist/orchestrator/execution/agent-loop/chat-display-output.d.ts +1 -0
  199. package/dist/orchestrator/execution/agent-loop/chat-display-output.d.ts.map +1 -1
  200. package/dist/orchestrator/execution/agent-loop/chat-display-output.js +3 -1
  201. package/dist/orchestrator/execution/agent-loop/chat-display-output.js.map +1 -1
  202. package/dist/orchestrator/execution/agent-loop/index.d.ts +3 -0
  203. package/dist/orchestrator/execution/agent-loop/index.d.ts.map +1 -1
  204. package/dist/orchestrator/execution/agent-loop/index.js +3 -0
  205. package/dist/orchestrator/execution/agent-loop/index.js.map +1 -1
  206. package/dist/orchestrator/execution/agent-loop/openai-responses-agent-loop-model-client.d.ts +1 -0
  207. package/dist/orchestrator/execution/agent-loop/openai-responses-agent-loop-model-client.d.ts.map +1 -1
  208. package/dist/orchestrator/execution/agent-loop/openai-responses-agent-loop-model-client.js +51 -9
  209. package/dist/orchestrator/execution/agent-loop/openai-responses-agent-loop-model-client.js.map +1 -1
  210. package/dist/orchestrator/execution/agent-loop/response-item-tool-router.d.ts +20 -0
  211. package/dist/orchestrator/execution/agent-loop/response-item-tool-router.d.ts.map +1 -0
  212. package/dist/orchestrator/execution/agent-loop/response-item-tool-router.js +180 -0
  213. package/dist/orchestrator/execution/agent-loop/response-item-tool-router.js.map +1 -0
  214. package/dist/orchestrator/execution/agent-loop/response-item.d.ts +805 -0
  215. package/dist/orchestrator/execution/agent-loop/response-item.d.ts.map +1 -0
  216. package/dist/orchestrator/execution/agent-loop/response-item.js +104 -0
  217. package/dist/orchestrator/execution/agent-loop/response-item.js.map +1 -0
  218. package/dist/orchestrator/execution/agent-loop/task-agent-loop-context.d.ts +7 -2
  219. package/dist/orchestrator/execution/agent-loop/task-agent-loop-context.d.ts.map +1 -1
  220. package/dist/orchestrator/execution/agent-loop/task-agent-loop-context.js +20 -1
  221. package/dist/orchestrator/execution/agent-loop/task-agent-loop-context.js.map +1 -1
  222. package/dist/orchestrator/execution/agent-loop/task-agent-loop-result.d.ts +5 -3
  223. package/dist/orchestrator/execution/agent-loop/task-agent-loop-result.d.ts.map +1 -1
  224. package/dist/orchestrator/execution/agent-loop/task-agent-loop-result.js +109 -10
  225. package/dist/orchestrator/execution/agent-loop/task-agent-loop-result.js.map +1 -1
  226. package/dist/orchestrator/execution/agent-loop/task-agent-loop-runner.d.ts +2 -0
  227. package/dist/orchestrator/execution/agent-loop/task-agent-loop-runner.d.ts.map +1 -1
  228. package/dist/orchestrator/execution/agent-loop/task-agent-loop-runner.js +9 -4
  229. package/dist/orchestrator/execution/agent-loop/task-agent-loop-runner.js.map +1 -1
  230. package/dist/orchestrator/execution/agent-loop/task-agent-loop-verification.d.ts +0 -1
  231. package/dist/orchestrator/execution/agent-loop/task-agent-loop-verification.d.ts.map +1 -1
  232. package/dist/orchestrator/execution/agent-loop/task-agent-loop-verification.js +7 -87
  233. package/dist/orchestrator/execution/agent-loop/task-agent-loop-verification.js.map +1 -1
  234. package/dist/orchestrator/execution/agent-loop/task-agent-loop-worktree.d.ts.map +1 -1
  235. package/dist/orchestrator/execution/agent-loop/task-agent-loop-worktree.js +25 -0
  236. package/dist/orchestrator/execution/agent-loop/task-agent-loop-worktree.js.map +1 -1
  237. package/dist/orchestrator/execution/context/issue-context-fetcher.d.ts +5 -1
  238. package/dist/orchestrator/execution/context/issue-context-fetcher.d.ts.map +1 -1
  239. package/dist/orchestrator/execution/context/issue-context-fetcher.js +7 -4
  240. package/dist/orchestrator/execution/context/issue-context-fetcher.js.map +1 -1
  241. package/dist/orchestrator/execution/task/task-artifact-contract.d.ts +18 -0
  242. package/dist/orchestrator/execution/task/task-artifact-contract.d.ts.map +1 -0
  243. package/dist/orchestrator/execution/task/task-artifact-contract.js +176 -0
  244. package/dist/orchestrator/execution/task/task-artifact-contract.js.map +1 -0
  245. package/dist/orchestrator/execution/task/task-diff-capture.d.ts +14 -1
  246. package/dist/orchestrator/execution/task/task-diff-capture.d.ts.map +1 -1
  247. package/dist/orchestrator/execution/task/task-diff-capture.js +269 -17
  248. package/dist/orchestrator/execution/task/task-diff-capture.js.map +1 -1
  249. package/dist/orchestrator/execution/task/task-execution-helpers.d.ts +1 -0
  250. package/dist/orchestrator/execution/task/task-execution-helpers.d.ts.map +1 -1
  251. package/dist/orchestrator/execution/task/task-execution-helpers.js +76 -17
  252. package/dist/orchestrator/execution/task/task-execution-helpers.js.map +1 -1
  253. package/dist/orchestrator/execution/task/task-executor.d.ts +16 -1
  254. package/dist/orchestrator/execution/task/task-executor.d.ts.map +1 -1
  255. package/dist/orchestrator/execution/task/task-executor.js +55 -50
  256. package/dist/orchestrator/execution/task/task-executor.js.map +1 -1
  257. package/dist/orchestrator/execution/task/task-generation.d.ts +54 -1
  258. package/dist/orchestrator/execution/task/task-generation.d.ts.map +1 -1
  259. package/dist/orchestrator/execution/task/task-generation.js +19 -3
  260. package/dist/orchestrator/execution/task/task-generation.js.map +1 -1
  261. package/dist/orchestrator/execution/task/task-lifecycle-runner.d.ts +2 -2
  262. package/dist/orchestrator/execution/task/task-lifecycle-runner.d.ts.map +1 -1
  263. package/dist/orchestrator/execution/task/task-lifecycle-runner.js +31 -4
  264. package/dist/orchestrator/execution/task/task-lifecycle-runner.js.map +1 -1
  265. package/dist/orchestrator/execution/task/task-lifecycle.d.ts +3 -3
  266. package/dist/orchestrator/execution/task/task-lifecycle.d.ts.map +1 -1
  267. package/dist/orchestrator/execution/task/task-lifecycle.js +51 -10
  268. package/dist/orchestrator/execution/task/task-lifecycle.js.map +1 -1
  269. package/dist/orchestrator/execution/task/task-outcome-ledger.d.ts +8 -0
  270. package/dist/orchestrator/execution/task/task-outcome-ledger.d.ts.map +1 -1
  271. package/dist/orchestrator/execution/task/task-outcome-ledger.js +59 -3
  272. package/dist/orchestrator/execution/task/task-outcome-ledger.js.map +1 -1
  273. package/dist/orchestrator/execution/task/task-prompt-builder.d.ts +3 -1
  274. package/dist/orchestrator/execution/task/task-prompt-builder.d.ts.map +1 -1
  275. package/dist/orchestrator/execution/task/task-prompt-builder.js +23 -12
  276. package/dist/orchestrator/execution/task/task-prompt-builder.js.map +1 -1
  277. package/dist/orchestrator/execution/task/task-verifier-rules.d.ts +3 -2
  278. package/dist/orchestrator/execution/task/task-verifier-rules.d.ts.map +1 -1
  279. package/dist/orchestrator/execution/task/task-verifier-rules.js +328 -90
  280. package/dist/orchestrator/execution/task/task-verifier-rules.js.map +1 -1
  281. package/dist/orchestrator/execution/task/task-verifier-types.d.ts +13 -0
  282. package/dist/orchestrator/execution/task/task-verifier-types.d.ts.map +1 -1
  283. package/dist/orchestrator/execution/task/task-verifier-types.js.map +1 -1
  284. package/dist/orchestrator/execution/task/task-verifier.d.ts +5 -4
  285. package/dist/orchestrator/execution/task/task-verifier.d.ts.map +1 -1
  286. package/dist/orchestrator/execution/task/task-verifier.js +229 -22
  287. package/dist/orchestrator/execution/task/task-verifier.js.map +1 -1
  288. package/dist/orchestrator/execution/task/task-workspace.d.ts +5 -0
  289. package/dist/orchestrator/execution/task/task-workspace.d.ts.map +1 -1
  290. package/dist/orchestrator/execution/task/task-workspace.js +20 -10
  291. package/dist/orchestrator/execution/task/task-workspace.js.map +1 -1
  292. package/dist/orchestrator/execution/types/task-group.d.ts +76 -5
  293. package/dist/orchestrator/execution/types/task-group.d.ts.map +1 -1
  294. package/dist/orchestrator/execution/types/task.d.ts +117 -3
  295. package/dist/orchestrator/execution/types/task.d.ts.map +1 -1
  296. package/dist/orchestrator/execution/types/task.js +12 -0
  297. package/dist/orchestrator/execution/types/task.js.map +1 -1
  298. package/dist/orchestrator/loop/durable-loop/preparation.d.ts.map +1 -1
  299. package/dist/orchestrator/loop/durable-loop/preparation.js +7 -1
  300. package/dist/orchestrator/loop/durable-loop/preparation.js.map +1 -1
  301. package/dist/platform/corrections/memory-correction-ledger.d.ts +30 -30
  302. package/dist/platform/corrections/memory-governance.d.ts +2 -2
  303. package/dist/platform/knowledge/types/agent-memory.d.ts +30 -30
  304. package/dist/platform/observation/context-provider/collector.d.ts.map +1 -1
  305. package/dist/platform/observation/context-provider/collector.js +89 -24
  306. package/dist/platform/observation/context-provider/collector.js.map +1 -1
  307. package/dist/platform/observation/data-source-adapter.d.ts +2 -0
  308. package/dist/platform/observation/data-source-adapter.d.ts.map +1 -1
  309. package/dist/platform/observation/data-source-adapter.js.map +1 -1
  310. package/dist/platform/observation/observation-apply.d.ts.map +1 -1
  311. package/dist/platform/observation/observation-apply.js +8 -2
  312. package/dist/platform/observation/observation-apply.js.map +1 -1
  313. package/dist/platform/observation/observation-engine.d.ts.map +1 -1
  314. package/dist/platform/observation/observation-engine.js +118 -70
  315. package/dist/platform/observation/observation-engine.js.map +1 -1
  316. package/dist/platform/observation/observation-helpers.d.ts +2 -0
  317. package/dist/platform/observation/observation-helpers.d.ts.map +1 -1
  318. package/dist/platform/observation/observation-helpers.js.map +1 -1
  319. package/dist/platform/observation/types/data-source.d.ts +48 -0
  320. package/dist/platform/observation/types/data-source.d.ts.map +1 -1
  321. package/dist/platform/observation/types/data-source.js +4 -0
  322. package/dist/platform/observation/types/data-source.js.map +1 -1
  323. package/dist/platform/observation/workspace-context.d.ts.map +1 -1
  324. package/dist/platform/observation/workspace-context.js +13 -18
  325. package/dist/platform/observation/workspace-context.js.map +1 -1
  326. package/dist/platform/soil/contracts.d.ts +56 -56
  327. package/dist/reporting/types/report.d.ts +7 -0
  328. package/dist/reporting/types/report.d.ts.map +1 -1
  329. package/dist/runtime/approval-broker.d.ts +12 -0
  330. package/dist/runtime/approval-broker.d.ts.map +1 -1
  331. package/dist/runtime/approval-broker.js +27 -7
  332. package/dist/runtime/approval-broker.js.map +1 -1
  333. package/dist/runtime/control/daemon-runtime-control-executor.d.ts.map +1 -1
  334. package/dist/runtime/control/daemon-runtime-control-executor.js +9 -4
  335. package/dist/runtime/control/daemon-runtime-control-executor.js.map +1 -1
  336. package/dist/runtime/control/runtime-control-intent.d.ts.map +1 -1
  337. package/dist/runtime/control/runtime-control-intent.js +3 -2
  338. package/dist/runtime/control/runtime-control-intent.js.map +1 -1
  339. package/dist/runtime/control/runtime-control-service.d.ts +2 -1
  340. package/dist/runtime/control/runtime-control-service.d.ts.map +1 -1
  341. package/dist/runtime/control/runtime-control-service.js +9 -2
  342. package/dist/runtime/control/runtime-control-service.js.map +1 -1
  343. package/dist/runtime/control/runtime-target-resolver.js +2 -0
  344. package/dist/runtime/control/runtime-target-resolver.js.map +1 -1
  345. package/dist/runtime/daemon/runner-goal-cycle.d.ts.map +1 -1
  346. package/dist/runtime/daemon/runner-goal-cycle.js +1 -2
  347. package/dist/runtime/daemon/runner-goal-cycle.js.map +1 -1
  348. package/dist/runtime/daemon/runner-recovery.d.ts +17 -3
  349. package/dist/runtime/daemon/runner-recovery.d.ts.map +1 -1
  350. package/dist/runtime/daemon/runner-recovery.js +50 -12
  351. package/dist/runtime/daemon/runner-recovery.js.map +1 -1
  352. package/dist/runtime/daemon/runner-startup.d.ts.map +1 -1
  353. package/dist/runtime/daemon/runner-startup.js +18 -1
  354. package/dist/runtime/daemon/runner-startup.js.map +1 -1
  355. package/dist/runtime/daemon/runner.d.ts.map +1 -1
  356. package/dist/runtime/daemon/runner.js +3 -2
  357. package/dist/runtime/daemon/runner.js.map +1 -1
  358. package/dist/runtime/daemon/runtime-ownership.d.ts +0 -1
  359. package/dist/runtime/daemon/runtime-ownership.d.ts.map +1 -1
  360. package/dist/runtime/daemon/runtime-ownership.js +18 -18
  361. package/dist/runtime/daemon/runtime-ownership.js.map +1 -1
  362. package/dist/runtime/daemon/wait-deadline-resolver.d.ts.map +1 -1
  363. package/dist/runtime/daemon/wait-deadline-resolver.js +2 -0
  364. package/dist/runtime/daemon/wait-deadline-resolver.js.map +1 -1
  365. package/dist/runtime/evidence-answer.d.ts.map +1 -1
  366. package/dist/runtime/evidence-answer.js +34 -7
  367. package/dist/runtime/evidence-answer.js.map +1 -1
  368. package/dist/runtime/gateway/channel-adapter.d.ts +3 -0
  369. package/dist/runtime/gateway/channel-adapter.d.ts.map +1 -1
  370. package/dist/runtime/gateway/channel-display-policy.d.ts +42 -0
  371. package/dist/runtime/gateway/channel-display-policy.d.ts.map +1 -0
  372. package/dist/runtime/gateway/channel-display-policy.js +85 -0
  373. package/dist/runtime/gateway/channel-display-policy.js.map +1 -0
  374. package/dist/runtime/gateway/chat-event-rendering.d.ts +2 -1
  375. package/dist/runtime/gateway/chat-event-rendering.d.ts.map +1 -1
  376. package/dist/runtime/gateway/chat-event-rendering.js +2 -0
  377. package/dist/runtime/gateway/chat-event-rendering.js.map +1 -1
  378. package/dist/runtime/gateway/chat-session-dispatch.d.ts.map +1 -1
  379. package/dist/runtime/gateway/chat-session-dispatch.js +4 -9
  380. package/dist/runtime/gateway/chat-session-dispatch.js.map +1 -1
  381. package/dist/runtime/gateway/chat-session-port.d.ts +2 -0
  382. package/dist/runtime/gateway/chat-session-port.d.ts.map +1 -1
  383. package/dist/runtime/gateway/chat-session-port.js.map +1 -1
  384. package/dist/runtime/gateway/discord-gateway-adapter.d.ts +4 -0
  385. package/dist/runtime/gateway/discord-gateway-adapter.d.ts.map +1 -1
  386. package/dist/runtime/gateway/discord-gateway-adapter.js +100 -31
  387. package/dist/runtime/gateway/discord-gateway-adapter.js.map +1 -1
  388. package/dist/runtime/gateway/index.d.ts +4 -0
  389. package/dist/runtime/gateway/index.d.ts.map +1 -1
  390. package/dist/runtime/gateway/index.js +2 -0
  391. package/dist/runtime/gateway/index.js.map +1 -1
  392. package/dist/runtime/gateway/non-tui-display-projector.d.ts +40 -0
  393. package/dist/runtime/gateway/non-tui-display-projector.d.ts.map +1 -0
  394. package/dist/runtime/gateway/non-tui-display-projector.js +166 -0
  395. package/dist/runtime/gateway/non-tui-display-projector.js.map +1 -0
  396. package/dist/runtime/gateway/signal-gateway-adapter.d.ts +1 -0
  397. package/dist/runtime/gateway/signal-gateway-adapter.d.ts.map +1 -1
  398. package/dist/runtime/gateway/signal-gateway-adapter.js +47 -4
  399. package/dist/runtime/gateway/signal-gateway-adapter.js.map +1 -1
  400. package/dist/runtime/gateway/slack-channel-adapter.d.ts +1 -0
  401. package/dist/runtime/gateway/slack-channel-adapter.d.ts.map +1 -1
  402. package/dist/runtime/gateway/slack-channel-adapter.js +93 -18
  403. package/dist/runtime/gateway/slack-channel-adapter.js.map +1 -1
  404. package/dist/runtime/gateway/telegram-gateway-adapter.d.ts +2 -0
  405. package/dist/runtime/gateway/telegram-gateway-adapter.d.ts.map +1 -1
  406. package/dist/runtime/gateway/telegram-gateway-adapter.js +61 -113
  407. package/dist/runtime/gateway/telegram-gateway-adapter.js.map +1 -1
  408. package/dist/runtime/gateway/whatsapp-gateway-adapter.d.ts +1 -0
  409. package/dist/runtime/gateway/whatsapp-gateway-adapter.d.ts.map +1 -1
  410. package/dist/runtime/gateway/whatsapp-gateway-adapter.js +49 -4
  411. package/dist/runtime/gateway/whatsapp-gateway-adapter.js.map +1 -1
  412. package/dist/runtime/permission-dialogue.d.ts +113 -0
  413. package/dist/runtime/permission-dialogue.d.ts.map +1 -0
  414. package/dist/runtime/permission-dialogue.js +82 -0
  415. package/dist/runtime/permission-dialogue.js.map +1 -0
  416. package/dist/runtime/run-spec/derive.d.ts +14 -14
  417. package/dist/runtime/run-spec/handoff.js +2 -0
  418. package/dist/runtime/run-spec/handoff.js.map +1 -1
  419. package/dist/runtime/run-spec/types.d.ts +16 -16
  420. package/dist/runtime/session-registry/types.d.ts +12 -12
  421. package/dist/runtime/store/artifact-retention.d.ts +2 -0
  422. package/dist/runtime/store/artifact-retention.d.ts.map +1 -1
  423. package/dist/runtime/store/artifact-retention.js +24 -21
  424. package/dist/runtime/store/artifact-retention.js.map +1 -1
  425. package/dist/runtime/store/budget-store.d.ts +8 -8
  426. package/dist/runtime/store/evidence-ledger.d.ts.map +1 -1
  427. package/dist/runtime/store/evidence-ledger.js +39 -1
  428. package/dist/runtime/store/evidence-ledger.js.map +1 -1
  429. package/dist/runtime/store/evidence-types.d.ts +118 -118
  430. package/dist/runtime/store/experiment-queue-store.d.ts +20 -20
  431. package/dist/runtime/store/reproducibility-manifest.d.ts +20 -20
  432. package/dist/runtime/store/runtime-operation-schemas.d.ts +18 -18
  433. package/dist/runtime/store/runtime-operation-schemas.d.ts.map +1 -1
  434. package/dist/runtime/store/runtime-operation-schemas.js +1 -0
  435. package/dist/runtime/store/runtime-operation-schemas.js.map +1 -1
  436. package/dist/runtime/store/runtime-schemas.d.ts +58 -28
  437. package/dist/runtime/store/runtime-schemas.d.ts.map +1 -1
  438. package/dist/runtime/store/runtime-schemas.js +1 -0
  439. package/dist/runtime/store/runtime-schemas.js.map +1 -1
  440. package/dist/tools/execution/MemorySaveTool/MemorySaveTool.d.ts +8 -8
  441. package/dist/tools/execution/RunAdapterTool/RunAdapterTool.d.ts +6 -0
  442. package/dist/tools/execution/RunAdapterTool/RunAdapterTool.d.ts.map +1 -1
  443. package/dist/tools/execution/RunAdapterTool/RunAdapterTool.js +2 -0
  444. package/dist/tools/execution/RunAdapterTool/RunAdapterTool.js.map +1 -1
  445. package/dist/tools/execution-orchestrator.d.ts +29 -0
  446. package/dist/tools/execution-orchestrator.d.ts.map +1 -0
  447. package/dist/tools/execution-orchestrator.js +153 -0
  448. package/dist/tools/execution-orchestrator.js.map +1 -0
  449. package/dist/tools/executor.d.ts +6 -0
  450. package/dist/tools/executor.d.ts.map +1 -1
  451. package/dist/tools/executor.js +48 -11
  452. package/dist/tools/executor.js.map +1 -1
  453. package/dist/tools/fs/ApplyPatchTool/ApplyPatchTool.d.ts.map +1 -1
  454. package/dist/tools/fs/ApplyPatchTool/ApplyPatchTool.js +130 -17
  455. package/dist/tools/fs/ApplyPatchTool/ApplyPatchTool.js.map +1 -1
  456. package/dist/tools/mutation/TaskStopTool/TaskStopTool.d.ts.map +1 -1
  457. package/dist/tools/mutation/TaskStopTool/TaskStopTool.js +8 -0
  458. package/dist/tools/mutation/TaskStopTool/TaskStopTool.js.map +1 -1
  459. package/dist/tools/mutation/TaskUpdateTool/TaskUpdateTool.d.ts +6 -6
  460. package/dist/tools/network/GitHubCliTool/GitHubCliTool.d.ts +4 -4
  461. package/dist/tools/network/McpStdioTool/McpStdioTool.d.ts +4 -4
  462. package/dist/tools/permission.d.ts +0 -1
  463. package/dist/tools/permission.d.ts.map +1 -1
  464. package/dist/tools/permission.js +9 -33
  465. package/dist/tools/permission.js.map +1 -1
  466. package/dist/tools/query/CodeReadContextTool/CodeReadContextTool.d.ts +4 -4
  467. package/dist/tools/query/CodeSearchRepairTool/CodeSearchRepairTool.d.ts +8 -8
  468. package/dist/tools/query/CodeSearchTool/CodeSearchTool.d.ts +4 -4
  469. package/dist/tools/query/MemoryRecallTool/MemoryRecallTool.d.ts +4 -4
  470. package/dist/tools/query/runtime-session-tools.d.ts +73 -5
  471. package/dist/tools/query/runtime-session-tools.d.ts.map +1 -1
  472. package/dist/tools/query/runtime-session-tools.js +114 -0
  473. package/dist/tools/query/runtime-session-tools.js.map +1 -1
  474. package/dist/tools/runtime/LongRunningRuntimeTools.d.ts +60 -42
  475. package/dist/tools/runtime/LongRunningRuntimeTools.d.ts.map +1 -1
  476. package/dist/tools/runtime/LongRunningRuntimeTools.js +4 -1
  477. package/dist/tools/runtime/LongRunningRuntimeTools.js.map +1 -1
  478. package/dist/tools/runtime/RunSpecHandoffTools.d.ts.map +1 -1
  479. package/dist/tools/runtime/RunSpecHandoffTools.js +162 -2
  480. package/dist/tools/runtime/RunSpecHandoffTools.js.map +1 -1
  481. package/dist/tools/runtime/SetupRuntimeControlTools.d.ts.map +1 -1
  482. package/dist/tools/runtime/SetupRuntimeControlTools.js +169 -17
  483. package/dist/tools/runtime/SetupRuntimeControlTools.js.map +1 -1
  484. package/dist/tools/system/GitDiffTool/GitDiffTool.d.ts +4 -4
  485. package/dist/tools/system/ShellCommandTool/ShellCommandTool.d.ts.map +1 -1
  486. package/dist/tools/system/ShellCommandTool/ShellCommandTool.js +7 -1
  487. package/dist/tools/system/ShellCommandTool/ShellCommandTool.js.map +1 -1
  488. package/dist/tools/system/ShellTool/ShellTool.d.ts.map +1 -1
  489. package/dist/tools/system/ShellTool/ShellTool.js +24 -10
  490. package/dist/tools/system/ShellTool/ShellTool.js.map +1 -1
  491. package/dist/tools/system/ShellTool/command-policy.d.ts +11 -8
  492. package/dist/tools/system/ShellTool/command-policy.d.ts.map +1 -1
  493. package/dist/tools/system/ShellTool/command-policy.js +402 -98
  494. package/dist/tools/system/ShellTool/command-policy.js.map +1 -1
  495. package/dist/tools/system/TestRunnerTool/TestRunnerTool.d.ts +1 -1
  496. package/dist/tools/system/TestRunnerTool/TestRunnerTool.d.ts.map +1 -1
  497. package/dist/tools/system/TestRunnerTool/TestRunnerTool.js +152 -8
  498. package/dist/tools/system/TestRunnerTool/TestRunnerTool.js.map +1 -1
  499. package/dist/tools/system/UpdatePlanTool/UpdatePlanTool.js +1 -1
  500. package/dist/tools/system/UpdatePlanTool/UpdatePlanTool.js.map +1 -1
  501. package/dist/tools/types.d.ts +34 -12
  502. package/dist/tools/types.d.ts.map +1 -1
  503. package/dist/tools/types.js +26 -3
  504. package/dist/tools/types.js.map +1 -1
  505. package/dist/tools/workspace-scope.d.ts +11 -0
  506. package/dist/tools/workspace-scope.d.ts.map +1 -0
  507. package/dist/tools/workspace-scope.js +77 -0
  508. package/dist/tools/workspace-scope.js.map +1 -0
  509. package/package.json +1 -1
@@ -10,14 +10,14 @@ export declare const CodeSearchRepairInputSchema: z.ZodObject<{
10
10
  packageScope: z.ZodOptional<z.ZodString>;
11
11
  }, "strip", z.ZodTypeAny, {
12
12
  task: string;
13
- intent?: "unknown" | "explain" | "bugfix" | "test_failure" | "feature_addition" | "refactor" | "api_change" | "config_fix" | "security_review" | undefined;
13
+ intent?: "unknown" | "bugfix" | "test_failure" | "feature_addition" | "refactor" | "explain" | "api_change" | "config_fix" | "security_review" | undefined;
14
14
  queryTerms?: string[] | undefined;
15
15
  stacktrace?: string | undefined;
16
16
  fileGlobs?: string[] | undefined;
17
17
  packageScope?: string | undefined;
18
18
  }, {
19
19
  task: string;
20
- intent?: "unknown" | "explain" | "bugfix" | "test_failure" | "feature_addition" | "refactor" | "api_change" | "config_fix" | "security_review" | undefined;
20
+ intent?: "unknown" | "bugfix" | "test_failure" | "feature_addition" | "refactor" | "explain" | "api_change" | "config_fix" | "security_review" | undefined;
21
21
  queryTerms?: string[] | undefined;
22
22
  stacktrace?: string | undefined;
23
23
  fileGlobs?: string[] | undefined;
@@ -31,7 +31,7 @@ export declare const CodeSearchRepairInputSchema: z.ZodObject<{
31
31
  }, "strip", z.ZodTypeAny, {
32
32
  priorTask: {
33
33
  task: string;
34
- intent?: "unknown" | "explain" | "bugfix" | "test_failure" | "feature_addition" | "refactor" | "api_change" | "config_fix" | "security_review" | undefined;
34
+ intent?: "unknown" | "bugfix" | "test_failure" | "feature_addition" | "refactor" | "explain" | "api_change" | "config_fix" | "security_review" | undefined;
35
35
  queryTerms?: string[] | undefined;
36
36
  stacktrace?: string | undefined;
37
37
  fileGlobs?: string[] | undefined;
@@ -45,7 +45,7 @@ export declare const CodeSearchRepairInputSchema: z.ZodObject<{
45
45
  }, {
46
46
  priorTask: {
47
47
  task: string;
48
- intent?: "unknown" | "explain" | "bugfix" | "test_failure" | "feature_addition" | "refactor" | "api_change" | "config_fix" | "security_review" | undefined;
48
+ intent?: "unknown" | "bugfix" | "test_failure" | "feature_addition" | "refactor" | "explain" | "api_change" | "config_fix" | "security_review" | undefined;
49
49
  queryTerms?: string[] | undefined;
50
50
  stacktrace?: string | undefined;
51
51
  fileGlobs?: string[] | undefined;
@@ -70,14 +70,14 @@ export declare class CodeSearchRepairTool implements ITool<CodeSearchRepairInput
70
70
  packageScope: z.ZodOptional<z.ZodString>;
71
71
  }, "strip", z.ZodTypeAny, {
72
72
  task: string;
73
- intent?: "unknown" | "explain" | "bugfix" | "test_failure" | "feature_addition" | "refactor" | "api_change" | "config_fix" | "security_review" | undefined;
73
+ intent?: "unknown" | "bugfix" | "test_failure" | "feature_addition" | "refactor" | "explain" | "api_change" | "config_fix" | "security_review" | undefined;
74
74
  queryTerms?: string[] | undefined;
75
75
  stacktrace?: string | undefined;
76
76
  fileGlobs?: string[] | undefined;
77
77
  packageScope?: string | undefined;
78
78
  }, {
79
79
  task: string;
80
- intent?: "unknown" | "explain" | "bugfix" | "test_failure" | "feature_addition" | "refactor" | "api_change" | "config_fix" | "security_review" | undefined;
80
+ intent?: "unknown" | "bugfix" | "test_failure" | "feature_addition" | "refactor" | "explain" | "api_change" | "config_fix" | "security_review" | undefined;
81
81
  queryTerms?: string[] | undefined;
82
82
  stacktrace?: string | undefined;
83
83
  fileGlobs?: string[] | undefined;
@@ -91,7 +91,7 @@ export declare class CodeSearchRepairTool implements ITool<CodeSearchRepairInput
91
91
  }, "strip", z.ZodTypeAny, {
92
92
  priorTask: {
93
93
  task: string;
94
- intent?: "unknown" | "explain" | "bugfix" | "test_failure" | "feature_addition" | "refactor" | "api_change" | "config_fix" | "security_review" | undefined;
94
+ intent?: "unknown" | "bugfix" | "test_failure" | "feature_addition" | "refactor" | "explain" | "api_change" | "config_fix" | "security_review" | undefined;
95
95
  queryTerms?: string[] | undefined;
96
96
  stacktrace?: string | undefined;
97
97
  fileGlobs?: string[] | undefined;
@@ -105,7 +105,7 @@ export declare class CodeSearchRepairTool implements ITool<CodeSearchRepairInput
105
105
  }, {
106
106
  priorTask: {
107
107
  task: string;
108
- intent?: "unknown" | "explain" | "bugfix" | "test_failure" | "feature_addition" | "refactor" | "api_change" | "config_fix" | "security_review" | undefined;
108
+ intent?: "unknown" | "bugfix" | "test_failure" | "feature_addition" | "refactor" | "explain" | "api_change" | "config_fix" | "security_review" | undefined;
109
109
  queryTerms?: string[] | undefined;
110
110
  stacktrace?: string | undefined;
111
111
  fileGlobs?: string[] | undefined;
@@ -34,7 +34,7 @@ export declare const CodeSearchInputSchema: z.ZodObject<{
34
34
  maxFusionCandidates?: number | undefined;
35
35
  maxRerankCandidates?: number | undefined;
36
36
  } | undefined;
37
- intent?: "unknown" | "explain" | "bugfix" | "test_failure" | "feature_addition" | "refactor" | "api_change" | "config_fix" | "security_review" | undefined;
37
+ intent?: "unknown" | "bugfix" | "test_failure" | "feature_addition" | "refactor" | "explain" | "api_change" | "config_fix" | "security_review" | undefined;
38
38
  queryTerms?: string[] | undefined;
39
39
  stacktrace?: string | undefined;
40
40
  fileGlobs?: string[] | undefined;
@@ -49,7 +49,7 @@ export declare const CodeSearchInputSchema: z.ZodObject<{
49
49
  maxFusionCandidates?: number | undefined;
50
50
  maxRerankCandidates?: number | undefined;
51
51
  } | undefined;
52
- intent?: "unknown" | "explain" | "bugfix" | "test_failure" | "feature_addition" | "refactor" | "api_change" | "config_fix" | "security_review" | undefined;
52
+ intent?: "unknown" | "bugfix" | "test_failure" | "feature_addition" | "refactor" | "explain" | "api_change" | "config_fix" | "security_review" | undefined;
53
53
  queryTerms?: string[] | undefined;
54
54
  stacktrace?: string | undefined;
55
55
  fileGlobs?: string[] | undefined;
@@ -93,7 +93,7 @@ export declare class CodeSearchTool implements ITool<CodeSearchInput, unknown> {
93
93
  maxFusionCandidates?: number | undefined;
94
94
  maxRerankCandidates?: number | undefined;
95
95
  } | undefined;
96
- intent?: "unknown" | "explain" | "bugfix" | "test_failure" | "feature_addition" | "refactor" | "api_change" | "config_fix" | "security_review" | undefined;
96
+ intent?: "unknown" | "bugfix" | "test_failure" | "feature_addition" | "refactor" | "explain" | "api_change" | "config_fix" | "security_review" | undefined;
97
97
  queryTerms?: string[] | undefined;
98
98
  stacktrace?: string | undefined;
99
99
  fileGlobs?: string[] | undefined;
@@ -108,7 +108,7 @@ export declare class CodeSearchTool implements ITool<CodeSearchInput, unknown> {
108
108
  maxFusionCandidates?: number | undefined;
109
109
  maxRerankCandidates?: number | undefined;
110
110
  } | undefined;
111
- intent?: "unknown" | "explain" | "bugfix" | "test_failure" | "feature_addition" | "refactor" | "api_change" | "config_fix" | "security_review" | undefined;
111
+ intent?: "unknown" | "bugfix" | "test_failure" | "feature_addition" | "refactor" | "explain" | "api_change" | "config_fix" | "security_review" | undefined;
112
112
  queryTerms?: string[] | undefined;
113
113
  stacktrace?: string | undefined;
114
114
  fileGlobs?: string[] | undefined;
@@ -19,7 +19,7 @@ export declare const MemoryRecallInputSchema: z.ZodObject<{
19
19
  limit: number;
20
20
  include_archived: boolean;
21
21
  consent_scope: string;
22
- max_sensitivity: "local" | "public" | "private" | "secret";
22
+ max_sensitivity: "secret" | "local" | "public" | "private";
23
23
  category?: string | undefined;
24
24
  memory_type?: "observation" | "preference" | "fact" | "procedure" | undefined;
25
25
  }, {
@@ -31,7 +31,7 @@ export declare const MemoryRecallInputSchema: z.ZodObject<{
31
31
  memory_type?: "observation" | "preference" | "fact" | "procedure" | undefined;
32
32
  include_archived?: boolean | undefined;
33
33
  consent_scope?: string | undefined;
34
- max_sensitivity?: "local" | "public" | "private" | "secret" | undefined;
34
+ max_sensitivity?: "secret" | "local" | "public" | "private" | undefined;
35
35
  }>;
36
36
  export type MemoryRecallInput = z.input<typeof MemoryRecallInputSchema>;
37
37
  export interface MemoryRecallOutput {
@@ -58,7 +58,7 @@ export declare class MemoryRecallTool implements ITool<MemoryRecallInput, Memory
58
58
  limit: number;
59
59
  include_archived: boolean;
60
60
  consent_scope: string;
61
- max_sensitivity: "local" | "public" | "private" | "secret";
61
+ max_sensitivity: "secret" | "local" | "public" | "private";
62
62
  category?: string | undefined;
63
63
  memory_type?: "observation" | "preference" | "fact" | "procedure" | undefined;
64
64
  }, {
@@ -70,7 +70,7 @@ export declare class MemoryRecallTool implements ITool<MemoryRecallInput, Memory
70
70
  memory_type?: "observation" | "preference" | "fact" | "procedure" | undefined;
71
71
  include_archived?: boolean | undefined;
72
72
  consent_scope?: string | undefined;
73
- max_sensitivity?: "local" | "public" | "private" | "secret" | undefined;
73
+ max_sensitivity?: "secret" | "local" | "public" | "private" | undefined;
74
74
  }>;
75
75
  constructor(knowledgeManager: KnowledgeManager);
76
76
  description(_context?: ToolDescriptionContext): string;
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod";
2
2
  import type { StateManager } from "../../base/state/state-manager.js";
3
- import type { BackgroundRun, RuntimeReplyTarget, RuntimeSession } from "../../runtime/session-registry/types.js";
3
+ import { type BackgroundRun, type RuntimeReplyTarget, type RuntimeSession } from "../../runtime/session-registry/types.js";
4
4
  import type { ITool, PermissionCheckResult, ToolCallContext, ToolDescriptionContext, ToolMetadata, ToolResult } from "../types.js";
5
5
  declare class RuntimeSessionToolService {
6
6
  private readonly stateManager;
@@ -12,6 +12,14 @@ declare class RuntimeSessionToolService {
12
12
  sessions: RuntimeSession[];
13
13
  runs?: BackgroundRun[];
14
14
  }>;
15
+ observeRuns(input: RuntimeRunsObserveInput, context: ToolCallContext): Promise<{
16
+ generatedAt: string;
17
+ observedSnapshotEpoch: string;
18
+ runs: Array<BackgroundRun & {
19
+ observed_run_epoch: string | null;
20
+ }>;
21
+ sessions?: RuntimeSession[];
22
+ }>;
15
23
  loadHistory(selector: string, limit: number): Promise<{
16
24
  sessionId: string;
17
25
  runtimeSessionId: string;
@@ -116,12 +124,12 @@ export declare const RuntimeSessionsListInputSchema: z.ZodObject<{
116
124
  activeOnly: z.ZodDefault<z.ZodBoolean>;
117
125
  includeRuns: z.ZodDefault<z.ZodBoolean>;
118
126
  }, "strip", z.ZodTypeAny, {
119
- scope: "all" | "self" | "tree";
127
+ scope: "all" | "tree" | "self";
120
128
  activeOnly: boolean;
121
129
  includeRuns: boolean;
122
130
  kinds?: ("agent" | "conversation" | "coreloop")[] | undefined;
123
131
  }, {
124
- scope?: "all" | "self" | "tree" | undefined;
132
+ scope?: "all" | "tree" | "self" | undefined;
125
133
  kinds?: ("agent" | "conversation" | "coreloop")[] | undefined;
126
134
  activeOnly?: boolean | undefined;
127
135
  includeRuns?: boolean | undefined;
@@ -137,12 +145,12 @@ export declare class RuntimeSessionsListTool implements ITool<RuntimeSessionsLis
137
145
  activeOnly: z.ZodDefault<z.ZodBoolean>;
138
146
  includeRuns: z.ZodDefault<z.ZodBoolean>;
139
147
  }, "strip", z.ZodTypeAny, {
140
- scope: "all" | "self" | "tree";
148
+ scope: "all" | "tree" | "self";
141
149
  activeOnly: boolean;
142
150
  includeRuns: boolean;
143
151
  kinds?: ("agent" | "conversation" | "coreloop")[] | undefined;
144
152
  }, {
145
- scope?: "all" | "self" | "tree" | undefined;
153
+ scope?: "all" | "tree" | "self" | undefined;
146
154
  kinds?: ("agent" | "conversation" | "coreloop")[] | undefined;
147
155
  activeOnly?: boolean | undefined;
148
156
  includeRuns?: boolean | undefined;
@@ -153,6 +161,66 @@ export declare class RuntimeSessionsListTool implements ITool<RuntimeSessionsLis
153
161
  checkPermissions(): Promise<PermissionCheckResult>;
154
162
  isConcurrencySafe(): boolean;
155
163
  }
164
+ export declare const RuntimeRunsObserveInputSchema: z.ZodObject<{
165
+ scope: z.ZodDefault<z.ZodEnum<["self", "tree", "all"]>>;
166
+ run_id: z.ZodOptional<z.ZodString>;
167
+ session_id: z.ZodOptional<z.ZodString>;
168
+ statuses: z.ZodOptional<z.ZodArray<z.ZodEnum<["queued", "running", "succeeded", "failed", "timed_out", "cancelled", "lost", "unknown"]>, "many">>;
169
+ activeOnly: z.ZodDefault<z.ZodBoolean>;
170
+ includeSessions: z.ZodDefault<z.ZodBoolean>;
171
+ limit: z.ZodDefault<z.ZodNumber>;
172
+ }, "strip", z.ZodTypeAny, {
173
+ scope: "all" | "tree" | "self";
174
+ limit: number;
175
+ activeOnly: boolean;
176
+ includeSessions: boolean;
177
+ session_id?: string | undefined;
178
+ run_id?: string | undefined;
179
+ statuses?: ("unknown" | "running" | "timed_out" | "cancelled" | "failed" | "queued" | "succeeded" | "lost")[] | undefined;
180
+ }, {
181
+ session_id?: string | undefined;
182
+ run_id?: string | undefined;
183
+ scope?: "all" | "tree" | "self" | undefined;
184
+ limit?: number | undefined;
185
+ statuses?: ("unknown" | "running" | "timed_out" | "cancelled" | "failed" | "queued" | "succeeded" | "lost")[] | undefined;
186
+ activeOnly?: boolean | undefined;
187
+ includeSessions?: boolean | undefined;
188
+ }>;
189
+ export type RuntimeRunsObserveInput = z.infer<typeof RuntimeRunsObserveInputSchema>;
190
+ export declare class RuntimeRunsObserveTool implements ITool<RuntimeRunsObserveInput, unknown> {
191
+ private readonly service;
192
+ readonly metadata: ToolMetadata;
193
+ readonly inputSchema: z.ZodObject<{
194
+ scope: z.ZodDefault<z.ZodEnum<["self", "tree", "all"]>>;
195
+ run_id: z.ZodOptional<z.ZodString>;
196
+ session_id: z.ZodOptional<z.ZodString>;
197
+ statuses: z.ZodOptional<z.ZodArray<z.ZodEnum<["queued", "running", "succeeded", "failed", "timed_out", "cancelled", "lost", "unknown"]>, "many">>;
198
+ activeOnly: z.ZodDefault<z.ZodBoolean>;
199
+ includeSessions: z.ZodDefault<z.ZodBoolean>;
200
+ limit: z.ZodDefault<z.ZodNumber>;
201
+ }, "strip", z.ZodTypeAny, {
202
+ scope: "all" | "tree" | "self";
203
+ limit: number;
204
+ activeOnly: boolean;
205
+ includeSessions: boolean;
206
+ session_id?: string | undefined;
207
+ run_id?: string | undefined;
208
+ statuses?: ("unknown" | "running" | "timed_out" | "cancelled" | "failed" | "queued" | "succeeded" | "lost")[] | undefined;
209
+ }, {
210
+ session_id?: string | undefined;
211
+ run_id?: string | undefined;
212
+ scope?: "all" | "tree" | "self" | undefined;
213
+ limit?: number | undefined;
214
+ statuses?: ("unknown" | "running" | "timed_out" | "cancelled" | "failed" | "queued" | "succeeded" | "lost")[] | undefined;
215
+ activeOnly?: boolean | undefined;
216
+ includeSessions?: boolean | undefined;
217
+ }>;
218
+ constructor(service: RuntimeSessionToolService);
219
+ description(): string;
220
+ call(input: RuntimeRunsObserveInput, context: ToolCallContext): Promise<ToolResult>;
221
+ checkPermissions(): Promise<PermissionCheckResult>;
222
+ isConcurrencySafe(): boolean;
223
+ }
156
224
  export declare const RuntimeSessionsHistoryInputSchema: z.ZodObject<{
157
225
  session_id: z.ZodString;
158
226
  limit: z.ZodDefault<z.ZodNumber>;
@@ -1 +1 @@
1
- {"version":3,"file":"runtime-session-tools.d.ts","sourceRoot":"","sources":["../../../src/tools/query/runtime-session-tools.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAItE,OAAO,KAAK,EAAE,aAAa,EAAE,kBAAkB,EAAE,cAAc,EAAE,MAAM,yCAAyC,CAAC;AAGjH,OAAO,KAAK,EACV,KAAK,EACL,qBAAqB,EACrB,eAAe,EACf,sBAAsB,EACtB,YAAY,EACZ,UAAU,EACX,MAAM,aAAa,CAAC;AAsFrB,cAAM,yBAAyB;IACjB,OAAO,CAAC,QAAQ,CAAC,YAAY;gBAAZ,YAAY,EAAE,YAAY;IAEvD,OAAO,CAAC,OAAO;IAIf,OAAO,CAAC,QAAQ;IAIhB,OAAO,CAAC,MAAM;IAIR,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BAAyB,CAAC,YAAY,EAAE,YAAY,GAAG,KAAK,EAAE,CAgB7E"}
@@ -3,6 +3,7 @@ import { z } from "zod";
3
3
  import { ChatHistory, ChatSessionSchema } from "../../interface/chat/chat-history.js";
4
4
  import { ChatSessionCatalog } from "../../interface/chat/chat-session-store.js";
5
5
  import { createRuntimeSessionRegistry } from "../../runtime/session-registry/index.js";
6
+ import { BackgroundRunStatusSchema, } from "../../runtime/session-registry/types.js";
6
7
  import { OutboxStore } from "../../runtime/store/outbox-store.js";
7
8
  import { RuntimeDreamReviewTool } from "./runtime-dream-review-tool.js";
8
9
  const READ_ONLY = true;
@@ -17,6 +18,14 @@ function normalizeConversationSelector(selector) {
17
18
  function toConversationRuntimeId(sessionId) {
18
19
  return `session:conversation:${sessionId}`;
19
20
  }
21
+ function normalizeRuntimeSessionSelector(sessionId) {
22
+ return sessionId.startsWith("session:")
23
+ ? sessionId
24
+ : toConversationRuntimeId(sessionId);
25
+ }
26
+ function backgroundRunEpoch(run) {
27
+ return run.updated_at ?? run.started_at ?? run.created_at;
28
+ }
20
29
  function buildCompletionMessage(session, status, summary) {
21
30
  const title = session.title ? ` "${session.title}"` : "";
22
31
  return `Session ${session.id}${title} ${status}: ${summary}`;
@@ -121,6 +130,52 @@ class RuntimeSessionToolService {
121
130
  });
122
131
  return { sessions, runs };
123
132
  }
133
+ async observeRuns(input, context) {
134
+ const snapshot = await this.registry().snapshot();
135
+ const allowedConversationIds = await this.allowedConversationIds(input.scope, context);
136
+ const runtimeAllowedIds = allowedConversationIds
137
+ ? new Set(Array.from(allowedConversationIds, (id) => toConversationRuntimeId(id)))
138
+ : null;
139
+ const statusFilter = input.statuses?.length ? new Set(input.statuses) : null;
140
+ const sessionSelector = input.session_id ? normalizeRuntimeSessionSelector(input.session_id) : null;
141
+ const runs = snapshot.background_runs
142
+ .filter((run) => {
143
+ if (input.run_id && run.id !== input.run_id)
144
+ return false;
145
+ if (sessionSelector && run.parent_session_id !== sessionSelector && run.child_session_id !== sessionSelector)
146
+ return false;
147
+ if (statusFilter && !statusFilter.has(run.status))
148
+ return false;
149
+ if (input.activeOnly && run.status !== "queued" && run.status !== "running")
150
+ return false;
151
+ if (!runtimeAllowedIds)
152
+ return true;
153
+ if (run.parent_session_id && runtimeAllowedIds.has(run.parent_session_id))
154
+ return true;
155
+ return run.child_session_id ? runtimeAllowedIds.has(run.child_session_id) : false;
156
+ })
157
+ .sort((left, right) => Date.parse(backgroundRunEpoch(right) ?? "") - Date.parse(backgroundRunEpoch(left) ?? ""))
158
+ .slice(0, input.limit)
159
+ .map((run) => ({
160
+ ...run,
161
+ observed_run_epoch: backgroundRunEpoch(run),
162
+ }));
163
+ const runSessionIds = new Set();
164
+ for (const run of runs) {
165
+ if (run.parent_session_id)
166
+ runSessionIds.add(run.parent_session_id);
167
+ if (run.child_session_id)
168
+ runSessionIds.add(run.child_session_id);
169
+ }
170
+ return {
171
+ generatedAt: snapshot.generated_at,
172
+ observedSnapshotEpoch: snapshot.generated_at,
173
+ runs,
174
+ ...(input.includeSessions
175
+ ? { sessions: snapshot.sessions.filter((session) => runSessionIds.has(session.id)) }
176
+ : {}),
177
+ };
178
+ }
124
179
  async loadHistory(selector, limit) {
125
180
  const session = await this.resolveConversationSession(selector);
126
181
  return {
@@ -490,6 +545,64 @@ export class RuntimeSessionsListTool {
490
545
  return true;
491
546
  }
492
547
  }
548
+ export const RuntimeRunsObserveInputSchema = z.object({
549
+ scope: z.enum(["self", "tree", "all"]).default("tree"),
550
+ run_id: z.string().min(1).optional(),
551
+ session_id: z.string().min(1).optional(),
552
+ statuses: z.array(BackgroundRunStatusSchema).optional(),
553
+ activeOnly: z.boolean().default(false),
554
+ includeSessions: z.boolean().default(true),
555
+ limit: z.number().int().positive().max(50).default(20),
556
+ });
557
+ export class RuntimeRunsObserveTool {
558
+ service;
559
+ metadata = {
560
+ name: "runs_observe",
561
+ aliases: ["observe_runs", "runtime_runs_observe"],
562
+ permissionLevel: READ_PERMISSION,
563
+ isReadOnly: READ_ONLY,
564
+ isDestructive: false,
565
+ shouldDefer: false,
566
+ alwaysLoad: false,
567
+ maxConcurrency: 0,
568
+ maxOutputChars: 12000,
569
+ tags: [...TAGS, "runtime-control"],
570
+ };
571
+ inputSchema = RuntimeRunsObserveInputSchema;
572
+ constructor(service) {
573
+ this.service = service;
574
+ }
575
+ description() {
576
+ return "Observe typed background runtime runs and return exact run ids plus observed_run_epoch values required by mutating run-control tools.";
577
+ }
578
+ async call(input, context) {
579
+ const started = Date.now();
580
+ try {
581
+ const data = await this.service.observeRuns(input, context);
582
+ return {
583
+ success: true,
584
+ data,
585
+ summary: `Observed ${data.runs.length} runtime run(s)`,
586
+ durationMs: Date.now() - started,
587
+ };
588
+ }
589
+ catch (error) {
590
+ return {
591
+ success: false,
592
+ data: null,
593
+ summary: `runs_observe failed: ${error instanceof Error ? error.message : String(error)}`,
594
+ error: error instanceof Error ? error.message : String(error),
595
+ durationMs: Date.now() - started,
596
+ };
597
+ }
598
+ }
599
+ async checkPermissions() {
600
+ return { status: "allowed" };
601
+ }
602
+ isConcurrencySafe() {
603
+ return true;
604
+ }
605
+ }
493
606
  export const RuntimeSessionsHistoryInputSchema = z.object({
494
607
  session_id: z.string().min(1, "session_id is required"),
495
608
  limit: z.number().int().positive().max(100).default(20),
@@ -1002,6 +1115,7 @@ export function createRuntimeSessionTools(stateManager) {
1002
1115
  const service = new RuntimeSessionToolService(stateManager);
1003
1116
  return [
1004
1117
  new RuntimeSessionsListTool(service),
1118
+ new RuntimeRunsObserveTool(service),
1005
1119
  new RuntimeSessionsHistoryTool(service),
1006
1120
  new RuntimeSessionsReadTool(service),
1007
1121
  new RuntimeSessionsChildrenTool(service),