wicked-crew 0.16.12 → 0.17.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (728) hide show
  1. package/README.md +3 -2
  2. package/dist/api/audit-view.d.ts +24 -0
  3. package/dist/api/audit-view.d.ts.map +1 -0
  4. package/dist/api/audit-view.js +70 -0
  5. package/dist/api/audit-view.js.map +1 -0
  6. package/dist/api/auth.d.ts +42 -2
  7. package/dist/api/auth.d.ts.map +1 -1
  8. package/dist/api/auth.js +157 -18
  9. package/dist/api/auth.js.map +1 -1
  10. package/dist/api/capture.d.ts +12 -59
  11. package/dist/api/capture.d.ts.map +1 -1
  12. package/dist/api/capture.js +9 -17
  13. package/dist/api/capture.js.map +1 -1
  14. package/dist/api/chat-context.d.ts +6 -62
  15. package/dist/api/chat-context.d.ts.map +1 -1
  16. package/dist/api/chat-context.js +6 -12
  17. package/dist/api/chat-context.js.map +1 -1
  18. package/dist/api/chat-history.d.ts +6 -0
  19. package/dist/api/chat-history.d.ts.map +1 -1
  20. package/dist/api/chat-history.js +21 -0
  21. package/dist/api/chat-history.js.map +1 -1
  22. package/dist/api/chat-mcp.d.ts +37 -0
  23. package/dist/api/chat-mcp.d.ts.map +1 -1
  24. package/dist/api/chat-mcp.js +118 -2
  25. package/dist/api/chat-mcp.js.map +1 -1
  26. package/dist/api/chat-proposals.d.ts +82 -155
  27. package/dist/api/chat-proposals.d.ts.map +1 -1
  28. package/dist/api/chat-proposals.js +254 -28
  29. package/dist/api/chat-proposals.js.map +1 -1
  30. package/dist/api/delivery-assurance.d.ts +3 -1
  31. package/dist/api/delivery-assurance.d.ts.map +1 -1
  32. package/dist/api/delivery-assurance.js +17 -0
  33. package/dist/api/delivery-assurance.js.map +1 -1
  34. package/dist/api/delivery-freeze.d.ts +2 -8
  35. package/dist/api/delivery-freeze.d.ts.map +1 -1
  36. package/dist/api/delivery-freeze.js +2 -4
  37. package/dist/api/delivery-freeze.js.map +1 -1
  38. package/dist/api/eval-sample.d.ts +18 -114
  39. package/dist/api/eval-sample.d.ts.map +1 -1
  40. package/dist/api/eval-sample.js +7 -13
  41. package/dist/api/eval-sample.js.map +1 -1
  42. package/dist/api/governance-steering.d.ts +27 -71
  43. package/dist/api/governance-steering.d.ts.map +1 -1
  44. package/dist/api/governance-steering.js +11 -19
  45. package/dist/api/governance-steering.js.map +1 -1
  46. package/dist/api/mcp.d.ts +159 -199
  47. package/dist/api/mcp.d.ts.map +1 -1
  48. package/dist/api/mcp.js +433 -68
  49. package/dist/api/mcp.js.map +1 -1
  50. package/dist/api/needs.d.ts +10 -0
  51. package/dist/api/needs.d.ts.map +1 -1
  52. package/dist/api/needs.js +77 -0
  53. package/dist/api/needs.js.map +1 -1
  54. package/dist/api/open-path.d.ts +10 -0
  55. package/dist/api/open-path.d.ts.map +1 -1
  56. package/dist/api/open-path.js +58 -1
  57. package/dist/api/open-path.js.map +1 -1
  58. package/dist/api/plan-schema.d.ts +8 -51
  59. package/dist/api/plan-schema.d.ts.map +1 -1
  60. package/dist/api/plan-schema.js +6 -6
  61. package/dist/api/plan-schema.js.map +1 -1
  62. package/dist/api/product.d.ts +3 -22
  63. package/dist/api/product.d.ts.map +1 -1
  64. package/dist/api/product.js +4 -6
  65. package/dist/api/product.js.map +1 -1
  66. package/dist/api/project-aggregates.d.ts +12 -20
  67. package/dist/api/project-aggregates.d.ts.map +1 -1
  68. package/dist/api/project-aggregates.js +3 -3
  69. package/dist/api/project-aggregates.js.map +1 -1
  70. package/dist/api/recording.d.ts +10 -37
  71. package/dist/api/recording.d.ts.map +1 -1
  72. package/dist/api/recording.js +9 -11
  73. package/dist/api/recording.js.map +1 -1
  74. package/dist/api/routes.d.ts +173 -1507
  75. package/dist/api/routes.d.ts.map +1 -1
  76. package/dist/api/routes.js +660 -139
  77. package/dist/api/routes.js.map +1 -1
  78. package/dist/api/run-timing-index.d.ts +18 -0
  79. package/dist/api/run-timing-index.d.ts.map +1 -1
  80. package/dist/api/run-timing-index.js +34 -0
  81. package/dist/api/run-timing-index.js.map +1 -1
  82. package/dist/api/seat-images.d.ts +10 -0
  83. package/dist/api/seat-images.d.ts.map +1 -1
  84. package/dist/api/seat-images.js +16 -3
  85. package/dist/api/seat-images.js.map +1 -1
  86. package/dist/api/server-error-body.d.ts +44 -0
  87. package/dist/api/server-error-body.d.ts.map +1 -0
  88. package/dist/api/server-error-body.js +206 -0
  89. package/dist/api/server-error-body.js.map +1 -0
  90. package/dist/api/server.d.ts.map +1 -1
  91. package/dist/api/server.js +276 -4
  92. package/dist/api/server.js.map +1 -1
  93. package/dist/api/skills.d.ts +12 -36
  94. package/dist/api/skills.d.ts.map +1 -1
  95. package/dist/api/skills.js +12 -15
  96. package/dist/api/skills.js.map +1 -1
  97. package/dist/api/system-snapshot.d.ts +1 -5
  98. package/dist/api/system-snapshot.d.ts.map +1 -1
  99. package/dist/api/system-snapshot.js +7 -15
  100. package/dist/api/system-snapshot.js.map +1 -1
  101. package/dist/api/testing.d.ts +29 -50
  102. package/dist/api/testing.d.ts.map +1 -1
  103. package/dist/api/testing.js +7 -13
  104. package/dist/api/testing.js.map +1 -1
  105. package/dist/apps/actions/api-action.d.ts +47 -0
  106. package/dist/apps/actions/api-action.d.ts.map +1 -0
  107. package/dist/apps/actions/api-action.js +135 -0
  108. package/dist/apps/actions/api-action.js.map +1 -0
  109. package/dist/apps/actions/pg-fit.d.ts +27 -0
  110. package/dist/apps/actions/pg-fit.d.ts.map +1 -0
  111. package/dist/apps/actions/pg-fit.js +35 -0
  112. package/dist/apps/actions/pg-fit.js.map +1 -0
  113. package/dist/apps/actions/pg-write.d.ts +84 -0
  114. package/dist/apps/actions/pg-write.d.ts.map +1 -0
  115. package/dist/apps/actions/pg-write.js +161 -0
  116. package/dist/apps/actions/pg-write.js.map +1 -0
  117. package/dist/apps/actions/store.d.ts +109 -0
  118. package/dist/apps/actions/store.d.ts.map +1 -0
  119. package/dist/apps/actions/store.js +182 -0
  120. package/dist/apps/actions/store.js.map +1 -0
  121. package/dist/apps/actions/values.d.ts +59 -0
  122. package/dist/apps/actions/values.d.ts.map +1 -0
  123. package/dist/apps/actions/values.js +315 -0
  124. package/dist/apps/actions/values.js.map +1 -0
  125. package/dist/apps/actions/write-path.d.ts +103 -0
  126. package/dist/apps/actions/write-path.d.ts.map +1 -0
  127. package/dist/apps/actions/write-path.js +576 -0
  128. package/dist/apps/actions/write-path.js.map +1 -0
  129. package/dist/apps/check.d.ts +112 -0
  130. package/dist/apps/check.d.ts.map +1 -0
  131. package/dist/apps/check.js +358 -0
  132. package/dist/apps/check.js.map +1 -0
  133. package/dist/apps/exec/arg-types.d.ts +56 -0
  134. package/dist/apps/exec/arg-types.d.ts.map +1 -0
  135. package/dist/apps/exec/arg-types.js +234 -0
  136. package/dist/apps/exec/arg-types.js.map +1 -0
  137. package/dist/apps/exec/cache.d.ts +46 -0
  138. package/dist/apps/exec/cache.d.ts.map +1 -0
  139. package/dist/apps/exec/cache.js +93 -0
  140. package/dist/apps/exec/cache.js.map +1 -0
  141. package/dist/apps/exec/contract.d.ts +83 -0
  142. package/dist/apps/exec/contract.d.ts.map +1 -0
  143. package/dist/apps/exec/contract.js +220 -0
  144. package/dist/apps/exec/contract.js.map +1 -0
  145. package/dist/apps/exec/executor.d.ts +122 -0
  146. package/dist/apps/exec/executor.d.ts.map +1 -0
  147. package/dist/apps/exec/executor.js +455 -0
  148. package/dist/apps/exec/executor.js.map +1 -0
  149. package/dist/apps/exec/limits.d.ts +25 -0
  150. package/dist/apps/exec/limits.d.ts.map +1 -0
  151. package/dist/apps/exec/limits.js +71 -0
  152. package/dist/apps/exec/limits.js.map +1 -0
  153. package/dist/apps/exec/params.d.ts +34 -0
  154. package/dist/apps/exec/params.d.ts.map +1 -0
  155. package/dist/apps/exec/params.js +97 -0
  156. package/dist/apps/exec/params.js.map +1 -0
  157. package/dist/apps/exec/project.d.ts +67 -0
  158. package/dist/apps/exec/project.d.ts.map +1 -0
  159. package/dist/apps/exec/project.js +299 -0
  160. package/dist/apps/exec/project.js.map +1 -0
  161. package/dist/apps/exec/recall.d.ts +88 -0
  162. package/dist/apps/exec/recall.d.ts.map +1 -0
  163. package/dist/apps/exec/recall.js +301 -0
  164. package/dist/apps/exec/recall.js.map +1 -0
  165. package/dist/apps/exec/source-stage.d.ts +61 -0
  166. package/dist/apps/exec/source-stage.d.ts.map +1 -0
  167. package/dist/apps/exec/source-stage.js +540 -0
  168. package/dist/apps/exec/source-stage.js.map +1 -0
  169. package/dist/apps/exec/sources.d.ts +65 -0
  170. package/dist/apps/exec/sources.d.ts.map +1 -0
  171. package/dist/apps/exec/sources.js +77 -0
  172. package/dist/apps/exec/sources.js.map +1 -0
  173. package/dist/apps/exec/texts.d.ts +140 -0
  174. package/dist/apps/exec/texts.d.ts.map +1 -0
  175. package/dist/apps/exec/texts.js +76 -0
  176. package/dist/apps/exec/texts.js.map +1 -0
  177. package/dist/apps/exec/viewer.d.ts +11 -0
  178. package/dist/apps/exec/viewer.d.ts.map +1 -0
  179. package/dist/apps/exec/viewer.js +26 -0
  180. package/dist/apps/exec/viewer.js.map +1 -0
  181. package/dist/apps/git.d.ts +109 -0
  182. package/dist/apps/git.d.ts.map +1 -0
  183. package/dist/apps/git.js +361 -0
  184. package/dist/apps/git.js.map +1 -0
  185. package/dist/apps/publish/image.d.ts +25 -0
  186. package/dist/apps/publish/image.d.ts.map +1 -0
  187. package/dist/apps/publish/image.js +86 -0
  188. package/dist/apps/publish/image.js.map +1 -0
  189. package/dist/apps/publish/layout.d.ts +41 -0
  190. package/dist/apps/publish/layout.d.ts.map +1 -0
  191. package/dist/apps/publish/layout.js +31 -0
  192. package/dist/apps/publish/layout.js.map +1 -0
  193. package/dist/apps/publish/manifest.d.ts +64 -0
  194. package/dist/apps/publish/manifest.d.ts.map +1 -0
  195. package/dist/apps/publish/manifest.js +282 -0
  196. package/dist/apps/publish/manifest.js.map +1 -0
  197. package/dist/apps/publish/pack.d.ts +40 -0
  198. package/dist/apps/publish/pack.d.ts.map +1 -0
  199. package/dist/apps/publish/pack.js +78 -0
  200. package/dist/apps/publish/pack.js.map +1 -0
  201. package/dist/apps/routes.d.ts +103 -0
  202. package/dist/apps/routes.d.ts.map +1 -0
  203. package/dist/apps/routes.js +440 -0
  204. package/dist/apps/routes.js.map +1 -0
  205. package/dist/apps/spec.d.ts +691 -0
  206. package/dist/apps/spec.d.ts.map +1 -0
  207. package/dist/apps/spec.js +839 -0
  208. package/dist/apps/spec.js.map +1 -0
  209. package/dist/apps/store.d.ts +341 -0
  210. package/dist/apps/store.d.ts.map +1 -0
  211. package/dist/apps/store.js +905 -0
  212. package/dist/apps/store.js.map +1 -0
  213. package/dist/apps/turns.d.ts +169 -0
  214. package/dist/apps/turns.d.ts.map +1 -0
  215. package/dist/apps/turns.js +556 -0
  216. package/dist/apps/turns.js.map +1 -0
  217. package/dist/apps/views.d.ts +44 -0
  218. package/dist/apps/views.d.ts.map +1 -0
  219. package/dist/apps/views.js +53 -0
  220. package/dist/apps/views.js.map +1 -0
  221. package/dist/campaigns/routes.d.ts +22 -94
  222. package/dist/campaigns/routes.d.ts.map +1 -1
  223. package/dist/campaigns/routes.js +8 -14
  224. package/dist/campaigns/routes.js.map +1 -1
  225. package/dist/cli/apps-check.d.ts +43 -0
  226. package/dist/cli/apps-check.d.ts.map +1 -0
  227. package/dist/cli/apps-check.js +166 -0
  228. package/dist/cli/apps-check.js.map +1 -0
  229. package/dist/cli/index.d.ts.map +1 -1
  230. package/dist/cli/index.js +9 -4
  231. package/dist/cli/index.js.map +1 -1
  232. package/dist/cli/mcp.js +2 -2
  233. package/dist/cli/mcp.js.map +1 -1
  234. package/dist/core/adapter.d.ts +23 -0
  235. package/dist/core/adapter.d.ts.map +1 -1
  236. package/dist/core/adapter.js +49 -1
  237. package/dist/core/adapter.js.map +1 -1
  238. package/dist/core/deliver-text.d.ts +25 -0
  239. package/dist/core/deliver-text.d.ts.map +1 -1
  240. package/dist/core/deliver-text.js +50 -5
  241. package/dist/core/deliver-text.js.map +1 -1
  242. package/dist/core/deliver.d.ts.map +1 -1
  243. package/dist/core/deliver.js +6 -0
  244. package/dist/core/deliver.js.map +1 -1
  245. package/dist/core/estate-mcp-client.d.ts +9 -0
  246. package/dist/core/estate-mcp-client.d.ts.map +1 -1
  247. package/dist/core/estate-mcp-client.js +31 -3
  248. package/dist/core/estate-mcp-client.js.map +1 -1
  249. package/dist/core/linked-issues.d.ts +51 -3
  250. package/dist/core/linked-issues.d.ts.map +1 -1
  251. package/dist/core/linked-issues.js +59 -14
  252. package/dist/core/linked-issues.js.map +1 -1
  253. package/dist/core/run-boot-resume.d.ts +4 -1
  254. package/dist/core/run-boot-resume.d.ts.map +1 -1
  255. package/dist/core/run-boot-resume.js +6 -1
  256. package/dist/core/run-boot-resume.js.map +1 -1
  257. package/dist/decisions/chat-recorder.js +1 -1
  258. package/dist/decisions/chat-recorder.js.map +1 -1
  259. package/dist/decisions/routes.d.ts.map +1 -1
  260. package/dist/decisions/routes.js +5 -9
  261. package/dist/decisions/routes.js.map +1 -1
  262. package/dist/decisions/rules-brief.d.ts +76 -0
  263. package/dist/decisions/rules-brief.d.ts.map +1 -0
  264. package/dist/decisions/rules-brief.js +179 -0
  265. package/dist/decisions/rules-brief.js.map +1 -0
  266. package/dist/editors/csp.d.ts +24 -4
  267. package/dist/editors/csp.d.ts.map +1 -1
  268. package/dist/editors/csp.js +35 -8
  269. package/dist/editors/csp.js.map +1 -1
  270. package/dist/editors/registry.d.ts +97 -258
  271. package/dist/editors/registry.d.ts.map +1 -1
  272. package/dist/editors/registry.js +11 -11
  273. package/dist/editors/registry.js.map +1 -1
  274. package/dist/editors/routes.d.ts +4 -1
  275. package/dist/editors/routes.d.ts.map +1 -1
  276. package/dist/editors/routes.js +33 -6
  277. package/dist/editors/routes.js.map +1 -1
  278. package/dist/editors/webrtc-guard.d.ts +94 -0
  279. package/dist/editors/webrtc-guard.d.ts.map +1 -0
  280. package/dist/editors/webrtc-guard.js +506 -0
  281. package/dist/editors/webrtc-guard.js.map +1 -0
  282. package/dist/evals/routes.d.ts.map +1 -1
  283. package/dist/evals/routes.js +3 -5
  284. package/dist/evals/routes.js.map +1 -1
  285. package/dist/insights/routes.js +2 -2
  286. package/dist/insights/routes.js.map +1 -1
  287. package/dist/interactive/bridge-pool.d.ts +11 -2
  288. package/dist/interactive/bridge-pool.d.ts.map +1 -1
  289. package/dist/interactive/bridge-pool.js +10 -1
  290. package/dist/interactive/bridge-pool.js.map +1 -1
  291. package/dist/interactive/doc-binding.d.ts +156 -0
  292. package/dist/interactive/doc-binding.d.ts.map +1 -0
  293. package/dist/interactive/doc-binding.js +277 -0
  294. package/dist/interactive/doc-binding.js.map +1 -0
  295. package/dist/interactive/doc-delete-routes.d.ts +3 -0
  296. package/dist/interactive/doc-delete-routes.d.ts.map +1 -1
  297. package/dist/interactive/doc-delete-routes.js +4 -0
  298. package/dist/interactive/doc-delete-routes.js.map +1 -1
  299. package/dist/interactive/draft-events.d.ts +89 -3
  300. package/dist/interactive/draft-events.d.ts.map +1 -1
  301. package/dist/interactive/draft-events.js +438 -27
  302. package/dist/interactive/draft-events.js.map +1 -1
  303. package/dist/interactive/edit-events.d.ts +2 -0
  304. package/dist/interactive/edit-events.d.ts.map +1 -1
  305. package/dist/interactive/edit-events.js +11 -0
  306. package/dist/interactive/edit-events.js.map +1 -1
  307. package/dist/interactive/proposal-create.d.ts +143 -0
  308. package/dist/interactive/proposal-create.d.ts.map +1 -0
  309. package/dist/interactive/proposal-create.js +318 -0
  310. package/dist/interactive/proposal-create.js.map +1 -0
  311. package/dist/interactive/proxy-routes.d.ts +60 -3
  312. package/dist/interactive/proxy-routes.d.ts.map +1 -1
  313. package/dist/interactive/proxy-routes.js +285 -10
  314. package/dist/interactive/proxy-routes.js.map +1 -1
  315. package/dist/interactive/source-packet.d.ts +126 -0
  316. package/dist/interactive/source-packet.d.ts.map +1 -0
  317. package/dist/interactive/source-packet.js +482 -0
  318. package/dist/interactive/source-packet.js.map +1 -0
  319. package/dist/interactive/ws-relay.d.ts +3 -9
  320. package/dist/interactive/ws-relay.d.ts.map +1 -1
  321. package/dist/interactive/ws-relay.js +4 -6
  322. package/dist/interactive/ws-relay.js.map +1 -1
  323. package/dist/knowledge/adapters/native.d.ts +44 -0
  324. package/dist/knowledge/adapters/native.d.ts.map +1 -0
  325. package/dist/knowledge/adapters/native.js +60 -0
  326. package/dist/knowledge/adapters/native.js.map +1 -0
  327. package/dist/knowledge/adapters/toolbox/binary.d.ts +48 -0
  328. package/dist/knowledge/adapters/toolbox/binary.d.ts.map +1 -0
  329. package/dist/knowledge/adapters/toolbox/binary.js +145 -0
  330. package/dist/knowledge/adapters/toolbox/binary.js.map +1 -0
  331. package/dist/knowledge/adapters/toolbox/catalog.d.ts +22 -0
  332. package/dist/knowledge/adapters/toolbox/catalog.d.ts.map +1 -0
  333. package/dist/knowledge/adapters/toolbox/catalog.js +87 -0
  334. package/dist/knowledge/adapters/toolbox/catalog.js.map +1 -0
  335. package/dist/knowledge/adapters/toolbox/document.d.ts +71 -0
  336. package/dist/knowledge/adapters/toolbox/document.d.ts.map +1 -0
  337. package/dist/knowledge/adapters/toolbox/document.js +165 -0
  338. package/dist/knowledge/adapters/toolbox/document.js.map +1 -0
  339. package/dist/knowledge/adapters/toolbox/supervisor.d.ts +142 -0
  340. package/dist/knowledge/adapters/toolbox/supervisor.d.ts.map +1 -0
  341. package/dist/knowledge/adapters/toolbox/supervisor.js +438 -0
  342. package/dist/knowledge/adapters/toolbox/supervisor.js.map +1 -0
  343. package/dist/knowledge/gate/access.d.ts +36 -0
  344. package/dist/knowledge/gate/access.d.ts.map +1 -0
  345. package/dist/knowledge/gate/access.js +46 -0
  346. package/dist/knowledge/gate/access.js.map +1 -0
  347. package/dist/knowledge/gate/envelope.d.ts +67 -0
  348. package/dist/knowledge/gate/envelope.d.ts.map +1 -0
  349. package/dist/knowledge/gate/envelope.js +96 -0
  350. package/dist/knowledge/gate/envelope.js.map +1 -0
  351. package/dist/knowledge/gate/gate.d.ts +238 -0
  352. package/dist/knowledge/gate/gate.d.ts.map +1 -0
  353. package/dist/knowledge/gate/gate.js +782 -0
  354. package/dist/knowledge/gate/gate.js.map +1 -0
  355. package/dist/knowledge/gate/pg.d.ts +57 -0
  356. package/dist/knowledge/gate/pg.d.ts.map +1 -0
  357. package/dist/knowledge/gate/pg.js +94 -0
  358. package/dist/knowledge/gate/pg.js.map +1 -0
  359. package/dist/knowledge/gate/record.d.ts +77 -0
  360. package/dist/knowledge/gate/record.d.ts.map +1 -0
  361. package/dist/knowledge/gate/record.js +205 -0
  362. package/dist/knowledge/gate/record.js.map +1 -0
  363. package/dist/knowledge/gate/routes.d.ts +38 -0
  364. package/dist/knowledge/gate/routes.d.ts.map +1 -0
  365. package/dist/knowledge/gate/routes.js +102 -0
  366. package/dist/knowledge/gate/routes.js.map +1 -0
  367. package/dist/knowledge/gate/scheduler.d.ts +90 -0
  368. package/dist/knowledge/gate/scheduler.d.ts.map +1 -0
  369. package/dist/knowledge/gate/scheduler.js +224 -0
  370. package/dist/knowledge/gate/scheduler.js.map +1 -0
  371. package/dist/knowledge/gate/sources.d.ts +69 -0
  372. package/dist/knowledge/gate/sources.d.ts.map +1 -0
  373. package/dist/knowledge/gate/sources.js +135 -0
  374. package/dist/knowledge/gate/sources.js.map +1 -0
  375. package/dist/knowledge/package.d.ts +136 -0
  376. package/dist/knowledge/package.d.ts.map +1 -0
  377. package/dist/knowledge/package.js +148 -0
  378. package/dist/knowledge/package.js.map +1 -0
  379. package/dist/knowledge/projector.d.ts +144 -0
  380. package/dist/knowledge/projector.d.ts.map +1 -0
  381. package/dist/knowledge/projector.js +287 -0
  382. package/dist/knowledge/projector.js.map +1 -0
  383. package/dist/knowledge/registry/entry.d.ts +177 -0
  384. package/dist/knowledge/registry/entry.d.ts.map +1 -0
  385. package/dist/knowledge/registry/entry.js +126 -0
  386. package/dist/knowledge/registry/entry.js.map +1 -0
  387. package/dist/knowledge/registry/policy.d.ts +79 -0
  388. package/dist/knowledge/registry/policy.d.ts.map +1 -0
  389. package/dist/knowledge/registry/policy.js +139 -0
  390. package/dist/knowledge/registry/policy.js.map +1 -0
  391. package/dist/knowledge/shapes/code-search.d.ts +55 -0
  392. package/dist/knowledge/shapes/code-search.d.ts.map +1 -0
  393. package/dist/knowledge/shapes/code-search.js +88 -0
  394. package/dist/knowledge/shapes/code-search.js.map +1 -0
  395. package/dist/knowledge/shapes/map.d.ts +25 -0
  396. package/dist/knowledge/shapes/map.d.ts.map +1 -0
  397. package/dist/knowledge/shapes/map.js +187 -0
  398. package/dist/knowledge/shapes/map.js.map +1 -0
  399. package/dist/knowledge/shapes/profile.d.ts +117 -0
  400. package/dist/knowledge/shapes/profile.d.ts.map +1 -0
  401. package/dist/knowledge/shapes/profile.js +264 -0
  402. package/dist/knowledge/shapes/profile.js.map +1 -0
  403. package/dist/knowledge/shapes/routes.d.ts +69 -0
  404. package/dist/knowledge/shapes/routes.d.ts.map +1 -0
  405. package/dist/knowledge/shapes/routes.js +270 -0
  406. package/dist/knowledge/shapes/routes.js.map +1 -0
  407. package/dist/knowledge/shapes/shapes.d.ts +144 -0
  408. package/dist/knowledge/shapes/shapes.d.ts.map +1 -0
  409. package/dist/knowledge/shapes/shapes.js +280 -0
  410. package/dist/knowledge/shapes/shapes.js.map +1 -0
  411. package/dist/knowledge/shapes/verified.d.ts +36 -0
  412. package/dist/knowledge/shapes/verified.d.ts.map +1 -0
  413. package/dist/knowledge/shapes/verified.js +73 -0
  414. package/dist/knowledge/shapes/verified.js.map +1 -0
  415. package/dist/knowledge/summary.d.ts +45 -0
  416. package/dist/knowledge/summary.d.ts.map +1 -0
  417. package/dist/knowledge/summary.js +119 -0
  418. package/dist/knowledge/summary.js.map +1 -0
  419. package/dist/knowledge/trackers/actions.d.ts +55 -0
  420. package/dist/knowledge/trackers/actions.d.ts.map +1 -0
  421. package/dist/knowledge/trackers/actions.js +327 -0
  422. package/dist/knowledge/trackers/actions.js.map +1 -0
  423. package/dist/knowledge/trackers/addresses.d.ts +45 -0
  424. package/dist/knowledge/trackers/addresses.d.ts.map +1 -0
  425. package/dist/knowledge/trackers/addresses.js +59 -0
  426. package/dist/knowledge/trackers/addresses.js.map +1 -0
  427. package/dist/knowledge/trackers/bindings.d.ts +190 -0
  428. package/dist/knowledge/trackers/bindings.d.ts.map +1 -0
  429. package/dist/knowledge/trackers/bindings.js +970 -0
  430. package/dist/knowledge/trackers/bindings.js.map +1 -0
  431. package/dist/knowledge/trackers/gate-pm.d.ts +160 -0
  432. package/dist/knowledge/trackers/gate-pm.d.ts.map +1 -0
  433. package/dist/knowledge/trackers/gate-pm.js +427 -0
  434. package/dist/knowledge/trackers/gate-pm.js.map +1 -0
  435. package/dist/knowledge/trackers/issues.d.ts +69 -0
  436. package/dist/knowledge/trackers/issues.d.ts.map +1 -0
  437. package/dist/knowledge/trackers/issues.js +193 -0
  438. package/dist/knowledge/trackers/issues.js.map +1 -0
  439. package/dist/knowledge/trackers/map.d.ts +23 -0
  440. package/dist/knowledge/trackers/map.d.ts.map +1 -0
  441. package/dist/knowledge/trackers/map.js +130 -0
  442. package/dist/knowledge/trackers/map.js.map +1 -0
  443. package/dist/knowledge/trackers/projector.d.ts +113 -0
  444. package/dist/knowledge/trackers/projector.d.ts.map +1 -0
  445. package/dist/knowledge/trackers/projector.js +274 -0
  446. package/dist/knowledge/trackers/projector.js.map +1 -0
  447. package/dist/knowledge/trackers/routes.d.ts +107 -0
  448. package/dist/knowledge/trackers/routes.d.ts.map +1 -0
  449. package/dist/knowledge/trackers/routes.js +563 -0
  450. package/dist/knowledge/trackers/routes.js.map +1 -0
  451. package/dist/knowledge/trackers/set.d.ts +61 -0
  452. package/dist/knowledge/trackers/set.d.ts.map +1 -0
  453. package/dist/knowledge/trackers/set.js +77 -0
  454. package/dist/knowledge/trackers/set.js.map +1 -0
  455. package/dist/knowledge/trackers/view.d.ts +22 -0
  456. package/dist/knowledge/trackers/view.d.ts.map +1 -0
  457. package/dist/knowledge/trackers/view.js +31 -0
  458. package/dist/knowledge/trackers/view.js.map +1 -0
  459. package/dist/knowledge/trackers/visible.d.ts +9 -0
  460. package/dist/knowledge/trackers/visible.d.ts.map +1 -0
  461. package/dist/knowledge/trackers/visible.js +10 -0
  462. package/dist/knowledge/trackers/visible.js.map +1 -0
  463. package/dist/learn/routes.d.ts +3 -17
  464. package/dist/learn/routes.d.ts.map +1 -1
  465. package/dist/learn/routes.js +4 -6
  466. package/dist/learn/routes.js.map +1 -1
  467. package/dist/mcp/ask-server.d.ts +6 -0
  468. package/dist/mcp/ask-server.d.ts.map +1 -1
  469. package/dist/mcp/ask-server.js +15 -9
  470. package/dist/mcp/ask-server.js.map +1 -1
  471. package/dist/mcp/broker.d.ts +16 -0
  472. package/dist/mcp/broker.d.ts.map +1 -1
  473. package/dist/mcp/broker.js +137 -3
  474. package/dist/mcp/broker.js.map +1 -1
  475. package/dist/mcp/estate-relay.d.ts +50 -2
  476. package/dist/mcp/estate-relay.d.ts.map +1 -1
  477. package/dist/mcp/estate-relay.js +126 -4
  478. package/dist/mcp/estate-relay.js.map +1 -1
  479. package/dist/mcp/invoke.d.ts +12 -1
  480. package/dist/mcp/invoke.d.ts.map +1 -1
  481. package/dist/mcp/invoke.js +5 -2
  482. package/dist/mcp/invoke.js.map +1 -1
  483. package/dist/mcp/probe.d.ts +34 -2
  484. package/dist/mcp/probe.d.ts.map +1 -1
  485. package/dist/mcp/probe.js +51 -9
  486. package/dist/mcp/probe.js.map +1 -1
  487. package/dist/mcp/registry-store.d.ts +91 -0
  488. package/dist/mcp/registry-store.d.ts.map +1 -1
  489. package/dist/mcp/registry-store.js +116 -9
  490. package/dist/mcp/registry-store.js.map +1 -1
  491. package/dist/mcp/registry.d.ts +249 -6
  492. package/dist/mcp/registry.d.ts.map +1 -1
  493. package/dist/mcp/registry.js +735 -35
  494. package/dist/mcp/registry.js.map +1 -1
  495. package/dist/mcp/rest.d.ts +36 -10
  496. package/dist/mcp/rest.d.ts.map +1 -1
  497. package/dist/mcp/rest.js +71 -73
  498. package/dist/mcp/rest.js.map +1 -1
  499. package/dist/mcp/tool-list.d.ts +7 -0
  500. package/dist/mcp/tool-list.d.ts.map +1 -1
  501. package/dist/mcp/tool-list.js +32 -4
  502. package/dist/mcp/tool-list.js.map +1 -1
  503. package/dist/mcp-inspect/routes.d.ts +3 -0
  504. package/dist/mcp-inspect/routes.d.ts.map +1 -1
  505. package/dist/mcp-inspect/routes.js +31 -18
  506. package/dist/mcp-inspect/routes.js.map +1 -1
  507. package/dist/persona/routes.d.ts +14 -69
  508. package/dist/persona/routes.d.ts.map +1 -1
  509. package/dist/persona/routes.js +2 -2
  510. package/dist/persona/routes.js.map +1 -1
  511. package/dist/persona/store.d.ts +13 -40
  512. package/dist/persona/store.d.ts.map +1 -1
  513. package/dist/persona/store.js +9 -11
  514. package/dist/persona/store.js.map +1 -1
  515. package/dist/presets/routes.d.ts +3 -21
  516. package/dist/presets/routes.d.ts.map +1 -1
  517. package/dist/presets/routes.js +5 -7
  518. package/dist/presets/routes.js.map +1 -1
  519. package/dist/projects/repo-guard.d.ts +32 -0
  520. package/dist/projects/repo-guard.d.ts.map +1 -0
  521. package/dist/projects/repo-guard.js +46 -0
  522. package/dist/projects/repo-guard.js.map +1 -0
  523. package/dist/projects/routes.d.ts +16 -44
  524. package/dist/projects/routes.d.ts.map +1 -1
  525. package/dist/projects/routes.js +15 -18
  526. package/dist/projects/routes.js.map +1 -1
  527. package/dist/schedules/routes.d.ts +4 -18
  528. package/dist/schedules/routes.d.ts.map +1 -1
  529. package/dist/schedules/routes.js +4 -6
  530. package/dist/schedules/routes.js.map +1 -1
  531. package/dist/skills/plugin-source.d.ts +6 -5
  532. package/dist/skills/plugin-source.d.ts.map +1 -1
  533. package/dist/skills/plugin-source.js +6 -5
  534. package/dist/skills/plugin-source.js.map +1 -1
  535. package/dist/sources/ask.d.ts +108 -0
  536. package/dist/sources/ask.d.ts.map +1 -0
  537. package/dist/sources/ask.js +251 -0
  538. package/dist/sources/ask.js.map +1 -0
  539. package/dist/sources/catalog/mysql.d.ts +9 -0
  540. package/dist/sources/catalog/mysql.d.ts.map +1 -0
  541. package/dist/sources/catalog/mysql.js +77 -0
  542. package/dist/sources/catalog/mysql.js.map +1 -0
  543. package/dist/sources/catalog/postgres.d.ts +68 -0
  544. package/dist/sources/catalog/postgres.d.ts.map +1 -0
  545. package/dist/sources/catalog/postgres.js +164 -0
  546. package/dist/sources/catalog/postgres.js.map +1 -0
  547. package/dist/sources/catalog/types.d.ts +53 -0
  548. package/dist/sources/catalog/types.d.ts.map +1 -0
  549. package/dist/sources/catalog/types.js +30 -0
  550. package/dist/sources/catalog/types.js.map +1 -0
  551. package/dist/sources/connection-test.d.ts +37 -0
  552. package/dist/sources/connection-test.d.ts.map +1 -0
  553. package/dist/sources/connection-test.js +101 -0
  554. package/dist/sources/connection-test.js.map +1 -0
  555. package/dist/sources/crew-source.d.ts +31 -0
  556. package/dist/sources/crew-source.d.ts.map +1 -0
  557. package/dist/sources/crew-source.js +48 -0
  558. package/dist/sources/crew-source.js.map +1 -0
  559. package/dist/sources/dialer.d.ts +169 -0
  560. package/dist/sources/dialer.d.ts.map +1 -0
  561. package/dist/sources/dialer.js +761 -0
  562. package/dist/sources/dialer.js.map +1 -0
  563. package/dist/sources/drivers/mysql.d.ts +52 -0
  564. package/dist/sources/drivers/mysql.d.ts.map +1 -0
  565. package/dist/sources/drivers/mysql.js +348 -0
  566. package/dist/sources/drivers/mysql.js.map +1 -0
  567. package/dist/sources/drivers/postgres.d.ts +84 -0
  568. package/dist/sources/drivers/postgres.d.ts.map +1 -0
  569. package/dist/sources/drivers/postgres.js +381 -0
  570. package/dist/sources/drivers/postgres.js.map +1 -0
  571. package/dist/sources/drivers/sqlite.d.ts +47 -0
  572. package/dist/sources/drivers/sqlite.d.ts.map +1 -0
  573. package/dist/sources/drivers/sqlite.js +156 -0
  574. package/dist/sources/drivers/sqlite.js.map +1 -0
  575. package/dist/sources/drivers/types.d.ts +79 -0
  576. package/dist/sources/drivers/types.d.ts.map +1 -0
  577. package/dist/sources/drivers/types.js +31 -0
  578. package/dist/sources/drivers/types.js.map +1 -0
  579. package/dist/sources/graphql.d.ts +85 -0
  580. package/dist/sources/graphql.d.ts.map +1 -0
  581. package/dist/sources/graphql.js +155 -0
  582. package/dist/sources/graphql.js.map +1 -0
  583. package/dist/sources/kinds.d.ts +79 -0
  584. package/dist/sources/kinds.d.ts.map +1 -0
  585. package/dist/sources/kinds.js +145 -0
  586. package/dist/sources/kinds.js.map +1 -0
  587. package/dist/sources/policy/allowlists.d.ts +30 -0
  588. package/dist/sources/policy/allowlists.d.ts.map +1 -0
  589. package/dist/sources/policy/allowlists.js +104 -0
  590. package/dist/sources/policy/allowlists.js.map +1 -0
  591. package/dist/sources/policy/index.d.ts +20 -0
  592. package/dist/sources/policy/index.d.ts.map +1 -0
  593. package/dist/sources/policy/index.js +34 -0
  594. package/dist/sources/policy/index.js.map +1 -0
  595. package/dist/sources/policy/mysql.d.ts +21 -0
  596. package/dist/sources/policy/mysql.d.ts.map +1 -0
  597. package/dist/sources/policy/mysql.js +834 -0
  598. package/dist/sources/policy/mysql.js.map +1 -0
  599. package/dist/sources/policy/pg.d.ts +37 -0
  600. package/dist/sources/policy/pg.d.ts.map +1 -0
  601. package/dist/sources/policy/pg.js +572 -0
  602. package/dist/sources/policy/pg.js.map +1 -0
  603. package/dist/sources/policy/sqlite.d.ts +37 -0
  604. package/dist/sources/policy/sqlite.d.ts.map +1 -0
  605. package/dist/sources/policy/sqlite.js +94 -0
  606. package/dist/sources/policy/sqlite.js.map +1 -0
  607. package/dist/sources/policy/types.d.ts +46 -0
  608. package/dist/sources/policy/types.d.ts.map +1 -0
  609. package/dist/sources/policy/types.js +13 -0
  610. package/dist/sources/policy/types.js.map +1 -0
  611. package/dist/sources/routes.d.ts +154 -0
  612. package/dist/sources/routes.d.ts.map +1 -0
  613. package/dist/sources/routes.js +745 -0
  614. package/dist/sources/routes.js.map +1 -0
  615. package/dist/sources/safety/postgres.d.ts +87 -0
  616. package/dist/sources/safety/postgres.d.ts.map +1 -0
  617. package/dist/sources/safety/postgres.js +349 -0
  618. package/dist/sources/safety/postgres.js.map +1 -0
  619. package/dist/sources/sql.d.ts +51 -0
  620. package/dist/sources/sql.d.ts.map +1 -0
  621. package/dist/sources/sql.js +89 -0
  622. package/dist/sources/sql.js.map +1 -0
  623. package/dist/sources/store.d.ts +25 -0
  624. package/dist/sources/store.d.ts.map +1 -0
  625. package/dist/sources/store.js +59 -0
  626. package/dist/sources/store.js.map +1 -0
  627. package/dist/sources/uploads.d.ts +70 -0
  628. package/dist/sources/uploads.d.ts.map +1 -0
  629. package/dist/sources/uploads.js +636 -0
  630. package/dist/sources/uploads.js.map +1 -0
  631. package/dist/standing-orders/parse.d.ts +38 -0
  632. package/dist/standing-orders/parse.d.ts.map +1 -1
  633. package/dist/standing-orders/parse.js +104 -43
  634. package/dist/standing-orders/parse.js.map +1 -1
  635. package/dist/standing-orders/routes.d.ts +25 -126
  636. package/dist/standing-orders/routes.d.ts.map +1 -1
  637. package/dist/standing-orders/routes.js +4 -6
  638. package/dist/standing-orders/routes.js.map +1 -1
  639. package/dist/standing-orders/store.d.ts +22 -73
  640. package/dist/standing-orders/store.d.ts.map +1 -1
  641. package/dist/standing-orders/store.js +8 -12
  642. package/dist/standing-orders/store.js.map +1 -1
  643. package/dist/studio/assets/KnowledgeGraph-Cpm46tEp.js +1 -0
  644. package/dist/studio/assets/WickedSansA-Regular-CGPJLyb8.woff2 +0 -0
  645. package/dist/studio/assets/WickedSansA-SemiBold-Bk9KXUaV.woff2 +0 -0
  646. package/dist/studio/assets/favicon-BJA6hF2f.svg +1 -0
  647. package/dist/studio/assets/index-BRBwWQMH.css +32 -0
  648. package/dist/studio/assets/index-CVrWDGRP.js +1097 -0
  649. package/dist/studio/assets/wicked-studio-lettering-small-CBwSGqop.svg +2 -0
  650. package/dist/studio/assets/wicked-studio-wordmark-small-gF5xn6IC.svg +2 -0
  651. package/dist/studio/editors/wicked-apps/editor.json +45 -0
  652. package/dist/studio/editors/wicked-apps/icon.svg +1 -0
  653. package/dist/studio/editors/wicked-apps/index.html +151 -0
  654. package/dist/studio/editors/wicked-deck/editor.json +1 -1
  655. package/dist/studio/editors/wicked-deck/index.html +12 -8
  656. package/dist/studio/editors/wicked-doc/editor.json +1 -1
  657. package/dist/studio/editors/wicked-doc/index.html +12 -8
  658. package/dist/studio/editors/wicked-insights/editor.json +1 -1
  659. package/dist/studio/editors/wicked-insights/index.html +1 -1
  660. package/dist/studio/editors/wicked-page/editor.json +1 -1
  661. package/dist/studio/editors/wicked-page/index.html +12 -8
  662. package/dist/studio/editors/wicked-video/editor.json +1 -1
  663. package/dist/studio/editors/wicked-video/index.html +1 -1
  664. package/dist/studio/fonts/LICENSE-WickedSans.txt +97 -0
  665. package/dist/studio/index.html +3 -2
  666. package/dist/studio/testid-inventory.json +10850 -6700
  667. package/dist/team/routes.d.ts +21 -172
  668. package/dist/team/routes.d.ts.map +1 -1
  669. package/dist/team/routes.js +4 -8
  670. package/dist/team/routes.js.map +1 -1
  671. package/dist/voice/dashboard.d.ts +35 -313
  672. package/dist/voice/dashboard.d.ts.map +1 -1
  673. package/dist/voice/dashboard.js +10 -10
  674. package/dist/voice/dashboard.js.map +1 -1
  675. package/dist/voice/routes.d.ts +2 -6
  676. package/dist/voice/routes.d.ts.map +1 -1
  677. package/dist/voice/routes.js +2 -2
  678. package/dist/voice/routes.js.map +1 -1
  679. package/dist/watch/checks/check-failed.d.ts +4 -10
  680. package/dist/watch/checks/check-failed.d.ts.map +1 -1
  681. package/dist/watch/checks/check-failed.js +6 -8
  682. package/dist/watch/checks/check-failed.js.map +1 -1
  683. package/dist/watch/checks/claim-vs-evidence.js +3 -3
  684. package/dist/watch/checks/claim-vs-evidence.js.map +1 -1
  685. package/dist/watch/checks/deliver-audit.js +3 -3
  686. package/dist/watch/checks/deliver-audit.js.map +1 -1
  687. package/dist/watch/checks/discovery.d.ts.map +1 -1
  688. package/dist/watch/checks/discovery.js +5 -7
  689. package/dist/watch/checks/discovery.js.map +1 -1
  690. package/dist/watch/checks/lag.d.ts +4 -10
  691. package/dist/watch/checks/lag.d.ts.map +1 -1
  692. package/dist/watch/checks/lag.js +6 -8
  693. package/dist/watch/checks/lag.js.map +1 -1
  694. package/dist/watch/checks/quiet-after-claim.js +3 -3
  695. package/dist/watch/checks/quiet-after-claim.js.map +1 -1
  696. package/dist/watch/checks/scope-drift.js +3 -3
  697. package/dist/watch/checks/scope-drift.js.map +1 -1
  698. package/dist/watch/checks/team-path.js +2 -2
  699. package/dist/watch/checks/team-path.js.map +1 -1
  700. package/dist/watch/checks/ungated.js +3 -3
  701. package/dist/watch/checks/ungated.js.map +1 -1
  702. package/dist/watch/checks/warned-rule.js +3 -3
  703. package/dist/watch/checks/warned-rule.js.map +1 -1
  704. package/dist/watch/loader.d.ts.map +1 -1
  705. package/dist/watch/loader.js +12 -16
  706. package/dist/watch/loader.js.map +1 -1
  707. package/dist/workflow-catalog/build.d.ts +2 -0
  708. package/dist/workflow-catalog/build.d.ts.map +1 -1
  709. package/dist/workflow-catalog/build.js +8 -4
  710. package/dist/workflow-catalog/build.js.map +1 -1
  711. package/dist/workflow-catalog/catalog-data.d.ts +7 -1
  712. package/dist/workflow-catalog/catalog-data.d.ts.map +1 -1
  713. package/dist/workflow-catalog/catalog-data.js +36 -7
  714. package/dist/workflow-catalog/catalog-data.js.map +1 -1
  715. package/dist/working-doc/service.d.ts.map +1 -1
  716. package/dist/working-doc/service.js +2 -1
  717. package/dist/working-doc/service.js.map +1 -1
  718. package/dist/zod.d.ts +39 -0
  719. package/dist/zod.d.ts.map +1 -0
  720. package/dist/zod.js +197 -0
  721. package/dist/zod.js.map +1 -0
  722. package/endpoint-manifest.json +617 -7
  723. package/package.json +11 -5
  724. package/runners/sqlite-runner.mjs +110 -0
  725. package/dist/studio/assets/WickedSans-Regular-fb698rcD.woff2 +0 -0
  726. package/dist/studio/assets/WickedSans-SemiBold-CD53n1AC.woff2 +0 -0
  727. package/dist/studio/assets/index-BUZ_-Syk.css +0 -32
  728. package/dist/studio/assets/index-C_UIgTiy.js +0 -986
