@intentius/chant 0.124.87 → 0.124.89

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 (483) hide show
  1. package/dist/action-pins.d.ts +1 -0
  2. package/dist/action-pins.d.ts.map +1 -1
  3. package/dist/action-pins.js +2 -0
  4. package/dist/actor.d.ts +47 -0
  5. package/dist/actor.d.ts.map +1 -0
  6. package/dist/actor.js +56 -0
  7. package/dist/bundle-check.d.ts +20 -5
  8. package/dist/bundle-check.d.ts.map +1 -1
  9. package/dist/bundle-check.js +20 -5
  10. package/dist/chant-install.d.ts +98 -0
  11. package/dist/chant-install.d.ts.map +1 -1
  12. package/dist/chant-install.js +203 -2
  13. package/dist/ci-base.d.ts +30 -0
  14. package/dist/ci-base.d.ts.map +1 -0
  15. package/dist/ci-base.js +33 -0
  16. package/dist/ci-comment-commands.d.ts +177 -0
  17. package/dist/ci-comment-commands.d.ts.map +1 -0
  18. package/dist/ci-comment-commands.js +325 -0
  19. package/dist/ci-comment-replies.d.ts +40 -0
  20. package/dist/ci-comment-replies.d.ts.map +1 -0
  21. package/dist/ci-comment-replies.js +59 -0
  22. package/dist/ci-commit.d.ts +1 -1
  23. package/dist/ci-commit.d.ts.map +1 -1
  24. package/dist/ci-commit.js +1 -2
  25. package/dist/ci-control.d.ts +1 -1
  26. package/dist/ci-control.d.ts.map +1 -1
  27. package/dist/ci-control.js +1 -1
  28. package/dist/ci-evidence-claims.d.ts +59 -0
  29. package/dist/ci-evidence-claims.d.ts.map +1 -0
  30. package/dist/ci-evidence-claims.js +87 -0
  31. package/dist/ci-evidence-from-job.d.ts +128 -0
  32. package/dist/ci-evidence-from-job.d.ts.map +1 -0
  33. package/dist/ci-evidence-from-job.js +203 -0
  34. package/dist/ci-evidence-jobs.d.ts +68 -4
  35. package/dist/ci-evidence-jobs.d.ts.map +1 -1
  36. package/dist/ci-evidence-jobs.js +82 -5
  37. package/dist/ci-handover.d.ts +12 -0
  38. package/dist/ci-handover.d.ts.map +1 -1
  39. package/dist/ci-handover.js +15 -3
  40. package/dist/ci-identity.d.ts +32 -6
  41. package/dist/ci-identity.d.ts.map +1 -1
  42. package/dist/ci-identity.js +40 -8
  43. package/dist/ci-image.d.ts +65 -10
  44. package/dist/ci-image.d.ts.map +1 -1
  45. package/dist/ci-image.js +101 -22
  46. package/dist/ci-jobs.d.ts +1 -1
  47. package/dist/ci-jobs.d.ts.map +1 -1
  48. package/dist/ci-jobs.js +7 -2
  49. package/dist/ci-login.d.ts +75 -13
  50. package/dist/ci-login.d.ts.map +1 -1
  51. package/dist/ci-login.js +89 -37
  52. package/dist/ci-note-commands.d.ts +63 -3
  53. package/dist/ci-note-commands.d.ts.map +1 -1
  54. package/dist/ci-note-commands.js +69 -35
  55. package/dist/ci-product-words.d.ts +62 -1
  56. package/dist/ci-product-words.d.ts.map +1 -1
  57. package/dist/ci-product-words.js +52 -1
  58. package/dist/ci-product.d.ts +52 -2
  59. package/dist/ci-product.d.ts.map +1 -1
  60. package/dist/ci-product.js +51 -2
  61. package/dist/cli/commands/build.d.ts.map +1 -1
  62. package/dist/cli/commands/build.js +29 -2
  63. package/dist/cli/handlers/approve-confirm.d.ts +14 -0
  64. package/dist/cli/handlers/approve-confirm.d.ts.map +1 -1
  65. package/dist/cli/handlers/approve-confirm.js +46 -0
  66. package/dist/cli/handlers/approve.d.ts.map +1 -1
  67. package/dist/cli/handlers/approve.js +2 -1
  68. package/dist/cli/handlers/build.d.ts +1 -1
  69. package/dist/cli/handlers/build.d.ts.map +1 -1
  70. package/dist/cli/handlers/build.js +22 -1
  71. package/dist/cli/handlers/ci-check.d.ts +1 -1
  72. package/dist/cli/handlers/ci-check.d.ts.map +1 -1
  73. package/dist/cli/handlers/ci-check.js +37 -7
  74. package/dist/cli/handlers/ci-evidence.d.ts.map +1 -1
  75. package/dist/cli/handlers/ci-evidence.js +255 -20
  76. package/dist/cli/handlers/ci-forge-check.d.ts.map +1 -1
  77. package/dist/cli/handlers/ci-forge-check.js +34 -17
  78. package/dist/cli/handlers/components.d.ts.map +1 -1
  79. package/dist/cli/handlers/components.js +3 -1
  80. package/dist/cli/handlers/generated-check.d.ts +11 -0
  81. package/dist/cli/handlers/generated-check.d.ts.map +1 -0
  82. package/dist/cli/handlers/generated-check.js +71 -0
  83. package/dist/cli/handlers/lifecycle.d.ts.map +1 -1
  84. package/dist/cli/handlers/lifecycle.js +3 -0
  85. package/dist/cli/handlers/local-chant.d.ts +13 -0
  86. package/dist/cli/handlers/local-chant.d.ts.map +1 -1
  87. package/dist/cli/handlers/local-chant.js +42 -1
  88. package/dist/cli/handlers/lock.d.ts.map +1 -1
  89. package/dist/cli/handlers/lock.js +121 -4
  90. package/dist/cli/handlers/pr-comment.d.ts +21 -0
  91. package/dist/cli/handlers/pr-comment.d.ts.map +1 -0
  92. package/dist/cli/handlers/pr-comment.js +112 -0
  93. package/dist/cli/handlers/pr-env.d.ts.map +1 -1
  94. package/dist/cli/handlers/pr-env.js +6 -3
  95. package/dist/cli/handlers/pr.d.ts +23 -1
  96. package/dist/cli/handlers/pr.d.ts.map +1 -1
  97. package/dist/cli/handlers/pr.js +97 -14
  98. package/dist/cli/handlers/promote.d.ts.map +1 -1
  99. package/dist/cli/handlers/promote.js +2 -1
  100. package/dist/cli/handlers/release.d.ts.map +1 -1
  101. package/dist/cli/handlers/release.js +11 -2
  102. package/dist/cli/handlers/run-wave.d.ts.map +1 -1
  103. package/dist/cli/handlers/run-wave.js +36 -2
  104. package/dist/cli/handlers/run.d.ts.map +1 -1
  105. package/dist/cli/handlers/run.js +2 -1
  106. package/dist/cli/main.d.ts.map +1 -1
  107. package/dist/cli/main.js +60 -4
  108. package/dist/cli/parse-args.d.ts.map +1 -1
  109. package/dist/cli/parse-args.js +82 -0
  110. package/dist/cli/registry.d.ts +35 -0
  111. package/dist/cli/registry.d.ts.map +1 -1
  112. package/dist/components/auto-release.d.ts.map +1 -1
  113. package/dist/components/auto-release.js +2 -1
  114. package/dist/components/check-hooks.d.ts +10 -0
  115. package/dist/components/check-hooks.d.ts.map +1 -1
  116. package/dist/components/check-hooks.js +18 -0
  117. package/dist/components/pr-checks.d.ts +169 -0
  118. package/dist/components/pr-checks.d.ts.map +1 -0
  119. package/dist/components/pr-checks.js +180 -0
  120. package/dist/components/pr-pipeline.d.ts +38 -0
  121. package/dist/components/pr-pipeline.d.ts.map +1 -1
  122. package/dist/components/pr-pipeline.js +6 -1
  123. package/dist/components/product-pipeline.d.ts +58 -2
  124. package/dist/components/product-pipeline.d.ts.map +1 -1
  125. package/dist/components/product-pipeline.js +76 -9
  126. package/dist/components/product-plan.d.ts +445 -7
  127. package/dist/components/product-plan.d.ts.map +1 -1
  128. package/dist/components/product-plan.js +426 -15
  129. package/dist/config.d.ts +10 -6
  130. package/dist/config.d.ts.map +1 -1
  131. package/dist/config.js +11 -6
  132. package/dist/control/consumers.d.ts +6 -0
  133. package/dist/control/consumers.d.ts.map +1 -1
  134. package/dist/control/consumers.js +6 -0
  135. package/dist/dead-guards.d.ts.map +1 -1
  136. package/dist/dead-guards.js +9 -6
  137. package/dist/discovery/files.d.ts +1 -1
  138. package/dist/discovery/files.js +1 -1
  139. package/dist/drift-issue.d.ts +20 -3
  140. package/dist/drift-issue.d.ts.map +1 -1
  141. package/dist/drift-issue.js +16 -0
  142. package/dist/drift-record.d.ts +52 -5
  143. package/dist/drift-record.d.ts.map +1 -1
  144. package/dist/drift-record.js +46 -6
  145. package/dist/floor-table.d.ts +6 -6
  146. package/dist/floor-table.d.ts.map +1 -1
  147. package/dist/floor-table.data.d.ts.map +1 -1
  148. package/dist/floor-table.data.js +81 -21
  149. package/dist/floor-table.js +10 -7
  150. package/dist/forge-check/contract.d.ts +19 -1
  151. package/dist/forge-check/contract.d.ts.map +1 -1
  152. package/dist/forge-check/contract.js +8 -2
  153. package/dist/forge-check/index.d.ts +4 -0
  154. package/dist/forge-check/index.d.ts.map +1 -1
  155. package/dist/forge-check/index.js +4 -0
  156. package/dist/forge-flags.d.ts +10 -0
  157. package/dist/forge-flags.d.ts.map +1 -1
  158. package/dist/forge-flags.js +31 -0
  159. package/dist/forge-remote.d.ts +47 -0
  160. package/dist/forge-remote.d.ts.map +1 -0
  161. package/dist/forge-remote.js +69 -0
  162. package/dist/gate-resume-run.d.ts +9 -1
  163. package/dist/gate-resume-run.d.ts.map +1 -1
  164. package/dist/gate-resume-run.js +26 -3
  165. package/dist/generated-check.d.ts +88 -0
  166. package/dist/generated-check.d.ts.map +1 -0
  167. package/dist/generated-check.js +248 -0
  168. package/dist/image-pins.d.ts +26 -0
  169. package/dist/image-pins.d.ts.map +1 -0
  170. package/dist/image-pins.js +19 -0
  171. package/dist/lexicon.d.ts +27 -0
  172. package/dist/lexicon.d.ts.map +1 -1
  173. package/dist/lifecycle/git.d.ts +11 -0
  174. package/dist/lifecycle/git.d.ts.map +1 -1
  175. package/dist/lifecycle/git.js +30 -3
  176. package/dist/lifecycle/publish-npm.d.ts +26 -0
  177. package/dist/lifecycle/publish-npm.d.ts.map +1 -1
  178. package/dist/lifecycle/publish-npm.js +76 -4
  179. package/dist/lifecycle/reach-locks.d.ts +131 -0
  180. package/dist/lifecycle/reach-locks.d.ts.map +1 -0
  181. package/dist/lifecycle/reach-locks.js +118 -0
  182. package/dist/lifecycle/release-cut.d.ts +3 -1
  183. package/dist/lifecycle/release-cut.d.ts.map +1 -1
  184. package/dist/lifecycle/release-cut.js +15 -0
  185. package/dist/lifecycle/release-images.d.ts +22 -1
  186. package/dist/lifecycle/release-images.d.ts.map +1 -1
  187. package/dist/lifecycle/release-images.js +26 -3
  188. package/dist/lifecycle/release-ledger.d.ts +4 -3
  189. package/dist/lifecycle/release-ledger.d.ts.map +1 -1
  190. package/dist/lifecycle/release-ledger.js +3 -2
  191. package/dist/local-chant.d.ts +57 -3
  192. package/dist/local-chant.d.ts.map +1 -1
  193. package/dist/local-chant.js +122 -13
  194. package/dist/notify-product.d.ts +12 -3
  195. package/dist/notify-product.d.ts.map +1 -1
  196. package/dist/notify-product.js +10 -6
  197. package/dist/op/activities/source-release.d.ts.map +1 -1
  198. package/dist/op/activities/source-release.js +2 -1
  199. package/dist/op/activities/source-rollback.d.ts.map +1 -1
  200. package/dist/op/activities/source-rollback.js +2 -1
  201. package/dist/op/index.d.ts +2 -0
  202. package/dist/op/index.d.ts.map +1 -1
  203. package/dist/op/index.js +1 -0
  204. package/dist/op/op-waves-evidence-jobs.d.ts +97 -0
  205. package/dist/op/op-waves-evidence-jobs.d.ts.map +1 -0
  206. package/dist/op/op-waves-evidence-jobs.js +118 -0
  207. package/dist/op/op-waves-evidence.d.ts +12 -1
  208. package/dist/op/op-waves-evidence.d.ts.map +1 -1
  209. package/dist/op/op-waves-evidence.js +23 -2
  210. package/dist/op/op-waves-render-spec.d.ts +100 -0
  211. package/dist/op/op-waves-render-spec.d.ts.map +1 -0
  212. package/dist/op/op-waves-render-spec.js +162 -0
  213. package/dist/op/op-waves-run.d.ts +14 -1
  214. package/dist/op/op-waves-run.d.ts.map +1 -1
  215. package/dist/op/op-waves-run.js +56 -4
  216. package/dist/op/op-waves.d.ts +12 -0
  217. package/dist/op/op-waves.d.ts.map +1 -1
  218. package/dist/op/op-waves.js +14 -1
  219. package/dist/op/schedule-overdue.d.ts +39 -2
  220. package/dist/op/schedule-overdue.d.ts.map +1 -1
  221. package/dist/op/schedule-overdue.js +148 -10
  222. package/dist/op/wave-stop.d.ts +64 -0
  223. package/dist/op/wave-stop.d.ts.map +1 -0
  224. package/dist/op/wave-stop.js +127 -0
  225. package/dist/planned-files.d.ts +76 -0
  226. package/dist/planned-files.d.ts.map +1 -0
  227. package/dist/planned-files.js +108 -0
  228. package/dist/pr-forge-job.d.ts +22 -0
  229. package/dist/pr-forge-job.d.ts.map +1 -0
  230. package/dist/pr-forge-job.js +46 -0
  231. package/dist/pr-forge-reads.d.ts +21 -1
  232. package/dist/pr-forge-reads.d.ts.map +1 -1
  233. package/dist/pr-forge-reads.js +19 -1
  234. package/dist/pr-forge.d.ts +7 -1
  235. package/dist/pr-forge.d.ts.map +1 -1
  236. package/dist/pr-forge.js +7 -2
  237. package/dist/pr-loop.d.ts +3 -6
  238. package/dist/pr-loop.d.ts.map +1 -1
  239. package/dist/pr-loop.js +4 -81
  240. package/dist/pr-plan-note.d.ts +121 -0
  241. package/dist/pr-plan-note.d.ts.map +1 -1
  242. package/dist/pr-plan-note.js +104 -1
  243. package/dist/pr-plan-record.d.ts +47 -0
  244. package/dist/pr-plan-record.d.ts.map +1 -0
  245. package/dist/pr-plan-record.js +89 -0
  246. package/dist/pr-post.d.ts +68 -3
  247. package/dist/pr-post.d.ts.map +1 -1
  248. package/dist/pr-post.js +218 -13
  249. package/dist/pr-requires.d.ts +8 -0
  250. package/dist/pr-requires.d.ts.map +1 -1
  251. package/dist/pr-requires.js +3 -1
  252. package/dist/pr-status.d.ts +16 -0
  253. package/dist/pr-status.d.ts.map +1 -0
  254. package/dist/pr-status.js +90 -0
  255. package/dist/ref-gate-init.d.ts +90 -0
  256. package/dist/ref-gate-init.d.ts.map +1 -0
  257. package/dist/ref-gate-init.js +155 -0
  258. package/dist/ref-gate-rules.d.ts +19 -0
  259. package/dist/ref-gate-rules.d.ts.map +1 -0
  260. package/dist/ref-gate-rules.js +17 -0
  261. package/dist/release-floors.d.ts +100 -16
  262. package/dist/release-floors.d.ts.map +1 -1
  263. package/dist/release-floors.js +101 -17
  264. package/dist/render-module.d.ts +15 -0
  265. package/dist/render-module.d.ts.map +1 -0
  266. package/dist/render-module.js +73 -0
  267. package/dist/state-migration.d.ts +24 -1
  268. package/dist/state-migration.d.ts.map +1 -1
  269. package/dist/state-migration.js +39 -4
  270. package/dist/state-unlock.d.ts +32 -1
  271. package/dist/state-unlock.d.ts.map +1 -1
  272. package/dist/state-unlock.js +31 -0
  273. package/dist/wave-runtime.mjs +307 -297
  274. package/dist/workspace/ci-green-cli.d.ts.map +1 -1
  275. package/dist/workspace/ci-green-cli.js +15 -8
  276. package/dist/workspace/drift-cli.d.ts +1 -1
  277. package/dist/workspace/drift-cli.d.ts.map +1 -1
  278. package/dist/workspace/drift-cli.js +5 -12
  279. package/dist/workspace/forge-work.d.ts +3 -2
  280. package/dist/workspace/forge-work.d.ts.map +1 -1
  281. package/dist/workspace/forge-work.js +7 -17
  282. package/dist/workspace/lexicon-outputs.js +2 -2
  283. package/dist/workspace/release-train.d.ts.map +1 -1
  284. package/dist/workspace/release-train.js +2 -1
  285. package/dist/workspace/release-workflow.d.ts +27 -3
  286. package/dist/workspace/release-workflow.d.ts.map +1 -1
  287. package/dist/workspace/release-workflow.js +52 -7
  288. package/dist/workspace/trust/check-evidence-report.d.ts +25 -2
  289. package/dist/workspace/trust/check-evidence-report.d.ts.map +1 -1
  290. package/dist/workspace/trust/check-evidence-report.js +28 -8
  291. package/dist/workspace/trust/check-evidence.d.ts +13 -1
  292. package/dist/workspace/trust/check-evidence.d.ts.map +1 -1
  293. package/dist/workspace/trust/check-evidence.js +8 -3
  294. package/dist/workspace/trust/evidence.d.ts +5 -0
  295. package/dist/workspace/trust/evidence.d.ts.map +1 -1
  296. package/dist/workspace/trust/evidence.js +5 -0
  297. package/dist/workspace/trust/open-evidence.d.ts +67 -0
  298. package/dist/workspace/trust/open-evidence.d.ts.map +1 -0
  299. package/dist/workspace/trust/open-evidence.js +92 -0
  300. package/dist/workspace/trust/ref-gate-cli.d.ts +10 -1
  301. package/dist/workspace/trust/ref-gate-cli.d.ts.map +1 -1
  302. package/dist/workspace/trust/ref-gate-cli.js +93 -11
  303. package/dist/workspace/trust/ref-gate.d.ts +61 -2
  304. package/dist/workspace/trust/ref-gate.d.ts.map +1 -1
  305. package/dist/workspace/trust/ref-gate.js +72 -7
  306. package/dist/workspace/workspace-run.d.ts.map +1 -1
  307. package/dist/workspace/workspace-run.js +2 -1
  308. package/package.json +1 -1
  309. package/src/action-pins.ts +2 -0
  310. package/src/actor.test.ts +78 -0
  311. package/src/actor.ts +79 -0
  312. package/src/bundle-check.test.ts +22 -0
  313. package/src/bundle-check.ts +33 -5
  314. package/src/chant-install.test.ts +108 -1
  315. package/src/chant-install.ts +242 -2
  316. package/src/ci-base.test.ts +41 -0
  317. package/src/ci-base.ts +43 -0
  318. package/src/ci-comment-commands.test.ts +376 -0
  319. package/src/ci-comment-commands.ts +389 -0
  320. package/src/ci-comment-replies.ts +78 -0
  321. package/src/ci-commit.test.ts +51 -6
  322. package/src/ci-commit.ts +1 -2
  323. package/src/ci-control.ts +1 -0
  324. package/src/ci-evidence-claims.ts +102 -0
  325. package/src/ci-evidence-from-job.test.ts +165 -0
  326. package/src/ci-evidence-from-job.ts +251 -0
  327. package/src/ci-evidence-jobs.ts +88 -6
  328. package/src/ci-handover.ts +16 -3
  329. package/src/ci-identity.test.ts +3 -3
  330. package/src/ci-identity.ts +51 -11
  331. package/src/ci-image.test.ts +187 -16
  332. package/src/ci-image.ts +157 -25
  333. package/src/ci-jobs.ts +7 -2
  334. package/src/ci-login.test.ts +131 -3
  335. package/src/ci-login.token-drop.test.ts +204 -0
  336. package/src/ci-login.ts +137 -39
  337. package/src/ci-note-commands.ts +104 -41
  338. package/src/ci-product-words.ts +89 -0
  339. package/src/ci-product.ts +62 -1
  340. package/src/cli/commands/__fixtures__/source-dir-root/migrations/0001-init/backfill.ts +3 -0
  341. package/src/cli/commands/build.test.ts +41 -0
  342. package/src/cli/commands/build.ts +27 -2
  343. package/src/cli/handlers/approve-confirm.test.ts +35 -0
  344. package/src/cli/handlers/approve-confirm.ts +44 -0
  345. package/src/cli/handlers/approve.ts +2 -1
  346. package/src/cli/handlers/build-source-dir.test.ts +4 -0
  347. package/src/cli/handlers/build.ts +20 -2
  348. package/src/cli/handlers/ci-check.ts +37 -7
  349. package/src/cli/handlers/ci-evidence-open.test.ts +164 -0
  350. package/src/cli/handlers/ci-evidence.ts +233 -18
  351. package/src/cli/handlers/ci-forge-check.ts +22 -9
  352. package/src/cli/handlers/components.ts +3 -1
  353. package/src/cli/handlers/generated-check.ts +69 -0
  354. package/src/cli/handlers/lifecycle.test.ts +20 -0
  355. package/src/cli/handlers/lifecycle.ts +4 -0
  356. package/src/cli/handlers/local-chant.ts +39 -1
  357. package/src/cli/handlers/lock-reach.test.ts +103 -0
  358. package/src/cli/handlers/lock.ts +100 -4
  359. package/src/cli/handlers/pr-comment.ts +104 -0
  360. package/src/cli/handlers/pr-env.ts +6 -3
  361. package/src/cli/handlers/pr-record.test.ts +1 -1
  362. package/src/cli/handlers/pr.ts +93 -15
  363. package/src/cli/handlers/promote.ts +2 -1
  364. package/src/cli/handlers/release.e2e.test.ts +35 -0
  365. package/src/cli/handlers/release.ts +14 -2
  366. package/src/cli/handlers/run-wave.ts +35 -2
  367. package/src/cli/handlers/run.ts +2 -1
  368. package/src/cli/main.ts +60 -4
  369. package/src/cli/parse-args.ts +58 -0
  370. package/src/cli/registry.ts +35 -0
  371. package/src/components/auto-release.ts +2 -1
  372. package/src/components/check-hooks.ts +22 -0
  373. package/src/components/check-report-summary.test.ts +78 -0
  374. package/src/components/pr-checks.ts +254 -0
  375. package/src/components/pr-pipeline.ts +43 -1
  376. package/src/components/product-pipeline.ts +113 -9
  377. package/src/components/product-plan.test.ts +140 -1
  378. package/src/components/product-plan.ts +707 -20
  379. package/src/config.ts +13 -8
  380. package/src/control/consumers.ts +7 -0
  381. package/src/dead-guards.test.ts +27 -5
  382. package/src/dead-guards.ts +9 -6
  383. package/src/discovery/files.ts +1 -1
  384. package/src/drift-issue.test.ts +29 -1
  385. package/src/drift-issue.ts +28 -3
  386. package/src/drift-record.test.ts +45 -0
  387. package/src/drift-record.ts +71 -6
  388. package/src/floor-table.data.ts +81 -21
  389. package/src/floor-table.ts +12 -9
  390. package/src/forge-check/contract.ts +23 -2
  391. package/src/forge-check/forge-check.test.ts +25 -0
  392. package/src/forge-check/index.ts +4 -0
  393. package/src/forge-flags.test.ts +25 -1
  394. package/src/forge-flags.ts +34 -0
  395. package/src/forge-remote.test.ts +37 -0
  396. package/src/forge-remote.ts +79 -0
  397. package/src/gate-resume-run.ts +27 -3
  398. package/src/generated-check.e2e.test.ts +118 -0
  399. package/src/generated-check.test.ts +170 -0
  400. package/src/generated-check.ts +310 -0
  401. package/src/image-pins.ts +31 -0
  402. package/src/lexicon.ts +28 -0
  403. package/src/lifecycle/git.test.ts +48 -0
  404. package/src/lifecycle/git.ts +27 -4
  405. package/src/lifecycle/publish-npm.ts +87 -4
  406. package/src/lifecycle/reach-locks.test.ts +87 -0
  407. package/src/lifecycle/reach-locks.ts +169 -0
  408. package/src/lifecycle/release-catalog.test.ts +2 -2
  409. package/src/lifecycle/release-cut.ts +17 -1
  410. package/src/lifecycle/release-images-dockerfile.test.ts +20 -0
  411. package/src/lifecycle/release-images.test.ts +100 -0
  412. package/src/lifecycle/release-images.ts +38 -3
  413. package/src/lifecycle/release-ledger.ts +4 -3
  414. package/src/local-chant.e2e.test.ts +81 -6
  415. package/src/local-chant.test.ts +22 -3
  416. package/src/local-chant.ts +130 -13
  417. package/src/notify-product.ts +19 -8
  418. package/src/op/activities/source-release.ts +2 -1
  419. package/src/op/activities/source-rollback.ts +2 -1
  420. package/src/op/gate-resume.test.ts +27 -0
  421. package/src/op/index.ts +10 -0
  422. package/src/op/op-waves-evidence-jobs.ts +140 -0
  423. package/src/op/op-waves-evidence.test.ts +36 -3
  424. package/src/op/op-waves-evidence.ts +23 -3
  425. package/src/op/op-waves-notify-words.test.ts +18 -0
  426. package/src/op/op-waves-render-spec.test.ts +160 -0
  427. package/src/op/op-waves-render-spec.ts +171 -0
  428. package/src/op/op-waves-run.ts +59 -3
  429. package/src/op/op-waves.ts +16 -2
  430. package/src/op/schedule-overdue.test.ts +126 -1
  431. package/src/op/schedule-overdue.ts +164 -12
  432. package/src/op/wave-stop.test.ts +72 -0
  433. package/src/op/wave-stop.ts +137 -0
  434. package/src/planned-files.test.ts +80 -0
  435. package/src/planned-files.ts +134 -0
  436. package/src/pr-forge-job.test.ts +53 -0
  437. package/src/pr-forge-job.ts +46 -0
  438. package/src/pr-forge-reads-compare.test.ts +2 -1
  439. package/src/pr-forge-reads.ts +37 -1
  440. package/src/pr-forge.ts +14 -3
  441. package/src/pr-loop-narrowed.test.ts +2 -1
  442. package/src/pr-loop-words.test.ts +2 -1
  443. package/src/pr-loop.test.ts +1 -2
  444. package/src/pr-loop.ts +4 -80
  445. package/src/pr-plan-note.ts +184 -3
  446. package/src/pr-plan-record.test.ts +75 -0
  447. package/src/pr-plan-record.ts +101 -0
  448. package/src/pr-post-plan-note.test.ts +60 -0
  449. package/src/pr-post-replan.test.ts +144 -0
  450. package/src/pr-post-subject.test.ts +230 -0
  451. package/src/pr-post.test.ts +32 -1
  452. package/src/pr-post.ts +254 -15
  453. package/src/pr-requires.test.ts +20 -0
  454. package/src/pr-requires.ts +10 -1
  455. package/src/pr-status.ts +91 -0
  456. package/src/ref-gate-init.ts +208 -0
  457. package/src/ref-gate-rules.ts +26 -0
  458. package/src/release-floors.ts +139 -17
  459. package/src/render-module.ts +73 -0
  460. package/src/state-migration-record.test.ts +89 -0
  461. package/src/state-migration.test.ts +1 -1
  462. package/src/state-migration.ts +52 -4
  463. package/src/state-unlock.test.ts +33 -1
  464. package/src/state-unlock.ts +49 -1
  465. package/src/workspace/ci-green-cli.ts +14 -7
  466. package/src/workspace/ci-green-workflow.test.ts +32 -1
  467. package/src/workspace/drift-cli.ts +6 -18
  468. package/src/workspace/forge-work.ts +7 -14
  469. package/src/workspace/lexicon-outputs.ts +2 -2
  470. package/src/workspace/release-train.ts +2 -1
  471. package/src/workspace/release-workflow.test.ts +104 -3
  472. package/src/workspace/release-workflow.ts +60 -9
  473. package/src/workspace/trust/check-evidence-report.ts +39 -8
  474. package/src/workspace/trust/check-evidence.test.ts +5 -0
  475. package/src/workspace/trust/check-evidence.ts +17 -5
  476. package/src/workspace/trust/evidence.ts +5 -0
  477. package/src/workspace/trust/open-evidence.ts +129 -0
  478. package/src/workspace/trust/ref-gate-cli.ts +88 -10
  479. package/src/workspace/trust/ref-gate-pieces.test.ts +220 -0
  480. package/src/workspace/trust/ref-gate.e2e.test.ts +17 -0
  481. package/src/workspace/trust/ref-gate.test.ts +10 -0
  482. package/src/workspace/trust/ref-gate.ts +87 -6
  483. package/src/workspace/workspace-run.ts +2 -1
