@1agents/acp-service 0.8.3 → 0.9.1

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 (302) hide show
  1. package/README.md +25 -13
  2. package/dist/bin/a2a.js +16 -4
  3. package/dist/bin/acp-service.js +30 -0
  4. package/dist/bin/process.d.ts +4 -0
  5. package/dist/bin/process.js +57 -0
  6. package/dist/bin/roles.d.ts +1 -0
  7. package/dist/bin/roles.js +24 -0
  8. package/dist/bin/rsi.d.ts +3 -0
  9. package/dist/bin/rsi.js +114 -0
  10. package/dist/bin/ticket.d.ts +13 -0
  11. package/dist/bin/ticket.js +97 -0
  12. package/dist/bin/trail.d.ts +4 -0
  13. package/dist/bin/trail.js +62 -0
  14. package/dist/src/a2a/artifact-content.d.ts +9 -0
  15. package/dist/src/a2a/artifact-content.js +45 -0
  16. package/dist/src/a2a/desktop-notify.d.ts +1 -0
  17. package/dist/src/a2a/desktop-notify.js +12 -0
  18. package/dist/src/a2a/execution-binding.d.ts +9 -0
  19. package/dist/src/a2a/execution-binding.js +19 -0
  20. package/dist/src/a2a/executor.d.ts +22 -1
  21. package/dist/src/a2a/executor.js +308 -22
  22. package/dist/src/a2a/gateway.d.ts +613 -1
  23. package/dist/src/a2a/gateway.js +1337 -88
  24. package/dist/src/a2a/index.d.ts +14 -1
  25. package/dist/src/a2a/index.js +8 -0
  26. package/dist/src/a2a/job-directory.d.ts +6 -0
  27. package/dist/src/a2a/job-directory.js +19 -0
  28. package/dist/src/a2a/preflight.js +16 -1
  29. package/dist/src/a2a/resubmit.d.ts +46 -0
  30. package/dist/src/a2a/resubmit.js +82 -0
  31. package/dist/src/a2a/result-metadata.d.ts +6 -0
  32. package/dist/src/a2a/result-metadata.js +25 -6
  33. package/dist/src/a2a/server.d.ts +10 -0
  34. package/dist/src/a2a/server.js +127 -2
  35. package/dist/src/a2a/session-lifecycle.d.ts +40 -0
  36. package/dist/src/a2a/session-lifecycle.js +54 -0
  37. package/dist/src/a2a/store.d.ts +4 -0
  38. package/dist/src/a2a/store.js +76 -1
  39. package/dist/src/a2a/types.d.ts +77 -1
  40. package/dist/src/a2a/types.js +11 -1
  41. package/dist/src/a2a/workbench-ui.d.ts +28 -0
  42. package/dist/src/a2a/workbench-ui.js +182 -0
  43. package/dist/src/acp-connection.js +119 -14
  44. package/dist/src/bridge.d.ts +1 -0
  45. package/dist/src/bridge.js +312 -37
  46. package/dist/src/capacity-lifecycle.d.ts +5 -0
  47. package/dist/src/capacity-lifecycle.js +57 -0
  48. package/dist/src/capacity-queue.d.ts +58 -0
  49. package/dist/src/capacity-queue.js +388 -0
  50. package/dist/src/capacity.d.ts +101 -0
  51. package/dist/src/capacity.js +416 -0
  52. package/dist/src/dsh.js +1 -1
  53. package/dist/src/execution/agent-files.d.ts +25 -0
  54. package/dist/src/execution/agent-files.js +90 -0
  55. package/dist/src/execution/agent-registry.d.ts +164 -0
  56. package/dist/src/execution/agent-registry.js +275 -0
  57. package/dist/src/execution/human-review.d.ts +105 -0
  58. package/dist/src/execution/human-review.js +89 -0
  59. package/dist/src/execution/ledger.d.ts +57 -0
  60. package/dist/src/execution/ledger.js +122 -13
  61. package/dist/src/execution/ppt-delivery.d.ts +36 -3
  62. package/dist/src/execution/ppt-delivery.js +243 -53
  63. package/dist/src/execution/process-request.d.ts +151 -0
  64. package/dist/src/execution/process-request.js +177 -0
  65. package/dist/src/execution/project-discovery.d.ts +56 -0
  66. package/dist/src/execution/project-discovery.js +429 -0
  67. package/dist/src/execution/report-review.d.ts +60 -0
  68. package/dist/src/execution/report-review.js +173 -0
  69. package/dist/src/execution/targets.d.ts +20 -0
  70. package/dist/src/execution/targets.js +23 -3
  71. package/dist/src/execution/ticket-executor.d.ts +25 -0
  72. package/dist/src/execution/ticket-executor.js +27 -0
  73. package/dist/src/execution/ticket.d.ts +326 -0
  74. package/dist/src/execution/ticket.js +301 -0
  75. package/dist/src/execution/workbench-chat.d.ts +25 -0
  76. package/dist/src/execution/workbench-chat.js +54 -0
  77. package/dist/src/execution/workbench.d.ts +162 -0
  78. package/dist/src/execution/workbench.js +356 -0
  79. package/dist/src/index.d.ts +4 -0
  80. package/dist/src/index.js +3 -0
  81. package/dist/src/roles/index.d.ts +1 -0
  82. package/dist/src/roles/index.js +1 -0
  83. package/dist/src/roles/skills.d.ts +71 -0
  84. package/dist/src/roles/skills.js +427 -0
  85. package/dist/src/rsi/gate.d.ts +25 -0
  86. package/dist/src/rsi/gate.js +59 -0
  87. package/dist/src/rsi/outline-run.d.ts +107 -0
  88. package/dist/src/rsi/outline-run.js +443 -0
  89. package/dist/workbench-ui/app.css +453 -0
  90. package/dist/workbench-ui/app.js +13 -0
  91. package/dist/workbench-ui/chunk-23JHGYT3.js +1 -0
  92. package/dist/workbench-ui/chunk-3H6STGPV.js +1 -0
  93. package/dist/workbench-ui/chunk-3SNBBMGH.js +1 -0
  94. package/dist/workbench-ui/chunk-3XJZ6DIE.js +1 -0
  95. package/dist/workbench-ui/chunk-44KDLLKJ.js +1 -0
  96. package/dist/workbench-ui/chunk-46H7FU5Y.js +7 -0
  97. package/dist/workbench-ui/chunk-4N44QPL7.js +1 -0
  98. package/dist/workbench-ui/chunk-4YN4BS7I.js +1 -0
  99. package/dist/workbench-ui/chunk-53EG4IVQ.js +96 -0
  100. package/dist/workbench-ui/chunk-5FIPUNR4.js +1 -0
  101. package/dist/workbench-ui/chunk-6DWWYA6G.js +2 -0
  102. package/dist/workbench-ui/chunk-6FU3T633.js +99 -0
  103. package/dist/workbench-ui/chunk-6XKIHRA4.js +1 -0
  104. package/dist/workbench-ui/chunk-7GIX43Y5.js +1 -0
  105. package/dist/workbench-ui/chunk-7Q4WBGX6.js +4 -0
  106. package/dist/workbench-ui/chunk-A3BQM7HR.js +1 -0
  107. package/dist/workbench-ui/chunk-AFCFDDOP.js +24 -0
  108. package/dist/workbench-ui/chunk-AG67EUYD.js +89 -0
  109. package/dist/workbench-ui/chunk-AGJHMMTN.js +1 -0
  110. package/dist/workbench-ui/chunk-AO6JUBV6.js +41 -0
  111. package/dist/workbench-ui/chunk-AUSLTP43.js +72 -0
  112. package/dist/workbench-ui/chunk-AVZL46TT.js +1 -0
  113. package/dist/workbench-ui/chunk-AZRIGIV2.js +168 -0
  114. package/dist/workbench-ui/chunk-B2LIVH37.js +1 -0
  115. package/dist/workbench-ui/chunk-B7YX5TR5.js +1 -0
  116. package/dist/workbench-ui/chunk-BCB4X4XX.js +1 -0
  117. package/dist/workbench-ui/chunk-BCRQUL2A.js +88 -0
  118. package/dist/workbench-ui/chunk-BI6UHHQP.js +1 -0
  119. package/dist/workbench-ui/chunk-BLSLQ4AQ.js +120 -0
  120. package/dist/workbench-ui/chunk-C3QSRS6E.js +1 -0
  121. package/dist/workbench-ui/chunk-CK7M2PJ3.js +62 -0
  122. package/dist/workbench-ui/chunk-CM6LZ7TU.js +1 -0
  123. package/dist/workbench-ui/chunk-CP63H27F.js +36 -0
  124. package/dist/workbench-ui/chunk-CPUMMIS2.js +70 -0
  125. package/dist/workbench-ui/chunk-CSEIBI5U.js +2 -0
  126. package/dist/workbench-ui/chunk-CUS65DKZ.js +161 -0
  127. package/dist/workbench-ui/chunk-CVQY7TNC.js +1 -0
  128. package/dist/workbench-ui/chunk-D6S3XBIX.js +106 -0
  129. package/dist/workbench-ui/chunk-E253Y562.js +1 -0
  130. package/dist/workbench-ui/chunk-EADDJUDC.js +1 -0
  131. package/dist/workbench-ui/chunk-EBGJ3YXG.js +206 -0
  132. package/dist/workbench-ui/chunk-EKPVZ3WY.js +8 -0
  133. package/dist/workbench-ui/chunk-EQDCEAFY.js +1 -0
  134. package/dist/workbench-ui/chunk-ES3SSDJY.js +40 -0
  135. package/dist/workbench-ui/chunk-ESFD2H7N.js +231 -0
  136. package/dist/workbench-ui/chunk-FVOHPMS6.js +1 -0
  137. package/dist/workbench-ui/chunk-FXMQAGVT.js +1 -0
  138. package/dist/workbench-ui/chunk-GGTADRXD.js +24 -0
  139. package/dist/workbench-ui/chunk-GHIVPGNQ.js +1 -0
  140. package/dist/workbench-ui/chunk-GLU2YQV2.js +1 -0
  141. package/dist/workbench-ui/chunk-GOCKBYSM.js +1 -0
  142. package/dist/workbench-ui/chunk-H2KMMTJB.js +1 -0
  143. package/dist/workbench-ui/chunk-HGVLDNPP.js +39 -0
  144. package/dist/workbench-ui/chunk-HSAVC5GY.js +1 -0
  145. package/dist/workbench-ui/chunk-HSEAD2JH.js +1 -0
  146. package/dist/workbench-ui/chunk-HSIHOBTY.js +1 -0
  147. package/dist/workbench-ui/chunk-IZXOKUGG.js +67 -0
  148. package/dist/workbench-ui/chunk-JFT2LC2T.js +1 -0
  149. package/dist/workbench-ui/chunk-JHL3ZDYK.js +3 -0
  150. package/dist/workbench-ui/chunk-JMORLCZG.js +257 -0
  151. package/dist/workbench-ui/chunk-JR4SIX7A.js +1 -0
  152. package/dist/workbench-ui/chunk-K23HAGEH.js +30 -0
  153. package/dist/workbench-ui/chunk-K43JDCBH.js +1 -0
  154. package/dist/workbench-ui/chunk-KINKFJY7.js +1 -0
  155. package/dist/workbench-ui/chunk-KKQSA4LI.js +2 -0
  156. package/dist/workbench-ui/chunk-KOUZX3UX.js +1 -0
  157. package/dist/workbench-ui/chunk-KR4DRHW2.js +78 -0
  158. package/dist/workbench-ui/chunk-KT4DJNOR.js +1 -0
  159. package/dist/workbench-ui/chunk-KTPNKRRZ.js +292 -0
  160. package/dist/workbench-ui/chunk-LFHIPGSU.js +7 -0
  161. package/dist/workbench-ui/chunk-LWDL4HZB.js +125 -0
  162. package/dist/workbench-ui/chunk-MVYC3CY4.js +1 -0
  163. package/dist/workbench-ui/chunk-NWUPALCY.js +129 -0
  164. package/dist/workbench-ui/chunk-NY7C662Z.js +1 -0
  165. package/dist/workbench-ui/chunk-O76WTHWP.js +1 -0
  166. package/dist/workbench-ui/chunk-OTF7YHRE.js +162 -0
  167. package/dist/workbench-ui/chunk-P6TKKRKP.js +1 -0
  168. package/dist/workbench-ui/chunk-PFHOOWV3.js +1 -0
  169. package/dist/workbench-ui/chunk-PUQLANIM.js +1 -0
  170. package/dist/workbench-ui/chunk-PZCGBYVO.js +1 -0
  171. package/dist/workbench-ui/chunk-QOHUZGP4.js +1 -0
  172. package/dist/workbench-ui/chunk-QSEG3OFF.js +1 -0
  173. package/dist/workbench-ui/chunk-QYPOXZIA.js +84 -0
  174. package/dist/workbench-ui/chunk-R6SOF3JC.js +1 -0
  175. package/dist/workbench-ui/chunk-RCLOYU5F.js +1 -0
  176. package/dist/workbench-ui/chunk-RSRUP64S.js +1 -0
  177. package/dist/workbench-ui/chunk-RVAIT6JW.js +1 -0
  178. package/dist/workbench-ui/chunk-S2CCN3II.js +1 -0
  179. package/dist/workbench-ui/chunk-S2Q52W46.js +1 -0
  180. package/dist/workbench-ui/chunk-S2W5THJ5.js +1 -0
  181. package/dist/workbench-ui/chunk-S6ZQZNOX.js +1 -0
  182. package/dist/workbench-ui/chunk-S74PLMMS.js +1 -0
  183. package/dist/workbench-ui/chunk-S7C4HKEY.js +1 -0
  184. package/dist/workbench-ui/chunk-SDTB3Q65.js +1 -0
  185. package/dist/workbench-ui/chunk-SLPRGYUV.js +32 -0
  186. package/dist/workbench-ui/chunk-SQE76S5B.js +1 -0
  187. package/dist/workbench-ui/chunk-SSDZPVPW.js +1 -0
  188. package/dist/workbench-ui/chunk-SVI7DGIE.js +1 -0
  189. package/dist/workbench-ui/chunk-T6QKLZ4H.js +62 -0
  190. package/dist/workbench-ui/chunk-TJNRPTFL.js +1 -0
  191. package/dist/workbench-ui/chunk-TP6U4EDH.js +2 -0
  192. package/dist/workbench-ui/chunk-TYAAT3GQ.js +1 -0
  193. package/dist/workbench-ui/chunk-U6OCY4ZH.js +1 -0
  194. package/dist/workbench-ui/chunk-UAN3NLRF.js +1 -0
  195. package/dist/workbench-ui/chunk-UMLU3FIX.js +1 -0
  196. package/dist/workbench-ui/chunk-URIY2OTM.js +1 -0
  197. package/dist/workbench-ui/chunk-V2NUKAA7.js +38 -0
  198. package/dist/workbench-ui/chunk-V4QLL4TE.js +139 -0
  199. package/dist/workbench-ui/chunk-VASHXUK4.js +2 -0
  200. package/dist/workbench-ui/chunk-VJLIWNIU.js +1 -0
  201. package/dist/workbench-ui/chunk-VQNQFBID.js +1 -0
  202. package/dist/workbench-ui/chunk-VSIWU7XA.js +3 -0
  203. package/dist/workbench-ui/chunk-VSJASPUZ.js +321 -0
  204. package/dist/workbench-ui/chunk-VXPNUNUX.js +3 -0
  205. package/dist/workbench-ui/chunk-WBKLDCV6.js +1 -0
  206. package/dist/workbench-ui/chunk-WOKJM3FY.js +1 -0
  207. package/dist/workbench-ui/chunk-X3U3NA3X.js +34 -0
  208. package/dist/workbench-ui/chunk-XBYU7M4J.js +1 -0
  209. package/dist/workbench-ui/chunk-XBZAO4ID.js +10 -0
  210. package/dist/workbench-ui/chunk-XLLPZ2WO.js +1 -0
  211. package/dist/workbench-ui/chunk-YFVL4NJL.js +1 -0
  212. package/dist/workbench-ui/chunk-YRFQENM4.js +1 -0
  213. package/dist/workbench-ui/chunk-YUADQVB2.js +1 -0
  214. package/dist/workbench-ui/chunk-Z3TCAKM5.js +1 -0
  215. package/dist/workbench-ui/chunk-Z6QR6FRE.js +10 -0
  216. package/dist/workbench-ui/chunk-ZJPSORPP.js +3 -0
  217. package/dist/workbench-ui/chunk-ZLGCSTR2.js +15 -0
  218. package/dist/workbench-ui/chunk-ZLR4SG5X.js +1 -0
  219. package/dist/workbench-ui/chunk-ZND3TTGF.js +1 -0
  220. package/dist/workbench-ui/chunk-ZOP3ZYH7.js +2 -0
  221. package/dist/workbench-ui/index.html +14 -0
  222. package/package.json +23 -8
  223. package/skills/acp-service/SKILL.md +24 -8
  224. package/skills/acp-service/references/a2a.md +24 -8
  225. package/skills/acp-service/references/async-caller.md +48 -0
  226. package/skills/acp-service/references/dsh.md +2 -0
  227. package/skills/acp-service/references/roles-and-tasks.md +120 -0
  228. package/skills/acp-service/scripts/a2a-caller.py +242 -0
  229. package/skills/rsi-coach/SKILL.md +134 -0
  230. package/vendor/dsh/README.md +11 -5
  231. package/vendor/dsh/a2a-executor.d.ts +60 -3
  232. package/vendor/dsh/a2a-executor.js +208 -18
  233. package/vendor/dsh/a2a.d.ts +12 -2
  234. package/vendor/dsh/a2a.js +9 -2
  235. package/vendor/dsh/adapter.d.ts +61 -2
  236. package/vendor/dsh/adapter.js +354 -23
  237. package/vendor/dsh/client.js +67 -11
  238. package/vendor/dsh/index.js +57 -4
  239. package/vendor/dsh/native-approvals.d.ts +4 -0
  240. package/vendor/dsh/native-approvals.js +44 -0
  241. package/vendor/dsh/preset-route.d.ts +49 -0
  242. package/vendor/dsh/preset-route.js +51 -0
  243. package/vendor/dsh/preset.js +10 -3
  244. package/vendor/dsh/process-admission.d.ts +25 -0
  245. package/vendor/dsh/process-admission.js +87 -0
  246. package/vendor/dsh/process-requests.d.ts +57 -0
  247. package/vendor/dsh/process-requests.js +49 -0
  248. package/vendor/dsh/review-mcp.d.ts +1 -0
  249. package/vendor/dsh/review-mcp.js +56 -0
  250. package/vendor/dsh/review.d.ts +30 -0
  251. package/vendor/dsh/review.js +149 -0
  252. package/vendor/dsh/session-settings.d.ts +34 -0
  253. package/vendor/dsh/session-settings.js +114 -0
  254. package/vendor/dsh/ticket-spec.d.ts +30 -0
  255. package/vendor/dsh/ticket-spec.js +10 -0
  256. package/vendor/dsh/ticket-tools.d.ts +21 -0
  257. package/vendor/dsh/ticket-tools.js +43 -0
  258. package/vendor/dsh/workbench.d.ts +18 -0
  259. package/vendor/dsh/workbench.js +91 -0
  260. package/vendor/runtime/README.md +6 -4
  261. package/vendor/runtime/dist/{cli-DeOpE2Xz.js → cli-DXmYwv3U.js} +4 -4
  262. package/vendor/runtime/dist/{cli-DeOpE2Xz.js.map → cli-DXmYwv3U.js.map} +1 -1
  263. package/vendor/runtime/dist/cli.js +7 -7
  264. package/vendor/runtime/dist/client-VQsqcIOJ.d.ts.map +1 -1
  265. package/vendor/runtime/dist/docs-site/CLI.html +2 -2
  266. package/vendor/runtime/dist/docs-site/VISION.html +2 -2
  267. package/vendor/runtime/dist/docs-site/agents.html +2 -2
  268. package/vendor/runtime/dist/docs-site/compare.html +2 -2
  269. package/vendor/runtime/dist/docs-site/config.html +2 -2
  270. package/vendor/runtime/dist/docs-site/custom-agents.html +2 -2
  271. package/vendor/runtime/dist/docs-site/exit-codes.html +2 -2
  272. package/vendor/runtime/dist/docs-site/flows.html +2 -2
  273. package/vendor/runtime/dist/docs-site/index.html +1 -1
  274. package/vendor/runtime/dist/docs-site/install.html +2 -2
  275. package/vendor/runtime/dist/docs-site/llms.txt +1 -1
  276. package/vendor/runtime/dist/docs-site/output-formats.html +2 -2
  277. package/vendor/runtime/dist/docs-site/permissions.html +2 -2
  278. package/vendor/runtime/dist/docs-site/prompting.html +2 -2
  279. package/vendor/runtime/dist/docs-site/quickstart.html +2 -2
  280. package/vendor/runtime/dist/docs-site/releasing.html +2 -2
  281. package/vendor/runtime/dist/docs-site/runtime-environment.html +2 -2
  282. package/vendor/runtime/dist/docs-site/runtime-process-lifecycle.html +3 -2
  283. package/vendor/runtime/dist/docs-site/safe-errors.html +2 -2
  284. package/vendor/runtime/dist/docs-site/session-control.html +2 -2
  285. package/vendor/runtime/dist/docs-site/session-watch.html +2 -2
  286. package/vendor/runtime/dist/docs-site/sessions.html +2 -2
  287. package/vendor/runtime/dist/docs-site/shared-sessions.html +2 -2
  288. package/vendor/runtime/dist/{flows-oaBGn31w.js → flows-DJ17ajbw.js} +3 -3
  289. package/vendor/runtime/dist/{flows-oaBGn31w.js.map → flows-DJ17ajbw.js.map} +1 -1
  290. package/vendor/runtime/dist/flows.js +1 -1
  291. package/vendor/runtime/dist/{invocation-options-CUDEE8vW.js → invocation-options-PBfCgrdi.js} +3 -3
  292. package/vendor/runtime/dist/{invocation-options-CUDEE8vW.js.map → invocation-options-PBfCgrdi.js.map} +1 -1
  293. package/vendor/runtime/dist/{output-CFv3jcOQ.js → output-B3MDn7kv.js} +2 -2
  294. package/vendor/runtime/dist/{output-CFv3jcOQ.js.map → output-B3MDn7kv.js.map} +1 -1
  295. package/vendor/runtime/dist/{queue-owner-runtime-DvMJiGbP.js → queue-owner-runtime-DXCVngwU.js} +15 -8
  296. package/vendor/runtime/dist/queue-owner-runtime-DXCVngwU.js.map +1 -0
  297. package/vendor/runtime/dist/runtime.js +1 -1
  298. package/vendor/runtime/dist/{session-watch-Di-wIdCH.js → session-watch-DURyCw31.js} +2 -2
  299. package/vendor/runtime/dist/{session-watch-Di-wIdCH.js.map → session-watch-DURyCw31.js.map} +1 -1
  300. package/vendor/runtime/package.json +6 -4
  301. package/vendor/runtime/skills/acpx/SKILL.md +2 -0
  302. package/vendor/runtime/dist/queue-owner-runtime-DvMJiGbP.js.map +0 -1