@@ -1,7 +1,7 @@
1
1
  import type { FastifyInstance } from 'fastify';
2
2
  import { PlanSchema } from './plan-schema.js';
3
3
  import type { RecordedStallFrame } from './stall-frame-index.js';
4
- import { z } from 'zod';
4
+ import { z } from '../zod.js';
5
5
  import { CoreAdapter } from '../core/adapter.js';
6
6
  import type { CodeGraphData, CoreEvent, RepoFinding } from '../core/types.js';
7
7
  import { type GateCache } from './gate-cache.js';
@@ -24,6 +24,9 @@ import { type ProjectRoutesDeps } from '../projects/routes.js';
24
24
  import type { DefaultEvalStore } from '../evals/store.js';
25
25
  import type { AskServer } from '../mcp/ask-server.js';
26
26
  import type { McpBroker } from '../mcp/broker.js';
27
+ import type { DataGate } from '../knowledge/gate/gate.js';
28
+ import type { SourceReadLog } from '../knowledge/gate/record.js';
29
+ import type { McpRegistryStore } from '../mcp/registry-store.js';
27
30
  import type { McpCallRecordSource } from '../mcp/call-records.js';
28
31
  import type { McpRegistry } from '../mcp/registry.js';
29
32
  import { type SkillsRuntime } from '../skills/runtime.js';
