pulseed 0.6.3 → 0.6.5

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 (615) 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 +256 -9
  4. package/dist/adapters/datasources/artifact-metric-datasource.js.map +1 -1
  5. package/dist/base/config/global-config.d.ts +7 -4
  6. package/dist/base/config/global-config.d.ts.map +1 -1
  7. package/dist/base/config/global-config.js +3 -1
  8. package/dist/base/config/global-config.js.map +1 -1
  9. package/dist/base/protocol/exact-protocol.d.ts +47 -0
  10. package/dist/base/protocol/exact-protocol.d.ts.map +1 -0
  11. package/dist/base/protocol/exact-protocol.js +175 -0
  12. package/dist/base/protocol/exact-protocol.js.map +1 -0
  13. package/dist/base/types/core.d.ts +1 -1
  14. package/dist/base/types/core.d.ts.map +1 -1
  15. package/dist/base/types/core.js +1 -0
  16. package/dist/base/types/core.js.map +1 -1
  17. package/dist/base/utils/paths.d.ts +5 -0
  18. package/dist/base/utils/paths.d.ts.map +1 -1
  19. package/dist/base/utils/paths.js +7 -0
  20. package/dist/base/utils/paths.js.map +1 -1
  21. package/dist/base/utils/workspace-path.d.ts +6 -0
  22. package/dist/base/utils/workspace-path.d.ts.map +1 -0
  23. package/dist/base/utils/workspace-path.js +24 -0
  24. package/dist/base/utils/workspace-path.js.map +1 -0
  25. package/dist/base/utils/workspace-root.d.ts +6 -0
  26. package/dist/base/utils/workspace-root.d.ts.map +1 -0
  27. package/dist/base/utils/workspace-root.js +87 -0
  28. package/dist/base/utils/workspace-root.js.map +1 -0
  29. package/dist/index.d.ts +4 -0
  30. package/dist/index.d.ts.map +1 -1
  31. package/dist/index.js +2 -0
  32. package/dist/index.js.map +1 -1
  33. package/dist/interface/chat/chat-event-state.d.ts +2 -0
  34. package/dist/interface/chat/chat-event-state.d.ts.map +1 -1
  35. package/dist/interface/chat/chat-event-state.js +22 -41
  36. package/dist/interface/chat/chat-event-state.js.map +1 -1
  37. package/dist/interface/chat/chat-events.d.ts +15 -1
  38. package/dist/interface/chat/chat-events.d.ts.map +1 -1
  39. package/dist/interface/chat/chat-history.d.ts +3816 -192
  40. package/dist/interface/chat/chat-history.d.ts.map +1 -1
  41. package/dist/interface/chat/chat-history.js +529 -5
  42. package/dist/interface/chat/chat-history.js.map +1 -1
  43. package/dist/interface/chat/chat-runner-commands.d.ts +2 -0
  44. package/dist/interface/chat/chat-runner-commands.d.ts.map +1 -1
  45. package/dist/interface/chat/chat-runner-commands.js +83 -22
  46. package/dist/interface/chat/chat-runner-commands.js.map +1 -1
  47. package/dist/interface/chat/chat-runner-contracts.d.ts +5 -1
  48. package/dist/interface/chat/chat-runner-contracts.d.ts.map +1 -1
  49. package/dist/interface/chat/chat-runner-event-bridge.d.ts +13 -1
  50. package/dist/interface/chat/chat-runner-event-bridge.d.ts.map +1 -1
  51. package/dist/interface/chat/chat-runner-event-bridge.js +51 -3
  52. package/dist/interface/chat/chat-runner-event-bridge.js.map +1 -1
  53. package/dist/interface/chat/chat-runner-routes.d.ts +5 -17
  54. package/dist/interface/chat/chat-runner-routes.d.ts.map +1 -1
  55. package/dist/interface/chat/chat-runner-routes.js +80 -51
  56. package/dist/interface/chat/chat-runner-routes.js.map +1 -1
  57. package/dist/interface/chat/chat-runner-runtime.d.ts.map +1 -1
  58. package/dist/interface/chat/chat-runner-runtime.js +4 -0
  59. package/dist/interface/chat/chat-runner-runtime.js.map +1 -1
  60. package/dist/interface/chat/chat-runner.d.ts +7 -1
  61. package/dist/interface/chat/chat-runner.d.ts.map +1 -1
  62. package/dist/interface/chat/chat-runner.js +135 -49
  63. package/dist/interface/chat/chat-runner.js.map +1 -1
  64. package/dist/interface/chat/chat-session-store.d.ts +3 -0
  65. package/dist/interface/chat/chat-session-store.d.ts.map +1 -1
  66. package/dist/interface/chat/chat-session-store.js +12 -0
  67. package/dist/interface/chat/chat-session-store.js.map +1 -1
  68. package/dist/interface/chat/cross-platform-session.d.ts +15 -0
  69. package/dist/interface/chat/cross-platform-session.d.ts.map +1 -1
  70. package/dist/interface/chat/cross-platform-session.js +260 -42
  71. package/dist/interface/chat/cross-platform-session.js.map +1 -1
  72. package/dist/interface/chat/failure-recovery.d.ts.map +1 -1
  73. package/dist/interface/chat/failure-recovery.js +15 -1
  74. package/dist/interface/chat/failure-recovery.js.map +1 -1
  75. package/dist/interface/chat/freeform-route-classifier.d.ts +4 -4
  76. package/dist/interface/chat/ingress-router.d.ts +3 -0
  77. package/dist/interface/chat/ingress-router.d.ts.map +1 -1
  78. package/dist/interface/chat/ingress-router.js +3 -0
  79. package/dist/interface/chat/ingress-router.js.map +1 -1
  80. package/dist/interface/chat/model-request-builder.d.ts +37 -0
  81. package/dist/interface/chat/model-request-builder.d.ts.map +1 -0
  82. package/dist/interface/chat/model-request-builder.js +76 -0
  83. package/dist/interface/chat/model-request-builder.js.map +1 -0
  84. package/dist/interface/chat/turn-context.d.ts +200 -0
  85. package/dist/interface/chat/turn-context.d.ts.map +1 -0
  86. package/dist/interface/chat/turn-context.js +249 -0
  87. package/dist/interface/chat/turn-context.js.map +1 -0
  88. package/dist/interface/chat/turn-protocol.d.ts +35 -0
  89. package/dist/interface/chat/turn-protocol.d.ts.map +1 -0
  90. package/dist/interface/chat/turn-protocol.js +27 -0
  91. package/dist/interface/chat/turn-protocol.js.map +1 -0
  92. package/dist/interface/chat/user-input.d.ts +55 -0
  93. package/dist/interface/chat/user-input.d.ts.map +1 -0
  94. package/dist/interface/chat/user-input.js +52 -0
  95. package/dist/interface/chat/user-input.js.map +1 -0
  96. package/dist/interface/cli/cli-command-registry.d.ts +1 -1
  97. package/dist/interface/cli/cli-command-registry.d.ts.map +1 -1
  98. package/dist/interface/cli/cli-command-registry.js +12 -16
  99. package/dist/interface/cli/cli-command-registry.js.map +1 -1
  100. package/dist/interface/cli/cli-runner.js +0 -0
  101. package/dist/interface/cli/commands/daemon-shared.d.ts +12 -1
  102. package/dist/interface/cli/commands/daemon-shared.d.ts.map +1 -1
  103. package/dist/interface/cli/commands/daemon-shared.js +26 -4
  104. package/dist/interface/cli/commands/daemon-shared.js.map +1 -1
  105. package/dist/interface/cli/commands/daemon.d.ts.map +1 -1
  106. package/dist/interface/cli/commands/daemon.js +66 -8
  107. package/dist/interface/cli/commands/daemon.js.map +1 -1
  108. package/dist/interface/cli/commands/doctor.d.ts +1 -1
  109. package/dist/interface/cli/commands/doctor.d.ts.map +1 -1
  110. package/dist/interface/cli/commands/doctor.js +61 -29
  111. package/dist/interface/cli/commands/doctor.js.map +1 -1
  112. package/dist/interface/cli/commands/goal-dispatch.d.ts.map +1 -1
  113. package/dist/interface/cli/commands/goal-dispatch.js +10 -6
  114. package/dist/interface/cli/commands/goal-dispatch.js.map +1 -1
  115. package/dist/interface/cli/commands/goal-utils.d.ts.map +1 -1
  116. package/dist/interface/cli/commands/goal-utils.js +3 -5
  117. package/dist/interface/cli/commands/goal-utils.js.map +1 -1
  118. package/dist/interface/cli/commands/run.d.ts.map +1 -1
  119. package/dist/interface/cli/commands/run.js +50 -0
  120. package/dist/interface/cli/commands/run.js.map +1 -1
  121. package/dist/interface/cli/setup.d.ts +1 -1
  122. package/dist/interface/cli/setup.d.ts.map +1 -1
  123. package/dist/interface/cli/setup.js +4 -3
  124. package/dist/interface/cli/setup.js.map +1 -1
  125. package/dist/interface/cli/utils/loop-runner.d.ts +1 -0
  126. package/dist/interface/cli/utils/loop-runner.d.ts.map +1 -1
  127. package/dist/interface/cli/utils/loop-runner.js +12 -3
  128. package/dist/interface/cli/utils/loop-runner.js.map +1 -1
  129. package/dist/interface/tui/app.d.ts +6 -1
  130. package/dist/interface/tui/app.d.ts.map +1 -1
  131. package/dist/interface/tui/app.js +29 -12
  132. package/dist/interface/tui/app.js.map +1 -1
  133. package/dist/interface/tui/bash-mode.d.ts.map +1 -1
  134. package/dist/interface/tui/bash-mode.js +2 -9
  135. package/dist/interface/tui/bash-mode.js.map +1 -1
  136. package/dist/interface/tui/chat/viewport.d.ts.map +1 -1
  137. package/dist/interface/tui/chat/viewport.js +57 -11
  138. package/dist/interface/tui/chat/viewport.js.map +1 -1
  139. package/dist/interface/tui/entry-deps.d.ts +6 -1
  140. package/dist/interface/tui/entry-deps.d.ts.map +1 -1
  141. package/dist/interface/tui/entry-deps.js +3 -0
  142. package/dist/interface/tui/entry-deps.js.map +1 -1
  143. package/dist/interface/tui/entry.d.ts.map +1 -1
  144. package/dist/interface/tui/entry.js +6 -2
  145. package/dist/interface/tui/entry.js.map +1 -1
  146. package/dist/interface/tui/input-action.d.ts.map +1 -1
  147. package/dist/interface/tui/input-action.js +3 -2
  148. package/dist/interface/tui/input-action.js.map +1 -1
  149. package/dist/interface/tui/intent-recognizer.d.ts.map +1 -1
  150. package/dist/interface/tui/intent-recognizer.js +21 -33
  151. package/dist/interface/tui/intent-recognizer.js.map +1 -1
  152. package/dist/orchestrator/execution/adapter-layer.d.ts +10 -1
  153. package/dist/orchestrator/execution/adapter-layer.d.ts.map +1 -1
  154. package/dist/orchestrator/execution/adapter-layer.js.map +1 -1
  155. package/dist/orchestrator/execution/agent-loop/agent-loop-command-classifier.d.ts +12 -1
  156. package/dist/orchestrator/execution/agent-loop/agent-loop-command-classifier.d.ts.map +1 -1
  157. package/dist/orchestrator/execution/agent-loop/agent-loop-command-classifier.js +16 -31
  158. package/dist/orchestrator/execution/agent-loop/agent-loop-command-classifier.js.map +1 -1
  159. package/dist/orchestrator/execution/agent-loop/agent-loop-compaction-record.d.ts +75 -0
  160. package/dist/orchestrator/execution/agent-loop/agent-loop-compaction-record.d.ts.map +1 -0
  161. package/dist/orchestrator/execution/agent-loop/agent-loop-compaction-record.js +10 -0
  162. package/dist/orchestrator/execution/agent-loop/agent-loop-compaction-record.js.map +1 -0
  163. package/dist/orchestrator/execution/agent-loop/agent-loop-compactor.d.ts +3 -2
  164. package/dist/orchestrator/execution/agent-loop/agent-loop-compactor.d.ts.map +1 -1
  165. package/dist/orchestrator/execution/agent-loop/agent-loop-compactor.js +185 -22
  166. package/dist/orchestrator/execution/agent-loop/agent-loop-compactor.js.map +1 -1
  167. package/dist/orchestrator/execution/agent-loop/agent-loop-context-assembler.d.ts.map +1 -1
  168. package/dist/orchestrator/execution/agent-loop/agent-loop-context-assembler.js +18 -1
  169. package/dist/orchestrator/execution/agent-loop/agent-loop-context-assembler.js.map +1 -1
  170. package/dist/orchestrator/execution/agent-loop/agent-loop-default-profile.d.ts.map +1 -1
  171. package/dist/orchestrator/execution/agent-loop/agent-loop-default-profile.js +7 -1
  172. package/dist/orchestrator/execution/agent-loop/agent-loop-default-profile.js.map +1 -1
  173. package/dist/orchestrator/execution/agent-loop/agent-loop-events.d.ts +8 -1
  174. package/dist/orchestrator/execution/agent-loop/agent-loop-events.d.ts.map +1 -1
  175. package/dist/orchestrator/execution/agent-loop/agent-loop-events.js.map +1 -1
  176. package/dist/orchestrator/execution/agent-loop/agent-loop-history.d.ts +3 -1
  177. package/dist/orchestrator/execution/agent-loop/agent-loop-history.d.ts.map +1 -1
  178. package/dist/orchestrator/execution/agent-loop/agent-loop-history.js +12 -3
  179. package/dist/orchestrator/execution/agent-loop/agent-loop-history.js.map +1 -1
  180. package/dist/orchestrator/execution/agent-loop/agent-loop-model-client.d.ts.map +1 -1
  181. package/dist/orchestrator/execution/agent-loop/agent-loop-model-client.js +7 -1
  182. package/dist/orchestrator/execution/agent-loop/agent-loop-model-client.js.map +1 -1
  183. package/dist/orchestrator/execution/agent-loop/agent-loop-model.d.ts +37 -0
  184. package/dist/orchestrator/execution/agent-loop/agent-loop-model.d.ts.map +1 -1
  185. package/dist/orchestrator/execution/agent-loop/agent-loop-model.js +21 -0
  186. package/dist/orchestrator/execution/agent-loop/agent-loop-model.js.map +1 -1
  187. package/dist/orchestrator/execution/agent-loop/agent-loop-prompts.d.ts.map +1 -1
  188. package/dist/orchestrator/execution/agent-loop/agent-loop-prompts.js +1 -0
  189. package/dist/orchestrator/execution/agent-loop/agent-loop-prompts.js.map +1 -1
  190. package/dist/orchestrator/execution/agent-loop/agent-loop-result.d.ts +19 -11
  191. package/dist/orchestrator/execution/agent-loop/agent-loop-result.d.ts.map +1 -1
  192. package/dist/orchestrator/execution/agent-loop/agent-loop-session-state.d.ts +4 -0
  193. package/dist/orchestrator/execution/agent-loop/agent-loop-session-state.d.ts.map +1 -1
  194. package/dist/orchestrator/execution/agent-loop/agent-loop-session-state.js +135 -0
  195. package/dist/orchestrator/execution/agent-loop/agent-loop-session-state.js.map +1 -1
  196. package/dist/orchestrator/execution/agent-loop/agent-loop-tool-runtime.d.ts +3 -2
  197. package/dist/orchestrator/execution/agent-loop/agent-loop-tool-runtime.d.ts.map +1 -1
  198. package/dist/orchestrator/execution/agent-loop/agent-loop-tool-runtime.js +68 -61
  199. package/dist/orchestrator/execution/agent-loop/agent-loop-tool-runtime.js.map +1 -1
  200. package/dist/orchestrator/execution/agent-loop/agent-loop-turn-context.d.ts +3 -1
  201. package/dist/orchestrator/execution/agent-loop/agent-loop-turn-context.d.ts.map +1 -1
  202. package/dist/orchestrator/execution/agent-loop/agent-loop-turn-context.js.map +1 -1
  203. package/dist/orchestrator/execution/agent-loop/agent-timeline.d.ts +12 -1
  204. package/dist/orchestrator/execution/agent-loop/agent-timeline.d.ts.map +1 -1
  205. package/dist/orchestrator/execution/agent-loop/agent-timeline.js +19 -56
  206. package/dist/orchestrator/execution/agent-loop/agent-timeline.js.map +1 -1
  207. package/dist/orchestrator/execution/agent-loop/anthropic-messages-agent-loop-model-client.d.ts.map +1 -1
  208. package/dist/orchestrator/execution/agent-loop/anthropic-messages-agent-loop-model-client.js +8 -2
  209. package/dist/orchestrator/execution/agent-loop/anthropic-messages-agent-loop-model-client.js.map +1 -1
  210. package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.d.ts +14 -0
  211. package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.d.ts.map +1 -1
  212. package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.js +440 -81
  213. package/dist/orchestrator/execution/agent-loop/bounded-agent-loop-runner.js.map +1 -1
  214. package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.d.ts +1 -1
  215. package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.d.ts.map +1 -1
  216. package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.js +80 -12
  217. package/dist/orchestrator/execution/agent-loop/chat-agent-loop-runner.js.map +1 -1
  218. package/dist/orchestrator/execution/agent-loop/chat-display-output.d.ts +1 -0
  219. package/dist/orchestrator/execution/agent-loop/chat-display-output.d.ts.map +1 -1
  220. package/dist/orchestrator/execution/agent-loop/chat-display-output.js +3 -1
  221. package/dist/orchestrator/execution/agent-loop/chat-display-output.js.map +1 -1
  222. package/dist/orchestrator/execution/agent-loop/index.d.ts +3 -0
  223. package/dist/orchestrator/execution/agent-loop/index.d.ts.map +1 -1
  224. package/dist/orchestrator/execution/agent-loop/index.js +3 -0
  225. package/dist/orchestrator/execution/agent-loop/index.js.map +1 -1
  226. package/dist/orchestrator/execution/agent-loop/openai-responses-agent-loop-model-client.d.ts +1 -0
  227. package/dist/orchestrator/execution/agent-loop/openai-responses-agent-loop-model-client.d.ts.map +1 -1
  228. package/dist/orchestrator/execution/agent-loop/openai-responses-agent-loop-model-client.js +51 -9
  229. package/dist/orchestrator/execution/agent-loop/openai-responses-agent-loop-model-client.js.map +1 -1
  230. package/dist/orchestrator/execution/agent-loop/response-item-tool-router.d.ts +20 -0
  231. package/dist/orchestrator/execution/agent-loop/response-item-tool-router.d.ts.map +1 -0
  232. package/dist/orchestrator/execution/agent-loop/response-item-tool-router.js +181 -0
  233. package/dist/orchestrator/execution/agent-loop/response-item-tool-router.js.map +1 -0
  234. package/dist/orchestrator/execution/agent-loop/response-item.d.ts +805 -0
  235. package/dist/orchestrator/execution/agent-loop/response-item.d.ts.map +1 -0
  236. package/dist/orchestrator/execution/agent-loop/response-item.js +104 -0
  237. package/dist/orchestrator/execution/agent-loop/response-item.js.map +1 -0
  238. package/dist/orchestrator/execution/agent-loop/task-agent-loop-context.d.ts +7 -2
  239. package/dist/orchestrator/execution/agent-loop/task-agent-loop-context.d.ts.map +1 -1
  240. package/dist/orchestrator/execution/agent-loop/task-agent-loop-context.js +33 -1
  241. package/dist/orchestrator/execution/agent-loop/task-agent-loop-context.js.map +1 -1
  242. package/dist/orchestrator/execution/agent-loop/task-agent-loop-result.d.ts +32 -17
  243. package/dist/orchestrator/execution/agent-loop/task-agent-loop-result.d.ts.map +1 -1
  244. package/dist/orchestrator/execution/agent-loop/task-agent-loop-result.js +174 -16
  245. package/dist/orchestrator/execution/agent-loop/task-agent-loop-result.js.map +1 -1
  246. package/dist/orchestrator/execution/agent-loop/task-agent-loop-runner.d.ts +2 -0
  247. package/dist/orchestrator/execution/agent-loop/task-agent-loop-runner.d.ts.map +1 -1
  248. package/dist/orchestrator/execution/agent-loop/task-agent-loop-runner.js +10 -4
  249. package/dist/orchestrator/execution/agent-loop/task-agent-loop-runner.js.map +1 -1
  250. package/dist/orchestrator/execution/agent-loop/task-agent-loop-verification.d.ts +0 -1
  251. package/dist/orchestrator/execution/agent-loop/task-agent-loop-verification.d.ts.map +1 -1
  252. package/dist/orchestrator/execution/agent-loop/task-agent-loop-verification.js +7 -87
  253. package/dist/orchestrator/execution/agent-loop/task-agent-loop-verification.js.map +1 -1
  254. package/dist/orchestrator/execution/agent-loop/task-agent-loop-worktree.d.ts.map +1 -1
  255. package/dist/orchestrator/execution/agent-loop/task-agent-loop-worktree.js +25 -0
  256. package/dist/orchestrator/execution/agent-loop/task-agent-loop-worktree.js.map +1 -1
  257. package/dist/orchestrator/execution/context/issue-context-fetcher.d.ts +5 -1
  258. package/dist/orchestrator/execution/context/issue-context-fetcher.d.ts.map +1 -1
  259. package/dist/orchestrator/execution/context/issue-context-fetcher.js +7 -4
  260. package/dist/orchestrator/execution/context/issue-context-fetcher.js.map +1 -1
  261. package/dist/orchestrator/execution/task/task-artifact-contract.d.ts +18 -0
  262. package/dist/orchestrator/execution/task/task-artifact-contract.d.ts.map +1 -0
  263. package/dist/orchestrator/execution/task/task-artifact-contract.js +199 -0
  264. package/dist/orchestrator/execution/task/task-artifact-contract.js.map +1 -0
  265. package/dist/orchestrator/execution/task/task-diff-capture.d.ts +15 -1
  266. package/dist/orchestrator/execution/task/task-diff-capture.d.ts.map +1 -1
  267. package/dist/orchestrator/execution/task/task-diff-capture.js +271 -18
  268. package/dist/orchestrator/execution/task/task-diff-capture.js.map +1 -1
  269. package/dist/orchestrator/execution/task/task-execution-helpers.d.ts +1 -0
  270. package/dist/orchestrator/execution/task/task-execution-helpers.d.ts.map +1 -1
  271. package/dist/orchestrator/execution/task/task-execution-helpers.js +76 -17
  272. package/dist/orchestrator/execution/task/task-execution-helpers.js.map +1 -1
  273. package/dist/orchestrator/execution/task/task-execution-types.d.ts +2 -0
  274. package/dist/orchestrator/execution/task/task-execution-types.d.ts.map +1 -1
  275. package/dist/orchestrator/execution/task/task-execution-types.js.map +1 -1
  276. package/dist/orchestrator/execution/task/task-executor.d.ts +16 -1
  277. package/dist/orchestrator/execution/task/task-executor.d.ts.map +1 -1
  278. package/dist/orchestrator/execution/task/task-executor.js +56 -50
  279. package/dist/orchestrator/execution/task/task-executor.js.map +1 -1
  280. package/dist/orchestrator/execution/task/task-generation.d.ts +62 -2
  281. package/dist/orchestrator/execution/task/task-generation.d.ts.map +1 -1
  282. package/dist/orchestrator/execution/task/task-generation.js +30 -13
  283. package/dist/orchestrator/execution/task/task-generation.js.map +1 -1
  284. package/dist/orchestrator/execution/task/task-lifecycle-runner.d.ts +2 -2
  285. package/dist/orchestrator/execution/task/task-lifecycle-runner.d.ts.map +1 -1
  286. package/dist/orchestrator/execution/task/task-lifecycle-runner.js +32 -4
  287. package/dist/orchestrator/execution/task/task-lifecycle-runner.js.map +1 -1
  288. package/dist/orchestrator/execution/task/task-lifecycle.d.ts +3 -3
  289. package/dist/orchestrator/execution/task/task-lifecycle.d.ts.map +1 -1
  290. package/dist/orchestrator/execution/task/task-lifecycle.js +109 -10
  291. package/dist/orchestrator/execution/task/task-lifecycle.js.map +1 -1
  292. package/dist/orchestrator/execution/task/task-outcome-ledger.d.ts +9 -0
  293. package/dist/orchestrator/execution/task/task-outcome-ledger.d.ts.map +1 -1
  294. package/dist/orchestrator/execution/task/task-outcome-ledger.js +64 -3
  295. package/dist/orchestrator/execution/task/task-outcome-ledger.js.map +1 -1
  296. package/dist/orchestrator/execution/task/task-prompt-builder.d.ts +3 -1
  297. package/dist/orchestrator/execution/task/task-prompt-builder.d.ts.map +1 -1
  298. package/dist/orchestrator/execution/task/task-prompt-builder.js +28 -13
  299. package/dist/orchestrator/execution/task/task-prompt-builder.js.map +1 -1
  300. package/dist/orchestrator/execution/task/task-verifier-rules.d.ts +3 -2
  301. package/dist/orchestrator/execution/task/task-verifier-rules.d.ts.map +1 -1
  302. package/dist/orchestrator/execution/task/task-verifier-rules.js +377 -90
  303. package/dist/orchestrator/execution/task/task-verifier-rules.js.map +1 -1
  304. package/dist/orchestrator/execution/task/task-verifier-types.d.ts +13 -0
  305. package/dist/orchestrator/execution/task/task-verifier-types.d.ts.map +1 -1
  306. package/dist/orchestrator/execution/task/task-verifier-types.js.map +1 -1
  307. package/dist/orchestrator/execution/task/task-verifier.d.ts +5 -4
  308. package/dist/orchestrator/execution/task/task-verifier.d.ts.map +1 -1
  309. package/dist/orchestrator/execution/task/task-verifier.js +396 -25
  310. package/dist/orchestrator/execution/task/task-verifier.js.map +1 -1
  311. package/dist/orchestrator/execution/task/task-workspace.d.ts +5 -0
  312. package/dist/orchestrator/execution/task/task-workspace.d.ts.map +1 -1
  313. package/dist/orchestrator/execution/task/task-workspace.js +20 -10
  314. package/dist/orchestrator/execution/task/task-workspace.js.map +1 -1
  315. package/dist/orchestrator/execution/types/task-group.d.ts +85 -5
  316. package/dist/orchestrator/execution/types/task-group.d.ts.map +1 -1
  317. package/dist/orchestrator/execution/types/task.d.ts +155 -3
  318. package/dist/orchestrator/execution/types/task.d.ts.map +1 -1
  319. package/dist/orchestrator/execution/types/task.js +18 -0
  320. package/dist/orchestrator/execution/types/task.js.map +1 -1
  321. package/dist/orchestrator/loop/durable-loop/contracts.d.ts +2 -0
  322. package/dist/orchestrator/loop/durable-loop/contracts.d.ts.map +1 -1
  323. package/dist/orchestrator/loop/durable-loop/contracts.js.map +1 -1
  324. package/dist/orchestrator/loop/durable-loop/phase-specs.d.ts +12 -12
  325. package/dist/orchestrator/loop/durable-loop/preparation.d.ts.map +1 -1
  326. package/dist/orchestrator/loop/durable-loop/preparation.js +7 -1
  327. package/dist/orchestrator/loop/durable-loop/preparation.js.map +1 -1
  328. package/dist/orchestrator/loop/loop-report-helper.d.ts.map +1 -1
  329. package/dist/orchestrator/loop/loop-report-helper.js +2 -0
  330. package/dist/orchestrator/loop/loop-report-helper.js.map +1 -1
  331. package/dist/platform/corrections/memory-correction-ledger.d.ts +30 -30
  332. package/dist/platform/corrections/memory-governance.d.ts +2 -2
  333. package/dist/platform/corrections/memory-quarantine.d.ts +2 -2
  334. package/dist/platform/dream/playbook-memory.d.ts +4 -4
  335. package/dist/platform/knowledge/types/agent-memory.d.ts +46 -46
  336. package/dist/platform/observation/context-provider/collector.d.ts.map +1 -1
  337. package/dist/platform/observation/context-provider/collector.js +89 -24
  338. package/dist/platform/observation/context-provider/collector.js.map +1 -1
  339. package/dist/platform/observation/data-source-adapter.d.ts +2 -0
  340. package/dist/platform/observation/data-source-adapter.d.ts.map +1 -1
  341. package/dist/platform/observation/data-source-adapter.js.map +1 -1
  342. package/dist/platform/observation/observation-apply.d.ts.map +1 -1
  343. package/dist/platform/observation/observation-apply.js +8 -2
  344. package/dist/platform/observation/observation-apply.js.map +1 -1
  345. package/dist/platform/observation/observation-engine.d.ts.map +1 -1
  346. package/dist/platform/observation/observation-engine.js +118 -70
  347. package/dist/platform/observation/observation-engine.js.map +1 -1
  348. package/dist/platform/observation/observation-helpers.d.ts +2 -0
  349. package/dist/platform/observation/observation-helpers.d.ts.map +1 -1
  350. package/dist/platform/observation/observation-helpers.js.map +1 -1
  351. package/dist/platform/observation/types/data-source.d.ts +48 -0
  352. package/dist/platform/observation/types/data-source.d.ts.map +1 -1
  353. package/dist/platform/observation/types/data-source.js +4 -0
  354. package/dist/platform/observation/types/data-source.js.map +1 -1
  355. package/dist/platform/observation/workspace-context.d.ts.map +1 -1
  356. package/dist/platform/observation/workspace-context.js +13 -18
  357. package/dist/platform/observation/workspace-context.js.map +1 -1
  358. package/dist/platform/soil/contracts.d.ts +58 -58
  359. package/dist/prompt/purposes/verification.d.ts +2 -2
  360. package/dist/reporting/report-formatters.d.ts.map +1 -1
  361. package/dist/reporting/report-formatters.js +26 -1
  362. package/dist/reporting/report-formatters.js.map +1 -1
  363. package/dist/reporting/reporting-engine.d.ts.map +1 -1
  364. package/dist/reporting/reporting-engine.js +1 -0
  365. package/dist/reporting/reporting-engine.js.map +1 -1
  366. package/dist/reporting/reporting-types.d.ts +7 -0
  367. package/dist/reporting/reporting-types.d.ts.map +1 -1
  368. package/dist/reporting/types/report.d.ts +12 -0
  369. package/dist/reporting/types/report.d.ts.map +1 -1
  370. package/dist/reporting/types/report.js +1 -0
  371. package/dist/reporting/types/report.js.map +1 -1
  372. package/dist/runtime/approval-broker.d.ts +12 -0
  373. package/dist/runtime/approval-broker.d.ts.map +1 -1
  374. package/dist/runtime/approval-broker.js +27 -7
  375. package/dist/runtime/approval-broker.js.map +1 -1
  376. package/dist/runtime/control/daemon-runtime-control-executor.d.ts.map +1 -1
  377. package/dist/runtime/control/daemon-runtime-control-executor.js +9 -4
  378. package/dist/runtime/control/daemon-runtime-control-executor.js.map +1 -1
  379. package/dist/runtime/control/runtime-control-intent.d.ts.map +1 -1
  380. package/dist/runtime/control/runtime-control-intent.js +3 -2
  381. package/dist/runtime/control/runtime-control-intent.js.map +1 -1
  382. package/dist/runtime/control/runtime-control-service.d.ts +27 -1
  383. package/dist/runtime/control/runtime-control-service.d.ts.map +1 -1
  384. package/dist/runtime/control/runtime-control-service.js +181 -2
  385. package/dist/runtime/control/runtime-control-service.js.map +1 -1
  386. package/dist/runtime/control/runtime-target-resolver.js +2 -0
  387. package/dist/runtime/control/runtime-target-resolver.js.map +1 -1
  388. package/dist/runtime/daemon/browser-backpressure-policy.d.ts +22 -0
  389. package/dist/runtime/daemon/browser-backpressure-policy.d.ts.map +1 -0
  390. package/dist/runtime/daemon/browser-backpressure-policy.js +95 -0
  391. package/dist/runtime/daemon/browser-backpressure-policy.js.map +1 -0
  392. package/dist/runtime/daemon/client.d.ts +1 -0
  393. package/dist/runtime/daemon/client.d.ts.map +1 -1
  394. package/dist/runtime/daemon/client.js.map +1 -1
  395. package/dist/runtime/daemon/runner-goal-cycle.d.ts.map +1 -1
  396. package/dist/runtime/daemon/runner-goal-cycle.js +1 -2
  397. package/dist/runtime/daemon/runner-goal-cycle.js.map +1 -1
  398. package/dist/runtime/daemon/runner-recovery.d.ts +17 -3
  399. package/dist/runtime/daemon/runner-recovery.d.ts.map +1 -1
  400. package/dist/runtime/daemon/runner-recovery.js +50 -12
  401. package/dist/runtime/daemon/runner-recovery.js.map +1 -1
  402. package/dist/runtime/daemon/runner-startup.d.ts.map +1 -1
  403. package/dist/runtime/daemon/runner-startup.js +18 -1
  404. package/dist/runtime/daemon/runner-startup.js.map +1 -1
  405. package/dist/runtime/daemon/runner.d.ts.map +1 -1
  406. package/dist/runtime/daemon/runner.js +13 -3
  407. package/dist/runtime/daemon/runner.js.map +1 -1
  408. package/dist/runtime/daemon/runtime-ownership.d.ts +7 -1
  409. package/dist/runtime/daemon/runtime-ownership.d.ts.map +1 -1
  410. package/dist/runtime/daemon/runtime-ownership.js +171 -25
  411. package/dist/runtime/daemon/runtime-ownership.js.map +1 -1
  412. package/dist/runtime/daemon/wait-deadline-resolver.d.ts.map +1 -1
  413. package/dist/runtime/daemon/wait-deadline-resolver.js +2 -0
  414. package/dist/runtime/daemon/wait-deadline-resolver.js.map +1 -1
  415. package/dist/runtime/event/server-snapshot-reader.d.ts +3 -1
  416. package/dist/runtime/event/server-snapshot-reader.d.ts.map +1 -1
  417. package/dist/runtime/event/server-snapshot-reader.js +68 -2
  418. package/dist/runtime/event/server-snapshot-reader.js.map +1 -1
  419. package/dist/runtime/event/server-types.d.ts +2 -0
  420. package/dist/runtime/event/server-types.d.ts.map +1 -1
  421. package/dist/runtime/evidence-answer.d.ts.map +1 -1
  422. package/dist/runtime/evidence-answer.js +34 -7
  423. package/dist/runtime/evidence-answer.js.map +1 -1
  424. package/dist/runtime/gateway/channel-adapter.d.ts +3 -0
  425. package/dist/runtime/gateway/channel-adapter.d.ts.map +1 -1
  426. package/dist/runtime/gateway/channel-display-policy.d.ts +42 -0
  427. package/dist/runtime/gateway/channel-display-policy.d.ts.map +1 -0
  428. package/dist/runtime/gateway/channel-display-policy.js +85 -0
  429. package/dist/runtime/gateway/channel-display-policy.js.map +1 -0
  430. package/dist/runtime/gateway/chat-event-rendering.d.ts +2 -1
  431. package/dist/runtime/gateway/chat-event-rendering.d.ts.map +1 -1
  432. package/dist/runtime/gateway/chat-event-rendering.js +2 -0
  433. package/dist/runtime/gateway/chat-event-rendering.js.map +1 -1
  434. package/dist/runtime/gateway/chat-session-dispatch.d.ts.map +1 -1
  435. package/dist/runtime/gateway/chat-session-dispatch.js +4 -9
  436. package/dist/runtime/gateway/chat-session-dispatch.js.map +1 -1
  437. package/dist/runtime/gateway/chat-session-port.d.ts +2 -0
  438. package/dist/runtime/gateway/chat-session-port.d.ts.map +1 -1
  439. package/dist/runtime/gateway/chat-session-port.js.map +1 -1
  440. package/dist/runtime/gateway/discord-gateway-adapter.d.ts +4 -0
  441. package/dist/runtime/gateway/discord-gateway-adapter.d.ts.map +1 -1
  442. package/dist/runtime/gateway/discord-gateway-adapter.js +100 -31
  443. package/dist/runtime/gateway/discord-gateway-adapter.js.map +1 -1
  444. package/dist/runtime/gateway/index.d.ts +4 -0
  445. package/dist/runtime/gateway/index.d.ts.map +1 -1
  446. package/dist/runtime/gateway/index.js +2 -0
  447. package/dist/runtime/gateway/index.js.map +1 -1
  448. package/dist/runtime/gateway/non-tui-display-projector.d.ts +40 -0
  449. package/dist/runtime/gateway/non-tui-display-projector.d.ts.map +1 -0
  450. package/dist/runtime/gateway/non-tui-display-projector.js +166 -0
  451. package/dist/runtime/gateway/non-tui-display-projector.js.map +1 -0
  452. package/dist/runtime/gateway/signal-gateway-adapter.d.ts +1 -0
  453. package/dist/runtime/gateway/signal-gateway-adapter.d.ts.map +1 -1
  454. package/dist/runtime/gateway/signal-gateway-adapter.js +47 -4
  455. package/dist/runtime/gateway/signal-gateway-adapter.js.map +1 -1
  456. package/dist/runtime/gateway/slack-channel-adapter.d.ts +1 -0
  457. package/dist/runtime/gateway/slack-channel-adapter.d.ts.map +1 -1
  458. package/dist/runtime/gateway/slack-channel-adapter.js +93 -18
  459. package/dist/runtime/gateway/slack-channel-adapter.js.map +1 -1
  460. package/dist/runtime/gateway/telegram-gateway-adapter.d.ts +2 -0
  461. package/dist/runtime/gateway/telegram-gateway-adapter.d.ts.map +1 -1
  462. package/dist/runtime/gateway/telegram-gateway-adapter.js +61 -113
  463. package/dist/runtime/gateway/telegram-gateway-adapter.js.map +1 -1
  464. package/dist/runtime/gateway/whatsapp-gateway-adapter.d.ts +1 -0
  465. package/dist/runtime/gateway/whatsapp-gateway-adapter.d.ts.map +1 -1
  466. package/dist/runtime/gateway/whatsapp-gateway-adapter.js +49 -4
  467. package/dist/runtime/gateway/whatsapp-gateway-adapter.js.map +1 -1
  468. package/dist/runtime/interactive-automation/browser-session-resolver.d.ts +26 -0
  469. package/dist/runtime/interactive-automation/browser-session-resolver.d.ts.map +1 -0
  470. package/dist/runtime/interactive-automation/browser-session-resolver.js +75 -0
  471. package/dist/runtime/interactive-automation/browser-session-resolver.js.map +1 -0
  472. package/dist/runtime/interactive-automation/index.d.ts +2 -0
  473. package/dist/runtime/interactive-automation/index.d.ts.map +1 -1
  474. package/dist/runtime/interactive-automation/index.js +2 -0
  475. package/dist/runtime/interactive-automation/index.js.map +1 -1
  476. package/dist/runtime/interactive-automation/runtime-auth-handoff-store.d.ts +35 -0
  477. package/dist/runtime/interactive-automation/runtime-auth-handoff-store.d.ts.map +1 -0
  478. package/dist/runtime/interactive-automation/runtime-auth-handoff-store.js +125 -0
  479. package/dist/runtime/interactive-automation/runtime-auth-handoff-store.js.map +1 -0
  480. package/dist/runtime/permission-dialogue.d.ts +113 -0
  481. package/dist/runtime/permission-dialogue.d.ts.map +1 -0
  482. package/dist/runtime/permission-dialogue.js +82 -0
  483. package/dist/runtime/permission-dialogue.js.map +1 -0
  484. package/dist/runtime/run-spec/derive.d.ts +14 -14
  485. package/dist/runtime/run-spec/handoff.d.ts.map +1 -1
  486. package/dist/runtime/run-spec/handoff.js +33 -0
  487. package/dist/runtime/run-spec/handoff.js.map +1 -1
  488. package/dist/runtime/run-spec/types.d.ts +16 -16
  489. package/dist/runtime/session-registry/types.d.ts +12 -12
  490. package/dist/runtime/store/artifact-retention.d.ts +2 -0
  491. package/dist/runtime/store/artifact-retention.d.ts.map +1 -1
  492. package/dist/runtime/store/artifact-retention.js +24 -21
  493. package/dist/runtime/store/artifact-retention.js.map +1 -1
  494. package/dist/runtime/store/budget-store.d.ts +8 -8
  495. package/dist/runtime/store/evidence-ledger.d.ts.map +1 -1
  496. package/dist/runtime/store/evidence-ledger.js +39 -1
  497. package/dist/runtime/store/evidence-ledger.js.map +1 -1
  498. package/dist/runtime/store/evidence-types.d.ts +204 -204
  499. package/dist/runtime/store/experiment-queue-store.d.ts +20 -20
  500. package/dist/runtime/store/index.d.ts +2 -2
  501. package/dist/runtime/store/index.d.ts.map +1 -1
  502. package/dist/runtime/store/index.js +1 -1
  503. package/dist/runtime/store/index.js.map +1 -1
  504. package/dist/runtime/store/operator-handoff-store.d.ts +3 -3
  505. package/dist/runtime/store/reproducibility-manifest.d.ts +20 -20
  506. package/dist/runtime/store/runtime-operation-schemas.d.ts +95 -62
  507. package/dist/runtime/store/runtime-operation-schemas.d.ts.map +1 -1
  508. package/dist/runtime/store/runtime-operation-schemas.js +9 -0
  509. package/dist/runtime/store/runtime-operation-schemas.js.map +1 -1
  510. package/dist/runtime/store/runtime-paths.d.ts +2 -0
  511. package/dist/runtime/store/runtime-paths.d.ts.map +1 -1
  512. package/dist/runtime/store/runtime-paths.js +6 -0
  513. package/dist/runtime/store/runtime-paths.js.map +1 -1
  514. package/dist/runtime/store/runtime-schemas.d.ts +2256 -46
  515. package/dist/runtime/store/runtime-schemas.d.ts.map +1 -1
  516. package/dist/runtime/store/runtime-schemas.js +85 -0
  517. package/dist/runtime/store/runtime-schemas.js.map +1 -1
  518. package/dist/runtime/types/companion.d.ts +52 -52
  519. package/dist/runtime/types/daemon.d.ts +31 -31
  520. package/dist/tools/automation/InteractiveAutomationTools.d.ts +22 -2
  521. package/dist/tools/automation/InteractiveAutomationTools.d.ts.map +1 -1
  522. package/dist/tools/automation/InteractiveAutomationTools.js +75 -10
  523. package/dist/tools/automation/InteractiveAutomationTools.js.map +1 -1
  524. package/dist/tools/builtin/factory.d.ts +2 -1
  525. package/dist/tools/builtin/factory.d.ts.map +1 -1
  526. package/dist/tools/builtin/factory.js +6 -2
  527. package/dist/tools/builtin/factory.js.map +1 -1
  528. package/dist/tools/execution/MemorySaveTool/MemorySaveTool.d.ts +20 -20
  529. package/dist/tools/execution/RunAdapterTool/RunAdapterTool.d.ts +6 -0
  530. package/dist/tools/execution/RunAdapterTool/RunAdapterTool.d.ts.map +1 -1
  531. package/dist/tools/execution/RunAdapterTool/RunAdapterTool.js +2 -0
  532. package/dist/tools/execution/RunAdapterTool/RunAdapterTool.js.map +1 -1
  533. package/dist/tools/execution-orchestrator.d.ts +29 -0
  534. package/dist/tools/execution-orchestrator.d.ts.map +1 -0
  535. package/dist/tools/execution-orchestrator.js +153 -0
  536. package/dist/tools/execution-orchestrator.js.map +1 -0
  537. package/dist/tools/executor.d.ts +6 -0
  538. package/dist/tools/executor.d.ts.map +1 -1
  539. package/dist/tools/executor.js +48 -11
  540. package/dist/tools/executor.js.map +1 -1
  541. package/dist/tools/fs/ApplyPatchTool/ApplyPatchTool.d.ts.map +1 -1
  542. package/dist/tools/fs/ApplyPatchTool/ApplyPatchTool.js +130 -17
  543. package/dist/tools/fs/ApplyPatchTool/ApplyPatchTool.js.map +1 -1
  544. package/dist/tools/kaggle/KaggleExperimentTools.js +4 -3
  545. package/dist/tools/kaggle/KaggleExperimentTools.js.map +1 -1
  546. package/dist/tools/kaggle/KaggleSubmissionTools.js +6 -5
  547. package/dist/tools/kaggle/KaggleSubmissionTools.js.map +1 -1
  548. package/dist/tools/kaggle/KaggleWorkspacePrepareTool.js +6 -5
  549. package/dist/tools/kaggle/KaggleWorkspacePrepareTool.js.map +1 -1
  550. package/dist/tools/kaggle/paths.d.ts.map +1 -1
  551. package/dist/tools/kaggle/paths.js +12 -8
  552. package/dist/tools/kaggle/paths.js.map +1 -1
  553. package/dist/tools/mutation/TaskStopTool/TaskStopTool.d.ts.map +1 -1
  554. package/dist/tools/mutation/TaskStopTool/TaskStopTool.js +8 -0
  555. package/dist/tools/mutation/TaskStopTool/TaskStopTool.js.map +1 -1
  556. package/dist/tools/mutation/TaskUpdateTool/TaskUpdateTool.d.ts +8 -8
  557. package/dist/tools/mutation/TaskUpdateTool/TaskUpdateTool.d.ts.map +1 -1
  558. package/dist/tools/mutation/TaskUpdateTool/TaskUpdateTool.js +49 -7
  559. package/dist/tools/mutation/TaskUpdateTool/TaskUpdateTool.js.map +1 -1
  560. package/dist/tools/network/GitHubCliTool/GitHubCliTool.d.ts +4 -4
  561. package/dist/tools/network/McpStdioTool/McpStdioTool.d.ts +4 -4
  562. package/dist/tools/permission.d.ts +0 -1
  563. package/dist/tools/permission.d.ts.map +1 -1
  564. package/dist/tools/permission.js +9 -33
  565. package/dist/tools/permission.js.map +1 -1
  566. package/dist/tools/query/CodeReadContextTool/CodeReadContextTool.d.ts +4 -4
  567. package/dist/tools/query/CodeSearchRepairTool/CodeSearchRepairTool.d.ts +8 -8
  568. package/dist/tools/query/CodeSearchTool/CodeSearchTool.d.ts +4 -4
  569. package/dist/tools/query/MemoryRecallTool/MemoryRecallTool.d.ts +4 -4
  570. package/dist/tools/query/runtime-session-tools.d.ts +73 -5
  571. package/dist/tools/query/runtime-session-tools.d.ts.map +1 -1
  572. package/dist/tools/query/runtime-session-tools.js +114 -0
  573. package/dist/tools/query/runtime-session-tools.js.map +1 -1
  574. package/dist/tools/runtime/LongRunningRuntimeTools.d.ts +72 -54
  575. package/dist/tools/runtime/LongRunningRuntimeTools.d.ts.map +1 -1
  576. package/dist/tools/runtime/LongRunningRuntimeTools.js +4 -1
  577. package/dist/tools/runtime/LongRunningRuntimeTools.js.map +1 -1
  578. package/dist/tools/runtime/RunSpecHandoffTools.d.ts.map +1 -1
  579. package/dist/tools/runtime/RunSpecHandoffTools.js +162 -2
  580. package/dist/tools/runtime/RunSpecHandoffTools.js.map +1 -1
  581. package/dist/tools/runtime/SetupRuntimeControlTools.d.ts.map +1 -1
  582. package/dist/tools/runtime/SetupRuntimeControlTools.js +169 -17
  583. package/dist/tools/runtime/SetupRuntimeControlTools.js.map +1 -1
  584. package/dist/tools/system/EnvTool/EnvTool.d.ts +4 -4
  585. package/dist/tools/system/GitDiffTool/GitDiffTool.d.ts +4 -4
  586. package/dist/tools/system/GitLogTool/GitLogTool.d.ts +4 -4
  587. package/dist/tools/system/ShellCommandTool/ShellCommandTool.d.ts.map +1 -1
  588. package/dist/tools/system/ShellCommandTool/ShellCommandTool.js +8 -2
  589. package/dist/tools/system/ShellCommandTool/ShellCommandTool.js.map +1 -1
  590. package/dist/tools/system/ShellTool/ShellTool.d.ts.map +1 -1
  591. package/dist/tools/system/ShellTool/ShellTool.js +29 -11
  592. package/dist/tools/system/ShellTool/ShellTool.js.map +1 -1
  593. package/dist/tools/system/ShellTool/command-policy.d.ts +12 -8
  594. package/dist/tools/system/ShellTool/command-policy.d.ts.map +1 -1
  595. package/dist/tools/system/ShellTool/command-policy.js +412 -98
  596. package/dist/tools/system/ShellTool/command-policy.js.map +1 -1
  597. package/dist/tools/system/ShellTool/prompt.d.ts +1 -1
  598. package/dist/tools/system/ShellTool/prompt.d.ts.map +1 -1
  599. package/dist/tools/system/ShellTool/prompt.js +1 -1
  600. package/dist/tools/system/ShellTool/prompt.js.map +1 -1
  601. package/dist/tools/system/TestRunnerTool/TestRunnerTool.d.ts +1 -1
  602. package/dist/tools/system/TestRunnerTool/TestRunnerTool.d.ts.map +1 -1
  603. package/dist/tools/system/TestRunnerTool/TestRunnerTool.js +152 -8
  604. package/dist/tools/system/TestRunnerTool/TestRunnerTool.js.map +1 -1
  605. package/dist/tools/system/UpdatePlanTool/UpdatePlanTool.js +1 -1
  606. package/dist/tools/system/UpdatePlanTool/UpdatePlanTool.js.map +1 -1
  607. package/dist/tools/types.d.ts +36 -12
  608. package/dist/tools/types.d.ts.map +1 -1
  609. package/dist/tools/types.js +26 -3
  610. package/dist/tools/types.js.map +1 -1
  611. package/dist/tools/workspace-scope.d.ts +11 -0
  612. package/dist/tools/workspace-scope.d.ts.map +1 -0
  613. package/dist/tools/workspace-scope.js +77 -0
  614. package/dist/tools/workspace-scope.js.map +1 -0
  615. package/package.json +2 -2
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response-item.d.ts","sourceRoot":"","sources":["../../../../src/orchestrator/execution/agent-loop/response-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,KAAK,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,uBAAuB,CAAC;AAEtF,eAAO,MAAM,uBAAuB,2CAAyC,CAAC;AAE9E,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;EAK1C,CAAC;AAEH,eAAO,MAAM,mCAAmC;;;;;;;;;;;;EAI9C,CAAC;AAEH,eAAO,MAAM,kCAAkC;;;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MAAM,6BAA6B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mCAAmC,CAAC,CAAC;AAChG,MAAM,MAAM,4BAA4B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kCAAkC,CAAC,CAAC;AAC9F,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC;AAClF,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAChF,MAAM,MAAM,uBAAuB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,6BAA6B,CAAC,CAAC;AACpF,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAC9D,MAAM,MAAM,2BAA2B,GACnC,sBAAsB,GACtB,qBAAqB,GACrB,uBAAuB,CAAC;AAE5B,wBAAgB,yBAAyB,CACvC,OAAO,EAAE,MAAM,EACf,KAAK,CAAC,EAAE,qBAAqB,GAC5B,yBAAyB,CAM3B;AAED,wBAAgB,6BAA6B,CAAC,OAAO,EAAE,MAAM,GAAG,6BAA6B,CAK5F;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,iBAAiB,GAAG,4BAA4B,CAOlG;AAED,wBAAgB,sBAAsB,CAAC,KAAK,EAAE;IAC5C,IAAI,EAAE,4BAA4B,CAAC;IACnC,SAAS,EAAE,OAAO,CAAC;IACnB,MAAM,EAAE,UAAU,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB,GAAG,sBAAsB,CASzB"}
@@ -0,0 +1,104 @@
1
+ import { z } from "zod";
2
+ import { ToolResultSchema } from "../../../tools/types.js";
3
+ export const ResponseItemPhaseSchema = z.enum(["commentary", "final_answer"]);
4
+ export const AssistantTextResponseItemSchema = z.object({
5
+ type: z.literal("assistant_text"),
6
+ id: z.string().optional(),
7
+ content: z.string(),
8
+ phase: ResponseItemPhaseSchema.optional(),
9
+ });
10
+ export const ReasoningProgressResponseItemSchema = z.object({
11
+ type: z.literal("reasoning_progress"),
12
+ id: z.string().optional(),
13
+ content: z.string(),
14
+ });
15
+ export const FunctionToolCallResponseItemSchema = z.object({
16
+ type: z.literal("function_tool_call"),
17
+ id: z.string().min(1),
18
+ name: z.string().min(1),
19
+ arguments: z.unknown(),
20
+ });
21
+ export const ToolExecutionStateSchema = z.object({
22
+ status: z.enum(["executed", "not_executed"]),
23
+ reason: z.enum(["approval_denied", "permission_denied", "policy_blocked", "dry_run", "tool_error", "timed_out", "interrupted", "sandbox_required", "escalation_required", "stale_state"]).optional(),
24
+ message: z.string().optional(),
25
+ });
26
+ export const ToolErrorCodeSchema = z.enum([
27
+ "invalid_arguments",
28
+ "not_allowed",
29
+ "execution_failed",
30
+ ]);
31
+ export const ToolResultResponseItemSchema = z.object({
32
+ type: z.literal("tool_result"),
33
+ id: z.string().optional(),
34
+ callId: z.string().min(1),
35
+ toolName: z.string().min(1),
36
+ arguments: z.unknown(),
37
+ result: ToolResultSchema,
38
+ durationMs: z.number(),
39
+ });
40
+ export const ToolErrorResponseItemSchema = z.object({
41
+ type: z.literal("tool_error"),
42
+ id: z.string().optional(),
43
+ callId: z.string().min(1),
44
+ toolName: z.string().min(1),
45
+ arguments: z.unknown(),
46
+ error: z.object({
47
+ code: ToolErrorCodeSchema,
48
+ message: z.string(),
49
+ details: z.unknown().optional(),
50
+ }),
51
+ result: ToolResultSchema.optional(),
52
+ execution: ToolExecutionStateSchema.optional(),
53
+ durationMs: z.number(),
54
+ });
55
+ export const UnknownToolResponseItemSchema = z.object({
56
+ type: z.literal("unknown_tool"),
57
+ id: z.string().optional(),
58
+ callId: z.string().min(1),
59
+ toolName: z.string().min(1),
60
+ arguments: z.unknown(),
61
+ message: z.string(),
62
+ execution: ToolExecutionStateSchema,
63
+ durationMs: z.number(),
64
+ });
65
+ export const ResponseItemSchema = z.discriminatedUnion("type", [
66
+ AssistantTextResponseItemSchema,
67
+ ReasoningProgressResponseItemSchema,
68
+ FunctionToolCallResponseItemSchema,
69
+ ToolResultResponseItemSchema,
70
+ ToolErrorResponseItemSchema,
71
+ UnknownToolResponseItemSchema,
72
+ ]);
73
+ export function assistantTextResponseItem(content, phase) {
74
+ return {
75
+ type: "assistant_text",
76
+ content,
77
+ ...(phase ? { phase } : {}),
78
+ };
79
+ }
80
+ export function reasoningProgressResponseItem(content) {
81
+ return {
82
+ type: "reasoning_progress",
83
+ content,
84
+ };
85
+ }
86
+ export function functionToolCallResponseItem(call) {
87
+ return {
88
+ type: "function_tool_call",
89
+ id: call.id,
90
+ name: call.name,
91
+ arguments: call.input,
92
+ };
93
+ }
94
+ export function toolResultResponseItem(input) {
95
+ return {
96
+ type: "tool_result",
97
+ callId: input.call.id,
98
+ toolName: input.call.name,
99
+ arguments: input.arguments,
100
+ result: input.result,
101
+ durationMs: input.durationMs,
102
+ };
103
+ }
104
+ //# sourceMappingURL=response-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"response-item.js","sourceRoot":"","sources":["../../../../src/orchestrator/execution/agent-loop/response-item.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAI3D,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,YAAY,EAAE,cAAc,CAAC,CAAC,CAAC;AAE9E,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,MAAM,CAAC;IACtD,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,gBAAgB,CAAC;IACjC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,KAAK,EAAE,uBAAuB,CAAC,QAAQ,EAAE;CAC1C,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAA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U,EAAE,KAAK,CAAC,UAAU;KAC7B,CAAC;AACJ,CAAC"}
@@ -1,14 +1,16 @@
1
+ import type { Goal } from "../../../base/types/goal.js";
1
2
  import type { Task } from "../../../base/types/task.js";