@@ -1,8 +1,14 @@
1
1
  import { z } from 'zod';
2
2
  import { A2AAutomation } from './automation.js';
3
3
  import { SessionDelivery } from './session-delivery.js';
4
+ import { type CloseReason } from './session-lifecycle.js';
5
+ import { type CapacityInspection } from '../capacity.js';
4
6
  import { TargetDirectory } from '../execution/targets.js';
7
+ import { ProjectRoleDiscovery } from '../execution/project-discovery.js';
5
8
  import { JobLedger } from '../execution/ledger.js';
9
+ import { type ProcessRequest } from '../execution/process-request.js';
10
+ import { type WorkbenchListQuery } from '../execution/workbench.js';
11
+ import { AgentRegistry } from '../execution/agent-registry.js';
6
12
  export type { RemoteAgentNotice } from './notices.js';
7
13
  declare const configSchema: z.ZodObject<{
8
14
  stateDirectory: z.ZodString;
@@ -46,6 +52,13 @@ declare const configSchema: z.ZodObject<{
46
52
  }, z.core.$strict>>;
47
53
  processingLeaseMs: z.ZodDefault<z.ZodNumber>;
48
54
  }, z.core.$strict>>;
55
+ projectDiscovery: z.ZodOptional<z.ZodObject<{
56
+ readerExecutable: z.ZodDefault<z.ZodString>;
57
+ allowedRoots: z.ZodArray<z.ZodString>;
58
+ explicitRoots: z.ZodDefault<z.ZodArray<z.ZodString>>;
59
+ timeoutMs: z.ZodDefault<z.ZodNumber>;
60
+ maxProjects: z.ZodDefault<z.ZodNumber>;
61
+ }, z.core.$strict>>;
49
62
  pollIntervalMs: z.ZodDefault<z.ZodNumber>;