@@ -35,9 +38,13 @@ import { InteractiveBridgePool } from '../interactive/bridge-pool.js';
35
38
  import { type PullRequestResolution } from '../core/deliver.js';
36
39
  import { type CodebaseArchiveStore } from './codebase-archive.js';
37
40
  import { type DocGroundingStore } from '../interactive/doc-grounding.js';
38
- import { ChatProposals } from './chat-proposals.js';
41
+ import type { DocBindingStore } from '../interactive/doc-binding.js';
42
+ import type { BoundDraft } from '../interactive/draft-events.js';
43
+ import { ChatProposals, LaunchOnceRegistry } from './chat-proposals.js';
39
44
  import type { DocLedgerSweep } from '../interactive/doc-ledger-sweep.js';
40
45
  import { type LinkedIssuesResult } from '../core/linked-issues.js';
46
+ import type { TrackerAddresses } from '../knowledge/trackers/addresses.js';
47
+ import type { TrackerProjector } from '../knowledge/trackers/projector.js';
41
48
  import { AuditLog } from './audit.js';
42
49
  import { type ErrorRing } from './diagnostics.js';
43
50
  import { ChatAttachmentStore } from './chat-attachments.js';
@@ -61,6 +68,10 @@ import { DecisionService } from '../decisions/land.js';
61
68
  import { ChatDecisionRecorder } from '../decisions/chat-recorder.js';
