@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.
- package/dist/action-pins.d.ts +1 -0
- package/dist/action-pins.d.ts.map +1 -1
- package/dist/action-pins.js +2 -0
- package/dist/actor.d.ts +47 -0
- package/dist/actor.d.ts.map +1 -0
- package/dist/actor.js +56 -0
- package/dist/bundle-check.d.ts +20 -5
- package/dist/bundle-check.d.ts.map +1 -1
- package/dist/bundle-check.js +20 -5
- package/dist/chant-install.d.ts +98 -0
- package/dist/chant-install.d.ts.map +1 -1
- package/dist/chant-install.js +203 -2
- package/dist/ci-base.d.ts +30 -0
- package/dist/ci-base.d.ts.map +1 -0
- package/dist/ci-base.js +33 -0
- package/dist/ci-comment-commands.d.ts +177 -0
- package/dist/ci-comment-commands.d.ts.map +1 -0
- package/dist/ci-comment-commands.js +325 -0
- package/dist/ci-comment-replies.d.ts +40 -0
- package/dist/ci-comment-replies.d.ts.map +1 -0
- package/dist/ci-comment-replies.js +59 -0
- package/dist/ci-commit.d.ts +1 -1
- package/dist/ci-commit.d.ts.map +1 -1
- package/dist/ci-commit.js +1 -2
- package/dist/ci-control.d.ts +1 -1
- package/dist/ci-control.d.ts.map +1 -1
- package/dist/ci-control.js +1 -1
- package/dist/ci-evidence-claims.d.ts +59 -0
- package/dist/ci-evidence-claims.d.ts.map +1 -0
- package/dist/ci-evidence-claims.js +87 -0
- package/dist/ci-evidence-from-job.d.ts +128 -0
- package/dist/ci-evidence-from-job.d.ts.map +1 -0
- package/dist/ci-evidence-from-job.js +203 -0
- package/dist/ci-evidence-jobs.d.ts +68 -4
- package/dist/ci-evidence-jobs.d.ts.map +1 -1
- package/dist/ci-evidence-jobs.js +82 -5
- package/dist/ci-handover.d.ts +12 -0
- package/dist/ci-handover.d.ts.map +1 -1
- package/dist/ci-handover.js +15 -3
- package/dist/ci-identity.d.ts +32 -6
- package/dist/ci-identity.d.ts.map +1 -1
- package/dist/ci-identity.js +40 -8
- package/dist/ci-image.d.ts +65 -10
- package/dist/ci-image.d.ts.map +1 -1
- package/dist/ci-image.js +101 -22
- package/dist/ci-jobs.d.ts +1 -1
- package/dist/ci-jobs.d.ts.map +1 -1
- package/dist/ci-jobs.js +7 -2
- package/dist/ci-login.d.ts +75 -13
- package/dist/ci-login.d.ts.map +1 -1
- package/dist/ci-login.js +89 -37
- package/dist/ci-note-commands.d.ts +63 -3
- package/dist/ci-note-commands.d.ts.map +1 -1
- package/dist/ci-note-commands.js +69 -35
- package/dist/ci-product-words.d.ts +62 -1
- package/dist/ci-product-words.d.ts.map +1 -1
- package/dist/ci-product-words.js +52 -1
- package/dist/ci-product.d.ts +52 -2
- package/dist/ci-product.d.ts.map +1 -1
- package/dist/ci-product.js +51 -2
- package/dist/cli/commands/build.d.ts.map +1 -1
- package/dist/cli/commands/build.js +29 -2
- package/dist/cli/handlers/approve-confirm.d.ts +14 -0
- package/dist/cli/handlers/approve-confirm.d.ts.map +1 -1
- package/dist/cli/handlers/approve-confirm.js +46 -0
- package/dist/cli/handlers/approve.d.ts.map +1 -1
- package/dist/cli/handlers/approve.js +2 -1
- package/dist/cli/handlers/build.d.ts +1 -1
- package/dist/cli/handlers/build.d.ts.map +1 -1
- package/dist/cli/handlers/build.js +22 -1
- package/dist/cli/handlers/ci-check.d.ts +1 -1
- package/dist/cli/handlers/ci-check.d.ts.map +1 -1
- package/dist/cli/handlers/ci-check.js +37 -7
- package/dist/cli/handlers/ci-evidence.d.ts.map +1 -1
- package/dist/cli/handlers/ci-evidence.js +255 -20
- package/dist/cli/handlers/ci-forge-check.d.ts.map +1 -1
- package/dist/cli/handlers/ci-forge-check.js +34 -17
- package/dist/cli/handlers/components.d.ts.map +1 -1
- package/dist/cli/handlers/components.js +3 -1
- package/dist/cli/handlers/generated-check.d.ts +11 -0
- package/dist/cli/handlers/generated-check.d.ts.map +1 -0
- package/dist/cli/handlers/generated-check.js +71 -0
- package/dist/cli/handlers/lifecycle.d.ts.map +1 -1
- package/dist/cli/handlers/lifecycle.js +3 -0
- package/dist/cli/handlers/local-chant.d.ts +13 -0
- package/dist/cli/handlers/local-chant.d.ts.map +1 -1
- package/dist/cli/handlers/local-chant.js +42 -1
- package/dist/cli/handlers/lock.d.ts.map +1 -1
- package/dist/cli/handlers/lock.js +121 -4
- package/dist/cli/handlers/pr-comment.d.ts +21 -0
- package/dist/cli/handlers/pr-comment.d.ts.map +1 -0
- package/dist/cli/handlers/pr-comment.js +112 -0
- package/dist/cli/handlers/pr-env.d.ts.map +1 -1
- package/dist/cli/handlers/pr-env.js +6 -3
- package/dist/cli/handlers/pr.d.ts +23 -1
- package/dist/cli/handlers/pr.d.ts.map +1 -1
- package/dist/cli/handlers/pr.js +97 -14
- package/dist/cli/handlers/promote.d.ts.map +1 -1
- package/dist/cli/handlers/promote.js +2 -1
- package/dist/cli/handlers/release.d.ts.map +1 -1
- package/dist/cli/handlers/release.js +11 -2
- package/dist/cli/handlers/run-wave.d.ts.map +1 -1
- package/dist/cli/handlers/run-wave.js +36 -2
- package/dist/cli/handlers/run.d.ts.map +1 -1
- package/dist/cli/handlers/run.js +2 -1
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +60 -4
- package/dist/cli/parse-args.d.ts.map +1 -1
- package/dist/cli/parse-args.js +82 -0
- package/dist/cli/registry.d.ts +35 -0
- package/dist/cli/registry.d.ts.map +1 -1
- package/dist/components/auto-release.d.ts.map +1 -1
- package/dist/components/auto-release.js +2 -1
- package/dist/components/check-hooks.d.ts +10 -0
- package/dist/components/check-hooks.d.ts.map +1 -1
- package/dist/components/check-hooks.js +18 -0
- package/dist/components/pr-checks.d.ts +169 -0
- package/dist/components/pr-checks.d.ts.map +1 -0
- package/dist/components/pr-checks.js +180 -0
- package/dist/components/pr-pipeline.d.ts +38 -0
- package/dist/components/pr-pipeline.d.ts.map +1 -1
- package/dist/components/pr-pipeline.js +6 -1
- package/dist/components/product-pipeline.d.ts +58 -2
- package/dist/components/product-pipeline.d.ts.map +1 -1
- package/dist/components/product-pipeline.js +76 -9
- package/dist/components/product-plan.d.ts +445 -7
- package/dist/components/product-plan.d.ts.map +1 -1
- package/dist/components/product-plan.js +426 -15
- package/dist/config.d.ts +10 -6
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +11 -6
- package/dist/control/consumers.d.ts +6 -0
- package/dist/control/consumers.d.ts.map +1 -1
- package/dist/control/consumers.js +6 -0
- package/dist/dead-guards.d.ts.map +1 -1
- package/dist/dead-guards.js +9 -6
- package/dist/discovery/files.d.ts +1 -1
- package/dist/discovery/files.js +1 -1
- package/dist/drift-issue.d.ts +20 -3
- package/dist/drift-issue.d.ts.map +1 -1
- package/dist/drift-issue.js +16 -0
- package/dist/drift-record.d.ts +52 -5
- package/dist/drift-record.d.ts.map +1 -1
- package/dist/drift-record.js +46 -6
- package/dist/floor-table.d.ts +6 -6
- package/dist/floor-table.d.ts.map +1 -1
- package/dist/floor-table.data.d.ts.map +1 -1
- package/dist/floor-table.data.js +81 -21
- package/dist/floor-table.js +10 -7
- package/dist/forge-check/contract.d.ts +19 -1
- package/dist/forge-check/contract.d.ts.map +1 -1
- package/dist/forge-check/contract.js +8 -2
- package/dist/forge-check/index.d.ts +4 -0
- package/dist/forge-check/index.d.ts.map +1 -1
- package/dist/forge-check/index.js +4 -0
- package/dist/forge-flags.d.ts +10 -0
- package/dist/forge-flags.d.ts.map +1 -1
- package/dist/forge-flags.js +31 -0
- package/dist/forge-remote.d.ts +47 -0
- package/dist/forge-remote.d.ts.map +1 -0
- package/dist/forge-remote.js +69 -0
- package/dist/gate-resume-run.d.ts +9 -1
- package/dist/gate-resume-run.d.ts.map +1 -1
- package/dist/gate-resume-run.js +26 -3
- package/dist/generated-check.d.ts +88 -0
- package/dist/generated-check.d.ts.map +1 -0
- package/dist/generated-check.js +248 -0
- package/dist/image-pins.d.ts +26 -0
- package/dist/image-pins.d.ts.map +1 -0
- package/dist/image-pins.js +19 -0
- package/dist/lexicon.d.ts +27 -0
- package/dist/lexicon.d.ts.map +1 -1
- package/dist/lifecycle/git.d.ts +11 -0
- package/dist/lifecycle/git.d.ts.map +1 -1
- package/dist/lifecycle/git.js +30 -3
- package/dist/lifecycle/publish-npm.d.ts +26 -0
- package/dist/lifecycle/publish-npm.d.ts.map +1 -1
- package/dist/lifecycle/publish-npm.js +76 -4
- package/dist/lifecycle/reach-locks.d.ts +131 -0
- package/dist/lifecycle/reach-locks.d.ts.map +1 -0
- package/dist/lifecycle/reach-locks.js +118 -0
- package/dist/lifecycle/release-cut.d.ts +3 -1
- package/dist/lifecycle/release-cut.d.ts.map +1 -1
- package/dist/lifecycle/release-cut.js +15 -0
- package/dist/lifecycle/release-images.d.ts +22 -1
- package/dist/lifecycle/release-images.d.ts.map +1 -1
- package/dist/lifecycle/release-images.js +26 -3
- package/dist/lifecycle/release-ledger.d.ts +4 -3
- package/dist/lifecycle/release-ledger.d.ts.map +1 -1
- package/dist/lifecycle/release-ledger.js +3 -2
- package/dist/local-chant.d.ts +57 -3
- package/dist/local-chant.d.ts.map +1 -1
- package/dist/local-chant.js +122 -13
- package/dist/notify-product.d.ts +12 -3
- package/dist/notify-product.d.ts.map +1 -1
- package/dist/notify-product.js +10 -6
- package/dist/op/activities/source-release.d.ts.map +1 -1
- package/dist/op/activities/source-release.js +2 -1
- package/dist/op/activities/source-rollback.d.ts.map +1 -1
- package/dist/op/activities/source-rollback.js +2 -1
- package/dist/op/index.d.ts +2 -0
- package/dist/op/index.d.ts.map +1 -1
- package/dist/op/index.js +1 -0
- package/dist/op/op-waves-evidence-jobs.d.ts +97 -0
- package/dist/op/op-waves-evidence-jobs.d.ts.map +1 -0
- package/dist/op/op-waves-evidence-jobs.js +118 -0
- package/dist/op/op-waves-evidence.d.ts +12 -1
- package/dist/op/op-waves-evidence.d.ts.map +1 -1
- package/dist/op/op-waves-evidence.js +23 -2
- package/dist/op/op-waves-render-spec.d.ts +100 -0
- package/dist/op/op-waves-render-spec.d.ts.map +1 -0
- package/dist/op/op-waves-render-spec.js +162 -0
- package/dist/op/op-waves-run.d.ts +14 -1
- package/dist/op/op-waves-run.d.ts.map +1 -1
- package/dist/op/op-waves-run.js +56 -4
- package/dist/op/op-waves.d.ts +12 -0
- package/dist/op/op-waves.d.ts.map +1 -1
- package/dist/op/op-waves.js +14 -1
- package/dist/op/schedule-overdue.d.ts +39 -2
- package/dist/op/schedule-overdue.d.ts.map +1 -1
- package/dist/op/schedule-overdue.js +148 -10
- package/dist/op/wave-stop.d.ts +64 -0
- package/dist/op/wave-stop.d.ts.map +1 -0
- package/dist/op/wave-stop.js +127 -0
- package/dist/planned-files.d.ts +76 -0
- package/dist/planned-files.d.ts.map +1 -0
- package/dist/planned-files.js +108 -0
- package/dist/pr-forge-job.d.ts +22 -0
- package/dist/pr-forge-job.d.ts.map +1 -0
- package/dist/pr-forge-job.js +46 -0
- package/dist/pr-forge-reads.d.ts +21 -1
- package/dist/pr-forge-reads.d.ts.map +1 -1
- package/dist/pr-forge-reads.js +19 -1
- package/dist/pr-forge.d.ts +7 -1
- package/dist/pr-forge.d.ts.map +1 -1
- package/dist/pr-forge.js +7 -2
- package/dist/pr-loop.d.ts +3 -6
- package/dist/pr-loop.d.ts.map +1 -1
- package/dist/pr-loop.js +4 -81
- package/dist/pr-plan-note.d.ts +121 -0
- package/dist/pr-plan-note.d.ts.map +1 -1
- package/dist/pr-plan-note.js +104 -1
- package/dist/pr-plan-record.d.ts +47 -0
- package/dist/pr-plan-record.d.ts.map +1 -0
- package/dist/pr-plan-record.js +89 -0
- package/dist/pr-post.d.ts +68 -3
- package/dist/pr-post.d.ts.map +1 -1
- package/dist/pr-post.js +218 -13
- package/dist/pr-requires.d.ts +8 -0
- package/dist/pr-requires.d.ts.map +1 -1
- package/dist/pr-requires.js +3 -1
- package/dist/pr-status.d.ts +16 -0
- package/dist/pr-status.d.ts.map +1 -0
- package/dist/pr-status.js +90 -0
- package/dist/ref-gate-init.d.ts +90 -0
- package/dist/ref-gate-init.d.ts.map +1 -0
- package/dist/ref-gate-init.js +155 -0
- package/dist/ref-gate-rules.d.ts +19 -0
- package/dist/ref-gate-rules.d.ts.map +1 -0
- package/dist/ref-gate-rules.js +17 -0
- package/dist/release-floors.d.ts +100 -16
- package/dist/release-floors.d.ts.map +1 -1
- package/dist/release-floors.js +101 -17
- package/dist/render-module.d.ts +15 -0
- package/dist/render-module.d.ts.map +1 -0
- package/dist/render-module.js +73 -0
- package/dist/state-migration.d.ts +24 -1
- package/dist/state-migration.d.ts.map +1 -1
- package/dist/state-migration.js +39 -4
- package/dist/state-unlock.d.ts +32 -1
- package/dist/state-unlock.d.ts.map +1 -1
- package/dist/state-unlock.js +31 -0
- package/dist/wave-runtime.mjs +307 -297
- package/dist/workspace/ci-green-cli.d.ts.map +1 -1
- package/dist/workspace/ci-green-cli.js +15 -8
- package/dist/workspace/drift-cli.d.ts +1 -1
- package/dist/workspace/drift-cli.d.ts.map +1 -1
- package/dist/workspace/drift-cli.js +5 -12
- package/dist/workspace/forge-work.d.ts +3 -2
- package/dist/workspace/forge-work.d.ts.map +1 -1
- package/dist/workspace/forge-work.js +7 -17
- package/dist/workspace/lexicon-outputs.js +2 -2
- package/dist/workspace/release-train.d.ts.map +1 -1
- package/dist/workspace/release-train.js +2 -1
- package/dist/workspace/release-workflow.d.ts +27 -3
- package/dist/workspace/release-workflow.d.ts.map +1 -1
- package/dist/workspace/release-workflow.js +52 -7
- package/dist/workspace/trust/check-evidence-report.d.ts +25 -2
- package/dist/workspace/trust/check-evidence-report.d.ts.map +1 -1
- package/dist/workspace/trust/check-evidence-report.js +28 -8
- package/dist/workspace/trust/check-evidence.d.ts +13 -1
- package/dist/workspace/trust/check-evidence.d.ts.map +1 -1
- package/dist/workspace/trust/check-evidence.js +8 -3
- package/dist/workspace/trust/evidence.d.ts +5 -0
- package/dist/workspace/trust/evidence.d.ts.map +1 -1
- package/dist/workspace/trust/evidence.js +5 -0
- package/dist/workspace/trust/open-evidence.d.ts +67 -0
- package/dist/workspace/trust/open-evidence.d.ts.map +1 -0
- package/dist/workspace/trust/open-evidence.js +92 -0
- package/dist/workspace/trust/ref-gate-cli.d.ts +10 -1
- package/dist/workspace/trust/ref-gate-cli.d.ts.map +1 -1
- package/dist/workspace/trust/ref-gate-cli.js +93 -11
- package/dist/workspace/trust/ref-gate.d.ts +61 -2
- package/dist/workspace/trust/ref-gate.d.ts.map +1 -1
- package/dist/workspace/trust/ref-gate.js +72 -7
- package/dist/workspace/workspace-run.d.ts.map +1 -1
- package/dist/workspace/workspace-run.js +2 -1
- package/package.json +1 -1
- package/src/action-pins.ts +2 -0
- package/src/actor.test.ts +78 -0
- package/src/actor.ts +79 -0
- package/src/bundle-check.test.ts +22 -0
- package/src/bundle-check.ts +33 -5
- package/src/chant-install.test.ts +108 -1
- package/src/chant-install.ts +242 -2
- package/src/ci-base.test.ts +41 -0
- package/src/ci-base.ts +43 -0
- package/src/ci-comment-commands.test.ts +376 -0
- package/src/ci-comment-commands.ts +389 -0
- package/src/ci-comment-replies.ts +78 -0
- package/src/ci-commit.test.ts +51 -6
- package/src/ci-commit.ts +1 -2
- package/src/ci-control.ts +1 -0
- package/src/ci-evidence-claims.ts +102 -0
- package/src/ci-evidence-from-job.test.ts +165 -0
- package/src/ci-evidence-from-job.ts +251 -0
- package/src/ci-evidence-jobs.ts +88 -6
- package/src/ci-handover.ts +16 -3
- package/src/ci-identity.test.ts +3 -3
- package/src/ci-identity.ts +51 -11
- package/src/ci-image.test.ts +187 -16
- package/src/ci-image.ts +157 -25
- package/src/ci-jobs.ts +7 -2
- package/src/ci-login.test.ts +131 -3
- package/src/ci-login.token-drop.test.ts +204 -0
- package/src/ci-login.ts +137 -39
- package/src/ci-note-commands.ts +104 -41
- package/src/ci-product-words.ts +89 -0
- package/src/ci-product.ts +62 -1
- package/src/cli/commands/__fixtures__/source-dir-root/migrations/0001-init/backfill.ts +3 -0
- package/src/cli/commands/build.test.ts +41 -0
- package/src/cli/commands/build.ts +27 -2
- package/src/cli/handlers/approve-confirm.test.ts +35 -0
- package/src/cli/handlers/approve-confirm.ts +44 -0
- package/src/cli/handlers/approve.ts +2 -1
- package/src/cli/handlers/build-source-dir.test.ts +4 -0
- package/src/cli/handlers/build.ts +20 -2
- package/src/cli/handlers/ci-check.ts +37 -7
- package/src/cli/handlers/ci-evidence-open.test.ts +164 -0
- package/src/cli/handlers/ci-evidence.ts +233 -18
- package/src/cli/handlers/ci-forge-check.ts +22 -9
- package/src/cli/handlers/components.ts +3 -1
- package/src/cli/handlers/generated-check.ts +69 -0
- package/src/cli/handlers/lifecycle.test.ts +20 -0
- package/src/cli/handlers/lifecycle.ts +4 -0
- package/src/cli/handlers/local-chant.ts +39 -1
- package/src/cli/handlers/lock-reach.test.ts +103 -0
- package/src/cli/handlers/lock.ts +100 -4
- package/src/cli/handlers/pr-comment.ts +104 -0
- package/src/cli/handlers/pr-env.ts +6 -3
- package/src/cli/handlers/pr-record.test.ts +1 -1
- package/src/cli/handlers/pr.ts +93 -15
- package/src/cli/handlers/promote.ts +2 -1
- package/src/cli/handlers/release.e2e.test.ts +35 -0
- package/src/cli/handlers/release.ts +14 -2
- package/src/cli/handlers/run-wave.ts +35 -2
- package/src/cli/handlers/run.ts +2 -1
- package/src/cli/main.ts +60 -4
- package/src/cli/parse-args.ts +58 -0
- package/src/cli/registry.ts +35 -0
- package/src/components/auto-release.ts +2 -1
- package/src/components/check-hooks.ts +22 -0
- package/src/components/check-report-summary.test.ts +78 -0
- package/src/components/pr-checks.ts +254 -0
- package/src/components/pr-pipeline.ts +43 -1
- package/src/components/product-pipeline.ts +113 -9
- package/src/components/product-plan.test.ts +140 -1
- package/src/components/product-plan.ts +707 -20
- package/src/config.ts +13 -8
- package/src/control/consumers.ts +7 -0
- package/src/dead-guards.test.ts +27 -5
- package/src/dead-guards.ts +9 -6
- package/src/discovery/files.ts +1 -1
- package/src/drift-issue.test.ts +29 -1
- package/src/drift-issue.ts +28 -3
- package/src/drift-record.test.ts +45 -0
- package/src/drift-record.ts +71 -6
- package/src/floor-table.data.ts +81 -21
- package/src/floor-table.ts +12 -9
- package/src/forge-check/contract.ts +23 -2
- package/src/forge-check/forge-check.test.ts +25 -0
- package/src/forge-check/index.ts +4 -0
- package/src/forge-flags.test.ts +25 -1
- package/src/forge-flags.ts +34 -0
- package/src/forge-remote.test.ts +37 -0
- package/src/forge-remote.ts +79 -0
- package/src/gate-resume-run.ts +27 -3
- package/src/generated-check.e2e.test.ts +118 -0
- package/src/generated-check.test.ts +170 -0
- package/src/generated-check.ts +310 -0
- package/src/image-pins.ts +31 -0
- package/src/lexicon.ts +28 -0
- package/src/lifecycle/git.test.ts +48 -0
- package/src/lifecycle/git.ts +27 -4
- package/src/lifecycle/publish-npm.ts +87 -4
- package/src/lifecycle/reach-locks.test.ts +87 -0
- package/src/lifecycle/reach-locks.ts +169 -0
- package/src/lifecycle/release-catalog.test.ts +2 -2
- package/src/lifecycle/release-cut.ts +17 -1
- package/src/lifecycle/release-images-dockerfile.test.ts +20 -0
- package/src/lifecycle/release-images.test.ts +100 -0
- package/src/lifecycle/release-images.ts +38 -3
- package/src/lifecycle/release-ledger.ts +4 -3
- package/src/local-chant.e2e.test.ts +81 -6
- package/src/local-chant.test.ts +22 -3
- package/src/local-chant.ts +130 -13
- package/src/notify-product.ts +19 -8
- package/src/op/activities/source-release.ts +2 -1
- package/src/op/activities/source-rollback.ts +2 -1
- package/src/op/gate-resume.test.ts +27 -0
- package/src/op/index.ts +10 -0
- package/src/op/op-waves-evidence-jobs.ts +140 -0
- package/src/op/op-waves-evidence.test.ts +36 -3
- package/src/op/op-waves-evidence.ts +23 -3
- package/src/op/op-waves-notify-words.test.ts +18 -0
- package/src/op/op-waves-render-spec.test.ts +160 -0
- package/src/op/op-waves-render-spec.ts +171 -0
- package/src/op/op-waves-run.ts +59 -3
- package/src/op/op-waves.ts +16 -2
- package/src/op/schedule-overdue.test.ts +126 -1
- package/src/op/schedule-overdue.ts +164 -12
- package/src/op/wave-stop.test.ts +72 -0
- package/src/op/wave-stop.ts +137 -0
- package/src/planned-files.test.ts +80 -0
- package/src/planned-files.ts +134 -0
- package/src/pr-forge-job.test.ts +53 -0
- package/src/pr-forge-job.ts +46 -0
- package/src/pr-forge-reads-compare.test.ts +2 -1
- package/src/pr-forge-reads.ts +37 -1
- package/src/pr-forge.ts +14 -3
- package/src/pr-loop-narrowed.test.ts +2 -1
- package/src/pr-loop-words.test.ts +2 -1
- package/src/pr-loop.test.ts +1 -2
- package/src/pr-loop.ts +4 -80
- package/src/pr-plan-note.ts +184 -3
- package/src/pr-plan-record.test.ts +75 -0
- package/src/pr-plan-record.ts +101 -0
- package/src/pr-post-plan-note.test.ts +60 -0
- package/src/pr-post-replan.test.ts +144 -0
- package/src/pr-post-subject.test.ts +230 -0
- package/src/pr-post.test.ts +32 -1
- package/src/pr-post.ts +254 -15
- package/src/pr-requires.test.ts +20 -0
- package/src/pr-requires.ts +10 -1
- package/src/pr-status.ts +91 -0
- package/src/ref-gate-init.ts +208 -0
- package/src/ref-gate-rules.ts +26 -0
- package/src/release-floors.ts +139 -17
- package/src/render-module.ts +73 -0
- package/src/state-migration-record.test.ts +89 -0
- package/src/state-migration.test.ts +1 -1
- package/src/state-migration.ts +52 -4
- package/src/state-unlock.test.ts +33 -1
- package/src/state-unlock.ts +49 -1
- package/src/workspace/ci-green-cli.ts +14 -7
- package/src/workspace/ci-green-workflow.test.ts +32 -1
- package/src/workspace/drift-cli.ts +6 -18
- package/src/workspace/forge-work.ts +7 -14
- package/src/workspace/lexicon-outputs.ts +2 -2
- package/src/workspace/release-train.ts +2 -1
- package/src/workspace/release-workflow.test.ts +104 -3
- package/src/workspace/release-workflow.ts +60 -9
- package/src/workspace/trust/check-evidence-report.ts +39 -8
- package/src/workspace/trust/check-evidence.test.ts +5 -0
- package/src/workspace/trust/check-evidence.ts +17 -5
- package/src/workspace/trust/evidence.ts +5 -0
- package/src/workspace/trust/open-evidence.ts +129 -0
- package/src/workspace/trust/ref-gate-cli.ts +88 -10
- package/src/workspace/trust/ref-gate-pieces.test.ts +220 -0
- package/src/workspace/trust/ref-gate.e2e.test.ts +17 -0
- package/src/workspace/trust/ref-gate.test.ts +10 -0
- package/src/workspace/trust/ref-gate.ts +87 -6
- package/src/workspace/workspace-run.ts +2 -1
package/dist/ci-image.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ci-image.d.ts","sourceRoot":"","sources":["../src/ci-image.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"ci-image.d.ts","sourceRoot":"","sources":["../src/ci-image.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAyCG;AASH,OAAO,EAAE,4BAA4B,EAAE,cAAc,EAAE,uBAAuB,EAAE,2BAA2B,EAAE,MAAM,kBAAkB,CAAC;AAEtI,OAAO,EAAE,4BAA4B,EAAE,cAAc,EAAE,uBAAuB,EAAE,2BAA2B,EAAE,CAAC;AAK9G,MAAM,MAAM,MAAM,GACd,MAAM,GACN,WAAW,GACX,YAAY,GACZ,WAAW,GACX,WAAW,GACX,QAAQ,GACR,OAAO,GACP,WAAW,GACX,QAAQ,GACR,QAAQ,GACR,SAAS,GACT,MAAM,GACN,KAAK,CAAC;AAEV,4EAA4E;AAC5E,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,OAAO,CAAC;AAC3C,eAAO,MAAM,cAAc,EAAE,SAAS,UAAU,EAAuB,CAAC;AAExE;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,QAAQ,GAAG,QAAQ,GAAG,KAAK,GAAG,MAAM,GAAG,SAAS,CAAC;AA0I5E,eAAO,MAAM,QAAQ,EAAE,SAAS,MAAM,EAAmC,CAAC;AAE1E;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,EAAE,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CA6B3D,CAAC;AAEF,yDAAyD;AACzD,MAAM,WAAW,aAAa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-image.js
CHANGED
|
@@ -16,9 +16,11 @@
|
|
|
16
16
|
* product records others in its own config and passes them as `sha256`.
|
|
17
17
|
* - {@link ciToolFetchScript} is the shell that downloads one release and
|
|
18
18
|
* checks it, for an image's fetch stage; {@link ciToolInstallLine} is the
|
|
19
|
-
* job line that runs it unless the binary is there
|
|
20
|
-
*
|
|
21
|
-
*
|
|
19
|
+
* job line that runs it unless the binary is there (with `sudo`, or under
|
|
20
|
+
* a root such as `$RUNNER_TEMP/chant-tools`, for a job that is not root,
|
|
21
|
+
* #4908). With `download: "node"` both fetch and unpack with node, for
|
|
22
|
+
* an image with no curl or unzip (#4952). {@link installCiTool} does the same from Node, for a product
|
|
23
|
+
* that installs a pinned release at run time.
|
|
22
24
|
* - {@link productImageStages} is a product's image as stages a Dockerfile
|
|
23
25
|
* takes (the docker lexicon's `new Dockerfile({ stages })`), and
|
|
24
26
|
* {@link productImageDockerfile} is the same as text. The product passes
|
|
@@ -30,7 +32,7 @@
|
|
|
30
32
|
* project publishes a checksums file is checked against that file's line
|
|
31
33
|
* for the archive, and against the recorded sha256 when there is one, so a
|
|
32
34
|
* tampered checksums file fails as a tampered archive does. A release with
|
|
33
|
-
* no checksums file (the AWS CLI, just
|
|
35
|
+
* no checksums file (the AWS CLI, just before 1.35.0) needs a recorded sha256. An
|
|
34
36
|
* image always needs a recorded sha256 for both architectures, and a caller
|
|
35
37
|
* passes `requirePin` to ask the same of a job line or a run-time install.
|
|
36
38
|
*
|
|
@@ -45,9 +47,14 @@ import { tmpdir } from "node:os";
|
|
|
45
47
|
import { join } from "node:path";
|
|
46
48
|
import { gunzipSync, inflateRawSync } from "node:zlib";
|
|
47
49
|
import { tarEntry } from "./policy-engine.js";
|
|
48
|
-
import { CI_IMAGE_FLOOR } from "./release-floors.js";
|
|
49
|
-
export { CI_IMAGE_FLOOR };
|
|
50
|
+
import { CI_IMAGE_DOCKER_STAGES_FLOOR, CI_IMAGE_FLOOR, CI_IMAGE_NON_ROOT_FLOOR, CI_TOOL_NODE_DOWNLOAD_FLOOR } from "./release-floors.js";
|
|
51
|
+
export { CI_IMAGE_DOCKER_STAGES_FLOOR, CI_IMAGE_FLOOR, CI_IMAGE_NON_ROOT_FLOOR, CI_TOOL_NODE_DOWNLOAD_FLOOR };
|
|
50
52
|
export const CI_TOOL_ARCHES = ["amd64", "arm64"];
|
|
53
|
+
/** Whether a release version is at least `major.minor`. */
|
|
54
|
+
function atLeast(version, major, minor) {
|
|
55
|
+
const [a = 0, b = 0] = version.split(".").map((n) => Number.parseInt(n, 10));
|
|
56
|
+
return a > major || (a === major && b >= minor);
|
|
57
|
+
}
|
|
51
58
|
const STD = { amd64: "amd64", arm64: "arm64" };
|
|
52
59
|
const GNU = { amd64: "x86_64", arm64: "aarch64" };
|
|
53
60
|
const NODE_WORDS = { amd64: "x64", arm64: "arm64" };
|
|
@@ -147,6 +154,8 @@ const TOOLS = {
|
|
|
147
154
|
words: GNU,
|
|
148
155
|
base: (v) => `https://github.com/casey/just/releases/download/${v}`,
|
|
149
156
|
asset: (v, w) => `just-${v}-${w}-unknown-linux-musl.tar.gz`,
|
|
157
|
+
// #4952: just publishes `SHA256SUMS` from 1.37.0, one `<file>.sha256sum` per file in 1.35.0 and 1.36.0, and none before.
|
|
158
|
+
checksums: (v, asset) => (atLeast(v, 1, 37) ? "SHA256SUMS" : atLeast(v, 1, 35) ? `${asset}.sha256sum` : undefined),
|
|
150
159
|
layout: "tar.gz",
|
|
151
160
|
},
|
|
152
161
|
act: {
|
|
@@ -154,6 +163,7 @@ const TOOLS = {
|
|
|
154
163
|
words: { amd64: "x86_64", arm64: "arm64" },
|
|
155
164
|
base: (v) => `https://github.com/nektos/act/releases/download/v${v}`,
|
|
156
165
|
asset: (_v, w) => `act_Linux_${w}.tar.gz`,
|
|
166
|
+
checksums: () => "checksums.txt",
|
|
157
167
|
layout: "tar.gz",
|
|
158
168
|
},
|
|
159
169
|
};
|
|
@@ -179,10 +189,33 @@ export const CI_TOOL_SHA256 = {
|
|
|
179
189
|
"plunge-0.2.0-linux-arm64": "c176a82f038164085aa19c8ad6530d6022e560e124050e535dbe364ae0473357",
|
|
180
190
|
"aws-cli-2.22.0-linux-amd64": "f315aa564190a12ae05a05bd8ab7b0645dd4a1ad71ce9e47dae4ff3dfeee8ceb",
|
|
181
191
|
"aws-cli-2.22.0-linux-arm64": "c932ac00901ea3c430f3829140b8dc00fa6e9b8b99d6891929a4795947de7f3e",
|
|
192
|
+
// #4908: terragucci's image pins (its TOOL_SHA256, from terraform_1.14.9_SHA256SUMS and terragrunt v1.2.0's SHA256SUMS)
|
|
193
|
+
// and the AWS CLI its drift job installs (its AWS_CLI), so a product's image and job lines need no sums of their own.
|
|
194
|
+
"terraform-1.14.9-linux-amd64": "2e5cffc20a0b48a67a76268723bd5a10b8666f69b2aa4f04906e206726bedd63",
|
|
195
|
+
"terraform-1.14.9-linux-arm64": "863002085b886453795d9ff4b8989b8468784478150b70ba8a1df3e3ad66da99",
|
|
196
|
+
"terragrunt-1.2.0-linux-amd64": "45b6df8a8494c8cfe34b4abf919e894709557163e4d3b5704d11083002ab787a",
|
|
197
|
+
"terragrunt-1.2.0-linux-arm64": "b069ce4310572bc46ee6f057057acc4bc6a9077ef8687e157a64b0551290a371",
|
|
198
|
+
"aws-cli-2.37.9-linux-amd64": "6b3a6a3d7bb3997928f0bdf7b866914224abf242c2e54e1dcebbe84bee64f356",
|
|
199
|
+
"aws-cli-2.37.9-linux-arm64": "e7d2cca3622af4765871fe9ce7eeed03acd09dca10a99ebc46e92f79d78765c0",
|
|
200
|
+
// #4952: terragucci's just and act pins (its workflows/shared.ts), read on 2026-11-10 from
|
|
201
|
+
// https://github.com/casey/just/releases/download/1.36.0/just-1.36.0-{x86_64,aarch64}-unknown-linux-musl.tar.gz.sha256sum
|
|
202
|
+
// and https://github.com/nektos/act/releases/download/v0.2.89/checksums.txt.
|
|
203
|
+
// squawk is not here: its releases publish no checksums file, only bare binaries, and no product pins a release.
|
|
204
|
+
"just-1.36.0-linux-amd64": "bc7c9f377944f8de9cd0418b11d2955adebfa25a488c0b5e3dd2d2c0e9d732da",
|
|
205
|
+
"just-1.36.0-linux-arm64": "bb3886b15e2cbcb9c0eb19956297d36de4eaef45b89d3f5fa5d1fc4ed3b5b51d",
|
|
206
|
+
"act-0.2.89-linux-amd64": "0191d6f1f3b716b5c55820032605d05fc3c1cdbf581ebeff655019e5dd1524c0",
|
|
207
|
+
"act-0.2.89-linux-arm64": "daa8679ba9615a74d2d0cec321dc593f21948a2a11bb65862b063d8b930f4bcb",
|
|
182
208
|
};
|
|
183
209
|
const VERSION = /^\d+\.\d+\.\d+(?:-[0-9A-Za-z.]+)?$/;
|
|
184
210
|
const SHA256 = /^[0-9a-f]{64}$/;
|
|
185
211
|
const DIR = /^\/[A-Za-z0-9._/-]*$/;
|
|
212
|
+
/**
|
|
213
|
+
* A directory a job line may name (#4908): an absolute path, or one under a
|
|
214
|
+
* variable the job's shell expands, such as `$RUNNER_TEMP/chant-tools` or
|
|
215
|
+
* `$HOME/.local/bin`, so a job that is not root installs where it can write.
|
|
216
|
+
* Every line writes it inside double quotes.
|
|
217
|
+
*/
|
|
218
|
+
const SHELL_DIR = /^(?:\/|\$[A-Za-z_][A-Za-z0-9_]*(?=\/|$)|\$\{[A-Za-z_][A-Za-z0-9_]*\})[A-Za-z0-9._/-]*$/;
|
|
186
219
|
function spec(tool) {
|
|
187
220
|
const s = TOOLS[tool];
|
|
188
221
|
if (!s)
|
|
@@ -231,11 +264,11 @@ export function ciToolSha256(tool, version, given) {
|
|
|
231
264
|
}
|
|
232
265
|
return out;
|
|
233
266
|
}
|
|
234
|
-
/** Where a tool lives once installed: `<root>/<tool>-<version>`. */
|
|
267
|
+
/** Where a tool lives once installed: `<root>/<tool>-<version>`. A job line's root may start with a shell variable (#4908). */
|
|
235
268
|
export function ciToolDir(tool, version, root) {
|
|
236
269
|
checkVersion(tool, version);
|
|
237
|
-
if (!
|
|
238
|
-
throw new Error(`a tool root is an absolute path of letters, digits and ._/-, not ${JSON.stringify(root)}`);
|
|
270
|
+
if (!SHELL_DIR.test(root))
|
|
271
|
+
throw new Error(`a tool root is an absolute path of letters, digits and ._/-, or one under a variable such as $RUNNER_TEMP, not ${JSON.stringify(root)}`);
|
|
239
272
|
return `${root.replace(/\/+$/, "")}/${tool}-${version}`;
|
|
240
273
|
}
|
|
241
274
|
/** The binary's path once installed under `root`. */
|
|
@@ -249,8 +282,39 @@ export function ciToolBin(tool, version, root) {
|
|
|
249
282
|
export const CI_TOOL_JOB_ARCH = `"$(uname -m | sed 's/x86_64/amd64/;s/aarch64/arm64/')"`;
|
|
250
283
|
/** A Docker build's target architecture (`ARG TARGETARCH`), amd64 or arm64. */
|
|
251
284
|
export const CI_TOOL_DOCKER_ARCH = `"$TARGETARCH"`;
|
|
285
|
+
/** The download line's script for `download: "node"`: `node -e <it> <url> <file>`. A failed answer exits 1 naming the URL and the status. */
|
|
286
|
+
const NODE_FETCH_JS = 'const [u,o]=process.argv.slice(1);fetch(u).then(async(r)=>{if(!r.ok)throw new Error(u+": HTTP "+r.status);require("fs").writeFileSync(o,Buffer.from(await r.arrayBuffer()))}).catch((e)=>{console.error(e.message);process.exit(1)})';
|
|
287
|
+
/**
|
|
288
|
+
* The unpack line's script for `download: "node"`: `node -e <it> <zip>
|
|
289
|
+
* <dir> [member]`, every entry (or the one member) written under `dir`
|
|
290
|
+
* with its executable bit and symbolic links kept, as the AWS CLI's
|
|
291
|
+
* installer needs. Stored and deflated entries only, as {@link unzipEntry}
|
|
292
|
+
* reads them; an entry whose path leaves `dir` fails the line. Written with
|
|
293
|
+
* no single quote or `$`, so it goes inside the shell's single quotes as it is.
|
|
294
|
+
*/
|
|
295
|
+
const NODE_UNZIP_JS = [
|
|
296
|
+
'const fs=require("fs"),p=require("path"),z=require("zlib");const [f,d,m]=process.argv.slice(1);const b=fs.readFileSync(f);',
|
|
297
|
+
'let e=b.length-22;while(e>=0&&b.readUInt32LE(e)!==0x06054b50)e--;if(e<0)throw new Error(f+" is not a zip archive");',
|
|
298
|
+
"const top=p.resolve(d);let o=b.readUInt32LE(e+16),hit=false;",
|
|
299
|
+
"for(let i=b.readUInt16LE(e+10);i>0;i--){",
|
|
300
|
+
'const meth=b.readUInt16LE(o+10),size=b.readUInt32LE(o+20),nl=b.readUInt16LE(o+28),xl=b.readUInt16LE(o+30),cl=b.readUInt16LE(o+32),mode=b.readUInt32LE(o+38)>>>16,l=b.readUInt32LE(o+42),n=b.toString("utf8",o+46,o+46+nl);',
|
|
301
|
+
"o+=46+nl+xl+cl;if(m&&n!==m)continue;hit=true;",
|
|
302
|
+
'const t=p.resolve(top,n);if(t!==top&&!t.startsWith(top+p.sep))throw new Error(n+" is outside "+d);',
|
|
303
|
+
'if(n.endsWith("/")){fs.mkdirSync(t,{recursive:true});continue}',
|
|
304
|
+
"const s=l+30+b.readUInt16LE(l+26)+b.readUInt16LE(l+28),raw=b.subarray(s,s+size),data=meth===0?raw:meth===8?z.inflateRawSync(raw):null;",
|
|
305
|
+
'if(!data)throw new Error(n+" uses compression method "+meth);fs.mkdirSync(p.dirname(t),{recursive:true});',
|
|
306
|
+
"if((mode&0o170000)===0o120000)fs.symlinkSync(data.toString(),t);else fs.writeFileSync(t,data,{mode:mode&0o111?0o755:0o644})}",
|
|
307
|
+
'if(m&&!hit)throw new Error(m+" is not in "+f)',
|
|
308
|
+
].join("");
|
|
309
|
+
function checkDownload(download) {
|
|
310
|
+
if (download === undefined || download === "curl")
|
|
311
|
+
return "curl";
|
|
312
|
+
if (download === "node")
|
|
313
|
+
return "node";
|
|
314
|
+
throw new Error(`download is curl or node, not ${JSON.stringify(download)}`);
|
|
315
|
+
}
|
|
252
316
|
function needPins(tool, version, sums, requirePin) {
|
|
253
|
-
const hasSums = spec(tool).checksums !== undefined;
|
|
317
|
+
const hasSums = spec(tool).checksums?.(version, "") !== undefined;
|
|
254
318
|
const missing = CI_TOOL_ARCHES.filter((a) => !sums[a]);
|
|
255
319
|
if (missing.length && (requirePin || !hasSums)) {
|
|
256
320
|
const why = hasSums ? "" : `; ${tool}'s release publishes no checksums file, so chant needs one`;
|
|
@@ -264,11 +328,16 @@ function needPins(tool, version, sums, requirePin) {
|
|
|
264
328
|
* release needs a recorded sha256 it lacks.
|
|
265
329
|
*/
|
|
266
330
|
export function ciToolFetchScript(tool, version, options) {
|
|
267
|
-
if (!
|
|
268
|
-
throw new Error(`a fetch directory is an absolute path of letters, digits and ._/-, not ${JSON.stringify(options.dir)}`);
|
|
331
|
+
if (!SHELL_DIR.test(options.dir))
|
|
332
|
+
throw new Error(`a fetch directory is an absolute path of letters, digits and ._/-, or one under a variable such as $RUNNER_TEMP, not ${JSON.stringify(options.dir)}`);
|
|
333
|
+
const su = options.sudo ? "sudo " : "";
|
|
269
334
|
const s = spec(tool);
|
|
270
335
|
const sums = ciToolSha256(tool, version, options.sha256);
|
|
271
336
|
needPins(tool, version, sums, options.requirePin === true);
|
|
337
|
+
const node = checkDownload(options.download) === "node";
|
|
338
|
+
// #4952: `get <url word> <file>` and `unzipTo <zip> <dir> [member]`, with curl and unzip or with node.
|
|
339
|
+
const get = (url, out) => (node ? `node -e '${NODE_FETCH_JS}' ${url} "${out}"` : `curl -fsSLo "${out}" ${url}`);
|
|
340
|
+
const unzipTo = (zipFile, into, member) => node ? `node -e '${NODE_UNZIP_JS}' "${zipFile}" "${into}"${member ? ` "${member}"` : ""}` : `unzip -q${member ? " -o" : ""} "${zipFile}"${member ? ` "${member}"` : ""} -d "${into}"`;
|
|
272
341
|
const name = `${tool} ${version}`;
|
|
273
342
|
const base = s.base(version);
|
|
274
343
|
const file = s.asset(version, "$w");
|
|
@@ -278,35 +347,35 @@ export function ciToolFetchScript(tool, version, options) {
|
|
|
278
347
|
`case "$a" in ${CI_TOOL_ARCHES.map((a) => `(${a}) w=${s.words[a]} ;;`).join(" ")} (*) echo "${name}: chant fetches it for ${CI_TOOL_ARCHES.join(" and ")}, not $a" >&2; exit 1 ;; esac`,
|
|
279
348
|
`f="${file}"`,
|
|
280
349
|
`t="$(mktemp -d)"`,
|
|
281
|
-
`
|
|
350
|
+
get(`"${base}/$f"`, "$t/$f"),
|
|
282
351
|
`case "$a" in ${CI_TOOL_ARCHES.filter((a) => sums[a]).map((a) => `(${a}) want=${sums[a]} ;;`).join(" ")} (*) want= ;; esac`,
|
|
283
352
|
];
|
|
284
353
|
const checksums = s.checksums?.(version, file);
|
|
285
354
|
if (checksums) {
|
|
286
|
-
lines.push(
|
|
355
|
+
lines.push(get(options.checksumsUrl ?? `"${base}/${checksums}"`, "$t/sums"),
|
|
287
356
|
// The archive's line, with any ./ or * before the name taken off.
|
|
288
357
|
`line="$(sed -n "s#^\\([0-9a-f]\\{64\\}\\) *[*.]*/*$f\\$#\\1#p" "$t/sums")"`, `{ [ -n "$line" ] || { echo "${name}: $f is not in ${checksums}" >&2; exit 1; }; }`, `{ [ -z "$want" ] || [ "$line" = "$want" ] || { echo "${name}: ${checksums} lists $line for $f; chant records $want" >&2; exit 1; }; }`, `want="$line"`);
|
|
289
358
|
}
|
|
290
359
|
else {
|
|
291
360
|
lines.push(`{ [ -n "$want" ] || { echo "${name}: no sha256 is recorded for $f" >&2; exit 1; }; }`);
|
|
292
361
|
}
|
|
293
|
-
lines.push(`echo "$want $t/$f" | sha256sum -c - >/dev/null`,
|
|
362
|
+
lines.push(`echo "$want $t/$f" | sha256sum -c - >/dev/null`, `${su}mkdir -p "${dir}"`);
|
|
294
363
|
const member = s.member?.("$w") ?? s.bin;
|
|
295
364
|
switch (s.layout) {
|
|
296
365
|
case "binary":
|
|
297
|
-
lines.push(
|
|
366
|
+
lines.push(`${su}install -m 0755 "$t/$f" "${dir}/${s.bin}"`);
|
|
298
367
|
break;
|
|
299
368
|
case "tar.gz":
|
|
300
|
-
lines.push(`tar -xzf "$t/$f" -C "$t" "${member}"`,
|
|
369
|
+
lines.push(`tar -xzf "$t/$f" -C "$t" "${member}"`, `${su}install -m 0755 "$t/${member}" "${dir}/${s.bin}"`);
|
|
301
370
|
break;
|
|
302
371
|
case "zip":
|
|
303
|
-
lines.push(
|
|
372
|
+
lines.push(unzipTo("$t/$f", "$t", member), `${su}install -m 0755 "$t/${member}" "${dir}/${s.bin}"`);
|
|
304
373
|
break;
|
|
305
374
|
case "tree":
|
|
306
|
-
lines.push(
|
|
375
|
+
lines.push(`${su}tar -xzf "$t/$f" -C "${dir}" --strip-components=1`);
|
|
307
376
|
break;
|
|
308
377
|
case "aws-cli":
|
|
309
|
-
lines.push(
|
|
378
|
+
lines.push(unzipTo("$t/$f", "$t"), `${su}"$t/aws/install" -i "${dir}" -b "${dir}/bin"`);
|
|
310
379
|
break;
|
|
311
380
|
}
|
|
312
381
|
return lines.join(" && ");
|
|
@@ -325,9 +394,16 @@ export function ciToolInstallLine(tool, version, options = {}) {
|
|
|
325
394
|
const dir = ciToolDir(tool, version, root);
|
|
326
395
|
const bin = ciToolBin(tool, version, root);
|
|
327
396
|
const s = spec(tool);
|
|
328
|
-
const
|
|
397
|
+
const binDir = (options.binDir ?? "/usr/local/bin").replace(/(.)\/+$/, "$1");
|
|
398
|
+
if (!SHELL_DIR.test(binDir))
|
|
399
|
+
throw new Error(`binDir is an absolute path of letters, digits and ._/-, or one under a variable such as $HOME, not ${JSON.stringify(options.binDir)}`);
|
|
400
|
+
const su = options.sudo ? "sudo " : "";
|
|
401
|
+
const install = `(set -e; ${ciToolFetchScript(tool, version, { dir, sha256: options.sha256, requirePin: options.requirePin, sudo: options.sudo, download: options.download })})`;
|
|
329
402
|
const inDir = `[ -x "${bin}" ]`;
|
|
330
|
-
|
|
403
|
+
// A plain path is written as it always was; one under a variable is quoted, so the shell expands it as one word.
|
|
404
|
+
const target = DIR.test(binDir) ? `${binDir}/${s.bin}` : `"${binDir}/${s.bin}"`;
|
|
405
|
+
const link = `${su}${options.binDir !== undefined ? `mkdir -p "${binDir}" && ${su}` : ""}ln -sf "${bin}" ${target}`;
|
|
406
|
+
const line = options.link === false ? `${inDir} || ${install}` : `{ ${inDir} || ${install}; } && ${link}`;
|
|
331
407
|
return options.onPath ? `command -v ${s.bin} >/dev/null 2>&1 || { ${line}; }` : line;
|
|
332
408
|
}
|
|
333
409
|
// ---------------------------------------------------------------------------
|
|
@@ -562,6 +638,9 @@ export function productImageStages(spec) {
|
|
|
562
638
|
if (spec.chant !== undefined && !VERSION.test(spec.chant))
|
|
563
639
|
throw new Error(`chant ${JSON.stringify(spec.chant)} is not a release version`);
|
|
564
640
|
const root = spec.toolRoot ?? `/opt/${spec.product}`;
|
|
641
|
+
// An image's COPY takes no shell variable, so the tool root is a plain path here.
|
|
642
|
+
if (!DIR.test(root))
|
|
643
|
+
throw new Error(`toolRoot ${JSON.stringify(root)} is not an absolute path of letters, digits and ._/-`);
|
|
565
644
|
const tools = spec.tools ?? [];
|
|
566
645
|
const seen = new Set();
|
|
567
646
|
for (const t of tools) {
|
package/dist/ci-jobs.d.ts
CHANGED
|
@@ -185,7 +185,7 @@ export declare function mergePermissions(name: string, base: Record<string, "rea
|
|
|
185
185
|
* it has never seen, so it cannot know a local path resolves there.
|
|
186
186
|
*/
|
|
187
187
|
export declare function assertSetupSteps(name: string, setup: OpSetupStep[]): void;
|
|
188
|
-
/** One setup entry as a GitHub Actions step: `with:` and `env:` only when they hold something. */
|
|
188
|
+
/** One setup entry as a GitHub Actions step: its `name` when it has one (#4932), `with:` and `env:` only when they hold something. */
|
|
189
189
|
export declare function setupStepDoc(step: OpSetupStep): Record<string, unknown>;
|
|
190
190
|
/**
|
|
191
191
|
* Validate an `environment` for GitHub Actions (#2257). GitHub creates an
|
package/dist/ci-jobs.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ci-jobs.d.ts","sourceRoot":"","sources":["../src/ci-jobs.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,aAAa,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,WAAW,CAAC;AAItF;;;;GAIG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za-z0-9_.-]+)((?:\/[A-Za-z0-9_.-]+
|
|
|
291
291
|
export function assertSetupSteps(name, setup) {
|
|
292
292
|
setup.forEach((step, index) => {
|
|
293
293
|
const where = `Scheduled Op "${name}" setup step ${index + 1}`;
|
|
294
|
+
if (step.name !== undefined && (step.name.trim() === "" || /[\r\n]/.test(step.name))) {
|
|
295
|
+
throw new Error(`${where} has a blank or multi-line \`name\`. Give the step a one-line name, or leave it out.`);
|
|
296
|
+
}
|
|
294
297
|
if ("uses" in step) {
|
|
295
298
|
const ref = step.uses.trim();
|
|
296
299
|
const match = USES_PATTERN.exec(ref);
|
|
@@ -315,16 +318,18 @@ export function assertSetupSteps(name, setup) {
|
|
|
315
318
|
}
|
|
316
319
|
});
|
|
317
320
|
}
|
|
318
|
-
/** One setup entry as a GitHub Actions step: `with:` and `env:` only when they hold something. */
|
|
321
|
+
/** One setup entry as a GitHub Actions step: its `name` when it has one (#4932), `with:` and `env:` only when they hold something. */
|
|
319
322
|
export function setupStepDoc(step) {
|
|
323
|
+
const name = step.name !== undefined ? { name: step.name } : {};
|
|
320
324
|
if ("uses" in step) {
|
|
321
325
|
return {
|
|
326
|
+
...name,
|
|
322
327
|
uses: step.uses,
|
|
323
328
|
...nonEmpty("with", step.with),
|
|
324
329
|
...nonEmpty("env", step.env),
|
|
325
330
|
};
|
|
326
331
|
}
|
|
327
|
-
return { run: step.run, ...nonEmpty("env", step.env) };
|
|
332
|
+
return { ...name, run: step.run, ...nonEmpty("env", step.env) };
|
|
328
333
|
}
|
|
329
334
|
/**
|
|
330
335
|
* Validate an `environment` for GitHub Actions (#2257). GitHub creates an
|
package/dist/ci-login.d.ts
CHANGED
|
@@ -23,8 +23,11 @@
|
|
|
23
23
|
* `/tmp`), mode 0600. Then it sets:
|
|
24
24
|
*
|
|
25
25
|
* AWS AWS_ROLE_ARN, AWS_WEB_IDENTITY_TOKEN_FILE, AWS_ROLE_SESSION_NAME,
|
|
26
|
-
* AWS_REGION
|
|
27
|
-
*
|
|
26
|
+
* with `region` AWS_REGION and AWS_DEFAULT_REGION (else the job
|
|
27
|
+
* keeps its own, #4930), and AWS_ENDPOINT_URL_STS with
|
|
28
|
+
* `endpoint`. With no role the job gets the token file and the
|
|
29
|
+
* session name alone, for a tool that assumes its own roles,
|
|
30
|
+
* such as Terragrunt's `credentials` (#4930)
|
|
28
31
|
* GCP GOOGLE_APPLICATION_CREDENTIALS and
|
|
29
32
|
* CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE, an `external_account`
|
|
30
33
|
* file per service account that trades the token at Google's STS
|
|
@@ -37,9 +40,11 @@
|
|
|
37
40
|
*
|
|
38
41
|
* gcloud reads CLOUDSDK_AUTH_CREDENTIAL_FILE_OVERRIDE, so it needs no
|
|
39
42
|
* `gcloud auth login`. On GitHub and Forgejo the variables go to
|
|
40
|
-
* `$GITHUB_ENV
|
|
41
|
-
* login prints, which name files and hold no token, then
|
|
42
|
-
* variables and the spec. No file of variables is left to
|
|
43
|
+
* `$GITHUB_ENV`, which later steps read; on GitLab the script evaluates the
|
|
44
|
+
* `export` lines the login prints, which name files and hold no token, then
|
|
45
|
+
* unsets the token variables and the spec. No file of variables is left to
|
|
46
|
+
* delete. With {@link CloudLoginOptions.sameStep} every forge takes the
|
|
47
|
+
* GitLab form, so the step that logs in can run the tool too (#4930).
|
|
43
48
|
*
|
|
44
49
|
* Per target and per stage: the spec is a {@link CloudTradeSpec} without
|
|
45
50
|
* Pulumi, the plan or apply side of what `resolveCloudIdentity` gives, so a
|
|
@@ -47,7 +52,9 @@
|
|
|
47
52
|
* other targets take (#4332). The step then writes the
|
|
48
53
|
* {@link CLOUD_TARGETS_ENV} file the trade writes, each identity's
|
|
49
54
|
* variables in it, and a product hands each target's tool its own with
|
|
50
|
-
* `targetCloudEnv`, as after the trade.
|
|
55
|
+
* `targetCloudEnv`, as after the trade. The login sets no
|
|
56
|
+
* `CLOUD_TRADED_ENV`, which the trade does, so a product tells the login's
|
|
57
|
+
* targets file from a trade's (#4930).
|
|
51
58
|
*
|
|
52
59
|
* The functions return {@link OpWaveRunStep}s and the job's `idTokens`, the
|
|
53
60
|
* shape `OpWavesPipelineOptions.waveJobs[].before` and `recordPlans` take
|
|
@@ -73,7 +80,7 @@ interface TokenFileOption {
|
|
|
73
80
|
/** One job's login, per cloud: a {@link CloudTradeSpec}'s AWS, GCP and Azure parts, with defaults, and the login's own options. */
|
|
74
81
|
export interface CloudLoginSpec {
|
|
75
82
|
aws?: Omit<NonNullable<CloudTradeSpec["aws"]>, "region" | "audience"> & TokenFileOption & {
|
|
76
|
-
/**
|
|
83
|
+
/** AWS_REGION and AWS_DEFAULT_REGION. Unset: the job keeps its own region (#4930). */
|
|
77
84
|
region?: string;
|
|
78
85
|
/** The token's audience. Default `sts.amazonaws.com`. */
|
|
79
86
|
audience?: string;
|
|
@@ -91,11 +98,66 @@ export interface CloudLoginSpec {
|
|
|
91
98
|
cli?: boolean;
|
|
92
99
|
};
|
|
93
100
|
}
|
|
101
|
+
/**
|
|
102
|
+
* The variable the login sets (#4912): the token files it wrote itself,
|
|
103
|
+
* joined by `:`. A runner's `tokenFile` is not among them.
|
|
104
|
+
* {@link LOGIN_CLEAR_TOKENS} empties them.
|
|
105
|
+
*/
|
|
106
|
+
export declare const LOGIN_TOKEN_FILES_ENV = "CHANT_CLOUD_TOKEN_FILES";
|
|
107
|
+
/**
|
|
108
|
+
* A shell line that empties each file {@link LOGIN_TOKEN_FILES_ENV} names
|
|
109
|
+
* (#4912), so a step that runs after the cloud's tool finds no token in
|
|
110
|
+
* them. It truncates and deletes nothing. The login's `restart` runs it
|
|
111
|
+
* when the step exits. A job whose login is a step of its own runs it in
|
|
112
|
+
* the step after the tool's last use.
|
|
113
|
+
*/
|
|
114
|
+
export declare const LOGIN_CLEAR_TOKENS = "(set -f; IFS=:; for f in ${CHANT_CLOUD_TOKEN_FILES:-}; do [ ! -f \"$f\" ] || : > \"$f\"; done)";
|
|
115
|
+
/** The marker of a step the login's `restart` started again (#4912): its login is done. */
|
|
116
|
+
export declare const LOGIN_RESTART_MARKER = "CHANT_CLOUD_LOGGED_IN";
|
|
117
|
+
/** What the login's `restart` takes (#4912). */
|
|
118
|
+
export interface CloudLoginRestart {
|
|
119
|
+
/** The shell the step restarts in, with `-e` (bash also `-o pipefail`). Default `bash`. */
|
|
120
|
+
shell?: "bash" | "sh";
|
|
121
|
+
/** More variables the restarted step starts without, such as the forge tokens (`FORGE_TOKEN_VARS`). */
|
|
122
|
+
also?: readonly string[];
|
|
123
|
+
}
|
|
124
|
+
/** How a login is rendered. */
|
|
125
|
+
export interface CloudLoginOptions {
|
|
126
|
+
/**
|
|
127
|
+
* The login's variables in the step that runs it (#4930). GitHub and
|
|
128
|
+
* Forgejo then evaluate the `export` lines the login prints, as GitLab
|
|
129
|
+
* does, and nothing goes to `$GITHUB_ENV`: a product that logs in and
|
|
130
|
+
* runs its tool in one step (terragucci's, after it fetched its tokens
|
|
131
|
+
* and restarted the step without the token request variables) puts
|
|
132
|
+
* `steps[0].run` in that step. The lines stop the step on a failed login
|
|
133
|
+
* with `|| exit 1`, for a script that runs with `-e` off. Default false.
|
|
134
|
+
*/
|
|
135
|
+
sameStep?: boolean;
|
|
136
|
+
/**
|
|
137
|
+
* Log in, then start the step's script again without the token request
|
|
138
|
+
* variables (#4912): the login's lines with `sameStep`, run once, then
|
|
139
|
+
* the restart (ci-handover's `restartWithout`) without
|
|
140
|
+
* `ACTIONS_ID_TOKEN_REQUEST_URL`, `ACTIONS_ID_TOKEN_REQUEST_TOKEN` and
|
|
141
|
+
* `also`, so the change's code and the tool cannot request another token,
|
|
142
|
+
* and on Forgejo cannot reach the run's runtime token through them. The
|
|
143
|
+
* restarted step keeps the login's variables and empties the login's
|
|
144
|
+
* token files when it exits ({@link LOGIN_CLEAR_TOKENS}, an `EXIT` trap;
|
|
145
|
+
* a step that sets its own `EXIT` trap runs that line in it). The lines
|
|
146
|
+
* go at the top of the step, since the restart runs the script again from
|
|
147
|
+
* its first line. A script that is no file (`bash -c`) is not restarted:
|
|
148
|
+
* the variables are unset and it runs on. On GitLab the login already
|
|
149
|
+
* unsets the `id_tokens` variables, and the script is no file, so
|
|
150
|
+
* `restart` adds the unset of `also` and the trap. Implies `sameStep`.
|
|
151
|
+
* terragucci's `stageTokens` and `restartWithout`.
|
|
152
|
+
*/
|
|
153
|
+
restart?: boolean | CloudLoginRestart;
|
|
154
|
+
}
|
|
94
155
|
/** A job's login: its steps, and the OIDC tokens the job requests. */
|
|
95
156
|
export interface CloudLoginSteps {
|
|
96
157
|
/**
|
|
97
158
|
* The steps, in order. GitHub and Forgejo: each one `run:` step, its lines
|
|
98
|
-
* joined by newlines. GitLab
|
|
159
|
+
* joined by newlines. GitLab, and any forge with `sameStep`: their lines
|
|
160
|
+
* in the job's script or step.
|
|
99
161
|
*/
|
|
100
162
|
steps: OpWaveRunStep[];
|
|
101
163
|
/**
|
|
@@ -125,7 +187,7 @@ export declare function loginLine(out: string, format: "github-env" | "sh", forg
|
|
|
125
187
|
* variables to `$GITHUB_ENV`, so every later step has them. The job needs
|
|
126
188
|
* `id-token: write`, which `idTokens` asks chant's generators for.
|
|
127
189
|
*/
|
|
128
|
-
export declare function githubCloudLogin(spec: CloudLoginSpec): CloudLoginSteps;
|
|
190
|
+
export declare function githubCloudLogin(spec: CloudLoginSpec, options?: CloudLoginOptions): CloudLoginSteps;
|
|
129
191
|
/**
|
|
130
192
|
* A Forgejo Actions job's cloud login (#4788), as on GitHub. Forgejo 15 with
|
|
131
193
|
* Forgejo Runner 12.5 serves the token to a job with
|
|
@@ -133,8 +195,8 @@ export declare function githubCloudLogin(spec: CloudLoginSpec): CloudLoginSteps;
|
|
|
133
195
|
* that asks for `id-token: write`. On an older Forgejo, give each cloud a
|
|
134
196
|
* `tokenFile` the runner provides; the job then requests none.
|
|
135
197
|
*/
|
|
136
|
-
export declare function forgejoCloudLogin(spec: CloudLoginSpec): CloudLoginSteps;
|
|
137
|
-
/** The
|
|
198
|
+
export declare function forgejoCloudLogin(spec: CloudLoginSpec, options?: CloudLoginOptions): CloudLoginSteps;
|
|
199
|
+
/** The variable the login's `export` lines are kept in until the script evaluates them: GitLab's, and with `sameStep` any forge's (#4930). */
|
|
138
200
|
export declare const GITLAB_LOGIN_VARS = "CHANT_CLOUD_LOGIN_VARS";
|
|
139
201
|
/**
|
|
140
202
|
* A GitLab CI job's cloud login (#4788): script lines that write each
|
|
@@ -143,8 +205,8 @@ export declare const GITLAB_LOGIN_VARS = "CHANT_CLOUD_LOGIN_VARS";
|
|
|
143
205
|
* only in its file. The job's `id_tokens:` are `idTokens`, each
|
|
144
206
|
* `{ aud: <audience> }`.
|
|
145
207
|
*/
|
|
146
|
-
export declare function gitlabCloudLogin(given: CloudLoginSpec): CloudLoginSteps;
|
|
208
|
+
export declare function gitlabCloudLogin(given: CloudLoginSpec, options?: CloudLoginOptions): CloudLoginSteps;
|
|
147
209
|
/** A job's cloud login on `forge` (#4788): {@link githubCloudLogin}, {@link gitlabCloudLogin} or {@link forgejoCloudLogin}. */
|
|
148
|
-
export declare function cloudLogin(forge: LoginForge, spec: CloudLoginSpec): CloudLoginSteps;
|
|
210
|
+
export declare function cloudLogin(forge: LoginForge, spec: CloudLoginSpec, options?: CloudLoginOptions): CloudLoginSteps;
|
|
149
211
|
export {};
|
|
150
212
|
//# sourceMappingURL=ci-login.d.ts.map
|
package/dist/ci-login.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ci-login.d.ts","sourceRoot":"","sources":["../src/ci-login.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"ci-login.d.ts","sourceRoot":"","sources":["../src/ci-login.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8DG;AAEH,OAAO,EAKL,KAAK,cAAc,EACpB,MAAM,eAAe,CAAC;AAEvB,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,W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