50
63
  pptDelivery: z.ZodOptional<z.ZodObject<{
51
64
  version: z.ZodDefault<z.ZodString>;
@@ -66,13 +79,41 @@ declare const configSchema: z.ZodObject<{
66
79
  runtimeDocument: z.ZodString;
67
80
  designSkill: z.ZodString;
68
81
  pythonExecutable: z.ZodString;
82
+ roleSkills: z.ZodOptional<z.ZodObject<{
83
+ profilePath: z.ZodString;
84
+ cacheRoot: z.ZodString;
85
+ }, z.core.$strict>>;
69
86
  nodeExecutable: z.ZodOptional<z.ZodString>;
70
87
  nodeModuleRoot: z.ZodOptional<z.ZodString>;
71
88
  maxRevisionRounds: z.ZodDefault<z.ZodNumber>;
72
89
  maxExecutionRetries: z.ZodDefault<z.ZodNumber>;
73
90
  maxDurationMs: z.ZodDefault<z.ZodNumber>;
91
+ requireHumanReview: z.ZodDefault<z.ZodBoolean>;
92
+ humanReviewerId: z.ZodDefault<z.ZodString>;
74
93
  httpTimeoutMs: z.ZodDefault<z.ZodNumber>;
75
94
  }, z.core.$strict>>;
95
+ reportReview: z.ZodOptional<z.ZodObject<{
96
+ workspaceRoot: z.ZodString;
97
+ allowedProjectRoots: z.ZodArray<z.ZodString>;
98
+ allowedRemotes: z.ZodArray<z.ZodString>;
99
+ }, z.core.$strict>>;
100
+ workbench: z.ZodOptional<z.ZodObject<{
101
+ token: z.ZodOptional<z.ZodString>;
102
+ reviewerId: z.ZodDefault<z.ZodString>;
103
+ reviewerName: z.ZodOptional<z.ZodString>;
104
+ publicBaseUrl: z.ZodOptional<z.ZodString>;
105
+ pageRelaySecret: z.ZodOptional<z.ZodString>;
106
+ allowedOrigins: z.ZodOptional<z.ZodArray<z.ZodString>>;
107
+ requestTimeoutMinutes: z.ZodDefault<z.ZodNumber>;
108
+ desktopNotifications: z.ZodDefault<z.ZodBoolean>;
109
+ }, z.core.$strict>>;
110
+ capacityDirectory: z.ZodOptional<z.ZodString>;
111
+ sessionLifecycle: z.ZodDefault<z.ZodObject<{
112
+ persistentIdleTtlSeconds: z.ZodDefault<z.ZodNumber>;
113
+ idleScanIntervalMs: z.ZodDefault<z.ZodNumber>;
114
+ inputRequiredAlertSeconds: z.ZodDefault<z.ZodNumber>;
115
+ allowDelete: z.ZodDefault<z.ZodBoolean>;
116
+ }, z.core.$strict>>;
76
117
  }, z.core.$strict>;
