@kynetic-ai/spec 0.11.0 → 0.12.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 (501) hide show
  1. package/README.md +55 -455
  2. package/dist/agent-runtime/bootstrap.d.ts +31 -0
  3. package/dist/agent-runtime/bootstrap.d.ts.map +1 -0
  4. package/dist/agent-runtime/bootstrap.js +302 -0
  5. package/dist/agent-runtime/bootstrap.js.map +1 -0
  6. package/dist/agent-runtime/dispatch.d.ts +119 -10
  7. package/dist/agent-runtime/dispatch.d.ts.map +1 -1
  8. package/dist/agent-runtime/dispatch.js +1154 -219
  9. package/dist/agent-runtime/dispatch.js.map +1 -1
  10. package/dist/agent-runtime/invocation.d.ts +28 -1
  11. package/dist/agent-runtime/invocation.d.ts.map +1 -1
  12. package/dist/agent-runtime/invocation.js +171 -59
  13. package/dist/agent-runtime/invocation.js.map +1 -1
  14. package/dist/agent-runtime/prompts.d.ts +9 -0
  15. package/dist/agent-runtime/prompts.d.ts.map +1 -1
  16. package/dist/agent-runtime/prompts.js +42 -7
  17. package/dist/agent-runtime/prompts.js.map +1 -1
  18. package/dist/agent-runtime/session-event-accumulator.d.ts +83 -0
  19. package/dist/agent-runtime/session-event-accumulator.d.ts.map +1 -0
  20. package/dist/agent-runtime/session-event-accumulator.js +203 -0
  21. package/dist/agent-runtime/session-event-accumulator.js.map +1 -0
  22. package/dist/agent-runtime/session-event-types.d.ts +67 -0
  23. package/dist/agent-runtime/session-event-types.d.ts.map +1 -0
  24. package/dist/agent-runtime/session-event-types.js +13 -0
  25. package/dist/agent-runtime/session-event-types.js.map +1 -0
  26. package/dist/agent-runtime/workspace.d.ts +244 -0
  27. package/dist/agent-runtime/workspace.d.ts.map +1 -0
  28. package/dist/agent-runtime/workspace.js +2025 -0
  29. package/dist/agent-runtime/workspace.js.map +1 -0
  30. package/dist/agents/adapters.d.ts.map +1 -1
  31. package/dist/agents/adapters.js +58 -13
  32. package/dist/agents/adapters.js.map +1 -1
  33. package/dist/agents/spawner.d.ts +8 -0
  34. package/dist/agents/spawner.d.ts.map +1 -1
  35. package/dist/agents/spawner.js +25 -3
  36. package/dist/agents/spawner.js.map +1 -1
  37. package/dist/cli/batch-exec.js +1 -1
  38. package/dist/cli/batch-exec.js.map +1 -1
  39. package/dist/cli/command-annotations.d.ts +15 -3
  40. package/dist/cli/command-annotations.d.ts.map +1 -1
  41. package/dist/cli/command-annotations.js +23 -3
  42. package/dist/cli/command-annotations.js.map +1 -1
  43. package/dist/cli/commands/agent.d.ts +2 -0
  44. package/dist/cli/commands/agent.d.ts.map +1 -1
  45. package/dist/cli/commands/agent.js +144 -27
  46. package/dist/cli/commands/agent.js.map +1 -1
  47. package/dist/cli/commands/agents.d.ts.map +1 -1
  48. package/dist/cli/commands/agents.js +5 -5
  49. package/dist/cli/commands/agents.js.map +1 -1
  50. package/dist/cli/commands/derive.d.ts.map +1 -1
  51. package/dist/cli/commands/derive.js +118 -3
  52. package/dist/cli/commands/derive.js.map +1 -1
  53. package/dist/cli/commands/guard.d.ts.map +1 -1
  54. package/dist/cli/commands/guard.js +8 -6
  55. package/dist/cli/commands/guard.js.map +1 -1
  56. package/dist/cli/commands/index.d.ts +1 -0
  57. package/dist/cli/commands/index.d.ts.map +1 -1
  58. package/dist/cli/commands/index.js +1 -0
  59. package/dist/cli/commands/index.js.map +1 -1
  60. package/dist/cli/commands/init.d.ts.map +1 -1
  61. package/dist/cli/commands/init.js +20 -0
  62. package/dist/cli/commands/init.js.map +1 -1
  63. package/dist/cli/commands/item.d.ts.map +1 -1
  64. package/dist/cli/commands/item.js +205 -47
  65. package/dist/cli/commands/item.js.map +1 -1
  66. package/dist/cli/commands/log.d.ts.map +1 -1
  67. package/dist/cli/commands/log.js +24 -10
  68. package/dist/cli/commands/log.js.map +1 -1
  69. package/dist/cli/commands/plan-import.d.ts +3 -3
  70. package/dist/cli/commands/plan-import.d.ts.map +1 -1
  71. package/dist/cli/commands/plan-import.js +213 -528
  72. package/dist/cli/commands/plan-import.js.map +1 -1
  73. package/dist/cli/commands/plan.d.ts.map +1 -1
  74. package/dist/cli/commands/plan.js +533 -83
  75. package/dist/cli/commands/plan.js.map +1 -1
  76. package/dist/cli/commands/review.d.ts +14 -0
  77. package/dist/cli/commands/review.d.ts.map +1 -0
  78. package/dist/cli/commands/review.js +1142 -0
  79. package/dist/cli/commands/review.js.map +1 -0
  80. package/dist/cli/commands/serve.d.ts +1 -0
  81. package/dist/cli/commands/serve.d.ts.map +1 -1
  82. package/dist/cli/commands/serve.js +33 -10
  83. package/dist/cli/commands/serve.js.map +1 -1
  84. package/dist/cli/commands/session/checkpoint.d.ts +2 -4
  85. package/dist/cli/commands/session/checkpoint.d.ts.map +1 -1
  86. package/dist/cli/commands/session/checkpoint.js +6 -107
  87. package/dist/cli/commands/session/checkpoint.js.map +1 -1
  88. package/dist/cli/commands/session/commands.d.ts.map +1 -1
  89. package/dist/cli/commands/session/commands.js +33 -23
  90. package/dist/cli/commands/session/commands.js.map +1 -1
  91. package/dist/cli/commands/session/compact.js +4 -4
  92. package/dist/cli/commands/session/compact.js.map +1 -1
  93. package/dist/cli/commands/session/create.js +2 -2
  94. package/dist/cli/commands/session/create.js.map +1 -1
  95. package/dist/cli/commands/session/format.d.ts.map +1 -1
  96. package/dist/cli/commands/session/format.js +1 -6
  97. package/dist/cli/commands/session/format.js.map +1 -1
  98. package/dist/cli/commands/session/log.d.ts +32 -7
  99. package/dist/cli/commands/session/log.d.ts.map +1 -1
  100. package/dist/cli/commands/session/log.js +166 -60
  101. package/dist/cli/commands/session/log.js.map +1 -1
  102. package/dist/cli/commands/session/migrate.d.ts +9 -0
  103. package/dist/cli/commands/session/migrate.d.ts.map +1 -0
  104. package/dist/cli/commands/session/migrate.js +46 -0
  105. package/dist/cli/commands/session/migrate.js.map +1 -0
  106. package/dist/cli/commands/session/stale-close.d.ts.map +1 -1
  107. package/dist/cli/commands/session/stale-close.js +5 -8
  108. package/dist/cli/commands/session/stale-close.js.map +1 -1
  109. package/dist/cli/commands/session/types.d.ts +1 -1
  110. package/dist/cli/commands/session/types.d.ts.map +1 -1
  111. package/dist/cli/commands/setup.d.ts +2 -2
  112. package/dist/cli/commands/setup.d.ts.map +1 -1
  113. package/dist/cli/commands/setup.js +287 -257
  114. package/dist/cli/commands/setup.js.map +1 -1
  115. package/dist/cli/commands/shadow.d.ts.map +1 -1
  116. package/dist/cli/commands/shadow.js +147 -31
  117. package/dist/cli/commands/shadow.js.map +1 -1
  118. package/dist/cli/commands/skill-crud.d.ts +7 -0
  119. package/dist/cli/commands/skill-crud.d.ts.map +1 -1
  120. package/dist/cli/commands/skill-crud.js +41 -18
  121. package/dist/cli/commands/skill-crud.js.map +1 -1
  122. package/dist/cli/commands/skill-diff.d.ts.map +1 -1
  123. package/dist/cli/commands/skill-diff.js +29 -3
  124. package/dist/cli/commands/skill-diff.js.map +1 -1
  125. package/dist/cli/commands/skill-install.d.ts.map +1 -1
  126. package/dist/cli/commands/skill-install.js +5 -4
  127. package/dist/cli/commands/skill-install.js.map +1 -1
  128. package/dist/cli/commands/task.d.ts.map +1 -1
  129. package/dist/cli/commands/task.js +359 -49
  130. package/dist/cli/commands/task.js.map +1 -1
  131. package/dist/cli/commands/trait.d.ts.map +1 -1
  132. package/dist/cli/commands/trait.js +5 -27
  133. package/dist/cli/commands/trait.js.map +1 -1
  134. package/dist/cli/commands/validate.d.ts.map +1 -1
  135. package/dist/cli/commands/validate.js +113 -52
  136. package/dist/cli/commands/validate.js.map +1 -1
  137. package/dist/cli/index.d.ts.map +1 -1
  138. package/dist/cli/index.js +69 -2
  139. package/dist/cli/index.js.map +1 -1
  140. package/dist/cli/output.d.ts +26 -0
  141. package/dist/cli/output.d.ts.map +1 -1
  142. package/dist/cli/output.js +108 -1
  143. package/dist/cli/output.js.map +1 -1
  144. package/dist/cli/sync-mode.d.ts +44 -0
  145. package/dist/cli/sync-mode.d.ts.map +1 -0
  146. package/dist/cli/sync-mode.js +64 -0
  147. package/dist/cli/sync-mode.js.map +1 -0
  148. package/dist/daemon/middleware/project-context.ts +25 -7
  149. package/dist/daemon/project-context.ts +18 -0
  150. package/dist/daemon/routes/agent-dispatch.ts +99 -22
  151. package/dist/daemon/routes/aggregation.ts +184 -0
  152. package/dist/daemon/routes/inbox.ts +5 -0
  153. package/dist/daemon/routes/items.ts +145 -0
  154. package/dist/daemon/routes/meta.ts +1 -1
  155. package/dist/daemon/routes/projects.ts +28 -6
  156. package/dist/daemon/routes/ref-resolution.ts +119 -0
  157. package/dist/daemon/routes/refs.ts +42 -0
  158. package/dist/daemon/routes/session-related.ts +140 -0
  159. package/dist/daemon/routes/sessions.ts +420 -19
  160. package/dist/daemon/routes/tasks.ts +62 -5
  161. package/dist/daemon/routes/triage.ts +40 -1
  162. package/dist/daemon/server.ts +143 -49
  163. package/dist/daemon/session-sync.ts +11 -0
  164. package/dist/daemon/shadow-sync.ts +11 -0
  165. package/dist/daemon/watcher.ts +56 -5
  166. package/dist/daemon/websocket/project-resolution.ts +77 -0
  167. package/dist/export/json.d.ts.map +1 -1
  168. package/dist/export/json.js +104 -1
  169. package/dist/export/json.js.map +1 -1
  170. package/dist/export/types.d.ts +52 -1
  171. package/dist/export/types.d.ts.map +1 -1
  172. package/dist/index.d.ts +1 -0
  173. package/dist/index.d.ts.map +1 -1
  174. package/dist/index.js +1 -0
  175. package/dist/index.js.map +1 -1
  176. package/dist/parser/agent-detection.d.ts +1 -1
  177. package/dist/parser/agent-detection.d.ts.map +1 -1
  178. package/dist/parser/agent-detection.js +10 -0
  179. package/dist/parser/agent-detection.js.map +1 -1
  180. package/dist/parser/config.d.ts +397 -2
  181. package/dist/parser/config.d.ts.map +1 -1
  182. package/dist/parser/config.js +125 -3
  183. package/dist/parser/config.js.map +1 -1
  184. package/dist/parser/dispatch-workspaces.d.ts +18 -0
  185. package/dist/parser/dispatch-workspaces.d.ts.map +1 -0
  186. package/dist/parser/dispatch-workspaces.js +209 -0
  187. package/dist/parser/dispatch-workspaces.js.map +1 -0
  188. package/dist/parser/doctor.d.ts.map +1 -1
  189. package/dist/parser/doctor.js +27 -8
  190. package/dist/parser/doctor.js.map +1 -1
  191. package/dist/parser/file-lock.d.ts.map +1 -1
  192. package/dist/parser/file-lock.js +9 -2
  193. package/dist/parser/file-lock.js.map +1 -1
  194. package/dist/parser/index.d.ts +6 -0
  195. package/dist/parser/index.d.ts.map +1 -1
  196. package/dist/parser/index.js +6 -0
  197. package/dist/parser/index.js.map +1 -1
  198. package/dist/parser/plans.d.ts.map +1 -1
  199. package/dist/parser/plans.js +1 -0
  200. package/dist/parser/plans.js.map +1 -1
  201. package/dist/parser/refs.d.ts +8 -1
  202. package/dist/parser/refs.d.ts.map +1 -1
  203. package/dist/parser/refs.js +27 -1
  204. package/dist/parser/refs.js.map +1 -1
  205. package/dist/parser/review-operations.d.ts +72 -0
  206. package/dist/parser/review-operations.d.ts.map +1 -0
  207. package/dist/parser/review-operations.js +185 -0
  208. package/dist/parser/review-operations.js.map +1 -0
  209. package/dist/parser/review-task-integration.d.ts +78 -0
  210. package/dist/parser/review-task-integration.d.ts.map +1 -0
  211. package/dist/parser/review-task-integration.js +173 -0
  212. package/dist/parser/review-task-integration.js.map +1 -0
  213. package/dist/parser/review-threads.d.ts +101 -0
  214. package/dist/parser/review-threads.d.ts.map +1 -0
  215. package/dist/parser/review-threads.js +222 -0
  216. package/dist/parser/review-threads.js.map +1 -0
  217. package/dist/parser/review-validation.d.ts +69 -0
  218. package/dist/parser/review-validation.d.ts.map +1 -0
  219. package/dist/parser/review-validation.js +207 -0
  220. package/dist/parser/review-validation.js.map +1 -0
  221. package/dist/parser/reviews.d.ts +58 -0
  222. package/dist/parser/reviews.d.ts.map +1 -0
  223. package/dist/parser/reviews.js +230 -0
  224. package/dist/parser/reviews.js.map +1 -0
  225. package/dist/parser/session-branch.d.ts +91 -0
  226. package/dist/parser/session-branch.d.ts.map +1 -0
  227. package/dist/parser/session-branch.js +565 -0
  228. package/dist/parser/session-branch.js.map +1 -0
  229. package/dist/parser/session-sync-scheduler.d.ts +53 -0
  230. package/dist/parser/session-sync-scheduler.d.ts.map +1 -0
  231. package/dist/parser/session-sync-scheduler.js +100 -0
  232. package/dist/parser/session-sync-scheduler.js.map +1 -0
  233. package/dist/parser/setup-status.d.ts +7 -1
  234. package/dist/parser/setup-status.d.ts.map +1 -1
  235. package/dist/parser/setup-status.js +104 -39
  236. package/dist/parser/setup-status.js.map +1 -1
  237. package/dist/parser/shadow-sync-scheduler.d.ts +71 -0
  238. package/dist/parser/shadow-sync-scheduler.d.ts.map +1 -0
  239. package/dist/parser/shadow-sync-scheduler.js +139 -0
  240. package/dist/parser/shadow-sync-scheduler.js.map +1 -0
  241. package/dist/parser/shadow.d.ts +121 -14
  242. package/dist/parser/shadow.d.ts.map +1 -1
  243. package/dist/parser/shadow.js +752 -27
  244. package/dist/parser/shadow.js.map +1 -1
  245. package/dist/parser/skill-render.d.ts +24 -0
  246. package/dist/parser/skill-render.d.ts.map +1 -1
  247. package/dist/parser/skill-render.js +98 -26
  248. package/dist/parser/skill-render.js.map +1 -1
  249. package/dist/parser/validate.d.ts +43 -3
  250. package/dist/parser/validate.d.ts.map +1 -1
  251. package/dist/parser/validate.js +204 -30
  252. package/dist/parser/validate.js.map +1 -1
  253. package/dist/parser/yaml.d.ts +47 -11
  254. package/dist/parser/yaml.d.ts.map +1 -1
  255. package/dist/parser/yaml.js +329 -149
  256. package/dist/parser/yaml.js.map +1 -1
  257. package/dist/review/checks.d.ts +97 -0
  258. package/dist/review/checks.d.ts.map +1 -0
  259. package/dist/review/checks.js +175 -0
  260. package/dist/review/checks.js.map +1 -0
  261. package/dist/review/index.d.ts +3 -0
  262. package/dist/review/index.d.ts.map +1 -0
  263. package/dist/review/index.js +3 -0
  264. package/dist/review/index.js.map +1 -0
  265. package/dist/review/subject-bindings.d.ts +83 -0
  266. package/dist/review/subject-bindings.d.ts.map +1 -0
  267. package/dist/review/subject-bindings.js +175 -0
  268. package/dist/review/subject-bindings.js.map +1 -0
  269. package/dist/schema/common.d.ts +26 -0
  270. package/dist/schema/common.d.ts.map +1 -1
  271. package/dist/schema/common.js +13 -0
  272. package/dist/schema/common.js.map +1 -1
  273. package/dist/schema/dispatch-workspace.d.ts +2643 -0
  274. package/dist/schema/dispatch-workspace.d.ts.map +1 -0
  275. package/dist/schema/dispatch-workspace.js +187 -0
  276. package/dist/schema/dispatch-workspace.js.map +1 -0
  277. package/dist/schema/inbox.d.ts +8 -8
  278. package/dist/schema/index.d.ts +2 -0
  279. package/dist/schema/index.d.ts.map +1 -1
  280. package/dist/schema/index.js +2 -0
  281. package/dist/schema/index.js.map +1 -1
  282. package/dist/schema/meta.d.ts +648 -116
  283. package/dist/schema/meta.d.ts.map +1 -1
  284. package/dist/schema/meta.js +27 -0
  285. package/dist/schema/meta.js.map +1 -1
  286. package/dist/schema/plan.d.ts +30 -19
  287. package/dist/schema/plan.d.ts.map +1 -1
  288. package/dist/schema/plan.js +3 -1
  289. package/dist/schema/plan.js.map +1 -1
  290. package/dist/schema/review-records.d.ts +2676 -0
  291. package/dist/schema/review-records.d.ts.map +1 -0
  292. package/dist/schema/review-records.js +232 -0
  293. package/dist/schema/review-records.js.map +1 -0
  294. package/dist/schema/spec.d.ts +32 -14
  295. package/dist/schema/spec.d.ts.map +1 -1
  296. package/dist/schema/spec.js +5 -0
  297. package/dist/schema/spec.js.map +1 -1
  298. package/dist/schema/task.d.ts +187 -29
  299. package/dist/schema/task.d.ts.map +1 -1
  300. package/dist/schema/task.js +12 -2
  301. package/dist/schema/task.js.map +1 -1
  302. package/dist/schema/triage.d.ts +22 -22
  303. package/dist/sessions/cache.d.ts +119 -0
  304. package/dist/sessions/cache.d.ts.map +1 -0
  305. package/dist/sessions/cache.js +284 -0
  306. package/dist/sessions/cache.js.map +1 -0
  307. package/dist/sessions/index.d.ts +1 -0
  308. package/dist/sessions/index.d.ts.map +1 -1
  309. package/dist/sessions/index.js +2 -0
  310. package/dist/sessions/index.js.map +1 -1
  311. package/dist/sessions/legacy.d.ts +77 -0
  312. package/dist/sessions/legacy.d.ts.map +1 -0
  313. package/dist/sessions/legacy.js +146 -0
  314. package/dist/sessions/legacy.js.map +1 -0
  315. package/dist/sessions/store.d.ts +103 -73
  316. package/dist/sessions/store.d.ts.map +1 -1
  317. package/dist/sessions/store.js +335 -186
  318. package/dist/sessions/store.js.map +1 -1
  319. package/dist/sessions/types.d.ts +44 -16
  320. package/dist/sessions/types.d.ts.map +1 -1
  321. package/dist/sessions/types.js +11 -2
  322. package/dist/sessions/types.js.map +1 -1
  323. package/dist/strings/errors.d.ts +32 -0
  324. package/dist/strings/errors.d.ts.map +1 -1
  325. package/dist/strings/errors.js +17 -0
  326. package/dist/strings/errors.js.map +1 -1
  327. package/dist/strings/labels.d.ts +1 -0
  328. package/dist/strings/labels.d.ts.map +1 -1
  329. package/dist/strings/labels.js +1 -0
  330. package/dist/strings/labels.js.map +1 -1
  331. package/dist/utils/activity.d.ts +101 -0
  332. package/dist/utils/activity.d.ts.map +1 -0
  333. package/dist/utils/activity.js +408 -0
  334. package/dist/utils/activity.js.map +1 -0
  335. package/dist/utils/git.d.ts +31 -0
  336. package/dist/utils/git.d.ts.map +1 -1
  337. package/dist/utils/git.js +87 -0
  338. package/dist/utils/git.js.map +1 -1
  339. package/dist/utils/index.d.ts +2 -0
  340. package/dist/utils/index.d.ts.map +1 -1
  341. package/dist/utils/index.js +1 -0
  342. package/dist/utils/index.js.map +1 -1
  343. package/dist/web-ui/_app/immutable/assets/0.tmlwn-Ih.css +1 -0
  344. package/dist/web-ui/_app/immutable/assets/9.BwwJybWx.css +1 -0
  345. package/dist/web-ui/_app/immutable/chunks/2KqE8gtn.js +1 -0
  346. package/dist/web-ui/_app/immutable/chunks/70-t_QvE.js +1 -0
  347. package/dist/web-ui/_app/immutable/chunks/AiWQj974.js +1 -0
  348. package/dist/web-ui/_app/immutable/chunks/{CPPfDSei.js → B25nWFyA.js} +4 -4
  349. package/dist/web-ui/_app/immutable/chunks/{DBYE9jOd.js → B2bcA_Q_.js} +1 -1
  350. package/dist/web-ui/_app/immutable/chunks/B5e5HYyB.js +1 -0
  351. package/dist/web-ui/_app/immutable/chunks/B7-5z6eA.js +1 -0
  352. package/dist/web-ui/_app/immutable/chunks/B7bGmhK0.js +1 -0
  353. package/dist/web-ui/_app/immutable/chunks/{DzO4hlg9.js → B8tYZKAE.js} +1 -1
  354. package/dist/web-ui/_app/immutable/chunks/{B5LJFxqa.js → BFGAyJjD.js} +1 -1
  355. package/dist/web-ui/_app/immutable/chunks/BG0850zf.js +1 -0
  356. package/dist/web-ui/_app/immutable/chunks/{DAMmvwn4.js → BG8eSzAd.js} +1 -1
  357. package/dist/web-ui/_app/immutable/chunks/BIMxXS8I.js +1 -0
  358. package/dist/web-ui/_app/immutable/chunks/BSzL1fpU.js +1 -0
  359. package/dist/web-ui/_app/immutable/chunks/BYtjHfeq.js +1 -0
  360. package/dist/web-ui/_app/immutable/chunks/{DxCk-KHc.js → Bp5pFYXL.js} +1 -1
  361. package/dist/web-ui/_app/immutable/chunks/{B8a0xDxR.js → BsJFsuAT.js} +1 -1
  362. package/dist/web-ui/_app/immutable/chunks/BvpNHcD6.js +1 -0
  363. package/dist/web-ui/_app/immutable/chunks/BypqA25-.js +1 -0
  364. package/dist/web-ui/_app/immutable/chunks/{BVA9Exy-.js → C0w6WDm5.js} +1 -1
  365. package/dist/web-ui/_app/immutable/chunks/C5_PAZ0y.js +1 -0
  366. package/dist/web-ui/_app/immutable/chunks/CDRO15Iv.js +1 -0
  367. package/dist/web-ui/_app/immutable/chunks/CF1CoqD5.js +1 -0
  368. package/dist/web-ui/_app/immutable/chunks/CS2sa4_m.js +1 -0
  369. package/dist/web-ui/_app/immutable/chunks/{BJ0JX3ea.js → CWUQwB9H.js} +1 -1
  370. package/dist/web-ui/_app/immutable/chunks/CY5FDdSU.js +1 -0
  371. package/dist/web-ui/_app/immutable/chunks/C_7MTDoj.js +1 -0
  372. package/dist/web-ui/_app/immutable/chunks/{D3vxvonu.js → CaAJD3dl.js} +1 -1
  373. package/dist/web-ui/_app/immutable/chunks/{BP352uRn.js → ChB5iyEL.js} +1 -1
  374. package/dist/web-ui/_app/immutable/chunks/{pE6cYWlS.js → ChQD-6N8.js} +1 -1
  375. package/dist/web-ui/_app/immutable/chunks/{Eo4gF7ih.js → CqbsoCwA.js} +1 -1
  376. package/dist/web-ui/_app/immutable/chunks/DCeJW50p.js +1 -0
  377. package/dist/web-ui/_app/immutable/chunks/{Cncwi6fQ.js → DJtZNgcs.js} +1 -1
  378. package/dist/web-ui/_app/immutable/chunks/DKIeaprD.js +1 -0
  379. package/dist/web-ui/_app/immutable/chunks/DLd2uVIA.js +1 -0
  380. package/dist/web-ui/_app/immutable/chunks/{DjcCz-PU.js → DW_subyT.js} +2 -2
  381. package/dist/web-ui/_app/immutable/chunks/DbU6lVn0.js +1 -0
  382. package/dist/web-ui/_app/immutable/chunks/Dc7ZCC5m.js +1 -0
  383. package/dist/web-ui/_app/immutable/chunks/Dd5umPsk.js +2 -0
  384. package/dist/web-ui/_app/immutable/chunks/{BysXJlZb.js → Dg_zDpDS.js} +1 -1
  385. package/dist/web-ui/_app/immutable/chunks/Dgqu8Yuc.js +1 -0
  386. package/dist/web-ui/_app/immutable/chunks/DmxsPZTB.js +1 -0
  387. package/dist/web-ui/_app/immutable/chunks/DphTaFUB.js +1 -0
  388. package/dist/web-ui/_app/immutable/chunks/DqK4iHp0.js +1 -0
  389. package/dist/web-ui/_app/immutable/chunks/{D9QNBZM2.js → DqT6OH_u.js} +2 -2
  390. package/dist/web-ui/_app/immutable/chunks/Ds9I9wQb.js +1 -0
  391. package/dist/web-ui/_app/immutable/chunks/Du5ng3u4.js +1 -0
  392. package/dist/web-ui/_app/immutable/chunks/DxJw79Wi.js +1 -0
  393. package/dist/web-ui/_app/immutable/chunks/GFTX8GgV.js +1 -0
  394. package/dist/web-ui/_app/immutable/chunks/{C076q4JN.js → HNjs76Zz.js} +1 -1
  395. package/dist/web-ui/_app/immutable/chunks/HVMjDi4_.js +1 -0
  396. package/dist/web-ui/_app/immutable/chunks/{BkOJ8DkV.js → P0A_fJvS.js} +1 -1
  397. package/dist/web-ui/_app/immutable/chunks/T3vGWjIL.js +1 -0
  398. package/dist/web-ui/_app/immutable/chunks/VTmrX9Qu.js +1 -0
  399. package/dist/web-ui/_app/immutable/chunks/{k_Qegko0.js → Xvwhx_F1.js} +1 -1
  400. package/dist/web-ui/_app/immutable/chunks/Yyz1XMQA.js +1 -0
  401. package/dist/web-ui/_app/immutable/chunks/{62JVKtnb.js → dh5HeqUr.js} +1 -1
  402. package/dist/web-ui/_app/immutable/chunks/fZMteyca.js +62 -0
  403. package/dist/web-ui/_app/immutable/chunks/{D82RulSH.js → gPrj-hqC.js} +1 -1
  404. package/dist/web-ui/_app/immutable/chunks/htcWMiYN.js +1 -0
  405. package/dist/web-ui/_app/immutable/chunks/{CwELQvbx.js → oTsvd9y4.js} +1 -1
  406. package/dist/web-ui/_app/immutable/chunks/qJfLUwU4.js +1 -0
  407. package/dist/web-ui/_app/immutable/chunks/xCtiO_JE.js +1 -0
  408. package/dist/web-ui/_app/immutable/chunks/{DvA-KON-.js → y4GeEH6k.js} +1 -1
  409. package/dist/web-ui/_app/immutable/entry/app.C4h_eOn6.js +2 -0
  410. package/dist/web-ui/_app/immutable/entry/start.CQFTf9ep.js +1 -0
  411. package/dist/web-ui/_app/immutable/nodes/0.Dh1xO970.js +1 -0
  412. package/dist/web-ui/_app/immutable/nodes/1.l75D3Opx.js +1 -0
  413. package/dist/web-ui/_app/immutable/nodes/10.DBidBPc-.js +1 -0
  414. package/dist/web-ui/_app/immutable/nodes/11.Ab0gUKWe.js +1 -0
  415. package/dist/web-ui/_app/immutable/nodes/12.CMsnoxfs.js +1 -0
  416. package/dist/web-ui/_app/immutable/nodes/13.D8YKuknB.js +1 -0
  417. package/dist/web-ui/_app/immutable/nodes/14.DZ0aan7y.js +1 -0
  418. package/dist/web-ui/_app/immutable/nodes/15.CUIKreDL.js +2 -0
  419. package/dist/web-ui/_app/immutable/nodes/16.BWc8--BO.js +1 -0
  420. package/dist/web-ui/_app/immutable/nodes/2.CDUonbuh.js +1 -0
  421. package/dist/web-ui/_app/immutable/nodes/3.Ctg3M00i.js +1 -0
  422. package/dist/web-ui/_app/immutable/nodes/4.Ci-JDwbA.js +2 -0
  423. package/dist/web-ui/_app/immutable/nodes/5.CTyEDAq0.js +1 -0
  424. package/dist/web-ui/_app/immutable/nodes/6.BTZZqsAb.js +1 -0
  425. package/dist/web-ui/_app/immutable/nodes/7.BI52g_Jo.js +137 -0
  426. package/dist/web-ui/_app/immutable/nodes/8.3hZPaB9x.js +1 -0
  427. package/dist/web-ui/_app/immutable/nodes/9.DS49kvwl.js +29 -0
  428. package/dist/web-ui/_app/version.json +1 -1
  429. package/dist/web-ui/favicon-192.png +0 -0
  430. package/dist/web-ui/favicon-32.png +0 -0
  431. package/dist/web-ui/favicon.ico +0 -0
  432. package/dist/web-ui/index.html +14 -14
  433. package/package.json +12 -6
  434. package/plugin/.claude-plugin/marketplace.json +1 -1
  435. package/plugin/.claude-plugin/plugin.json +1 -1
  436. package/plugin/plugins/kspec/skills/merge/SKILL.md +127 -0
  437. package/plugin/plugins/kspec/skills/plan/SKILL.md +55 -26
  438. package/plugin/plugins/kspec/skills/review/SKILL.md +350 -133
  439. package/plugin/plugins/kspec/skills/task-work/SKILL.md +96 -106
  440. package/templates/agents-sections/04-pr-workflow.md +15 -12
  441. package/templates/agents-sections/06-ralph-loop.md +15 -10
  442. package/templates/skills/manifest.yaml +25 -7
  443. package/templates/skills/merge/SKILL.md +120 -0
  444. package/templates/skills/plan/SKILL.md +55 -26
  445. package/templates/skills/review/SKILL.md +346 -130
  446. package/templates/skills/task-work/SKILL.md +93 -103
  447. package/dist/web-ui/_app/immutable/assets/0.BJaYkGW2.css +0 -1
  448. package/dist/web-ui/_app/immutable/assets/9.SzGLxi4x.css +0 -1
  449. package/dist/web-ui/_app/immutable/chunks/-lc0BifF.js +0 -1
  450. package/dist/web-ui/_app/immutable/chunks/8RBjHMN1.js +0 -1
  451. package/dist/web-ui/_app/immutable/chunks/B5wTVqxm.js +0 -1
  452. package/dist/web-ui/_app/immutable/chunks/B6VSmczZ.js +0 -1
  453. package/dist/web-ui/_app/immutable/chunks/BEOQc37C.js +0 -1
  454. package/dist/web-ui/_app/immutable/chunks/BHtYorjv.js +0 -1
  455. package/dist/web-ui/_app/immutable/chunks/BMuCqDX8.js +0 -1
  456. package/dist/web-ui/_app/immutable/chunks/BUZujXJ2.js +0 -1
  457. package/dist/web-ui/_app/immutable/chunks/BWET-efb.js +0 -1
  458. package/dist/web-ui/_app/immutable/chunks/BXkNecpt.js +0 -1
  459. package/dist/web-ui/_app/immutable/chunks/BYzrIfX8.js +0 -1
  460. package/dist/web-ui/_app/immutable/chunks/BpuwufMc.js +0 -1
  461. package/dist/web-ui/_app/immutable/chunks/BwMO4RrG.js +0 -1
  462. package/dist/web-ui/_app/immutable/chunks/C33JaVbg.js +0 -1
  463. package/dist/web-ui/_app/immutable/chunks/CGtqifKp.js +0 -1
  464. package/dist/web-ui/_app/immutable/chunks/CHDZZ7OG.js +0 -1
  465. package/dist/web-ui/_app/immutable/chunks/CUir3f4J.js +0 -60
  466. package/dist/web-ui/_app/immutable/chunks/CrCIbn0C.js +0 -1
  467. package/dist/web-ui/_app/immutable/chunks/D6TVmR9T.js +0 -1
  468. package/dist/web-ui/_app/immutable/chunks/D7LTux4W.js +0 -1
  469. package/dist/web-ui/_app/immutable/chunks/DAh4Wfku.js +0 -1
  470. package/dist/web-ui/_app/immutable/chunks/DAx07bEQ.js +0 -1
  471. package/dist/web-ui/_app/immutable/chunks/DOno4cA2.js +0 -1
  472. package/dist/web-ui/_app/immutable/chunks/DQA8NZIH.js +0 -2
  473. package/dist/web-ui/_app/immutable/chunks/DRfPm2bo.js +0 -1
  474. package/dist/web-ui/_app/immutable/chunks/DhQhksaB.js +0 -1
  475. package/dist/web-ui/_app/immutable/chunks/DjG7s6hm.js +0 -1
  476. package/dist/web-ui/_app/immutable/chunks/DkltRNvh.js +0 -1
  477. package/dist/web-ui/_app/immutable/chunks/DlaTnPKL.js +0 -1
  478. package/dist/web-ui/_app/immutable/chunks/ExCq5swK.js +0 -1
  479. package/dist/web-ui/_app/immutable/chunks/T3zZGv51.js +0 -1
  480. package/dist/web-ui/_app/immutable/chunks/XZumBYeP.js +0 -1
  481. package/dist/web-ui/_app/immutable/chunks/_ySfNjkF.js +0 -1
  482. package/dist/web-ui/_app/immutable/chunks/iEtR5cV6.js +0 -1
  483. package/dist/web-ui/_app/immutable/entry/app.Cgu6uKeS.js +0 -2
  484. package/dist/web-ui/_app/immutable/entry/start.9XifnLoB.js +0 -1
  485. package/dist/web-ui/_app/immutable/nodes/0.DISwcKSK.js +0 -1
  486. package/dist/web-ui/_app/immutable/nodes/1.Cx2Ufqp1.js +0 -1
  487. package/dist/web-ui/_app/immutable/nodes/10.C3z8ijXL.js +0 -1
  488. package/dist/web-ui/_app/immutable/nodes/11.DZdIjZmM.js +0 -1
  489. package/dist/web-ui/_app/immutable/nodes/12.FsIGfAOa.js +0 -1
  490. package/dist/web-ui/_app/immutable/nodes/13.DZoFwagf.js +0 -1
  491. package/dist/web-ui/_app/immutable/nodes/14.DaIzDKbQ.js +0 -1
  492. package/dist/web-ui/_app/immutable/nodes/15.BYyt4XWF.js +0 -2
  493. package/dist/web-ui/_app/immutable/nodes/16.CQkSqpOe.js +0 -1
  494. package/dist/web-ui/_app/immutable/nodes/2.Bkf_j2UJ.js +0 -1
  495. package/dist/web-ui/_app/immutable/nodes/3.kaMCurJG.js +0 -1
  496. package/dist/web-ui/_app/immutable/nodes/4.BSsFPTHG.js +0 -2
  497. package/dist/web-ui/_app/immutable/nodes/5.CpPlcCEZ.js +0 -1
  498. package/dist/web-ui/_app/immutable/nodes/6.BN4FqQmY.js +0 -1
  499. package/dist/web-ui/_app/immutable/nodes/7.9kBYIZik.js +0 -1
  500. package/dist/web-ui/_app/immutable/nodes/8.BuijtZ6B.js +0 -1
  501. package/dist/web-ui/_app/immutable/nodes/9.C-Weba8R.js +0 -1