62
69
  import { ConsiderationService } from '../decisions/consider.js';
63
70
  import { type ConformanceRunner, type PackCheckRunner } from '../editors/pack-install.js';
71
+ import type { AppActionStore } from '../apps/actions/store.js';
72
+ import { type Viewer } from '../apps/exec/viewer.js';
73
+ import type { Actor as AppsActor } from '../core/types.js';
74
+ import { type AppStore } from '../apps/store.js';
64
75
  import type { DecisionBusEmit } from '../decisions/events.js';
65
76
  import { type DecisionsMode } from '../decisions/types.js';
66
77
  /** How long `GET /health` waits on the engine's actor before answering `ping: "busy"` (crew#471). */
@@ -101,6 +112,20 @@ export declare function invalidBody(err: z.ZodError, what: string): {
101
112
  details: z.ZodIssue[];
102
113
  };
103
114
  export { policyProposalToRule } from './policy-landing.js';
115
+ export declare const RegisterRepoSchema: z.ZodObject<{
116
+ name: z.ZodString;
117
+ rootPath: z.ZodOptional<z.ZodString>;
118
+ gitUrl: z.ZodOptional<z.ZodString>;
119
+ projectId: z.ZodOptional<z.ZodString>;
120
+ channel: z.ZodOptional<z.ZodEnum<{
121
+ cli: "cli";
122
+ studio: "studio";
123
+ api: "api";
124
+ }>>;
125
+ actor: z.ZodOptional<z.ZodString>;
126
+ autoCapture: z.ZodOptional<z.ZodBoolean>;
127
+ create: z.ZodOptional<z.ZodLiteral<true>>;
128
+ }, z.core.$strict>;
104
129
  /**
105
130
  * The launch body. Every field but `problem` is optional, which is what made stripping dangerous:
106
131
  * omitting one is a legitimate request that gets an engine default, so a MISSPELLED one was
@@ -131,792 +156,60 @@ export declare function launchRosterNaming<T extends {
131
156
  * left to the engine's own parse error (the `engineRosterJson` rule).
132
157
  */
133
158
  export declare function primaryRefusal(primary: string, clisJson: string): string | null;
134
- export declare const LaunchSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
159
+ export declare const LaunchSchema: z.ZodObject<{
135
160
  problem: z.ZodString;
136
161
  sessionId: z.ZodOptional<z.ZodString>;
137
162
  clisJson: z.ZodOptional<z.ZodString>;
138
- /** (api-types 0.128.0; DES-TEAMING-002 §8.1) The seat that leads the run (the PA): a key in the
139
- * launch roster. Omitted ⇒ the engine picks at random (`path.started.selection`). */
140
163
  primary: z.ZodOptional<z.ZodString>;
141
- entityMode: z.ZodOptional<z.ZodEnum<["shared", "isolated"]>>;
164
+ entityMode: z.ZodOptional<z.ZodEnum<{
165
+ shared: "shared";
166
+ isolated: "isolated";
167
+ }>>;
142
168
  humanConfirm: z.ZodOptional<z.ZodString>;
143
169
  repoRef: z.ZodOptional<z.ZodString>;
144
170
  workflow: z.ZodOptional<z.ZodString>;
145
- /** DES-TEAMING-002 T3 — a user-composed plan (`LaunchRunBody.plan`), forwarded to the engine,
146
- * which publishes `plan.proposed{by:"human"}` and holds it at a `plan_approval` gate when the
147
- * approval matrix says so. Mutually exclusive with `workflow` (refine below). */
148
171
  plan: z.ZodOptional<z.ZodObject<{
149
172
  steps: z.ZodArray<z.ZodObject<{
150
173
  catalog: z.ZodString;
151
174
  id: z.ZodOptional<z.ZodString>;
152
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
153
- catalog: z.ZodString;
154
- id: z.ZodOptional<z.ZodString>;
155
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
156
- catalog: z.ZodString;
157
- id: z.ZodOptional<z.ZodString>;
158
- }, z.ZodTypeAny, "passthrough">>, "many">;
159
- touch: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
175
+ }, z.core.$loose>>;
176
+ touch: z.ZodOptional<z.ZodArray<z.ZodString>>;
160
177
  override: z.ZodOptional<z.ZodObject<{
161
- remove: z.ZodArray<z.ZodString, "many">;
178
+ remove: z.ZodArray<z.ZodString>;
162
179
  reason: z.ZodString;
163
- }, "strict", z.ZodTypeAny, {
164
- reason: string;
165
- remove: string[];
166
- }, {
167
- reason: string;
168
- remove: string[];
169
- }>>;
180
+ }, z.core.$strict>>;
170
181
  monitors: z.ZodOptional<z.ZodObject<{
171
- asked: z.ZodNumber;
172
- }, "strict", z.ZodTypeAny, {
173
- asked: number;
174
- }, {
175
- asked: number;
176
- }>>;
177
- }, "strict", z.ZodTypeAny, {
178
- steps: z.objectOutputType<{
179
- catalog: z.ZodString;
180
- id: z.ZodOptional<z.ZodString>;
181
- }, z.ZodTypeAny, "passthrough">[];
182
- override?: {
183
- reason: string;
184
- remove: string[];
185
- } | undefined;
186
- touch?: string[] | undefined;
187
- monitors?: {
188
- asked: number;
189
- } | undefined;
190
- }, {
191
- steps: z.objectInputType<{
192
- catalog: z.ZodString;
193
- id: z.ZodOptional<z.ZodString>;
194
- }, z.ZodTypeAny, "passthrough">[];
195
- override?: {
196
- reason: string;
197
- remove: string[];
198
- } | undefined;
199
- touch?: string[] | undefined;
200
- monitors?: {
201
- asked: number;
202
- } | undefined;
203
- }>>;
204
- /** DES-PROJECT-001 §2.2 — file the run into a project; membership attaches atomically with
205
- * the launch record. Unknown/archived ⇒ the launch fails (never a silent unfiled run). */
182
+ asked: z.ZodInt;
183
+ }, z.core.$strict>>;
184
+ }, z.core.$strict>>;
206
185
  projectId: z.ZodOptional<z.ZodString>;
207
- /** crew#293 — `"pr"` appends the hardened deliver Tool phase (push run branch + `gh pr create`)
208
- * to a PER-RUN copy of the selected workflow; requires `workflow` (enforced by the refine
209
- * below, so the 400 happens at parse time, not after the adapter is consulted). crew#393 —
210
- * `"none"` explicitly declines delivery (legal with or without a workflow); OMITTED means the
211
- * daemon decides: repo-scoped + a CODE-WORK workflow (a def with an `executes_code` phase)
212
- * defaults to `"pr"` (flippable via the `deliverDefault` setting), everything else to
213
- * `"none"` — see the resolution below. */
214
- deliver: z.ZodOptional<z.ZodEnum<["pr", "none"]>>;
215
- /** F-E2E-030 — who confirms the deliver phase. `'human'` (the default when omitted): the engine
216
- * pauses before the composed `deliver` Tool unit pushes and opens the PR, whatever
217
- * `humanConfirm` says. `'auto'`: the caller's EXPLICIT opt-out — the push and PR follow verify
218
- * unattended, under the daemon's active gh account; a UI sending it must name the posture
219
- * "auto-deliver" to its operator. Additive; an older daemon's schema rejects it with a 400. */
220
- deliverGate: z.ZodOptional<z.ZodEnum<["human", "auto"]>>;
221
- /** DES-UX-001 §8.3 (CREW-UX-3) — the run this launch retries. Must name an EXISTING run id
222
- * (the route checks the store and 400s with a named error otherwise); persisted via the
223
- * `run.launched` audit entry + retry index and echoed as `AgentSession.retry_of`. */
186
+ deliver: z.ZodOptional<z.ZodEnum<{
187
+ pr: "pr";
188
+ none: "none";
189
+ }>>;
190
+ deliverGate: z.ZodOptional<z.ZodEnum<{
191
+ auto: "auto";
192
+ human: "human";
193
+ }>>;
224
194
  retryOf: z.ZodOptional<z.ZodString>;
225
- /** wicked-studio#27 (api-types 0.19.0) — attach this AD-HOC run to an EXISTING campaign's
226
- * surface. Validated against the campaign store before anything launches (unknown ⇒ 404,
227
- * engine without campaign bindings ⇒ 501 — never a silently dropped attach); persisted via
228
- * the `run.launched` audit entry + group index, echoed as `AgentSession.campaign_id`, and
229
- * served under `Campaign.attached_runs`. Provenance only: the run is NOT a DAG node. */
230
195
  campaignId: z.ZodOptional<z.ZodString>;
231
- /** wicked-studio#27 (api-types 0.19.0) — ad-hoc label group, created on first use: runs
232
- * sharing a label form one `RunGroup` on `GET /campaigns`. Persisted/echoed like
233
- * `campaignId` (as `AgentSession.group_label`). */
234
196
  groupLabel: z.ZodOptional<z.ZodString>;
235
- /** DES-L9 / crew#550 (api-types 0.38.0) — REVISE an OPEN same-repository pull request: its head
236
- * branch becomes the run's base and the deliver phase pushes the run's commits onto it (no
237
- * second PR), commenting the run record. Needs `repoRef` + `workflow` and `deliver: "pr"`
238
- * (explicit `"none"` is a 400; a daemon that resolves the omitted field to `none` is a 409).
239
- * Resolved via `gh pr view` at launch — not OPEN / a fork / gh failure ⇒ 409, nothing launched.
240
- * Send it only when `GET /health.capabilities.revisesPr === true` (engine ≥ 0.7.27). */
241
- revisesPr: z.ZodOptional<z.ZodNumber>;
242
- /** crew#619 — the chat this run was promoted from; the daemon retains that chat's transcript
243
- * on disk until this run reaches a terminal state so the Continue-in-Build prefill is
244
- * always reproducible. Optional; omit when the launch is not promoted from a chat. */
197
+ revisesPr: z.ZodOptional<z.ZodInt>;
245
198
  chatId: z.ZodOptional<z.ZodString>;
246
- /** crew#632 — the surface that triggered this launch: `studio` (the web UI), `cli` (the
247
- * wicked-crew CLI), or `api` (a programmatic caller). Persisted on the `run.launched` audit
248
- * entry (`detail.channel`) and served on the run DTO; absent = origin unknown. */
249
- channel: z.ZodOptional<z.ZodEnum<["studio", "cli", "api"]>>;
250
- /** crew#632 — an opaque caller-supplied identifier for the user or system that triggered the
251
- * launch (e.g. a CI job name or a studio tab id). Persisted on the `run.launched` audit entry
252
- * (`detail.actor`) and served on the run DTO; absent = caller omitted it. */
199
+ channel: z.ZodOptional<z.ZodEnum<{
200
+ cli: "cli";
201
+ studio: "studio";
202
+ api: "api";
203
+ }>>;
253
204
  actor: z.ZodOptional<z.ZodString>;
254
- /** crew#825 (api-types additive) — issue refs the intent names that the daemon must NOT read and
255
- * append (`541`, `#541`, `repo#541`, `owner/repo#541`): a reference in passing is not a request to inline
256
- * the issue. They are answered as `linkedIssues[].excluded`. Send only when
257
- * `GET /health.capabilities.linkedIssuesExclude === true`. */
258
- excludeLinkedIssues: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
259
- /** wicked-core#850 (api-types 0.102.0) — the EXPLICIT reduced-assurance opt-in: the creator's seat
260
- * may evaluate and a judge-less gate may pass, disclosed on every receipt. `false` is an explicit
261
- * "full assurance", the same as omitting it: the launcher never chooses for the caller, and a
262
- * full-assurance launch on a one-CLI roster is answered with `assuranceNotice` (`core/assurance.ts`). */
205
+ excludeLinkedIssues: z.ZodOptional<z.ZodArray<z.ZodString>>;
263
206
  reducedAssurance: z.ZodOptional<z.ZodBoolean>;
264
- /** (api-types 0.149.0, program DES-POWER-MODE) Power mode for this launch. Omitted: the daemon's
265
- * `powerModeDefault` setting (on when unset). Applies to a repo-scoped plan or preset launch only. */
266
207
  power: z.ZodOptional<z.ZodBoolean>;
267
- /** QE-IN-APP-WORKFLOWS (api-types 0.106.0) — the operator's EXPLICIT skip of a required QE
268
- * acceptance, with a reason (labelled on the run, every gate and the delivery), or its explicit
269
- * force (no score waiver). Forwarded only when sent; crew never decides either for the caller,
270
- * and the engine refuses either on a run whose workflow does not require QE acceptance. */
271
208
  skipQeAcceptance: z.ZodOptional<z.ZodObject<{
272
209
  reason: z.ZodString;
273
- }, "strict", z.ZodTypeAny, {
274
- reason: string;
275
- }, {
276
- reason: string;
277
- }>>;
210
+ }, z.core.$strict>>;
278
211
  forceQeAcceptance: z.ZodOptional<z.ZodBoolean>;