77
118
  export type A2AGatewayConfig = z.input<typeof configSchema>;
78
119
  type Config = z.output<typeof configSchema>;
@@ -106,6 +147,8 @@ export declare const REMOTE_AGENT_METHODS: {
106
147
  agentPreset: z.ZodOptional<z.ZodString>;
107
148
  notificationTarget: z.ZodOptional<z.ZodString>;
108
149
  title: z.ZodOptional<z.ZodString>;
150
+ roleId: z.ZodOptional<z.ZodString>;
151
+ roleLockPath: z.ZodOptional<z.ZodString>;
109
152
  preflight: z.ZodOptional<z.ZodObject<{
110
153
  allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
111
154
  jobDirectory: z.ZodOptional<z.ZodString>;
@@ -128,6 +171,27 @@ export declare const REMOTE_AGENT_METHODS: {
128
171
  artifactManifestPath: z.ZodOptional<z.ZodString>;
129
172
  }, z.core.$strict>>;
130
173
  clientRequestId: z.ZodOptional<z.ZodString>;
174
+ lifecycle: z.ZodOptional<z.ZodObject<{
175
+ mode: z.ZodDefault<z.ZodEnum<{
176
+ persistent: "persistent";
177
+ "one-shot": "one-shot";
178
+ }>>;
179
+ idleTtlSeconds: z.ZodOptional<z.ZodNumber>;
180
+ closeAfter: z.ZodOptional<z.ZodEnum<{
181
+ terminal: "terminal";
182
+ ack: "ack";
183
+ }>>;
184
+ }, z.core.$strict>>;
185
+ provider: z.ZodOptional<z.ZodString>;
186
+ model: z.ZodOptional<z.ZodString>;
187
+ initiatedBy: z.ZodOptional<z.ZodObject<{
188
+ kind: z.ZodEnum<{
189
+ person: "person";
190
+ coach: "coach";
191
+ }>;
192
+ agent: z.ZodOptional<z.ZodString>;
193
+ sessionId: z.ZodOptional<z.ZodString>;
194
+ }, z.core.$strict>>;
131
195
  originSessionId: z.ZodString;
132
196
  }, z.core.$strict>>;
133
197
  };