@@ -0,0 +1,2676 @@
1
+ import { z } from "zod";
2
+ export declare const ReviewLifecycleStateSchema: z.ZodEnum<["draft", "open", "closed", "archived"]>;
3
+ export declare const ReviewDispositionSchema: z.ZodEnum<["pending", "approved", "changes_requested"]>;
4
+ export declare const ReviewGateStateSchema: z.ZodEnum<["passing", "failing", "pending"]>;
5
+ export declare const ReviewCodeSubjectSchema: z.ZodObject<{
6
+ type: z.ZodLiteral<"code">;
7
+ base_commit: z.ZodString;
8
+ head_commit: z.ZodString;
9
+ merge_base_commit: z.ZodOptional<z.ZodString>;
10
+ base_branch: z.ZodOptional<z.ZodString>;
11
+ head_branch: z.ZodOptional<z.ZodString>;
12
+ }, "strip", z.ZodTypeAny, {
13
+ type: "code";
14
+ base_commit: string;
15
+ head_commit: string;
16
+ merge_base_commit?: string | undefined;
17
+ base_branch?: string | undefined;
18
+ head_branch?: string | undefined;
19
+ }, {
20
+ type: "code";
21
+ base_commit: string;
22
+ head_commit: string;
23
+ merge_base_commit?: string | undefined;
24
+ base_branch?: string | undefined;
25
+ head_branch?: string | undefined;
26
+ }>;
27
+ export declare const ReviewPlanSubjectSchema: z.ZodObject<{
28
+ type: z.ZodLiteral<"plan">;
29
+ ref: z.ZodString;
30
+ shadow_commit: z.ZodString;
31
+ content_hash: z.ZodString;
32
+ }, "strip", z.ZodTypeAny, {
33
+ type: "plan";
34
+ ref: string;
35
+ shadow_commit: string;
36
+ content_hash: string;
37
+ }, {
38
+ type: "plan";
39
+ ref: string;
40
+ shadow_commit: string;
41
+ content_hash: string;
42
+ }>;
43
+ export declare const ReviewTaskSubjectSchema: z.ZodObject<{
44
+ type: z.ZodLiteral<"task">;
45
+ ref: z.ZodString;
46
+ shadow_commit: z.ZodString;
47
+ content_hash: z.ZodString;
48
+ }, "strip", z.ZodTypeAny, {
49
+ type: "task";
50
+ ref: string;
51
+ shadow_commit: string;
52
+ content_hash: string;
53
+ }, {
54
+ type: "task";
55
+ ref: string;
56
+ shadow_commit: string;
57
+ content_hash: string;
58
+ }>;
59
+ export declare const ReviewSpecSubjectSchema: z.ZodObject<{
60
+ type: z.ZodLiteral<"spec">;
61
+ ref: z.ZodString;
62
+ shadow_commit: z.ZodString;
63
+ content_hash: z.ZodString;
64
+ }, "strip", z.ZodTypeAny, {
65
+ type: "spec";
66
+ ref: string;
67
+ shadow_commit: string;
68
+ content_hash: string;
69
+ }, {
70
+ type: "spec";
71
+ ref: string;
72
+ shadow_commit: string;
73
+ content_hash: string;
74
+ }>;
75
+ export declare const ReviewExternalSubjectSchema: z.ZodObject<{
76
+ type: z.ZodLiteral<"external">;
77
+ url: z.ZodString;
78
+ external_id: z.ZodOptional<z.ZodString>;
79
+ provider: z.ZodOptional<z.ZodString>;
80
+ }, "strip", z.ZodTypeAny, {
81
+ type: "external";
82
+ url: string;
83
+ external_id?: string | undefined;
84
+ provider?: string | undefined;
85
+ }, {
86
+ type: "external";
87
+ url: string;
88
+ external_id?: string | undefined;
89
+ provider?: string | undefined;
90
+ }>;
91
+ export declare const ReviewSubjectSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
92
+ type: z.ZodLiteral<"code">;
93
+ base_commit: z.ZodString;
94
+ head_commit: z.ZodString;
95
+ merge_base_commit: z.ZodOptional<z.ZodString>;
96
+ base_branch: z.ZodOptional<z.ZodString>;
97
+ head_branch: z.ZodOptional<z.ZodString>;
98
+ }, "strip", z.ZodTypeAny, {
99
+ type: "code";
100
+ base_commit: string;
101
+ head_commit: string;
102
+ merge_base_commit?: string | undefined;
103
+ base_branch?: string | undefined;
104
+ head_branch?: string | undefined;
105
+ }, {
106
+ type: "code";
107
+ base_commit: string;
108
+ head_commit: string;
109
+ merge_base_commit?: string | undefined;
110
+ base_branch?: string | undefined;
111
+ head_branch?: string | undefined;
112
+ }>, z.ZodObject<{
113
+ type: z.ZodLiteral<"plan">;
114
+ ref: z.ZodString;
115
+ shadow_commit: z.ZodString;
116
+ content_hash: z.ZodString;
117
+ }, "strip", z.ZodTypeAny, {
118
+ type: "plan";
119
+ ref: string;
120
+ shadow_commit: string;
121
+ content_hash: string;
122
+ }, {
123
+ type: "plan";
124
+ ref: string;
125
+ shadow_commit: string;
126
+ content_hash: string;
127
+ }>, z.ZodObject<{
128
+ type: z.ZodLiteral<"task">;
129
+ ref: z.ZodString;
130
+ shadow_commit: z.ZodString;
131
+ content_hash: z.ZodString;
132
+ }, "strip", z.ZodTypeAny, {
133
+ type: "task";
134
+ ref: string;
135
+ shadow_commit: string;
136
+ content_hash: string;
137
+ }, {
138
+ type: "task";
139
+ ref: string;
140
+ shadow_commit: string;
141
+ content_hash: string;
142
+ }>, z.ZodObject<{
143
+ type: z.ZodLiteral<"spec">;
144
+ ref: z.ZodString;
145
+ shadow_commit: z.ZodString;
146
+ content_hash: z.ZodString;
147
+ }, "strip", z.ZodTypeAny, {
148
+ type: "spec";
149
+ ref: string;
150
+ shadow_commit: string;
151
+ content_hash: string;
152
+ }, {
153
+ type: "spec";
154
+ ref: string;
155
+ shadow_commit: string;
156
+ content_hash: string;
157
+ }>, z.ZodObject<{
158
+ type: z.ZodLiteral<"external">;
159
+ url: z.ZodString;
160
+ external_id: z.ZodOptional<z.ZodString>;
161
+ provider: z.ZodOptional<z.ZodString>;
162
+ }, "strip", z.ZodTypeAny, {
163
+ type: "external";
164
+ url: string;
165
+ external_id?: string | undefined;
166
+ provider?: string | undefined;
167
+ }, {
168
+ type: "external";
169
+ url: string;
170
+ external_id?: string | undefined;
171
+ provider?: string | undefined;
172
+ }>]>;
173
+ export declare const ReviewCodeCompareVersionSchema: z.ZodObject<{
174
+ type: z.ZodLiteral<"code_compare">;
175
+ base_commit: z.ZodString;
176
+ head_commit: z.ZodString;
177
+ }, "strip", z.ZodTypeAny, {
178
+ type: "code_compare";
179
+ base_commit: string;
180
+ head_commit: string;
181
+ }, {
182
+ type: "code_compare";
183
+ base_commit: string;
184
+ head_commit: string;
185
+ }>;
186
+ export declare const ReviewEntityVersionSchema: z.ZodObject<{
187
+ type: z.ZodLiteral<"entity_version">;
188
+ content_hash: z.ZodString;
189
+ }, "strip", z.ZodTypeAny, {
190
+ type: "entity_version";
191
+ content_hash: string;
192
+ }, {
193
+ type: "entity_version";
194
+ content_hash: string;
195
+ }>;
196
+ export declare const ReviewSubjectVersionSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
197
+ type: z.ZodLiteral<"code_compare">;
198
+ base_commit: z.ZodString;
199
+ head_commit: z.ZodString;
200
+ }, "strip", z.ZodTypeAny, {
201
+ type: "code_compare";
202
+ base_commit: string;
203
+ head_commit: string;
204
+ }, {
205
+ type: "code_compare";
206
+ base_commit: string;
207
+ head_commit: string;
208
+ }>, z.ZodObject<{
209
+ type: z.ZodLiteral<"entity_version">;
210
+ content_hash: z.ZodString;
211
+ }, "strip", z.ZodTypeAny, {
212
+ type: "entity_version";
213
+ content_hash: string;
214
+ }, {
215
+ type: "entity_version";
216
+ content_hash: string;
217
+ }>]>;
218
+ export declare const ReviewCodeAnchorSchema: z.ZodObject<{
219
+ type: z.ZodLiteral<"code">;
220
+ path: z.ZodString;
221
+ side: z.ZodEnum<["base", "head"]>;
222
+ line_start: z.ZodNumber;
223
+ line_end: z.ZodNumber;
224
+ commit: z.ZodString;
225
+ }, "strip", z.ZodTypeAny, {
226
+ path: string;
227
+ type: "code";
228
+ commit: string;
229
+ side: "head" | "base";
230
+ line_start: number;
231
+ line_end: number;
232
+ }, {
233
+ path: string;
234
+ type: "code";
235
+ commit: string;
236
+ side: "head" | "base";
237
+ line_start: number;
238
+ line_end: number;
239
+ }>;
240
+ export declare const ReviewStructuredAnchorSchema: z.ZodObject<{
241
+ type: z.ZodLiteral<"structured">;
242
+ section: z.ZodOptional<z.ZodString>;
243
+ field: z.ZodOptional<z.ZodString>;
244
+ path: z.ZodOptional<z.ZodString>;
245
+ ref: z.ZodOptional<z.ZodString>;
246
+ }, "strip", z.ZodTypeAny, {
247
+ type: "structured";
248
+ path?: string | undefined;
249
+ ref?: string | undefined;
250
+ section?: string | undefined;
251
+ field?: string | undefined;
252
+ }, {
253
+ type: "structured";
254
+ path?: string | undefined;
255
+ ref?: string | undefined;
256
+ section?: string | undefined;
257
+ field?: string | undefined;
258
+ }>;
259
+ export declare const ReviewAnchorSchema: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
260
+ type: z.ZodLiteral<"code">;
261
+ path: z.ZodString;
262
+ side: z.ZodEnum<["base", "head"]>;
263
+ line_start: z.ZodNumber;
264
+ line_end: z.ZodNumber;
265
+ commit: z.ZodString;
266
+ }, "strip", z.ZodTypeAny, {
267
+ path: string;
268
+ type: "code";
269
+ commit: string;
270
+ side: "head" | "base";
271
+ line_start: number;
272
+ line_end: number;
273
+ }, {
274
+ path: string;
275
+ type: "code";
276
+ commit: string;
277
+ side: "head" | "base";
278
+ line_start: number;
279
+ line_end: number;
280
+ }>, z.ZodObject<{
281
+ type: z.ZodLiteral<"structured">;
282
+ section: z.ZodOptional<z.ZodString>;
283
+ field: z.ZodOptional<z.ZodString>;
284
+ path: z.ZodOptional<z.ZodString>;
285
+ ref: z.ZodOptional<z.ZodString>;
286
+ }, "strip", z.ZodTypeAny, {
287
+ type: "structured";
288
+ path?: string | undefined;
289
+ ref?: string | undefined;
290
+ section?: string | undefined;
291
+ field?: string | undefined;
292
+ }, {
293
+ type: "structured";
294
+ path?: string | undefined;
295
+ ref?: string | undefined;
296
+ section?: string | undefined;
297
+ field?: string | undefined;
298
+ }>]>;
299
+ export declare const ReviewThreadKindSchema: z.ZodEnum<["blocker", "question", "nit"]>;
300
+ export declare const ReviewThreadEntrySchema: z.ZodObject<{
301
+ _ulid: z.ZodString;
302
+ author: z.ZodString;
303
+ body: z.ZodString;
304
+ created_at: z.ZodUnion<[z.ZodString, z.ZodString]>;
305
+ }, "strip", z.ZodTypeAny, {
306
+ created_at: string;
307
+ _ulid: string;
308
+ author: string;
309
+ body: string;
310
+ }, {
311
+ created_at: string;
312
+ _ulid: string;
313
+ author: string;
314
+ body: string;
315
+ }>;
316
+ export declare const ReviewThreadSchema: z.ZodObject<{
317
+ _ulid: z.ZodString;
318
+ kind: z.ZodDefault<z.ZodEnum<["blocker", "question", "nit"]>>;
319
+ anchor: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
320
+ type: z.ZodLiteral<"code">;
321
+ path: z.ZodString;
322
+ side: z.ZodEnum<["base", "head"]>;
323
+ line_start: z.ZodNumber;
324
+ line_end: z.ZodNumber;
325
+ commit: z.ZodString;
326
+ }, "strip", z.ZodTypeAny, {
327
+ path: string;
328
+ type: "code";
329
+ commit: string;
330
+ side: "head" | "base";
331
+ line_start: number;
332
+ line_end: number;
333
+ }, {
334
+ path: string;
335
+ type: "code";
336
+ commit: string;
337
+ side: "head" | "base";
338
+ line_start: number;
339
+ line_end: number;
340
+ }>, z.ZodObject<{
341
+ type: z.ZodLiteral<"structured">;
342
+ section: z.ZodOptional<z.ZodString>;
343
+ field: z.ZodOptional<z.ZodString>;
344
+ path: z.ZodOptional<z.ZodString>;
345
+ ref: z.ZodOptional<z.ZodString>;
346
+ }, "strip", z.ZodTypeAny, {
347
+ type: "structured";
348
+ path?: string | undefined;
349
+ ref?: string | undefined;
350
+ section?: string | undefined;
351
+ field?: string | undefined;
352
+ }, {
353
+ type: "structured";
354
+ path?: string | undefined;
355
+ ref?: string | undefined;
356
+ section?: string | undefined;
357
+ field?: string | undefined;
358
+ }>]>>;
359
+ entries: z.ZodDefault<z.ZodArray<z.ZodObject<{
360
+ _ulid: z.ZodString;
361
+ author: z.ZodString;
362
+ body: z.ZodString;
363
+ created_at: z.ZodUnion<[z.ZodString, z.ZodString]>;
364
+ }, "strip", z.ZodTypeAny, {
365
+ created_at: string;
366
+ _ulid: string;
367
+ author: string;
368
+ body: string;
369
+ }, {
370
+ created_at: string;
371
+ _ulid: string;
372
+ author: string;
373
+ body: string;
374
+ }>, "many">>;
375
+ resolved_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
376
+ resolved_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
377
+ }, "strip", z.ZodTypeAny, {
378
+ entries: {
379
+ created_at: string;
380
+ _ulid: string;
381
+ author: string;
382
+ body: string;
383
+ }[];
384
+ _ulid: string;
385
+ kind: "question" | "blocker" | "nit";
386
+ anchor?: {
387
+ path: string;
388
+ type: "code";
389
+ commit: string;
390
+ side: "head" | "base";
391
+ line_start: number;
392
+ line_end: number;
393
+ } | {
394
+ type: "structured";
395
+ path?: string | undefined;
396
+ ref?: string | undefined;
397
+ section?: string | undefined;
398
+ field?: string | undefined;
399
+ } | undefined;
400
+ resolved_at?: string | null | undefined;
401
+ resolved_by?: string | null | undefined;
402
+ }, {
403
+ _ulid: string;
404
+ anchor?: {
405
+ path: string;
406
+ type: "code";
407
+ commit: string;
408
+ side: "head" | "base";
409
+ line_start: number;
410
+ line_end: number;
411
+ } | {
412
+ type: "structured";
413
+ path?: string | undefined;
414
+ ref?: string | undefined;
415
+ section?: string | undefined;
416
+ field?: string | undefined;
417
+ } | undefined;
418
+ entries?: {
419
+ created_at: string;
420
+ _ulid: string;
421
+ author: string;
422
+ body: string;
423
+ }[] | undefined;
424
+ resolved_at?: string | null | undefined;
425
+ resolved_by?: string | null | undefined;
426
+ kind?: "question" | "blocker" | "nit" | undefined;
427
+ }>;
428
+ export declare const ReviewCheckStatusSchema: z.ZodEnum<["pass", "fail", "running", "skipped"]>;
429
+ export declare const ReviewCheckSchema: z.ZodObject<{
430
+ name: z.ZodString;
431
+ status: z.ZodEnum<["pass", "fail", "running", "skipped"]>;
432
+ required: z.ZodDefault<z.ZodBoolean>;
433
+ runner: z.ZodOptional<z.ZodString>;
434
+ evidence: z.ZodOptional<z.ZodString>;
435
+ applies_to_version: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
436
+ type: z.ZodLiteral<"code_compare">;
437
+ base_commit: z.ZodString;
438
+ head_commit: z.ZodString;
439
+ }, "strip", z.ZodTypeAny, {
440
+ type: "code_compare";
441
+ base_commit: string;
442
+ head_commit: string;
443
+ }, {
444
+ type: "code_compare";
445
+ base_commit: string;
446
+ head_commit: string;
447
+ }>, z.ZodObject<{
448
+ type: z.ZodLiteral<"entity_version">;
449
+ content_hash: z.ZodString;
450
+ }, "strip", z.ZodTypeAny, {
451
+ type: "entity_version";
452
+ content_hash: string;
453
+ }, {
454
+ type: "entity_version";
455
+ content_hash: string;
456
+ }>]>;
457
+ created_at: z.ZodUnion<[z.ZodString, z.ZodString]>;
458
+ completed_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
459
+ }, "strip", z.ZodTypeAny, {
460
+ name: string;
461
+ status: "skipped" | "pass" | "fail" | "running";
462
+ created_at: string;
463
+ required: boolean;
464
+ applies_to_version: {
465
+ type: "code_compare";
466
+ base_commit: string;
467
+ head_commit: string;
468
+ } | {
469
+ type: "entity_version";
470
+ content_hash: string;
471
+ };
472
+ completed_at?: string | null | undefined;
473
+ runner?: string | undefined;
474
+ evidence?: string | undefined;
475
+ }, {
476
+ name: string;
477
+ status: "skipped" | "pass" | "fail" | "running";
478
+ created_at: string;
479
+ applies_to_version: {
480
+ type: "code_compare";
481
+ base_commit: string;
482
+ head_commit: string;
483
+ } | {
484
+ type: "entity_version";
485
+ content_hash: string;
486
+ };
487
+ required?: boolean | undefined;
488
+ completed_at?: string | null | undefined;
489
+ runner?: string | undefined;
490
+ evidence?: string | undefined;
491
+ }>;
492
+ export declare const ReviewVerdictDecisionSchema: z.ZodEnum<["approve", "request_changes", "comment"]>;
493
+ export declare const ReviewVerdictSchema: z.ZodObject<{
494
+ reviewer: z.ZodString;
495
+ role: z.ZodDefault<z.ZodString>;
496
+ decision: z.ZodEnum<["approve", "request_changes", "comment"]>;
497
+ applies_to_version: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
498
+ type: z.ZodLiteral<"code_compare">;
499
+ base_commit: z.ZodString;
500
+ head_commit: z.ZodString;
501
+ }, "strip", z.ZodTypeAny, {
502
+ type: "code_compare";
503
+ base_commit: string;
504
+ head_commit: string;
505
+ }, {
506
+ type: "code_compare";
507
+ base_commit: string;
508
+ head_commit: string;
509
+ }>, z.ZodObject<{
510
+ type: z.ZodLiteral<"entity_version">;
511
+ content_hash: z.ZodString;
512
+ }, "strip", z.ZodTypeAny, {
513
+ type: "entity_version";
514
+ content_hash: string;
515
+ }, {
516
+ type: "entity_version";
517
+ content_hash: string;
518
+ }>]>;
519
+ created_at: z.ZodUnion<[z.ZodString, z.ZodString]>;
520
+ }, "strip", z.ZodTypeAny, {
521
+ decision: "approve" | "request_changes" | "comment";
522
+ reviewer: string;
523
+ role: string;
524
+ created_at: string;
525
+ applies_to_version: {
526
+ type: "code_compare";
527
+ base_commit: string;
528
+ head_commit: string;
529
+ } | {
530
+ type: "entity_version";
531
+ content_hash: string;
532
+ };
533
+ }, {
534
+ decision: "approve" | "request_changes" | "comment";
535
+ reviewer: string;
536
+ created_at: string;
537
+ applies_to_version: {
538
+ type: "code_compare";
539
+ base_commit: string;
540
+ head_commit: string;
541
+ } | {
542
+ type: "entity_version";
543
+ content_hash: string;
544
+ };
545
+ role?: string | undefined;
546
+ }>;
547
+ export declare const ReviewEventTypeSchema: z.ZodEnum<["lifecycle_change", "verdict_submitted", "thread_created", "thread_replied", "thread_resolved", "thread_reopened", "check_added", "subject_refreshed"]>;
548
+ export declare const ReviewEventSchema: z.ZodObject<{
549
+ _ulid: z.ZodString;
550
+ event_type: z.ZodEnum<["lifecycle_change", "verdict_submitted", "thread_created", "thread_replied", "thread_resolved", "thread_reopened", "check_added", "subject_refreshed"]>;
551
+ actor: z.ZodString;
552
+ timestamp: z.ZodUnion<[z.ZodString, z.ZodString]>;
553
+ payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
554
+ }, "strip", z.ZodTypeAny, {
555
+ _ulid: string;
556
+ event_type: "lifecycle_change" | "verdict_submitted" | "thread_created" | "thread_replied" | "thread_resolved" | "thread_reopened" | "check_added" | "subject_refreshed";
557
+ actor: string;
558
+ timestamp: string;
559
+ payload: Record<string, unknown>;
560
+ }, {
561
+ _ulid: string;
562
+ event_type: "lifecycle_change" | "verdict_submitted" | "thread_created" | "thread_replied" | "thread_resolved" | "thread_reopened" | "check_added" | "subject_refreshed";
563
+ actor: string;
564
+ timestamp: string;
565
+ payload?: Record<string, unknown> | undefined;
566
+ }>;
567
+ export declare const ReviewExternalLinkSchema: z.ZodObject<{
568
+ url: z.ZodString;
569
+ provider: z.ZodOptional<z.ZodString>;
570
+ external_id: z.ZodOptional<z.ZodString>;
571
+ label: z.ZodOptional<z.ZodString>;
572
+ }, "strip", z.ZodTypeAny, {
573
+ url: string;
574
+ external_id?: string | undefined;
575
+ provider?: string | undefined;
576
+ label?: string | undefined;
577
+ }, {
578
+ url: string;
579
+ external_id?: string | undefined;
580
+ provider?: string | undefined;
581
+ label?: string | undefined;
582
+ }>;
583
+ export declare const ReviewRecordSchema: z.ZodObject<{
584
+ _ulid: z.ZodString;
585
+ slugs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
586
+ title: z.ZodString;
587
+ lifecycle_state: z.ZodDefault<z.ZodEnum<["draft", "open", "closed", "archived"]>>;
588
+ subject: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
589
+ type: z.ZodLiteral<"code">;
590
+ base_commit: z.ZodString;
591
+ head_commit: z.ZodString;
592
+ merge_base_commit: z.ZodOptional<z.ZodString>;
593
+ base_branch: z.ZodOptional<z.ZodString>;
594
+ head_branch: z.ZodOptional<z.ZodString>;
595
+ }, "strip", z.ZodTypeAny, {
596
+ type: "code";
597
+ base_commit: string;
598
+ head_commit: string;
599
+ merge_base_commit?: string | undefined;
600
+ base_branch?: string | undefined;
601
+ head_branch?: string | undefined;
602
+ }, {
603
+ type: "code";
604
+ base_commit: string;
605
+ head_commit: string;
606
+ merge_base_commit?: string | undefined;
607
+ base_branch?: string | undefined;
608
+ head_branch?: string | undefined;
609
+ }>, z.ZodObject<{
610
+ type: z.ZodLiteral<"plan">;
611
+ ref: z.ZodString;
612
+ shadow_commit: z.ZodString;
613
+ content_hash: z.ZodString;
614
+ }, "strip", z.ZodTypeAny, {
615
+ type: "plan";
616
+ ref: string;
617
+ shadow_commit: string;
618
+ content_hash: string;
619
+ }, {
620
+ type: "plan";
621
+ ref: string;
622
+ shadow_commit: string;
623
+ content_hash: string;
624
+ }>, z.ZodObject<{
625
+ type: z.ZodLiteral<"task">;
626
+ ref: z.ZodString;
627
+ shadow_commit: z.ZodString;
628
+ content_hash: z.ZodString;
629
+ }, "strip", z.ZodTypeAny, {
630
+ type: "task";
631
+ ref: string;
632
+ shadow_commit: string;
633
+ content_hash: string;
634
+ }, {
635
+ type: "task";
636
+ ref: string;
637
+ shadow_commit: string;
638
+ content_hash: string;
639
+ }>, z.ZodObject<{
640
+ type: z.ZodLiteral<"spec">;
641
+ ref: z.ZodString;
642
+ shadow_commit: z.ZodString;
643
+ content_hash: z.ZodString;
644
+ }, "strip", z.ZodTypeAny, {
645
+ type: "spec";
646
+ ref: string;
647
+ shadow_commit: string;
648
+ content_hash: string;
649
+ }, {
650
+ type: "spec";
651
+ ref: string;
652
+ shadow_commit: string;
653
+ content_hash: string;
654
+ }>, z.ZodObject<{
655
+ type: z.ZodLiteral<"external">;
656
+ url: z.ZodString;
657
+ external_id: z.ZodOptional<z.ZodString>;
658
+ provider: z.ZodOptional<z.ZodString>;
659
+ }, "strip", z.ZodTypeAny, {
660
+ type: "external";
661
+ url: string;
662
+ external_id?: string | undefined;
663
+ provider?: string | undefined;
664
+ }, {
665
+ type: "external";
666
+ url: string;
667
+ external_id?: string | undefined;
668
+ provider?: string | undefined;
669
+ }>]>;
670
+ author: z.ZodString;
671
+ related_refs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
672
+ threads: z.ZodDefault<z.ZodArray<z.ZodObject<{
673
+ _ulid: z.ZodString;
674
+ kind: z.ZodDefault<z.ZodEnum<["blocker", "question", "nit"]>>;
675
+ anchor: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
676
+ type: z.ZodLiteral<"code">;
677
+ path: z.ZodString;
678
+ side: z.ZodEnum<["base", "head"]>;
679
+ line_start: z.ZodNumber;
680
+ line_end: z.ZodNumber;
681
+ commit: z.ZodString;
682
+ }, "strip", z.ZodTypeAny, {
683
+ path: string;
684
+ type: "code";
685
+ commit: string;
686
+ side: "head" | "base";
687
+ line_start: number;
688
+ line_end: number;
689
+ }, {
690
+ path: string;
691
+ type: "code";
692
+ commit: string;
693
+ side: "head" | "base";
694
+ line_start: number;
695
+ line_end: number;
696
+ }>, z.ZodObject<{
697
+ type: z.ZodLiteral<"structured">;
698
+ section: z.ZodOptional<z.ZodString>;
699
+ field: z.ZodOptional<z.ZodString>;
700
+ path: z.ZodOptional<z.ZodString>;
701
+ ref: z.ZodOptional<z.ZodString>;
702
+ }, "strip", z.ZodTypeAny, {
703
+ type: "structured";
704
+ path?: string | undefined;
705
+ ref?: string | undefined;
706
+ section?: string | undefined;
707
+ field?: string | undefined;
708
+ }, {
709
+ type: "structured";
710
+ path?: string | undefined;
711
+ ref?: string | undefined;
712
+ section?: string | undefined;
713
+ field?: string | undefined;
714
+ }>]>>;
715
+ entries: z.ZodDefault<z.ZodArray<z.ZodObject<{
716
+ _ulid: z.ZodString;
717
+ author: z.ZodString;
718
+ body: z.ZodString;
719
+ created_at: z.ZodUnion<[z.ZodString, z.ZodString]>;
720
+ }, "strip", z.ZodTypeAny, {
721
+ created_at: string;
722
+ _ulid: string;
723
+ author: string;
724
+ body: string;
725
+ }, {
726
+ created_at: string;
727
+ _ulid: string;
728
+ author: string;
729
+ body: string;
730
+ }>, "many">>;
731
+ resolved_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
732
+ resolved_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
733
+ }, "strip", z.ZodTypeAny, {
734
+ entries: {
735
+ created_at: string;
736
+ _ulid: string;
737
+ author: string;
738
+ body: string;
739
+ }[];
740
+ _ulid: string;
741
+ kind: "question" | "blocker" | "nit";
742
+ anchor?: {
743
+ path: string;
744
+ type: "code";
745
+ commit: string;
746
+ side: "head" | "base";
747
+ line_start: number;
748
+ line_end: number;
749
+ } | {
750
+ type: "structured";
751
+ path?: string | undefined;
752
+ ref?: string | undefined;
753
+ section?: string | undefined;
754
+ field?: string | undefined;
755
+ } | undefined;
756
+ resolved_at?: string | null | undefined;
757
+ resolved_by?: string | null | undefined;
758
+ }, {
759
+ _ulid: string;
760
+ anchor?: {
761
+ path: string;
762
+ type: "code";
763
+ commit: string;
764
+ side: "head" | "base";
765
+ line_start: number;
766
+ line_end: number;
767
+ } | {
768
+ type: "structured";
769
+ path?: string | undefined;
770
+ ref?: string | undefined;
771
+ section?: string | undefined;
772
+ field?: string | undefined;
773
+ } | undefined;
774
+ entries?: {
775
+ created_at: string;
776
+ _ulid: string;
777
+ author: string;
778
+ body: string;
779
+ }[] | undefined;
780
+ resolved_at?: string | null | undefined;
781
+ resolved_by?: string | null | undefined;
782
+ kind?: "question" | "blocker" | "nit" | undefined;
783
+ }>, "many">>;
784
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
785
+ name: z.ZodString;
786
+ status: z.ZodEnum<["pass", "fail", "running", "skipped"]>;
787
+ required: z.ZodDefault<z.ZodBoolean>;
788
+ runner: z.ZodOptional<z.ZodString>;
789
+ evidence: z.ZodOptional<z.ZodString>;
790
+ applies_to_version: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
791
+ type: z.ZodLiteral<"code_compare">;
792
+ base_commit: z.ZodString;
793
+ head_commit: z.ZodString;
794
+ }, "strip", z.ZodTypeAny, {
795
+ type: "code_compare";
796
+ base_commit: string;
797
+ head_commit: string;
798
+ }, {
799
+ type: "code_compare";
800
+ base_commit: string;
801
+ head_commit: string;
802
+ }>, z.ZodObject<{
803
+ type: z.ZodLiteral<"entity_version">;
804
+ content_hash: z.ZodString;
805
+ }, "strip", z.ZodTypeAny, {
806
+ type: "entity_version";
807
+ content_hash: string;
808
+ }, {
809
+ type: "entity_version";
810
+ content_hash: string;
811
+ }>]>;
812
+ created_at: z.ZodUnion<[z.ZodString, z.ZodString]>;
813
+ completed_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
814
+ }, "strip", z.ZodTypeAny, {
815
+ name: string;
816
+ status: "skipped" | "pass" | "fail" | "running";
817
+ created_at: string;
818
+ required: boolean;
819
+ applies_to_version: {
820
+ type: "code_compare";
821
+ base_commit: string;
822
+ head_commit: string;
823
+ } | {
824
+ type: "entity_version";
825
+ content_hash: string;
826
+ };
827
+ completed_at?: string | null | undefined;
828
+ runner?: string | undefined;
829
+ evidence?: string | undefined;
830
+ }, {
831
+ name: string;
832
+ status: "skipped" | "pass" | "fail" | "running";
833
+ created_at: string;
834
+ applies_to_version: {
835
+ type: "code_compare";
836
+ base_commit: string;
837
+ head_commit: string;
838
+ } | {
839
+ type: "entity_version";
840
+ content_hash: string;
841
+ };
842
+ required?: boolean | undefined;
843
+ completed_at?: string | null | undefined;
844
+ runner?: string | undefined;
845
+ evidence?: string | undefined;
846
+ }>, "many">>;
847
+ verdicts: z.ZodDefault<z.ZodArray<z.ZodObject<{
848
+ reviewer: z.ZodString;
849
+ role: z.ZodDefault<z.ZodString>;
850
+ decision: z.ZodEnum<["approve", "request_changes", "comment"]>;
851
+ applies_to_version: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
852
+ type: z.ZodLiteral<"code_compare">;
853
+ base_commit: z.ZodString;
854
+ head_commit: z.ZodString;
855
+ }, "strip", z.ZodTypeAny, {
856
+ type: "code_compare";
857
+ base_commit: string;
858
+ head_commit: string;
859
+ }, {
860
+ type: "code_compare";
861
+ base_commit: string;
862
+ head_commit: string;
863
+ }>, z.ZodObject<{
864
+ type: z.ZodLiteral<"entity_version">;
865
+ content_hash: z.ZodString;
866
+ }, "strip", z.ZodTypeAny, {
867
+ type: "entity_version";
868
+ content_hash: string;
869
+ }, {
870
+ type: "entity_version";
871
+ content_hash: string;
872
+ }>]>;
873
+ created_at: z.ZodUnion<[z.ZodString, z.ZodString]>;
874
+ }, "strip", z.ZodTypeAny, {
875
+ decision: "approve" | "request_changes" | "comment";
876
+ reviewer: string;
877
+ role: string;
878
+ created_at: string;
879
+ applies_to_version: {
880
+ type: "code_compare";
881
+ base_commit: string;
882
+ head_commit: string;
883
+ } | {
884
+ type: "entity_version";
885
+ content_hash: string;
886
+ };
887
+ }, {
888
+ decision: "approve" | "request_changes" | "comment";
889
+ reviewer: string;
890
+ created_at: string;
891
+ applies_to_version: {
892
+ type: "code_compare";
893
+ base_commit: string;
894
+ head_commit: string;
895
+ } | {
896
+ type: "entity_version";
897
+ content_hash: string;
898
+ };
899
+ role?: string | undefined;
900
+ }>, "many">>;
901
+ events: z.ZodDefault<z.ZodArray<z.ZodObject<{
902
+ _ulid: z.ZodString;
903
+ event_type: z.ZodEnum<["lifecycle_change", "verdict_submitted", "thread_created", "thread_replied", "thread_resolved", "thread_reopened", "check_added", "subject_refreshed"]>;
904
+ actor: z.ZodString;
905
+ timestamp: z.ZodUnion<[z.ZodString, z.ZodString]>;
906
+ payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
907
+ }, "strip", z.ZodTypeAny, {
908
+ _ulid: string;
909
+ event_type: "lifecycle_change" | "verdict_submitted" | "thread_created" | "thread_replied" | "thread_resolved" | "thread_reopened" | "check_added" | "subject_refreshed";
910
+ actor: string;
911
+ timestamp: string;
912
+ payload: Record<string, unknown>;
913
+ }, {
914
+ _ulid: string;
915
+ event_type: "lifecycle_change" | "verdict_submitted" | "thread_created" | "thread_replied" | "thread_resolved" | "thread_reopened" | "check_added" | "subject_refreshed";
916
+ actor: string;
917
+ timestamp: string;
918
+ payload?: Record<string, unknown> | undefined;
919
+ }>, "many">>;
920
+ notes: z.ZodDefault<z.ZodArray<z.ZodObject<{
921
+ _ulid: z.ZodString;
922
+ created_at: z.ZodUnion<[z.ZodString, z.ZodString]>;
923
+ author: z.ZodOptional<z.ZodString>;
924
+ content: z.ZodString;
925
+ supersedes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
926
+ }, "strip", z.ZodTypeAny, {
927
+ content: string;
928
+ created_at: string;
929
+ _ulid: string;
930
+ author?: string | undefined;
931
+ supersedes?: string | null | undefined;
932
+ }, {
933
+ content: string;
934
+ created_at: string;
935
+ _ulid: string;
936
+ author?: string | undefined;
937
+ supersedes?: string | null | undefined;
938
+ }>, "many">>;
939
+ external_links: z.ZodDefault<z.ZodArray<z.ZodObject<{
940
+ url: z.ZodString;
941
+ provider: z.ZodOptional<z.ZodString>;
942
+ external_id: z.ZodOptional<z.ZodString>;
943
+ label: z.ZodOptional<z.ZodString>;
944
+ }, "strip", z.ZodTypeAny, {
945
+ url: string;
946
+ external_id?: string | undefined;
947
+ provider?: string | undefined;
948
+ label?: string | undefined;
949
+ }, {
950
+ url: string;
951
+ external_id?: string | undefined;
952
+ provider?: string | undefined;
953
+ label?: string | undefined;
954
+ }>, "many">>;
955
+ examined_commit: z.ZodDefault<z.ZodNullable<z.ZodString>>;
956
+ created_at: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodString]>>;
957
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
958
+ }, "strip", z.ZodTypeAny, {
959
+ created_at: string;
960
+ lifecycle_state: "draft" | "closed" | "open" | "archived";
961
+ _ulid: string;
962
+ author: string;
963
+ threads: {
964
+ entries: {
965
+ created_at: string;
966
+ _ulid: string;
967
+ author: string;
968
+ body: string;
969
+ }[];
970
+ _ulid: string;
971
+ kind: "question" | "blocker" | "nit";
972
+ anchor?: {
973
+ path: string;
974
+ type: "code";
975
+ commit: string;
976
+ side: "head" | "base";
977
+ line_start: number;
978
+ line_end: number;
979
+ } | {
980
+ type: "structured";
981
+ path?: string | undefined;
982
+ ref?: string | undefined;
983
+ section?: string | undefined;
984
+ field?: string | undefined;
985
+ } | undefined;
986
+ resolved_at?: string | null | undefined;
987
+ resolved_by?: string | null | undefined;
988
+ }[];
989
+ notes: {
990
+ content: string;
991
+ created_at: string;
992
+ _ulid: string;
993
+ author?: string | undefined;
994
+ supersedes?: string | null | undefined;
995
+ }[];
996
+ slugs: string[];
997
+ title: string;
998
+ subject: {
999
+ type: "code";
1000
+ base_commit: string;
1001
+ head_commit: string;
1002
+ merge_base_commit?: string | undefined;
1003
+ base_branch?: string | undefined;
1004
+ head_branch?: string | undefined;
1005
+ } | {
1006
+ type: "plan";
1007
+ ref: string;
1008
+ shadow_commit: string;
1009
+ content_hash: string;
1010
+ } | {
1011
+ type: "task";
1012
+ ref: string;
1013
+ shadow_commit: string;
1014
+ content_hash: string;
1015
+ } | {
1016
+ type: "spec";
1017
+ ref: string;
1018
+ shadow_commit: string;
1019
+ content_hash: string;
1020
+ } | {
1021
+ type: "external";
1022
+ url: string;
1023
+ external_id?: string | undefined;
1024
+ provider?: string | undefined;
1025
+ };
1026
+ related_refs: string[];
1027
+ checks: {
1028
+ name: string;
1029
+ status: "skipped" | "pass" | "fail" | "running";
1030
+ created_at: string;
1031
+ required: boolean;
1032
+ applies_to_version: {
1033
+ type: "code_compare";
1034
+ base_commit: string;
1035
+ head_commit: string;
1036
+ } | {
1037
+ type: "entity_version";
1038
+ content_hash: string;
1039
+ };
1040
+ completed_at?: string | null | undefined;
1041
+ runner?: string | undefined;
1042
+ evidence?: string | undefined;
1043
+ }[];
1044
+ verdicts: {
1045
+ decision: "approve" | "request_changes" | "comment";
1046
+ reviewer: string;
1047
+ role: string;
1048
+ created_at: string;
1049
+ applies_to_version: {
1050
+ type: "code_compare";
1051
+ base_commit: string;
1052
+ head_commit: string;
1053
+ } | {
1054
+ type: "entity_version";
1055
+ content_hash: string;
1056
+ };
1057
+ }[];
1058
+ events: {
1059
+ _ulid: string;
1060
+ event_type: "lifecycle_change" | "verdict_submitted" | "thread_created" | "thread_replied" | "thread_resolved" | "thread_reopened" | "check_added" | "subject_refreshed";
1061
+ actor: string;
1062
+ timestamp: string;
1063
+ payload: Record<string, unknown>;
1064
+ }[];
1065
+ external_links: {
1066
+ url: string;
1067
+ external_id?: string | undefined;
1068
+ provider?: string | undefined;
1069
+ label?: string | undefined;
1070
+ }[];
1071
+ examined_commit: string | null;
1072
+ updated_at?: string | null | undefined;
1073
+ }, {
1074
+ _ulid: string;
1075
+ author: string;
1076
+ title: string;
1077
+ subject: {
1078
+ type: "code";
1079
+ base_commit: string;
1080
+ head_commit: string;
1081
+ merge_base_commit?: string | undefined;
1082
+ base_branch?: string | undefined;
1083
+ head_branch?: string | undefined;
1084
+ } | {
1085
+ type: "plan";
1086
+ ref: string;
1087
+ shadow_commit: string;
1088
+ content_hash: string;
1089
+ } | {
1090
+ type: "task";
1091
+ ref: string;
1092
+ shadow_commit: string;
1093
+ content_hash: string;
1094
+ } | {
1095
+ type: "spec";
1096
+ ref: string;
1097
+ shadow_commit: string;
1098
+ content_hash: string;
1099
+ } | {
1100
+ type: "external";
1101
+ url: string;
1102
+ external_id?: string | undefined;
1103
+ provider?: string | undefined;
1104
+ };
1105
+ updated_at?: string | null | undefined;
1106
+ created_at?: string | undefined;
1107
+ lifecycle_state?: "draft" | "closed" | "open" | "archived" | undefined;
1108
+ threads?: {
1109
+ _ulid: string;
1110
+ anchor?: {
1111
+ path: string;
1112
+ type: "code";
1113
+ commit: string;
1114
+ side: "head" | "base";
1115
+ line_start: number;
1116
+ line_end: number;
1117
+ } | {
1118
+ type: "structured";
1119
+ path?: string | undefined;
1120
+ ref?: string | undefined;
1121
+ section?: string | undefined;
1122
+ field?: string | undefined;
1123
+ } | undefined;
1124
+ entries?: {
1125
+ created_at: string;
1126
+ _ulid: string;
1127
+ author: string;
1128
+ body: string;
1129
+ }[] | undefined;
1130
+ resolved_at?: string | null | undefined;
1131
+ resolved_by?: string | null | undefined;
1132
+ kind?: "question" | "blocker" | "nit" | undefined;
1133
+ }[] | undefined;
1134
+ notes?: {
1135
+ content: string;
1136
+ created_at: string;
1137
+ _ulid: string;
1138
+ author?: string | undefined;
1139
+ supersedes?: string | null | undefined;
1140
+ }[] | undefined;
1141
+ slugs?: string[] | undefined;
1142
+ related_refs?: string[] | undefined;
1143
+ checks?: {
1144
+ name: string;
1145
+ status: "skipped" | "pass" | "fail" | "running";
1146
+ created_at: string;
1147
+ applies_to_version: {
1148
+ type: "code_compare";
1149
+ base_commit: string;
1150
+ head_commit: string;
1151
+ } | {
1152
+ type: "entity_version";
1153
+ content_hash: string;
1154
+ };
1155
+ required?: boolean | undefined;
1156
+ completed_at?: string | null | undefined;
1157
+ runner?: string | undefined;
1158
+ evidence?: string | undefined;
1159
+ }[] | undefined;
1160
+ verdicts?: {
1161
+ decision: "approve" | "request_changes" | "comment";
1162
+ reviewer: string;
1163
+ created_at: string;
1164
+ applies_to_version: {
1165
+ type: "code_compare";
1166
+ base_commit: string;
1167
+ head_commit: string;
1168
+ } | {
1169
+ type: "entity_version";
1170
+ content_hash: string;
1171
+ };
1172
+ role?: string | undefined;
1173
+ }[] | undefined;
1174
+ events?: {
1175
+ _ulid: string;
1176
+ event_type: "lifecycle_change" | "verdict_submitted" | "thread_created" | "thread_replied" | "thread_resolved" | "thread_reopened" | "check_added" | "subject_refreshed";
1177
+ actor: string;
1178
+ timestamp: string;
1179
+ payload?: Record<string, unknown> | undefined;
1180
+ }[] | undefined;
1181
+ external_links?: {
1182
+ url: string;
1183
+ external_id?: string | undefined;
1184
+ provider?: string | undefined;
1185
+ label?: string | undefined;
1186
+ }[] | undefined;
1187
+ examined_commit?: string | null | undefined;
1188
+ }>;
1189
+ /**
1190
+ * Review record input schema (for creating new reviews).
1191
+ * Most fields are optional - defaults will be applied.
1192
+ */
1193
+ export declare const ReviewRecordInputSchema: z.ZodObject<{
1194
+ _ulid: z.ZodOptional<z.ZodString>;
1195
+ slugs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1196
+ title: z.ZodString;
1197
+ lifecycle_state: z.ZodOptional<z.ZodEnum<["draft", "open", "closed", "archived"]>>;
1198
+ subject: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1199
+ type: z.ZodLiteral<"code">;
1200
+ base_commit: z.ZodString;
1201
+ head_commit: z.ZodString;
1202
+ merge_base_commit: z.ZodOptional<z.ZodString>;
1203
+ base_branch: z.ZodOptional<z.ZodString>;
1204
+ head_branch: z.ZodOptional<z.ZodString>;
1205
+ }, "strip", z.ZodTypeAny, {
1206
+ type: "code";
1207
+ base_commit: string;
1208
+ head_commit: string;
1209
+ merge_base_commit?: string | undefined;
1210
+ base_branch?: string | undefined;
1211
+ head_branch?: string | undefined;
1212
+ }, {
1213
+ type: "code";
1214
+ base_commit: string;
1215
+ head_commit: string;
1216
+ merge_base_commit?: string | undefined;
1217
+ base_branch?: string | undefined;
1218
+ head_branch?: string | undefined;
1219
+ }>, z.ZodObject<{
1220
+ type: z.ZodLiteral<"plan">;
1221
+ ref: z.ZodString;
1222
+ shadow_commit: z.ZodString;
1223
+ content_hash: z.ZodString;
1224
+ }, "strip", z.ZodTypeAny, {
1225
+ type: "plan";
1226
+ ref: string;
1227
+ shadow_commit: string;
1228
+ content_hash: string;
1229
+ }, {
1230
+ type: "plan";
1231
+ ref: string;
1232
+ shadow_commit: string;
1233
+ content_hash: string;
1234
+ }>, z.ZodObject<{
1235
+ type: z.ZodLiteral<"task">;
1236
+ ref: z.ZodString;
1237
+ shadow_commit: z.ZodString;
1238
+ content_hash: z.ZodString;
1239
+ }, "strip", z.ZodTypeAny, {
1240
+ type: "task";
1241
+ ref: string;
1242
+ shadow_commit: string;
1243
+ content_hash: string;
1244
+ }, {
1245
+ type: "task";
1246
+ ref: string;
1247
+ shadow_commit: string;
1248
+ content_hash: string;
1249
+ }>, z.ZodObject<{
1250
+ type: z.ZodLiteral<"spec">;
1251
+ ref: z.ZodString;
1252
+ shadow_commit: z.ZodString;
1253
+ content_hash: z.ZodString;
1254
+ }, "strip", z.ZodTypeAny, {
1255
+ type: "spec";
1256
+ ref: string;
1257
+ shadow_commit: string;
1258
+ content_hash: string;
1259
+ }, {
1260
+ type: "spec";
1261
+ ref: string;
1262
+ shadow_commit: string;
1263
+ content_hash: string;
1264
+ }>, z.ZodObject<{
1265
+ type: z.ZodLiteral<"external">;
1266
+ url: z.ZodString;
1267
+ external_id: z.ZodOptional<z.ZodString>;
1268
+ provider: z.ZodOptional<z.ZodString>;
1269
+ }, "strip", z.ZodTypeAny, {
1270
+ type: "external";
1271
+ url: string;
1272
+ external_id?: string | undefined;
1273
+ provider?: string | undefined;
1274
+ }, {
1275
+ type: "external";
1276
+ url: string;
1277
+ external_id?: string | undefined;
1278
+ provider?: string | undefined;
1279
+ }>]>;
1280
+ author: z.ZodString;
1281
+ related_refs: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
1282
+ threads: z.ZodOptional<z.ZodArray<z.ZodObject<{
1283
+ _ulid: z.ZodString;
1284
+ kind: z.ZodDefault<z.ZodEnum<["blocker", "question", "nit"]>>;
1285
+ anchor: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1286
+ type: z.ZodLiteral<"code">;
1287
+ path: z.ZodString;
1288
+ side: z.ZodEnum<["base", "head"]>;
1289
+ line_start: z.ZodNumber;
1290
+ line_end: z.ZodNumber;
1291
+ commit: z.ZodString;
1292
+ }, "strip", z.ZodTypeAny, {
1293
+ path: string;
1294
+ type: "code";
1295
+ commit: string;
1296
+ side: "head" | "base";
1297
+ line_start: number;
1298
+ line_end: number;
1299
+ }, {
1300
+ path: string;
1301
+ type: "code";
1302
+ commit: string;
1303
+ side: "head" | "base";
1304
+ line_start: number;
1305
+ line_end: number;
1306
+ }>, z.ZodObject<{
1307
+ type: z.ZodLiteral<"structured">;
1308
+ section: z.ZodOptional<z.ZodString>;
1309
+ field: z.ZodOptional<z.ZodString>;
1310
+ path: z.ZodOptional<z.ZodString>;
1311
+ ref: z.ZodOptional<z.ZodString>;
1312
+ }, "strip", z.ZodTypeAny, {
1313
+ type: "structured";
1314
+ path?: string | undefined;
1315
+ ref?: string | undefined;
1316
+ section?: string | undefined;
1317
+ field?: string | undefined;
1318
+ }, {
1319
+ type: "structured";
1320
+ path?: string | undefined;
1321
+ ref?: string | undefined;
1322
+ section?: string | undefined;
1323
+ field?: string | undefined;
1324
+ }>]>>;
1325
+ entries: z.ZodDefault<z.ZodArray<z.ZodObject<{
1326
+ _ulid: z.ZodString;
1327
+ author: z.ZodString;
1328
+ body: z.ZodString;
1329
+ created_at: z.ZodUnion<[z.ZodString, z.ZodString]>;
1330
+ }, "strip", z.ZodTypeAny, {
1331
+ created_at: string;
1332
+ _ulid: string;
1333
+ author: string;
1334
+ body: string;
1335
+ }, {
1336
+ created_at: string;
1337
+ _ulid: string;
1338
+ author: string;
1339
+ body: string;
1340
+ }>, "many">>;
1341
+ resolved_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
1342
+ resolved_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1343
+ }, "strip", z.ZodTypeAny, {
1344
+ entries: {
1345
+ created_at: string;
1346
+ _ulid: string;
1347
+ author: string;
1348
+ body: string;
1349
+ }[];
1350
+ _ulid: string;
1351
+ kind: "question" | "blocker" | "nit";
1352
+ anchor?: {
1353
+ path: string;
1354
+ type: "code";
1355
+ commit: string;
1356
+ side: "head" | "base";
1357
+ line_start: number;
1358
+ line_end: number;
1359
+ } | {
1360
+ type: "structured";
1361
+ path?: string | undefined;
1362
+ ref?: string | undefined;
1363
+ section?: string | undefined;
1364
+ field?: string | undefined;
1365
+ } | undefined;
1366
+ resolved_at?: string | null | undefined;
1367
+ resolved_by?: string | null | undefined;
1368
+ }, {
1369
+ _ulid: string;
1370
+ anchor?: {
1371
+ path: string;
1372
+ type: "code";
1373
+ commit: string;
1374
+ side: "head" | "base";
1375
+ line_start: number;
1376
+ line_end: number;
1377
+ } | {
1378
+ type: "structured";
1379
+ path?: string | undefined;
1380
+ ref?: string | undefined;
1381
+ section?: string | undefined;
1382
+ field?: string | undefined;
1383
+ } | undefined;
1384
+ entries?: {
1385
+ created_at: string;
1386
+ _ulid: string;
1387
+ author: string;
1388
+ body: string;
1389
+ }[] | undefined;
1390
+ resolved_at?: string | null | undefined;
1391
+ resolved_by?: string | null | undefined;
1392
+ kind?: "question" | "blocker" | "nit" | undefined;
1393
+ }>, "many">>;
1394
+ checks: z.ZodOptional<z.ZodArray<z.ZodObject<{
1395
+ name: z.ZodString;
1396
+ status: z.ZodEnum<["pass", "fail", "running", "skipped"]>;
1397
+ required: z.ZodDefault<z.ZodBoolean>;
1398
+ runner: z.ZodOptional<z.ZodString>;
1399
+ evidence: z.ZodOptional<z.ZodString>;
1400
+ applies_to_version: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1401
+ type: z.ZodLiteral<"code_compare">;
1402
+ base_commit: z.ZodString;
1403
+ head_commit: z.ZodString;
1404
+ }, "strip", z.ZodTypeAny, {
1405
+ type: "code_compare";
1406
+ base_commit: string;
1407
+ head_commit: string;
1408
+ }, {
1409
+ type: "code_compare";
1410
+ base_commit: string;
1411
+ head_commit: string;
1412
+ }>, z.ZodObject<{
1413
+ type: z.ZodLiteral<"entity_version">;
1414
+ content_hash: z.ZodString;
1415
+ }, "strip", z.ZodTypeAny, {
1416
+ type: "entity_version";
1417
+ content_hash: string;
1418
+ }, {
1419
+ type: "entity_version";
1420
+ content_hash: string;
1421
+ }>]>;
1422
+ created_at: z.ZodUnion<[z.ZodString, z.ZodString]>;
1423
+ completed_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
1424
+ }, "strip", z.ZodTypeAny, {
1425
+ name: string;
1426
+ status: "skipped" | "pass" | "fail" | "running";
1427
+ created_at: string;
1428
+ required: boolean;
1429
+ applies_to_version: {
1430
+ type: "code_compare";
1431
+ base_commit: string;
1432
+ head_commit: string;
1433
+ } | {
1434
+ type: "entity_version";
1435
+ content_hash: string;
1436
+ };
1437
+ completed_at?: string | null | undefined;
1438
+ runner?: string | undefined;
1439
+ evidence?: string | undefined;
1440
+ }, {
1441
+ name: string;
1442
+ status: "skipped" | "pass" | "fail" | "running";
1443
+ created_at: string;
1444
+ applies_to_version: {
1445
+ type: "code_compare";
1446
+ base_commit: string;
1447
+ head_commit: string;
1448
+ } | {
1449
+ type: "entity_version";
1450
+ content_hash: string;
1451
+ };
1452
+ required?: boolean | undefined;
1453
+ completed_at?: string | null | undefined;
1454
+ runner?: string | undefined;
1455
+ evidence?: string | undefined;
1456
+ }>, "many">>;
1457
+ verdicts: z.ZodOptional<z.ZodArray<z.ZodObject<{
1458
+ reviewer: z.ZodString;
1459
+ role: z.ZodDefault<z.ZodString>;
1460
+ decision: z.ZodEnum<["approve", "request_changes", "comment"]>;
1461
+ applies_to_version: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1462
+ type: z.ZodLiteral<"code_compare">;
1463
+ base_commit: z.ZodString;
1464
+ head_commit: z.ZodString;
1465
+ }, "strip", z.ZodTypeAny, {
1466
+ type: "code_compare";
1467
+ base_commit: string;
1468
+ head_commit: string;
1469
+ }, {
1470
+ type: "code_compare";
1471
+ base_commit: string;
1472
+ head_commit: string;
1473
+ }>, z.ZodObject<{
1474
+ type: z.ZodLiteral<"entity_version">;
1475
+ content_hash: z.ZodString;
1476
+ }, "strip", z.ZodTypeAny, {
1477
+ type: "entity_version";
1478
+ content_hash: string;
1479
+ }, {
1480
+ type: "entity_version";
1481
+ content_hash: string;
1482
+ }>]>;
1483
+ created_at: z.ZodUnion<[z.ZodString, z.ZodString]>;
1484
+ }, "strip", z.ZodTypeAny, {
1485
+ decision: "approve" | "request_changes" | "comment";
1486
+ reviewer: string;
1487
+ role: string;
1488
+ created_at: string;
1489
+ applies_to_version: {
1490
+ type: "code_compare";
1491
+ base_commit: string;
1492
+ head_commit: string;
1493
+ } | {
1494
+ type: "entity_version";
1495
+ content_hash: string;
1496
+ };
1497
+ }, {
1498
+ decision: "approve" | "request_changes" | "comment";
1499
+ reviewer: string;
1500
+ created_at: string;
1501
+ applies_to_version: {
1502
+ type: "code_compare";
1503
+ base_commit: string;
1504
+ head_commit: string;
1505
+ } | {
1506
+ type: "entity_version";
1507
+ content_hash: string;
1508
+ };
1509
+ role?: string | undefined;
1510
+ }>, "many">>;
1511
+ events: z.ZodOptional<z.ZodArray<z.ZodObject<{
1512
+ _ulid: z.ZodString;
1513
+ event_type: z.ZodEnum<["lifecycle_change", "verdict_submitted", "thread_created", "thread_replied", "thread_resolved", "thread_reopened", "check_added", "subject_refreshed"]>;
1514
+ actor: z.ZodString;
1515
+ timestamp: z.ZodUnion<[z.ZodString, z.ZodString]>;
1516
+ payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1517
+ }, "strip", z.ZodTypeAny, {
1518
+ _ulid: string;
1519
+ event_type: "lifecycle_change" | "verdict_submitted" | "thread_created" | "thread_replied" | "thread_resolved" | "thread_reopened" | "check_added" | "subject_refreshed";
1520
+ actor: string;
1521
+ timestamp: string;
1522
+ payload: Record<string, unknown>;
1523
+ }, {
1524
+ _ulid: string;
1525
+ event_type: "lifecycle_change" | "verdict_submitted" | "thread_created" | "thread_replied" | "thread_resolved" | "thread_reopened" | "check_added" | "subject_refreshed";
1526
+ actor: string;
1527
+ timestamp: string;
1528
+ payload?: Record<string, unknown> | undefined;
1529
+ }>, "many">>;
1530
+ notes: z.ZodOptional<z.ZodArray<z.ZodObject<{
1531
+ _ulid: z.ZodString;
1532
+ created_at: z.ZodUnion<[z.ZodString, z.ZodString]>;
1533
+ author: z.ZodOptional<z.ZodString>;
1534
+ content: z.ZodString;
1535
+ supersedes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1536
+ }, "strip", z.ZodTypeAny, {
1537
+ content: string;
1538
+ created_at: string;
1539
+ _ulid: string;
1540
+ author?: string | undefined;
1541
+ supersedes?: string | null | undefined;
1542
+ }, {
1543
+ content: string;
1544
+ created_at: string;
1545
+ _ulid: string;
1546
+ author?: string | undefined;
1547
+ supersedes?: string | null | undefined;
1548
+ }>, "many">>;
1549
+ external_links: z.ZodOptional<z.ZodArray<z.ZodObject<{
1550
+ url: z.ZodString;
1551
+ provider: z.ZodOptional<z.ZodString>;
1552
+ external_id: z.ZodOptional<z.ZodString>;
1553
+ label: z.ZodOptional<z.ZodString>;
1554
+ }, "strip", z.ZodTypeAny, {
1555
+ url: string;
1556
+ external_id?: string | undefined;
1557
+ provider?: string | undefined;
1558
+ label?: string | undefined;
1559
+ }, {
1560
+ url: string;
1561
+ external_id?: string | undefined;
1562
+ provider?: string | undefined;
1563
+ label?: string | undefined;
1564
+ }>, "many">>;
1565
+ examined_commit: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1566
+ created_at: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodString]>>;
1567
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
1568
+ }, "strip", z.ZodTypeAny, {
1569
+ author: string;
1570
+ title: string;
1571
+ subject: {
1572
+ type: "code";
1573
+ base_commit: string;
1574
+ head_commit: string;
1575
+ merge_base_commit?: string | undefined;
1576
+ base_branch?: string | undefined;
1577
+ head_branch?: string | undefined;
1578
+ } | {
1579
+ type: "plan";
1580
+ ref: string;
1581
+ shadow_commit: string;
1582
+ content_hash: string;
1583
+ } | {
1584
+ type: "task";
1585
+ ref: string;
1586
+ shadow_commit: string;
1587
+ content_hash: string;
1588
+ } | {
1589
+ type: "spec";
1590
+ ref: string;
1591
+ shadow_commit: string;
1592
+ content_hash: string;
1593
+ } | {
1594
+ type: "external";
1595
+ url: string;
1596
+ external_id?: string | undefined;
1597
+ provider?: string | undefined;
1598
+ };
1599
+ updated_at?: string | null | undefined;
1600
+ created_at?: string | undefined;
1601
+ lifecycle_state?: "draft" | "closed" | "open" | "archived" | undefined;
1602
+ _ulid?: string | undefined;
1603
+ threads?: {
1604
+ entries: {
1605
+ created_at: string;
1606
+ _ulid: string;
1607
+ author: string;
1608
+ body: string;
1609
+ }[];
1610
+ _ulid: string;
1611
+ kind: "question" | "blocker" | "nit";
1612
+ anchor?: {
1613
+ path: string;
1614
+ type: "code";
1615
+ commit: string;
1616
+ side: "head" | "base";
1617
+ line_start: number;
1618
+ line_end: number;
1619
+ } | {
1620
+ type: "structured";
1621
+ path?: string | undefined;
1622
+ ref?: string | undefined;
1623
+ section?: string | undefined;
1624
+ field?: string | undefined;
1625
+ } | undefined;
1626
+ resolved_at?: string | null | undefined;
1627
+ resolved_by?: string | null | undefined;
1628
+ }[] | undefined;
1629
+ notes?: {
1630
+ content: string;
1631
+ created_at: string;
1632
+ _ulid: string;
1633
+ author?: string | undefined;
1634
+ supersedes?: string | null | undefined;
1635
+ }[] | undefined;
1636
+ slugs?: string[] | undefined;
1637
+ related_refs?: string[] | undefined;
1638
+ checks?: {
1639
+ name: string;
1640
+ status: "skipped" | "pass" | "fail" | "running";
1641
+ created_at: string;
1642
+ required: boolean;
1643
+ applies_to_version: {
1644
+ type: "code_compare";
1645
+ base_commit: string;
1646
+ head_commit: string;
1647
+ } | {
1648
+ type: "entity_version";
1649
+ content_hash: string;
1650
+ };
1651
+ completed_at?: string | null | undefined;
1652
+ runner?: string | undefined;
1653
+ evidence?: string | undefined;
1654
+ }[] | undefined;
1655
+ verdicts?: {
1656
+ decision: "approve" | "request_changes" | "comment";
1657
+ reviewer: string;
1658
+ role: string;
1659
+ created_at: string;
1660
+ applies_to_version: {
1661
+ type: "code_compare";
1662
+ base_commit: string;
1663
+ head_commit: string;
1664
+ } | {
1665
+ type: "entity_version";
1666
+ content_hash: string;
1667
+ };
1668
+ }[] | undefined;
1669
+ events?: {
1670
+ _ulid: string;
1671
+ event_type: "lifecycle_change" | "verdict_submitted" | "thread_created" | "thread_replied" | "thread_resolved" | "thread_reopened" | "check_added" | "subject_refreshed";
1672
+ actor: string;
1673
+ timestamp: string;
1674
+ payload: Record<string, unknown>;
1675
+ }[] | undefined;
1676
+ external_links?: {
1677
+ url: string;
1678
+ external_id?: string | undefined;
1679
+ provider?: string | undefined;
1680
+ label?: string | undefined;
1681
+ }[] | undefined;
1682
+ examined_commit?: string | null | undefined;
1683
+ }, {
1684
+ author: string;
1685
+ title: string;
1686
+ subject: {
1687
+ type: "code";
1688
+ base_commit: string;
1689
+ head_commit: string;
1690
+ merge_base_commit?: string | undefined;
1691
+ base_branch?: string | undefined;
1692
+ head_branch?: string | undefined;
1693
+ } | {
1694
+ type: "plan";
1695
+ ref: string;
1696
+ shadow_commit: string;
1697
+ content_hash: string;
1698
+ } | {
1699
+ type: "task";
1700
+ ref: string;
1701
+ shadow_commit: string;
1702
+ content_hash: string;
1703
+ } | {
1704
+ type: "spec";
1705
+ ref: string;
1706
+ shadow_commit: string;
1707
+ content_hash: string;
1708
+ } | {
1709
+ type: "external";
1710
+ url: string;
1711
+ external_id?: string | undefined;
1712
+ provider?: string | undefined;
1713
+ };
1714
+ updated_at?: string | null | undefined;
1715
+ created_at?: string | undefined;
1716
+ lifecycle_state?: "draft" | "closed" | "open" | "archived" | undefined;
1717
+ _ulid?: string | undefined;
1718
+ threads?: {
1719
+ _ulid: string;
1720
+ anchor?: {
1721
+ path: string;
1722
+ type: "code";
1723
+ commit: string;
1724
+ side: "head" | "base";
1725
+ line_start: number;
1726
+ line_end: number;
1727
+ } | {
1728
+ type: "structured";
1729
+ path?: string | undefined;
1730
+ ref?: string | undefined;
1731
+ section?: string | undefined;
1732
+ field?: string | undefined;
1733
+ } | undefined;
1734
+ entries?: {
1735
+ created_at: string;
1736
+ _ulid: string;
1737
+ author: string;
1738
+ body: string;
1739
+ }[] | undefined;
1740
+ resolved_at?: string | null | undefined;
1741
+ resolved_by?: string | null | undefined;
1742
+ kind?: "question" | "blocker" | "nit" | undefined;
1743
+ }[] | undefined;
1744
+ notes?: {
1745
+ content: string;
1746
+ created_at: string;
1747
+ _ulid: string;
1748
+ author?: string | undefined;
1749
+ supersedes?: string | null | undefined;
1750
+ }[] | undefined;
1751
+ slugs?: string[] | undefined;
1752
+ related_refs?: string[] | undefined;
1753
+ checks?: {
1754
+ name: string;
1755
+ status: "skipped" | "pass" | "fail" | "running";
1756
+ created_at: string;
1757
+ applies_to_version: {
1758
+ type: "code_compare";
1759
+ base_commit: string;
1760
+ head_commit: string;
1761
+ } | {
1762
+ type: "entity_version";
1763
+ content_hash: string;
1764
+ };
1765
+ required?: boolean | undefined;
1766
+ completed_at?: string | null | undefined;
1767
+ runner?: string | undefined;
1768
+ evidence?: string | undefined;
1769
+ }[] | undefined;
1770
+ verdicts?: {
1771
+ decision: "approve" | "request_changes" | "comment";
1772
+ reviewer: string;
1773
+ created_at: string;
1774
+ applies_to_version: {
1775
+ type: "code_compare";
1776
+ base_commit: string;
1777
+ head_commit: string;
1778
+ } | {
1779
+ type: "entity_version";
1780
+ content_hash: string;
1781
+ };
1782
+ role?: string | undefined;
1783
+ }[] | undefined;
1784
+ events?: {
1785
+ _ulid: string;
1786
+ event_type: "lifecycle_change" | "verdict_submitted" | "thread_created" | "thread_replied" | "thread_resolved" | "thread_reopened" | "check_added" | "subject_refreshed";
1787
+ actor: string;
1788
+ timestamp: string;
1789
+ payload?: Record<string, unknown> | undefined;
1790
+ }[] | undefined;
1791
+ external_links?: {
1792
+ url: string;
1793
+ external_id?: string | undefined;
1794
+ provider?: string | undefined;
1795
+ label?: string | undefined;
1796
+ }[] | undefined;
1797
+ examined_commit?: string | null | undefined;
1798
+ }>;
1799
+ /**
1800
+ * Reviews file schema (collection of reviews).
1801
+ * Stored in project.reviews.yaml.
1802
+ */
1803
+ export declare const ReviewRecordsFileSchema: z.ZodObject<{
1804
+ kynetic_reviews: z.ZodDefault<z.ZodString>;
1805
+ reviews: z.ZodArray<z.ZodObject<{
1806
+ _ulid: z.ZodString;
1807
+ slugs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1808
+ title: z.ZodString;
1809
+ lifecycle_state: z.ZodDefault<z.ZodEnum<["draft", "open", "closed", "archived"]>>;
1810
+ subject: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1811
+ type: z.ZodLiteral<"code">;
1812
+ base_commit: z.ZodString;
1813
+ head_commit: z.ZodString;
1814
+ merge_base_commit: z.ZodOptional<z.ZodString>;
1815
+ base_branch: z.ZodOptional<z.ZodString>;
1816
+ head_branch: z.ZodOptional<z.ZodString>;
1817
+ }, "strip", z.ZodTypeAny, {
1818
+ type: "code";
1819
+ base_commit: string;
1820
+ head_commit: string;
1821
+ merge_base_commit?: string | undefined;
1822
+ base_branch?: string | undefined;
1823
+ head_branch?: string | undefined;
1824
+ }, {
1825
+ type: "code";
1826
+ base_commit: string;
1827
+ head_commit: string;
1828
+ merge_base_commit?: string | undefined;
1829
+ base_branch?: string | undefined;
1830
+ head_branch?: string | undefined;
1831
+ }>, z.ZodObject<{
1832
+ type: z.ZodLiteral<"plan">;
1833
+ ref: z.ZodString;
1834
+ shadow_commit: z.ZodString;
1835
+ content_hash: z.ZodString;
1836
+ }, "strip", z.ZodTypeAny, {
1837
+ type: "plan";
1838
+ ref: string;
1839
+ shadow_commit: string;
1840
+ content_hash: string;
1841
+ }, {
1842
+ type: "plan";
1843
+ ref: string;
1844
+ shadow_commit: string;
1845
+ content_hash: string;
1846
+ }>, z.ZodObject<{
1847
+ type: z.ZodLiteral<"task">;
1848
+ ref: z.ZodString;
1849
+ shadow_commit: z.ZodString;
1850
+ content_hash: z.ZodString;
1851
+ }, "strip", z.ZodTypeAny, {
1852
+ type: "task";
1853
+ ref: string;
1854
+ shadow_commit: string;
1855
+ content_hash: string;
1856
+ }, {
1857
+ type: "task";
1858
+ ref: string;
1859
+ shadow_commit: string;
1860
+ content_hash: string;
1861
+ }>, z.ZodObject<{
1862
+ type: z.ZodLiteral<"spec">;
1863
+ ref: z.ZodString;
1864
+ shadow_commit: z.ZodString;
1865
+ content_hash: z.ZodString;
1866
+ }, "strip", z.ZodTypeAny, {
1867
+ type: "spec";
1868
+ ref: string;
1869
+ shadow_commit: string;
1870
+ content_hash: string;
1871
+ }, {
1872
+ type: "spec";
1873
+ ref: string;
1874
+ shadow_commit: string;
1875
+ content_hash: string;
1876
+ }>, z.ZodObject<{
1877
+ type: z.ZodLiteral<"external">;
1878
+ url: z.ZodString;
1879
+ external_id: z.ZodOptional<z.ZodString>;
1880
+ provider: z.ZodOptional<z.ZodString>;
1881
+ }, "strip", z.ZodTypeAny, {
1882
+ type: "external";
1883
+ url: string;
1884
+ external_id?: string | undefined;
1885
+ provider?: string | undefined;
1886
+ }, {
1887
+ type: "external";
1888
+ url: string;
1889
+ external_id?: string | undefined;
1890
+ provider?: string | undefined;
1891
+ }>]>;
1892
+ author: z.ZodString;
1893
+ related_refs: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
1894
+ threads: z.ZodDefault<z.ZodArray<z.ZodObject<{
1895
+ _ulid: z.ZodString;
1896
+ kind: z.ZodDefault<z.ZodEnum<["blocker", "question", "nit"]>>;
1897
+ anchor: z.ZodOptional<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
1898
+ type: z.ZodLiteral<"code">;
1899
+ path: z.ZodString;
1900
+ side: z.ZodEnum<["base", "head"]>;
1901
+ line_start: z.ZodNumber;
1902
+ line_end: z.ZodNumber;
1903
+ commit: z.ZodString;
1904
+ }, "strip", z.ZodTypeAny, {
1905
+ path: string;
1906
+ type: "code";
1907
+ commit: string;
1908
+ side: "head" | "base";
1909
+ line_start: number;
1910
+ line_end: number;
1911
+ }, {
1912
+ path: string;
1913
+ type: "code";
1914
+ commit: string;
1915
+ side: "head" | "base";
1916
+ line_start: number;
1917
+ line_end: number;
1918
+ }>, z.ZodObject<{
1919
+ type: z.ZodLiteral<"structured">;
1920
+ section: z.ZodOptional<z.ZodString>;
1921
+ field: z.ZodOptional<z.ZodString>;
1922
+ path: z.ZodOptional<z.ZodString>;
1923
+ ref: z.ZodOptional<z.ZodString>;
1924
+ }, "strip", z.ZodTypeAny, {
1925
+ type: "structured";
1926
+ path?: string | undefined;
1927
+ ref?: string | undefined;
1928
+ section?: string | undefined;
1929
+ field?: string | undefined;
1930
+ }, {
1931
+ type: "structured";
1932
+ path?: string | undefined;
1933
+ ref?: string | undefined;
1934
+ section?: string | undefined;
1935
+ field?: string | undefined;
1936
+ }>]>>;
1937
+ entries: z.ZodDefault<z.ZodArray<z.ZodObject<{
1938
+ _ulid: z.ZodString;
1939
+ author: z.ZodString;
1940
+ body: z.ZodString;
1941
+ created_at: z.ZodUnion<[z.ZodString, z.ZodString]>;
1942
+ }, "strip", z.ZodTypeAny, {
1943
+ created_at: string;
1944
+ _ulid: string;
1945
+ author: string;
1946
+ body: string;
1947
+ }, {
1948
+ created_at: string;
1949
+ _ulid: string;
1950
+ author: string;
1951
+ body: string;
1952
+ }>, "many">>;
1953
+ resolved_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
1954
+ resolved_by: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1955
+ }, "strip", z.ZodTypeAny, {
1956
+ entries: {
1957
+ created_at: string;
1958
+ _ulid: string;
1959
+ author: string;
1960
+ body: string;
1961
+ }[];
1962
+ _ulid: string;
1963
+ kind: "question" | "blocker" | "nit";
1964
+ anchor?: {
1965
+ path: string;
1966
+ type: "code";
1967
+ commit: string;
1968
+ side: "head" | "base";
1969
+ line_start: number;
1970
+ line_end: number;
1971
+ } | {
1972
+ type: "structured";
1973
+ path?: string | undefined;
1974
+ ref?: string | undefined;
1975
+ section?: string | undefined;
1976
+ field?: string | undefined;
1977
+ } | undefined;
1978
+ resolved_at?: string | null | undefined;
1979
+ resolved_by?: string | null | undefined;
1980
+ }, {
1981
+ _ulid: string;
1982
+ anchor?: {
1983
+ path: string;
1984
+ type: "code";
1985
+ commit: string;
1986
+ side: "head" | "base";
1987
+ line_start: number;
1988
+ line_end: number;
1989
+ } | {
1990
+ type: "structured";
1991
+ path?: string | undefined;
1992
+ ref?: string | undefined;
1993
+ section?: string | undefined;
1994
+ field?: string | undefined;
1995
+ } | undefined;
1996
+ entries?: {
1997
+ created_at: string;
1998
+ _ulid: string;
1999
+ author: string;
2000
+ body: string;
2001
+ }[] | undefined;
2002
+ resolved_at?: string | null | undefined;
2003
+ resolved_by?: string | null | undefined;
2004
+ kind?: "question" | "blocker" | "nit" | undefined;
2005
+ }>, "many">>;
2006
+ checks: z.ZodDefault<z.ZodArray<z.ZodObject<{
2007
+ name: z.ZodString;
2008
+ status: z.ZodEnum<["pass", "fail", "running", "skipped"]>;
2009
+ required: z.ZodDefault<z.ZodBoolean>;
2010
+ runner: z.ZodOptional<z.ZodString>;
2011
+ evidence: z.ZodOptional<z.ZodString>;
2012
+ applies_to_version: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2013
+ type: z.ZodLiteral<"code_compare">;
2014
+ base_commit: z.ZodString;
2015
+ head_commit: z.ZodString;
2016
+ }, "strip", z.ZodTypeAny, {
2017
+ type: "code_compare";
2018
+ base_commit: string;
2019
+ head_commit: string;
2020
+ }, {
2021
+ type: "code_compare";
2022
+ base_commit: string;
2023
+ head_commit: string;
2024
+ }>, z.ZodObject<{
2025
+ type: z.ZodLiteral<"entity_version">;
2026
+ content_hash: z.ZodString;
2027
+ }, "strip", z.ZodTypeAny, {
2028
+ type: "entity_version";
2029
+ content_hash: string;
2030
+ }, {
2031
+ type: "entity_version";
2032
+ content_hash: string;
2033
+ }>]>;
2034
+ created_at: z.ZodUnion<[z.ZodString, z.ZodString]>;
2035
+ completed_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
2036
+ }, "strip", z.ZodTypeAny, {
2037
+ name: string;
2038
+ status: "skipped" | "pass" | "fail" | "running";
2039
+ created_at: string;
2040
+ required: boolean;
2041
+ applies_to_version: {
2042
+ type: "code_compare";
2043
+ base_commit: string;
2044
+ head_commit: string;
2045
+ } | {
2046
+ type: "entity_version";
2047
+ content_hash: string;
2048
+ };
2049
+ completed_at?: string | null | undefined;
2050
+ runner?: string | undefined;
2051
+ evidence?: string | undefined;
2052
+ }, {
2053
+ name: string;
2054
+ status: "skipped" | "pass" | "fail" | "running";
2055
+ created_at: string;
2056
+ applies_to_version: {
2057
+ type: "code_compare";
2058
+ base_commit: string;
2059
+ head_commit: string;
2060
+ } | {
2061
+ type: "entity_version";
2062
+ content_hash: string;
2063
+ };
2064
+ required?: boolean | undefined;
2065
+ completed_at?: string | null | undefined;
2066
+ runner?: string | undefined;
2067
+ evidence?: string | undefined;
2068
+ }>, "many">>;
2069
+ verdicts: z.ZodDefault<z.ZodArray<z.ZodObject<{
2070
+ reviewer: z.ZodString;
2071
+ role: z.ZodDefault<z.ZodString>;
2072
+ decision: z.ZodEnum<["approve", "request_changes", "comment"]>;
2073
+ applies_to_version: z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
2074
+ type: z.ZodLiteral<"code_compare">;
2075
+ base_commit: z.ZodString;
2076
+ head_commit: z.ZodString;
2077
+ }, "strip", z.ZodTypeAny, {
2078
+ type: "code_compare";
2079
+ base_commit: string;
2080
+ head_commit: string;
2081
+ }, {
2082
+ type: "code_compare";
2083
+ base_commit: string;
2084
+ head_commit: string;
2085
+ }>, z.ZodObject<{
2086
+ type: z.ZodLiteral<"entity_version">;
2087
+ content_hash: z.ZodString;
2088
+ }, "strip", z.ZodTypeAny, {
2089
+ type: "entity_version";
2090
+ content_hash: string;
2091
+ }, {
2092
+ type: "entity_version";
2093
+ content_hash: string;
2094
+ }>]>;
2095
+ created_at: z.ZodUnion<[z.ZodString, z.ZodString]>;
2096
+ }, "strip", z.ZodTypeAny, {
2097
+ decision: "approve" | "request_changes" | "comment";
2098
+ reviewer: string;
2099
+ role: string;
2100
+ created_at: string;
2101
+ applies_to_version: {
2102
+ type: "code_compare";
2103
+ base_commit: string;
2104
+ head_commit: string;
2105
+ } | {
2106
+ type: "entity_version";
2107
+ content_hash: string;
2108
+ };
2109
+ }, {
2110
+ decision: "approve" | "request_changes" | "comment";
2111
+ reviewer: string;
2112
+ created_at: string;
2113
+ applies_to_version: {
2114
+ type: "code_compare";
2115
+ base_commit: string;
2116
+ head_commit: string;
2117
+ } | {
2118
+ type: "entity_version";
2119
+ content_hash: string;
2120
+ };
2121
+ role?: string | undefined;
2122
+ }>, "many">>;
2123
+ events: z.ZodDefault<z.ZodArray<z.ZodObject<{
2124
+ _ulid: z.ZodString;
2125
+ event_type: z.ZodEnum<["lifecycle_change", "verdict_submitted", "thread_created", "thread_replied", "thread_resolved", "thread_reopened", "check_added", "subject_refreshed"]>;
2126
+ actor: z.ZodString;
2127
+ timestamp: z.ZodUnion<[z.ZodString, z.ZodString]>;
2128
+ payload: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
2129
+ }, "strip", z.ZodTypeAny, {
2130
+ _ulid: string;
2131
+ event_type: "lifecycle_change" | "verdict_submitted" | "thread_created" | "thread_replied" | "thread_resolved" | "thread_reopened" | "check_added" | "subject_refreshed";
2132
+ actor: string;
2133
+ timestamp: string;
2134
+ payload: Record<string, unknown>;
2135
+ }, {
2136
+ _ulid: string;
2137
+ event_type: "lifecycle_change" | "verdict_submitted" | "thread_created" | "thread_replied" | "thread_resolved" | "thread_reopened" | "check_added" | "subject_refreshed";
2138
+ actor: string;
2139
+ timestamp: string;
2140
+ payload?: Record<string, unknown> | undefined;
2141
+ }>, "many">>;
2142
+ notes: z.ZodDefault<z.ZodArray<z.ZodObject<{
2143
+ _ulid: z.ZodString;
2144
+ created_at: z.ZodUnion<[z.ZodString, z.ZodString]>;
2145
+ author: z.ZodOptional<z.ZodString>;
2146
+ content: z.ZodString;
2147
+ supersedes: z.ZodOptional<z.ZodNullable<z.ZodString>>;
2148
+ }, "strip", z.ZodTypeAny, {
2149
+ content: string;
2150
+ created_at: string;
2151
+ _ulid: string;
2152
+ author?: string | undefined;
2153
+ supersedes?: string | null | undefined;
2154
+ }, {
2155
+ content: string;
2156
+ created_at: string;
2157
+ _ulid: string;
2158
+ author?: string | undefined;
2159
+ supersedes?: string | null | undefined;
2160
+ }>, "many">>;
2161
+ external_links: z.ZodDefault<z.ZodArray<z.ZodObject<{
2162
+ url: z.ZodString;
2163
+ provider: z.ZodOptional<z.ZodString>;
2164
+ external_id: z.ZodOptional<z.ZodString>;
2165
+ label: z.ZodOptional<z.ZodString>;
2166
+ }, "strip", z.ZodTypeAny, {
2167
+ url: string;
2168
+ external_id?: string | undefined;
2169
+ provider?: string | undefined;
2170
+ label?: string | undefined;
2171
+ }, {
2172
+ url: string;
2173
+ external_id?: string | undefined;
2174
+ provider?: string | undefined;
2175
+ label?: string | undefined;
2176
+ }>, "many">>;
2177
+ examined_commit: z.ZodDefault<z.ZodNullable<z.ZodString>>;
2178
+ created_at: z.ZodDefault<z.ZodUnion<[z.ZodString, z.ZodString]>>;
2179
+ updated_at: z.ZodOptional<z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodString]>>>;
2180
+ }, "strip", z.ZodTypeAny, {
2181
+ created_at: string;
2182
+ lifecycle_state: "draft" | "closed" | "open" | "archived";
2183
+ _ulid: string;
2184
+ author: string;
2185
+ threads: {
2186
+ entries: {
2187
+ created_at: string;
2188
+ _ulid: string;
2189
+ author: string;
2190
+ body: string;
2191
+ }[];
2192
+ _ulid: string;
2193
+ kind: "question" | "blocker" | "nit";
2194
+ anchor?: {
2195
+ path: string;
2196
+ type: "code";
2197
+ commit: string;
2198
+ side: "head" | "base";
2199
+ line_start: number;
2200
+ line_end: number;
2201
+ } | {
2202
+ type: "structured";
2203
+ path?: string | undefined;
2204
+ ref?: string | undefined;
2205
+ section?: string | undefined;
2206
+ field?: string | undefined;
2207
+ } | undefined;
2208
+ resolved_at?: string | null | undefined;
2209
+ resolved_by?: string | null | undefined;
2210
+ }[];
2211
+ notes: {
2212
+ content: string;
2213
+ created_at: string;
2214
+ _ulid: string;
2215
+ author?: string | undefined;
2216
+ supersedes?: string | null | undefined;
2217
+ }[];
2218
+ slugs: string[];
2219
+ title: string;
2220
+ subject: {
2221
+ type: "code";
2222
+ base_commit: string;
2223
+ head_commit: string;
2224
+ merge_base_commit?: string | undefined;
2225
+ base_branch?: string | undefined;
2226
+ head_branch?: string | undefined;
2227
+ } | {
2228
+ type: "plan";
2229
+ ref: string;
2230
+ shadow_commit: string;
2231
+ content_hash: string;
2232
+ } | {
2233
+ type: "task";
2234
+ ref: string;
2235
+ shadow_commit: string;
2236
+ content_hash: string;
2237
+ } | {
2238
+ type: "spec";
2239
+ ref: string;
2240
+ shadow_commit: string;
2241
+ content_hash: string;
2242
+ } | {
2243
+ type: "external";
2244
+ url: string;
2245
+ external_id?: string | undefined;
2246
+ provider?: string | undefined;
2247
+ };
2248
+ related_refs: string[];
2249
+ checks: {
2250
+ name: string;
2251
+ status: "skipped" | "pass" | "fail" | "running";
2252
+ created_at: string;
2253
+ required: boolean;
2254
+ applies_to_version: {
2255
+ type: "code_compare";
2256
+ base_commit: string;
2257
+ head_commit: string;
2258
+ } | {
2259
+ type: "entity_version";
2260
+ content_hash: string;
2261
+ };
2262
+ completed_at?: string | null | undefined;
2263
+ runner?: string | undefined;
2264
+ evidence?: string | undefined;
2265
+ }[];
2266
+ verdicts: {
2267
+ decision: "approve" | "request_changes" | "comment";
2268
+ reviewer: string;
2269
+ role: string;
2270
+ created_at: string;
2271
+ applies_to_version: {
2272
+ type: "code_compare";
2273
+ base_commit: string;
2274
+ head_commit: string;
2275
+ } | {
2276
+ type: "entity_version";
2277
+ content_hash: string;
2278
+ };
2279
+ }[];
2280
+ events: {
2281
+ _ulid: string;
2282
+ event_type: "lifecycle_change" | "verdict_submitted" | "thread_created" | "thread_replied" | "thread_resolved" | "thread_reopened" | "check_added" | "subject_refreshed";
2283
+ actor: string;
2284
+ timestamp: string;
2285
+ payload: Record<string, unknown>;
2286
+ }[];
2287
+ external_links: {
2288
+ url: string;
2289
+ external_id?: string | undefined;
2290
+ provider?: string | undefined;
2291
+ label?: string | undefined;
2292
+ }[];
2293
+ examined_commit: string | null;
2294
+ updated_at?: string | null | undefined;
2295
+ }, {
2296
+ _ulid: string;
2297
+ author: string;
2298
+ title: string;
2299
+ subject: {
2300
+ type: "code";
2301
+ base_commit: string;
2302
+ head_commit: string;
2303
+ merge_base_commit?: string | undefined;
2304
+ base_branch?: string | undefined;
2305
+ head_branch?: string | undefined;
2306
+ } | {
2307
+ type: "plan";
2308
+ ref: string;
2309
+ shadow_commit: string;
2310
+ content_hash: string;
2311
+ } | {
2312
+ type: "task";
2313
+ ref: string;
2314
+ shadow_commit: string;
2315
+ content_hash: string;
2316
+ } | {
2317
+ type: "spec";
2318
+ ref: string;
2319
+ shadow_commit: string;
2320
+ content_hash: string;
2321
+ } | {
2322
+ type: "external";
2323
+ url: string;
2324
+ external_id?: string | undefined;
2325
+ provider?: string | undefined;
2326
+ };
2327
+ updated_at?: string | null | undefined;
2328
+ created_at?: string | undefined;
2329
+ lifecycle_state?: "draft" | "closed" | "open" | "archived" | undefined;
2330
+ threads?: {
2331
+ _ulid: string;
2332
+ anchor?: {
2333
+ path: string;
2334
+ type: "code";
2335
+ commit: string;
2336
+ side: "head" | "base";
2337
+ line_start: number;
2338
+ line_end: number;
2339
+ } | {
2340
+ type: "structured";
2341
+ path?: string | undefined;
2342
+ ref?: string | undefined;
2343
+ section?: string | undefined;
2344
+ field?: string | undefined;
2345
+ } | undefined;
2346
+ entries?: {
2347
+ created_at: string;
2348
+ _ulid: string;
2349
+ author: string;
2350
+ body: string;
2351
+ }[] | undefined;
2352
+ resolved_at?: string | null | undefined;
2353
+ resolved_by?: string | null | undefined;
2354
+ kind?: "question" | "blocker" | "nit" | undefined;
2355
+ }[] | undefined;
2356
+ notes?: {
2357
+ content: string;
2358
+ created_at: string;
2359
+ _ulid: string;
2360
+ author?: string | undefined;
2361
+ supersedes?: string | null | undefined;
2362
+ }[] | undefined;
2363
+ slugs?: string[] | undefined;
2364
+ related_refs?: string[] | undefined;
2365
+ checks?: {
2366
+ name: string;
2367
+ status: "skipped" | "pass" | "fail" | "running";
2368
+ created_at: string;
2369
+ applies_to_version: {
2370
+ type: "code_compare";
2371
+ base_commit: string;
2372
+ head_commit: string;
2373
+ } | {
2374
+ type: "entity_version";
2375
+ content_hash: string;
2376
+ };
2377
+ required?: boolean | undefined;
2378
+ completed_at?: string | null | undefined;
2379
+ runner?: string | undefined;
2380
+ evidence?: string | undefined;
2381
+ }[] | undefined;
2382
+ verdicts?: {
2383
+ decision: "approve" | "request_changes" | "comment";
2384
+ reviewer: string;
2385
+ created_at: string;
2386
+ applies_to_version: {
2387
+ type: "code_compare";
2388
+ base_commit: string;
2389
+ head_commit: string;
2390
+ } | {
2391
+ type: "entity_version";
2392
+ content_hash: string;
2393
+ };
2394
+ role?: string | undefined;
2395
+ }[] | undefined;
2396
+ events?: {
2397
+ _ulid: string;
2398
+ event_type: "lifecycle_change" | "verdict_submitted" | "thread_created" | "thread_replied" | "thread_resolved" | "thread_reopened" | "check_added" | "subject_refreshed";
2399
+ actor: string;
2400
+ timestamp: string;
2401
+ payload?: Record<string, unknown> | undefined;
2402
+ }[] | undefined;
2403
+ external_links?: {
2404
+ url: string;
2405
+ external_id?: string | undefined;
2406
+ provider?: string | undefined;
2407
+ label?: string | undefined;
2408
+ }[] | undefined;
2409
+ examined_commit?: string | null | undefined;
2410
+ }>, "many">;
2411
+ }, "strip", z.ZodTypeAny, {
2412
+ kynetic_reviews: string;
2413
+ reviews: {
2414
+ created_at: string;
2415
+ lifecycle_state: "draft" | "closed" | "open" | "archived";
2416
+ _ulid: string;
2417
+ author: string;
2418
+ threads: {
2419
+ entries: {
2420
+ created_at: string;
2421
+ _ulid: string;
2422
+ author: string;
2423
+ body: string;
2424
+ }[];
2425
+ _ulid: string;
2426
+ kind: "question" | "blocker" | "nit";
2427
+ anchor?: {
2428
+ path: string;
2429
+ type: "code";
2430
+ commit: string;
2431
+ side: "head" | "base";
2432
+ line_start: number;
2433
+ line_end: number;
2434
+ } | {
2435
+ type: "structured";
2436
+ path?: string | undefined;
2437
+ ref?: string | undefined;
2438
+ section?: string | undefined;
2439
+ field?: string | undefined;
2440
+ } | undefined;
2441
+ resolved_at?: string | null | undefined;
2442
+ resolved_by?: string | null | undefined;
2443
+ }[];
2444
+ notes: {
2445
+ content: string;
2446
+ created_at: string;
2447
+ _ulid: string;
2448
+ author?: string | undefined;
2449
+ supersedes?: string | null | undefined;
2450
+ }[];
2451
+ slugs: string[];
2452
+ title: string;
2453
+ subject: {
2454
+ type: "code";
2455
+ base_commit: string;
2456
+ head_commit: string;
2457
+ merge_base_commit?: string | undefined;
2458
+ base_branch?: string | undefined;
2459
+ head_branch?: string | undefined;
2460
+ } | {
2461
+ type: "plan";
2462
+ ref: string;
2463
+ shadow_commit: string;
2464
+ content_hash: string;
2465
+ } | {
2466
+ type: "task";
2467
+ ref: string;
2468
+ shadow_commit: string;
2469
+ content_hash: string;
2470
+ } | {
2471
+ type: "spec";
2472
+ ref: string;
2473
+ shadow_commit: string;
2474
+ content_hash: string;
2475
+ } | {
2476
+ type: "external";
2477
+ url: string;
2478
+ external_id?: string | undefined;
2479
+ provider?: string | undefined;
2480
+ };
2481
+ related_refs: string[];
2482
+ checks: {
2483
+ name: string;
2484
+ status: "skipped" | "pass" | "fail" | "running";
2485
+ created_at: string;
2486
+ required: boolean;
2487
+ applies_to_version: {
2488
+ type: "code_compare";
2489
+ base_commit: string;
2490
+ head_commit: string;
2491
+ } | {
2492
+ type: "entity_version";
2493
+ content_hash: string;
2494
+ };
2495
+ completed_at?: string | null | undefined;
2496
+ runner?: string | undefined;
2497
+ evidence?: string | undefined;
2498
+ }[];
2499
+ verdicts: {
2500
+ decision: "approve" | "request_changes" | "comment";
2501
+ reviewer: string;
2502
+ role: string;
2503
+ created_at: string;
2504
+ applies_to_version: {
2505
+ type: "code_compare";
2506
+ base_commit: string;
2507
+ head_commit: string;
2508
+ } | {
2509
+ type: "entity_version";
2510
+ content_hash: string;
2511
+ };
2512
+ }[];
2513
+ events: {
2514
+ _ulid: string;
2515
+ event_type: "lifecycle_change" | "verdict_submitted" | "thread_created" | "thread_replied" | "thread_resolved" | "thread_reopened" | "check_added" | "subject_refreshed";
2516
+ actor: string;
2517
+ timestamp: string;
2518
+ payload: Record<string, unknown>;
2519
+ }[];
2520
+ external_links: {
2521
+ url: string;
2522
+ external_id?: string | undefined;
2523
+ provider?: string | undefined;
2524
+ label?: string | undefined;
2525
+ }[];
2526
+ examined_commit: string | null;
2527
+ updated_at?: string | null | undefined;
2528
+ }[];
2529
+ }, {
2530
+ reviews: {
2531
+ _ulid: string;
2532
+ author: string;
2533
+ title: string;
2534
+ subject: {
2535
+ type: "code";
2536
+ base_commit: string;
2537
+ head_commit: string;
2538
+ merge_base_commit?: string | undefined;
2539
+ base_branch?: string | undefined;
2540
+ head_branch?: string | undefined;
2541
+ } | {
2542
+ type: "plan";
2543
+ ref: string;
2544
+ shadow_commit: string;
2545
+ content_hash: string;
2546
+ } | {
2547
+ type: "task";
2548
+ ref: string;
2549
+ shadow_commit: string;
2550
+ content_hash: string;
2551
+ } | {
2552
+ type: "spec";
2553
+ ref: string;
2554
+ shadow_commit: string;
2555
+ content_hash: string;
2556
+ } | {
2557
+ type: "external";
2558
+ url: string;
2559
+ external_id?: string | undefined;
2560
+ provider?: string | undefined;
2561
+ };
2562
+ updated_at?: string | null | undefined;
2563
+ created_at?: string | undefined;
2564
+ lifecycle_state?: "draft" | "closed" | "open" | "archived" | undefined;
2565
+ threads?: {
2566
+ _ulid: string;
2567
+ anchor?: {
2568
+ path: string;
2569
+ type: "code";
2570
+ commit: string;
2571
+ side: "head" | "base";
2572
+ line_start: number;
2573
+ line_end: number;
2574
+ } | {
2575
+ type: "structured";
2576
+ path?: string | undefined;
2577
+ ref?: string | undefined;
2578
+ section?: string | undefined;
2579
+ field?: string | undefined;
2580
+ } | undefined;
2581
+ entries?: {
2582
+ created_at: string;
2583
+ _ulid: string;
2584
+ author: string;
2585
+ body: string;
2586
+ }[] | undefined;
2587
+ resolved_at?: string | null | undefined;
2588
+ resolved_by?: string | null | undefined;
2589
+ kind?: "question" | "blocker" | "nit" | undefined;
2590
+ }[] | undefined;
2591
+ notes?: {
2592
+ content: string;
2593
+ created_at: string;
2594
+ _ulid: string;
2595
+ author?: string | undefined;
2596
+ supersedes?: string | null | undefined;
2597
+ }[] | undefined;
2598
+ slugs?: string[] | undefined;
2599
+ related_refs?: string[] | undefined;
2600
+ checks?: {
2601
+ name: string;
2602
+ status: "skipped" | "pass" | "fail" | "running";
2603
+ created_at: string;
2604
+ applies_to_version: {
2605
+ type: "code_compare";
2606
+ base_commit: string;
2607
+ head_commit: string;
2608
+ } | {
2609
+ type: "entity_version";
2610
+ content_hash: string;
2611
+ };
2612
+ required?: boolean | undefined;
2613
+ completed_at?: string | null | undefined;
2614
+ runner?: string | undefined;
2615
+ evidence?: string | undefined;
2616
+ }[] | undefined;
2617
+ verdicts?: {
2618
+ decision: "approve" | "request_changes" | "comment";
2619
+ reviewer: string;
2620
+ created_at: string;
2621
+ applies_to_version: {
2622
+ type: "code_compare";
2623
+ base_commit: string;
2624
+ head_commit: string;
2625
+ } | {
2626
+ type: "entity_version";
2627
+ content_hash: string;
2628
+ };
2629
+ role?: string | undefined;
2630
+ }[] | undefined;
2631
+ events?: {
2632
+ _ulid: string;
2633
+ event_type: "lifecycle_change" | "verdict_submitted" | "thread_created" | "thread_replied" | "thread_resolved" | "thread_reopened" | "check_added" | "subject_refreshed";
2634
+ actor: string;
2635
+ timestamp: string;
2636
+ payload?: Record<string, unknown> | undefined;
2637
+ }[] | undefined;
2638
+ external_links?: {
2639
+ url: string;
2640
+ external_id?: string | undefined;
2641
+ provider?: string | undefined;
2642
+ label?: string | undefined;
2643
+ }[] | undefined;
2644
+ examined_commit?: string | null | undefined;
2645
+ }[];
2646
+ kynetic_reviews?: string | undefined;
2647
+ }>;
2648
+ export type ReviewLifecycleState = z.infer<typeof ReviewLifecycleStateSchema>;
2649
+ export type ReviewDisposition = z.infer<typeof ReviewDispositionSchema>;
2650
+ export type ReviewGateState = z.infer<typeof ReviewGateStateSchema>;
2651
+ export type ReviewCodeSubject = z.infer<typeof ReviewCodeSubjectSchema>;
2652
+ export type ReviewPlanSubject = z.infer<typeof ReviewPlanSubjectSchema>;
2653
+ export type ReviewTaskSubject = z.infer<typeof ReviewTaskSubjectSchema>;
2654
+ export type ReviewSpecSubject = z.infer<typeof ReviewSpecSubjectSchema>;
2655
+ export type ReviewExternalSubject = z.infer<typeof ReviewExternalSubjectSchema>;
2656
+ export type ReviewSubject = z.infer<typeof ReviewSubjectSchema>;
2657
+ export type ReviewCodeCompareVersion = z.infer<typeof ReviewCodeCompareVersionSchema>;
2658
+ export type ReviewEntityVersion = z.infer<typeof ReviewEntityVersionSchema>;
2659
+ export type ReviewSubjectVersion = z.infer<typeof ReviewSubjectVersionSchema>;
2660
+ export type ReviewCodeAnchor = z.infer<typeof ReviewCodeAnchorSchema>;
2661
+ export type ReviewStructuredAnchor = z.infer<typeof ReviewStructuredAnchorSchema>;
2662
+ export type ReviewAnchor = z.infer<typeof ReviewAnchorSchema>;
2663
+ export type ReviewThreadKind = z.infer<typeof ReviewThreadKindSchema>;
2664
+ export type ReviewThreadEntry = z.infer<typeof ReviewThreadEntrySchema>;
2665
+ export type ReviewThread = z.infer<typeof ReviewThreadSchema>;
2666
+ export type ReviewCheckStatus = z.infer<typeof ReviewCheckStatusSchema>;
2667
+ export type ReviewCheck = z.infer<typeof ReviewCheckSchema>;
2668
+ export type ReviewVerdictDecision = z.infer<typeof ReviewVerdictDecisionSchema>;
2669
+ export type ReviewVerdict = z.infer<typeof ReviewVerdictSchema>;
2670
+ export type ReviewEventType = z.infer<typeof ReviewEventTypeSchema>;
2671
+ export type ReviewEvent = z.infer<typeof ReviewEventSchema>;
2672
+ export type ReviewExternalLink = z.infer<typeof ReviewExternalLinkSchema>;
2673
+ export type ReviewRecord = z.infer<typeof ReviewRecordSchema>;
2674
+ export type ReviewRecordInput = z.infer<typeof ReviewRecordInputSchema>;
2675
+ export type ReviewRecordsFile = z.infer<typeof ReviewRecordsFileSchema>;
2676
+ //# sourceMappingURL=review-records.d.ts.map