@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
@@ -25,6 +25,9 @@
25
25
  * target's own variables and secrets, and an optional write probe before the
26
26
  * plan. A target is the note's and the status's member: `pr-post --member
27
27
  * <target>`, so each target has its note and its `<product>/plan/<target>`.
28
+ * With `evidence`, a target's note job (GitLab: `<target>-plan-evidence`)
29
+ * signs `plan:<target>` and `policy:<target>` (#4978,
30
+ * `targetEvidenceCheck`): one target's plan says nothing of another's.
28
31
  *
29
32
  * The forge lexicons render these descriptors
30
33
  * (`generateProductPlanPipeline` in each): the products call them in
@@ -35,7 +38,12 @@ import type { CiRunner } from "../ci-jobs.js";
35
38
  import type { CiProductWords } from "../ci-product-words.js";
36
39
  import type { PrPlanNoteWords } from "../pr-plan-note.js";
37
40
  import { type PipelineEvidence } from "../ci-evidence-jobs.js";
38
- import { type PrLoopPipelineOptions } from "./pr-pipeline.js";
41
+ import { PR_LOCK_JOB, type PrLoopPipelineOptions } from "./pr-pipeline.js";
42
+ import { type CloudLoginSpec } from "../ci-login.js";
43
+ import type { OpWaveRunStep } from "../lexicon.js";
44
+ import { type ControlNoteCheckout, type ControlTarget } from "../control/dispatch.js";
45
+ import { type ScheduledWatch } from "../op/schedule-overdue.js";
46
+ import { type CloudTradeSpec } from "../ci-identity.js";
39
47
  /** The variable the plan-note job reads the product's note words from (#4799), as JSON. Set from the pipeline, never from the report. */
40
48
  export declare const PR_PLAN_NOTE_WORDS_ENV = "CHANT_PLAN_NOTE_WORDS";
41
49
  /** One target the product plans in a job of its own (#4799): an environment, for sql-yodeler. */
