@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
@@ -0,0 +1,118 @@
1
+ /**
2
+ * Locks on what a change reaches (#4979): `chant lock --reach`.
3
+ *
4
+ * A pull request's plan locks (`ci.locks: plan`, #4293) come from what its
5
+ * plan selected, which the plan job, running the change's code, wrote. A
6
+ * product that knows from the change's files alone which of its targets a
7
+ * change reaches, such as terragucci's roots, units and instances, gives a
8
+ * reach line instead: one shell line, written in the pipeline at the target
9
+ * branch's commit, that prints the targets the change from `$BASE_SHA` to
10
+ * `$HEAD_SHA` reaches, one a line. It reads the change as data from git
11
+ * (`git diff`, `git show <sha>:<path>`) and runs none of its code.
12
+ *
13
+ * The lock job runs it in a checkout of the target branch's commit. chant
14
+ * first fetches the pull request's head from the forge (`refs/pull/<n>/head`,
15
+ * GitLab's `refs/merge-requests/<n>/head`) and checks it is still the commit
16
+ * the job was started for: a head that moved is left to the run of the push
17
+ * that moved it. The line's variables are `BASE_SHA`, `HEAD_SHA` and
18
+ * `PR_NUMBER`; it holds the job's environment, and the line is the
19
+ * pipeline's, so none of the change's code runs with the job's token.
20
+ *
21
+ * On GitLab a merge request's pipeline is built from the merge request's own
22
+ * files, so its lock job runs in the target branch's plan notes pipeline and
23
+ * locks every open merge request from the project (`--open`), and releases
24
+ * the locks of a merge request that is no longer open.
25
+ */
26
+ import { spawnSync } from "node:child_process";
27
+ /** The variable the reach line is in: the pipeline's, set as the step's variable so no shell quoting carries it (#4979). */
28
+ export const LOCK_REACH_ENV = "CHANT_LOCK_REACH";
29
+ /** Where chant fetches the pull request's head to before the reach line runs (#4979). */
30
+ export const REACH_HEAD_REF = "refs/remotes/chant/pull-request-head";
31
+ /** A target name a reach line may print: no control characters, at most 512 characters. */
32
+ const TARGET_LINE = /^[^\u0000-\u001f\u007f]{1,512}$/;
33
+ const SHA = /^(?:[0-9a-f]{40}|[0-9a-f]{64})$/;
34
+ /** The forge's ref for pull request `pr`'s head. */
35
+ export function pullRequestHeadRef(forge, pr) {
36
+ return forge === "gitlab" ? `refs/merge-requests/${pr}/head` : `refs/pull/${pr}/head`;
37
+ }
38
+ const defaultRun = (argv, o) => {
39
+ const r = spawnSync(argv[0], argv.slice(1), { encoding: "utf8", ...(o.cwd ? { cwd: o.cwd } : {}), ...(o.env ? { env: o.env } : {}) });
40
+ return { status: r.status, stdout: r.stdout ?? "", stderr: r.error ? r.error.message : (r.stderr ?? "") };
41
+ };
42
+ /**
43
+ * The targets the change of pull request `pr` reaches (#4979): fetch its
44
+ * head, check it is `head`, and run the reach line. Blank lines are left
45
+ * out; a line holding a control character fails the read, so a target name
46
+ * never carries one into the lock file.
47
+ */
48
+ export function reachedTargets(i) {
49
+ const run = i.run ?? defaultRun;
50
+ const name = i.forge === "gitlab" ? `merge request !${i.pr}` : `pull request ${i.pr}`;
51
+ if (!SHA.test(i.head))
52
+ return { error: `--head ${JSON.stringify(i.head)} is not a commit sha` };
53
+ if (!SHA.test(i.base))
54
+ return { error: `--base ${JSON.stringify(i.base)} is not a commit sha` };
55
+ if (!i.line.trim())
56
+ return { error: `the reach line in ${LOCK_REACH_ENV} is empty` };
57
+ const fetched = run(["git", "fetch", "-q", "--no-tags", "origin", `+${pullRequestHeadRef(i.forge, i.pr)}:${REACH_HEAD_REF}`], { ...(i.cwd ? { cwd: i.cwd } : {}) });
58
+ if (fetched.status !== 0)
59
+ return { error: `could not fetch ${name}'s head (${fetched.stderr.trim() || `git exited ${fetched.status}`})` };
60
+ const now = run(["git", "rev-parse", REACH_HEAD_REF], { ...(i.cwd ? { cwd: i.cwd } : {}) }).stdout.trim();
61
+ if (now !== i.head)
62
+ return { moved: `${name} moved to ${now.slice(0, 12) || "another commit"} after ${i.head.slice(0, 12)}, so the run of that push locks it` };
63
+ const env = { ...(i.env ?? process.env), BASE_SHA: i.base, HEAD_SHA: i.head, PR_NUMBER: String(i.pr) };
64
+ const out = run(["sh", "-c", i.line], { ...(i.cwd ? { cwd: i.cwd } : {}), env });
65
+ if (out.status !== 0)
66
+ return { error: `the reach line exited ${out.status ?? "on a signal"}${out.stderr.trim() ? `: ${out.stderr.trim().split("\n").slice(-3).join(" ")}` : ""}` };
67
+ const targets = new Set();
68
+ for (const raw of out.stdout.split("\n")) {
69
+ const t = raw.trim();
70
+ if (t === "")
71
+ continue;
72
+ if (!TARGET_LINE.test(t))
73
+ return { error: `the reach line printed ${JSON.stringify(t.slice(0, 80))}, which is not a target name: one a line, no control characters, at most 512 characters` };
74
+ targets.add(t);
75
+ }
76
+ return { targets: [...targets].sort() };
77
+ }
78
+ /**
79
+ * `chant lock --reach --open` (#4979), GitLab's lock job in the target
80
+ * branch's plan notes pipeline: lock what each open merge request from the
81
+ * project that merges into `branch` reaches, then release the locks of every
82
+ * holder that is not open any more. A fork's merge request takes no lock.
83
+ */
84
+ export async function reachOpen(i) {
85
+ const outcomes = [];
86
+ const open = new Set();
87
+ for (const p of i.open) {
88
+ open.add(p.number);
89
+ if (p.fork) {
90
+ outcomes.push({ pr: p.number, kind: "skipped", text: `!${p.number} comes from a fork, so it takes no lock` });
91
+ continue;
92
+ }
93
+ if (p.base !== i.branch) {
94
+ outcomes.push({ pr: p.number, kind: "skipped", text: `!${p.number} merges into ${p.base}, not ${i.branch}` });
95
+ continue;
96
+ }
97
+ const r = reachedTargets({ ...i, pr: p.number, head: p.headSha });
98
+ if ("error" in r) {
99
+ outcomes.push({ pr: p.number, kind: "failed", text: r.error });
100
+ continue;
101
+ }
102
+ if ("moved" in r) {
103
+ outcomes.push({ pr: p.number, kind: "skipped", text: r.moved });
104
+ continue;
105
+ }
106
+ const took = await i.take(p.number, p.headSha, r.targets);
107
+ outcomes.push(took.ok ? { pr: p.number, kind: "locked", targets: r.targets, released: took.released } : { pr: p.number, kind: "held", text: took.held });
108
+ }
109
+ const released = [];
110
+ for (const pr of await i.holders()) {
111
+ if (open.has(pr) || (await i.isOpen(pr)))
112
+ continue;
113
+ const targets = await i.release(pr);
114
+ if (targets.length > 0)
115
+ released.push({ pr, targets });
116
+ }
117
+ return { outcomes, released };
118
+ }
@@ -66,7 +66,9 @@ export declare function greenOverrideSubject(commit: string): string;
66
66
  /** The rule an override of a cut names (#4693): `ci-green`, or `ci-green-<lane>` for a lane's tag. */