@@ -151,7 +215,17 @@ export declare const REMOTE_AGENT_METHODS: {
151
215
  description: string;
152
216
  parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
153
217
  prompt: z.ZodString;
218
+ initiatedBy: z.ZodOptional<z.ZodObject<{
219
+ kind: z.ZodEnum<{
220
+ person: "person";
221
+ coach: "coach";
222
+ }>;
223
+ agent: z.ZodOptional<z.ZodString>;
224
+ sessionId: z.ZodOptional<z.ZodString>;
225
+ }, z.core.$strict>>;
154
226
  clientRequestId: z.ZodOptional<z.ZodString>;
227
+ roleId: z.ZodOptional<z.ZodString>;
228
+ roleLockPath: z.ZodOptional<z.ZodString>;
155
229
  preflight: z.ZodOptional<z.ZodObject<{
156
230
  allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
157
231
  jobDirectory: z.ZodOptional<z.ZodString>;
@@ -173,11 +247,45 @@ export declare const REMOTE_AGENT_METHODS: {
173
247
  originSessionId: z.ZodOptional<z.ZodString>;
174
248
  artifactManifestPath: z.ZodOptional<z.ZodString>;
175
249
  }, z.core.$strict>>;
250
+ lifecycle: z.ZodOptional<z.ZodObject<{
251
+ mode: z.ZodDefault<z.ZodEnum<{
252
+ persistent: "persistent";
253
+ "one-shot": "one-shot";
254
+ }>>;
255
+ idleTtlSeconds: z.ZodOptional<z.ZodNumber>;
256
+ closeAfter: z.ZodOptional<z.ZodEnum<{
257
+ terminal: "terminal";
258
+ ack: "ack";
259
+ }>>;
260
+ }, z.core.$strict>>;
261
+ autoResume: z.ZodOptional<z.ZodBoolean>;
262
+ provider: z.ZodOptional<z.ZodString>;
263
+ model: z.ZodOptional<z.ZodString>;
176
264
  remote: z.ZodString;
177
265
  taskId: z.ZodString;
178
266
  originSessionId: z.ZodString;
179
267
  }, z.core.$strict>>;
180
268
  };
269
+ remote_agent_close: {
270
+ description: string;
271
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
272
+ remote: z.ZodString;
273
+ taskId: z.ZodOptional<z.ZodString>;
274
+ contextId: z.ZodOptional<z.ZodString>;
275
+ sessionId: z.ZodOptional<z.ZodString>;
276
+ mode: z.ZodOptional<z.ZodEnum<{
277
+ delete: "delete";
278
+ close: "close";
279
+ }>>;
280
+ force: z.ZodOptional<z.ZodBoolean>;
281
+ clientRequestId: z.ZodOptional<z.ZodString>;
282
+ originSessionId: z.ZodString;
283
+ }, z.core.$strict>>;
284
+ };
285
+ remote_agent_sessions: {
286
+ description: string;
287
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{}, z.core.$strict>>;
288
+ };
181
289
  remote_agent_list: {
182
290
  description: string;
183
291
  parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
@@ -230,6 +338,174 @@ export declare const REMOTE_AGENT_METHODS: {
230
338
  hostReceiptId: z.ZodOptional<z.ZodString>;
231
339
  }, z.core.$strict>>;
232
340
  };
341
+ ticket_get: {
342
+ description: string;
343
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
344
+ originSessionId: z.ZodString;
345
+ jobId: z.ZodString;
346
+ }, z.core.$strict>>;
347
+ };
348
+ ticket_open: {
349
+ description: string;
350
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
351
+ originSessionId: z.ZodString;
352
+ jobId: z.ZodString;
353
+ roleId: z.ZodString;
354
+ caseId: z.ZodString;
355
+ exportPath: z.ZodOptional<z.ZodString>;
356
+ }, z.core.$strict>>;
357
+ };
358
+ ticket_checks: {
359
+ description: string;
360
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
361
+ originSessionId: z.ZodString;
362
+ jobId: z.ZodString;
363
+ results: z.ZodArray<z.ZodObject<{
364
+ itemId: z.ZodString;
365
+ pass: z.ZodBoolean;
366
+ evidence: z.ZodArray<z.ZodUnknown>;
367
+ }, z.core.$strict>>;
368
+ }, z.core.$strict>>;
369
+ };
370
+ ticket_review: {
371
+ description: string;
372
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
373
+ originSessionId: z.ZodString;
374
+ jobId: z.ZodString;
375
+ review: z.ZodObject<{
376
+ verdict: z.ZodEnum<{
377
+ pass: "pass";
378
+ revise: "revise";
379
+ }>;
380
+ summary: z.ZodString;
381
+ scores: z.ZodRecord<z.ZodString, z.ZodNumber>;
382
+ issues: z.ZodArray<z.ZodObject<{
383
+ where: z.ZodString;
384
+ problem: z.ZodString;
385
+ suggestion: z.ZodString;
386
+ severity: z.ZodEnum<{
387
+ must: "must";
388
+ should: "should";
389
+ }>;
390
+ }, z.core.$strict>>;
391
+ previous: z.ZodOptional<z.ZodArray<z.ZodObject<{
392
+ id: z.ZodString;
393
+ status: z.ZodEnum<{
394
+ fixed: "fixed";
395
+ partly: "partly";
396
+ not_fixed: "not_fixed";
397
+ withdrawn: "withdrawn";
398
+ }>;
399
+ note: z.ZodOptional<z.ZodString>;
400
+ }, z.core.$strict>>>;
401
+ proposals: z.ZodOptional<z.ZodArray<z.ZodObject<{
402
+ kind: z.ZodEnum<{
403
+ check: "check";
404
+ role: "role";
405
+ qa: "qa";
406
+ locked: "locked";
407
+ }>;
408
+ text: z.ZodString;
409
+ }, z.core.$strict>>>;
410
+ }, z.core.$loose>;
411
+ qaJobId: z.ZodOptional<z.ZodString>;
412
+ }, z.core.$strict>>;
413
+ };
414
+ ticket_revise: {
415
+ description: string;
416
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
417
+ originSessionId: z.ZodString;
418
+ jobId: z.ZodString;
419
+ note: z.ZodOptional<z.ZodString>;
420
+ }, z.core.$strict>>;
421
+ };
422
+ ticket_show: {
423
+ description: string;
424
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
425
+ jobId: z.ZodString;
426
+ attemptId: z.ZodOptional<z.ZodString>;
427
+ sessionId: z.ZodOptional<z.ZodString>;
428
+ via: z.ZodOptional<z.ZodEnum<{
429
+ cli: "cli";
430
+ dsh: "dsh";
431
+ mcp: "mcp";
432
+ }>>;
433
+ }, z.core.$strict>>;
434
+ };
435
+ ticket_mark: {
436
+ description: string;
437
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
438
+ jobId: z.ZodString;
439
+ attemptId: z.ZodOptional<z.ZodString>;
440
+ sessionId: z.ZodOptional<z.ZodString>;
441
+ via: z.ZodOptional<z.ZodEnum<{
442
+ cli: "cli";
443
+ dsh: "dsh";
444
+ mcp: "mcp";
445
+ }>>;
446
+ itemId: z.ZodString;
447
+ state: z.ZodEnum<{
448
+ done: "done";
449
+ disputed: "disputed";
450
+ }>;
451
+ note: z.ZodString;
452
+ }, z.core.$strict>>;
453
+ };
454
+ ticket_submit: {
455
+ description: string;
456
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
457
+ jobId: z.ZodString;
458
+ attemptId: z.ZodOptional<z.ZodString>;
459
+ sessionId: z.ZodOptional<z.ZodString>;
460
+ via: z.ZodOptional<z.ZodEnum<{
461
+ cli: "cli";
462
+ dsh: "dsh";
463
+ mcp: "mcp";
464
+ }>>;
465
+ }, z.core.$strict>>;
466
+ };
467
+ ticket_proposal: {
468
+ description: string;
469
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
470
+ originSessionId: z.ZodString;
471
+ jobId: z.ZodString;
472
+ proposalId: z.ZodString;
473
+ state: z.ZodEnum<{
474
+ done: "done";
475
+ accepted: "accepted";
476
+ rejected: "rejected";
477
+ }>;
478
+ note: z.ZodOptional<z.ZodString>;
479
+ by: z.ZodOptional<z.ZodObject<{
480
+ kind: z.ZodEnum<{
481
+ person: "person";
482
+ coach: "coach";
483
+ }>;
484
+ agent: z.ZodOptional<z.ZodString>;
485
+ sessionId: z.ZodOptional<z.ZodString>;
486
+ }, z.core.$strict>>;
487
+ }, z.core.$strict>>;
488
+ };
489
+ ticket_close: {
490
+ description: string;
491
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
492
+ originSessionId: z.ZodString;
493
+ jobId: z.ZodString;
494
+ status: z.ZodEnum<{
495
+ stopped: "stopped";
496
+ closed: "closed";
497
+ }>;
498
+ stopReason: z.ZodOptional<z.ZodString>;
499
+ }, z.core.$strict>>;
500
+ };
501
+ ticket_reopen: {
502
+ description: string;
503
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
504
+ originSessionId: z.ZodString;
505
+ jobId: z.ZodString;
506
+ note: z.ZodOptional<z.ZodString>;
507
+ }, z.core.$strict>>;
508
+ };
233
509
  execution_submit: {
234
510
  description: string;
235
511
  parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
@@ -248,6 +524,14 @@ export declare const REMOTE_AGENT_METHODS: {
248
524
  sourceId: z.ZodString;
249
525
  jobId: z.ZodString;
250
526
  }, z.core.$strict>>;
527
+ initiatedBy: z.ZodOptional<z.ZodObject<{
528
+ kind: z.ZodEnum<{
529
+ person: "person";
530
+ coach: "coach";
531
+ }>;
532
+ agent: z.ZodOptional<z.ZodString>;
533
+ sessionId: z.ZodOptional<z.ZodString>;
534
+ }, z.core.$strict>>;
251
535
  originSessionId: z.ZodString;
252
536
  }, z.core.$strict>>;