@@ -53,7 +61,115 @@ export interface ProductPlanTarget {
53
61
  * tokens are dropped.
54
62
  */
55
63
  writeProbe?: string;
64
+ /**
65
+ * This target's cloud login (#4899, #4931), in place of the plan's
66
+ * {@link ProductPlanOptions.login}: chant's login from the OIDC token file
67
+ * (`@intentius/chant/ci-login`, #4788), run before the write probe.
68
+ */
69
+ login?: CloudLoginSpec;
70
+ /** OIDC tokens this target's plan job requests besides its login's, `{ <variable>: <audience> }`, in place of the plan's {@link ProductPlanOptions.idTokens}. */
71
+ idTokens?: Record<string, string>;
72
+ /** This target's trade (#4963), in place of the plan's {@link ProductPlanOptions.trade}. A target gives one of `login` and `trade`. */
73
+ trade?: CloudTradeSpec;
74
+ }
75
+ /**
76
+ * What the comment re-plan does besides answering the plan command (#4963),
77
+ * `replan: { ... }` in place of `replan: true`.
78
+ */
79
+ export interface ProductPlanReplanOptions {
80
+ /**
81
+ * Re-plan from `workflow_dispatch` too, on GitHub and Forgejo: the inputs
82
+ * `pr` (the pull request) and `argument` (default `argument`; the target,
83
+ * or the one word {@link PLAN_ARGUMENT_ENV} reads, such as terragucci's
84
+ * `root`). Either forge lets only someone who can write to the repository
85
+ * dispatch, so the decision asks no permission for it. On GitLab a web
86
+ * pipeline of the target branch with `CHANT_PREVIEW_PR` and
87
+ * `CHANT_PREVIEW_COMMENT` is the dispatch already, so it renders nothing
88
+ * more there.
89
+ */
90
+ dispatch?: boolean | {
91
+ argument?: string;
92
+ };
93
+ /**
94
+ * Reply to a `/<product>` comment no other job takes (#4963), on GitHub
95
+ * and Forgejo: a word that is not the plan command, a target that is none
96
+ * of the plan's, and a pull request from a fork with `forks: "skip"`. The
97
+ * reply names the commands. `others` are the comments the product's own
98
+ * jobs answer, such as `/terragucci apply`: the re-plan leaves them alone.
99
+ * With targets, the first target's re-plan job replies. GitLab's
100
+ * note-commands job answers every comment already.
101
+ */
102
+ reply?: boolean | {
103
+ others?: string[];
104
+ };
105
+ /**
106
+ * Reply "not affected" for a re-plan narrowed to one argument the change
107
+ * does not reach (#4963): when the hand-off's note says `nothing` (or a
108
+ * `PrReport` says `nothing`), the re-plan's note job comments
109
+ * `<product>: <argument> is not affected by this pull request, so
110
+ * nothing was planned.` and leaves the note and the status as they were
111
+ * (`pr-post --not-affected <argument>`).
112
+ */
113
+ notAffected?: boolean;
114
+ }
115
+ /**
116
+ * A step a product's plan job runs before its setup lines (#4899): a shell
117
+ * line (`run`), or on GitHub and Forgejo an action (`uses`), such as a
118
+ * cache restore. A `run` step starts without the forge tokens, as every
119
+ * step after the checkout does. GitLab has no actions, so it leaves a
120
+ * `uses` step out; its generator's `cache` is GitLab's cache.
121
+ */
122
+ export interface ProductPlanSetupStep {
123
+ name?: string;
124
+ run?: string;
125
+ uses?: string;
126
+ with?: Record<string, unknown>;
127
+ env?: Record<string, string>;
128
+ }
129
+ /**
130
+ * The comment re-plan (#4899): `/<product> <plan word>` (or a words' alias
131
+ * for the plan command) plans an open pull request again. With `targets`,
132
+ * `/<product> plan <target>` plans that target alone, and the bare command
133
+ * plans every target. Without targets, the one word after the command
134
+ * reaches the plan verb as {@link PLAN_ARGUMENT_ENV}, such as terragucci's
135
+ * root.
136
+ */
137
+ export interface ProductPlanReplanJob {
138
+ /** `replan` or `replan-<target>` on GitHub and Forgejo, `replan` or `<target>-replan` on GitLab. */
139
+ jobName: string;
140
+ /** `replan-note` or `replan-note-<target>`, `<target>-replan-note` on GitLab. */
141
+ noteJobName: string;
142
+ /** The comments it answers: the plan command, then each alias for it that is on. */
143
+ comments: string[];
144
+ /** Aliases whose words name a variable that turns them on, with that variable. */
145
+ gated: Array<{
146
+ comment: string;
147
+ when: string;
148
+ }>;
149
+ /** The note job's command and variables, which read the pull request and head from the re-plan job. */
150
+ post: {
151
+ command: string;
152
+ env: Record<string, string>;
153
+ setup?: string[];
154
+ };
155
+ /** The artifact the note job (GitHub, Forgejo) or the re-plan job (GitLab) keeps the directory as. */
156
+ artifact: string;
157
+ /** With `dispatch` (#4963), GitHub and Forgejo: the `workflow_dispatch` input that names the argument. */
158
+ dispatch?: {
159
+ argument: string;
160
+ };
161
+ /** With `reply` (#4963), GitHub and Forgejo, on one re-plan job: the product's prefix and the comments other jobs answer. */
162
+ reply?: {
163
+ prefix: string;
164
+ others: string[];
165
+ };
166
+ /** With `notAffected` (#4963): the note job's command carries `--not-affected`, and reads the argument as {@link PLAN_ARGUMENT_ENV}. */
167
+ notAffected?: true;
56
168
  }
169
+ /** The variable a comment re-plan's one argument reaches the plan verb in (#4899). Empty on a pull request's own plan. */
170
+ export declare const PLAN_ARGUMENT_ENV = "CHANT_PLAN_ARGUMENT";
171
+ /** The file the note job's own lines write extra notices to, one a line (#4931): `pr-post` adds them under the note's counts. */
172
+ export declare const PLAN_NOTE_NOTICES_ENV = "CHANT_PLAN_NOTE_NOTICES";
57
173
  /** The product plan (#4799): {@link ProductPipelineOptions.plan}. */