279
- }, "strict", z.ZodTypeAny, {
280
- problem: string;
281
- deliver?: "pr" | "none" | undefined;
282
- revisesPr?: number | undefined;
283
- workflow?: string | undefined;
284
- power?: boolean | undefined;
285
- plan?: {
286
- steps: z.objectOutputType<{
287
- catalog: z.ZodString;
288
- id: z.ZodOptional<z.ZodString>;
289
- }, z.ZodTypeAny, "passthrough">[];
290
- override?: {
291
- reason: string;
292
- remove: string[];
293
- } | undefined;
294
- touch?: string[] | undefined;
295
- monitors?: {
296
- asked: number;
297
- } | undefined;
298
- } | undefined;
299
- projectId?: string | undefined;
300
- sessionId?: string | undefined;
301
- clisJson?: string | undefined;
302
- primary?: string | undefined;
303
- entityMode?: "shared" | "isolated" | undefined;
304
- humanConfirm?: string | undefined;
305
- repoRef?: string | undefined;
306
- reducedAssurance?: boolean | undefined;
307
- chatId?: string | undefined;
308
- actor?: string | undefined;
309
- channel?: "cli" | "studio" | "api" | undefined;
310
- campaignId?: string | undefined;
311
- groupLabel?: string | undefined;
312
- retryOf?: string | undefined;
313
- deliverGate?: "auto" | "human" | undefined;
314
- excludeLinkedIssues?: string[] | undefined;
315
- skipQeAcceptance?: {
316
- reason: string;
317
- } | undefined;
318
- forceQeAcceptance?: boolean | undefined;
319
- }, {
320
- problem: string;
321
- deliver?: "pr" | "none" | undefined;
322
- revisesPr?: number | undefined;
323
- workflow?: string | undefined;
324
- power?: boolean | undefined;
325
- plan?: {
326
- steps: z.objectInputType<{
327
- catalog: z.ZodString;
328
- id: z.ZodOptional<z.ZodString>;
329
- }, z.ZodTypeAny, "passthrough">[];
330
- override?: {
331
- reason: string;
332
- remove: string[];
333
- } | undefined;
334
- touch?: string[] | undefined;
335
- monitors?: {
336
- asked: number;
337
- } | undefined;
338
- } | undefined;
339
- projectId?: string | undefined;
340
- sessionId?: string | undefined;
341
- clisJson?: string | undefined;
342
- primary?: string | undefined;
343
- entityMode?: "shared" | "isolated" | undefined;
344
- humanConfirm?: string | undefined;
345
- repoRef?: string | undefined;
346
- reducedAssurance?: boolean | undefined;
347
- chatId?: string | undefined;
348
- actor?: string | undefined;
349
- channel?: "cli" | "studio" | "api" | undefined;
350
- campaignId?: string | undefined;
351
- groupLabel?: string | undefined;
352
- retryOf?: string | undefined;
353
- deliverGate?: "auto" | "human" | undefined;
354
- excludeLinkedIssues?: string[] | undefined;
355
- skipQeAcceptance?: {
356
- reason: string;
357
- } | undefined;
358
- forceQeAcceptance?: boolean | undefined;
359
- }>, {
360
- problem: string;
361
- deliver?: "pr" | "none" | undefined;
362
- revisesPr?: number | undefined;
363
- workflow?: string | undefined;
364
- power?: boolean | undefined;
365
- plan?: {
366
- steps: z.objectOutputType<{
367
- catalog: z.ZodString;
368
- id: z.ZodOptional<z.ZodString>;
369
- }, z.ZodTypeAny, "passthrough">[];
370
- override?: {
371
- reason: string;
372
- remove: string[];
373
- } | undefined;
374
- touch?: string[] | undefined;
375
- monitors?: {
376
- asked: number;
377
- } | undefined;
378
- } | undefined;
379
- projectId?: string | undefined;
380
- sessionId?: string | undefined;
381
- clisJson?: string | undefined;
382
- primary?: string | undefined;
383
- entityMode?: "shared" | "isolated" | undefined;
384
- humanConfirm?: string | undefined;
385
- repoRef?: string | undefined;
386
- reducedAssurance?: boolean | undefined;
387
- chatId?: string | undefined;
388
- actor?: string | undefined;
389
- channel?: "cli" | "studio" | "api" | undefined;
390
- campaignId?: string | undefined;
391
- groupLabel?: string | undefined;
392
- retryOf?: string | undefined;
393
- deliverGate?: "auto" | "human" | undefined;
394
- excludeLinkedIssues?: string[] | undefined;
395
- skipQeAcceptance?: {
396
- reason: string;
397
- } | undefined;
398
- forceQeAcceptance?: boolean | undefined;
399
- }, {
400
- problem: string;
401
- deliver?: "pr" | "none" | undefined;
402
- revisesPr?: number | undefined;
403
- workflow?: string | undefined;
404
- power?: boolean | undefined;
405
- plan?: {
406
- steps: z.objectInputType<{
407
- catalog: z.ZodString;
408
- id: z.ZodOptional<z.ZodString>;
409
- }, z.ZodTypeAny, "passthrough">[];
410
- override?: {
411
- reason: string;
412
- remove: string[];
413
- } | undefined;
414
- touch?: string[] | undefined;
415
- monitors?: {
416
- asked: number;
417
- } | undefined;
418
- } | undefined;
419
- projectId?: string | undefined;
420
- sessionId?: string | undefined;
421
- clisJson?: string | undefined;
422
- primary?: string | undefined;
423
- entityMode?: "shared" | "isolated" | undefined;
424
- humanConfirm?: string | undefined;
425
- repoRef?: string | undefined;
426
- reducedAssurance?: boolean | undefined;
427
- chatId?: string | undefined;
428
- actor?: string | undefined;
429
- channel?: "cli" | "studio" | "api" | undefined;
430
- campaignId?: string | undefined;
431
- groupLabel?: string | undefined;
432
- retryOf?: string | undefined;
433
- deliverGate?: "auto" | "human" | undefined;
434
- excludeLinkedIssues?: string[] | undefined;
435
- skipQeAcceptance?: {
436
- reason: string;
437
- } | undefined;
438
- forceQeAcceptance?: boolean | undefined;
439
- }>, {
440
- problem: string;
441
- deliver?: "pr" | "none" | undefined;
442
- revisesPr?: number | undefined;
443
- workflow?: string | undefined;
444
- power?: boolean | undefined;
445
- plan?: {
446
- steps: z.objectOutputType<{
447
- catalog: z.ZodString;
448
- id: z.ZodOptional<z.ZodString>;
449
- }, z.ZodTypeAny, "passthrough">[];
450
- override?: {
451
- reason: string;
452
- remove: string[];
453
- } | undefined;
454
- touch?: string[] | undefined;
455
- monitors?: {
456
- asked: number;
457
- } | undefined;
458
- } | undefined;
459
- projectId?: string | undefined;
460
- sessionId?: string | undefined;
461
- clisJson?: string | undefined;
462
- primary?: string | undefined;
463
- entityMode?: "shared" | "isolated" | undefined;
464
- humanConfirm?: string | undefined;
465
- repoRef?: string | undefined;
466
- reducedAssurance?: boolean | undefined;
467
- chatId?: string | undefined;
468
- actor?: string | undefined;
469
- channel?: "cli" | "studio" | "api" | undefined;
470
- campaignId?: string | undefined;
471
- groupLabel?: string | undefined;
472
- retryOf?: string | undefined;
473
- deliverGate?: "auto" | "human" | undefined;
474
- excludeLinkedIssues?: string[] | undefined;
475
- skipQeAcceptance?: {
476
- reason: string;
477
- } | undefined;
478
- forceQeAcceptance?: boolean | undefined;
479
- }, {
480
- problem: string;
481
- deliver?: "pr" | "none" | undefined;
482
- revisesPr?: number | undefined;
483
- workflow?: string | undefined;
484
- power?: boolean | undefined;
485
- plan?: {
486
- steps: z.objectInputType<{
487
- catalog: z.ZodString;
488
- id: z.ZodOptional<z.ZodString>;
489
- }, z.ZodTypeAny, "passthrough">[];
490
- override?: {
491
- reason: string;
492
- remove: string[];
493
- } | undefined;
494
- touch?: string[] | undefined;
495
- monitors?: {
496
- asked: number;
497
- } | undefined;
498
- } | undefined;
499
- projectId?: string | undefined;
500
- sessionId?: string | undefined;
501
- clisJson?: string | undefined;
502
- primary?: string | undefined;
503
- entityMode?: "shared" | "isolated" | undefined;
504
- humanConfirm?: string | undefined;
505
- repoRef?: string | undefined;
506
- reducedAssurance?: boolean | undefined;
507
- chatId?: string | undefined;
508
- actor?: string | undefined;
509
- channel?: "cli" | "studio" | "api" | undefined;
510
- campaignId?: string | undefined;
511
- groupLabel?: string | undefined;
512
- retryOf?: string | undefined;
513
- deliverGate?: "auto" | "human" | undefined;
514
- excludeLinkedIssues?: string[] | undefined;
515
- skipQeAcceptance?: {
516
- reason: string;
517
- } | undefined;
518
- forceQeAcceptance?: boolean | undefined;
519
- }>, {
520
- problem: string;
521
- deliver?: "pr" | "none" | undefined;
522
- revisesPr?: number | undefined;
523
- workflow?: string | undefined;
524
- power?: boolean | undefined;
525
- plan?: {
526
- steps: z.objectOutputType<{
527
- catalog: z.ZodString;
528
- id: z.ZodOptional<z.ZodString>;
529
- }, z.ZodTypeAny, "passthrough">[];
530
- override?: {
531
- reason: string;
532
- remove: string[];
533
- } | undefined;
534
- touch?: string[] | undefined;
535
- monitors?: {
536
- asked: number;
537
- } | undefined;
538
- } | undefined;
539
- projectId?: string | undefined;
540
- sessionId?: string | undefined;
541
- clisJson?: string | undefined;
542
- primary?: string | undefined;
543
- entityMode?: "shared" | "isolated" | undefined;
544
- humanConfirm?: string | undefined;
545
- repoRef?: string | undefined;
546
- reducedAssurance?: boolean | undefined;
547
- chatId?: string | undefined;
548
- actor?: string | undefined;
549
- channel?: "cli" | "studio" | "api" | undefined;
550
- campaignId?: string | undefined;
551
- groupLabel?: string | undefined;
552
- retryOf?: string | undefined;
553
- deliverGate?: "auto" | "human" | undefined;
554
- excludeLinkedIssues?: string[] | undefined;
555
- skipQeAcceptance?: {
556
- reason: string;
557
- } | undefined;
558
- forceQeAcceptance?: boolean | undefined;
559
- }, {
560
- problem: string;
561
- deliver?: "pr" | "none" | undefined;
562
- revisesPr?: number | undefined;
563
- workflow?: string | undefined;
564
- power?: boolean | undefined;
565
- plan?: {
566
- steps: z.objectInputType<{
567
- catalog: z.ZodString;
568
- id: z.ZodOptional<z.ZodString>;
569
- }, z.ZodTypeAny, "passthrough">[];
570
- override?: {
571
- reason: string;
572
- remove: string[];
573
- } | undefined;
574
- touch?: string[] | undefined;
575
- monitors?: {
576
- asked: number;
577
- } | undefined;
578
- } | undefined;
579
- projectId?: string | undefined;
580
- sessionId?: string | undefined;
581
- clisJson?: string | undefined;
582
- primary?: string | undefined;
583
- entityMode?: "shared" | "isolated" | undefined;
584
- humanConfirm?: string | undefined;
585
- repoRef?: string | undefined;
586
- reducedAssurance?: boolean | undefined;
587
- chatId?: string | undefined;
588
- actor?: string | undefined;
589
- channel?: "cli" | "studio" | "api" | undefined;
590
- campaignId?: string | undefined;
591
- groupLabel?: string | undefined;
592
- retryOf?: string | undefined;
593
- deliverGate?: "auto" | "human" | undefined;
594
- excludeLinkedIssues?: string[] | undefined;
595
- skipQeAcceptance?: {
596
- reason: string;
597
- } | undefined;
598
- forceQeAcceptance?: boolean | undefined;
599
- }>, {
600
- problem: string;
601
- deliver?: "pr" | "none" | undefined;
602
- revisesPr?: number | undefined;
603
- workflow?: string | undefined;
604
- power?: boolean | undefined;
605
- plan?: {
606
- steps: z.objectOutputType<{
607
- catalog: z.ZodString;
608
- id: z.ZodOptional<z.ZodString>;
609
- }, z.ZodTypeAny, "passthrough">[];
610
- override?: {
611
- reason: string;
612
- remove: string[];
613
- } | undefined;
614
- touch?: string[] | undefined;
615
- monitors?: {
616
- asked: number;
617
- } | undefined;
618
- } | undefined;
619
- projectId?: string | undefined;
620
- sessionId?: string | undefined;
621
- clisJson?: string | undefined;
622
- primary?: string | undefined;
623
- entityMode?: "shared" | "isolated" | undefined;
624
- humanConfirm?: string | undefined;
625
- repoRef?: string | undefined;
626
- reducedAssurance?: boolean | undefined;
627
- chatId?: string | undefined;
628
- actor?: string | undefined;
629
- channel?: "cli" | "studio" | "api" | undefined;
630
- campaignId?: string | undefined;
631
- groupLabel?: string | undefined;
632
- retryOf?: string | undefined;
633
- deliverGate?: "auto" | "human" | undefined;
634
- excludeLinkedIssues?: string[] | undefined;
635
- skipQeAcceptance?: {
636
- reason: string;
637
- } | undefined;
638
- forceQeAcceptance?: boolean | undefined;
639
- }, {
640
- problem: string;
641
- deliver?: "pr" | "none" | undefined;
642
- revisesPr?: number | undefined;
643
- workflow?: string | undefined;
644
- power?: boolean | undefined;
645
- plan?: {
646
- steps: z.objectInputType<{
647
- catalog: z.ZodString;
648
- id: z.ZodOptional<z.ZodString>;
649
- }, z.ZodTypeAny, "passthrough">[];
650
- override?: {
651
- reason: string;
652
- remove: string[];
653
- } | undefined;
654
- touch?: string[] | undefined;
655
- monitors?: {
656
- asked: number;
657
- } | undefined;
658
- } | undefined;
659
- projectId?: string | undefined;
660
- sessionId?: string | undefined;
661
- clisJson?: string | undefined;
662
- primary?: string | undefined;
663
- entityMode?: "shared" | "isolated" | undefined;
664
- humanConfirm?: string | undefined;
665
- repoRef?: string | undefined;
666
- reducedAssurance?: boolean | undefined;
667
- chatId?: string | undefined;
668
- actor?: string | undefined;
669
- channel?: "cli" | "studio" | "api" | undefined;
670
- campaignId?: string | undefined;
671
- groupLabel?: string | undefined;
672
- retryOf?: string | undefined;
673
- deliverGate?: "auto" | "human" | undefined;
674
- excludeLinkedIssues?: string[] | undefined;
675
- skipQeAcceptance?: {
676
- reason: string;
677
- } | undefined;
678
- forceQeAcceptance?: boolean | undefined;
679
- }>, {
680
- problem: string;
681
- deliver?: "pr" | "none" | undefined;
682
- revisesPr?: number | undefined;
683
- workflow?: string | undefined;
684
- power?: boolean | undefined;
685
- plan?: {
686
- steps: z.objectOutputType<{
687
- catalog: z.ZodString;
688
- id: z.ZodOptional<z.ZodString>;
689
- }, z.ZodTypeAny, "passthrough">[];
690
- override?: {
691
- reason: string;
692
- remove: string[];
693
- } | undefined;
694
- touch?: string[] | undefined;
695
- monitors?: {
696
- asked: number;
697
- } | undefined;
698
- } | undefined;
699
- projectId?: string | undefined;
700
- sessionId?: string | undefined;
701
- clisJson?: string | undefined;
702
- primary?: string | undefined;
703
- entityMode?: "shared" | "isolated" | undefined;
704
- humanConfirm?: string | undefined;
705
- repoRef?: string | undefined;
706
- reducedAssurance?: boolean | undefined;
707
- chatId?: string | undefined;
708
- actor?: string | undefined;
709
- channel?: "cli" | "studio" | "api" | undefined;
710
- campaignId?: string | undefined;
711
- groupLabel?: string | undefined;
712
- retryOf?: string | undefined;
713
- deliverGate?: "auto" | "human" | undefined;
714
- excludeLinkedIssues?: string[] | undefined;
715
- skipQeAcceptance?: {
716
- reason: string;
717
- } | undefined;
718
- forceQeAcceptance?: boolean | undefined;
719
- }, {
720
- problem: string;
721
- deliver?: "pr" | "none" | undefined;
722
- revisesPr?: number | undefined;
723
- workflow?: string | undefined;
724
- power?: boolean | undefined;
725
- plan?: {
726
- steps: z.objectInputType<{
727
- catalog: z.ZodString;
728
- id: z.ZodOptional<z.ZodString>;
729
- }, z.ZodTypeAny, "passthrough">[];
730
- override?: {
731
- reason: string;
732
- remove: string[];
733
- } | undefined;
734
- touch?: string[] | undefined;
735
- monitors?: {
736
- asked: number;
737
- } | undefined;
738
- } | undefined;
739
- projectId?: string | undefined;
740
- sessionId?: string | undefined;
741
- clisJson?: string | undefined;
742
- primary?: string | undefined;
743
- entityMode?: "shared" | "isolated" | undefined;
744
- humanConfirm?: string | undefined;
745
- repoRef?: string | undefined;
746
- reducedAssurance?: boolean | undefined;
747
- chatId?: string | undefined;
748
- actor?: string | undefined;
749
- channel?: "cli" | "studio" | "api" | undefined;
750
- campaignId?: string | undefined;
751
- groupLabel?: string | undefined;
752
- retryOf?: string | undefined;
753
- deliverGate?: "auto" | "human" | undefined;
754
- excludeLinkedIssues?: string[] | undefined;
755
- skipQeAcceptance?: {
756
- reason: string;
757
- } | undefined;
758
- forceQeAcceptance?: boolean | undefined;
759
- }>, {
760
- problem: string;
761
- deliver?: "pr" | "none" | undefined;
762
- revisesPr?: number | undefined;
763
- workflow?: string | undefined;
764
- power?: boolean | undefined;
765
- plan?: {
766
- steps: z.objectOutputType<{
767
- catalog: z.ZodString;
768
- id: z.ZodOptional<z.ZodString>;
769
- }, z.ZodTypeAny, "passthrough">[];
770
- override?: {
771
- reason: string;
772
- remove: string[];
773
- } | undefined;
774
- touch?: string[] | undefined;
775
- monitors?: {
776
- asked: number;
777
- } | undefined;
778
- } | undefined;
779
- projectId?: string | undefined;
780
- sessionId?: string | undefined;
781
- clisJson?: string | undefined;
782
- primary?: string | undefined;
783
- entityMode?: "shared" | "isolated" | undefined;
784
- humanConfirm?: string | undefined;
785
- repoRef?: string | undefined;
786
- reducedAssurance?: boolean | undefined;
787
- chatId?: string | undefined;
788
- actor?: string | undefined;
789
- channel?: "cli" | "studio" | "api" | undefined;
790
- campaignId?: string | undefined;
791
- groupLabel?: string | undefined;
792
- retryOf?: string | undefined;
793
- deliverGate?: "auto" | "human" | undefined;
794
- excludeLinkedIssues?: string[] | undefined;
795
- skipQeAcceptance?: {
796
- reason: string;
797
- } | undefined;
798
- forceQeAcceptance?: boolean | undefined;
799
- }, {
800
- problem: string;
801
- deliver?: "pr" | "none" | undefined;
802
- revisesPr?: number | undefined;
803
- workflow?: string | undefined;
804
- power?: boolean | undefined;
805
- plan?: {
806
- steps: z.objectInputType<{
807
- catalog: z.ZodString;
808
- id: z.ZodOptional<z.ZodString>;
809
- }, z.ZodTypeAny, "passthrough">[];
810
- override?: {
811
- reason: string;
812
- remove: string[];
813
- } | undefined;
814
- touch?: string[] | undefined;
815
- monitors?: {
816
- asked: number;
817
- } | undefined;
818
- } | undefined;
819
- projectId?: string | undefined;
820
- sessionId?: string | undefined;
821
- clisJson?: string | undefined;
822
- primary?: string | undefined;
823
- entityMode?: "shared" | "isolated" | undefined;
824
- humanConfirm?: string | undefined;
825
- repoRef?: string | undefined;
826
- reducedAssurance?: boolean | undefined;
827
- chatId?: string | undefined;
828
- actor?: string | undefined;
829
- channel?: "cli" | "studio" | "api" | undefined;
830
- campaignId?: string | undefined;
831
- groupLabel?: string | undefined;
832
- retryOf?: string | undefined;
833
- deliverGate?: "auto" | "human" | undefined;
834
- excludeLinkedIssues?: string[] | undefined;
835
- skipQeAcceptance?: {
836
- reason: string;
837
- } | undefined;
838
- forceQeAcceptance?: boolean | undefined;
839
- }>, {
840
- problem: string;
841
- deliver?: "pr" | "none" | undefined;
842
- revisesPr?: number | undefined;
843
- workflow?: string | undefined;
844
- power?: boolean | undefined;
845
- plan?: {
846
- steps: z.objectOutputType<{
847
- catalog: z.ZodString;
848
- id: z.ZodOptional<z.ZodString>;
849
- }, z.ZodTypeAny, "passthrough">[];
850
- override?: {
851
- reason: string;
852
- remove: string[];
853
- } | undefined;
854
- touch?: string[] | undefined;
855
- monitors?: {
856
- asked: number;
857
- } | undefined;
858
- } | undefined;
859
- projectId?: string | undefined;
860
- sessionId?: string | undefined;
861
- clisJson?: string | undefined;
862
- primary?: string | undefined;
863
- entityMode?: "shared" | "isolated" | undefined;
864
- humanConfirm?: string | undefined;
865
- repoRef?: string | undefined;
866
- reducedAssurance?: boolean | undefined;
867
- chatId?: string | undefined;
868
- actor?: string | undefined;
869
- channel?: "cli" | "studio" | "api" | undefined;
870
- campaignId?: string | undefined;
871
- groupLabel?: string | undefined;
872
- retryOf?: string | undefined;
873
- deliverGate?: "auto" | "human" | undefined;
874
- excludeLinkedIssues?: string[] | undefined;
875
- skipQeAcceptance?: {
876
- reason: string;
877
- } | undefined;
878
- forceQeAcceptance?: boolean | undefined;
879
- }, {
880
- problem: string;
881
- deliver?: "pr" | "none" | undefined;
882
- revisesPr?: number | undefined;
883
- workflow?: string | undefined;
884
- power?: boolean | undefined;
885
- plan?: {
886
- steps: z.objectInputType<{
887
- catalog: z.ZodString;
888
- id: z.ZodOptional<z.ZodString>;
889
- }, z.ZodTypeAny, "passthrough">[];
890
- override?: {
891
- reason: string;
892
- remove: string[];
893
- } | undefined;
894
- touch?: string[] | undefined;
895
- monitors?: {
896
- asked: number;
897
- } | undefined;
898
- } | undefined;
899
- projectId?: string | undefined;
900
- sessionId?: string | undefined;
901
- clisJson?: string | undefined;
902
- primary?: string | undefined;
903
- entityMode?: "shared" | "isolated" | undefined;
904
- humanConfirm?: string | undefined;
905
- repoRef?: string | undefined;
906
- reducedAssurance?: boolean | undefined;
907
- chatId?: string | undefined;
908
- actor?: string | undefined;
909
- channel?: "cli" | "studio" | "api" | undefined;
910
- campaignId?: string | undefined;
911
- groupLabel?: string | undefined;
912
- retryOf?: string | undefined;
913
- deliverGate?: "auto" | "human" | undefined;
914
- excludeLinkedIssues?: string[] | undefined;
915
- skipQeAcceptance?: {
916
- reason: string;
917
- } | undefined;
918
- forceQeAcceptance?: boolean | undefined;
919
- }>;
212
+ }, z.core.$strict>;
920
213
  /** The escalation arms (wicked-core#469 / #467): approve-shaped, no `amend` / `amendScope`.
921
214
  * `extend` | `targeted` | `accept_partial` answer the gate of a repo-checks floor that did not
922
215
  * finish (`repo_checks_timeout`) — the engine re-runs the floor on the tree as it stands with 2×
@@ -925,7 +218,14 @@ export declare const LaunchSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodE
925
218
  * re-runs the judge of a `judge_unavailable` gate on the same work, the step's seat not run again.
926
219
  * The ENGINE refuses each at any other gate (a 409 naming the gate it answers) — and `rejudge`
927
220
  * while no judge seat is eligible ({@link GateInfo.rejudge} says beforehand). */