253
537
  };
@@ -258,6 +542,14 @@ export declare const REMOTE_AGENT_METHODS: {
258
542
  originSessionId: z.ZodString;
259
543
  input: z.ZodRecord<z.ZodString, z.ZodUnknown>;
260
544
  clientRequestId: z.ZodOptional<z.ZodString>;
545
+ initiatedBy: z.ZodOptional<z.ZodObject<{
546
+ kind: z.ZodEnum<{
547
+ person: "person";
548
+ coach: "coach";
549
+ }>;
550
+ agent: z.ZodOptional<z.ZodString>;
551
+ sessionId: z.ZodOptional<z.ZodString>;
552
+ }, z.core.$strict>>;
261
553
  }, z.core.$strict>>;
262
554
  };
263
555
  execution_cancel: {
@@ -308,6 +600,62 @@ export declare const REMOTE_AGENT_METHODS: {
308
600
  changes_requested: "changes_requested";
309
601
  }>;
310
602
  note: z.ZodOptional<z.ZodString>;
603
+ decidedBy: z.ZodObject<{
604
+ kind: z.ZodEnum<{
605
+ person: "person";
606
+ coach: "coach";
607
+ }>;
608
+ agent: z.ZodOptional<z.ZodString>;
609
+ sessionId: z.ZodOptional<z.ZodString>;
610
+ }, z.core.$strict>;
611
+ }, z.core.$strict>>;
612
+ };
613
+ execution_rewatch: {
614
+ description: string;
615
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
616
+ jobId: z.ZodString;
617
+ originSessionId: z.ZodString;
618
+ }, z.core.$strict>>;
619
+ };
620
+ execution_unwatch: {
621
+ description: string;
622
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
623
+ jobId: z.ZodString;
624
+ originSessionId: z.ZodString;
625
+ reason: z.ZodString;
626
+ }, z.core.$strict>>;
627
+ };
628
+ execution_process_requests: {
629
+ description: string;
630
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
631
+ jobId: z.ZodString;
632
+ originSessionId: z.ZodString;
633
+ }, z.core.$strict>>;
634
+ };
635
+ execution_process_answer: {
636
+ description: string;
637
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
638
+ jobId: z.ZodString;
639
+ originSessionId: z.ZodString;
640
+ requestId: z.ZodString;
641
+ clientRequestId: z.ZodString;
642
+ outcome: z.ZodEnum<{
643
+ cancelled: "cancelled";
644
+ abandoned: "abandoned";
645
+ accepted: "accepted";
646
+ rejected: "rejected";
647
+ approved: "approved";
648
+ }>;
649
+ note: z.ZodOptional<z.ZodString>;
650
+ stopTask: z.ZodOptional<z.ZodLiteral<true>>;
651
+ decidedBy: z.ZodOptional<z.ZodObject<{
652
+ kind: z.ZodEnum<{
653
+ person: "person";
654
+ coach: "coach";
655
+ }>;
656
+ agent: z.ZodOptional<z.ZodString>;
657
+ sessionId: z.ZodOptional<z.ZodString>;
658
+ }, z.core.$strict>>;
311
659
  }, z.core.$strict>>;
312
660
  };
313
661
  execution_inbox: {
@@ -323,6 +671,28 @@ export declare const REMOTE_AGENT_METHODS: {
323
671
  originSessionId: z.ZodString;
324
672
  }, z.core.$strict>>;
325
673
  };
674
+ execution_project_scan: {
675
+ description: string;
676
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{}, z.core.$strict>>;
677
+ };
678
+ execution_project_list: {
679
+ description: string;
680
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{}, z.core.$strict>>;
681
+ };
682
+ execution_discovery_config_get: {
683
+ description: string;
684
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{}, z.core.$strict>>;
685
+ };
686
+ execution_discovery_config_update: {
687
+ description: string;
688
+ parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{
689
+ mode: z.ZodEnum<{
690
+ manual: "manual";
691
+ interval: "interval";
692
+ }>;
693
+ intervalMs: z.ZodOptional<z.ZodNumber>;
694
+ }, z.core.$strict>>;
695
+ };
326
696
  execution_connection_list: {
327
697
  description: string;
328
698
  parameters: z.core.ZodStandardJSONSchemaPayload<z.ZodObject<{}, z.core.$strict>>;
@@ -414,11 +784,15 @@ export declare const REMOTE_AGENT_METHODS: {
414
784
  agentPreset: z.ZodOptional<z.ZodString>;
415
785
  roleId: z.ZodOptional<z.ZodString>;
416
786
  skillRefs: z.ZodOptional<z.ZodArray<z.ZodString>>;
787
+ skillPolicy: z.ZodOptional<z.ZodLiteral<"network_pinned">>;
417
788
  allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
418
789
  allowedPresets: z.ZodOptional<z.ZodArray<z.ZodString>>;
419
790
  flowId: z.ZodOptional<z.ZodString>;
420
791
  flowVersion: z.ZodOptional<z.ZodString>;
421
792
  driver: z.ZodOptional<z.ZodLiteral<"ppt_delivery">>;
793
+ agentFile: z.ZodOptional<z.ZodString>;
794
+ provider: z.ZodOptional<z.ZodString>;
795
+ model: z.ZodOptional<z.ZodString>;
422
796
  }, z.core.$strict>>;
423
797
  }, z.core.$strict>>;