58
174
  export interface ProductPlanOptions {
59
175
  /**
@@ -80,7 +196,194 @@ export interface ProductPlanOptions {
80
196
  noteWords?: PrPlanNoteWords;
81
197
  /** The workflow's name (GitHub and Forgejo) or the pipeline's (GitLab). Default `chant-pr-<env>`. */
82
198
  workflow?: string;
199
+ /**
200
+ * Variables for the whole plan job (#4899), every step of it: the job's
201
+ * `env` on GitHub and Forgejo, its `variables` on GitLab. A forge token's
202
+ * name is refused.
203
+ */
204
+ env?: Record<string, string>;
205
+ /**
206
+ * The plan job's cloud login (#4899, #4931), for every target without
207
+ * its own: chant's login from the OIDC token file
208
+ * (`@intentius/chant/ci-login`, #4788), after the setup lines and before
209
+ * the write probe. The job asks for the OIDC token: `id-token: write`
210
+ * (Forgejo `enable-openid-connect`), GitLab `id_tokens`.
211
+ */
212
+ login?: CloudLoginSpec;
213
+ /**
214
+ * OIDC tokens the plan job requests for a login the product's command
215
+ * does itself (#4931), `{ <variable>: <audience> }`: GitLab `id_tokens`,
216
+ * and `id-token: write` on GitHub and Forgejo, where the command asks the
217
+ * forge for its token by audience.
218
+ */
219
+ idTokens?: Record<string, string>;
220
+ /**
221
+ * Post the plan status pending ("planning") before the checkout (#4899),
222
+ * on GitHub and Forgejo, from a step that alone holds the job's token.
223
+ * The job asks for `statuses: write`. GitLab's plan job holds no token,
224
+ * so there the pipeline's own status says the plan runs.
225
+ */
226
+ pending?: boolean;
227
+ /**
228
+ * The control repo the plan reads (#4899), as terragucci reads it for
229
+ * estate ownership: chant's read-only fetch of its `chant/lifecycle`
230
+ * (`controlNoteCheckout`), right after the checkout and before any of the
231
+ * change's code runs. It sets `CHANT_CONTROL_DIR`.
232
+ */
233
+ controlRead?: ControlTarget;
234
+ /** Steps after the checkout and the control read, before the setup lines (#4899): a cache restore, an install. */
235
+ setup?: ProductPlanSetupStep[];
236
+ /**
237
+ * A shell line run after the plan verb whatever its exit (#4899), such as
238
+ * sql-yodeler's `yodel report {target} --out {output}/report`, in the plan
239
+ * step, so it is not a step after the change's code. `{target}` and
240
+ * `{output}` are filled as in `command`. The step then exits with the plan
241
+ * verb's status. What it writes under `{output}` is kept with the report.
242
+ */
243
+ report?: string;
244
+ /**
245
+ * One run at a time per pull request (#4899): a workflow-level
246
+ * `concurrency` group `<group>-<pull request>` on GitHub and Forgejo
247
+ * (default group: the workflow's name), cancelling the run before it when
248
+ * `cancelInProgress`. A comment's run, with `replan`, is in a group of its
249
+ * own comment, so a comment never cancels a plan. On GitLab
250
+ * `cancelInProgress` makes the plan jobs `interruptible`, which GitLab's
251
+ * auto-cancel of redundant pipelines stops.
252
+ */
253
+ concurrency?: {
254
+ group?: string;
255
+ cancelInProgress?: boolean;
256
+ };
257
+ /**
258
+ * The comment re-plan (#4899, {@link ProductPlanReplanJob}). The words
259
+ * need a plan command. On GitHub the commenter must be an owner, member or
260
+ * collaborator; on Forgejo the job asks the forge whether the commenter
261
+ * can write. On GitLab the note-commands job (`noteCommands`) starts a
262
+ * pipeline of the target branch for the comment, which runs the re-plan
263
+ * jobs whose target the comment names.
264
+ */
265
+ replan?: boolean | ProductPlanReplanOptions;
266
+ /**
267
+ * The plan job's trade (#4963): chant's trade of the job's OIDC token for
268
+ * the plan identities' own credentials (`@intentius/chant/ci-identity`,
269
+ * #4296), before the change is checked out, as terragucci's re-plan
270
+ * trades. The plan job and the re-plan job trade in a step of their own
271
+ * (GitHub, Forgejo: after the pending status and the re-plan's decision,
272
+ * before the checkout; GitLab: the script's first lines, before the
273
+ * re-plan checks out the head), and every later step starts without the
274
+ * variables a token is requested with, so the change's code holds the
275
+ * traded credentials and no OIDC token. Give one of `login` and `trade`.
276
+ */
277
+ trade?: CloudTradeSpec;
278
+ /**
279
+ * The previous note's product marker for the plan verb (#4963), on GitHub
280
+ * and Forgejo: a step before the checkout, which alone holds the job's
281
+ * token, finds the pull request's note by chant's marker and sets
282
+ * `CHANT_PLAN_PREVIOUS_MARKER` to the body of its second line, the
283
+ * product's own (`noteWords.productMarker`, a hand-off's `marker`), so a
284
+ * plan verb such as `yodel plan` reads the digest subject it left there
285
+ * and says what moved. Empty when there is no note yet. The body was
286
+ * checked against the marker's pattern before chant posted it, and is
287
+ * checked again. Needs `noteWords.productMarker`. GitLab's plan job holds
288
+ * no token to read a note with, so it takes none.
289
+ *
290
+ * @deprecated #4972: hand the plan's `subject` in the plan note hand-off
291
+ * instead. The note job compares it with the previous note's on every
292
+ * forge and says what changed, so the plan job reads no note. This option
293
+ * still works on GitHub and Forgejo.
294
+ */
295
+ previousMarker?: boolean;
296
+ /**
297
+ * Lines the note job runs (#4931), on GitHub and Forgejo, in the job that
298
+ * holds the token and none of the change's code: `before` after the report
299
+ * is taken back and before `pr-post`, `after` once it posted. A `before`
300
+ * line may write notices, one a line, to the file
301
+ * `$CHANT_PLAN_NOTE_NOTICES` names, and `pr-post` adds them under the
302
+ * note's counts, such as terragucci's notice naming whose review does not
303
+ * count. They reach the job's token as `GITHUB_TOKEN`. GitLab's note job
304
+ * posts every open merge request's note in one run, so it takes none.
305
+ *
306
+ * With `pullRequest` (#4963) the lines also read the pull request and the
307
+ * commit planned as `PR_NUMBER` and `HEAD_SHA`, the note's own, which in
308
+ * a re-plan's note job come from the re-plan job, such as terragucci's
309
+ * notice and approval status, which ask the forge about the head.
310
+ */
311
+ noteSteps?: {
312
+ before?: string[];
313
+ after?: string[];
314
+ pullRequest?: boolean;
315
+ };
316
+ /**
317
+ * The product's own scheduled jobs the note job checks for having stopped
318
+ * (#4888), such as terragucci's drift job: each a `ScheduledWatch` with
319
+ * its cron, the files the product's generator wrote it in, and on GitLab
320
+ * its schedule selector. The note job holds the token the plan job lacks,
321
+ * so `pr-post` asks the forge when each last ran, in its checkout of the
322
+ * target branch's commit, and adds the line for one that is overdue under
323
+ * the note's counts. They reach it as `CHANT_PLAN_WATCHES`, from the
324
+ * pipeline, never from the plan job's report.
325
+ */
326
+ watches?: ScheduledWatch[];
327
+ /**
328
+ * A run record for the plan job (#4899), as `chant ci run plan --in-place`
329
+ * writes one for `pr-plan`'s: Op `pr-plan` in the run ledger,
330
+ * `<env>/runs__pr-plan.jsonl` on `chant/lifecycle`. The plan job holds no
331
+ * token, so its plan step writes the record into the hand-off
332
+ * ({@link PLAN_RUN_RECORD_FILE}) once the plan verb and the report line ran,
333
+ * and the note job, which holds the token, appends it to the ledger and
334
+ * pushes it with the note (`pr-post --record-run <plan job>`). The note job
335
+ * reads the record as data: it keeps the record's id, times and exit code,
336
+ * and names the op, environment, commit, run and status from what it knows
337
+ * itself. The note job then asks `contents: write` on GitHub and Forgejo.
338
+ * Unsigned, as `pr-plan`'s is (#4328). Default off.
339
+ */
340
+ record?: boolean;
341
+ /**
342
+ * What the lock job locks under `locks: "plan"` (#4979): the targets the
343
+ * change reaches, by the product's reach line, in place of what a
344
+ * `PrReport` selected. `command` is one shell line that prints the target
345
+ * names the change from `$BASE_SHA` to `$HEAD_SHA` reaches, one a line,
346
+ * reading the change's files as data from git (`git diff`, `git show`),
347
+ * such as terragucci's roots, Terragrunt units or Atmos instances. It
348
+ * runs at the target branch's commit, after chant fetched the pull
349
+ * request's head and checked it is the head the job was started for
350
+ * (`chant lock --reach`, ../lifecycle/reach-locks.ts), so none of the
351
+ * change's code runs in the job that holds the write token. `gate` names
352
+ * the lock file, `_locks/<gate>.json` (default the pull request loop's).
353
+ *
354
+ * GitHub and Forgejo run one `lock` job on each push of a pull request
355
+ * from this repository, beside the plan, and the `unlock` job on close.
356
+ * On GitLab, where a merge request's pipeline is built from its own files,
357
+ * the `lock` job runs in the target branch's plan notes pipeline and locks
358
+ * every open merge request (`--open`), releasing the locks of one that is
359
+ * no longer open; with `noteCommands` the comment lock and unlock jobs
360
+ * answer `/<product> lock` and `/<product> unlock` there too.
361
+ */
362
+ reach?: {
363
+ command: string;
364
+ gate?: string;
365
+ };
366
+ }
367
+ /** The lock job a product plan with {@link ProductPlanOptions.reach} writes (#4979): its command and the values the command reads. */
368
+ export interface ProductPlanReachLock {
369
+ jobName: typeof PR_LOCK_JOB;
370
+ command: string;
371
+ env: Record<string, string>;
372
+ runner?: CiRunner;
83
373
  }
