@vercel/factory 0.0.13 → 0.0.15

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 (458) hide show
  1. package/README.md +307 -1
  2. package/dist/agent-routes.d.mts +69 -0
  3. package/dist/agent-routes.mjs +64 -0
  4. package/dist/agent-routes.mjs.map +1 -0
  5. package/dist/api-contracts.d.mts +1749 -0
  6. package/dist/api-contracts.mjs +118 -0
  7. package/dist/api-contracts.mjs.map +1 -0
  8. package/dist/api-images.d.mts +30 -0
  9. package/dist/api-images.mjs +28 -0
  10. package/dist/api-images.mjs.map +1 -0
  11. package/dist/api-task-graph.mjs +57 -0
  12. package/dist/api-task-graph.mjs.map +1 -0
  13. package/dist/api.d.mts +77 -0
  14. package/dist/api.mjs +1087 -0
  15. package/dist/api.mjs.map +1 -0
  16. package/dist/approval-access.d.mts +39 -0
  17. package/dist/approval-access.mjs +62 -0
  18. package/dist/approval-access.mjs.map +1 -0
  19. package/dist/approval-contracts.d.mts +692 -0
  20. package/dist/approval-contracts.mjs +27 -0
  21. package/dist/approval-contracts.mjs.map +1 -0
  22. package/dist/approval.d.mts +49 -0
  23. package/dist/approval.mjs +39 -0
  24. package/dist/approval.mjs.map +1 -0
  25. package/dist/blob/artifacts.d.mts +37 -0
  26. package/dist/blob/artifacts.mjs +45 -0
  27. package/dist/blob/artifacts.mjs.map +1 -0
  28. package/dist/blob/index.d.mts +44 -8
  29. package/dist/blob/index.mjs +159 -35
  30. package/dist/blob/index.mjs.map +1 -1
  31. package/dist/budget.d.mts +108 -0
  32. package/dist/budget.mjs +141 -0
  33. package/dist/budget.mjs.map +1 -0
  34. package/dist/budgets.d.mts +4 -0
  35. package/dist/budgets.mjs +4 -0
  36. package/dist/build-factory.d.mts +6 -4
  37. package/dist/build-factory.mjs +2 -1
  38. package/dist/build-factory.mjs.map +1 -1
  39. package/dist/change-verification/brief.d.mts +9 -0
  40. package/dist/change-verification/brief.mjs +13 -0
  41. package/dist/change-verification/brief.mjs.map +1 -0
  42. package/dist/change-verification/dispatch.d.mts +24 -0
  43. package/dist/change-verification/dispatch.mjs +45 -0
  44. package/dist/change-verification/dispatch.mjs.map +1 -0
  45. package/dist/change-verification/eve-tool.d.mts +60 -0
  46. package/dist/change-verification/eve-tool.mjs +101 -0
  47. package/dist/change-verification/eve-tool.mjs.map +1 -0
  48. package/dist/changes/eve-record-change.d.mts +56 -0
  49. package/dist/changes/eve-record-change.mjs +97 -0
  50. package/dist/changes/eve-record-change.mjs.map +1 -0
  51. package/dist/changes/presentation.d.mts +14 -0
  52. package/dist/changes.d.mts +23 -0
  53. package/dist/changes.mjs +29 -0
  54. package/dist/changes.mjs.map +1 -0
  55. package/dist/client-events.d.mts +18 -0
  56. package/dist/client-events.mjs +41 -0
  57. package/dist/client-events.mjs.map +1 -0
  58. package/dist/client-stream.d.mts +28 -0
  59. package/dist/client-stream.mjs +204 -0
  60. package/dist/client-stream.mjs.map +1 -0
  61. package/dist/client-transcript.d.mts +41 -0
  62. package/dist/client-transcript.mjs +229 -0
  63. package/dist/client-transcript.mjs.map +1 -0
  64. package/dist/client.d.mts +234 -0
  65. package/dist/client.mjs +258 -0
  66. package/dist/client.mjs.map +1 -0
  67. package/dist/code-review/contracts.d.mts +26 -0
  68. package/dist/code-review/eve-post-review.d.mts +70 -0
  69. package/dist/code-review/eve-post-review.mjs +183 -0
  70. package/dist/code-review/eve-post-review.mjs.map +1 -0
  71. package/dist/code-review/eve-review-comments.d.mts +64 -0
  72. package/dist/code-review/eve-review-comments.mjs +159 -0
  73. package/dist/code-review/eve-review-comments.mjs.map +1 -0
  74. package/dist/code-review/github-contracts.d.mts +10 -0
  75. package/dist/code-review/github-reporter.d.mts +44 -0
  76. package/dist/code-review/github-reporter.mjs +260 -0
  77. package/dist/code-review/github-reporter.mjs.map +1 -0
  78. package/dist/code-review/preparation.d.mts +34 -0
  79. package/dist/code-review/preparation.mjs +23 -0
  80. package/dist/code-review/preparation.mjs.map +1 -0
  81. package/dist/code-review/stall.d.mts +17 -0
  82. package/dist/code-review/stall.mjs +30 -0
  83. package/dist/code-review/stall.mjs.map +1 -0
  84. package/dist/code-review.d.mts +6 -0
  85. package/dist/code-review.mjs +5 -0
  86. package/dist/communication.d.mts +9 -0
  87. package/dist/communication.mjs +9 -0
  88. package/dist/connectors/github.d.mts +26 -0
  89. package/dist/connectors/github.mjs +55 -0
  90. package/dist/connectors/github.mjs.map +1 -0
  91. package/dist/connectors/index.d.mts +35 -2
  92. package/dist/connectors/index.mjs +4 -26
  93. package/dist/connectors/index.mjs.map +1 -1
  94. package/dist/connectors/outbox.d.mts +34 -0
  95. package/dist/connectors/outbox.mjs +50 -0
  96. package/dist/connectors/outbox.mjs.map +1 -0
  97. package/dist/connectors/slack-approval-blocks.mjs +136 -0
  98. package/dist/connectors/slack-approval-blocks.mjs.map +1 -0
  99. package/dist/connectors/slack-approvals.d.mts +29 -0
  100. package/dist/connectors/slack-approvals.mjs +346 -0
  101. package/dist/connectors/slack-approvals.mjs.map +1 -0
  102. package/dist/connectors/slack.d.mts +35 -41
  103. package/dist/connectors/slack.mjs +13 -69
  104. package/dist/connectors/slack.mjs.map +1 -1
  105. package/dist/deepsec/eve-tool.d.mts +110 -0
  106. package/dist/deepsec/eve-tool.mjs +164 -0
  107. package/dist/deepsec/eve-tool.mjs.map +1 -0
  108. package/dist/deepsec/finding.d.mts +84 -0
  109. package/dist/deepsec/finding.mjs +56 -0
  110. package/dist/deepsec/finding.mjs.map +1 -0
  111. package/dist/deepsec.d.mts +3 -0
  112. package/dist/delivery-metrics/metrics.d.mts +93 -0
  113. package/dist/delivery-metrics/metrics.mjs +200 -0
  114. package/dist/delivery-metrics/metrics.mjs.map +1 -0
  115. package/dist/delivery-metrics.d.mts +2 -0
  116. package/dist/delivery-metrics.mjs +2 -0
  117. package/dist/dispatch.d.mts +81 -0
  118. package/dist/dispatch.mjs +140 -0
  119. package/dist/dispatch.mjs.map +1 -0
  120. package/dist/errors.d.mts +15 -0
  121. package/dist/errors.mjs +38 -0
  122. package/dist/errors.mjs.map +1 -0
  123. package/dist/eve/index.d.mts +143 -1561
  124. package/dist/eve/index.mjs +244 -1063
  125. package/dist/eve/index.mjs.map +1 -1
  126. package/dist/eve/invoke.d.mts +144 -0
  127. package/dist/eve/invoke.mjs +241 -0
  128. package/dist/eve/invoke.mjs.map +1 -0
  129. package/dist/eve/session-client.d.mts +68 -0
  130. package/dist/eve/session-client.mjs +131 -0
  131. package/dist/eve/session-client.mjs.map +1 -0
  132. package/dist/eve/task-execution.mjs +18 -0
  133. package/dist/eve/task-execution.mjs.map +1 -0
  134. package/dist/eve/task-session.d.mts +87 -0
  135. package/dist/eve/task-session.mjs +203 -0
  136. package/dist/eve/task-session.mjs.map +1 -0
  137. package/dist/eve/transcript.d.mts +37 -0
  138. package/dist/eve/transcript.mjs +65 -0
  139. package/dist/eve/transcript.mjs.map +1 -0
  140. package/dist/execution-public.d.mts +8 -0
  141. package/dist/execution-public.mjs +7 -0
  142. package/dist/execution.d.mts +75 -0
  143. package/dist/execution.mjs +153 -0
  144. package/dist/execution.mjs.map +1 -0
  145. package/dist/finding-remediation/admission.d.mts +51 -0
  146. package/dist/finding-remediation/admission.mjs +87 -0
  147. package/dist/finding-remediation/admission.mjs.map +1 -0
  148. package/dist/finding-remediation/brief.d.mts +14 -0
  149. package/dist/finding-remediation/brief.mjs +25 -0
  150. package/dist/finding-remediation/brief.mjs.map +1 -0
  151. package/dist/finding-remediation/eve-tool.d.mts +29 -0
  152. package/dist/finding-remediation/eve-tool.mjs +34 -0
  153. package/dist/finding-remediation/eve-tool.mjs.map +1 -0
  154. package/dist/findings/fingerprint.d.mts +14 -0
  155. package/dist/findings/fingerprint.mjs +28 -0
  156. package/dist/findings/fingerprint.mjs.map +1 -0
  157. package/dist/findings.d.mts +6 -0
  158. package/dist/findings.mjs +6 -0
  159. package/dist/github-app.d.mts +54 -0
  160. package/dist/github-app.mjs +121 -0
  161. package/dist/github-app.mjs.map +1 -0
  162. package/dist/github-publication.d.mts +198 -0
  163. package/dist/github-publication.mjs +429 -0
  164. package/dist/github-publication.mjs.map +1 -0
  165. package/dist/github-transfer.d.mts +72 -0
  166. package/dist/github-transfer.mjs +125 -0
  167. package/dist/github-transfer.mjs.map +1 -0
  168. package/dist/github.d.mts +406 -2
  169. package/dist/github.mjs +250 -37
  170. package/dist/github.mjs.map +1 -1
  171. package/dist/image-input.d.mts +51 -0
  172. package/dist/image-input.mjs +63 -0
  173. package/dist/image-input.mjs.map +1 -0
  174. package/dist/index.d.mts +14 -314
  175. package/dist/index.mjs +14 -1124
  176. package/dist/intake-contracts.d.mts +56 -0
  177. package/dist/intake-contracts.mjs +33 -0
  178. package/dist/intake-contracts.mjs.map +1 -0
  179. package/dist/integrations/deepsec.d.mts +4 -0
  180. package/dist/integrations/deepsec.mjs +3 -0
  181. package/dist/integrations/github.d.mts +11 -0
  182. package/dist/integrations/github.mjs +9 -0
  183. package/dist/integrations/slack.d.mts +3 -0
  184. package/dist/integrations/slack.mjs +3 -0
  185. package/dist/integrations/vercel.d.mts +3 -0
  186. package/dist/integrations/vercel.mjs +3 -0
  187. package/dist/merge-resolution/contracts.d.mts +17 -0
  188. package/dist/merge-resolution/contracts.mjs +19 -0
  189. package/dist/merge-resolution/contracts.mjs.map +1 -0
  190. package/dist/merge-resolution/eve-tools.d.mts +46 -0
  191. package/dist/merge-resolution/eve-tools.mjs +117 -0
  192. package/dist/merge-resolution/eve-tools.mjs.map +1 -0
  193. package/dist/multi-repository-changes/coordination.d.mts +49 -0
  194. package/dist/multi-repository-changes/coordination.mjs +115 -0
  195. package/dist/multi-repository-changes/coordination.mjs.map +1 -0
  196. package/dist/planning/cancellation.mjs +82 -0
  197. package/dist/planning/cancellation.mjs.map +1 -0
  198. package/dist/planning/configuration.d.mts +23 -0
  199. package/dist/planning/configuration.mjs +56 -0
  200. package/dist/planning/configuration.mjs.map +1 -0
  201. package/dist/planning/contracts.d.mts +136 -0
  202. package/dist/planning/contracts.mjs +42 -0
  203. package/dist/planning/contracts.mjs.map +1 -0
  204. package/dist/planning/dependencies.mjs +44 -0
  205. package/dist/planning/dependencies.mjs.map +1 -0
  206. package/dist/planning/effects.mjs +122 -0
  207. package/dist/planning/effects.mjs.map +1 -0
  208. package/dist/planning/reconcile.mjs +273 -0
  209. package/dist/planning/reconcile.mjs.map +1 -0
  210. package/dist/planning/runtime.d.mts +27 -0
  211. package/dist/planning/runtime.mjs +25 -0
  212. package/dist/planning/runtime.mjs.map +1 -0
  213. package/dist/planning/state.mjs +92 -0
  214. package/dist/planning/state.mjs.map +1 -0
  215. package/dist/planning/turns.mjs +262 -0
  216. package/dist/planning/turns.mjs.map +1 -0
  217. package/dist/planning/validation.mjs +106 -0
  218. package/dist/planning/validation.mjs.map +1 -0
  219. package/dist/postgres/index.d.mts +7 -1
  220. package/dist/postgres/index.mjs +7 -3
  221. package/dist/postgres/index.mjs.map +1 -1
  222. package/dist/presets/software-development/approval.d.mts +14 -0
  223. package/dist/presets/software-development/approval.mjs +21 -0
  224. package/dist/presets/software-development/approval.mjs.map +1 -0
  225. package/dist/presets/software-development/deepsec-brief.d.mts +8 -0
  226. package/dist/presets/software-development/deepsec-brief.mjs +14 -0
  227. package/dist/presets/software-development/deepsec-brief.mjs.map +1 -0
  228. package/dist/presets/software-development/dispatch.d.mts +53 -0
  229. package/dist/presets/software-development/dispatch.mjs +66 -0
  230. package/dist/presets/software-development/dispatch.mjs.map +1 -0
  231. package/dist/presets/software-development/eve-delegation-policy.d.mts +7 -0
  232. package/dist/presets/software-development/eve-delegation-policy.mjs +34 -0
  233. package/dist/presets/software-development/eve-delegation-policy.mjs.map +1 -0
  234. package/dist/presets/software-development/eve.d.mts +18 -0
  235. package/dist/presets/software-development/eve.mjs +19 -0
  236. package/dist/presets/software-development/eve.mjs.map +1 -0
  237. package/dist/presets/software-development/finish-task-policy.d.mts +7 -0
  238. package/dist/presets/software-development/finish-task-policy.mjs +9 -0
  239. package/dist/presets/software-development/finish-task-policy.mjs.map +1 -0
  240. package/dist/presets/software-development/recovery.d.mts +32 -0
  241. package/dist/presets/software-development/recovery.mjs +120 -0
  242. package/dist/presets/software-development/recovery.mjs.map +1 -0
  243. package/dist/presets/software-development/task-communication.d.mts +23 -0
  244. package/dist/presets/software-development/task-communication.mjs +120 -0
  245. package/dist/presets/software-development/task-communication.mjs.map +1 -0
  246. package/dist/presets/software-development.d.mts +9 -0
  247. package/dist/presets/software-development.mjs +9 -0
  248. package/dist/pull-requests/contracts.d.mts +72 -0
  249. package/dist/pull-requests/eve-fetch.d.mts +57 -0
  250. package/dist/pull-requests/eve-fetch.mjs +151 -0
  251. package/dist/pull-requests/eve-fetch.mjs.map +1 -0
  252. package/dist/pull-requests/github-label-manager.d.mts +27 -0
  253. package/dist/pull-requests/github-label-manager.mjs +40 -0
  254. package/dist/pull-requests/github-label-manager.mjs.map +1 -0
  255. package/dist/pull-requests/github-publisher.d.mts +53 -0
  256. package/dist/pull-requests/github-publisher.mjs +345 -0
  257. package/dist/pull-requests/github-publisher.mjs.map +1 -0
  258. package/dist/pull-requests.d.mts +5 -0
  259. package/dist/pull-requests.mjs +4 -0
  260. package/dist/receipts.d.mts +4 -0
  261. package/dist/receipts.mjs +3 -0
  262. package/dist/repositories.d.mts +18 -0
  263. package/dist/repositories.mjs +33 -0
  264. package/dist/repositories.mjs.map +1 -0
  265. package/dist/sandbox/command.d.mts +18 -0
  266. package/dist/sandbox/execution-abort.d.mts +16 -0
  267. package/dist/sandbox/execution-abort.mjs +49 -0
  268. package/dist/sandbox/execution-abort.mjs.map +1 -0
  269. package/dist/sandbox/execution-environment.d.mts +25 -0
  270. package/dist/sandbox/execution-run-ledger.d.mts +115 -0
  271. package/dist/sandbox/execution-run-ledger.mjs +209 -0
  272. package/dist/sandbox/execution-run-ledger.mjs.map +1 -0
  273. package/dist/sandbox/execution.d.mts +54 -0
  274. package/dist/sandbox/execution.mjs +228 -0
  275. package/dist/sandbox/execution.mjs.map +1 -0
  276. package/dist/sandbox/harness-runner.d.mts +79 -0
  277. package/dist/sandbox/harness-runner.mjs +162 -0
  278. package/dist/sandbox/harness-runner.mjs.map +1 -0
  279. package/dist/sandbox/index.d.mts +9 -0
  280. package/dist/sandbox/index.mjs +7 -0
  281. package/dist/sandbox/task-environment.d.mts +50 -0
  282. package/dist/sandbox/task-environment.mjs +140 -0
  283. package/dist/sandbox/task-environment.mjs.map +1 -0
  284. package/dist/sandbox/workspace.d.mts +29 -0
  285. package/dist/sandbox/workspace.mjs +28 -0
  286. package/dist/sandbox/workspace.mjs.map +1 -0
  287. package/dist/schema/agent-route.d.mts +22 -0
  288. package/dist/schema/agent-route.mjs +15 -0
  289. package/dist/schema/agent-route.mjs.map +1 -0
  290. package/dist/schema/answer.d.mts +23 -0
  291. package/dist/schema/answer.mjs +21 -0
  292. package/dist/schema/answer.mjs.map +1 -0
  293. package/dist/schema/budget.d.mts +38 -0
  294. package/dist/schema/budget.mjs +30 -0
  295. package/dist/schema/budget.mjs.map +1 -0
  296. package/dist/schema/catalog.mjs +72 -0
  297. package/dist/schema/catalog.mjs.map +1 -0
  298. package/dist/schema/change.d.mts +117 -0
  299. package/dist/schema/change.mjs +68 -0
  300. package/dist/schema/change.mjs.map +1 -0
  301. package/dist/schema/common.d.mts +33 -0
  302. package/dist/{id-DwCihQr4.mjs → schema/common.mjs} +7 -14
  303. package/dist/schema/common.mjs.map +1 -0
  304. package/dist/schema/communication.d.mts +52 -0
  305. package/dist/schema/communication.mjs +35 -0
  306. package/dist/schema/communication.mjs.map +1 -0
  307. package/dist/schema/execution.d.mts +101 -0
  308. package/dist/schema/execution.mjs +86 -0
  309. package/dist/schema/execution.mjs.map +1 -0
  310. package/dist/schema/factory-config.d.mts +95 -0
  311. package/dist/schema/factory-config.mjs +60 -0
  312. package/dist/schema/factory-config.mjs.map +1 -0
  313. package/dist/schema/finding.d.mts +125 -0
  314. package/dist/schema/finding.mjs +67 -0
  315. package/dist/schema/finding.mjs.map +1 -0
  316. package/dist/schema/id.d.mts +43 -0
  317. package/dist/schema/id.mjs +32 -0
  318. package/dist/schema/id.mjs.map +1 -0
  319. package/dist/schema/outbox.d.mts +240 -0
  320. package/dist/schema/outbox.mjs +53 -0
  321. package/dist/schema/outbox.mjs.map +1 -0
  322. package/dist/schema/question-route.mjs +16 -0
  323. package/dist/schema/question-route.mjs.map +1 -0
  324. package/dist/schema/receipt.d.mts +81 -0
  325. package/dist/schema/receipt.mjs +94 -0
  326. package/dist/schema/receipt.mjs.map +1 -0
  327. package/dist/schema/repository.d.mts +26 -0
  328. package/dist/schema/repository.mjs +25 -0
  329. package/dist/schema/repository.mjs.map +1 -0
  330. package/dist/schema/session.d.mts +135 -0
  331. package/dist/schema/session.mjs +53 -0
  332. package/dist/schema/session.mjs.map +1 -0
  333. package/dist/schema/signal.d.mts +105 -0
  334. package/dist/schema/signal.mjs +81 -0
  335. package/dist/schema/signal.mjs.map +1 -0
  336. package/dist/schema/stored-session.mjs +10 -0
  337. package/dist/schema/stored-session.mjs.map +1 -0
  338. package/dist/schema/stored-task.mjs +20 -0
  339. package/dist/schema/stored-task.mjs.map +1 -0
  340. package/dist/schema/task-effect.d.mts +39 -0
  341. package/dist/schema/task-effect.mjs +29 -0
  342. package/dist/schema/task-effect.mjs.map +1 -0
  343. package/dist/schema/task-graph.d.mts +3134 -0
  344. package/dist/schema/task-graph.mjs +97 -0
  345. package/dist/schema/task-graph.mjs.map +1 -0
  346. package/dist/schema/task-message.d.mts +254 -0
  347. package/dist/schema/task-message.mjs +189 -0
  348. package/dist/schema/task-message.mjs.map +1 -0
  349. package/dist/schema/task.d.mts +272 -0
  350. package/dist/schema/task.mjs +199 -0
  351. package/dist/schema/task.mjs.map +1 -0
  352. package/dist/schema/transcript.d.mts +170 -0
  353. package/dist/schema/transcript.mjs +86 -0
  354. package/dist/schema/transcript.mjs.map +1 -0
  355. package/dist/schema/transitions.d.mts +50 -0
  356. package/dist/schema/transitions.mjs +303 -0
  357. package/dist/schema/transitions.mjs.map +1 -0
  358. package/dist/schema/work.d.mts +101 -0
  359. package/dist/schema/work.mjs +102 -0
  360. package/dist/schema/work.mjs.map +1 -0
  361. package/dist/signal-triage.d.mts +20 -0
  362. package/dist/signal-triage.mjs +85 -0
  363. package/dist/signal-triage.mjs.map +1 -0
  364. package/dist/signals.d.mts +19 -0
  365. package/dist/signals.mjs +19 -0
  366. package/dist/signals.mjs.map +1 -0
  367. package/dist/stall.d.mts +38 -0
  368. package/dist/stall.mjs +79 -0
  369. package/dist/stall.mjs.map +1 -0
  370. package/dist/storage.d.mts +4 -0
  371. package/dist/storage.mjs +4 -0
  372. package/dist/store/driver.d.mts +65 -0
  373. package/dist/store/driver.mjs +42 -0
  374. package/dist/store/driver.mjs.map +1 -0
  375. package/dist/store/engine.d.mts +485 -0
  376. package/dist/store/engine.mjs +2175 -0
  377. package/dist/store/engine.mjs.map +1 -0
  378. package/dist/store/memory.d.mts +7 -0
  379. package/dist/store/memory.mjs +52 -0
  380. package/dist/store/memory.mjs.map +1 -0
  381. package/dist/store/task-effects.d.mts +38 -0
  382. package/dist/store/task-effects.mjs +118 -0
  383. package/dist/store/task-effects.mjs.map +1 -0
  384. package/dist/store/task-graphs.d.mts +60 -0
  385. package/dist/store/task-graphs.mjs +212 -0
  386. package/dist/store/task-graphs.mjs.map +1 -0
  387. package/dist/store/task-messages.d.mts +136 -0
  388. package/dist/store/task-messages.mjs +475 -0
  389. package/dist/store/task-messages.mjs.map +1 -0
  390. package/dist/store/task-work.d.mts +65 -0
  391. package/dist/store/task-work.mjs +134 -0
  392. package/dist/store/task-work.mjs.map +1 -0
  393. package/dist/store/work-notifications.d.mts +19 -0
  394. package/dist/store/work-notifications.mjs +48 -0
  395. package/dist/store/work-notifications.mjs.map +1 -0
  396. package/dist/sweep.d.mts +57 -0
  397. package/dist/sweep.mjs +143 -0
  398. package/dist/sweep.mjs.map +1 -0
  399. package/dist/task-communication.d.mts +35 -0
  400. package/dist/task-communication.mjs +47 -0
  401. package/dist/task-communication.mjs.map +1 -0
  402. package/dist/task-graph-view.d.mts +264 -0
  403. package/dist/task-graph-view.mjs +17 -0
  404. package/dist/task-graph-view.mjs.map +1 -0
  405. package/dist/task-message-processing.d.mts +60 -0
  406. package/dist/task-message-processing.mjs +200 -0
  407. package/dist/task-message-processing.mjs.map +1 -0
  408. package/dist/task-protocols.d.mts +80 -0
  409. package/dist/task-protocols.mjs +47 -0
  410. package/dist/task-protocols.mjs.map +1 -0
  411. package/dist/tasks.d.mts +17 -0
  412. package/dist/tasks.mjs +17 -0
  413. package/dist/vercel-git.d.mts +21 -0
  414. package/dist/vercel-git.mjs +112 -0
  415. package/dist/vercel-git.mjs.map +1 -0
  416. package/dist/vercel.d.mts +33 -2
  417. package/dist/vercel.mjs +48 -3
  418. package/dist/vercel.mjs.map +1 -1
  419. package/dist/work-triage/eve-tool.d.mts +29 -0
  420. package/dist/work-triage/eve-tool.mjs +32 -0
  421. package/dist/work-triage/eve-tool.mjs.map +1 -0
  422. package/dist/work-triage/find-existing-work.d.mts +32 -0
  423. package/dist/work-triage/find-existing-work.mjs +31 -0
  424. package/dist/work-triage/find-existing-work.mjs.map +1 -0
  425. package/dist/work-triage/github.d.mts +15 -0
  426. package/dist/work-triage/github.mjs +14 -0
  427. package/dist/work-triage/github.mjs.map +1 -0
  428. package/dist/work-triage.d.mts +3 -0
  429. package/dist/work-triage.mjs +3 -0
  430. package/dist/workflows.d.mts +48 -0
  431. package/dist/workflows.mjs +86 -0
  432. package/dist/workflows.mjs.map +1 -0
  433. package/dist/workspace-diff-assembly.d.mts +33 -0
  434. package/dist/workspace-diff-assembly.mjs +95 -0
  435. package/dist/workspace-diff-assembly.mjs.map +1 -0
  436. package/dist/workspace-diff.d.mts +90 -0
  437. package/dist/workspace-diff.mjs +61 -0
  438. package/dist/workspace-diff.mjs.map +1 -0
  439. package/dist/workspace-snapshot.d.mts +26 -0
  440. package/dist/workspace-snapshot.mjs +80 -0
  441. package/dist/workspace-snapshot.mjs.map +1 -0
  442. package/package.json +129 -40
  443. package/dist/approval-CwhTP1XB.mjs +0 -269
  444. package/dist/approval-CwhTP1XB.mjs.map +0 -1
  445. package/dist/change-CzEAoFVE.mjs +0 -620
  446. package/dist/change-CzEAoFVE.mjs.map +0 -1
  447. package/dist/dispatch-B77cuPxh.d.mts +0 -713
  448. package/dist/driver-BJutB0PE.d.mts +0 -34
  449. package/dist/driver-Bbd25rNM.mjs +0 -23
  450. package/dist/driver-Bbd25rNM.mjs.map +0 -1
  451. package/dist/factory-config-BJcjsPKl.mjs +0 -86
  452. package/dist/factory-config-BJcjsPKl.mjs.map +0 -1
  453. package/dist/factory-config-D2yU3G0c.d.mts +0 -58
  454. package/dist/github-DXsxboUL.d.mts +0 -271
  455. package/dist/id-DwCihQr4.mjs.map +0 -1
  456. package/dist/index-Cy4jfXh5.d.mts +0 -67
  457. package/dist/index.mjs.map +0 -1
  458. package/dist/signal-CHVEmzvI.d.mts +0 -59