67
67
  export declare function greenOverrideRule(lane: string | null): string;
68
68
  /** The stable codes a cut refuses with. */
69
- export type ReleaseCutCode = "not-a-git-repository" | "release-commit-not-green" | "release-commit-revoked" | "release-worktree-dirty" | "release-no-environments" | "release-no-components" | "release-build-inputs-differ" | "release-image-invalid" | "release-image-unknown-component" | "release-image-name-taken" | "release-image-build-failed" | "release-version-no-label" | "release-version-label-invalid" | "release-version-no-package" | "release-version-invalid" | "release-unsigned" | "release-signer-refused" | "declaration-invalid";
69
+ export type ReleaseCutCode = "not-a-git-repository" | "release-commit-not-green" | "release-commit-revoked" | "release-worktree-dirty" | "release-no-environments" | "release-no-components" | "release-build-inputs-differ" | "release-image-invalid" | "release-image-unknown-component" | "release-image-name-taken" | "release-image-build-failed" | "release-version-no-label" | "release-version-label-invalid" | "release-version-no-package" | "release-version-invalid" | "release-unsigned" | "release-signer-refused" | "declaration-invalid"
70
+ /** #4941: the npm target's image check, run by the cut (./publish-npm.ts `checkPackageImages`). */
71
+ | "publish-npm-carries-image" | "publish-npm-pack-failed";
70
72
  export declare class ReleaseCutError extends Error {
71
73
  readonly code: ReleaseCutCode;
72
74
  readonly fix?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"release-cut.d.ts","sourceRoot":"","sources":["../../src/lifecycle/release-cut.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AASH,OAAO,EAUL,KAAK,OAAO,EACZ,KAAK,eAAe,EACpB,KAAK,UAAU,EACf,KAAK,kBAAkB,EACvB,KAAK,aAAa,EAGnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,KAAK,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CAAC;YAAC,IAAI,EAAE,MAAM,CAAA;SAAE,CAAC,CAAC;QAAC,KAAK,CAAC,EAAE,aAAa,CAAC,OAAO,CAAC,CAAA;KAAE,CAAC,CAAC;IAC/J,2FAA2F;IAC3F,KAAK,EAAE,KAAK,CAAC;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACjD,+EAA+E;IAC/E,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC5B,0DAA0D;IAC1D,MAAM,EAAE,SAAS,CAAC,QAAQ,CAAC,CAAC;IAC5B,oFAAoF;IACpF,YAAY,EAAE,KAAK,CAAC;QAAE,SAAS,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,IAAI,EAAE,MAAM,EAAE,CAAA;KAAE,CAAC,CAAC;IAC5F,wEAAwE;IACxE,iBAAiB,EAAE,OAAO,CAAC;IAC3B,wFAAwF;IACxF,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,6GAA6G;IAC7G,QAAQ,EAAE,kBAAkB,GAAG,IAAI,CAAC;CACrC;AAED;;;;;;GAMG;AACH,wBAAsB,WAAW,CAAC,GAAG,EAAE,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,CA+DnE;AAED;;;;;;;;;;;;;GAaG;AACH,wBAAsB,UAAU,CAAC,GAAG,EAAE,UAAU,GAAG,OAAO,CAAC,SAAS,CAAC,CAsFpE"}
@@ -514,6 +514,21 @@ export async function cutRelease(req) {
514
514
  }
515
515
  const { targets, templates } = targetsOf(compiled);
516
516
  const release = makeRelease({ member: p.member, commit, artifactDigests: artifacts, targets });
517
+ // #4941: an npm package that would carry an image archive stops the cut here, before anything is recorded or
518
+ // tagged, rather than the publish job once the label is spent. The check is the npm target's own plan check.
519
+ if (release.artifactDigests.some((a) => a.kind === "image" && a.path !== "")) {
520
+ const { loadChantConfig } = await import("../config.js");
521
+ const { checkDeclaredPackageImages } = await import("./publish-npm.js");
522
+ const { PublishTargetError } = await import("./release-publish.js");
523
+ try {
524
+ checkDeclaredPackageImages((await loadChantConfig(cwd)).config.release?.publish ?? [], release, cwd);
525
+ }
526
+ catch (err) {
527
+ if (err instanceof PublishTargetError)
528
+ throw new ReleaseCutError(err.code, `no release was cut: ${err.message}`, err.fix);
529
+ throw err;
530
+ }
531
+ }
517
532
  const timestamp = (req.now ?? (() => new Date()))().toISOString();
518
533
  const signed = { releaseDigest: release.releaseDigest, label: req.label, actor: req.actor, timestamp };
519
534
  let signature = null;
@@ -26,7 +26,7 @@
26
26
  * the reproducible build itself ({@link releaseImageBuildCommand}), a
27
27
  * `docker-container` buildx builder writing an OCI archive with timestamps
28
28
  * rewritten from `SOURCE_DATE_EPOCH` and no attestations, for every
29
- * platform. Its `prepare` command (the bundle the image carries, a packed
29
+ * platform, with the entry's own build arguments (`args`, #4908). Its `prepare` command (the bundle the image carries, a packed
30
30
  * package) runs first with no digests file named, so the image is the same
31
31
  * in the cut and the publish job. A product's package build turns the
32
32
  * digests file and its `{ name: reference }` into the table it bakes in with
@@ -46,6 +46,8 @@ export declare const RELEASE_IMAGES_FLOOR = "0.124.71";
46
46
  * build (#4819).
47
47
  */
48
48
  export declare const RELEASE_IMAGE_DOCKERFILE_FLOOR = "0.124.78";
49
+ /** The first chant whose Dockerfile entry in `release.images` takes `args`, build arguments beside the two chant passes (#4908). */
50
+ export declare const RELEASE_IMAGE_ARGS_FLOOR = "0.124.88";
49
51
  /** One image a release builds in its cut with a command of the product's. */
50
52
  export interface ReleaseImageBuild {
51
53
  /** The image's name: its key in the digests file, and its artifact's `component` in the release. */
@@ -54,6 +56,12 @@ export interface ReleaseImageBuild {
54
56
  build: string;
55
57
  /** The OCI archive the command writes, a layout directory or a tar file, relative to the member. The `oci` target's `image`. */
56
58
  archive: string;
59
+ /**
60
+ * The platforms the command builds, such as `["linux/amd64", "linux/arm64"]`
61
+ * (#4876). chant does not pass them to the command; `chant release workflow`
62
+ * reads them to set up QEMU for those the runner can't run. Unset: none.
63
+ */
64
+ platforms?: string[];
57
65
  }
58
66
  /** One image chant builds from a Dockerfile (#4819). */
59
67
  export interface ReleaseImageDockerfile {
@@ -68,6 +76,13 @@ export interface ReleaseImageDockerfile {
68
76
  archive?: string;
69
77
  /** A command run once before the builds, with `CHANT_RELEASE_DIGESTS` unset: what the image copies in, such as the bundle or a packed package. */
70
78
  prepare?: string;
79
+ /**
80
+ * Build arguments beside `SOURCE_DATE_EPOCH` and `CHANT_RELEASE_LABEL`
81
+ * (#4908), such as the packed package's file and the chant packages the
82
+ * image installs beside it, as sql-yodeler's `release-image.sh` passed
83
+ * them. Values are literal; the config computes them.
84
+ */
85
+ args?: Record<string, string>;
71
86
  }
72
87
  /** One image a release builds in its cut. */
73
88
  export type ReleaseImageDeclaration = ReleaseImageBuild | ReleaseImageDockerfile;
@@ -89,6 +104,12 @@ export declare function releaseImageBuildCommand(i: ReleaseImageDockerfile, o?:
89
104
  export declare function resolveReleaseImages(images: readonly ReleaseImageDeclaration[], o?: {
90
105
  versionArg?: boolean;
91
106
  }): ReleaseImageBuild[];
107
+ /**
108
+ * Every platform the images build (#4876): a Dockerfile entry's, or
109
+ * {@link RELEASE_IMAGE_PLATFORMS} when it names none, and a command entry's
110
+ * `platforms`. Sorted, each once.
111
+ */
112
+ export declare function releaseImagePlatforms(images: readonly ReleaseImageDeclaration[]): string[];
92
113
  export declare class ReleaseImageError extends Error {
93
114
  readonly code: string;
94
115
  readonly fix?: string | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"release-images.d.ts","sourceRoot":"","sources":["../../src/lifecycle/release-images.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AAKH,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,KAAK,EAAE,OAAO,EAAE,eAAe,EAAE,M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AC1E,wBAAgB,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,iBAAiB,CAAC,GAAG,MAAM,EAAE,CAG7F;AAED,uGAAuG;AACvG,wBAAgB,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,WAAW,EAAE,OAAO,GAAG,MAAM,GAAG,IAAI,CAOvF;AAED;;;;GAIG;AACH,wBAAgB,iBAAiB,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,EAAE,IAAI,CAAC,OAAO,EAAE,iBAAiB,CAAC,EAAE,OAAO,EAAE,SAAS,kBAAkB,EAAE,GAAG,MAAM,GAAG,IAAI,CAY/I"}
@@ -26,7 +26,7 @@
26
26
  * the reproducible build itself ({@link releaseImageBuildCommand}), a
27
27
  * `docker-container` buildx builder writing an OCI archive with timestamps
28
28
  * rewritten from `SOURCE_DATE_EPOCH` and no attestations, for every
29
- * platform. Its `prepare` command (the bundle the image carries, a packed
29
+ * platform, with the entry's own build arguments (`args`, #4908). Its `prepare` command (the bundle the image carries, a packed
30
30
  * package) runs first with no digests file named, so the image is the same
31
31
  * in the cut and the publish job. A product's package build turns the
32
32
  * digests file and its `{ name: reference }` into the table it bakes in with
@@ -47,6 +47,8 @@ export const RELEASE_IMAGES_FLOOR = "0.124.71";
47
47
  * build (#4819).
48
48
  */
49
49
  export const RELEASE_IMAGE_DOCKERFILE_FLOOR = "0.124.78";
50
+ /** The first chant whose Dockerfile entry in `release.images` takes `args`, build arguments beside the two chant passes (#4908). */
51
+ export const RELEASE_IMAGE_ARGS_FLOOR = "0.124.88";
50
52
  /** The platforms a Dockerfile entry builds by default. Building arm64 on amd64 needs QEMU's binfmt handlers. */
51
53
  export const RELEASE_IMAGE_PLATFORMS = ["linux/amd64", "linux/arm64"];
52
54
  /** The buildx builder a Dockerfile entry builds with, created with the `docker-container` driver when missing: the default driver cannot rewrite timestamps in an OCI archive. */
@@ -71,7 +73,9 @@ export function releaseImageBuildCommand(i, o = {}) {
71
73
  `mkdir -p ${sh(posix.dirname(archive))}`,
72
74
  [
73
75
  `docker buildx build --builder ${b} --no-cache --platform ${sh((i.platforms ?? RELEASE_IMAGE_PLATFORMS).join(","))}`,
74
- `--provenance=false --sbom=false --build-arg SOURCE_DATE_EPOCH="$SOURCE_DATE_EPOCH"${o.versionArg ? ' --build-arg CHANT_RELEASE_LABEL="$CHANT_RELEASE_LABEL"' : ""}`,
76
+ `--provenance=false --sbom=false --build-arg SOURCE_DATE_EPOCH="$SOURCE_DATE_EPOCH"${o.versionArg ? ' --build-arg CHANT_RELEASE_LABEL="$CHANT_RELEASE_LABEL"' : ""}${Object.entries(i.args ?? {})
77
+ .map(([k, v]) => ` --build-arg ${sh(`${k}=${v}`)}`)
78
+ .join("")}`,
75
79
  `--output ${sh(`type=oci,dest=${archive},rewrite-timestamp=true`)} -f ${sh(i.dockerfile)} ${sh(i.context ?? ".")} >&2`,
76
80
  ].join(" "),
77
81
  ].join(" && ");
@@ -80,6 +84,14 @@ export function releaseImageBuildCommand(i, o = {}) {
80
84
  export function resolveReleaseImages(images, o = {}) {
81
85
  return images.map((i) => (isDockerfile(i) ? { name: i.name, build: releaseImageBuildCommand(i, o), archive: archiveOf(i) } : i));
82
86
  }
87
+ /**
88
+ * Every platform the images build (#4876): a Dockerfile entry's, or
89
+ * {@link RELEASE_IMAGE_PLATFORMS} when it names none, and a command entry's
90
+ * `platforms`. Sorted, each once.
91
+ */
92
+ export function releaseImagePlatforms(images) {
93
+ return [...new Set(images.flatMap((i) => (isDockerfile(i) ? (i.platforms ?? RELEASE_IMAGE_PLATFORMS) : (i.platforms ?? []))))].sort();
94
+ }
83
95
  export class ReleaseImageError extends Error {
84
96
  constructor(code, message, fix) {
85
97
  super(message);
@@ -89,6 +101,9 @@ export class ReleaseImageError extends Error {
89
101
  }
90
102
  }
91
103
  const NAME = /^[A-Za-z0-9][A-Za-z0-9._-]{0,99}$/;
104
+ const BUILD_ARG = /^[A-Za-z_][A-Za-z0-9_]*$/;
105
+ /** The build arguments chant passes itself, which an entry's `args` cannot set. */
106
+ const CHANT_BUILD_ARGS = ["SOURCE_DATE_EPOCH", "CHANT_RELEASE_LABEL"];
92
107
  const outside = (p) => isAbsolute(p) || p.split(/[\\/]/).includes("..");
93
108
  /** Check a member's `release.images`: names valid and unique, one of `build` and `dockerfile`, paths inside the member, platforms of the form os/arch. */
94
109
  export function checkReleaseImages(images) {
@@ -106,7 +121,15 @@ export function checkReleaseImages(images) {
106
121
  if (p !== undefined && outside(p))
107
122
  throw new ReleaseImageError("release-image-archive-outside", `release.images "${i.name}": ${what} ${p} is not a path inside the member`);
108
123
  }
109
- if (isDockerfile(i) && i.platforms !== undefined && (i.platforms.length === 0 || !i.platforms.every((p) => PLATFORM.test(p)))) {
124
+ for (const [k, v] of Object.entries((isDockerfile(i) && i.args) || {})) {
125
+ if (!BUILD_ARG.test(k))
126
+ throw new ReleaseImageError("release-image-invalid", `release.images "${i.name}": args names ${JSON.stringify(k)}, which is not a build argument name`);
127
+ if (CHANT_BUILD_ARGS.includes(k))
128
+ throw new ReleaseImageError("release-image-invalid", `release.images "${i.name}": args sets ${k}, which chant passes itself`);
129
+ if (typeof v !== "string" || /[\r\n]/.test(v))
130
+ throw new ReleaseImageError("release-image-invalid", `release.images "${i.name}": args.${k} is not a one-line string`);
131
+ }
132
+ if (i.platforms !== undefined && (i.platforms.length === 0 || !i.platforms.every((p) => PLATFORM.test(p)))) {
110
133
  throw new ReleaseImageError("release-image-invalid", `release.images "${i.name}": platforms is a list of os/arch such as linux/amd64, not ${JSON.stringify(i.platforms)}`);
111
134
  }
112
135
  }
@@ -69,9 +69,10 @@ export declare const RUN_ORIGIN_JOB_FLOOR = "0.124.32";
69
69
  /**
70
70
  * The first chant that writes and reads `releaseVersion` on a release record
71
71
  * (#4595). A record from an older chant has none, and a reader lists it by
72
- * digest.
72
+ * digest. It was named `RELEASE_VERSION_FLOOR` until #4916 gave that name to
73
+ * ./release-version.ts alone, the floor of `release.version`.
73
74
  */
74
- export declare const RELEASE_VERSION_FLOOR = "0.124.55";
75
+ export declare const RELEASE_RECORD_VERSION_FLOOR = "0.124.55";
75
76
  /**
76
77
  * The gate resolution that admitted a deploy (#4020): the gate's address in the
77
78
  * gate ledger (`_gates/<op>.jsonl`, `op` and `gate`) and when the resolution
@@ -278,7 +279,7 @@ export interface ReleaseRecord {
278
279
  * Optional: the version the publish gave this release (#4595), such as a
279
280
  * module's `1.4.0` or a package's `2.0.0-rc.1`, when the component has
280
281
  * versions of its own. `version` is taken by the record's schema version,
281
- * so the field has this name. Written from {@link RELEASE_VERSION_FLOOR};
282
+ * so the field has this name. Written from {@link RELEASE_RECORD_VERSION_FLOOR};
282
283
  * absent on older records and on deploys that name no version. The
283
284
  * release catalog (./release-catalog.ts) lists a version by it, and a
284
285
  * record without one by its digest.
@@ -1 +1 @@
1
- {"version":3,"file":"release-ledger.d.ts","sourceRoot":"","sources":["../../src/lifecycle/release-ledger.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA4BG;AAGH,OAAO,EAAyC,KAAK,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAC/F,OAAO,EAAwG,KAAK,cAAc,EAAE,MAAM,OAAO,CAAC;AAElJ,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,eAAe,CAAC;AAG1D,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,yBAAyB,EAAE,MAAM,gBAAgB,CAAC;AAC9I,YAAY,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAEpD;;;GAGG;AACH,MAAM,WAAW,SAAS;IACxB;;;;;;;;;OASG;IACH,KAAK,EAAE,QAAQ,GAAG,QAAQ,GAAG,IAAI,GAAG,OAAO,GAAG,OAAO,CAAC;IACtD,gHAAgH;IAChH,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,mFAAmF;IACnF,GAAG,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AAW,EAAE,MAAM,EACnB,IAAI,CAAC,EAAE,cAAc,GACpB,OAAO,CAAC;IAAE,OAAO,EAAE,aAAa,EAAE,CAAC;IAAC,SAAS,EAAE,MAAM,CAAA;CAAE,CAAC,CAS1D;AAED;;;;GAIG;AACH,wBAAsB,uBAAuB,CAAC,IAAI,CAAC,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAEtF;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,aAAa,EAAE,GAAG,GAAG,CAAC,MAAM,EAAE,aAAa,CAAC,CASvF;AAED;;;;;GAKG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,aAAa,EAAE,EAAE,MAAM,EAAE,MAAM,GAAG,aAAa,EAAE,CAE1F"}
@@ -40,9 +40,10 @@ export const RUN_ORIGIN_JOB_FLOOR = "0.124.32";
40
40
  /**
41
41
  * The first chant that writes and reads `releaseVersion` on a release record
42
42
  * (#4595). A record from an older chant has none, and a reader lists it by
43
- * digest.
43
+ * digest. It was named `RELEASE_VERSION_FLOOR` until #4916 gave that name to
44
+ * ./release-version.ts alone, the floor of `release.version`.
44
45
  */
45
- export const RELEASE_VERSION_FLOOR = "0.124.55";
46
+ export const RELEASE_RECORD_VERSION_FLOOR = "0.124.55";
46
47
  /**
47
48
  * The approver and admission a release records for the resolutions of its gate
48
49
  * (#4020): those of `gate` on `op` bound to `planDigest`. The approver is the
@@ -42,6 +42,27 @@ export declare function productChantNames(productDir: string): string[];
42
42
  * no package for, and on a cycle.
43
43
  */
44
44
  export declare function packOrder(pkgs: Map<string, ChantPackage>, want: Iterable<string>): ChantPackage[];
45
+ /**
46
+ * The version `chant dev local` packs a checkout at (#4921): the checkout's
47
+ * `NEXT_RELEASE` (packages/core/src/release-floors.ts), the release its
48
+ * floors name, when that is newer than core's package.json version. A
49
+ * checkout's package.json keeps the version of the last time it was bumped by
50
+ * hand (0.124.34 while 0.124.87 was out), which failed a product's floor and
51
+ * `minReader` checks that pass on a published chant. Every floor the checkout
52
+ * declares is at or below `NEXT_RELEASE`, so the local build passes each one.
53
+ * The build is marked local by the `chantLocal` field on each installed copy,
54
+ * not in the version, because a prerelease of `NEXT_RELEASE` sorts below it.
55
+ */
56
+ export declare function localChantVersion(chantDir: string, coreVersion: string): string;
57
+ /**
58
+ * Set the version of one packed tarball's package.json, and every chant
59
+ * dependency, peer and optional dependency it names among `versions` to that
60
+ * package's packed version, so the packages npm installs agree with each
61
+ * other (#4921). The tarball is unpacked under the OS temp directory, which is
62
+ * left for the OS to clear, and packed again in place. Nothing is run when
63
+ * the manifest already says all of it.
64
+ */
65
+ export declare function restampTarball(tarball: string, versions: Map<string, string>, run: Runner): void;
45
66
  /** The fixed tarball name for a package, so a later run replaces it: `@intentius/chant-lexicon-k8s` is `intentius-chant-lexicon-k8s.tgz`. */
46
67
  export declare const tarballName: (name: string) => string;
47
68
  /**
@@ -49,9 +70,11 @@ export declare const tarballName: (name: string) => string;
49
70
  * and optionalDependency `local` names takes its `file:` spec. The root also
50
71
  * gets every tarball as a devDependency, so npm replaces a copy only a lexicon
51
72
  * reaches (a lexicon's own chant dependencies) instead of keeping a registry
52
- * release of it.
73
+ * release of it. A peerDependency on a packed package takes its packed
74
+ * version from `versions` (#4921), so the install needs no
75
+ * `--legacy-peer-deps`.
53
76
  */
54
- export declare function pointAtTarballs(manifest: Manifest, local: Map<string, string>, isRoot: boolean): Manifest;
77
+ export declare function pointAtTarballs(manifest: Manifest, local: Map<string, string>, isRoot: boolean, versions?: Map<string, string>): Manifest;
55
78
  /** Each installed copy of a chant package under the product: `node_modules/@intentius/*` at the root, in each workspace package, and nested. Links (workspace packages) are left out. */
56
79
  export declare function installedChantCopies(productDir: string): {
57
80
  at: string;
@@ -59,7 +82,7 @@ export declare function installedChantCopies(productDir: string): {
59
82
  }[];
60
83
  /** How a command runs: throws {@link LocalChantError} when it exits non-zero. */
61
84
  export type Runner = (command: string, args: string[], cwd: string) => string;
62
- /** Run a command with its stderr on ours and its stdout returned. */
85
+ /** Run a command with its stderr on ours and its stdout returned. macOS tar is told not to add `._` metadata files. */
63
86
  export declare const defaultRunner: Runner;
64
87
  export interface LocalChantOptions {
65
88
  /** The product's root, where its package.json and lock are. */
@@ -94,5 +117,36 @@ export declare function resetLocalChant(opts: {
94
117
  log?: (line: string) => void;
95
118
  run?: Runner;
96
119
  }): void;
120
+ /** What a product's image build needs to install the chant the product has (#4909). */
121
+ export interface LocalChantImage {
122
+ /** The chant the image installs: the root's pin, or `local-<commit>` for a `chant dev local` build. */
123
+ version: string;
124
+ /** The mark, when the installed chant is a local build. */
125
+ local?: LocalChantMark;
126
+ /** The tarball directory the image installs from, when local: `<product>/.chant-local`. */
127
+ context?: string;
128
+ /**
129
+ * `docker build` arguments: `--build-arg CHANT_VERSION=<version>`, and for a
130
+ * local build `--build-context chant-local=<product>/.chant-local`, which
131
+ * the Dockerfile's `chant-local` stage (`FROM scratch AS chant-local`)
132
+ * stands in for when the chant is the pin.
133
+ */
134
+ args: string[];
135
+ }
136
+ /**
137
+ * The chant a product's image should install (#4909): the local build when
138
+ * `chant dev local` marked the installed `@intentius/chant`, else the root's
139
+ * pin. terragucci's stack/bootstrap.sh read the `chantLocal` mark with jq,
140
+ * checked `.chant-local/` for its tarballs and built the
141
+ * `--build-context` itself. For a local build every package in `with` (core
142
+ * is always one) must have its tarball, of the commit the mark names; a
143
+ * missing one is a {@link LocalChantError} that says to run `chant dev local`
144
+ * again with `--with`.
145
+ */
146
+ export declare function localChantImage(productDir: string, opts?: {
147
+ with?: string[];
148
+ buildArg?: string;
149
+ contextName?: string;
150
+ }): LocalChantImage;
97
151
  export {};
98
152
  //# sourceMappingURL=local-chant.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"local-chant.d.ts","sourceRoot":"","sources":["../src/local-chant.ts"],"names":[],"mappings":"AA8BA,iEAAiE;AACjE,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAA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