2
3
  import type { ToolCallContext } from "../../../tools/types.js";
3
4
  import type { AgentLoopBudget } from "./agent-loop-budget.js";
4
- import type { AgentLoopModelInfo, AgentLoopModelRef } from "./agent-loop-model.js";
5
+ import type { AgentLoopModelInfo, AgentLoopModelRef, AgentLoopReasoningEffort } from "./agent-loop-model.js";
5
6
  import type { AgentLoopSession } from "./agent-loop-session.js";
6
7
  import type { AgentLoopSessionState } from "./agent-loop-session-state.js";
7
8
  import type { AgentLoopToolPolicy, AgentLoopTurnContext } from "./agent-loop-turn-context.js";
8
9
  import { type TaskAgentLoopOutput } from "./task-agent-loop-result.js";
9
- import type { SubagentRole } from "./execution-policy.js";
10
+ import type { ExecutionPolicy, SubagentRole } from "./execution-policy.js";
10
11
  export interface TaskAgentLoopContextInput {
11
12
  task: Task;
13
+ artifactGoal?: Pick<Goal, "constraints"> | null;
12
14
  model: AgentLoopModelRef;
13
15
  modelInfo: AgentLoopModelInfo;
14
16
  session: AgentLoopSession;
@@ -23,6 +25,9 @@ export interface TaskAgentLoopContextInput {
23
25
  resumeState?: AgentLoopSessionState;
24
26
  abortSignal?: AbortSignal;
25
27
  role?: SubagentRole;
28
+ profileName?: string;
29
+ reasoningEffort?: AgentLoopReasoningEffort;
30
+ executionPolicy?: ExecutionPolicy;
26
31
  }
27
32
  export declare function buildTaskAgentLoopTurnContext(input: TaskAgentLoopContextInput): AgentLoopTurnContext<TaskAgentLoopOutput>;
28
33
  //# sourceMappingURL=task-agent-loop-context.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"task-agent-loop-context.d.ts","sourceRoot":"","sources":["../../../../src/orchestrator/execution/agent-loop/task-agent-loop-context.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,6BAA6B,CAAC;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AC;IACjC,eAAe,CAAC,EAAE,OAAO,CAAC,eAAe,CAAC,CAAC;IAC3C,WAAW,CAAC,EAAE,qBAAqB,CAAC;IACpC,WAAW,CAAC,EAAE,WAAW,CAAC;IAC1B,IAAI,CAAC,EAAE,YAAY,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,wBAAwB,CAAC;IAC3C,eAAe,CAAC,EAAE,eAAe,CAAC;CACnC;AAED,wBAAgB,6BAA6B,CAC3C,KAAK,EAAE,yBAAyB,GAC/B,oBAAoB,CAAC,mBAAmB,CAAC,CAqG3C"}
@@ -4,12 +4,32 @@ import { withDefaultBudget } from "./agent-loop-turn-context.js";
4
4
  import { TaskAgentLoopOutputSchema } from "./task-agent-loop-result.js";
5
5
  import { buildAgentLoopBaseInstructions } from "./agent-loop-prompts.js";
6
6
  import { isTaskRelevantVerificationCommand } from "./task-agent-loop-verification.js";
7
+ import { verifyTaskArtifactContract } from "../task/task-artifact-contract.js";
8
+ function formatArtifactContractSection(task) {
9
+ if (!task.artifact_contract)
10
+ return "";
11
+ return [
12
+ "Artifact contract:",
13
+ JSON.stringify(task.artifact_contract, null, 2),
14
+ "If this task creates a --check-contract mode or equivalent validator, it must validate the exact required_artifacts, required_fields, and field_types above. The metrics writer must emit those exact keys before status=done.",
15
+ "Do not make --check-contract reject otherwise valid artifacts only because they predate the --check-contract process. PulSeed enforces fresh_after_task_start relative to the task start time.",
16
+ ].join("\n");
17
+ }
7
18
  export function buildTaskAgentLoopTurnContext(input) {
8
19
  const cwd = input.cwd ?? processCwd();
20
+ const executionPolicy = input.toolCallContext?.executionPolicy ?? input.executionPolicy;
21
+ const verificationPlan = {
22
+ requiredCommands: input.task.success_criteria
23
+ .filter((criterion) => criterion.is_blocking)
24
+ .map((criterion) => criterion.verification_method.trim())
25
+ .filter(Boolean),
26
+ };
9
27
  const baseSystemPrompt = buildAgentLoopBaseInstructions({
10
28
  mode: "task",
11
29
  extraRules: [
12
30
  "When you return status=done, include concrete completionEvidence.",
31
+ "Final JSON status must be one of done, blocked, partial, or failed. Do not use completed.",
32
+ "Final JSON completionEvidence, verificationHints, blockers, and filesChanged must be arrays of strings, not objects.",
13
33
  "If files changed or you claim files changed, run at least one focused verification command through tools before the final answer.",
14
34
  "Do not return status=done while blockers remain.",
15
35
  ],
@@ -19,6 +39,7 @@ export function buildTaskAgentLoopTurnContext(input) {
19
39
  `Task: ${input.task.work_description}`,
20
40
  `Approach: ${input.task.approach}`,
21
41
  `Success criteria:\n${input.task.success_criteria.map((c) => `- ${c.description} (verify: ${c.verification_method})`).join("\n")}`,
42
+ formatArtifactContractSection(input.task),
22
43
  input.workspaceContext ? `Workspace context:\n${input.workspaceContext}` : "",
23
44
  input.knowledgeContext ? `Knowledge context:\n${input.knowledgeContext}` : "",
24
45
  "Return final output as JSON matching the required schema.",
@@ -28,9 +49,12 @@ export function buildTaskAgentLoopTurnContext(input) {
28
49
  turnId: randomUUID(),
29
50
  goalId: input.task.goal_id,
30
51
  taskId: input.task.id,
52
+ ...(input.profileName ? { profileName: input.profileName } : {}),
31
53
  cwd,
32
54
  model: input.model,
33
55
  modelInfo: input.modelInfo,
56
+ ...(input.reasoningEffort ? { reasoningEffort: input.reasoningEffort } : {}),
57
+ ...(executionPolicy ? { executionPolicy } : {}),
34
58
  messages: [
35
59
  {
36
60
  role: "system",
@@ -41,7 +65,8 @@ export function buildTaskAgentLoopTurnContext(input) {
41
65
  outputSchema: TaskAgentLoopOutputSchema,
42
66
  budget: withDefaultBudget(input.budget),
43
67
  toolPolicy: input.toolPolicy ?? {},
44
- completionValidator: ({ output, changedFiles, commandResults }) => {
68
+ verificationPlan,
69
+ completionValidator: async ({ output, changedFiles, commandResults }) => {
45
70
  if (output.status !== "done")
46
71
  return { ok: true, reasons: [] };
47
72
  const reasons = [];
@@ -61,6 +86,12 @@ export function buildTaskAgentLoopTurnContext(input) {
61
86
  if (claimedChangedFiles.length > 0 && runtimeVerifiedCommands.length < 1) {
62
87
  reasons.push(`You claimed changed files (${claimedChangedFiles.slice(0, 5).join(", ")}) but no successful runtime verification command was observed.`);
63
88
  }
89
+ const artifactVerification = await verifyTaskArtifactContract(input.task, cwd, {
90
+ goal: input.artifactGoal,
91
+ });
92
+ if (artifactVerification.applicable && !artifactVerification.passed) {
93
+ reasons.push(artifactVerification.description);
94
+ }
64
95
  return {
65
96
  ok: reasons.length === 0,
66
97
  reasons,
@@ -72,6 +103,7 @@ export function buildTaskAgentLoopTurnContext(input) {
72
103
  trustBalance: 0,
73
104
  preApproved: true,
74
105
  approvalFn: async () => false,
106
+ ...(executionPolicy ? { executionPolicy } : {}),
75
107
  agentRole: input.role,
76
108
  ...input.toolCallContext,
77
109
  },
@@ -1 +1 @@
1
- {"version":3,"file":"task-agent-loop-context.js","sourceRoot":"","sources":["../../../../src/orchestrator/execution/agent-loop/task-agent-loop-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,GAAG,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AASjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,yBAAyB,EAA4B,MAAM,6BAA6B,CAAC;AAClG,OAAO,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAE,iCAAiC,EAAE,MAAM,mCAAmC,CAAC;AAqBtF,MAAM,UAAU,6BAA6B,CAC3C,KAAgC;IAEhC,MAAM,GAAG,GAAG,KAAK,CAAC,GAAG,IAAI,UAAU,EAAE,CAAC;IACtC,MAAM,gBAAgB,GAAG,8BAA8B,CAAC;QACtD,IAAI,EAAE,MAAM;QACZ,UAAU,EAAE;YACV,mEAAmE;YACnE,mIAAmI;YACnI,kDAAkD;SACnD;QACD,IAAI,EAAE,KAAK,CAAC,IAAI;KACjB,CAAC,CAAC;IACH,MAAM,UAAU,GAAG,KAAK,CAAC,UAAU,IAAI;QACrC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,IAAI,uBAAuB,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;gBACzE,OAAO,CAAC,IAAI,CAAC,8BAA8B,mBAAmB,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,gEAAgE,CAAC,CAAC;YACzJ,CAAC;YAED,OAAO;gBACL,EAAE,EAAE,OAAO,CAAC,MAAM,KAAK,CAAC;gBACxB,OAAO;aACR,CAAC;QACJ,CAAC;QACD,eAAe,EAAE;YACf,GAAG;YACH,MAAM,EAAE,KAAK,CAAC,IAAI,CAAC,OAAO;YAC1B,YAAY,EAAE,CAAC;YACf,WAAW,EAAE,IAAI;YACjB,UAAU,EAAE,KAAK,IAAI,EAAE,CAAC,KAAK;YAC7B,SAAS,EAAE,KAAK,CAAC,IAAI;YACrB,GAAG,KAAK,CAAC,eAAe;SACzB;QACD,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAChE,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACjE,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"task-agent-loop-context.js","sourceRoot":"","sources":["../../../../src/orchestrator/execution/agent-loop/task-agent-loop-context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,GAAG,IAAI,UAAU,EAAE,MAAM,cAAc,CAAC;AAUjD,OAAO,EAAE,iBAAiB,EAAE,MAAM,8BAA8B,CAAC;AACjE,OAAO,EAAE,yBAAyB,EAA4B,MAAM,6BAA6B,CAAC;AAClG,OAAO,EAAE,8BAA8B,EAAE,MAAM,yBAAyB,CAAC;AACzE,OAAO,EAAE,iCAAiC,EAAE,MAAM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AAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;QAChE,GAAG,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,EAAE,WAAW,EAAE,KAAK,CAAC,WAAW,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;KACjE,CAAC;AACJ,CAAC"}
@@ -1,29 +1,29 @@
1
1
  import { z } from "zod";
2
2
  import type { AgentResult } from "../adapter-layer.js";
3
- import type { AgentLoopResult } from "./agent-loop-result.js";
4
- export declare const TaskAgentLoopOutputSchema: z.ZodObject<{
3
+ import type { AgentLoopResult, AgentLoopWorkspaceInfo } from "./agent-loop-result.js";
4
+ export declare const TaskAgentLoopOutputSchema: z.ZodEffects<z.ZodObject<{
5
5
  status: z.ZodEnum<["done", "blocked", "partial", "failed"]>;
6
6
  finalAnswer: z.ZodString;
7
7
  summary: z.ZodDefault<z.ZodString>;
8
- filesChanged: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
8
+ filesChanged: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], unknown>>;
9
9
  testsRun: z.ZodDefault<z.ZodArray<z.ZodObject<{
10
10
  command: z.ZodString;
11
11
  passed: z.ZodBoolean;
12
12
  outputSummary: z.ZodString;
13
13
  }, "strip", z.ZodTypeAny, {
14
- command: string;
15
14
  passed: boolean;
15
+ command: string;
16
16
  outputSummary: string;
17
17
  }, {
18
- command: string;
19
18
  passed: boolean;
19
+ command: string;
20
20
  outputSummary: string;
21
21
  }>, "many">>;
22
- completionEvidence: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
23
- verificationHints: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
24
- blockers: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
22
+ completionEvidence: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], unknown>>;
23
+ verificationHints: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], unknown>>;
24
+ blockers: z.ZodDefault<z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], unknown>>;
25
25
  }, "strip", z.ZodTypeAny, {
26
- status: "partial" | "failed" | "blocked" | "done";
26
+ status: "partial" | "blocked" | "failed" | "done";
27
27
  summary: string;
28
28
  filesChanged: string[];
29
29
  blockers: string[];
@@ -31,24 +31,39 @@ export declare const TaskAgentLoopOutputSchema: z.ZodObject<{
31
31
  verificationHints: string[];
32
32
  finalAnswer: string;
33
33
  testsRun: {
34
- command: string;
35
34
  passed: boolean;
35
+ command: string;
36
36
  outputSummary: string;
37
37
  }[];
38
38
  }, {
39
- status: "partial" | "failed" | "blocked" | "done";
39
+ status: "partial" | "blocked" | "failed" | "done";
40
40
  finalAnswer: string;
41
41
  summary?: string | undefined;
42
- filesChanged?: string[] | undefined;
43
- blockers?: string[] | undefined;
44
- completionEvidence?: string[] | undefined;
45
- verificationHints?: string[] | undefined;
42
+ filesChanged?: unknown;
43
+ blockers?: unknown;
44
+ completionEvidence?: unknown;
45
+ verificationHints?: unknown;
46
46
  testsRun?: {
47
- command: string;
48
47
  passed: boolean;
48
+ command: string;
49
49
  outputSummary: string;
50
50
  }[] | undefined;
51
- }>;
51
+ }>, {
52
+ status: "partial" | "blocked" | "failed" | "done";
53
+ summary: string;
54
+ filesChanged: string[];
55
+ blockers: string[];
56
+ completionEvidence: string[];
57
+ verificationHints: string[];
58
+ finalAnswer: string;
59
+ testsRun: {
60
+ passed: boolean;
61
+ command: string;
62
+ outputSummary: string;
63
+ }[];
64
+ }, unknown>;
52
65
  export type TaskAgentLoopOutput = z.infer<typeof TaskAgentLoopOutputSchema>;
66
+ export declare function requiresIsolatedWorkspaceHandoff(workspace: Pick<AgentLoopWorkspaceInfo, "isolated" | "disposition"> | undefined): boolean;
67
+ export declare function collectTaskAgentLoopNotExecutedBlockers(result: AgentLoopResult<TaskAgentLoopOutput>): string[];
53
68
  export declare function taskAgentLoopResultToAgentResult(result: AgentLoopResult<TaskAgentLoopOutput>): AgentResult;
54
69
  //# sourceMappingURL=task-agent-loop-result.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"task-agent-loop-result.d.ts","sourceRoot":"","sources":["../../../../src/orchestrator/execution/agent-loop/task-agent-loop-result.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,wBAAwB,CAAC;AAE9D,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAapC,CAAC;AAEH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,wBAAgB,gCAAgC,CAC9C,MAAM,EAAE,eAAe,CAAC,mBAAmB,CAAC,GAC3C,WAAW,CA2Db"}
1
+ {"version":3,"file":"task-agent-loop-result.d.ts","sourceRoot":"","sources":["../../../../src/orchestrator/execution/agent-loop/task-agent-loop-result.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,KAAK,EAAE,eAAe,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AAoDtF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;WAanC,CAAC;AAEJ,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AA4C5E,wBAAgB,gCAAgC,CAC9C,SAAS,EAAE,IAAI,CAAC,sBAAsB,EAAE,UAAU,GAAG,aAAa,CAAC,GAAG,SAAS,GAC9E,OAAO,CAET;AAUD,wBAAgB,uCAAuC,CACrD,MAAM,EAAE,eAAe,CAAC,mBAAmB,CAAC,GAC3C,MAAM,EAAE,CAgDV;AASD,wBAAgB,gCAAgC,CAC9C,MAAM,EAAE,eAAe,CAAC,mBAAmB,CAAC,GAC3C,WAAW,CAmFb"}
@@ -1,41 +1,193 @@
1
1
  import { z } from "zod";
2
- export const TaskAgentLoopOutputSchema = z.object({
2
+ import * as path from "node:path";
3
+ function isRecord(value) {
4
+ return Boolean(value) && typeof value === "object" && !Array.isArray(value);
5
+ }
6
+ function normalizeStatus(value) {
7
+ return value === "completed" ? "done" : value;
8
+ }
9
+ function normalizeStringArray(value) {
10
+ if (!Array.isArray(value))
11
+ return value;
12
+ return value.map((item) => {
13
+ if (typeof item === "string")
14
+ return item;
15
+ if (item === null || item === undefined)
16
+ return "";
17
+ if (isRecord(item)) {
18
+ const parts = [
19
+ typeof item.type === "string" ? item.type : "",
20
+ typeof item.command === "string" ? item.command : "",
21
+ typeof item.status === "string" ? item.status : "",
22
+ typeof item.summary === "string" ? item.summary : "",
23
+ typeof item.output === "string" ? item.output : "",
24
+ ].filter((part) => part.trim().length > 0);
25
+ if (parts.length > 0)
26
+ return parts.join("; ");
27
+ }
28
+ try {
29
+ return JSON.stringify(item);
30
+ }
31
+ catch {
32
+ return String(item);
33
+ }
34
+ }).filter((item) => item.trim().length > 0);
35
+ }
36
+ function normalizeTaskAgentLoopOutput(value) {
37
+ if (!isRecord(value))
38
+ return value;
39
+ const normalized = { ...value };
40
+ normalized.status = normalizeStatus(normalized.status);
41
+ normalized.finalAnswer ??= normalized.final_answer ?? normalized.summary;
42
+ normalized.filesChanged ??= normalized.files_changed ?? normalized.changed_files;
43
+ normalized.testsRun ??= normalized.tests_run;
44
+ normalized.completionEvidence ??= normalized.completion_evidence;
45
+ normalized.verificationHints ??= normalized.verification_hints;
46
+ normalized.completionEvidence = normalizeStringArray(normalized.completionEvidence);
47
+ normalized.verificationHints = normalizeStringArray(normalized.verificationHints);
48
+ normalized.blockers = normalizeStringArray(normalized.blockers);
49
+ normalized.filesChanged = normalizeStringArray(normalized.filesChanged);
50
+ return normalized;
51
+ }
52
+ const StringArraySchema = z.preprocess(normalizeStringArray, z.array(z.string())).default([]);
53
+ export const TaskAgentLoopOutputSchema = z.preprocess(normalizeTaskAgentLoopOutput, z.object({
3
54
  status: z.enum(["done", "blocked", "partial", "failed"]),
4
55
  finalAnswer: z.string(),
5
56
  summary: z.string().default(""),
6
- filesChanged: z.array(z.string()).default([]),
57
+ filesChanged: StringArraySchema,
7
58
  testsRun: z.array(z.object({
8
59
  command: z.string(),
9
60
  passed: z.boolean(),
10
61
  outputSummary: z.string(),
11
62
  })).default([]),
12
- completionEvidence: z.array(z.string()).default([]),
13
- verificationHints: z.array(z.string()).default([]),
14
- blockers: z.array(z.string()).default([]),
15
- });
63
+ completionEvidence: StringArraySchema,
64
+ verificationHints: StringArraySchema,
65
+ blockers: StringArraySchema,
66
+ }));
67
+ function isSafeRelativeArtifact(filePath) {
68
+ const trimmed = filePath.trim();
69
+ if (!trimmed || trimmed.includes("\0") || path.isAbsolute(trimmed))
70
+ return false;
71
+ const segments = trimmed.replace(/\\/g, "/").split("/");
72
+ return !segments.includes("..");
73
+ }
74
+ function collectAgentLoopChangedPaths(result) {
75
+ const applyPatchArtifactPaths = (result.toolResults ?? []).flatMap((entry) => {
76
+ if (!entry.success || entry.toolName !== "apply_patch" || entry.checkOnly === true)
77
+ return [];
78
+ return (entry.artifacts ?? []).map((artifact) => artifact.trim()).filter(isSafeRelativeArtifact);
79
+ });
80
+ return [
81
+ ...new Set([
82
+ ...(result.output?.filesChanged ?? []),
83
+ ...result.changedFiles,
84
+ ...applyPatchArtifactPaths,
85
+ ]),
86
+ ];
87
+ }
88
+ function isBlockingNotExecutedReason(reason) {
89
+ return reason !== "dry_run";
90
+ }
91
+ function formatNotExecutedDetail(input) {
92
+ const reason = input.reason ? ` (${input.reason})` : "";
93
+ const command = input.command ? `: ${input.command}` : "";
94
+ const cwd = input.cwd ? ` in ${input.cwd}` : "";
95
+ const message = input.message?.trim() ? `. ${input.message.trim()}` : "";
96
+ return `${input.kind} ${input.name} was not executed${reason}${cwd}${command}${message}`;
97
+ }
98
+ export function requiresIsolatedWorkspaceHandoff(workspace) {
99
+ return workspace?.isolated === true && workspace.disposition === "handoff_required";
100
+ }
101
+ function formatIsolatedWorkspaceHandoffBlocker(workspace) {
102
+ return `Isolated agent loop worktree has unintegrated changes; completion requires operator handoff: ${workspace.executionCwd}`;
103
+ }
104
+ function entrySequence(entry, fallbackIndex) {
105
+ return entry.sequence ?? fallbackIndex;
106
+ }
107
+ export function collectTaskAgentLoopNotExecutedBlockers(result) {
108
+ const toolResults = result.toolResults ?? [];
109
+ const lastSuccessfulSequence = Math.max(-1, ...result.commandResults
110
+ .map((entry, index) => ({ entry, index }))
111
+ .filter(({ entry }) => entry.success)
112
+ .map(({ entry, index }) => entrySequence(entry, index)), ...toolResults
113
+ .map((entry, index) => ({ entry, index }))
114
+ .filter(({ entry }) => entry.success)
115
+ .map(({ entry, index }) => entrySequence(entry, index)));
116
+ const commandBlockers = result.commandResults
117
+ .map((entry, index) => ({ entry, index }))
118
+ .filter(({ entry, index }) => entrySequence(entry, index) > lastSuccessfulSequence
119
+ && entry.execution?.status === "not_executed"
120
+ && isBlockingNotExecutedReason(entry.execution.reason))
121
+ .map(({ entry }) => formatNotExecutedDetail({
122
+ kind: "Command",
123
+ name: entry.toolName,
124
+ reason: entry.execution?.reason,
125
+ message: entry.execution?.message || entry.outputSummary,
126
+ command: entry.command,
127
+ cwd: entry.cwd,
128
+ }));
129
+ const commandToolNames = new Set(result.commandResults
130
+ .filter((entry) => entry.execution?.status === "not_executed")
131
+ .map((entry) => entry.toolName));
132
+ const toolBlockers = toolResults
133
+ .map((entry, index) => ({ entry, index }))
134
+ .filter(({ entry, index }) => entrySequence(entry, index) > lastSuccessfulSequence
135
+ && entry.execution?.status === "not_executed"
136
+ && isBlockingNotExecutedReason(entry.execution.reason)
137
+ && !commandToolNames.has(entry.toolName))
138
+ .map(({ entry }) => formatNotExecutedDetail({
139
+ kind: "Tool",
140
+ name: entry.toolName,
141
+ reason: entry.execution?.reason,
142
+ message: entry.execution?.message || entry.outputSummary,
143
+ }));
144
+ return [...new Set([...commandBlockers, ...toolBlockers])];
145
+ }
146
+ function collectTaskAgentLoopPolicyBlockedBlockers(result) {
147
+ return collectTaskAgentLoopNotExecutedBlockers(result)
148
+ .filter((blocker) => blocker.includes("(policy_blocked)"));
149
+ }
16
150
  export function taskAgentLoopResultToAgentResult(result) {
17
- const done = result.success && result.output?.status === "done";
151
+ const notExecutedBlockers = collectTaskAgentLoopNotExecutedBlockers(result);
152
+ const policyBlockedBlockers = collectTaskAgentLoopPolicyBlockedBlockers(result);
153
+ const workspaceHandoffBlockers = requiresIsolatedWorkspaceHandoff(result.workspace)
154
+ ? [formatIsolatedWorkspaceHandoffBlocker(result.workspace)]
155
+ : [];
156
+ const blockers = [
157
+ ...(result.output?.blockers ?? []),
158
+ ...notExecutedBlockers,
159
+ ...workspaceHandoffBlockers,
160
+ ];
161
+ const done = result.success && result.output?.status === "done" && blockers.length === 0;
162
+ const blocked = result.success && result.output?.status === "blocked";
18
163
  const runtimeVerificationCommands = result.commandResults.filter((command) => command.evidenceEligible && command.relevantToTask !== false);
19
- const fallbackOutput = result.output?.finalAnswer
20
- ?? result.finalText
21
- ?? result.output?.blockers.join("; ")
22
- ?? result.stopReason;
164
+ const filesChangedPaths = collectAgentLoopChangedPaths(result);
165
+ const blockerOutput = blockers.join("; ");
166
+ const policyBlocked = policyBlockedBlockers.length > 0;
167
+ const fallbackOutput = done
168
+ ? result.output?.finalAnswer ?? result.finalText ?? result.stopReason
169
+ : blockerOutput || result.output?.finalAnswer || result.finalText || result.stopReason;
23
170
  return {
24
171
  success: done,
25
172
  output: fallbackOutput,
26
- error: done ? null : result.output?.blockers.join("; ") || result.finalText || result.stopReason,
173
+ error: done ? null : blockerOutput || result.finalText || result.stopReason,
174
+ structuredOutput: result.output ?? undefined,
27
175
  exit_code: null,
28
176
  elapsed_ms: result.elapsedMs,
29
177
  stopped_reason: result.stopReason === "timeout" ? "timeout" :
30
178
  result.stopReason === "cancelled" ? "cancelled" :
31
- done ? "completed" : "error",
32
- filesChanged: result.changedFiles.length > 0 || (result.output ? result.output.filesChanged.length > 0 : result.filesChanged),
33
- filesChangedPaths: [...new Set([...(result.output?.filesChanged ?? []), ...result.changedFiles])],
179
+ policyBlocked ? "policy_blocked" :
180
+ blocked ? "blocked" :
181
+ done ? "completed" : "error",
182
+ filesChanged: filesChangedPaths.length > 0 || Boolean(result.filesChanged),
183
+ filesChangedPaths,
34
184
  agentLoop: {
35
185
  traceId: result.traceId,
36
186
  sessionId: result.sessionId,
37
187
  turnId: result.turnId,
38
188
  stopReason: result.stopReason,
189
+ ...(result.failureReason ? { failureReason: result.failureReason } : {}),
190
+ ...(result.failureDetail ? { failureDetail: result.failureDetail } : {}),
39
191
  modelTurns: result.modelTurns,
40
192
  toolCalls: result.toolCalls,
41
193
  usage: result.usage,
@@ -49,8 +201,10 @@ export function taskAgentLoopResultToAgentResult(result) {
49
201
  verificationHints: [
50
202
  ...(result.output?.verificationHints ?? []),
51
203
  ...runtimeVerificationCommands.filter((command) => !command.success).map((command) => `failed command: ${command.command}`),
204
+ ...notExecutedBlockers,
205
+ ...workspaceHandoffBlockers,
52
206
  ],
53
- filesChangedPaths: [...new Set([...(result.output?.filesChanged ?? []), ...result.changedFiles])],
207
+ filesChangedPaths,
54
208
  ...(result.workspace
55
209
  ? {
56
210
  requestedCwd: result.workspace.requestedCwd,
@@ -58,6 +212,8 @@ export function taskAgentLoopResultToAgentResult(result) {
58
212
  isolatedWorkspace: result.workspace.isolated,
59
213
  workspaceCleanupStatus: result.workspace.cleanupStatus,
60
214
  workspaceCleanupReason: result.workspace.cleanupReason,
215
+ workspaceDirty: result.workspace.dirty,
216
+ workspaceDisposition: result.workspace.disposition,
61
217
  }
62
218
  : {}),
63
219
  ...(result.executionPolicy
@@ -67,6 +223,8 @@ export function taskAgentLoopResultToAgentResult(result) {
67
223
  networkAccess: result.executionPolicy.networkAccess,
68
224
  }
69
225
  : {}),
226
+ ...(typeof result.activeBudgetMs === "number" ? { activeBudgetMs: result.activeBudgetMs } : {}),
227
+ ...(typeof result.generatedEstimateMs === "number" ? { generatedEstimateMs: result.generatedEstimateMs } : {}),
70
228
  },
71
229
  };
72
230
  }
@@ -1 +1 @@
1
- {"version":3,"file":"task-agent-loop-result.js","sourceRoot":"","sources":["../../../../src/orchestrator/execution/agent-loop/task-agent-loop-result.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,MAAM,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,QAAQ,CAAC,CAAC;IACxD,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,CAAC;IAC/B,YAAY,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IAC7C,QAAQ,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAAC;QACzB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;QACnB,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;QACnB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;KAC1B,CAAC,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACf,kBAAkB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,OAAO,CAAC,EAAE,CAAC;IACnD,iBAAiB,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,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AAG,2BAA2B,CAAC,MAAM,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,GAAG,CAAC,CAAC,OAAO,EAAE,EAAE,CAAC,mBAAmB,OAAO,CAAC,OAAO,EAAE,CAAC;aAC5H;YACD,iBAAiB,EAAE,CAAC,GAAG,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,MAAM,CAAC,MAAM,EAAE,YAAY,IAAI,EAAE,CAAC,EAAE,GAAG,MAAM,CAAC,YAAY,CAAC,CAAC,CAAC;YACjG,GAAG,CAAC,MAAM,CAAC,SAAS;gBAClB,CAAC,CAAC;oBACE,YAAY,EAAE,MAAM,CAAC,SAAS,CAAC,YAAY;oBAC3C,YAAY,EAAE,MAAM,CAAC,SAAS,CAAC,YAAY;oBAC3C,iBAAiB,EAAE,MAAM,CAAC,SAAS,CAAC,QAAQ;oBAC5C,sBAAsB,EAAE,MAAM,CAAC,SAAS,CAAC,aAAa;oBACtD,sBAAsB,EAAE,MAAM,CAAC,SAAS,CAAC,aAAa;iBACvD;gBACH,CAAC,CAAC,EAAE,CAAC;YACP,GAAG,CAAC,MAAM,CAAC,eAAe;gBACxB,CAAC,CAAC;oBACE,WAAW,EAAE,MAAM,CAAC,eAAe,CAAC,WAAW;oBAC/C,cAAc,EAAE,MAAM,CAAC,eAAe,CAAC,cAAc;oBACrD,aAAa,EAAE,MAAM,CAAC,eAAe,CAAC,aAAa;iBACpD;gBACH,CAAC,CAAC,EAAE,CAAC;SACR;KACF,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"task-agent-loop-result.js","sourceRoot":"","sources":["../../../../src/orchestrator/execution/agent-loop/task-agent-loop-result.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,KAAK,IAAI,MAAM,WAAW,CAAC;AAIlC,SAAS,QAAQ,CAAC,KAAc;IAC9B,OAAO,OAAO,CAAC,KAAK,CAAC,I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