928
- export declare const ESCALATION_ACTIONS: readonly ["extend", "targeted", "accept_partial", "accept_suggestion", "rejudge"];
221
+ export declare const ESCALATION_ACTIONS: readonly ["extend", "targeted", "accept_partial", "accept_suggestion", "rejudge", "retry_rules"];
222
+ /** (DES-RULE-CHECK-001 S2, api-types 0.190.0) At a `rules_unchecked` gate (a steering rule no judge
223
+ * ruled on): `retry_rules` (an escalation arm above) re-runs the rule check on the same work, the
224
+ * step's seat not run again; `skip_rules` skips unchecked rules, each with a written reason
225
+ * (`skipRules: [{id, reason}]`, required), then re-runs it. A skip is labelled on the run, the gate
226
+ * and the delivery receipts. The engine refuses both at any other gate, and a skip of a rule that
227
+ * is not unchecked (a broken rule denies). Skipping is the human operator's call alone. */
228
+ export declare const SKIP_RULES_ACTION: "skip_rules";
929
229
  /** (core#820) A consent gate's answer token: `consent:<choice id>` approves that row of the dry-run
930
230
  * plan (the engine refuses an id its plan does not offer); `reject` stays the decline. */
931
231
  export declare const CONSENT_CHOICE_ACTION: RegExp;
@@ -959,738 +259,100 @@ export declare const OPERATOR_JUDGMENT_ACTION: "operator_judgment";
959
259
  * denied (it counts), or a failed floor's gate with QE behind it (it re-opens on the floor alone).
960
260
  * Refused (409, gate left open) everywhere else and on a run that does not require QE. */
961
261
  export declare const SKIP_QE_ACTION: "skip_qe";
262
+ /** (DES-RULE-CHECK-001 S2) The engine's `skip_rules` amend: `[{"id", "reason"}]`, reasons trimmed. */
263
+ export declare function skipRulesAmend(skips: ReadonlyArray<{
264
+ id: string;
265
+ reason: string;
266
+ }>): string;
962
267
  /** (studio#923) The label an operator's QE skip carries on the run, every later gate and the
963
268
  * delivery — the engine's words ("QE acceptance skipped by operator: <reason>"). */
964
269
  export declare const QE_SKIPPED_BY_OPERATOR_LABEL: "QE acceptance skipped by operator";
965
- export declare const GateSchema: z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodEffects<z.ZodObject<{
270
+ export declare const GateSchema: z.ZodObject<{
966
271
  approve: z.ZodBoolean;
967
272
  amend: z.ZodOptional<z.ZodString>;
968
- action: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["approve", "request_changes", "reject", "edit_plan", "amend_intent", "operator_judgment", "skip_qe", "extend", "targeted", "accept_partial", "accept_suggestion", "rejudge"]>, z.ZodString]>>;
969
- amendScope: z.ZodOptional<z.ZodEnum<["cursor", "creator"]>>;
970
- /** DES-TEAMING-002 T3 — approve a `plan_approval` gate WITH AN EDIT (`GateDecision.plan`). */
273
+ action: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
274
+ edit_plan: "edit_plan";
275
+ approve: "approve";
276
+ operator_judgment: "operator_judgment";
277
+ skip_qe: "skip_qe";
278
+ request_changes: "request_changes";
279
+ rejudge: "rejudge";
280
+ reject: "reject";
281
+ extend: "extend";
282
+ targeted: "targeted";
283
+ accept_partial: "accept_partial";
284
+ accept_suggestion: "accept_suggestion";
285
+ retry_rules: "retry_rules";
286
+ skip_rules: "skip_rules";
287
+ amend_intent: "amend_intent";
288
+ }>, z.ZodString]>>;
289
+ amendScope: z.ZodOptional<z.ZodEnum<{
290
+ creator: "creator";
291
+ cursor: "cursor";
292
+ }>>;
971
293
  plan: z.ZodOptional<z.ZodObject<{
972
294
  steps: z.ZodArray<z.ZodObject<{
973
295
  catalog: z.ZodString;
974
296
  id: z.ZodOptional<z.ZodString>;
975
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
976
- catalog: z.ZodString;
977
- id: z.ZodOptional<z.ZodString>;
978
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
979
- catalog: z.ZodString;
980
- id: z.ZodOptional<z.ZodString>;
981
- }, z.ZodTypeAny, "passthrough">>, "many">;
982
- touch: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
297
+ }, z.core.$loose>>;
298
+ touch: z.ZodOptional<z.ZodArray<z.ZodString>>;
983
299
  override: z.ZodOptional<z.ZodObject<{
984
- remove: z.ZodArray<z.ZodString, "many">;
300
+ remove: z.ZodArray<z.ZodString>;
985
301
  reason: z.ZodString;
986
- }, "strict", z.ZodTypeAny, {
987
- reason: string;
988
- remove: string[];
989
- }, {
990
- reason: string;
991
- remove: string[];
992
- }>>;
302
+ }, z.core.$strict>>;
993
303
  monitors: z.ZodOptional<z.ZodObject<{
994
- asked: z.ZodNumber;
995
- }, "strict", z.ZodTypeAny, {
996
- asked: number;
997
- }, {
998
- asked: number;
999
- }>>;
1000
- }, "strict", z.ZodTypeAny, {
1001
- steps: z.objectOutputType<{
1002
- catalog: z.ZodString;
1003
- id: z.ZodOptional<z.ZodString>;
1004
- }, z.ZodTypeAny, "passthrough">[];
1005
- override?: {
1006
- reason: string;
1007
- remove: string[];
1008
- } | undefined;
1009
- touch?: string[] | undefined;
1010
- monitors?: {
1011
- asked: number;
1012
- } | undefined;
1013
- }, {
1014
- steps: z.objectInputType<{
1015
- catalog: z.ZodString;
1016
- id: z.ZodOptional<z.ZodString>;
1017
- }, z.ZodTypeAny, "passthrough">[];
1018
- override?: {
1019
- reason: string;
1020
- remove: string[];
1021
- } | undefined;
1022
- touch?: string[] | undefined;
1023
- monitors?: {
1024
- asked: number;
1025
- } | undefined;
1026
- }>>;
1027
- /** api-types 0.44.0 — the gate this decision answers (its unit `ord`). A mismatch with the run's
1028
- * open gate is a 409 `gate_changed`: the decision was made on a gate that is no longer open. */
1029
- ord: z.ZodOptional<z.ZodNumber>;
1030
- /** (api-types 0.156.0, DES-VOICE) The person answered by voice and confirmed it on screen: recorded on the
1031
- * `gate.decided` audit line and the decided-gate history ("by voice, confirmed"). It grants nothing. */
304
+ asked: z.ZodInt;
305
+ }, z.core.$strict>>;
306
+ }, z.core.$strict>>;
307
+ ord: z.ZodOptional<z.ZodInt>;
1032
308
  input: z.ZodOptional<z.ZodLiteral<"voice">>;