@@ -1 +1 @@
1
- {"version":3,"file":"ci-green-cli.d.ts","sourceRoot":"","sources":["../../src/workspace/ci-green-cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAOH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EAA4G,cAAc,EAAE,MAAM,YAAY,CAAC;AAWtJ,OAAO,EAAE,cAAc,EAAE,CAAC;AAe1B,wBAAsB,cAAc,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAkBzE;AAED;;;;GAIG;AACH,wBAAsB,SAAS,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAsBpE;AAED;;;;;;;;GAQG;AACH,wBAAsB,YAAY,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAyCvE;AAED,wBAAsB,SAAS,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAsBpE;AAID,wBAAsB,SAAS,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAoBpE;AAeD,wBAAsB,aAAa,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA0ExE"}
1
+ {"version":3,"file":"ci-green-cli.d.ts","sourceRoot":"","sources":["../../src/workspace/ci-green-cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAOH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEtD,OAAO,EAA4G,cAAc,EAAE,MAAM,YAAY,CAAC;AAWtJ,OAAO,EAAE,cAAc,EAAE,CAAC;AAe1B,wBAAsB,cAAc,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAkBzE;AAED;;;;GAIG;AACH,wBAAsB,SAAS,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAsBpE;AAED;;;;;;;;GAQG;AACH,wBAAsB,YAAY,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAyCvE;AAED,wBAAsB,SAAS,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAsBpE;AAID,wBAAsB,SAAS,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAoBpE;AAeD,wBAAsB,aAAa,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAiFxE"}
@@ -234,8 +234,14 @@ export async function runCiWorkflow(ctx) {
234
234
  const root = realpathSync(found.dir);
235
235
  const repoRoot = gitTop(root) ?? root;
236
236
  const member = resolveMemberContext(cwd, found);
237
- const target = ctx.args.output ? resolve(realpathSync(cwd), ctx.args.output) : join(repoRoot, CI_GREEN_WORKFLOW_FILE);
238
- const fromRepo = relative(repoRoot, target).split(sep).join("/");
237
+ // #4909: under `chant dev generated-check` the file goes to the render
238
+ // tree; it is read and named as the committed file it stands for. #4950:
239
+ // with no --output too, so a render needs no `--output {out}/...`.
240
+ const { committedPathOf, isRenderPath, renderPathOf } = await import("../generated-check.js");
241
+ const target = ctx.args.output ? resolve(realpathSync(cwd), ctx.args.output) : renderPathOf(join(repoRoot, CI_GREEN_WORKFLOW_FILE));
242
+ const rendering = isRenderPath(target);
243
+ const asCommitted = committedPathOf(target);
244
+ const fromRepo = relative(repoRoot, asCommitted).split(sep).join("/");
239
245
  // The merge queue's verdict (#4644) is ours too, and holds no phase.
240
246
  const sources = readWorkflowSources(repoRoot, fromRepo).filter((s) => s.path !== MERGE_QUEUE_WORKFLOW_FILE);
241
247
  const scan = workflowsHolding(green, sources);
@@ -254,8 +260,8 @@ export async function runCiWorkflow(ctx) {
254
260
  }
255
261
  const base = member ? member.memberRoot : root;
256
262
  const parts = ["chant", "ci", "workflow", ...extra.flatMap((w) => ["--workflow", w])];
257
- if (ctx.args.output)
258
- parts.push("--output", relative(base, target).split(sep).join("/"));
263
+ if (ctx.args.output && !(rendering && asCommitted === join(repoRoot, CI_GREEN_WORKFLOW_FILE)))
264
+ parts.push("--output", relative(base, asCommitted).split(sep).join("/"));
259
265
  if (ctx.args.ciChant)
260
266
  parts.push("--chant", ctx.args.ciChant);
261
267
  if (ctx.args.ciInstall)
@@ -277,21 +283,22 @@ export async function runCiWorkflow(ctx) {
277
283
  const npmLock = ctx.args.ciInstall && existsSync(join(root, "package-lock.json")) ? (workspaceRoot === "." ? "package-lock.json" : `${workspaceRoot}/package-lock.json`) : undefined;
278
284
  const yaml = renderCiGreenWorkflow({ green, workflows, chantVersion: readerVersion(), workspaceRoot, chant: ctx.args.ciChant, install: ctx.args.ciInstall, npmLock, push, ...(runnerKeySecret ? { runnerKeySecret } : {}), ...(compose ? { compose } : {}) });
279
285
  const written = writeWorkflowFile(target, ciGreenHeader(command, member ? "member" : "root") + yaml);
280
- if (member)
286
+ if (member && !rendering)
281
287
  recordGeneratedFiles(member.memberRoot, [{ path: fromRepo, command }]);
282
288
  console.log(`Wrote ${written}: ticks when ${workflows.join(", ")} complete${workflows.length === 1 ? "s" : ""} on ${greenBranches(green).join(", ")}${compose ? " or a chant/compose/ branch" : ""}, and every 15 minutes.`);
283
289
  // #4644: the merge queue's verdict, beside the tick and from the same command.
284
290
  if (green.mergeQueue && !member) {
285
291
  const queue = renderMergeQueueWorkflow({ green, chantVersion: readerVersion(), workspaceRoot, chant: ctx.args.ciChant, install: ctx.args.ciInstall, npmLock });
286
- const at = writeWorkflowFile(join(repoRoot, MERGE_QUEUE_WORKFLOW_FILE), ciGreenHeader(command, "root") + queue);
292
+ const at = writeWorkflowFile(rendering ? renderPathOf(join(repoRoot, MERGE_QUEUE_WORKFLOW_FILE)) : join(repoRoot, MERGE_QUEUE_WORKFLOW_FILE), ciGreenHeader(command, "root") + queue);
287
293
  const retries = green.mergeQueue.retries;
288
294
  const again = retries > 0 ? `, re-running a failed job's workflow run up to ${retries} time${retries === 1 ? "" : "s"} first` : "";
289
295
  console.log(`Wrote ${at}: on each merge group, ${MERGE_QUEUE_VERDICT_JOB} passes when every required phase passed on the group's commit${again}. Require ${MERGE_QUEUE_VERDICT_JOB} in the branch's ruleset.`);
290
296
  }
291
297
  for (const e of edits) {
292
- if (!e.changed)
298
+ // A check renders every edited workflow, changed or not, so each has its twin in the render tree.
299
+ if (!e.changed && !rendering)
293
300
  continue;
294
- const path = writeWorkflowFile(join(repoRoot, e.path), e.text);
301
+ const path = writeWorkflowFile(rendering ? renderPathOf(join(repoRoot, e.path)) : join(repoRoot, e.path), e.text);
295
302
  console.log(e.build === "newest"
296
303
  ? `Wrote ${path}'s triggers and concurrency: ${e.phases.join(", ")} build${e.phases.length === 1 ? "s" : ""} the newest commit on ${greenBranches(green).join(", ")} when a run ends, and a ci/build/<sha> tag by hand.`
297
304
  : `Wrote ${path}'s triggers and concurrency: ${e.phases.join(", ")} build${e.phases.length === 1 ? "s" : ""} every commit on ${greenBranches(green).join(", ")}, none cancelled, and a ci/build/<sha> tag by hand when the forge ran nothing.`);
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * | kind | default read | how |
10
10
  * |---|---|---|
11
- * | `chant` | `live-read` | the member's `chant lifecycle diff <env> --live --json`, through `liveDiffDriftRecords` and, when a lexicon has a deep reader, `mergeDeepDrift`. `--components` adds `chant components status <env> --live --json` through `componentStatusDriftRecords`. Needs `--env` |
11
+ * | `chant` | `live-read` | the member's `chant lifecycle diff <env> --live --json`, each lexicon's section through `lexiconDriftRecords` (`liveDiffDriftRecords`, with `mergeDeepDrift` when a lexicon has a deep reader, and the section's `absent`, #4896). `--components` adds `chant components status <env> --live --json` through `componentStatusDriftRecords`. Needs `--env` |
12
12
  * | `terraform` | `state` | `chant lifecycle drift` in the member's reader project: the terraform lexicon's `readDrift`, `terraform show -json` over state, or `--read plan` for a saved plan's `show -json` |
13
13
  * | `choudoufu` | `ownership` | the same, through `choudoufu live-plan -json` (and `live-ls`), or `--read plan` for live-plan with a plan beside it; `--resource <addr>` passes `choudoufu live-plan -resource=<addr>`'s stream through |
14
14
  * | `pulumi` | `refresh` | `chant lifecycle drift` in the member's reader project: the pulumi lexicon's `readDrift`, `pulumi refresh --preview-only --json --target <urn>` per resource in the checked-in export, or `plunge drift --resource <urn> --stream` for a member on plunge; `--resource <urn>` reads that URN alone (#4455) |
@@ -1 +1 @@
1
- {"version":3,"file":"drift-cli.d.ts","sourceRoot":"","sources":["../../src/workspace/drift-cli.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AAKH,OAAO,KAAK,EAAE,cAAc,EAAc,MAAM,iBAAiB,CAAC;AAElE,OAAO,EAiBL,KAAK,aAAa,EAClB,KAAK,SAAS,EACd,KAAK,SAAS,EAEf,MAAM,iBAAiB,CAAC;AAWzB,sEAAsE;AACtE,eAAO,MAAM,sBAAsB,IAAI,CAAC;AAExC,mFAAmF;AACnF,eAAO,MAAM,iBAAiB,yUAcY,CAAC;AAC3C,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEhE,oGAAoG;AACpG,eAAO,MAAM,mBAAmB,EAAE,MAAM,CAAC,MAAM,EAAE,SAAS,SAAS,EAAE,CAKpE,CAAC;AAEF,8EAA8E;AAC9E,eAAO,MAAM,oBAAoB,EAAE,SAAS,MAAM,EAA4B,CAAC;AAa/E,wEAAwE;AACxE,eAAO,MAAM,iBAAiB,EAAE,SAAS,MAAM,EAAe,CAAC;AAE/D,6FAA6F;AAC7F,MAAM,MAAM,sBAAsB,GAAG,aAAa,GAAG;IACnD,QAAQ,EAAE,MAAM,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;IACd,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,CAAC,CAoFpF;AAED,sFAAsF;AACtF,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,eAAe,GAAG,sBAAsB,CAQjG;AAED,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAuC5E"}
@@ -8,7 +8,7 @@
8
8
  *
9
9
  * | kind | default read | how |
10
10
  * |---|---|---|
11
- * | `chant` | `live-read` | the member's `chant lifecycle diff <env> --live --json`, through `liveDiffDriftRecords` and, when a lexicon has a deep reader, `mergeDeepDrift`. `--components` adds `chant components status <env> --live --json` through `componentStatusDriftRecords`. Needs `--env` |
11
+ * | `chant` | `live-read` | the member's `chant lifecycle diff <env> --live --json`, each lexicon's section through `lexiconDriftRecords` (`liveDiffDriftRecords`, with `mergeDeepDrift` when a lexicon has a deep reader, and the section's `absent`, #4896). `--components` adds `chant components status <env> --live --json` through `componentStatusDriftRecords`. Needs `--env` |
12
12
  * | `terraform` | `state` | `chant lifecycle drift` in the member's reader project: the terraform lexicon's `readDrift`, `terraform show -json` over state, or `--read plan` for a saved plan's `show -json` |
13
13
  * | `choudoufu` | `ownership` | the same, through `choudoufu live-plan -json` (and `live-ls`), or `--read plan` for live-plan with a plan beside it; `--resource <addr>` passes `choudoufu live-plan -resource=<addr>`'s stream through |
14
14
  * | `pulumi` | `refresh` | `chant lifecycle drift` in the member's reader project: the pulumi lexicon's `readDrift`, `pulumi refresh --preview-only --json --target <urn>` per resource in the checked-in export, or `plunge drift --resource <urn> --stream` for a member on plunge; `--resource <urn>` reads that URN alone (#4455) |
@@ -44,7 +44,7 @@ import { existsSync } from "node:fs";
44
44
  import { resolve } from "node:path";
45
45
  import { formatError } from "../cli/format.js";
46
46
  import { graphNodeFor } from "../change-set-graph.js";
47
- import { componentStatusDriftRecords, countDriftStatuses, decodeDriftLines, deepDiffDriftRecords, DRIFT_READS, DRIFT_SCHEMA_ID, DRIFT_VERSION, driftExpected, driftPlanner, driftRecordLine, driftSettle, driftStart, encodeDriftLines, foldDriftLines, liveDiffDriftRecords, mergeDeepDrift, } from "../drift-record.js";
47
+ import { componentStatusDriftRecords, countDriftStatuses, decodeDriftLines, DRIFT_READS, DRIFT_SCHEMA_ID, DRIFT_VERSION, driftExpected, driftPlanner, driftRecordLine, driftSettle, driftStart, encodeDriftLines, foldDriftLines, lexiconDriftRecords, } from "../drift-record.js";
48
48
  import { readDeclaration, readerVersion, WORKSPACE_ERROR_CODES, WorkspaceReadError } from "./declaration.js";
49
49
  import { prepareKindReaders } from "./kind-readers.js";
50
50
  import { loadKindRegistry } from "./kinds.js";
@@ -154,16 +154,9 @@ function chantRecords(member, diffOut, componentsOut, observedAt, version) {
154
154
  const lexicons = [...Object.values(doc.lexicons ?? {}), ...Object.values(doc.stacks ?? {}).flatMap((s) => Object.values(s))];
155
155
  const base = { member, observedAt, ...(version ? { version } : {}) };
156
156
  const out = [];
157
- for (const lex of lexicons) {
158
- if (!lex.resources)
159
- continue;
160
- const types = {};
161
- for (const [name, meta] of Object.entries(lex.observed ?? {}))
162
- if (typeof meta?.type === "string")
163
- types[name] = meta.type;
164
- const thin = liveDiffDriftRecords({ ...base, diff: lex.resources, types });
165
- out.push(...(lex.deep ? mergeDeepDrift(thin, deepDiffDriftRecords({ ...base, diff: lex.deep })) : thin));
166
- }
157
+ // The section's own `absent` (#4896): the sql lexicon's confirmed-absent objects are missing, not pending.
158
+ for (const section of lexicons)
159
+ out.push(...lexiconDriftRecords({ ...base, section }));
167
160
  if (componentsOut !== undefined) {
168
161
  let rows;
169
162
  try {
@@ -21,6 +21,7 @@
21
21
  * reason, and its number still stands. After a network failure, a 401 or a
22
22
  * 403, the rest are answered with the same reason without another call.
23
23
  */
24
+ import { forgeKindOfHost } from "../forge-remote.js";
24
25
  import { type ForgeFetch, type ForgeKind } from "../pr-forge.js";
25
26
  /** What the forge says one pull request closes. */
26
27
  export interface PullRequestCloses {
@@ -57,8 +58,8 @@ export interface ForgeWorkOptions {
57
58
  /** How long one call may take. Default 15 seconds. */
58
59
  timeoutMs?: number;
59
60
  }
60
- /** The forge kind a remote host is: github.com and hosts named for GitHub, GitLab, or Forgejo and Gitea (codeberg.org too). Null for any other. */
61
- export declare function forgeKindOfHost(host: string): ForgeKind | null;
61
+ /** The forge kind a remote host is, as `@intentius/chant/forge-remote` reads it (#4920). */
62
+ export { forgeKindOfHost };
62
63
  /** The REST base of a forge at `host`, as the clients take it. */
63
64
  export declare function forgeApiBase(kind: ForgeKind, host: string): string;
64
65
  /** A reader of what pull requests close, for the repository at `top`. */
@@ -1 +1 @@
1
- {"version":3,"file":"forge-work.d.ts","sourceRoot":"","sources":["../../src/workspace/forge-work.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAKH,OAAO,EAAkF,KAAK,UAAU,EAAE,KAAK,SAAS,EAAkC,MAAM,aAAa,CAAC;AAE9K,mDAAmD;AACnD,MAAM,WAAW,iBAAiB;IAChC,uFAAuF;IACvF,QAAQ,EAAE,OAAO,CAAC;IAClB,uEAAuE;IACvE,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,uDAAuD;IACvD,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,uEAAuE;AACvE,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,gDAAgD;IAChD,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,eAAe;IAC9B,6DAA6D;IAC7D,MAAM,EAAE,eAAe,GAAG,IAAI,CAAC;IAC/B,4EAA4E;IAC5E,MAAM,CAAC,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,iBAAiB,CAAC,CAAC;IAC/C,yDAAyD;IACzD,SAAS,CAAC,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,GAAG,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,iBAAiB,CAAC,CAAC,CAAC;CAC3E;AAED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eAAe,CAAC,OAAO,EAAE;IAAE,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAAC,MAAM,CAAC,EAAE,iBAAiB,GAAG,IAAI,CAAA;CAAE,EAAE,EAAE,MAAM,EAAE,eAAe,GAAG,OAAO,CAAC,IAAI,CAAC,CAG1J"}
@@ -22,8 +22,7 @@
22
22
  * 403, the rest are answered with the same reason without another call.
23
23
  */
24
24
  import { execFileSync } from "node:child_process";
25
- import { remoteRepoPath } from "../op/activities/forge-pull-request.js";
26
- import { remoteHost } from "../op/activities/gh-host.js";
25
+ import { forgeKindOfHost, forgeOfRemote } from "../forge-remote.js";
27
26
  import { detectForge, FORGE_TOKEN_ORDER, ForgeApiError, forgeClient, forgeTargetFromEnv } from "../pr-forge.js";
28
27
  /** How many pull requests are asked about at once. */
29
28
  const CONCURRENCY = 4;
@@ -43,17 +42,8 @@ function ghAuthToken(host) {
43
42
  return undefined;
44
43
  }
45
44
  }
46
- /** The forge kind a remote host is: github.com and hosts named for GitHub, GitLab, or Forgejo and Gitea (codeberg.org too). Null for any other. */
47
- export function forgeKindOfHost(host) {
48
- const h = host.toLowerCase().replace(/:\d+$/, "");
49
- if (h === "github.com" || /(^|[.-])github([.-]|$)/.test(h))
50
- return "github";
51
- if (h === "gitlab.com" || /(^|[.-])gitlab([.-]|$)/.test(h))
52
- return "gitlab";
53
- if (h === "codeberg.org" || /(^|[.-])(forgejo|gitea)([.-]|$)/.test(h))
54
- return "forgejo";
55
- return null;
56
- }
45
+ /** The forge kind a remote host is, as `@intentius/chant/forge-remote` reads it (#4920). */
46
+ export { forgeKindOfHost };
57
47
  /** The REST base of a forge at `host`, as the clients take it. */
58
48
  export function forgeApiBase(kind, host) {
59
49
  if (kind === "github")
@@ -75,11 +65,11 @@ function locate(top, opts) {
75
65
  const url = opts.remoteUrl !== undefined ? opts.remoteUrl : gitRemote(top);
76
66
  if (!url)
77
67
  return { source: null, reason: "there is no origin remote to name the forge" };
78
- const host = remoteHost(url);
79
- const repo = remoteRepoPath(url);
80
- const kind = host ? forgeKindOfHost(host) : null;
81
- if (!host || !repo || !kind)
68
+ // #4920: the origin remote's forge, as `@intentius/chant/forge-remote` reads it.
69
+ const at = forgeOfRemote(url);
70
+ if (!at)
82
71
  return { source: null, reason: `origin (${url}) is not on a forge chant reads issues from: GitHub, GitLab or Forgejo` };
72
+ const { kind, host, repo } = at;
83
73
  const source = { kind, host, repo };
84
74
  const names = ["CHANT_FORGE_TOKEN", ...FORGE_TOKEN_ORDER[kind]];
85
75
  const tokenSource = names.find((n) => env[n]?.trim());
@@ -58,8 +58,8 @@ function staticInclude(read) {
58
58
  /**
59
59
  * Only the files under the member's `sourceDir`, when its config sets one, as
60
60
  * a build reads them (#3941). Without one, every source file of the member
61
- * but its top-level `scripts/`, which a root build leaves out (#4794,
62
- * `ROOT_SOURCE_EXCLUDES`) unless `include` brings it back.
61
+ * but its top-level `scripts/` and `migrations/`, which a root build leaves
62
+ * out (#4794, #4921, `ROOT_SOURCE_EXCLUDES`) unless `include` brings one back.
63
63
  */
64
64
  function withinSourceDir(files, member, sourceDir, include = []) {
65
65
  if (!sourceDir) {
@@ -1 +1 @@
1
- {"version":3,"file":"release-train.d.ts","sourceRoot":"","sources":["../../src/workspace/release-train.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAKH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAMtD,MAAM,WAAW,WAAW;IAC1B,MAAM,EAAE,MAAM,CAAC;IACf,aAAa,EAAE,MAAM,CAAC;IACtB,gCAAgC;IAChC,MAAM,EAAE,MAAM,CAAC;IACf,iDAAiD;IACjD,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,CAAC,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAA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M,WAAW,kBAAkB;IACjC,OAAO,EAAE,CAAC,CAAC;IACX,EAAE,EAAE,MAAM,CAAC;IACX,GAAG,EAAE,MAAM,CAAC;IACZ,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,MAAM,CAAC;IACd,qCAAqC;IACrC,OAAO,EAAE,WAAW,EAAE,CAAC;CACxB;AAID,sEAAsE;AACtE,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,QAAQ,EAAE,WAAW,EAAE,CAAC;CACzB;AAED;;;;GAIG;AACH,wBAAgB,SAAS,CAAC,OAAO,EAAE,SAAS,cAAc,EAAE,EAAE,IAAI,GAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAa,GAAG;IAAE,OAAO,EAAE,WAAW,EAAE,CAAA;CAAE,GAAG;IAAE,QAAQ,EAAE,MAAM,EAAE,CAAA;CAAE,CAgBhK;AAED,+EAA+E;AAC/E,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,CAkB/E;AAOD,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC;IAAE,OAAO,EAAE,kBAAkB,EAAE,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,CAE/H;AAED,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,GAAG,OAAO,CAAC,MAAM,CAAC,CAEjG;AAID,wBAAsB,iBAAiB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAiD5E"}
@@ -16,6 +16,7 @@ import { readAllReleases, readCuts } from "../lifecycle/release-store.js";
16
16
  import { readDeclaration, WorkspaceReadError } from "./declaration.js";
17
17
  import { locateWorkspace } from "./which-chant.js";
18
18
  import { appendWorkspaceLine, readWorkspaceLines } from "./workspace-ledger.js";
19
+ import { actorFromEnv } from "../actor.js";
19
20
  const TRAINS_FILE = "trains.jsonl";
20
21
  /**
21
22
  * Pick each member's release, pure. `pins` maps a member to a label or a
@@ -112,7 +113,7 @@ export async function runWorkspaceTrain(ctx) {
112
113
  console.error(` ${p}`);
113
114
  return 1;
114
115
  }
115
- const actor = ctx.args.actor ?? process.env.GITHUB_ACTOR ?? process.env.GITLAB_USER_LOGIN ?? process.env.USER ?? "unknown";
116
+ const actor = ctx.args.actor ?? actorFromEnv();
116
117
  const record = { version: 1, id: `train-${randomUUID()}`, env, timestamp: new Date().toISOString(), actor, members: picked.members };
117
118
  if (!ctx.args.dryRun)
118
119
  await appendReleaseTrain(root, record);
@@ -34,9 +34,9 @@ export interface ReleasePipelineConfig {
34
34
  env?: Record<string, string>;
35
35
  /**
36
36
  * Steps the cut and publish jobs run after the install (#4751): `{ run }`,
37
- * or `{ uses, with }` on GitHub and Forgejo, such as QEMU's binfmt handlers
38
- * for a two-platform image build, or a newer npm. GitLab takes `run` steps
39
- * as script lines and refuses `uses` by name.
37
+ * or `{ uses, with }` on GitHub and Forgejo, such as a newer npm. GitLab
38
+ * takes `run` steps as script lines and refuses `uses` by name. QEMU for
39
+ * the platforms `release.images` builds is set up without one (#4876).
40
40
  */
41
41
  setup?: OpSetupStep[];
42
42
  /** Where the workflow is written, from the repository root, such as `.github/workflows/publish.yml` for an npm trusted publisher that names that file. Default {@link RELEASE_WORKFLOW_FILES}. */
@@ -66,6 +66,12 @@ export interface ReleaseWorkflowInput {
66
66
  * two jobs cannot change what is published.
67
67
  */
68
68
  imageArchives?: string[];
69
+ /**
70
+ * The platforms `release.images` builds (#4876). Those the runner can't run
71
+ * ({@link RELEASE_RUNNER_PLATFORM}) get QEMU's binfmt handlers in the cut
72
+ * and publish jobs, before `release.workflow.setup`.
73
+ */
74
+ imagePlatforms?: string[];
69
75
  /** `release.lane` (#4692): the gate's green lane. */
70
76
  lane?: string;
71
77
  /**
@@ -120,6 +126,24 @@ export declare const NPM_TRUSTED_PUBLISHING_SETUP = "have=\"$(npm --version)\";
120
126
  * nothing.
121
127
  */
122
128
  export declare function targetExtras(forge: ReleaseWorkflowForge, targets: ReadonlyArray<ReleaseWorkflowTarget>, p: ReleasePipelineConfig): Pick<ReleasePipelineConfig, "permissions" | "env" | "setup">;
129
+ /** The platform the jobs `chant release workflow` writes run on: GitHub's and Forgejo's `ubuntu-latest`, and a GitLab runner's default (#4876). */
130
+ export declare const RELEASE_RUNNER_PLATFORM = "linux/amd64";
131
+ /** The binfmt image a GitLab job installs QEMU's handlers with (#4876): the repository, which a config's own setup line is recognised by. */
132
+ export declare const RELEASE_BINFMT_IMAGE: string;
133
+ /** The architectures among `platforms` the runner can't run, as QEMU names them (`linux/arm/v7` is `arm`), each once. */
134
+ export declare function qemuArchitectures(platforms: readonly string[]): string[];
135
+ /**
136
+ * QEMU's binfmt setup for the platforms `release.images` builds that the
137
+ * runner can't, such as `linux/arm64` on an amd64 runner (#4876), so no
138
+ * product names it in `release.workflow.setup`. GitHub and Forgejo get
139
+ * `docker/setup-qemu-action` at its pin; GitLab a `docker run --privileged`
140
+ * of {@link RELEASE_BINFMT_IMAGE} by the digest `IMAGE_PINS.binfmt` records
141
+ * (#4941, ../image-pins.ts), which `chant release workflow` notes needs
142
+ * an executor that runs privileged containers. A config whose `setup` names
143
+ * the action or the binfmt image already gets nothing more, so its file
144
+ * renders as it did.
145
+ */
146
+ export declare function qemuSetup(forge: ReleaseWorkflowForge, platforms: readonly string[], p: ReleasePipelineConfig): OpSetupStep[];
123
147
  /** The flags `chant release publish` gets under the groups. */
124
148
  export declare function publishFlags(groups: ReadonlySet<SecurityGroup>): string[];
125
149
  /** Where `chant release images` writes the digests the publish job's build reads (#4657), by default and at a workstation. */
@@ -1 +1 @@
1
- {"version":3,"file":"release-workflow.d.ts","sourceRoot":"","sources":["../../src/workspace/release-workflow.ts"],"names":[],"mappings":"AAgCA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAA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iEAAiE;AACjE,wBAAgB,qBAAqB,CAAC,KAAK,EAAE,oBAAoB,GAAG,MAAM,CAoHzE;AAuFD,wEAAwE;AACxE,eAAO,MAAM,uBAAuB,yBAAyB,CAAC;AAuN9D,wFAAwF;AACxF,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAE7D;AAED;;;;GAIG;AACH,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,OAAO,iBAAiB,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAuEvG"}
@@ -28,7 +28,8 @@
28
28
  * renders the tag-triggered file it always did.
29
29
  */
30
30
  import { ACTION_PINS, tagComments, usesRef } from "../action-pins.js";
31
- import { resolveReleaseImages } from "../lifecycle/release-images.js";
31
+ import { IMAGE_PINS, imageRef } from "../image-pins.js";
32
+ import { releaseImagePlatforms, resolveReleaseImages } from "../lifecycle/release-images.js";
32
33
  import { GENERATED_MARKER } from "../discovery/files.js";
33
34
  export const RELEASE_WORKFLOW_FORGES = ["github", "forgejo", "gitlab"];
34
35
  /** Where each forge's publish workflow is written, relative to the repository root. */
@@ -73,6 +74,34 @@ export function targetExtras(forge, targets, p) {
73
74
  const setup = npm && !(p.setup ?? []).some((s) => !("uses" in s) && s.run === NPM_TRUSTED_PUBLISHING_SETUP) ? [{ run: NPM_TRUSTED_PUBLISHING_SETUP }] : [];
74
75
  return { ...(permissions ? { permissions } : {}), ...(Object.keys(env).length > 0 ? { env } : {}), ...(setup.length > 0 ? { setup } : {}) };
75
76
  }
77
+ /** The platform the jobs `chant release workflow` writes run on: GitHub's and Forgejo's `ubuntu-latest`, and a GitLab runner's default (#4876). */
78
+ export const RELEASE_RUNNER_PLATFORM = "linux/amd64";
79
+ /** The binfmt image a GitLab job installs QEMU's handlers with (#4876): the repository, which a config's own setup line is recognised by. */
80
+ export const RELEASE_BINFMT_IMAGE = IMAGE_PINS.binfmt.repository;
81
+ /** The architectures among `platforms` the runner can't run, as QEMU names them (`linux/arm/v7` is `arm`), each once. */
82
+ export function qemuArchitectures(platforms) {
83
+ return [...new Set(platforms.filter((p) => p.split("/").slice(0, 2).join("/") !== RELEASE_RUNNER_PLATFORM).map((p) => p.split("/")[1] ?? p))].sort();
84
+ }
85
+ /**
86
+ * QEMU's binfmt setup for the platforms `release.images` builds that the
87
+ * runner can't, such as `linux/arm64` on an amd64 runner (#4876), so no
88
+ * product names it in `release.workflow.setup`. GitHub and Forgejo get
89
+ * `docker/setup-qemu-action` at its pin; GitLab a `docker run --privileged`
90
+ * of {@link RELEASE_BINFMT_IMAGE} by the digest `IMAGE_PINS.binfmt` records
91
+ * (#4941, ../image-pins.ts), which `chant release workflow` notes needs
92
+ * an executor that runs privileged containers. A config whose `setup` names
93
+ * the action or the binfmt image already gets nothing more, so its file
94
+ * renders as it did.
95
+ */
96
+ export function qemuSetup(forge, platforms, p) {
97
+ const archs = qemuArchitectures(platforms);
98
+ if (archs.length === 0)
99
+ return [];
100
+ const named = (p.setup ?? []).some((s) => ("uses" in s ? /^docker\/setup-qemu-action@/.test(s.uses) : s.run.includes(RELEASE_BINFMT_IMAGE)));
101
+ if (named)
102
+ return [];
103
+ return forge === "gitlab" ? [{ run: `docker run --privileged --rm ${imageRef(IMAGE_PINS.binfmt)} --install ${archs.join(",")}` }] : [{ uses: usesRef(ACTION_PINS.dockerSetupQemu4), with: { platforms: archs.join(",") } }];
104
+ }
76
105
  /** The flags `chant release publish` gets under the groups. */
77
106
  export function publishFlags(groups) {
78
107
  return [...(groups.has("supply-chain") ? ["--require-provenance"] : []), "--yes"];
@@ -109,11 +138,13 @@ export function renderReleaseWorkflow(input) {
109
138
  const version = input.version === true;
110
139
  // #4786: the targets' own needs first, then the config's, so a config that set them by hand renders the same file without them.
111
140
  const derived = targetExtras(input.forge, input.publish ?? [], p);
141
+ // #4876: QEMU before the config's setup, where the products named it.
142
+ const qemu = images ? qemuSetup(input.forge, input.imagePlatforms ?? [], p) : [];
112
143
  const extra = jobExtras({
113
144
  ...p,
114
145
  ...(derived.permissions ? { permissions: { ...p.permissions, ...derived.permissions } } : {}),
115
146
  ...(derived.env ? { env: { ...p.env, ...derived.env } } : {}),
116
- ...(derived.setup ? { setup: [...(p.setup ?? []), ...derived.setup] } : {}),
147
+ ...(derived.setup || qemu.length > 0 ? { setup: [...qemu, ...(p.setup ?? []), ...(derived.setup ?? [])] } : {}),
117
148
  }, input.forge);
118
149
  // #4767: Forgejo's job token is not a GitHub token, and GitLab has no such expression.
119
150
  const forgeToken = input.forge === "github" && p.env?.GITHUB_TOKEN === undefined && (input.publish ?? []).some((t) => t.type === "forge" && t.forge === "github" && !t.tokenEnv)
@@ -212,11 +243,16 @@ function jobExtras(p, forge) {
212
243
  for (const s of setup)
213
244
  if (!("uses" in s) && s.run.trim() === "")
214
245
  throw new Error(`${where}.setup: a run step is empty`);
246
+ for (const s of setup)
247
+ if (s.name !== undefined && (s.name.trim() === "" || /[\r\n]/.test(s.name)))
248
+ throw new Error(`${where}.setup: a step's name is blank or more than one line`);
215
249
  }
216
250
  const q = (v) => JSON.stringify(v);
217
251
  const map = (indent, entries) => entries.map(([k, v]) => `${indent}${k}: ${q(v)}`);
252
+ // #4932: a named step opens with its name.
218
253
  const githubSteps = setup.flatMap((s) => [
219
- "uses" in s ? ` - uses: ${s.uses}` : ` - run: ${q(s.run)}`,
254
+ ...(s.name !== undefined ? [` - name: ${q(s.name)}`] : []),
255
+ ` ${s.name !== undefined ? " " : "-"} ${"uses" in s ? `uses: ${s.uses}` : `run: ${q(s.run)}`}`,
220
256
  ...("uses" in s && s.with && Object.keys(s.with).length > 0 ? [" with:", ...map(" ", Object.entries(s.with))] : []),
221
257
  ...(s.env && Object.keys(s.env).length > 0 ? [" env:", ...map(" ", Object.entries(s.env))] : []),
222
258
  ]);
@@ -489,7 +525,7 @@ export async function runReleaseWorkflow(ctx) {
489
525
  groups,
490
526
  workspaceRoot,
491
527
  ...(release?.workflow ? { pipeline: release.workflow } : {}),
492
- ...((release?.images?.length ?? 0) > 0 ? { images: true, imageArchives: resolveReleaseImages(release.images).map((i) => i.archive) } : {}),
528
+ ...((release?.images?.length ?? 0) > 0 ? { images: true, imageArchives: resolveReleaseImages(release.images).map((i) => i.archive), imagePlatforms: releaseImagePlatforms(release.images) } : {}),
493
529
  ...(release?.lane ? { lane: release.lane } : {}),
494
530
  ...(release?.version ? { version: true } : {}),
495
531
  ...(release?.publish ? { publish: release.publish } : {}),
@@ -497,7 +533,12 @@ export async function runReleaseWorkflow(ctx) {
497
533
  ...(args.buildCommand ? { build: args.buildCommand } : {}),
498
534
  ...(args.ciChant ? { chant: args.ciChant } : {}),
499
535
  });
500
- const target = args.output ? resolve(process.cwd(), args.output) : join(repoRoot, release?.workflow?.file ?? RELEASE_WORKFLOW_FILES[forge]);
536
+ // #4909: under `chant dev generated-check` the header names the committed file the render stands for.
537
+ // #4950: with no --output the file goes to the render tree too, so a render needs no `--output {out}/...`.
538
+ const { committedPathOf, isRenderPath, renderPathOf } = await import("../generated-check.js");
539
+ const defaultTarget = join(repoRoot, release?.workflow?.file ?? RELEASE_WORKFLOW_FILES[forge]);
540
+ const target = args.output ? resolve(process.cwd(), args.output) : renderPathOf(defaultTarget);
541
+ const asCommitted = committedPathOf(target);
501
542
  const parts = ["chant", "release", "workflow", "--forge", forge];
502
543
  if (args.ciInstall)
503
544
  parts.push("--install", args.ciInstall);
@@ -505,8 +546,8 @@ export async function runReleaseWorkflow(ctx) {
505
546
  parts.push("--build", args.buildCommand);
506
547
  if (args.ciChant)
507
548
  parts.push("--chant", args.ciChant);
508
- if (args.output)
509
- parts.push("--output", relative(root, target).split(sep).join("/"));
549
+ if (args.output && !(isRenderPath(target) && asCommitted === defaultTarget))
550
+ parts.push("--output", relative(root, asCommitted).split(sep).join("/"));
510
551
  mkdirSync(dirname(target), { recursive: true });
511
552
  writeFileSync(target, releaseWorkflowHeader(parts.map(shellArg).join(" ")) + text);
512
553
  const shown = relative(process.cwd(), target).split(sep).join("/") || target;
@@ -515,6 +556,10 @@ export async function runReleaseWorkflow(ctx) {
515
556
  console.log(formatSuccess(`Wrote ${shown}: ${what}${extras.length > 0 ? `, and ${extras.join(" and ")}` : ""}.`));
516
557
  if (forge === "gitlab")
517
558
  console.log(`Include it from .gitlab-ci.yml: include: [{ local: ${release?.workflow?.file ?? RELEASE_WORKFLOW_FILES.gitlab} }]`);
559
+ // #4876: a GitLab executor that refuses privileged containers can't install the handlers from the job.
560
+ const archs = (release?.images?.length ?? 0) > 0 ? qemuArchitectures(releaseImagePlatforms(release.images)) : [];
561
+ if (forge === "gitlab" && archs.length > 0 && text.includes(`${RELEASE_BINFMT_IMAGE} --install`))
562
+ console.log(`The cut and publish jobs install QEMU's binfmt handlers for ${archs.join(", ")} with docker run --privileged ${RELEASE_BINFMT_IMAGE}: the runner's executor must run privileged containers, or have the handlers installed on its host.`);
518
563
  if (forge === "gitlab" && release?.workflow?.trigger === "dispatch")
519
564
  console.log("The cut and publish jobs push with CHANT_RELEASE_TOKEN: a project access token with write_repository, as a masked CI/CD variable.");
520
565
  return 0;
@@ -42,14 +42,37 @@ export interface CheckEvidenceNote {
42
42
  reason: string;
43
43
  }>;
44
44
  }
45
- /** The checks to sign from the plan job's hand-off directory and result, and those left unsigned with why. */
46
- export declare function planReportChecks(dir: string, result: string | undefined): {
45
+ /**
46
+ * The checks to sign from the plan job's hand-off directory and result, and
47
+ * those left unsigned with why. #4964: a workspace member's plan job plans
48
+ * that member alone, so with `member` the two are `plan:<member>` and
49
+ * `policy:<member>`.
50
+ */
51
+ export declare function planReportChecks(dir: string, result: string | undefined, member?: string): {
47
52
  sign: Array<{
48
53
  check: string;
49
54
  claim?: Buffer;
50
55
  }>;
51
56
  skipped: CheckEvidenceNote["skipped"];
52
57
  };
58
+ /**
59
+ * What a GitLab signing job in the target branch's pipeline keeps for one
60
+ * merge request (#4914), `<out>/<iid>/evidence.json`: the note, with the
61
+ * merge request and the head it was signed for, so the note job uses it
62
+ * only for that head.
63
+ */
64
+ export interface OpenEvidenceFile extends CheckEvidenceNote {
65
+ pr: number;
66
+ head: string;
67
+ }
68
+ /**
69
+ * The `evidence.json` the signing job kept for merge request `pr` at
70
+ * `head` under `dir` (#4914), as text for the note job's report directory,
71
+ * or undefined when it kept none for that head. The file comes from a job
72
+ * of the same target-branch pipeline, which ran none of the change's code;
73
+ * it is read as data all the same.
74
+ */
75
+ export declare function openEvidenceFor(dir: string, pr: number, head: string): string | undefined;
53
76
  /**
54
77
  * The line the plan note ends with when the signing step wrote
55
78
  * {@link CHECK_EVIDENCE_FILE} in `dir`, or undefined when it did not.
@@ -1 +1 @@
1
- {"version":3,"file":"check-evidence-report.d.ts","sourceRoot":"","sources":["../../../src/workspace/trust/check-evidence-report.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;GAiBG;AAKH,oHAAoH;AACpH,eAAO,MAAM,sBAAsB,qBAAqB,CAAC;AAEzD,4HAA4H;AAC5H,eAAO,MAAM,sBAAsB,6BAA6B,CAAC;AAEjE;;;GAGG;AACH,eAAO,MAAM,mBAAmB,0BAA0B,CAAC;AAE3D,iHAAiH;AACjH,eAAO,MAAM,oBAAoB,4BAA4B,CAAC;AAE9D,sFAAsF;AACtF,eAAO,MAAM,mBAAmB,kBAAkB,CAAC;AAEnD,2DAA2D;AAC3D,MAAM,WAAW,iBAAiB;IAChC,MAAM,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAC/E,OAAO,EAAE,KAAK,CAAC;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACnD;AAkCD,8GAA8G;AAC9G,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,SAAS,GAAG;IAAE,IAAI,EAAE,KAAK,CAAC;QAAE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AAE,iBAAiB,CAAC,SAAS,CAAC,CAAA;CAAE,CAoBpL;AAED;;;;;GAKG;AACH,MAAM,WAAW,gBAAiB,SAAQ,iBAAiB;IACzD,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;;;;GAMG;AACH,wBAAgB,eAAe,CAAC,GAAG,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAIzF;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAWrE"}
@@ -66,29 +66,49 @@ function policyOf(dir) {
66
66
  const standing = overrides.filter((o) => !o.override).length;
67
67
  return standing === 0 ? { passed: true, reason: "the policy denied nothing that stands" } : { passed: false, reason: `the policy denied ${standing} unit${standing === 1 ? "" : "s"} with no override` };
68
68
  }
69
- /** The checks to sign from the plan job's hand-off directory and result, and those left unsigned with why. */
70
- export function planReportChecks(dir, result) {
69
+ /**
70
+ * The checks to sign from the plan job's hand-off directory and result, and
71
+ * those left unsigned with why. #4964: a workspace member's plan job plans
72
+ * that member alone, so with `member` the two are `plan:<member>` and
73
+ * `policy:<member>`.
74
+ */
75
+ export function planReportChecks(dir, result, member) {
76
+ const planCheck = member ? `plan:${member}` : "plan";
77
+ const policyCheck = member ? `policy:${member}` : "policy";
71
78
  const file = [REPORT_FILE, HANDOFF_FILE].map((f) => join(dir, f)).find((f) => existsSync(f));
72
79
  if (result !== "success") {
73
80
  const why = `the plan job's result is ${result ?? "not given"}`;
74
- return { sign: [], skipped: [{ check: "plan", reason: why }, { check: "policy", reason: why }] };
81
+ return { sign: [], skipped: [{ check: planCheck, reason: why }, { check: policyCheck, reason: why }] };
75
82
  }
76
83
  if (!file) {
77
84
  const why = `the plan job left no ${REPORT_FILE} or ${HANDOFF_FILE}`;
78
- return { sign: [], skipped: [{ check: "plan", reason: why }, { check: "policy", reason: why }] };
85
+ return { sign: [], skipped: [{ check: planCheck, reason: why }, { check: policyCheck, reason: why }] };
79
86
  }
80
87
  const claim = readFileSync(file);
81
- const sign = [{ check: "plan", claim }];
88
+ const sign = [{ check: planCheck, claim }];
82
89
  const skipped = [];
83
90
  const policy = policyOf(dir);
84
91
  if (policy === null)
85
- skipped.push({ check: "policy", reason: "the plan ran no policy" });
92
+ skipped.push({ check: policyCheck, reason: "the plan ran no policy" });
86
93
  else if (policy.passed)
87
- sign.push({ check: "policy", claim });
94
+ sign.push({ check: policyCheck, claim });
88
95
  else
89
- skipped.push({ check: "policy", reason: policy.reason });
96
+ skipped.push({ check: policyCheck, reason: policy.reason });
90
97
  return { sign, skipped };
91
98
  }
99
+ /**
100
+ * The `evidence.json` the signing job kept for merge request `pr` at
101
+ * `head` under `dir` (#4914), as text for the note job's report directory,
102
+ * or undefined when it kept none for that head. The file comes from a job
103
+ * of the same target-branch pipeline, which ran none of the change's code;
104
+ * it is read as data all the same.
105
+ */
106
+ export function openEvidenceFor(dir, pr, head) {
107
+ const doc = readJson(join(dir, String(pr), CHECK_EVIDENCE_FILE));
108
+ if (!doc || doc.pr !== pr || doc.head !== head || !Array.isArray(doc.signed) || !Array.isArray(doc.skipped))
109
+ return undefined;
110
+ return JSON.stringify({ signed: doc.signed, skipped: doc.skipped }, null, 2) + "\n";
111
+ }
92
112
  /**
93
113
  * The line the plan note ends with when the signing step wrote
94
114
  * {@link CHECK_EVIDENCE_FILE} in `dir`, or undefined when it did not.
@@ -89,13 +89,24 @@ export declare function commitAndTree(repo: string, rev: string): {
89
89
  commit: string;
90
90
  tree: string;
91
91
  };
92
- /** The check's statement over `commit`, with the digest of what it said when given. */
92
+ /** Where a check's pass was read from (#4926): the forge's run and job ids, and the step whose conclusion said so. */
93
+ export interface CheckSource {
94
+ run: number;
95
+ job: number;
96
+ step?: string;
97
+ }
98
+ /**
99
+ * The check's statement over `commit`, with the digest of what it said when
100
+ * given, and (#4926) the run, job and step a signer outside the check's job
101
+ * read its pass from, so a verifier can look them up.
102
+ */
93
103
  export declare function checkStatement(input: {
94
104
  commit: string;
95
105
  tree: string;
96
106
  check: string;
97
107
  runner: string;
98
108
  claim?: Buffer | string;
109
+ source?: CheckSource;
99
110
  }): EvidenceStatement;
100
111
  /** One check signed. */
101
112
  export interface SignedCheck {
@@ -109,6 +120,7 @@ export interface SignedCheck {
109
120
  export declare function signChecks(repo: string, at: string, checks: readonly {
110
121
  check: string;
111
122
  claim?: Buffer | string;
123
+ source?: CheckSource;
112
124
  }[], signer: EvidenceSigner): Promise<SignedCheck[]>;
113
125
  /**
114
126
  * Attach each envelope to its commit's evidence note and push
@@ -1 +1 @@
1
- {"version":3,"file":"check-evidence.d.ts","sourceRoot":"","sources":["../../../src/workspace/trust/check-evidence.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAOH,OAAO,EAA0D,KAAK,YAAY,EAAE,MAAM,QAAQ,CAAC;AACnG,OAAO,EAA6D,KAAK,iBAAiB,EAAE,MAAM,YAAY,CAAC;AAG/G,OAAO,EAAkB,kBAAkB,EAAqB,MAAM,YAAY,CAAC;AACnF,OAAO,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,MAAM,yBAAyB,CAAC;AAEtF,OAAO,EAAE,sBAAsB,EAAE,mBAAmB,EAAE,CAAC;AAEvD,OAAO,EAAE,kBAAkB,EAAE,CAAC;AAE9B,sGAAsG;AACtG,eAAO,MAAM,oBAAoB,YAAI,MAAM,EAAE,QAAQ,CAAU,CAAC;AAEhE;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,yFAAyF;IACzF,SAAS,EAAE,MAAM,CAAC;IAClB,IAAI,CAAC,WAAW,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,YAAY,GAAG,OAAO,CAAC,YAAY,CAAC,CAAC;CAClF;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,qBAAqB,CAAC,IAAI,EAAE,MAAM,EAAE,IAA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