@@ -1,1599 +1,181 @@
1
- import { H as FactoryStores, f as ApprovalPolicy, l as AgentRouteRegistry, r as DispatchBudget, s as AgentRoute, y as Finding, zt as Task } from "../dispatch-B77cuPxh.mjs";
2
- import { O as PullRequestReviewComment, P as SubmittedPullRequestReview, S as GitHubReviewComment } from "../github-DXsxboUL.mjs";
3
- import { z } from "zod";
4
- //#region src/eve/fetch.d.ts
5
- /** The subset of the eve sandbox handle a credentialed git operation needs. */
6
- interface CommandSandbox {
7
- run(options: {
8
- command: string;
9
- }): PromiseLike<{
10
- stdout: string;
11
- stderr?: string;
12
- exitCode?: number;
13
- }>;
1
+ import { Signal, SignalOutcome } from "../schema/signal.mjs";
2
+ import { ChangeId, RepositoryIds, SignalId, TaskId } from "../schema/id.mjs";
3
+ import { JsonValue } from "../schema/work.mjs";
4
+ import { Task, TaskQuestion } from "../schema/task.mjs";
5
+ import { MaybePromise } from "../schema/common.mjs";
6
+ import { Receipt, ReceiptKind, ReceiptState } from "../schema/receipt.mjs";
7
+ import { AnswerQuestionResult, FactoryStores } from "../store/engine.mjs";
8
+ import { EveTranscriptMaterializer, EveTranscriptMaterializerOptions, EveTranscriptRequestScope, TranscriptMaterializationInput, createEveTranscriptMaterializer } from "./transcript.mjs";
9
+ import { ConversationBinding, FactoryConversationSessionBinding, conversationBinding, conversationBindingForSession, conversationHeaders, factoryReplyAddressAttribute, factoryReplyAddressHeader, factoryReplyChannelAttribute, factoryReplyChannelHeader, factoryRepositoryIdsAttribute, factoryRepositoryIdsHeader, factoryTaskAttemptAttribute, factoryTaskAttemptHeader, factoryTaskAttribute, factoryTaskHeader, hasFactoryTaskBinding, optionalTaskIdForSession, replyToForSession, repositoryIdsForSession, requireTaskIdForSession, taskBindingForSession, taskHeaders, taskSessionAuth, withFactoryTask, withOptionalFactoryTask } from "./task-session.mjs";
10
+ import { CancelEveSessionOptions, EveSessionEvent, EveSessionStream, EveSessionStreamInput, ForwardEveSessionRequestOptions, ReadCompletedEveTurnOptions, StartEveSessionOptions, cancelEveSession, forwardEveSessionRequest, readCompletedEveTurn, startEveSession } from "./session-client.mjs";
11
+ import { DelegateAgentLaunchInput, DelegateAgentTool, DelegateAgentToolInput, DelegateAgentToolOptions, DelegateAgentToolStores, DelegateWorkflowInput, DelegateWorkflowPolicy, DelegateWorkflowResult, InvokeAgentTool, InvokeAgentToolInput, InvokeAgentToolOptions, InvokeAgentToolResult, InvokeAgentToolStores, createDelegateAgentTool, createInvokeAgentTool } from "./invoke.mjs";
12
+ import { HookDefinition } from "eve/hooks";
13
+ import { ToolContext, ToolDefinition } from "eve/tools";
14
+ //#region src/eve/index.d.ts
15
+ /** Receipt, Signal, and Task capabilities used by the provider-neutral Eve tool bundle. */
16
+ type TaskToolsStores = Pick<FactoryStores, "receipts" | "signals" | "tasks">;
17
+ /** Task capability used to project Eve lifecycle events onto durable Factory state. */
18
+ type FactoryHooksStores = Pick<FactoryStores, "tasks">;
19
+ /** Configures the provider-neutral Task, signal, question, and receipt Eve tools. */
20
+ interface TaskToolsOptions {
21
+ /** Present a persisted human question through the application's Foreman communication boundary. */
22
+ presentQuestion?: (task: Task) => Promise<void>;
23
+ /** Return a refusal reason when this task must use a more specific outcome tool. */
24
+ finishTaskPolicy?: (task: Task) => MaybePromise<string | null>;
14
25
  }
15
- interface FetchPullRequestOptions<S extends CommandSandbox = CommandSandbox> {
16
- /**
17
- * Runs one git command against `slug` with a credential the sandbox does not
18
- * otherwise have, and removes it again before resolving. Supplied by the
19
- * app, which owns how credentials are minted and where they are injected;
20
- * the library only decides what is fetched.
21
- */
22
- withCredential: (sandbox: S, slug: string, command: string) => Promise<{
23
- stdout: string;
24
- stderr?: string;
25
- exitCode?: number;
26
- }>;
27
- /** Path of the checkout inside the sandbox. Defaults to `repo`. */
28
- repoPath?: string;
29
- /** Fetch depth for the pull request head. Defaults to 50. */
30
- depth?: number;
26
+ /** Delivers a persisted human-question Task through an application-owned channel. */
27
+ type PresentQuestion = NonNullable<TaskToolsOptions["presentQuestion"]>;
28
+ /** Identifies the Task to read through the provider-neutral task tool. */
29
+ interface GetTaskToolInput {
30
+ taskId: TaskId;
31
31
  }
32
- type FetchPullRequestResult = {
33
- fetched: false;
34
- reason: string;
35
- } | {
36
- fetched: true;
37
- prNumber: number;
38
- prUrl: string;
39
- branch: string;
40
- headSha: string;
41
- baseBranch: string;
42
- baseSha: string;
43
- mergeBaseSha: string;
44
- diffCommand: string;
45
- };
46
- /**
47
- * The verifier's way in to the change under review. The sandbox has no
48
- * GitHub credential while the agent runs, so trusted code does the one fetch
49
- * the agent cannot: the pull request number and repository come from the
50
- * change record, never from the agent, and the credential is gone again
51
- * before control returns. Mirrors how publication reads commits out of the
52
- * sandbox instead of letting the agent push.
53
- */
54
- declare function fetchPullRequestTool<S extends CommandSandbox>(stores: FactoryStores, options: FetchPullRequestOptions<S>): import("eve/tools").ToolDefinition<{
55
- changeId: string;
56
- }, FetchPullRequestResult> & {
57
- execute(input: {
58
- changeId: string;
59
- }, ctx: import("eve/tools").ToolContext): Promise<FetchPullRequestResult>;
60
- };
61
- //#endregion
62
- //#region src/eve/conflict.d.ts
63
- declare const mergeConflictPayloadSchema: z.ZodObject<{
64
- repository: z.ZodString;
65
- prNumber: z.ZodNumber;
66
- prUrl: z.ZodURL;
67
- headBranch: z.ZodString;
68
- headSha: z.ZodString;
69
- baseBranch: z.ZodString;
70
- baseSha: z.ZodString;
71
- }, z.core.$strict>;
72
- type MergeConflictPayload = z.infer<typeof mergeConflictPayloadSchema>;
73
- interface MergeConflictToolOptions<S extends CommandSandbox = CommandSandbox> {
74
- withCredential: (sandbox: S, repository: string, command: string) => Promise<{
75
- stdout: string;
76
- stderr?: string;
77
- exitCode?: number;
78
- }>;
79
- repoPath?: string;
80
- }
81
- declare function mergeConflictTools<S extends CommandSandbox>(stores: FactoryStores, options: MergeConflictToolOptions<S>): {
82
- fetch_merge_conflict: import("eve/tools").ToolDefinition<{
83
- taskId: string;
84
- }, {
85
- conflictedFiles: string[];
86
- repository: string;
87
- prNumber: number;
88
- prUrl: string;
89
- headBranch: string;
90
- headSha: string;
91
- baseBranch: string;
92
- baseSha: string;
93
- }> & {
94
- execute(input: {
95
- taskId: string;
96
- }, ctx: import("eve/tools").ToolContext): Promise<{
97
- conflictedFiles: string[];
98
- repository: string;
99
- prNumber: number;
100
- prUrl: string;
101
- headBranch: string;
102
- headSha: string;
103
- baseBranch: string;
104
- baseSha: string;
105
- }>;
106
- };
107
- publish_merge_resolution: import("eve/tools").ToolDefinition<{
108
- taskId: string;
109
- summary: string;
110
- }, {
111
- updated: true;
112
- prNumber: number;
113
- prUrl: string;
114
- }> & {
115
- execute(input: {
116
- taskId: string;
117
- summary: string;
118
- }, ctx: import("eve/tools").ToolContext): Promise<{
119
- updated: true;
120
- prNumber: number;
121
- prUrl: string;
122
- }>;
123
- };
124
- };
125
- //#endregion
126
- //#region src/eve/finding.d.ts
127
- interface RecordFindingOptions {
128
- /** Signal source the findings are recorded under. Defaults to security_scan. */
129
- source?: string;
130
- /** Which resulting tasks wait for a human. Defaults to the standard policy. */
131
- approval?: ApprovalPolicy;
32
+ /** Explicit not-found result returned when a requested Task does not exist. */
33
+ interface TaskNotFoundResult {
34
+ readonly found: false;
35
+ readonly taskId: TaskId;
132
36
  }
133
- type RecordFindingResult = {
134
- recorded: false;
135
- reason: string;
136
- duplicate?: true;
137
- signalId?: string;
138
- } | {
139
- recorded: true;
140
- signalId: string;
141
- taskId: string;
142
- approval: "required" | "not_required";
143
- };
144
- /**
145
- * Turn one finding into a signal and a fix task. The fingerprint is the
146
- * signal's delivery id, so the same problem reported twice is a no-op. The
147
- * signal is accepted on the reporter's own verification (a human gate follows
148
- * when the approval policy says so), and the task carries the approval
149
- * decision from the moment it exists. Shared by record_finding and scanner
150
- * tools that record on the agent's behalf.
151
- */
152
- declare function recordFinding(stores: FactoryStores, repositoryId: string, finding: Finding, options?: RecordFindingOptions): Promise<RecordFindingResult>;
153
- /**
154
- * The scanner's outcome tool: turns one finding into a signal and a fix task
155
- * in a single deterministic step. The finding's fingerprint is the signal's
156
- * delivery id, so reporting the same problem twice is a no-op. The signal is
157
- * accepted on the reporter's own verification (a human gate follows when the
158
- * approval policy says so), and the task carries the approval decision from
159
- * the moment it exists.
160
- */
161
- declare function recordFindingTool(stores: FactoryStores, options?: RecordFindingOptions): import("eve/tools").ToolDefinition<{
162
- repositoryId: string;
163
- finding: {
164
- title: string;
165
- body: string;
166
- priority: "P0" | "P1" | "P2" | "P3";
167
- category: "security" | "correctness" | "reliability" | "performance" | "compatibility" | "accessibility" | "documentation" | "maintainability" | "testing" | "usability";
168
- verification: {
169
- level: "unverified" | "supported" | "confirmed";
170
- method: "documentation" | "code_inspection" | "static_analysis" | "manual_reproduction" | "unit_test" | "integration_test" | "e2e_test" | "runtime_observation";
171
- summary: string;
172
- limitations?: string | undefined;
173
- };
174
- path?: string | undefined;
175
- line?: number | undefined;
176
- endLine?: number | undefined;
177
- tool?: string | undefined;
178
- ruleId?: string | undefined;
179
- };
180
- }, RecordFindingResult> & {
181
- execute(input: {
182
- repositoryId: string;
183
- finding: {
184
- title: string;
185
- body: string;
186
- priority: "P0" | "P1" | "P2" | "P3";
187
- category: "security" | "correctness" | "reliability" | "performance" | "compatibility" | "accessibility" | "documentation" | "maintainability" | "testing" | "usability";
188
- verification: {
189
- level: "unverified" | "supported" | "confirmed";
190
- method: "documentation" | "code_inspection" | "static_analysis" | "manual_reproduction" | "unit_test" | "integration_test" | "e2e_test" | "runtime_observation";
191
- summary: string;
192
- limitations?: string | undefined;
193
- };
194
- path?: string | undefined;
195
- line?: number | undefined;
196
- endLine?: number | undefined;
197
- tool?: string | undefined;
198
- ruleId?: string | undefined;
199
- };
200
- }, ctx: import("eve/tools").ToolContext): Promise<RecordFindingResult>;
201
- };
202
- //#endregion
203
- //#region src/eve/deepsec.d.ts
204
- interface DeepsecScanOptions<S extends CommandSandbox = CommandSandbox> extends RecordFindingOptions {
205
- /**
206
- * Runs one shell command with the model credential deepsec's gateway route
207
- * expects, and removes it again before resolving. Supplied by the app, which
208
- * owns where the credential comes from: on Vercel it is the deployment's own
209
- * OIDC identity (VERCEL_OIDC_TOKEN), so nothing has to be configured.
210
- */
211
- withModelCredential: (sandbox: S, command: string) => Promise<{
212
- stdout: string;
213
- stderr?: string;
214
- exitCode?: number;
215
- }>;
216
- /** deepsec agent backend: claude, codex, or pi. */
217
- agent?: "claude" | "codex" | "pi";
218
- /** Model deepsec's investigation agent uses, through the AI Gateway (e.g. claude-sonnet-4-6). */
219
- model?: string;
220
- /** Reasoning effort for the investigation: minimal, low, medium, high, or xhigh. */
221
- thinkingLevel?: "minimal" | "low" | "medium" | "high" | "xhigh";
222
- /** Parallel investigation batches. */
223
- concurrency?: number;
224
- /** deepsec version to install. */
225
- version?: string;
226
- /** Repository checkout inside the sandbox. Defaults to `repo`. */
227
- repoPath?: string;
228
- /** deepsec workspace inside the sandbox. Defaults to `deepsec`. */
229
- workspacePath?: string;
230
- /** Shell run before every deepsec command, e.g. to put a Node 24 on PATH. */
231
- commandPrefix?: string;
232
- /**
233
- * Candidate files investigated per run. deepsec keeps state, so successive
234
- * scans continue where the last one stopped; the cap keeps one run inside
235
- * the deployment's time limit on large repositories. Defaults to 40.
236
- */
237
- filesPerRun?: number;
37
+ /** Existing Task or explicit not-found result returned by the task lookup tool. */
38
+ type GetTaskToolResult = Task | TaskNotFoundResult;
39
+ /** Provider-neutral Eve tool for reading one Factory Task. */
40
+ interface GetTaskTool extends ToolDefinition<GetTaskToolInput, GetTaskToolResult> {
41
+ execute(input: GetTaskToolInput, ctx: ToolContext): Promise<GetTaskToolResult>;
238
42
  }
239
- /** deepsec's exported finding shape, as far as we depend on it. */
240
- declare const deepsecFindingSchema: z.ZodObject<{
241
- title: z.ZodString;
242
- description: z.ZodString;
243
- severity: z.ZodString;
244
- metadata: z.ZodOptional<z.ZodObject<{
245
- filePath: z.ZodOptional<z.ZodString>;
246
- lineNumbers: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
247
- vulnSlug: z.ZodOptional<z.ZodString>;
248
- confidence: z.ZodOptional<z.ZodString>;
249
- runId: z.ZodOptional<z.ZodString>;
250
- }, z.core.$loose>>;
251
- }, z.core.$loose>;
252
- /** Convert one deepsec finding into the factory's Finding. Pure; exported for tests. */
253
- declare function findingFromDeepsec(raw: z.infer<typeof deepsecFindingSchema>): Finding;
254
- /**
255
- * Runs deepsec (vercel-labs/deepsec) against the sandbox checkout and records
256
- * what it finds through the same path as record_finding, so every deepsec
257
- * finding becomes a fix task subject to the approval policy. Trusted code
258
- * owns the command sequence and the credential; the agent chooses when to
259
- * scan and reports the outcome.
260
- */
261
- declare function deepsecScanTool<S extends CommandSandbox>(stores: FactoryStores, options: DeepsecScanOptions<S>): import("eve/tools").ToolDefinition<{
262
- repositoryId: string;
263
- limit?: number | undefined;
264
- }, {
265
- scanned: false;
43
+ /** One final triage decision submitted for a pending Signal. */
44
+ interface DecideSignalToolInput {
45
+ signalId: SignalId;
46
+ outcome: Exclude<SignalOutcome, "pending">;
266
47
  reason: string;
267
- tool?: undefined;
268
- found?: undefined;
269
- recorded?: undefined;
270
- duplicates?: undefined;
271
- awaitingApproval?: undefined;
272
- findings?: undefined;
273
- } | {
274
- scanned: true;
275
- tool: string;
276
- found: number;
277
- recorded: number;
278
- duplicates: number;
279
- awaitingApproval: number;
280
- findings: ({
281
- taskId: string;
282
- approval: "required" | "not_required";
283
- title: string;
284
- priority: "P0" | "P1" | "P2" | "P3";
285
- path: string | undefined;
286
- line: number | undefined;
287
- } | {
288
- duplicate: boolean;
289
- title: string;
290
- priority: "P0" | "P1" | "P2" | "P3";
291
- path: string | undefined;
292
- line: number | undefined;
293
- })[];
294
- reason?: undefined;
295
- }> & {
296
- execute(input: {
297
- repositoryId: string;
298
- limit?: number | undefined;
299
- }, ctx: import("eve/tools").ToolContext): Promise<{
300
- scanned: false;
301
- reason: string;
302
- tool?: undefined;
303
- found?: undefined;
304
- recorded?: undefined;
305
- duplicates?: undefined;
306
- awaitingApproval?: undefined;
307
- findings?: undefined;
308
- } | {
309
- scanned: true;
310
- tool: string;
311
- found: number;
312
- recorded: number;
313
- duplicates: number;
314
- awaitingApproval: number;
315
- findings: ({
316
- taskId: string;
317
- approval: "required" | "not_required";
318
- title: string;
319
- priority: "P0" | "P1" | "P2" | "P3";
320
- path: string | undefined;
321
- line: number | undefined;
322
- } | {
323
- duplicate: boolean;
324
- title: string;
325
- priority: "P0" | "P1" | "P2" | "P3";
326
- path: string | undefined;
327
- line: number | undefined;
328
- })[];
329
- reason?: undefined;
330
- }>;
331
- };
332
- //#endregion
333
- //#region src/eve/invoke.d.ts
334
- interface InvokeAgentOptions {
335
- /** The factory task kind the handoff creates, e.g. "verification". */
336
- kind: string;
337
- /** Model-facing description of what the target agent does and when to invoke it. */
338
- description: string;
339
- /**
340
- * Base URL of the target agent's eve transport, e.g.
341
- * `https://factory.example.com/eve/agents/verifier`. Resolved at call time so
342
- * a deployment can derive it from its own origin.
343
- */
344
- targetUrl: () => string;
345
- /** Bearer token for the target agent's eve channel, when it requires auth. */
346
- token?: () => Promise<string | undefined>;
347
- /** Extra headers for the session request, e.g. a deployment protection bypass. */
348
- headers?: (task: Task) => Record<string, string> | Promise<Record<string, string>>;
349
- /**
350
- * Reserve-before-execution limits for the handoff dispatch, resolved at
351
- * call time. Without it, handoff tasks run outside the budget.
352
- */
353
- budget?: () => DispatchBudget | undefined;
354
- fetch?: typeof fetch;
48
+ detail?: string;
355
49
  }
356
- interface DelegateAgentOptions {
357
- routes: AgentRouteRegistry;
358
- targetUrl: (route: AgentRoute) => string;
359
- token?: (route: AgentRoute) => Promise<string | undefined>;
360
- headers?: (task: Task, route: AgentRoute) => Record<string, string> | Promise<Record<string, string>>;
361
- budget?: (route: AgentRoute) => DispatchBudget | undefined;
362
- fetch?: typeof fetch;
50
+ /** Provider-neutral Eve tool for recording a Signal decision. */
51
+ interface DecideSignalTool extends ToolDefinition<DecideSignalToolInput, Signal> {
52
+ execute(input: DecideSignalToolInput, ctx: ToolContext): Promise<Signal>;
363
53
  }
364
- /**
365
- * A tool that lets one agent hand work to another, NMA-style: the caller
366
- * decides to invoke; trusted code owns the how. The handoff is recorded as a
367
- * factory task (single-winner dispatch, receipts), then a fresh session is
368
- * started on the target agent carrying only the task id — never the caller's
369
- * context. The session start is create-once on the task id, so a retried
370
- * tool call cannot start a second session.
371
- */
372
- declare function invokeAgentTool(stores: FactoryStores, options: InvokeAgentOptions): import("eve/tools").ToolDefinition<{
373
- repositoryIds: string[];
374
- channel: string;
375
- address: string;
376
- brief: string;
377
- parentTaskId?: string | undefined;
378
- changeId?: string | undefined;
379
- }, {
380
- taskId: string;
381
- kind: string;
382
- state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
383
- }> & {
384
- execute(input: {
385
- repositoryIds: string[];
386
- channel: string;
387
- address: string;
388
- brief: string;
389
- parentTaskId?: string | undefined;
390
- changeId?: string | undefined;
391
- }, ctx: import("eve/tools").ToolContext): Promise<{
392
- taskId: string;
393
- kind: string;
394
- state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
395
- }>;
396
- };
397
- /**
398
- * Give a conversational agent one bounded delegation surface backed by the
399
- * application's route registry. The caller selects a declared route; trusted
400
- * code owns task creation, budget enforcement, and the fresh target session.
401
- */
402
- declare function delegateAgentTool(stores: FactoryStores, options: DelegateAgentOptions): import("eve/tools").ToolDefinition<{
403
- routeId: string;
404
- repositoryIds: string[];
405
- channel: string;
406
- address: string;
407
- brief: string;
408
- signalId?: string | undefined;
409
- parentTaskId?: string | undefined;
410
- changeId?: string | undefined;
411
- }, {
412
- taskId: string;
413
- childTaskIds: string[];
414
- routeId: string;
415
- agent: string;
416
- state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
417
- } | {
418
- taskId: string;
419
- routeId: string;
420
- agent: string;
421
- state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
422
- childTaskIds?: undefined;
423
- }> & {
424
- execute(input: {
425
- routeId: string;
426
- repositoryIds: string[];
427
- channel: string;
428
- address: string;
429
- brief: string;
430
- signalId?: string | undefined;
431
- parentTaskId?: string | undefined;
432
- changeId?: string | undefined;
433
- }, ctx: import("eve/tools").ToolContext): Promise<{
434
- taskId: string;
435
- childTaskIds: string[];
436
- routeId: string;
437
- agent: string;
438
- state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
439
- } | {
440
- taskId: string;
441
- routeId: string;
442
- agent: string;
443
- state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
444
- childTaskIds?: undefined;
445
- }>;
446
- };
447
- //#endregion
448
- //#region src/eve/post-review.d.ts
449
- interface CompletedReview {
450
- taskId: string;
451
- changeId: string;
452
- repository: string;
453
- pullRequestNumber: number;
454
- headSha: string;
455
- verdict: "approve" | "request_changes" | "comment";
54
+ /** Running Task and summary supplied to the generic completion tool. */
55
+ interface FinishTaskToolInput {
56
+ taskId: TaskId;
456
57
  summary: string;
457
- comments: readonly CompletedReviewFinding[];
458
58
  }
459
- interface CompletedReviewFinding extends PullRequestReviewComment {
460
- fingerprint: string;
461
- key: string;
462
- title: string;
59
+ /** Successful generic Task completion. */
60
+ interface FinishTaskSuccess {
61
+ readonly finished: true;
62
+ readonly taskState: "succeeded";
463
63
  }
464
- interface PublishedReview extends CompletedReview {
465
- review: SubmittedPullRequestReview;
64
+ /** Policy or lifecycle refusal returned by the generic Task completion tool. */
65
+ interface FinishTaskRefusal {
66
+ readonly finished: false;
67
+ readonly reason: string;
466
68
  }
467
- interface PostReviewToolOptions {
468
- tokenForRepository: (repository: string) => Promise<string>;
469
- publishReviews?: boolean;
470
- onCompleted?: (completed: CompletedReview) => Promise<void>;
471
- onPublished?: (published: PublishedReview) => Promise<void>;
472
- fetch?: typeof globalThis.fetch;
69
+ /** Completion or bounded refusal returned by the generic Task completion tool. */
70
+ type FinishTaskToolResult = FinishTaskSuccess | FinishTaskRefusal;
71
+ /** Provider-neutral Eve tool for completing a running Task. */
72
+ interface FinishTaskTool extends ToolDefinition<FinishTaskToolInput, FinishTaskToolResult> {
73
+ execute(input: FinishTaskToolInput, ctx: ToolContext): Promise<FinishTaskToolResult>;
473
74
  }
474
- /**
475
- * Publish an independent review of an existing pull request and finish the
476
- * review task without changing the pull request's factory lifecycle.
477
- */
478
- declare function postReviewTool(stores: FactoryStores, options: PostReviewToolOptions): import("eve/tools").ToolDefinition<{
479
- taskId: string;
480
- changeId: string;
481
- verdict: "approve" | "request_changes" | "comment";
482
- headSha: string;
483
- summary: string;
484
- comments: {
485
- path: string;
486
- line: number;
487
- body: string;
488
- key?: string | undefined;
489
- title?: string | undefined;
490
- }[];
491
- }, {
492
- recorded: false;
493
- reason: string;
494
- } | {
495
- taskState: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
496
- review?: SubmittedPullRequestReview | undefined;
497
- recorded: true;
498
- verdict: "approve" | "request_changes" | "comment";
499
- published: boolean;
500
- reason?: undefined;
501
- }> & {
502
- execute(input: {
503
- taskId: string;
504
- changeId: string;
505
- verdict: "approve" | "request_changes" | "comment";
506
- headSha: string;
507
- summary: string;
508
- comments: {
509
- path: string;
510
- line: number;
511
- body: string;
512
- key?: string | undefined;
513
- title?: string | undefined;
514
- }[];
515
- }, ctx: import("eve/tools").ToolContext): Promise<{
516
- recorded: false;
517
- reason: string;
518
- } | {
519
- taskState: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
520
- review?: SubmittedPullRequestReview | undefined;
521
- recorded: true;
522
- verdict: "approve" | "request_changes" | "comment";
523
- published: boolean;
524
- reason?: undefined;
525
- }>;
526
- };
527
- //#endregion
528
- //#region src/eve/review.d.ts
529
- interface ReviewCommentToolOptions<S extends CommandSandbox = CommandSandbox> {
530
- tokenForRepository: (repository: string) => Promise<string>;
531
- withCredential?: (sandbox: S, repository: string, command: string) => Promise<{
532
- stdout: string;
533
- stderr?: string;
534
- exitCode?: number;
535
- }>;
536
- fetch?: typeof globalThis.fetch;
537
- repoPath?: string;
75
+ /** Unanswered question shape accepted when a Task requests human input. */
76
+ type HumanInputQuestion = Omit<TaskQuestion, "answer" | "answeredBy">;
77
+ /** Currently running parent Task and its single human question for this execution. */
78
+ interface RequestHumanInputToolInput {
79
+ parentTaskId: TaskId;
80
+ question: HumanInputQuestion;
538
81
  }
539
- declare function reviewCommentTools<S extends CommandSandbox>(stores: FactoryStores, options: ReviewCommentToolOptions<S>): {
540
- read_review_comment: import("eve/tools").ToolDefinition<{
541
- changeId: string;
542
- commentId: number;
543
- }, GitHubReviewComment> & {
544
- execute(input: {
545
- changeId: string;
546
- commentId: number;
547
- }, ctx: import("eve/tools").ToolContext): Promise<GitHubReviewComment>;
548
- };
549
- answer_review_comment: import("eve/tools").ToolDefinition<{
550
- changeId: string;
551
- commentId: number;
552
- body: string;
553
- }, GitHubReviewComment> & {
554
- execute(input: {
555
- changeId: string;
556
- commentId: number;
557
- body: string;
558
- }, ctx: import("eve/tools").ToolContext): Promise<GitHubReviewComment>;
559
- };
560
- suggest_review_fix: import("eve/tools").ToolDefinition<{
561
- changeId: string;
562
- commentId: number;
563
- confidence: "medium";
564
- replacement: string;
565
- summary: string;
566
- }, GitHubReviewComment> & {
567
- execute(input: {
568
- changeId: string;
569
- commentId: number;
570
- confidence: "medium";
571
- replacement: string;
572
- summary: string;
573
- }, ctx: import("eve/tools").ToolContext): Promise<GitHubReviewComment>;
574
- };
575
- apply_review_fix: import("eve/tools").ToolDefinition<{
576
- changeId: string;
577
- commentId: number;
578
- confidence: "high";
579
- summary: string;
580
- }, {
581
- updated: true;
582
- prNumber: number;
583
- prUrl: string;
584
- reply: GitHubReviewComment;
585
- }> & {
586
- execute(input: {
587
- changeId: string;
588
- commentId: number;
589
- confidence: "high";
590
- summary: string;
591
- }, ctx: import("eve/tools").ToolContext): Promise<{
592
- updated: true;
593
- prNumber: number;
594
- prUrl: string;
595
- reply: GitHubReviewComment;
596
- }>;
597
- };
598
- };
599
- //#endregion
600
- //#region src/eve/verification.d.ts
601
- interface RecordVerificationOptions {
602
- presentResult?: (input: {
603
- taskId: string;
604
- changeId: string;
605
- verdict: "pass" | "fail";
606
- summary: string;
607
- }) => Promise<void>;
82
+ /** Provider-neutral Eve tool for pausing one running execution on one persisted human question. */
83
+ interface RequestHumanInputTool extends ToolDefinition<RequestHumanInputToolInput, Task> {
84
+ execute(input: RequestHumanInputToolInput, ctx: ToolContext): Promise<Task>;
608
85
  }
609
- /**
610
- * The verifier's outcome tool. Writes evidence onto the change and moves it
611
- * to ready only when the verdict is pass; a failed verdict leaves the change
612
- * verifying with the evidence recorded, and the verification task itself
613
- * ends with a receipt either way. The change's own code_change task follows
614
- * the verdict too: succeeded on pass, failed on fail with the verifier's
615
- * summary as the reason, so the ledger never shows a verified-and-rejected fix
616
- * as still in progress. Fail closed: the agent cannot mark a change ready
617
- * without supplying every evidence field.
618
- */
619
- declare function recordVerificationTool(stores: FactoryStores, options?: RecordVerificationOptions): import("eve/tools").ToolDefinition<{
620
- taskId: string;
621
- changeId: string;
622
- verdict: "pass" | "fail";
623
- evidence: {
624
- reproVerified: boolean;
625
- testsAdded: number;
626
- checksGreen: boolean;
627
- attackPassed: boolean;
628
- scopeMatches: boolean;
629
- previewUrl?: string | undefined;
630
- };
631
- confidence: "low" | "medium" | "high";
632
- summary: string;
633
- }, {
634
- recorded: false;
635
- reason: string;
636
- verdict?: undefined;
637
- changeState?: undefined;
638
- taskState?: undefined;
639
- } | {
640
- recorded: true;
641
- verdict: "pass" | "fail";
642
- changeState: "verifying" | "ready" | "merged" | "deployed" | "rolled_out" | "rolled_back" | "closed";
643
- taskState: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
644
- reason?: undefined;
645
- }> & {
646
- execute(input: {
647
- taskId: string;
648
- changeId: string;
649
- verdict: "pass" | "fail";
650
- evidence: {
651
- reproVerified: boolean;
652
- testsAdded: number;
653
- checksGreen: boolean;
654
- attackPassed: boolean;
655
- scopeMatches: boolean;
656
- previewUrl?: string | undefined;
657
- };
658
- confidence: "low" | "medium" | "high";
659
- summary: string;
660
- }, ctx: import("eve/tools").ToolContext): Promise<{
661
- recorded: false;
662
- reason: string;
663
- verdict?: undefined;
664
- changeState?: undefined;
665
- taskState?: undefined;
666
- } | {
667
- recorded: true;
668
- verdict: "pass" | "fail";
669
- changeState: "verifying" | "ready" | "merged" | "deployed" | "rolled_out" | "rolled_back" | "closed";
670
- taskState: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
671
- reason?: undefined;
672
- }>;
673
- };
674
- //#endregion
675
- //#region src/eve/index.d.ts
676
- declare const recordChangeInputSchema: z.ZodObject<{
677
- taskId: z.ZodString;
678
- repositoryId: z.ZodString;
679
- prNumber: z.ZodNumber;
680
- prUrl: z.ZodURL;
681
- risk: z.ZodEnum<{
682
- low: "low";
683
- medium: "medium";
684
- high: "high";
685
- }>;
686
- confidence: z.ZodEnum<{
687
- low: "low";
688
- medium: "medium";
689
- high: "high";
690
- }>;
691
- summary: z.ZodString;
692
- }, z.core.$strip>;
693
- type RecordChangeInput = z.infer<typeof recordChangeInputSchema>;
694
- type GateVerdict = {
695
- ok: true;
696
- } | {
697
- ok: false;
698
- reason: string;
699
- };
700
- interface FactoryToolsOptions {
701
- /**
702
- * Pre-action gate for record_change, run as an eve approval policy before
703
- * the tool executes. Refusals reach the model as a denial with the reason.
704
- * Gates must fail closed: when they cannot verify, they refuse.
705
- */
706
- recordChangeGate?: (input: RecordChangeInput) => Promise<GateVerdict>;
707
- /** Whether recorded code changes wait for an independent verification task. Default: required. */
708
- verification?: "required" | "disabled";
709
- /** Present the pull request after record_change persists its durable state. */
710
- presentChange?: (input: {
711
- taskId: string;
712
- changeId: string;
713
- verification: "required" | "disabled";
714
- summary: string;
715
- }) => Promise<void>;
716
- /** Present a persisted human question through the application's Foreman communication boundary. */
717
- presentQuestion?: (task: Task) => Promise<void>;
86
+ /** Question Task and authenticated answer supplied to the answer tool. */
87
+ interface AnswerQuestionToolInput {
88
+ questionTaskId: TaskId;
89
+ answer: string;
90
+ }
91
+ /** Provider-neutral Eve tool for answering a persisted human question. */
92
+ interface AnswerQuestionTool extends ToolDefinition<AnswerQuestionToolInput, AnswerQuestionResult> {
93
+ execute(input: AnswerQuestionToolInput, ctx: ToolContext): Promise<AnswerQuestionResult>;
94
+ }
95
+ /** Immutable audit event accepted by the generic receipt tool. */
96
+ interface AppendReceiptToolInput {
97
+ repositoryIds: RepositoryIds;
98
+ taskId?: TaskId;
99
+ changeId?: ChangeId;
100
+ kind: ReceiptKind;
101
+ state: ReceiptState;
102
+ reason?: string;
103
+ dedupeKey?: string;
104
+ }
105
+ /** Provider-neutral Eve tool for appending one immutable audit Receipt. */
106
+ interface AppendReceiptTool extends ToolDefinition<AppendReceiptToolInput, Receipt> {
107
+ execute(input: AppendReceiptToolInput, ctx: ToolContext): Promise<Receipt>;
108
+ }
109
+ /** The provider-neutral Task, Signal, question, and Receipt tools exposed to an Eve agent. */
110
+ interface TaskTools {
111
+ readonly get_task: GetTaskTool;
112
+ readonly decide_signal: DecideSignalTool;
113
+ readonly finish_task: FinishTaskTool;
114
+ readonly request_human_input: RequestHumanInputTool;
115
+ readonly answer_question: AnswerQuestionTool;
116
+ readonly append_receipt: AppendReceiptTool;
718
117
  }
719
- type PresentQuestion = NonNullable<FactoryToolsOptions["presentQuestion"]>;
720
118
  /**
721
- * The factory's store operations wrapped as eve tools. Expose a tool to an
119
+ * The factory's provider-neutral store operations wrapped as Eve tools. Expose a tool to an
722
120
  * agent by re-exporting it from a file under agent/tools/, e.g.
723
- * `export default factoryTools(stores).get_task;`. Every write goes through
121
+ * `export default createTaskTools(stores).get_task;`. Every write goes through
724
122
  * the engine, so agents inherit transition legality and receipts.
725
123
  */
726
- declare function factoryTools(stores: FactoryStores, options?: FactoryToolsOptions): {
727
- get_task: import("eve/tools").ToolDefinition<{
728
- taskId: string;
729
- }, {
730
- schemaVersion: 1;
731
- id: string;
732
- repositoryIds: string[];
733
- kind: string;
734
- state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
735
- origin: {
736
- signalId?: string | undefined;
737
- parentTaskId?: string | undefined;
738
- operator?: string | undefined;
739
- };
740
- replyTo: {
741
- channel: string;
742
- address: string;
743
- };
744
- attempt: number;
745
- createdAt: string;
746
- updatedAt: string;
747
- area?: string | undefined;
748
- approval?: "required" | "granted" | "denied" | undefined;
749
- dependsOn?: string[] | undefined;
750
- execution?: {
751
- provider: string;
752
- sessionId: string;
753
- environmentId?: string | undefined;
754
- harness?: string | undefined;
755
- traceId?: string | undefined;
756
- } | undefined;
757
- lastProgressAt?: string | undefined;
758
- stalledAt?: string | undefined;
759
- stalledReason?: string | undefined;
760
- reservedUsd?: number | undefined;
761
- reservedAt?: string | undefined;
762
- usage?: {
763
- costUsd: number;
764
- inputTokens: number;
765
- outputTokens: number;
766
- cacheReadTokens: number;
767
- cacheWriteTokens: number;
768
- steps: Record<string, number>;
769
- } | undefined;
770
- settledUsd?: number | undefined;
771
- question?: {
772
- text: string;
773
- options: string[];
774
- answer?: string | undefined;
775
- answeredBy?: string | undefined;
776
- } | undefined;
777
- changeId?: string | undefined;
778
- reportRef?: string | undefined;
779
- } | {
780
- found: false;
781
- taskId: string;
782
- }> & {
783
- execute(input: {
784
- taskId: string;
785
- }, ctx: import("eve/tools").ToolContext): Promise<{
786
- schemaVersion: 1;
787
- id: string;
788
- repositoryIds: string[];
789
- kind: string;
790
- state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
791
- origin: {
792
- signalId?: string | undefined;
793
- parentTaskId?: string | undefined;
794
- operator?: string | undefined;
795
- };
796
- replyTo: {
797
- channel: string;
798
- address: string;
799
- };
800
- attempt: number;
801
- createdAt: string;
802
- updatedAt: string;
803
- area?: string | undefined;
804
- approval?: "required" | "granted" | "denied" | undefined;
805
- dependsOn?: string[] | undefined;
806
- execution?: {
807
- provider: string;
808
- sessionId: string;
809
- environmentId?: string | undefined;
810
- harness?: string | undefined;
811
- traceId?: string | undefined;
812
- } | undefined;
813
- lastProgressAt?: string | undefined;
814
- stalledAt?: string | undefined;
815
- stalledReason?: string | undefined;
816
- reservedUsd?: number | undefined;
817
- reservedAt?: string | undefined;
818
- usage?: {
819
- costUsd: number;
820
- inputTokens: number;
821
- outputTokens: number;
822
- cacheReadTokens: number;
823
- cacheWriteTokens: number;
824
- steps: Record<string, number>;
825
- } | undefined;
826
- settledUsd?: number | undefined;
827
- question?: {
828
- text: string;
829
- options: string[];
830
- answer?: string | undefined;
831
- answeredBy?: string | undefined;
832
- } | undefined;
833
- changeId?: string | undefined;
834
- reportRef?: string | undefined;
835
- } | {
836
- found: false;
837
- taskId: string;
838
- }>;
839
- };
840
- decide_signal: import("eve/tools").ToolDefinition<{
841
- signalId: string;
842
- outcome: "accepted" | "duplicate" | "unactionable" | "low_confidence" | "ignored";
843
- reason: string;
844
- detail?: string | undefined;
845
- }, {
846
- schemaVersion: 1;
847
- id: string;
848
- repositoryId: string;
849
- source: string;
850
- deliveryId: string;
851
- replyTo: {
852
- channel: string;
853
- address: string;
854
- };
855
- payload: unknown;
856
- receivedAt: string;
857
- outcome: "accepted" | "duplicate" | "unactionable" | "low_confidence" | "ignored" | "pending";
858
- detail?: string | undefined;
859
- reason?: string | undefined;
860
- decidedAt?: string | undefined;
861
- }> & {
862
- execute(input: {
863
- signalId: string;
864
- outcome: "accepted" | "duplicate" | "unactionable" | "low_confidence" | "ignored";
865
- reason: string;
866
- detail?: string | undefined;
867
- }, ctx: import("eve/tools").ToolContext): Promise<{
868
- schemaVersion: 1;
869
- id: string;
870
- repositoryId: string;
871
- source: string;
872
- deliveryId: string;
873
- replyTo: {
874
- channel: string;
875
- address: string;
876
- };
877
- payload: unknown;
878
- receivedAt: string;
879
- outcome: "accepted" | "duplicate" | "unactionable" | "low_confidence" | "ignored" | "pending";
880
- detail?: string | undefined;
881
- reason?: string | undefined;
882
- decidedAt?: string | undefined;
883
- }>;
884
- };
885
- record_change: import("eve/tools").ToolDefinition<{
886
- taskId: string;
887
- repositoryId: string;
888
- prNumber: number;
889
- prUrl: string;
890
- risk: "low" | "medium" | "high";
891
- confidence: "low" | "medium" | "high";
892
- summary: string;
893
- }, {
894
- change: {
895
- schemaVersion: 1;
896
- id: string;
897
- repositoryId: string;
898
- prNumber: number;
899
- prUrl: string;
900
- author: string;
901
- risk: "low" | "medium" | "high";
902
- confidence: "low" | "medium" | "high";
903
- evidence: {
904
- reproVerified: boolean;
905
- testsAdded: number;
906
- checksGreen: boolean;
907
- attackPassed: boolean;
908
- scopeMatches: boolean;
909
- previewUrl?: string | undefined;
910
- };
911
- state: "verifying" | "ready" | "merged" | "deployed" | "rolled_out" | "rolled_back" | "closed";
912
- createdAt: string;
913
- updatedAt: string;
914
- taskId?: string | undefined;
915
- groupId?: string | undefined;
916
- mergeSha?: string | undefined;
917
- decidedBy?: string | undefined;
918
- };
919
- task: {
920
- schemaVersion: 1;
921
- id: string;
922
- repositoryIds: string[];
923
- kind: string;
924
- state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
925
- origin: {
926
- signalId?: string | undefined;
927
- parentTaskId?: string | undefined;
928
- operator?: string | undefined;
929
- };
930
- replyTo: {
931
- channel: string;
932
- address: string;
933
- };
934
- attempt: number;
935
- createdAt: string;
936
- updatedAt: string;
937
- area?: string | undefined;
938
- approval?: "required" | "granted" | "denied" | undefined;
939
- dependsOn?: string[] | undefined;
940
- execution?: {
941
- provider: string;
942
- sessionId: string;
943
- environmentId?: string | undefined;
944
- harness?: string | undefined;
945
- traceId?: string | undefined;
946
- } | undefined;
947
- lastProgressAt?: string | undefined;
948
- stalledAt?: string | undefined;
949
- stalledReason?: string | undefined;
950
- reservedUsd?: number | undefined;
951
- reservedAt?: string | undefined;
952
- usage?: {
953
- costUsd: number;
954
- inputTokens: number;
955
- outputTokens: number;
956
- cacheReadTokens: number;
957
- cacheWriteTokens: number;
958
- steps: Record<string, number>;
959
- } | undefined;
960
- settledUsd?: number | undefined;
961
- question?: {
962
- text: string;
963
- options: string[];
964
- answer?: string | undefined;
965
- answeredBy?: string | undefined;
966
- } | undefined;
967
- changeId?: string | undefined;
968
- reportRef?: string | undefined;
969
- };
970
- }> & {
971
- execute(input: {
972
- taskId: string;
973
- repositoryId: string;
974
- prNumber: number;
975
- prUrl: string;
976
- risk: "low" | "medium" | "high";
977
- confidence: "low" | "medium" | "high";
978
- summary: string;
979
- }, ctx: import("eve/tools").ToolContext): Promise<{
980
- change: {
981
- schemaVersion: 1;
982
- id: string;
983
- repositoryId: string;
984
- prNumber: number;
985
- prUrl: string;
986
- author: string;
987
- risk: "low" | "medium" | "high";
988
- confidence: "low" | "medium" | "high";
989
- evidence: {
990
- reproVerified: boolean;
991
- testsAdded: number;
992
- checksGreen: boolean;
993
- attackPassed: boolean;
994
- scopeMatches: boolean;
995
- previewUrl?: string | undefined;
996
- };
997
- state: "verifying" | "ready" | "merged" | "deployed" | "rolled_out" | "rolled_back" | "closed";
998
- createdAt: string;
999
- updatedAt: string;
1000
- taskId?: string | undefined;
1001
- groupId?: string | undefined;
1002
- mergeSha?: string | undefined;
1003
- decidedBy?: string | undefined;
1004
- };
1005
- task: {
1006
- schemaVersion: 1;
1007
- id: string;
1008
- repositoryIds: string[];
1009
- kind: string;
1010
- state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
1011
- origin: {
1012
- signalId?: string | undefined;
1013
- parentTaskId?: string | undefined;
1014
- operator?: string | undefined;
1015
- };
1016
- replyTo: {
1017
- channel: string;
1018
- address: string;
1019
- };
1020
- attempt: number;
1021
- createdAt: string;
1022
- updatedAt: string;
1023
- area?: string | undefined;
1024
- approval?: "required" | "granted" | "denied" | undefined;
1025
- dependsOn?: string[] | undefined;
1026
- execution?: {
1027
- provider: string;
1028
- sessionId: string;
1029
- environmentId?: string | undefined;
1030
- harness?: string | undefined;
1031
- traceId?: string | undefined;
1032
- } | undefined;
1033
- lastProgressAt?: string | undefined;
1034
- stalledAt?: string | undefined;
1035
- stalledReason?: string | undefined;
1036
- reservedUsd?: number | undefined;
1037
- reservedAt?: string | undefined;
1038
- usage?: {
1039
- costUsd: number;
1040
- inputTokens: number;
1041
- outputTokens: number;
1042
- cacheReadTokens: number;
1043
- cacheWriteTokens: number;
1044
- steps: Record<string, number>;
1045
- } | undefined;
1046
- settledUsd?: number | undefined;
1047
- question?: {
1048
- text: string;
1049
- options: string[];
1050
- answer?: string | undefined;
1051
- answeredBy?: string | undefined;
1052
- } | undefined;
1053
- changeId?: string | undefined;
1054
- reportRef?: string | undefined;
1055
- };
1056
- }>;
1057
- };
1058
- finish_task: import("eve/tools").ToolDefinition<{
1059
- taskId: string;
1060
- summary: string;
1061
- }, {
1062
- finished: false;
1063
- reason: string;
1064
- taskState?: undefined;
1065
- } | {
1066
- finished: true;
1067
- taskState: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
1068
- reason?: undefined;
1069
- }> & {
1070
- execute(input: {
1071
- taskId: string;
1072
- summary: string;
1073
- }, ctx: import("eve/tools").ToolContext): Promise<{
1074
- finished: false;
1075
- reason: string;
1076
- taskState?: undefined;
1077
- } | {
1078
- finished: true;
1079
- taskState: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
1080
- reason?: undefined;
1081
- }>;
1082
- };
1083
- request_human_input: import("eve/tools").ToolDefinition<{
1084
- parentTaskId: string;
1085
- question: {
1086
- text: string;
1087
- options: string[];
1088
- };
1089
- }, {
1090
- schemaVersion: 1;
1091
- id: string;
1092
- repositoryIds: string[];
1093
- kind: string;
1094
- state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
1095
- origin: {
1096
- signalId?: string | undefined;
1097
- parentTaskId?: string | undefined;
1098
- operator?: string | undefined;
1099
- };
1100
- replyTo: {
1101
- channel: string;
1102
- address: string;
1103
- };
1104
- attempt: number;
1105
- createdAt: string;
1106
- updatedAt: string;
1107
- area?: string | undefined;
1108
- approval?: "required" | "granted" | "denied" | undefined;
1109
- dependsOn?: string[] | undefined;
1110
- execution?: {
1111
- provider: string;
1112
- sessionId: string;
1113
- environmentId?: string | undefined;
1114
- harness?: string | undefined;
1115
- traceId?: string | undefined;
1116
- } | undefined;
1117
- lastProgressAt?: string | undefined;
1118
- stalledAt?: string | undefined;
1119
- stalledReason?: string | undefined;
1120
- reservedUsd?: number | undefined;
1121
- reservedAt?: string | undefined;
1122
- usage?: {
1123
- costUsd: number;
1124
- inputTokens: number;
1125
- outputTokens: number;
1126
- cacheReadTokens: number;
1127
- cacheWriteTokens: number;
1128
- steps: Record<string, number>;
1129
- } | undefined;
1130
- settledUsd?: number | undefined;
1131
- question?: {
1132
- text: string;
1133
- options: string[];
1134
- answer?: string | undefined;
1135
- answeredBy?: string | undefined;
1136
- } | undefined;
1137
- changeId?: string | undefined;
1138
- reportRef?: string | undefined;
1139
- }> & {
1140
- execute(input: {
1141
- parentTaskId: string;
1142
- question: {
1143
- text: string;
1144
- options: string[];
1145
- };
1146
- }, ctx: import("eve/tools").ToolContext): Promise<{
1147
- schemaVersion: 1;
1148
- id: string;
1149
- repositoryIds: string[];
1150
- kind: string;
1151
- state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
1152
- origin: {
1153
- signalId?: string | undefined;
1154
- parentTaskId?: string | undefined;
1155
- operator?: string | undefined;
1156
- };
1157
- replyTo: {
1158
- channel: string;
1159
- address: string;
1160
- };
1161
- attempt: number;
1162
- createdAt: string;
1163
- updatedAt: string;
1164
- area?: string | undefined;
1165
- approval?: "required" | "granted" | "denied" | undefined;
1166
- dependsOn?: string[] | undefined;
1167
- execution?: {
1168
- provider: string;
1169
- sessionId: string;
1170
- environmentId?: string | undefined;
1171
- harness?: string | undefined;
1172
- traceId?: string | undefined;
1173
- } | undefined;
1174
- lastProgressAt?: string | undefined;
1175
- stalledAt?: string | undefined;
1176
- stalledReason?: string | undefined;
1177
- reservedUsd?: number | undefined;
1178
- reservedAt?: string | undefined;
1179
- usage?: {
1180
- costUsd: number;
1181
- inputTokens: number;
1182
- outputTokens: number;
1183
- cacheReadTokens: number;
1184
- cacheWriteTokens: number;
1185
- steps: Record<string, number>;
1186
- } | undefined;
1187
- settledUsd?: number | undefined;
1188
- question?: {
1189
- text: string;
1190
- options: string[];
1191
- answer?: string | undefined;
1192
- answeredBy?: string | undefined;
1193
- } | undefined;
1194
- changeId?: string | undefined;
1195
- reportRef?: string | undefined;
1196
- }>;
1197
- };
1198
- answer_question: import("eve/tools").ToolDefinition<{
1199
- questionTaskId: string;
1200
- answer: string;
1201
- }, {
1202
- questionTask: {
1203
- schemaVersion: 1;
1204
- id: string;
1205
- repositoryIds: string[];
1206
- kind: string;
1207
- state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
1208
- origin: {
1209
- signalId?: string | undefined;
1210
- parentTaskId?: string | undefined;
1211
- operator?: string | undefined;
1212
- };
1213
- replyTo: {
1214
- channel: string;
1215
- address: string;
1216
- };
1217
- attempt: number;
1218
- createdAt: string;
1219
- updatedAt: string;
1220
- area?: string | undefined;
1221
- approval?: "required" | "granted" | "denied" | undefined;
1222
- dependsOn?: string[] | undefined;
1223
- execution?: {
1224
- provider: string;
1225
- sessionId: string;
1226
- environmentId?: string | undefined;
1227
- harness?: string | undefined;
1228
- traceId?: string | undefined;
1229
- } | undefined;
1230
- lastProgressAt?: string | undefined;
1231
- stalledAt?: string | undefined;
1232
- stalledReason?: string | undefined;
1233
- reservedUsd?: number | undefined;
1234
- reservedAt?: string | undefined;
1235
- usage?: {
1236
- costUsd: number;
1237
- inputTokens: number;
1238
- outputTokens: number;
1239
- cacheReadTokens: number;
1240
- cacheWriteTokens: number;
1241
- steps: Record<string, number>;
1242
- } | undefined;
1243
- settledUsd?: number | undefined;
1244
- question?: {
1245
- text: string;
1246
- options: string[];
1247
- answer?: string | undefined;
1248
- answeredBy?: string | undefined;
1249
- } | undefined;
1250
- changeId?: string | undefined;
1251
- reportRef?: string | undefined;
1252
- };
1253
- parentTask: null;
1254
- } | {
1255
- questionTask: {
1256
- schemaVersion: 1;
1257
- id: string;
1258
- repositoryIds: string[];
1259
- kind: string;
1260
- state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
1261
- origin: {
1262
- signalId?: string | undefined;
1263
- parentTaskId?: string | undefined;
1264
- operator?: string | undefined;
1265
- };
1266
- replyTo: {
1267
- channel: string;
1268
- address: string;
1269
- };
1270
- attempt: number;
1271
- createdAt: string;
1272
- updatedAt: string;
1273
- area?: string | undefined;
1274
- approval?: "required" | "granted" | "denied" | undefined;
1275
- dependsOn?: string[] | undefined;
1276
- execution?: {
1277
- provider: string;
1278
- sessionId: string;
1279
- environmentId?: string | undefined;
1280
- harness?: string | undefined;
1281
- traceId?: string | undefined;
1282
- } | undefined;
1283
- lastProgressAt?: string | undefined;
1284
- stalledAt?: string | undefined;
1285
- stalledReason?: string | undefined;
1286
- reservedUsd?: number | undefined;
1287
- reservedAt?: string | undefined;
1288
- usage?: {
1289
- costUsd: number;
1290
- inputTokens: number;
1291
- outputTokens: number;
1292
- cacheReadTokens: number;
1293
- cacheWriteTokens: number;
1294
- steps: Record<string, number>;
1295
- } | undefined;
1296
- settledUsd?: number | undefined;
1297
- question?: {
1298
- text: string;
1299
- options: string[];
1300
- answer?: string | undefined;
1301
- answeredBy?: string | undefined;
1302
- } | undefined;
1303
- changeId?: string | undefined;
1304
- reportRef?: string | undefined;
1305
- };
1306
- parentTask: {
1307
- schemaVersion: 1;
1308
- id: string;
1309
- repositoryIds: string[];
1310
- kind: string;
1311
- state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
1312
- origin: {
1313
- signalId?: string | undefined;
1314
- parentTaskId?: string | undefined;
1315
- operator?: string | undefined;
1316
- };
1317
- replyTo: {
1318
- channel: string;
1319
- address: string;
1320
- };
1321
- attempt: number;
1322
- createdAt: string;
1323
- updatedAt: string;
1324
- area?: string | undefined;
1325
- approval?: "required" | "granted" | "denied" | undefined;
1326
- dependsOn?: string[] | undefined;
1327
- execution?: {
1328
- provider: string;
1329
- sessionId: string;
1330
- environmentId?: string | undefined;
1331
- harness?: string | undefined;
1332
- traceId?: string | undefined;
1333
- } | undefined;
1334
- lastProgressAt?: string | undefined;
1335
- stalledAt?: string | undefined;
1336
- stalledReason?: string | undefined;
1337
- reservedUsd?: number | undefined;
1338
- reservedAt?: string | undefined;
1339
- usage?: {
1340
- costUsd: number;
1341
- inputTokens: number;
1342
- outputTokens: number;
1343
- cacheReadTokens: number;
1344
- cacheWriteTokens: number;
1345
- steps: Record<string, number>;
1346
- } | undefined;
1347
- settledUsd?: number | undefined;
1348
- question?: {
1349
- text: string;
1350
- options: string[];
1351
- answer?: string | undefined;
1352
- answeredBy?: string | undefined;
1353
- } | undefined;
1354
- changeId?: string | undefined;
1355
- reportRef?: string | undefined;
1356
- };
1357
- }> & {
1358
- execute(input: {
1359
- questionTaskId: string;
1360
- answer: string;
1361
- }, ctx: import("eve/tools").ToolContext): Promise<{
1362
- questionTask: {
1363
- schemaVersion: 1;
1364
- id: string;
1365
- repositoryIds: string[];
1366
- kind: string;
1367
- state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
1368
- origin: {
1369
- signalId?: string | undefined;
1370
- parentTaskId?: string | undefined;
1371
- operator?: string | undefined;
1372
- };
1373
- replyTo: {
1374
- channel: string;
1375
- address: string;
1376
- };
1377
- attempt: number;
1378
- createdAt: string;
1379
- updatedAt: string;
1380
- area?: string | undefined;
1381
- approval?: "required" | "granted" | "denied" | undefined;
1382
- dependsOn?: string[] | undefined;
1383
- execution?: {
1384
- provider: string;
1385
- sessionId: string;
1386
- environmentId?: string | undefined;
1387
- harness?: string | undefined;
1388
- traceId?: string | undefined;
1389
- } | undefined;
1390
- lastProgressAt?: string | undefined;
1391
- stalledAt?: string | undefined;
1392
- stalledReason?: string | undefined;
1393
- reservedUsd?: number | undefined;
1394
- reservedAt?: string | undefined;
1395
- usage?: {
1396
- costUsd: number;
1397
- inputTokens: number;
1398
- outputTokens: number;
1399
- cacheReadTokens: number;
1400
- cacheWriteTokens: number;
1401
- steps: Record<string, number>;
1402
- } | undefined;
1403
- settledUsd?: number | undefined;
1404
- question?: {
1405
- text: string;
1406
- options: string[];
1407
- answer?: string | undefined;
1408
- answeredBy?: string | undefined;
1409
- } | undefined;
1410
- changeId?: string | undefined;
1411
- reportRef?: string | undefined;
1412
- };
1413
- parentTask: null;
1414
- } | {
1415
- questionTask: {
1416
- schemaVersion: 1;
1417
- id: string;
1418
- repositoryIds: string[];
1419
- kind: string;
1420
- state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
1421
- origin: {
1422
- signalId?: string | undefined;
1423
- parentTaskId?: string | undefined;
1424
- operator?: string | undefined;
1425
- };
1426
- replyTo: {
1427
- channel: string;
1428
- address: string;
1429
- };
1430
- attempt: number;
1431
- createdAt: string;
1432
- updatedAt: string;
1433
- area?: string | undefined;
1434
- approval?: "required" | "granted" | "denied" | undefined;
1435
- dependsOn?: string[] | undefined;
1436
- execution?: {
1437
- provider: string;
1438
- sessionId: string;
1439
- environmentId?: string | undefined;
1440
- harness?: string | undefined;
1441
- traceId?: string | undefined;
1442
- } | undefined;
1443
- lastProgressAt?: string | undefined;
1444
- stalledAt?: string | undefined;
1445
- stalledReason?: string | undefined;
1446
- reservedUsd?: number | undefined;
1447
- reservedAt?: string | undefined;
1448
- usage?: {
1449
- costUsd: number;
1450
- inputTokens: number;
1451
- outputTokens: number;
1452
- cacheReadTokens: number;
1453
- cacheWriteTokens: number;
1454
- steps: Record<string, number>;
1455
- } | undefined;
1456
- settledUsd?: number | undefined;
1457
- question?: {
1458
- text: string;
1459
- options: string[];
1460
- answer?: string | undefined;
1461
- answeredBy?: string | undefined;
1462
- } | undefined;
1463
- changeId?: string | undefined;
1464
- reportRef?: string | undefined;
1465
- };
1466
- parentTask: {
1467
- schemaVersion: 1;
1468
- id: string;
1469
- repositoryIds: string[];
1470
- kind: string;
1471
- state: "queued" | "running" | "stalled" | "verifying" | "succeeded" | "failed" | "needs_human" | "cancelled";
1472
- origin: {
1473
- signalId?: string | undefined;
1474
- parentTaskId?: string | undefined;
1475
- operator?: string | undefined;
1476
- };
1477
- replyTo: {
1478
- channel: string;
1479
- address: string;
1480
- };
1481
- attempt: number;
1482
- createdAt: string;
1483
- updatedAt: string;
1484
- area?: string | undefined;
1485
- approval?: "required" | "granted" | "denied" | undefined;
1486
- dependsOn?: string[] | undefined;
1487
- execution?: {
1488
- provider: string;
1489
- sessionId: string;
1490
- environmentId?: string | undefined;
1491
- harness?: string | undefined;
1492
- traceId?: string | undefined;
1493
- } | undefined;
1494
- lastProgressAt?: string | undefined;
1495
- stalledAt?: string | undefined;
1496
- stalledReason?: string | undefined;
1497
- reservedUsd?: number | undefined;
1498
- reservedAt?: string | undefined;
1499
- usage?: {
1500
- costUsd: number;
1501
- inputTokens: number;
1502
- outputTokens: number;
1503
- cacheReadTokens: number;
1504
- cacheWriteTokens: number;
1505
- steps: Record<string, number>;
1506
- } | undefined;
1507
- settledUsd?: number | undefined;
1508
- question?: {
1509
- text: string;
1510
- options: string[];
1511
- answer?: string | undefined;
1512
- answeredBy?: string | undefined;
1513
- } | undefined;
1514
- changeId?: string | undefined;
1515
- reportRef?: string | undefined;
1516
- };
1517
- }>;
1518
- };
1519
- append_receipt: import("eve/tools").ToolDefinition<{
1520
- repositoryIds: string[];
1521
- kind: string;
1522
- state: string;
1523
- taskId?: string | undefined;
1524
- changeId?: string | undefined;
1525
- reason?: string | undefined;
1526
- dedupeKey?: string | undefined;
1527
- }, {
1528
- schemaVersion: 1;
1529
- receiptId: string;
1530
- repositoryIds: string[];
1531
- kind: string;
1532
- state: string;
1533
- attempt: number;
1534
- recordedAt: string;
1535
- taskId?: string | undefined;
1536
- changeId?: string | undefined;
1537
- phase?: string | undefined;
1538
- reason?: string | undefined;
1539
- cost?: {
1540
- totalUsd: number;
1541
- } | undefined;
1542
- decidedBy?: string | undefined;
1543
- }> & {
1544
- execute(input: {
1545
- repositoryIds: string[];
1546
- kind: string;
1547
- state: string;
1548
- taskId?: string | undefined;
1549
- changeId?: string | undefined;
1550
- reason?: string | undefined;
1551
- dedupeKey?: string | undefined;
1552
- }, ctx: import("eve/tools").ToolContext): Promise<{
1553
- schemaVersion: 1;
1554
- receiptId: string;
1555
- repositoryIds: string[];
1556
- kind: string;
1557
- state: string;
1558
- attempt: number;
1559
- recordedAt: string;
1560
- taskId?: string | undefined;
1561
- changeId?: string | undefined;
1562
- phase?: string | undefined;
1563
- reason?: string | undefined;
1564
- cost?: {
1565
- totalUsd: number;
1566
- } | undefined;
1567
- decidedBy?: string | undefined;
1568
- }>;
1569
- };
1570
- };
1571
- type FactoryTools = ReturnType<typeof factoryTools>;
124
+ declare function createTaskTools(stores: TaskToolsStores, options?: TaskToolsOptions): TaskTools;
125
+ /** Completed conversation output, or `false` when the Task is not a conversation. */
126
+ type ConversationCompletionResult = {
127
+ readonly output: JsonValue;
128
+ } | false;
129
+ /** Configures attempt recovery, conversation completion, and transcript projection for Eve hooks. */
1572
130
  interface FactoryHooksOptions {
1573
131
  /** Session auth attribute naming the task a dispatched session works on. Default `factoryTaskId`. */
1574
132
  taskIdAttribute?: string;
133
+ /** Session auth attribute naming the execution attempt. Default `factoryTaskAttempt`. */
134
+ taskAttemptAttribute?: string;
135
+ /** Attempts allowed before an explicit provider failure becomes terminal. Default: 3. */
136
+ maxAttempts?: number;
1575
137
  /** Present the recovery question created when a task turn ends without an outcome. */
1576
138
  presentQuestion: PresentQuestion;
139
+ /** Classify discussion Tasks on failure or cancellation without collecting a successful response. */
140
+ isConversation?: (task: Task) => MaybePromise<boolean>;
141
+ /** Return the actual completed response for an opted-in discussion, or false for other work. */
142
+ completeConversation?: (task: Task) => Promise<ConversationCompletionResult>;
143
+ /** Persist the browser-safe transcript projection after Eve durably records a response boundary. */
144
+ materializeTranscript?: EveTranscriptMaterializer;
145
+ }
146
+ /** Observe-only hook for agents that do not use the Factory task-lifecycle hook. */
147
+ declare function createTranscriptSnapshotHook(materialize: EveTranscriptMaterializer): TranscriptSnapshotHook;
148
+ /** Observe-only Eve hook that materializes transcript snapshots at response boundaries. */
149
+ type TranscriptSnapshotHook = HookDefinition<"session.waiting" | "session.completed" | "session.failed">;
150
+ type FactoryHookEvent = "step.completed" | "turn.failed" | "session.failed" | "session.waiting" | "session.completed" | "turn.cancelled" | "turn.completed";
151
+ /** The Eve lifecycle hook projected onto durable Factory Task state. */
152
+ interface FactoryHooks {
153
+ readonly factory: HookDefinition<FactoryHookEvent>;
1577
154
  }
1578
155
  /**
1579
156
  * Observe-only eve hooks that keep the ledger honest about session outcomes.
1580
157
  * Mount by re-exporting from agent/hooks/, e.g.
1581
- * `export default factoryHooks(stores, { presentQuestion }).factory;`.
158
+ * `export default createFactoryHooks(stores, { presentQuestion }).factory;`.
1582
159
  *
1583
160
  * step.completed: records the step's tokens and AI Gateway cost on the bound
1584
161
  * task. Delivery is at least once; recordUsage dedupes by (turnId, stepIndex).
1585
162
  *
163
+ * turn.failed/session.failed: immediately re-queues the current attempt, or
164
+ * fails it when its configured attempts are exhausted. turn.cancelled marks
165
+ * the current Task cancelled. Late events from prior attempts are ignored.
166
+ *
1586
167
  * turn.completed: settles the bound task's recorded usage if the task is
1587
- * already terminal (the sweep handles tasks that end later), then moves any
1588
- * still-running task at this session's reply address behind a surfaced human
1589
- * question, because the agent finished talking without recording an outcome.
168
+ * already terminal, and enforces the turn contract otherwise: a still-running
169
+ * bound task (or a still-running task at this session's reply address, for
170
+ * conversational continuations that never got their own bound session)
171
+ * escalates immediately to a surfaced human question instead of waiting out
172
+ * the stall window, because the agent finished without recording an outcome.
1590
173
  *
1591
174
  * Every store call is swallowed: a hook throw fails the turn.
175
+ * Transcript projection writes at session response boundaries are likewise
176
+ * best-effort; the API can rebuild a missing projection from durable events.
1592
177
  */
1593
- declare function factoryHooks(stores: FactoryStores, options: FactoryHooksOptions): {
1594
- factory: import("eve/hooks").HookDefinition<"step.completed" | "turn.completed">;
1595
- };
1596
- type FactoryHooks = ReturnType<typeof factoryHooks>;
178
+ declare function createFactoryHooks(stores: FactoryHooksStores, options: FactoryHooksOptions): FactoryHooks;
1597
179
  //#endregion
1598
- export { type CommandSandbox, type CompletedReview, type CompletedReviewFinding, type DeepsecScanOptions, type DelegateAgentOptions, FactoryHooks, FactoryHooksOptions, FactoryTools, FactoryToolsOptions, type FetchPullRequestOptions, type FetchPullRequestResult, GateVerdict, type InvokeAgentOptions, type MergeConflictPayload, type MergeConflictToolOptions, type PostReviewToolOptions, type PublishedReview, RecordChangeInput, type RecordFindingOptions, type RecordFindingResult, type RecordVerificationOptions, type ReviewCommentToolOptions, deepsecScanTool, delegateAgentTool, factoryHooks, factoryTools, fetchPullRequestTool, findingFromDeepsec, invokeAgentTool, mergeConflictPayloadSchema, mergeConflictTools, postReviewTool, recordFinding, recordFindingTool, recordVerificationTool, reviewCommentTools };
180
+ export { AnswerQuestionTool, AnswerQuestionToolInput, AppendReceiptTool, AppendReceiptToolInput, type CancelEveSessionOptions, type ConversationBinding, ConversationCompletionResult, DecideSignalTool, DecideSignalToolInput, type DelegateAgentLaunchInput, type DelegateAgentTool, type DelegateAgentToolInput, type DelegateAgentToolOptions, type DelegateAgentToolStores, type DelegateWorkflowInput, type DelegateWorkflowPolicy, type DelegateWorkflowResult, type EveSessionEvent, type EveSessionStream, type EveSessionStreamInput, type EveTranscriptMaterializer, type EveTranscriptMaterializerOptions, type EveTranscriptRequestScope, type FactoryConversationSessionBinding, FactoryHooks, FactoryHooksOptions, FactoryHooksStores, FinishTaskRefusal, FinishTaskSuccess, FinishTaskTool, FinishTaskToolInput, FinishTaskToolResult, type ForwardEveSessionRequestOptions, GetTaskTool, GetTaskToolInput, GetTaskToolResult, HumanInputQuestion, type InvokeAgentTool, type InvokeAgentToolInput, type InvokeAgentToolOptions, type InvokeAgentToolResult, type InvokeAgentToolStores, PresentQuestion, type ReadCompletedEveTurnOptions, RequestHumanInputTool, RequestHumanInputToolInput, type StartEveSessionOptions, TaskNotFoundResult, TaskTools, TaskToolsOptions, TaskToolsStores, type TranscriptMaterializationInput, TranscriptSnapshotHook, cancelEveSession, conversationBinding, conversationBindingForSession, conversationHeaders, createDelegateAgentTool, createEveTranscriptMaterializer, createFactoryHooks, createInvokeAgentTool, createTaskTools, createTranscriptSnapshotHook, factoryReplyAddressAttribute, factoryReplyAddressHeader, factoryReplyChannelAttribute, factoryReplyChannelHeader, factoryRepositoryIdsAttribute, factoryRepositoryIdsHeader, factoryTaskAttemptAttribute, factoryTaskAttemptHeader, factoryTaskAttribute, factoryTaskHeader, forwardEveSessionRequest, hasFactoryTaskBinding, optionalTaskIdForSession, readCompletedEveTurn, replyToForSession, repositoryIdsForSession, requireTaskIdForSession, startEveSession, taskBindingForSession, taskHeaders, taskSessionAuth, withFactoryTask, withOptionalFactoryTask };
1599
181
  //# sourceMappingURL=index.d.mts.map