424
798
  };
@@ -451,11 +825,15 @@ export declare const REMOTE_AGENT_METHODS: {
451
825
  agentPreset: z.ZodOptional<z.ZodString>;
452
826
  roleId: z.ZodOptional<z.ZodString>;
453
827
  skillRefs: z.ZodOptional<z.ZodArray<z.ZodString>>;
828
+ skillPolicy: z.ZodOptional<z.ZodLiteral<"network_pinned">>;
454
829
  allowedDirectories: z.ZodOptional<z.ZodArray<z.ZodString>>;
455
830
  allowedPresets: z.ZodOptional<z.ZodArray<z.ZodString>>;
456
831
  flowId: z.ZodOptional<z.ZodString>;
457
832
  flowVersion: z.ZodOptional<z.ZodString>;
458
833
  driver: z.ZodOptional<z.ZodLiteral<"ppt_delivery">>;
834
+ agentFile: z.ZodOptional<z.ZodString>;
835
+ provider: z.ZodOptional<z.ZodString>;
836
+ model: z.ZodOptional<z.ZodString>;
459
837
  }, z.core.$strict>>;
460
838
  }, z.core.$strict>;
461
839
  }, z.core.$strict>>;
@@ -474,11 +852,22 @@ export declare const REMOTE_AGENT_METHODS: {
474
852
  }, z.core.$strict>>;
475
853
  };
476
854
  };
