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