1033
- /** (program DES-LEARN §3.1, api-types 0.160.0) On a steering-author propose gate: the drafted rule ids
1034
- * (`GET /governance/steering/author/:runId/draft`) the person keeps. Only those land; the rest are
1035
- * declined. Absent = every drafted rule lands, as before. 409 `no_draft` unless the run waits at its
1036
- * steering-author propose gate with a readable draft; 400 with anything but a plain approve. */
1037
- keepRules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1038
- }, "strict", z.ZodTypeAny, {
1039
- approve: boolean;
1040
- input?: "voice" | undefined;
1041
- plan?: {
1042
- steps: z.objectOutputType<{
1043
- catalog: z.ZodString;
1044
- id: z.ZodOptional<z.ZodString>;
1045
- }, z.ZodTypeAny, "passthrough">[];
1046
- override?: {
1047
- reason: string;
1048
- remove: string[];
1049
- } | undefined;
1050
- touch?: string[] | undefined;
1051
- monitors?: {
1052
- asked: number;
1053
- } | undefined;
1054
- } | undefined;
1055
- ord?: number | undefined;
1056
- action?: string | undefined;
1057
- amend?: string | undefined;
1058
- amendScope?: "creator" | "cursor" | undefined;
1059
- keepRules?: string[] | undefined;
1060
- }, {
1061
- approve: boolean;
1062
- input?: "voice" | undefined;
1063
- plan?: {
1064
- steps: z.objectInputType<{
1065
- catalog: z.ZodString;
1066
- id: z.ZodOptional<z.ZodString>;
1067
- }, z.ZodTypeAny, "passthrough">[];
1068
- override?: {
1069
- reason: string;
1070
- remove: string[];
1071
- } | undefined;
1072
- touch?: string[] | undefined;
1073
- monitors?: {
1074
- asked: number;
1075
- } | undefined;
1076
- } | undefined;
1077
- ord?: number | undefined;
1078
- action?: string | undefined;
1079
- amend?: string | undefined;
1080
- amendScope?: "creator" | "cursor" | undefined;
1081
- keepRules?: string[] | undefined;
1082
- }>, {
1083
- approve: boolean;
1084
- input?: "voice" | undefined;
1085
- plan?: {
1086
- steps: z.objectOutputType<{
1087
- catalog: z.ZodString;
1088
- id: z.ZodOptional<z.ZodString>;
1089
- }, z.ZodTypeAny, "passthrough">[];
1090
- override?: {
1091
- reason: string;
1092
- remove: string[];
1093
- } | undefined;
1094
- touch?: string[] | undefined;
1095
- monitors?: {
1096
- asked: number;
1097
- } | undefined;
1098
- } | undefined;
1099
- ord?: number | undefined;
1100
- action?: string | undefined;
1101
- amend?: string | undefined;
1102
- amendScope?: "creator" | "cursor" | undefined;
1103
- keepRules?: string[] | undefined;
1104
- }, {
1105
- approve: boolean;
1106
- input?: "voice" | undefined;
1107
- plan?: {
1108
- steps: z.objectInputType<{
1109
- catalog: z.ZodString;
1110
- id: z.ZodOptional<z.ZodString>;
1111
- }, z.ZodTypeAny, "passthrough">[];
1112
- override?: {
1113
- reason: string;
1114
- remove: string[];
1115
- } | undefined;
1116
- touch?: string[] | undefined;
1117
- monitors?: {
1118
- asked: number;
1119
- } | undefined;
1120
- } | undefined;
1121
- ord?: number | undefined;
1122
- action?: string | undefined;
1123
- amend?: string | undefined;
1124
- amendScope?: "creator" | "cursor" | undefined;
1125
- keepRules?: string[] | undefined;
1126
- }>, {
1127
- approve: boolean;
1128
- input?: "voice" | undefined;
1129
- plan?: {
1130
- steps: z.objectOutputType<{
1131
- catalog: z.ZodString;
1132
- id: z.ZodOptional<z.ZodString>;
1133
- }, z.ZodTypeAny, "passthrough">[];
1134
- override?: {
1135
- reason: string;
1136
- remove: string[];
1137
- } | undefined;
1138
- touch?: string[] | undefined;
1139
- monitors?: {
1140
- asked: number;
1141
- } | undefined;
1142
- } | undefined;
1143
- ord?: number | undefined;
1144
- action?: string | undefined;
1145
- amend?: string | undefined;
1146
- amendScope?: "creator" | "cursor" | undefined;
1147
- keepRules?: string[] | undefined;
1148
- }, {
1149
- approve: boolean;
1150
- input?: "voice" | undefined;
1151
- plan?: {
1152
- steps: z.objectInputType<{
1153
- catalog: z.ZodString;
1154
- id: z.ZodOptional<z.ZodString>;
1155
- }, z.ZodTypeAny, "passthrough">[];
1156
- override?: {
1157
- reason: string;
1158
- remove: string[];
1159
- } | undefined;
1160
- touch?: string[] | undefined;
1161
- monitors?: {
1162
- asked: number;
1163
- } | undefined;
1164
- } | undefined;
1165
- ord?: number | undefined;
1166
- action?: string | undefined;
1167
- amend?: string | undefined;
1168
- amendScope?: "creator" | "cursor" | undefined;
1169
- keepRules?: string[] | undefined;
1170
- }>, {
1171
- approve: boolean;
1172
- input?: "voice" | undefined;
1173
- plan?: {
1174
- steps: z.objectOutputType<{
1175
- catalog: z.ZodString;
1176
- id: z.ZodOptional<z.ZodString>;
1177
- }, z.ZodTypeAny, "passthrough">[];
1178
- override?: {
1179
- reason: string;
1180
- remove: string[];
1181
- } | undefined;
1182
- touch?: string[] | undefined;
1183
- monitors?: {
1184
- asked: number;
1185
- } | undefined;
1186
- } | undefined;
1187
- ord?: number | undefined;
1188
- action?: string | undefined;
1189
- amend?: string | undefined;
1190
- amendScope?: "creator" | "cursor" | undefined;
1191
- keepRules?: string[] | undefined;
1192
- }, {
1193
- approve: boolean;
1194
- input?: "voice" | undefined;
1195
- plan?: {
1196
- steps: z.objectInputType<{
1197
- catalog: z.ZodString;
1198
- id: z.ZodOptional<z.ZodString>;
1199
- }, z.ZodTypeAny, "passthrough">[];
1200
- override?: {
1201
- reason: string;
1202
- remove: string[];
1203
- } | undefined;
1204
- touch?: string[] | undefined;
1205
- monitors?: {
1206
- asked: number;
1207
- } | undefined;
1208
- } | undefined;
1209
- ord?: number | undefined;
1210
- action?: string | undefined;
1211
- amend?: string | undefined;
1212
- amendScope?: "creator" | "cursor" | undefined;
1213
- keepRules?: string[] | undefined;
1214
- }>, {
1215
- approve: boolean;
1216
- input?: "voice" | undefined;
1217
- plan?: {
1218
- steps: z.objectOutputType<{
1219
- catalog: z.ZodString;
1220
- id: z.ZodOptional<z.ZodString>;
1221
- }, z.ZodTypeAny, "passthrough">[];
1222
- override?: {
1223
- reason: string;
1224
- remove: string[];
1225
- } | undefined;
1226
- touch?: string[] | undefined;
1227
- monitors?: {
1228
- asked: number;
1229
- } | undefined;
1230
- } | undefined;
1231
- ord?: number | undefined;
1232
- action?: string | undefined;
1233
- amend?: string | undefined;
1234
- amendScope?: "creator" | "cursor" | undefined;
1235
- keepRules?: string[] | undefined;
1236
- }, {
1237
- approve: boolean;
1238
- input?: "voice" | undefined;
1239
- plan?: {
1240
- steps: z.objectInputType<{
1241
- catalog: z.ZodString;
1242
- id: z.ZodOptional<z.ZodString>;
1243
- }, z.ZodTypeAny, "passthrough">[];
1244
- override?: {
1245
- reason: string;
1246
- remove: string[];
1247
- } | undefined;
1248
- touch?: string[] | undefined;
1249
- monitors?: {
1250
- asked: number;
1251
- } | undefined;
1252
- } | undefined;
1253
- ord?: number | undefined;
1254
- action?: string | undefined;
1255
- amend?: string | undefined;
1256
- amendScope?: "creator" | "cursor" | undefined;
1257
- keepRules?: string[] | undefined;
1258
- }>, {
1259
- approve: boolean;
1260
- input?: "voice" | undefined;
1261
- plan?: {
1262
- steps: z.objectOutputType<{
1263
- catalog: z.ZodString;
1264
- id: z.ZodOptional<z.ZodString>;
1265
- }, z.ZodTypeAny, "passthrough">[];
1266
- override?: {
1267
- reason: string;
1268
- remove: string[];
1269
- } | undefined;
1270
- touch?: string[] | undefined;
1271
- monitors?: {
1272
- asked: number;
1273
- } | undefined;
1274
- } | undefined;
1275
- ord?: number | undefined;
1276
- action?: string | undefined;
1277
- amend?: string | undefined;
1278
- amendScope?: "creator" | "cursor" | undefined;
1279
- keepRules?: string[] | undefined;
1280
- }, {
1281
- approve: boolean;
1282
- input?: "voice" | undefined;
1283
- plan?: {
1284
- steps: z.objectInputType<{
1285
- catalog: z.ZodString;
1286
- id: z.ZodOptional<z.ZodString>;
1287
- }, z.ZodTypeAny, "passthrough">[];
1288
- override?: {
1289
- reason: string;
1290
- remove: string[];
1291
- } | undefined;
1292
- touch?: string[] | undefined;
1293
- monitors?: {
1294
- asked: number;
1295
- } | undefined;
1296
- } | undefined;
1297
- ord?: number | undefined;
1298
- action?: string | undefined;
1299
- amend?: string | undefined;
1300
- amendScope?: "creator" | "cursor" | undefined;
1301
- keepRules?: string[] | undefined;
1302
- }>, {
1303
- approve: boolean;
1304
- input?: "voice" | undefined;
1305
- plan?: {
1306
- steps: z.objectOutputType<{
1307
- catalog: z.ZodString;
1308
- id: z.ZodOptional<z.ZodString>;
1309
- }, z.ZodTypeAny, "passthrough">[];
1310
- override?: {
1311
- reason: string;
1312
- remove: string[];
1313
- } | undefined;
1314
- touch?: string[] | undefined;
1315
- monitors?: {
1316
- asked: number;
1317
- } | undefined;
1318
- } | undefined;
1319
- ord?: number | undefined;
1320
- action?: string | undefined;
1321
- amend?: string | undefined;
1322
- amendScope?: "creator" | "cursor" | undefined;
1323
- keepRules?: string[] | undefined;
1324
- }, {
1325
- approve: boolean;
1326
- input?: "voice" | undefined;
1327
- plan?: {
1328
- steps: z.objectInputType<{
1329
- catalog: z.ZodString;
1330
- id: z.ZodOptional<z.ZodString>;
1331
- }, z.ZodTypeAny, "passthrough">[];
1332
- override?: {
1333
- reason: string;
1334
- remove: string[];
1335
- } | undefined;
1336
- touch?: string[] | undefined;
1337
- monitors?: {
1338
- asked: number;
1339
- } | undefined;
1340
- } | undefined;
1341
- ord?: number | undefined;
1342
- action?: string | undefined;
1343
- amend?: string | undefined;
1344
- amendScope?: "creator" | "cursor" | undefined;
1345
- keepRules?: string[] | undefined;
1346
- }>, {
1347
- approve: boolean;
1348
- input?: "voice" | undefined;
1349
- plan?: {
1350
- steps: z.objectOutputType<{
1351
- catalog: z.ZodString;
1352
- id: z.ZodOptional<z.ZodString>;
1353
- }, z.ZodTypeAny, "passthrough">[];
1354
- override?: {
1355
- reason: string;
1356
- remove: string[];
1357
- } | undefined;
1358
- touch?: string[] | undefined;
1359
- monitors?: {
1360
- asked: number;
1361
- } | undefined;
1362
- } | undefined;
1363
- ord?: number | undefined;
1364
- action?: string | undefined;
1365
- amend?: string | undefined;
1366
- amendScope?: "creator" | "cursor" | undefined;
1367
- keepRules?: string[] | undefined;
1368
- }, {
1369
- approve: boolean;
1370
- input?: "voice" | undefined;
1371
- plan?: {
1372
- steps: z.objectInputType<{
1373
- catalog: z.ZodString;
1374
- id: z.ZodOptional<z.ZodString>;
1375
- }, z.ZodTypeAny, "passthrough">[];
1376
- override?: {
1377
- reason: string;
1378
- remove: string[];
1379
- } | undefined;
1380
- touch?: string[] | undefined;
1381
- monitors?: {
1382
- asked: number;
1383
- } | undefined;
1384
- } | undefined;
1385
- ord?: number | undefined;
1386
- action?: string | undefined;
1387
- amend?: string | undefined;
1388
- amendScope?: "creator" | "cursor" | undefined;
1389
- keepRules?: string[] | undefined;
1390
- }>, {
1391
- approve: boolean;
1392
- input?: "voice" | undefined;
1393
- plan?: {
1394
- steps: z.objectOutputType<{
1395
- catalog: z.ZodString;
1396
- id: z.ZodOptional<z.ZodString>;
1397
- }, z.ZodTypeAny, "passthrough">[];
1398
- override?: {
1399
- reason: string;
1400
- remove: string[];
1401
- } | undefined;
1402
- touch?: string[] | undefined;
1403
- monitors?: {
1404
- asked: number;
1405
- } | undefined;
1406
- } | undefined;
1407
- ord?: number | undefined;
1408
- action?: string | undefined;
1409
- amend?: string | undefined;
1410
- amendScope?: "creator" | "cursor" | undefined;
1411
- keepRules?: string[] | undefined;
1412
- }, {
1413
- approve: boolean;
1414
- input?: "voice" | undefined;
1415
- plan?: {
1416
- steps: z.objectInputType<{
1417
- catalog: z.ZodString;
1418
- id: z.ZodOptional<z.ZodString>;
1419
- }, z.ZodTypeAny, "passthrough">[];
1420
- override?: {
1421
- reason: string;
1422
- remove: string[];
1423
- } | undefined;
1424
- touch?: string[] | undefined;
1425
- monitors?: {
1426
- asked: number;
1427
- } | undefined;
1428
- } | undefined;
1429
- ord?: number | undefined;
1430
- action?: string | undefined;
1431
- amend?: string | undefined;
1432
- amendScope?: "creator" | "cursor" | undefined;
1433
- keepRules?: string[] | undefined;
1434
- }>, {
1435
- approve: boolean;
1436
- input?: "voice" | undefined;
1437
- plan?: {
1438
- steps: z.objectOutputType<{
1439
- catalog: z.ZodString;
1440
- id: z.ZodOptional<z.ZodString>;
1441
- }, z.ZodTypeAny, "passthrough">[];
1442
- override?: {
1443
- reason: string;
1444
- remove: string[];
1445
- } | undefined;
1446
- touch?: string[] | undefined;
1447
- monitors?: {
1448
- asked: number;
1449
- } | undefined;
1450
- } | undefined;
1451
- ord?: number | undefined;
1452
- action?: string | undefined;
1453
- amend?: string | undefined;
1454
- amendScope?: "creator" | "cursor" | undefined;
1455
- keepRules?: string[] | undefined;
1456
- }, {
1457
- approve: boolean;
1458
- input?: "voice" | undefined;
1459
- plan?: {
1460
- steps: z.objectInputType<{
1461
- catalog: z.ZodString;
1462
- id: z.ZodOptional<z.ZodString>;
1463
- }, z.ZodTypeAny, "passthrough">[];
1464
- override?: {
1465
- reason: string;
1466
- remove: string[];
1467
- } | undefined;
1468
- touch?: string[] | undefined;
1469
- monitors?: {
1470
- asked: number;
1471
- } | undefined;
1472
- } | undefined;
1473
- ord?: number | undefined;
1474
- action?: string | undefined;
1475
- amend?: string | undefined;
1476
- amendScope?: "creator" | "cursor" | undefined;
1477
- keepRules?: string[] | undefined;
1478
- }>, {
1479
- approve: boolean;
1480
- input?: "voice" | undefined;
1481
- plan?: {
1482
- steps: z.objectOutputType<{
1483
- catalog: z.ZodString;
1484
- id: z.ZodOptional<z.ZodString>;
1485
- }, z.ZodTypeAny, "passthrough">[];
1486
- override?: {
1487
- reason: string;
1488
- remove: string[];
1489
- } | undefined;
1490
- touch?: string[] | undefined;
1491
- monitors?: {
1492
- asked: number;
1493
- } | undefined;
1494
- } | undefined;
1495
- ord?: number | undefined;
1496
- action?: string | undefined;
1497
- amend?: string | undefined;
1498
- amendScope?: "creator" | "cursor" | undefined;
1499
- keepRules?: string[] | undefined;
1500
- }, {
1501
- approve: boolean;
1502
- input?: "voice" | undefined;
1503
- plan?: {
1504
- steps: z.objectInputType<{
1505
- catalog: z.ZodString;
1506
- id: z.ZodOptional<z.ZodString>;
1507
- }, z.ZodTypeAny, "passthrough">[];
1508
- override?: {
1509
- reason: string;
1510
- remove: string[];
1511
- } | undefined;
1512
- touch?: string[] | undefined;
1513
- monitors?: {
1514
- asked: number;
1515
- } | undefined;
1516
- } | undefined;
1517
- ord?: number | undefined;
1518
- action?: string | undefined;
1519
- amend?: string | undefined;
1520
- amendScope?: "creator" | "cursor" | undefined;
1521
- keepRules?: string[] | undefined;
1522
- }>, {
1523
- approve: boolean;
1524
- input?: "voice" | undefined;
1525
- plan?: {
1526
- steps: z.objectOutputType<{
1527
- catalog: z.ZodString;
1528
- id: z.ZodOptional<z.ZodString>;
1529
- }, z.ZodTypeAny, "passthrough">[];
1530
- override?: {
1531
- reason: string;
1532
- remove: string[];
1533
- } | undefined;
1534
- touch?: string[] | undefined;
1535
- monitors?: {
1536
- asked: number;
1537
- } | undefined;
1538
- } | undefined;
1539
- ord?: number | undefined;
1540
- action?: string | undefined;
1541
- amend?: string | undefined;
1542
- amendScope?: "creator" | "cursor" | undefined;
1543
- keepRules?: string[] | undefined;
1544
- }, {
1545
- approve: boolean;
1546
- input?: "voice" | undefined;
1547
- plan?: {
1548
- steps: z.objectInputType<{
1549
- catalog: z.ZodString;
1550
- id: z.ZodOptional<z.ZodString>;
1551
- }, z.ZodTypeAny, "passthrough">[];
1552
- override?: {
1553
- reason: string;
1554
- remove: string[];
1555
- } | undefined;
1556
- touch?: string[] | undefined;
1557
- monitors?: {
1558
- asked: number;
1559
- } | undefined;
1560
- } | undefined;
1561
- ord?: number | undefined;
1562
- action?: string | undefined;
1563
- amend?: string | undefined;
1564
- amendScope?: "creator" | "cursor" | undefined;
1565
- keepRules?: string[] | undefined;
1566
- }>, {
1567
- approve: boolean;
1568
- input?: "voice" | undefined;
1569
- plan?: {
1570
- steps: z.objectOutputType<{
1571
- catalog: z.ZodString;
1572
- id: z.ZodOptional<z.ZodString>;
1573
- }, z.ZodTypeAny, "passthrough">[];
1574
- override?: {
1575
- reason: string;
1576
- remove: string[];
1577
- } | undefined;
1578
- touch?: string[] | undefined;
1579
- monitors?: {
1580
- asked: number;
1581
- } | undefined;
1582
- } | undefined;
1583
- ord?: number | undefined;
1584
- action?: string | undefined;
1585
- amend?: string | undefined;
1586
- amendScope?: "creator" | "cursor" | undefined;
1587
- keepRules?: string[] | undefined;
1588
- }, {
1589
- approve: boolean;
1590
- input?: "voice" | undefined;
1591
- plan?: {
1592
- steps: z.objectInputType<{
1593
- catalog: z.ZodString;
1594
- id: z.ZodOptional<z.ZodString>;
1595
- }, z.ZodTypeAny, "passthrough">[];
1596
- override?: {
1597
- reason: string;
1598
- remove: string[];
1599
- } | undefined;
1600
- touch?: string[] | undefined;
1601
- monitors?: {
1602
- asked: number;
1603
- } | undefined;
1604
- } | undefined;
1605
- ord?: number | undefined;
1606
- action?: string | undefined;
1607
- amend?: string | undefined;
1608
- amendScope?: "creator" | "cursor" | undefined;
1609
- keepRules?: string[] | undefined;
1610
- }>;
309
+ keepRules: z.ZodOptional<z.ZodArray<z.ZodString>>;
310
+ skipRules: z.ZodOptional<z.ZodArray<z.ZodObject<{
311
+ id: z.ZodString;
312
+ reason: z.ZodString;
313
+ }, z.core.$strict>>>;
314
+ }, z.core.$strict>;
1611
315
  /** `PUT /runs/:id/guidance` (DES-UX-002 §7.2, CREW-UX-7) — the durable pre-gate note body.
1612
316
  * The empty string is a legal body: it CLEARS the note. The byte cap is checked in the route
1613
317
  * (not zod's char-counting `max`) so the 400 names the actual limit. */