855
+ export declare class WorkbenchArtifactError extends Error {
856
+ readonly status: 404 | 409 | 413 | 502;
857
+ readonly code: string;
858
+ constructor(status: 404 | 409 | 413 | 502, code: string);
859
+ }
860
+ export declare class RemoteAgentError extends Error {
861
+ readonly code: 'SESSION_NOT_FOUND' | 'SESSION_DELETED' | 'SESSION_CLOSED' | 'SESSION_BUSY' | 'SESSION_CONFLICT' | 'SESSION_ATTACH_IN_PROGRESS' | 'UNSUPPORTED' | 'REMOTE_UNAVAILABLE' | 'DELETE_DISABLED';
862
+ constructor(code: 'SESSION_NOT_FOUND' | 'SESSION_DELETED' | 'SESSION_CLOSED' | 'SESSION_BUSY' | 'SESSION_CONFLICT' | 'SESSION_ATTACH_IN_PROGRESS' | 'UNSUPPORTED' | 'REMOTE_UNAVAILABLE' | 'DELETE_DISABLED', message: string);
863
+ }
477
864
  export declare class RemoteAgentGateway {
478
865
  readonly config: Config;
479
866
  readonly automation?: A2AAutomation;
480
867
  readonly sessions: SessionDelivery;
481
868
  readonly targets: TargetDirectory;
869
+ readonly agents: AgentRegistry;
870
+ readonly projectDiscovery?: ProjectRoleDiscovery;
482
871
  readonly ledger: JobLedger;
483
872
  private readonly lease;
484
873
  private readonly stateFile;
@@ -492,13 +881,25 @@ export declare class RemoteAgentGateway {
492
881
  private readonly operations;
493
882
  private readonly advancingDeliveries;
494
883
  private readonly canceling;
884
+ private readonly closingSessions;
885
+ private readonly automaticCloseStopped;
886
+ private readonly now;
887
+ private idleScannedAt;
888
+ /** taskId and status timestamp of INPUT_REQUIRED turns already warned about. */
889
+ private readonly inputRequiredAlerts;
890
+ private closeFailures;
495
891
  private reconciling?;
892
+ private workbenchQueue;
496
893
  private readonly timer;
497
894
  private closed;
498
- constructor(input: A2AGatewayConfig);
895
+ constructor(input: A2AGatewayConfig, options?: {
896
+ now?: () => number;
897
+ });
499
898
  private save;
500
899
  private standardState;
501
900
  private legacySnapshot;
901
+ /** A continuation keeps the channel frozen on its current attempt. A new task is admitted from the registry. */
902
+ private developmentFor;
502
903
  private targetSnapshot;
503
904
  private ledgerView;
504
905
  private submitExecution;
@@ -506,6 +907,9 @@ export declare class RemoteAgentGateway {
506
907
  private advanceDelivery;
507
908
  private advanceDeliveryOnce;
508
909
  private executionNotice;
910
+ private advanceReport;
911
+ private updateReport;
912
+ private decideReportReview;
509
913
  private cancellationJobs;
510
914
  private assertDispatchOpen;
511
915
  private cancelExecution;
@@ -515,9 +919,24 @@ export declare class RemoteAgentGateway {
515
919
  private client;
516
920
  private auth;
517
921
  private preflight;
922
+ /** Host extensions sit beside the JSONRPC endpoint the remote advertises, and only on its configured origin. */
923
+ private hostRoute;
924
+ /** One verified artifact, read from the host that produced it and checked against the recorded receipt again here. */
925
+ /** The execution host replaced a finished task's result (manual takeover): read it now rather than wait for a webhook. */
926
+ refreshWorkbenchTask(jobId: string): Promise<import("../execution/workbench.js").AcpTaskDetail>;
927
+ /** A person sends a failed task another round in its own session. */
928
+ continueWorkbenchTask(jobId: string, prompt: string): Promise<import("../execution/workbench.js").AcpTaskDetail>;
929
+ /** A person marks the task's current result as read (已阅). */
930
+ acceptWorkbenchTask(jobId: string, note?: string): import("../execution/workbench.js").AcpTaskDetail;
931
+ workbenchArtifact(jobId: string, sha256: string): Promise<{
932
+ content: Buffer;
933
+ name: string;
934
+ mediaType?: string;
935
+ }>;
518
936
  private checkDispatch;
519
937
  private job;
520
938
  private view;
939
+ private resultObservation;
521
940
  private accept;
522
941
  private update;
523
942
  private refresh;
@@ -527,8 +946,201 @@ export declare class RemoteAgentGateway {
527
946
  private invokeMethod;
528
947
  /** Push events are hints. GetTask remains authoritative, including after missed callbacks. */
529
948
  receivePush(event: unknown): Promise<void>;
949
+ private workbenchProjection;
950
+ private workbench;
951
+ private writeProcessRequest;
952
+ workbenchList(query?: WorkbenchListQuery): {
953
+ items: import("../execution/workbench.js").AcpTaskSummary[];
954
+ total: number;
955
+ counts: {
956
+ all: number;
957
+ pending: number;
958
+ working: number;
959
+ failed: number;
960
+ };
961
+ offset: number;
962
+ limit: number;
963
+ };
964
+ workbenchAgents(): {
965
+ connections: {
966
+ connectionId: string;
967
+ remote: string;
968
+ }[];
969
+ developing: import("../execution/agent-registry.js").WorkbenchAgentRow[];
970
+ published: import("../execution/agent-registry.js").WorkbenchAgentRow[];
971
+ };
972
+ /**
973
+ * Register every agents/*.md under a directory as a developing draft with its own path-agent target: cwd and preset
974
+ * fixed to that directory and runtime, the file as the role. Each runtime (an ACP agent or a DSH-native preset) gets
975
+ * its own draft `<name>@<runtime>` and target, so one directory can run on several. Registering the same runtime again
976
+ * refreshes its drafts and targets.
977
+ * The file is read here for its name and again by the execution host at dispatch, so both must see the same path.
978
+ */
979
+ registerWorkbenchAgentPath(input: unknown): Promise<{
980
+ connections: {
981
+ connectionId: string;
982
+ remote: string;
983
+ }[];
984
+ developing: import("../execution/agent-registry.js").WorkbenchAgentRow[];
985
+ published: import("../execution/agent-registry.js").WorkbenchAgentRow[];
986
+ registered: {
987
+ agentId: string;
988
+ name: string;
989
+ targetId: string;
990
+ file: string;
991
+ }[];
992
+ }>;
993
+ createWorkbenchAgent(input: unknown): Promise<{
994
+ connections: {
995
+ connectionId: string;
996
+ remote: string;
997
+ }[];
998
+ developing: import("../execution/agent-registry.js").WorkbenchAgentRow[];
999
+ published: import("../execution/agent-registry.js").WorkbenchAgentRow[];
1000
+ draft: {
1001
+ agentId: string;
1002
+ name: string;
1003
+ options: {
1004
+ id: string;
1005
+ value: string;
1006
+ model?: true | undefined;
1007
+ }[];
1008
+ updatedAt: string;
1009
+ acpAgent?: string | undefined;
1010
+ agentPreset?: string | undefined;
1011
+ provider?: string | undefined;
1012
+ model?: string | undefined;
1013
+ roleId?: string | undefined;
1014
+ targetId?: string | undefined;
1015
+ modeId?: string | undefined;
1016
+ source?: {
1017
+ path: string;
1018
+ file: string;
1019
+ } | undefined;
1020
+ description?: string | undefined;
1021
+ };
1022
+ }>;
1023
+ updateWorkbenchAgent(agentId: string, input: unknown): Promise<{
1024
+ connections: {
1025
+ connectionId: string;
1026
+ remote: string;
1027
+ }[];
1028
+ developing: import("../execution/agent-registry.js").WorkbenchAgentRow[];
1029
+ published: import("../execution/agent-registry.js").WorkbenchAgentRow[];
1030
+ draft: {
1031
+ agentId: string;
1032
+ name: string;
1033
+ options: {
1034
+ id: string;
1035
+ value: string;
1036
+ model?: true | undefined;
1037
+ }[];
1038
+ updatedAt: string;
1039
+ acpAgent?: string | undefined;
1040
+ agentPreset?: string | undefined;
1041
+ provider?: string | undefined;
1042
+ model?: string | undefined;
1043
+ roleId?: string | undefined;
1044
+ targetId?: string | undefined;
1045
+ modeId?: string | undefined;
1046
+ source?: {
1047
+ path: string;
1048
+ file: string;
1049
+ } | undefined;
1050
+ description?: string | undefined;
1051
+ };
1052
+ }>;
1053
+ publishWorkbenchAgent(agentId: string, input: unknown): Promise<{
1054
+ connections: {
1055
+ connectionId: string;
1056
+ remote: string;
1057
+ }[];
1058
+ developing: import("../execution/agent-registry.js").WorkbenchAgentRow[];
1059
+ published: import("../execution/agent-registry.js").WorkbenchAgentRow[];
1060
+ release: {
1061
+ releaseName: string;
1062
+ options: {
1063
+ id: string;
1064
+ value: string;
1065
+ model?: true | undefined;
1066
+ }[];
1067
+ publishedAt: string;
1068
+ sourceAgentId?: string | undefined;
1069
+ acpAgent?: string | undefined;
1070
+ agentPreset?: string | undefined;
1071
+ provider?: string | undefined;
1072
+ model?: string | undefined;
1073
+ roleId?: string | undefined;
1074
+ targetId?: string | undefined;
1075
+ modeId?: string | undefined;
1076
+ source?: {
1077
+ path: string;
1078
+ file: string;
1079
+ } | undefined;
1080
+ description?: string | undefined;
1081
+ };
1082
+ }>;
1083
+ workbenchTask(jobId: string): import("../execution/workbench.js").AcpTaskDetail;
1084
+ /** Read-only transcript from the stored A2A history of the job's attempts; the same scope check as the task detail. */
1085
+ workbenchChat(jobId: string, query?: {
1086
+ limit?: number;
1087
+ before?: number;
1088
+ }): import("../execution/workbench-chat.js").WorkbenchChatPage;
1089
+ /** Only the dedicated HTTP workbench calls this; it is deliberately absent from the agent tool catalogue. */
1090
+ decideWorkbenchReview(jobId: string, reviewId: string, input: unknown): Promise<import("../execution/workbench.js").AcpTaskDetail>;
1091
+ /** Records a question or plan approval against the running attempt. The workbench token never travels in A2A metadata. */
1092
+ openProcessRequest(jobId: string, input: unknown): Promise<ProcessRequest>;
1093
+ processRequest(jobId: string, requestId: string): import("../execution/workbench.js").WorkbenchProcessRequest;
1094
+ /** Completes the stored request. The caller must still finish the original userQuestions wait; this does not send another prompt. */
1095
+ answerProcessRequest(jobId: string, requestId: string, input: unknown): Promise<import("../execution/workbench.js").AcpTaskDetail>;
1096
+ /** A follow-up keeps its session's policy. A new task without one is one-shot. */
1097
+ private jobLifecycle;
1098
+ /**
1099
+ * P3. A persistent ACP session closes once the host confirms it is attached and idle and its
1100
+ * last turn ended more than idleTtlSeconds ago. Busy, INPUT_REQUIRED and unknown status stay open.
1101
+ */
1102
+ private reconcileIdleSessions;
1103
+ /** Warns once per INPUT_REQUIRED turn after the alert window. The process is never closed for this. */
1104
+ private alertInputRequired;
1105
+ /** Read-only lifecycle counts for /health. Close reasons and resumes are counted per context from saved jobs. */
1106
+ lifecycleReport(): {
1107
+ busy: number;
1108
+ inputRequiredAlerts: {
1109
+ sessionId?: string;
1110
+ contextId: string;
1111
+ since: string;
1112
+ }[];
1113
+ closeReasons: Record<CloseReason, number>;
1114
+ resumes: number;
1115
+ closeFailures: number;
1116
+ processReleasePending: number;
1117
+ };
1118
+ private taskAcknowledged;
1119
+ private releaseOneShot;
1120
+ private finishClose;
1121
+ private jobsForClose;
1122
+ private markClosed;
1123
+ private performClose;
1124
+ private postSession;
1125
+ /** Read-only ledger view. strict requests fail when the directory is unset or the ledger cannot be read. */
1126
+ capacityReport(strict?: boolean): Promise<(CapacityInspection & {
1127
+ processSlot: CapacityInspection['processSlot'] & {
1128
+ headWaitMs: number;
1129
+ };
1130
+ }) | undefined>;
530
1131
  close(): Promise<void>;
531
1132
  }
1133
+ /** Only a missing bind address is retried. A busy port or a permission error is a bad configuration. */
1134
+ export declare function isRetryableCallbackBindError(error: unknown): boolean;
1135
+ /** Keeps trying `bind` after EADDRNOTAVAIL. Any other error rejects without another sleep. */
1136
+ export declare function retryCallbackBind(options: {
1137
+ bind: () => Promise<void>;
1138
+ signal: AbortSignal;
1139
+ onPending: (error: unknown, at: string) => void;
1140
+ sleep?: (ms: number, signal: AbortSignal) => Promise<void>;
1141
+ initialDelayMs?: number;
1142
+ maxDelayMs?: number;
1143
+ }): Promise<void>;
532
1144
  export declare function serveA2AGateway(input: A2AGatewayConfig, options?: {
533
1145
  report?: boolean;
534
1146
  }): Promise<{