374
+ /**
375
+ * The reach lock job (#4979), under `locks: "plan"` with `reach`: `chant lock
376
+ * --reach` through the words' bin, with the reach line as
377
+ * {@link LOCK_REACH_ENV}. On GitHub and Forgejo it locks the pull request of
378
+ * the event; on GitLab every open merge request into the branch.
379
+ */
380
+ export declare function productPlanReachLock(forge: ForgeKind, loop: Pick<PrLoopPipelineOptions, "locks" | "runners"> & {
381
+ plan: Pick<ProductPlanOptions, "reach">;
382
+ }, words: CiProductWords): ProductPlanReachLock | undefined;
383
+ /** The file a product plan job writes its run record to under the hand-off directory, and the Op it is recorded under: `pr-plan`'s (#4899, ../pr-plan-record.ts). */
384
+ export { PLAN_RUN_OP, PLAN_RUN_RECORD_FILE } from "../pr-plan-record.js";
385
+ /** The variable the plan step reads the record's op, environment and labels from (#4899), as JSON. */
386
+ export declare const PLAN_RUN_RECORD_ENV = "CHANT_PLAN_RECORD";
84
387
  /** One plan job and its note job, for one target or for the whole pipeline (#4799). */
85
388
  export interface ProductPlanJob {
86
389
  /** The target, when the plan has targets. Also the note's and the status's member. */
@@ -108,22 +411,63 @@ export interface ProductPlanJob {
108
411
  noteRunner?: CiRunner;
109
412
  /**
110
413
  * With the pipeline's `evidence` (#4870): the lines that sign the plan
111
- * job's `plan` and `policy` checks from its report, and their variables
414
+ * job's `plan` and `policy` checks from its report (with a target,
415
+ * `plan:<target>` and `policy:<target>`, #4978), and their variables
112
416
  * (the runner key from its secret). GitHub and Forgejo run them in the
113
- * note job before `pr-post`; GitLab in a job of their own after the plan
114
- * job, `evidenceJobName`. Signing keyless (#4869), the job asks for an
115
- * OIDC token: `idToken` (GitHub's `id-token: write`, Forgejo's
417
+ * note job before `pr-post`; GitLab in a job of their own, `jobName`, in
418
+ * the target branch's plan notes pipeline before the note job (#4914),
419
+ * which keeps `dir` as its artifact and names the environment
420
+ * `GITLAB_EVIDENCE_ENVIRONMENT`; the note job reads `dir`
421
+ * (`--evidence-dir`). Signing keyless (#4869), the job asks for an OIDC
422
+ * token: `idToken` (GitHub's `id-token: write`, Forgejo's
116
423
  * `enable-openid-connect`) or GitLab's `idTokens`.
117
424
  */
118
425
  evidence?: {
119
426
  lines: string[];
120
427
  env: Record<string, string>;
121
428
  jobName?: string;
429
+ dir?: string;
122
430
  idToken?: true;
123
431
  idTokens?: Record<string, {
124
432
  aud: string;
125
433
  }>;
126
434
  };
435
+ /** The job's own variables (#4899), every step's. */
436
+ jobEnv?: Record<string, string>;
437
+ /** The cloud login's steps (#4931), after the setup lines and before the write probe. GitLab: their lines in the script. */
438
+ login?: OpWaveRunStep[];
439
+ /** The OIDC tokens the plan job requests (#4931), `{ <variable>: <audience> }`: the login's and the product's own. */
440
+ idTokens?: Record<string, string>;
441
+ /** The pending status posted before the checkout (#4899), on GitHub and Forgejo. */
442
+ pending?: {
443
+ context: string;
444
+ description: string;
445
+ };
446
+ /** The control repo read after the checkout (#4899). */
447
+ control?: ControlNoteCheckout;
448
+ /** The steps before the setup lines (#4899). */
449
+ setup?: ProductPlanSetupStep[];
450
+ /** The report line after the plan verb (#4899), `{target}` and `{output}` filled. */
451
+ report?: string;
452
+ /** The comment re-plan's jobs for this target (#4899). */
453
+ replan?: ProductPlanReplanJob;
454
+ /** The note job's own lines (#4931); with `pullRequest` (#4963) they read `PR_NUMBER` and `HEAD_SHA`. */
455
+ noteSteps?: {
456
+ before: string[];
457
+ after: string[];
458
+ pullRequest?: true;
459
+ };
460
+ /** The trade before the checkout (#4963), and on GitLab the `id_tokens` it reads (in `idTokens` too). */
461
+ trade?: CloudTradeSpec;
462
+ /** With `previousMarker` (#4963): the note's marker and the product marker's name the read step looks for. */
463
+ previous?: {
464
+ marker: string;
465
+ name: string;
466
+ };
467
+ /** With `record` (#4899): the plan step writes the run record, `env` its op, environment and labels as {@link PLAN_RUN_RECORD_ENV}; the note job's command records it. */
468
+ record?: {
469
+ env: Record<string, string>;
470
+ };
127
471
  }
128
472
  /**
129
473
  * The product plan's jobs for `forge` (#4799). `words` are the pipeline's,
@@ -134,8 +478,102 @@ export interface ProductPlanJob {
134
478
  export declare function productPlanJobs(forge: ForgeKind, env: string, loop: PrLoopPipelineOptions & {
135
479
  plan: ProductPlanOptions;
136
480
  }, words: CiProductWords, evidence?: PipelineEvidence): ProductPlanJob[];
137
- /** The evidence step of one plan job (#4870), as {@link ProductPlanJob.evidence}. */
138
- export declare function planEvidenceOf(forge: ForgeKind, evidence: PipelineEvidence, words: CiProductWords, planJob: string): NonNullable<ProductPlanJob["evidence"]>;
481
+ /** The comment re-plan's job and its note job (#4899). */
482
+ export declare const REPLAN_JOB = "replan";
483
+ export declare const REPLAN_NOTE_JOB = "replan-note";
484
+ /**
485
+ * The GitLab variables the note-commands job starts a re-plan's pipeline
486
+ * with (#4899): the comment preview's (`CHANT_PREVIEW_PR`,
487
+ * `CHANT_PREVIEW_COMMENT`), so `pr-notes --preview-comment` starts it.
488
+ */
489
+ export declare const GITLAB_REPLAN_PR_VAR = "CHANT_PREVIEW_PR";
490
+ export declare const GITLAB_REPLAN_COMMENT_VAR = "CHANT_PREVIEW_COMMENT";
491
+ /**
492
+ * The GitLab rule condition that the re-plan pipeline's comment asks for
493
+ * `target` (#4899): the command alone, or with the target's name. Without
494
+ * a target, the command with at most one word after it.
495
+ */
496
+ export declare function gitlabReplanCommentIf(replan: Pick<ProductPlanReplanJob, "comments" | "gated">, target?: string): string;
497
+ /**
498
+ * The re-plan job's first step on GitHub and Forgejo (#4899), with the job's
499
+ * token in its environment alone, before anything is checked out: it reads
500
+ * the comment from the event file (never as an expression in a script),
501
+ * decides whether it asks this job to plan, asks the forge for the pull
502
+ * request (open; from this repository with `forks: "skip"`) and, with
503
+ * `CHANT_REPLAN_PERMISSION` set (Forgejo, whose payload says nothing of the
504
+ * commenter), whether the commenter can write. It writes `go=1`, `pr`,
505
+ * `head`, `base` and `argument` to the step's outputs.
506
+ */
507
+ export declare const REPLAN_DECIDE_JS: string;
508
+ /**
509
+ * The re-plan's decision script (#4899) with what `replan`'s options add
510
+ * (#4963). With neither it is {@link REPLAN_DECIDE_JS}, as before.
511
+ *
512
+ * - `dispatch`: on `workflow_dispatch` the pull request is the `pr` input
513
+ * and the argument the input `CHANT_REPLAN_DISPATCH_ARGUMENT` names;
514
+ * a `pr` that is not a number, or an argument that is not one plain
515
+ * word, fails the job. No permission is asked: only a writer dispatches.
516
+ * - `reply`: a comment that starts with `CHANT_REPLAN_PRODUCT` and is not
517
+ * the plan command, nor one of `CHANT_REPLAN_OTHERS`, a target that is
518
+ * none of the plan's, and a fork's pull request with `forks: "skip"`
519
+ * get a reply comment with the reason, once the commenter's permission
520
+ * is known (Forgejo). A dispatch's reason goes to the log alone.
521
+ */
522
+ export declare function replanDecideJs(opts?: {
523
+ dispatch?: boolean;
524
+ reply?: boolean;
525
+ }): string;
526
+ /**
527
+ * The previous note's read step on GitHub and Forgejo (#4963): `node -e`,
528
+ * from `/`, with the job's token in `CHANT_PREVIOUS_TOKEN` alone. It pages
529
+ * through pull request `CHANT_PREVIOUS_PR`'s comments for the one whose
530
+ * first line is `CHANT_PREVIOUS_NOTE` (chant's marker), takes its second
531
+ * line's body when it is `<!-- <CHANT_PREVIOUS_NAME> <body> -->` and the
532
+ * body is plain words, and appends `CHANT_PLAN_PREVIOUS_MARKER=<body>` to
533
+ * `$GITHUB_ENV`, empty when there is none. A forge that refuses is a
534
+ * warning: the plan verb plans without it.
535
+ */
536
+ export declare const PREVIOUS_MARKER_JS: string;
537
+ /** The GitLab re-plan's lines that set {@link PLAN_ARGUMENT_ENV} from the comment's one word after the command (#4899), which the rule already held to plain characters. */
538
+ export declare function gitlabReplanArgumentLines(replan: Pick<ProductPlanReplanJob, "comments" | "gated">): string[];
539
+ /**
540
+ * The pending step's script on GitHub and Forgejo (#4899): `node -e`, from
541
+ * `/`, posting the plan status pending at `CHANT_PENDING_SHA` with the token
542
+ * in `CHANT_PENDING_TOKEN`. A forge that refuses it is a warning: the note
543
+ * job sets the status the plan ends with.
544
+ */
545
+ export declare const PENDING_JS: string;
546
+ /**
547
+ * The plan step's lines for the plan verb (#4899): the verb, then the
548
+ * report line whatever the verb's exit, then the step exits with the verb's
549
+ * status. Without a report line, the verb alone.
550
+ */
551
+ export declare function planVerbLines(p: Pick<ProductPlanJob, "command" | "report" | "record">): string[];
552
+ /**
553
+ * The plan step's record line (#4899): `node -e`, writing the run record of
554
+ * the plan verb into the directory it is given, {@link PLAN_RUN_RECORD_FILE}.
555
+ * It reads the op, environment and labels from {@link PLAN_RUN_RECORD_ENV},
556
+ * the verb's exit from `CHANT_PLAN_EXIT`, its start from
557
+ * `CHANT_PLAN_STARTED`, and the commit from git. The shape is an
558
+ * `OpRunRecordInput` (../op/runtime.ts) with no run origin, which the note
559
+ * job names.
560
+ */
561
+ export declare const PLAN_RECORD_JS: string;
562
+ /**
563
+ * The evidence step of one plan job (#4870), as {@link ProductPlanJob.evidence}.
564
+ * #4964: for a workspace member's pipeline (`member`) the checks are signed
565
+ * as `plan:<member>` and `policy:<member>` (`--member`), and on GitLab the
566
+ * report is read from the plan job's artifact at the member's `reportPath`.
567
+ * #4978: a product plan target's plan job is signed the same way, under the
568
+ * target's name.
569
+ */
570
+ export declare function planEvidenceOf(forge: ForgeKind, evidence: PipelineEvidence, words: CiProductWords, planJob: string, opts?: {
571
+ noForks?: boolean;
572
+ member?: {
573
+ name: string;
574
+ reportPath: string;
575
+ };
576
+ }): NonNullable<ProductPlanJob["evidence"]>;
139
577
  /** The GitHub and Forgejo condition that a pull request is from this repository, not a fork (#4799). */
140
578
  export declare const SAME_REPOSITORY_IF = "github.event.pull_request.head.repo.full_name == github.repository";
141
579
  /** The GitLab rule condition that a merge request's source project is the project itself (#4799). */
@@ -1 +1 @@
1
- {"version":3,"file":"product-plan.d.ts","sourceRoot":"","sources":["../../src/components/product-plan.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAC7C,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAC3C,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,qBAAqB,CAAC;AAC1D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AACvD,OAAO,EAAgG,KAAK,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AAC1J,OAAO,EAAyG,KAAK,qBAAqB,EAAE,MAAM,eAAe,CAAC;AAElK,yIAAyI;AACzI,eAAO,MAAM,sBAAsB,0BAA0B,CAAC;AAE9D,iGAAiG;AACjG,MAAM,WAAW,iBAAiB;IAChC,wHAAwH;IACxH,IAAI,EAAE,MAAM,CAAC;IACb,4GAA4G;IAC5G,SAAS,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACnC,gIAAgI;IAChI,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IACjC;;;;;OAKG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;CACrB;AAED,qEAAqE;AACrE,MAAM,WAAW,kBAAkB;IACjC;;;;;;OAMG;IACH,OAAO,EAAE,MAAM,CAAC;IAChB,uFAAuF;IACvF,OAAO,CAAC,EAAE,iBAAiB,EAAE,CAAC;IAC9B;;;;;;OAMG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,mHAAmH;IACnH,QAAQ,CAAC,EAAE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