1614
318
  export declare const GuidanceSchema: z.ZodObject<{
1615
319
  text: z.ZodString;
1616
- }, "strict", z.ZodTypeAny, {
1617
- text: string;
1618
- }, {
1619
- text: string;
1620
- }>;
320
+ }, z.core.$strict>;
1621
321
  export declare const OpenTerminalSchema: z.ZodObject<{
1622
322
  cwd: z.ZodString;
1623
- cmd: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1624
- cols: z.ZodNumber;
1625
- rows: z.ZodNumber;
323
+ cmd: z.ZodOptional<z.ZodArray<z.ZodString>>;
324
+ cols: z.ZodInt;
325
+ rows: z.ZodInt;
1626
326
  governed: z.ZodOptional<z.ZodBoolean>;
1627
- }, "strict", z.ZodTypeAny, {
1628
- rows: number;
1629
- cwd: string;
1630
- cols: number;
1631
- cmd?: string[] | undefined;
1632
- governed?: boolean | undefined;
1633
- }, {
1634
- rows: number;
1635
- cwd: string;
1636
- cols: number;
1637
- cmd?: string[] | undefined;
1638
- governed?: boolean | undefined;
1639
- }>;
327
+ }, z.core.$strict>;
1640
328
  /** `POST /seats/:cli/login|logout` body (crew#615): the PTY size, both optional. */
1641
329
  export declare const SeatSessionSchema: z.ZodObject<{
1642
- cols: z.ZodOptional<z.ZodNumber>;
1643
- rows: z.ZodOptional<z.ZodNumber>;
1644
- }, "strict", z.ZodTypeAny, {
1645
- rows?: number | undefined;
1646
- cols?: number | undefined;
1647
- }, {
1648
- rows?: number | undefined;
1649
- cols?: number | undefined;
1650
- }>;
330
+ cols: z.ZodOptional<z.ZodInt>;
331
+ rows: z.ZodOptional<z.ZodInt>;
332
+ }, z.core.$strict>;
1651
333
  /** `POST /open` (crew#273) — the studio Files tab's "open with the OS default app" body. */
1652
334
  export declare const OpenPathSchema: z.ZodObject<{
1653
335
  path: z.ZodString;
1654
336
  runId: z.ZodOptional<z.ZodString>;
1655
- }, "strict", z.ZodTypeAny, {
1656
- path: string;
1657
- runId?: string | undefined;
1658
- }, {
1659
- path: string;
1660
- runId?: string | undefined;
1661
- }>;
337
+ }, z.core.$strict>;
1662
338
  /** `POST /memory/retire` body (DES-MEM-FACETED-001). `scope_prefix` is REQUIRED and, after trim,
1663
339
  * non-empty (enforced in the route so the 400 names the total-wipe guard): estate `memory.erase`
1664
340
  * is subtree-scoped and refuses an empty prefix. `.strict()` for the FINDING-031 posture — an
1665
341
  * unknown field is a 400, never silently ignored into a broader erase than the caller sent. */
1666
342
  export declare const RetireMemorySchema: z.ZodObject<{
1667
343
  scope_prefix: z.ZodString;
1668
- }, "strict", z.ZodTypeAny, {
1669
- scope_prefix: string;
1670
- }, {
1671
- scope_prefix: string;
1672
- }>;
344
+ }, z.core.$strict>;
1673
345
  /** `POST /memory/retire-item` body (studio#206): ONE memory, by its `memory_id` from `GET /memory`.
1674
346
  * `.strict()`: a stray `scope_prefix` is a 400, never read as a wider erase than one row. */
1675
347
  export declare const RetireMemoryItemSchema: z.ZodObject<{
1676
348
  memory_id: z.ZodString;
1677
- }, "strict", z.ZodTypeAny, {
1678
- memory_id: string;
1679
- }, {
1680
- memory_id: string;
1681
- }>;
349
+ }, z.core.$strict>;
1682
350
  /** `POST /memory/edit` body (wicked-studio's Memory page): ONE memory's new words. `.strict()`: an
1683
351
  * unknown field is a 400, never read as something wider than one memory. */
1684
352
  export declare const EditMemorySchema: z.ZodObject<{
1685
353
  memory_id: z.ZodString;
1686
354
  content: z.ZodString;
1687
- }, "strict", z.ZodTypeAny, {
1688
- content: string;
1689
- memory_id: string;
1690
- }, {
1691
- content: string;
1692
- memory_id: string;
1693
- }>;
355
+ }, z.core.$strict>;
1694
356
  /** The actor/audit deps (task #88) — threaded from `createServer`. */
1695
357
  export interface SecurityDeps {
1696
358
  audit: AuditLog;
@@ -1718,11 +380,21 @@ export interface RegisteredRoutes {
1718
380
  runEvalsPrepare: (input: LaunchRunInput) => Promise<void>;
1719
381
  /** DES-CHAT-ARTIFACTS-001 §4 (A2): proposals from a seat's `wicked-make` block (the reply fold feeds `onReply`). */
1720
382
  chatProposals: ChatProposals;
383
+ /** A3: the one launcher per run id (the draft seam's bus trigger and the boot reconcile go through it). */
384
+ proposalLaunchers: LaunchOnceRegistry;
1721
385
  }
1722
386
  export interface RuntimeDeps {
1723
387
  /** DES-CHAT-ARTIFACTS-001 §13 A2: the chat-artifacts TEST configuration — every operation resolves and Go records a
1724
- * stub dispatch, starting nothing (`WICKED_CHAT_ARTIFACTS_STUB=1`, read by `createServer`). Absent = production. */
388
+ * stub dispatch, starting nothing (`WICKED_CHAT_ARTIFACTS_STUB=1`, read by `createServer`). Absent = production.
389
+ * Since A3, `create` is real in it too whenever {@link launchBoundDraft} is wired; only the unbuilt kinds are stubs. */
1725
390
  chatArtifactsStub?: boolean;
391
+ /** DES-CHAT-ARTIFACTS-001 §5.2 (A3): the durable bindings of chat-made documents (`interactive/doc-binding.ts`). */
392
+ docBindings?: DocBindingStore;
393
+ /** A3: the draft seam's proposal-bound launch. With {@link docBindings}, `create` is advertised and its real launcher
394
+ * registered; absent (no draft seam armed) = `create` stays off. */
395
+ launchBoundDraft?: (spec: BoundDraft) => Promise<void>;
396
+ /** A3: remove a bound document's earlier attempt folders before a new attempt reads its base. */
397
+ fenceBoundDraft?: (documentId: string, runIds: readonly string[]) => void;
1726
398
  /** (program DES-LEARN §3.3) The voice block of the personality a chat in this project uses (the project's
1727
399
  * override, else the person's), or null when none is saved; absent = no personalities on this daemon. */
1728
400
  personaVoice?: (projectId: string | null) => string | null;
@@ -1766,7 +438,12 @@ export interface RuntimeDeps {
1766
438
  resolvePullRequest?: (repoRoot: string, number: number) => Promise<PullRequestResolution>;
1767
439
  /** crew#627: how the issues a launch's intent links are read (`gh issue view`, 5 s each).
1768
440
  * Injectable so route tests answer without gh; production uses `core/linked-issues.ts`. */
1769
- resolveLinkedIssues?: (problem: string, repoRoot: string | undefined, repoRef: string | undefined, exclude?: readonly string[]) => Promise<LinkedIssuesResult>;
441
+ resolveLinkedIssues?: (problem: string, repoRoot: string | undefined, repoRef: string | undefined, exclude?: readonly string[],
442
+ /** (DES-PM-001 §3.2) The launch's project: with a registered PM source, refs resolve through its tracker set. */
443
+ projectId?: string | null) => Promise<LinkedIssuesResult>;
444
+ /** DES-RULE-CHECK-001 S1: the engine's rule match (`Core.matchRules`). Injectable so route tests answer without
445
+ * the addon; production uses `CoreAdapter.ruleMatcher()` (null on an addon without it: every rule may apply). */
446
+ matchRules?: (argsJson: string) => Promise<string>;
1770
447
  seatHealth?: SeatHealthTracker;
1771
448
  /** wicked-studio#284: the stall watchdog's remembered frames for a run — merged into
1772
449
  * `GET /runs/:id/events` at serve time so a reloaded page sees the `workerStalled` /
@@ -1933,6 +610,19 @@ export interface RuntimeDeps {
1933
610
  editorConformance?: ConformanceRunner;
1934
611
  /** EP-C1 (tests): where `daemon-editors.json` lives; default = the crew state home. */
1935
612
  editorsStateHome?: string;
613
+ /** DES-APPS-001 (K2a): the app store behind `/apps` and `POST /repos {create}`. `createServer` builds it over
614
+ * the state home's `daemon-apps.json` and the apps root; a directly-driven route set gets the routes only when it
615
+ * injects one (so a test never makes a repo under the real `~/.wicked/apps`). */
616
+ apps?: AppStore;
617
+ /** (DES-APPS-001 K5) A unit token → its run and step, for `POST /apps/check`; absent = that route answers 503. */
618
+ appsVerifyUnitToken?: (token: string) => Promise<{
619
+ runId: string;
620
+ phase: string;
621
+ } | null>;
622
+ /** (K2b) Grants and action records (`daemon-apps-actions.json`); with `apps`, the action routes serve for real. */
623
+ appsActions?: AppActionStore;
624
+ /** (K2b) Who a viewer is (email, name) for viewer-bound parameters; default: the global git identity for the local actor. */
625
+ appsViewerOf?: (actor: AppsActor) => Promise<Viewer>;
1936
626
  /** The eval RUN history store behind `/testing/evals[/:id]` — `createServer` builds one over the
1937
627
  * daemon state home so every `POST /testing/evals/run` is recorded; a directly-driven route set
1938
628
  * (tests) gets one only when it injects it, so a test that never touches the eval routes writes
@@ -1953,6 +643,21 @@ export interface RuntimeDeps {
1953
643
  mcp?: McpRegistry;
1954
644
  /** The MCP broker's call path (DES-MCP-TOOLS-001 S3) over that registry; absent → `POST /mcp/call` 503. */
1955
645
  mcpBroker?: McpBroker;
646
+ /** (DES-KNOWLEDGE-DATA-001 §7) The data gate over the same registry; absent → no live source reaches an agent. */
647
+ dataGate?: DataGate;
648
+ /**
649
+ * (DES-KNOWLEDGE-DATA-001 §9.1) The deps a unit in a project may see (the relay's own set), for an app's knowledge
650
+ * queries and the knowledge summary. Absent (with `dataGate`) = knowledge queries read nothing (refused).
651
+ */
652
+ appsKnowledgeVisible?: (projectId: string) => Promise<string[]>;
653
+ /** The registry's store, for the gate's switches route (`PUT /sources/:name/agents`). */
654
+ mcpRegistryStore?: McpRegistryStore;
655
+ /** The gate's read record (`GET /sources/:name/agent-queries`, `GET /runs/:id/data-use`). */
656
+ sourceReads?: SourceReadLog;
657
+ /** (DES-PM-001 §3.4) The tracker projector: links and addressed issues into estate, reconciled. */
658
+ trackerProjector?: TrackerProjector;
659
+ /** (DES-PM-001 §3.2) The issues each run's launch resolved through a registered PM source. */
660
+ trackerAddresses?: TrackerAddresses;
1956
661
  askServer?: AskServer;
1957
662
  /** The broker's call records (DES-MCP-TOOLS-001 S7), the ones `GET /mcp/usage` folds; absent → 503. */
1958
663
  mcpCalls?: McpCallRecordSource;
@@ -1991,64 +696,25 @@ export interface RuntimeDeps {
1991
696
  */
1992
697
  export declare const ChatOpenSchema: z.ZodObject<{
1993
698
  chatId: z.ZodOptional<z.ZodString>;
1994
- clis: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1995
- /** One repo in scope — the legacy spelling, merged into `repoRefs` (crew#502). */
699
+ clis: z.ZodOptional<z.ZodArray<z.ZodString>>;
1996
700
  repoRef: z.ZodOptional<z.ZodString>;
1997
- /** The repos in scope, by registry id or name (crew#502). */
1998
- repoRefs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1999
- /** File the chat into a project (`crew.chat` membership) — and, with no `repoRefs`, scope it to
2000
- * every registered `crew.repo` member of that project (crew#502). */
701
+ repoRefs: z.ZodOptional<z.ZodArray<z.ZodString>>;
2001
702
  projectId: z.ZodOptional<z.ZodString>;
2002
- /** The scope the caller NAMES (studio#323 R4) — omitted ⇒ the legacy inference. Shape rules
2003
- * (which kinds need / refuse `projectId` / `repoRefs`) are the resolver's (`chat-scope.ts`). */
2004
- scopeKind: z.ZodOptional<z.ZodEnum<["system", "everything", "project", "repo", "repos", "none"]>>;
2005
- /** (ASK-C1) The seat the operator chose as the primary agent; omitted ⇒ the engine picks at random. */
703
+ scopeKind: z.ZodOptional<z.ZodEnum<{
704
+ project: "project";
705
+ repo: "repo";
706
+ none: "none";
707
+ system: "system";
708
+ repos: "repos";
709
+ everything: "everything";
710
+ }>>;
2006
711
  primary: z.ZodOptional<z.ZodString>;
2007
- /** (api-types 0.137.0, DES-SYSTEM-CHAT) The page the chat was started on, for the history list. */
2008
712
  startedOn: z.ZodOptional<z.ZodObject<{
2009
713
  route: z.ZodString;
2010
714
  label: z.ZodString;
2011
- }, "strict", z.ZodTypeAny, {
2012
- label: string;
2013
- route: string;
2014
- }, {
2015
- label: string;
2016
- route: string;
2017
- }>>;
2018
- /** (api-types 0.141.0, crew#1157) The read-only workflow every turn runs (`analyze`); see
2019
- * `chat-workflow.ts`. Omitted ⇒ a plain chat. */
715
+ }, z.core.$strict>>;
2020
716
  workflow: z.ZodOptional<z.ZodString>;
2021
- /** (api-types 0.169.0, DES-CHAT-ARTIFACTS-001 §6.3) "Ask about this" on a document no open chat holds: seed the
2022
- * chat's repositories from the document's recorded binding, after an access check. */
2023
717
  seedFromArtifact: z.ZodOptional<z.ZodString>;
2024
- }, "strict", z.ZodTypeAny, {
2025
- workflow?: string | undefined;
2026
- projectId?: string | undefined;
2027
- primary?: string | undefined;
2028
- repoRef?: string | undefined;
2029
- chatId?: string | undefined;
2030
- clis?: string[] | undefined;
2031
- repoRefs?: string[] | undefined;
2032
- scopeKind?: "project" | "repo" | "none" | "system" | "repos" | "everything" | undefined;
2033
- startedOn?: {
2034
- label: string;
2035
- route: string;
2036
- } | undefined;
2037
- seedFromArtifact?: string | undefined;
2038
- }, {
2039
- workflow?: string | undefined;
2040
- projectId?: string | undefined;
2041
- primary?: string | undefined;
2042
- repoRef?: string | undefined;
2043
- chatId?: string | undefined;
2044
- clis?: string[] | undefined;
2045
- repoRefs?: string[] | undefined;
2046
- scopeKind?: "project" | "repo" | "none" | "system" | "repos" | "everything" | undefined;
2047
- startedOn?: {
2048
- label: string;
2049
- route: string;
2050
- } | undefined;
2051
- seedFromArtifact?: string | undefined;
2052
- }>;
718
+ }, z.core.$strict>;
2053
719
  export declare function registerRoutes(app: FastifyInstance, adapter: CoreAdapter, gateCache: GateCache, elicitationCache: ElicitationCache, projects?: ProjectRoutesDeps, security?: SecurityDeps, runtime?: RuntimeDeps): RegisteredRoutes;
2054
720
  //# sourceMappingURL=routes.d.ts.map