@intentius/chant 0.124.86 → 0.124.88
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 +12 -0
- package/dist/actor.d.ts.map +1 -0
- package/dist/actor.js +18 -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 +204 -2
- 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 +103 -0
- package/dist/ci-evidence-from-job.d.ts.map +1 -0
- package/dist/ci-evidence-from-job.js +162 -0
- package/dist/ci-evidence-jobs.d.ts +69 -10
- package/dist/ci-evidence-jobs.d.ts.map +1 -1
- package/dist/ci-evidence-jobs.js +72 -8
- 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 +47 -9
- package/dist/ci-image.d.ts.map +1 -1
- package/dist/ci-image.js +45 -18
- 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-product-words.d.ts +20 -1
- package/dist/ci-product-words.d.ts.map +1 -1
- package/dist/ci-product-words.js +27 -1
- package/dist/ci-product.d.ts +20 -1
- package/dist/ci-product.d.ts.map +1 -1
- package/dist/ci-product.js +21 -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/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.map +1 -1
- package/dist/cli/handlers/ci-check.js +38 -14
- package/dist/cli/handlers/ci-evidence.d.ts.map +1 -1
- package/dist/cli/handlers/ci-evidence.js +238 -26
- 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/generated-check.d.ts +3 -0
- package/dist/cli/handlers/generated-check.d.ts.map +1 -0
- package/dist/cli/handlers/generated-check.js +41 -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/pr.d.ts.map +1 -1
- package/dist/cli/handlers/pr.js +42 -5
- package/dist/cli/handlers/run-wave.js +8 -0
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +38 -4
- package/dist/cli/parse-args.d.ts.map +1 -1
- package/dist/cli/parse-args.js +66 -0
- package/dist/cli/registry.d.ts +24 -0
- package/dist/cli/registry.d.ts.map +1 -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 +21 -3
- package/dist/components/check-steps.js +1 -1
- package/dist/components/pr-checks.d.ts +105 -0
- package/dist/components/pr-checks.d.ts.map +1 -0
- package/dist/components/pr-checks.js +119 -0
- package/dist/components/pr-pipeline.d.ts +34 -0
- package/dist/components/pr-pipeline.d.ts.map +1 -1
- package/dist/components/pr-pipeline.js +14 -1
- package/dist/components/product-pipeline.d.ts +16 -1
- package/dist/components/product-pipeline.d.ts.map +1 -1
- package/dist/components/product-pipeline.js +17 -2
- package/dist/components/product-plan.d.ts +262 -3
- package/dist/components/product-plan.d.ts.map +1 -1
- package/dist/components/product-plan.js +243 -11
- 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 +45 -5
- package/dist/drift-record.d.ts.map +1 -1
- package/dist/drift-record.js +27 -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 +58 -20
- package/dist/floor-table.js +10 -7
- package/dist/forge-check/contract.d.ts +8 -0
- package/dist/forge-check/contract.d.ts.map +1 -1
- package/dist/forge-check/contract.js +4 -1
- package/dist/forge-check/index.d.ts +2 -0
- package/dist/forge-check/index.d.ts.map +1 -1
- package/dist/forge-check/index.js +2 -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/generated-check.d.ts +74 -0
- package/dist/generated-check.d.ts.map +1 -0
- package/dist/generated-check.js +216 -0
- package/dist/lexicon.d.ts +16 -0
- package/dist/lexicon.d.ts.map +1 -1
- package/dist/lifecycle/publish-npm.d.ts +15 -0
- package/dist/lifecycle/publish-npm.d.ts.map +1 -1
- package/dist/lifecycle/publish-npm.js +49 -3
- 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 +27 -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/op/op-waves-evidence-jobs.d.ts +92 -0
- package/dist/op/op-waves-evidence-jobs.d.ts.map +1 -0
- package/dist/op/op-waves-evidence-jobs.js +112 -0
- package/dist/op/op-waves-evidence.d.ts +17 -4
- package/dist/op/op-waves-evidence.d.ts.map +1 -1
- package/dist/op/op-waves-evidence.js +32 -10
- package/dist/op/op-waves-run.d.ts +12 -1
- package/dist/op/op-waves-run.d.ts.map +1 -1
- package/dist/op/op-waves-run.js +54 -3
- package/dist/op/op-waves.d.ts +8 -0
- package/dist/op/op-waves.d.ts.map +1 -1
- package/dist/op/op-waves.js +10 -0
- 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 +89 -7
- 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-plan-note.d.ts +24 -0
- package/dist/pr-plan-note.d.ts.map +1 -1
- package/dist/pr-plan-note.js +11 -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 +40 -0
- package/dist/pr-post.d.ts.map +1 -1
- package/dist/pr-post.js +79 -6
- 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/ref-gate-init.d.ts +76 -0
- package/dist/ref-gate-init.d.ts.map +1 -0
- package/dist/ref-gate-init.js +144 -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 +51 -1
- package/dist/release-floors.d.ts.map +1 -1
- package/dist/release-floors.js +66 -16
- package/dist/state-migration.d.ts +23 -0
- package/dist/state-migration.d.ts.map +1 -1
- package/dist/state-migration.js +39 -3
- 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 +310 -303
- package/dist/workspace/ci-green-cli.d.ts.map +1 -1
- package/dist/workspace/ci-green-cli.js +13 -7
- package/dist/workspace/ci-green.d.ts.map +1 -1
- package/dist/workspace/ci-green.js +4 -3
- 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-workflow.d.ts +26 -3
- package/dist/workspace/release-workflow.d.ts.map +1 -1
- package/dist/workspace/release-workflow.js +48 -6
- package/dist/workspace/trust/check-evidence-report.d.ts +25 -0
- package/dist/workspace/trust/check-evidence-report.d.ts.map +1 -1
- package/dist/workspace/trust/check-evidence-report.js +20 -0
- package/dist/workspace/trust/check-evidence.d.ts +59 -13
- package/dist/workspace/trust/check-evidence.d.ts.map +1 -1
- package/dist/workspace/trust/check-evidence.js +101 -24
- package/dist/workspace/trust/ci-tag-statement.d.ts +2 -2
- package/dist/workspace/trust/ci-tag-statement.d.ts.map +1 -1
- package/dist/workspace/trust/dsse.d.ts +40 -2
- package/dist/workspace/trust/dsse.d.ts.map +1 -1
- package/dist/workspace/trust/dsse.js +34 -2
- package/dist/workspace/trust/evidence.d.ts +7 -2
- package/dist/workspace/trust/evidence.d.ts.map +1 -1
- package/dist/workspace/trust/evidence.js +5 -0
- package/dist/workspace/trust/keyless-fixture.d.ts +41 -0
- package/dist/workspace/trust/keyless-fixture.d.ts.map +1 -0
- package/dist/workspace/trust/keyless-fixture.js +161 -0
- package/dist/workspace/trust/keyless.d.ts +202 -0
- package/dist/workspace/trust/keyless.d.ts.map +1 -0
- package/dist/workspace/trust/keyless.js +488 -0
- package/dist/workspace/trust/local-evidence.d.ts +3 -0
- package/dist/workspace/trust/local-evidence.d.ts.map +1 -1
- package/dist/workspace/trust/op-run-statement.d.ts +2 -2
- package/dist/workspace/trust/op-run-statement.d.ts.map +1 -1
- 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/policy.d.ts +56 -1
- package/dist/workspace/trust/policy.d.ts.map +1 -1
- package/dist/workspace/trust/policy.js +103 -2
- package/dist/workspace/trust/ref-gate-cli.d.ts.map +1 -1
- package/dist/workspace/trust/ref-gate-cli.js +65 -3
- package/dist/workspace/trust/ref-gate.d.ts +62 -3
- package/dist/workspace/trust/ref-gate.d.ts.map +1 -1
- package/dist/workspace/trust/ref-gate.js +75 -8
- package/dist/workspace/trust/run-statement.d.ts +3 -3
- package/dist/workspace/trust/run-statement.d.ts.map +1 -1
- package/dist/workspace/trust/runner-identity.d.ts +56 -0
- package/dist/workspace/trust/runner-identity.d.ts.map +1 -0
- package/dist/workspace/trust/runner-identity.js +65 -0
- package/dist/workspace/trust/trust-files.d.ts.map +1 -1
- package/dist/workspace/trust/trust-files.js +8 -1
- package/package.json +1 -1
- package/src/action-pins.ts +2 -0
- package/src/actor.test.ts +12 -0
- package/src/actor.ts +19 -0
- package/src/bundle-check.test.ts +22 -0
- package/src/bundle-check.ts +33 -5
- package/src/chant-install.test.ts +109 -1
- package/src/chant-install.ts +243 -2
- package/src/ci-commit.test.ts +51 -5
- 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 +147 -0
- package/src/ci-evidence-from-job.ts +195 -0
- package/src/ci-evidence-jobs.ts +85 -10
- 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 +60 -10
- package/src/ci-image.ts +78 -19
- 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-product-words.ts +30 -0
- package/src/ci-product.ts +26 -1
- package/src/cli/commands/__fixtures__/source-dir-root/migrations/0001-init/backfill.ts +3 -0
- package/src/cli/handlers/approve-confirm.test.ts +35 -0
- package/src/cli/handlers/approve-confirm.ts +44 -0
- 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 +35 -13
- package/src/cli/handlers/ci-evidence-open.test.ts +164 -0
- package/src/cli/handlers/ci-evidence.ts +223 -24
- package/src/cli/handlers/ci-forge-check.ts +22 -9
- package/src/cli/handlers/generated-check.ts +39 -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/pr.ts +43 -5
- package/src/cli/handlers/run-wave.ts +7 -0
- package/src/cli/main.ts +38 -4
- package/src/cli/parse-args.ts +46 -0
- package/src/cli/registry.ts +24 -0
- package/src/components/check-hooks.ts +25 -3
- package/src/components/check-report-summary.test.ts +78 -0
- package/src/components/check-steps.ts +1 -1
- package/src/components/pr-checks.ts +159 -0
- package/src/components/pr-pipeline.ts +41 -1
- package/src/components/product-pipeline.ts +25 -3
- package/src/components/product-plan.test.ts +102 -1
- package/src/components/product-plan.ts +419 -14
- 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 +25 -0
- package/src/drift-record.ts +55 -6
- package/src/floor-table.data.ts +58 -20
- package/src/floor-table.ts +12 -9
- package/src/forge-check/contract.ts +11 -1
- package/src/forge-check/forge-check.test.ts +8 -0
- package/src/forge-check/index.ts +2 -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/generated-check.e2e.test.ts +98 -0
- package/src/generated-check.test.ts +104 -0
- package/src/generated-check.ts +269 -0
- package/src/lexicon.ts +17 -0
- package/src/lifecycle/publish-npm.ts +56 -3
- package/src/lifecycle/release-catalog.test.ts +2 -2
- package/src/lifecycle/release-images-dockerfile.test.ts +20 -0
- package/src/lifecycle/release-images.test.ts +44 -0
- package/src/lifecycle/release-images.ts +39 -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/op/op-waves-evidence-jobs.ts +134 -0
- package/src/op/op-waves-evidence.test.ts +37 -4
- package/src/op/op-waves-evidence.ts +32 -11
- package/src/op/op-waves-run.ts +57 -2
- package/src/op/op-waves.ts +11 -0
- package/src/op/schedule-overdue.test.ts +83 -1
- package/src/op/schedule-overdue.ts +107 -9
- 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-plan-note.ts +32 -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.test.ts +30 -0
- package/src/pr-post.ts +110 -6
- package/src/pr-requires.test.ts +20 -0
- package/src/pr-requires.ts +10 -1
- package/src/ref-gate-init.ts +189 -0
- package/src/ref-gate-rules.ts +26 -0
- package/src/release-floors.ts +88 -16
- package/src/state-migration-record.test.ts +90 -0
- package/src/state-migration.test.ts +1 -1
- package/src/state-migration.ts +52 -3
- package/src/state-unlock.test.ts +33 -1
- package/src/state-unlock.ts +49 -1
- package/src/workspace/ci-green-cli.ts +12 -6
- package/src/workspace/ci-green.ts +4 -3
- 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-workflow.test.ts +70 -0
- package/src/workspace/release-workflow.ts +56 -8
- package/src/workspace/trust/check-evidence-report.ts +33 -0
- package/src/workspace/trust/check-evidence.test.ts +3 -3
- package/src/workspace/trust/check-evidence.ts +110 -28
- package/src/workspace/trust/ci-tag-statement.ts +2 -2
- package/src/workspace/trust/dsse.ts +48 -4
- package/src/workspace/trust/evidence.ts +7 -2
- package/src/workspace/trust/keyless-fixture.ts +214 -0
- package/src/workspace/trust/keyless.test.ts +220 -0
- package/src/workspace/trust/keyless.ts +557 -0
- package/src/workspace/trust/local-evidence.ts +3 -1
- package/src/workspace/trust/op-run-statement.ts +2 -2
- package/src/workspace/trust/open-evidence.ts +129 -0
- package/src/workspace/trust/policy.ts +129 -2
- package/src/workspace/trust/ref-gate-cli.ts +59 -3
- package/src/workspace/trust/ref-gate-pieces.test.ts +175 -0
- package/src/workspace/trust/ref-gate.e2e.test.ts +17 -0
- package/src/workspace/trust/ref-gate.ts +90 -8
- package/src/workspace/trust/run-statement.ts +3 -3
- package/src/workspace/trust/runner-identity.ts +92 -0
- package/src/workspace/trust/trust-files.test.ts +6 -0
- package/src/workspace/trust/trust-files.ts +14 -1
package/dist/ci-product.js
CHANGED
|
@@ -17,7 +17,7 @@ import { NEXT_RELEASE } from "./release-floors.js";
|
|
|
17
17
|
* note (#4573).
|
|
18
18
|
*/
|
|
19
19
|
export const CI_PRODUCT_FLOOR = "0.124.55";
|
|
20
|
-
export { activeProductWords, approveLine, assertProductWords, CHANT_APPROVE_TEMPLATE, CHANT_NOTIFY_WAVE_TEMPLATE, CHANT_OVERRIDE_TEMPLATE, CHANT_WORDS, CI_PRODUCT_APPLY_MODES, CI_PRODUCT_COMMANDS, CI_PRODUCT_STAGES, CiProductWordsError, commandWord, commentLine, isChantWords, notifyWaveLabel, overrideLine, parseProductComment, productActionFromEnv, PRODUCT_ACTION_ENV, PRODUCT_ACTION_EVENT_FLAG, productContext, productStatusContext, productWaveGate, productWordsProblems, resolveProductWords, setActiveProductWords, withProductWords, } from "./ci-product-words.js";
|
|
20
|
+
export { activeProductWords, approveLine, assertProductWords, CHANT_APPROVE_TEMPLATE, CHANT_NOTIFY_WAVE_TEMPLATE, CHANT_OVERRIDE_TEMPLATE, CHANT_WORDS, CI_PRODUCT_APPLY_MODES, CI_PRODUCT_COMMANDS, CI_PRODUCT_STAGES, CiProductWordsError, commandWord, commentLine, commitWordOf, isChantWords, notifyWaveLabel, overrideLine, parseProductComment, productActionFromEnv, PRODUCT_ACTION_ENV, PRODUCT_ACTION_EVENT_FLAG, productContext, productStatusContext, productWaveGate, productWordsProblems, resolveProductWords, setActiveProductWords, withProductWords, } from "./ci-product-words.js";
|
|
21
21
|
export { driftNotifyFields, NOTIFY_MESSAGE_WORDS_FLOOR, productNotifySource, productNotifyWords, productSendOptions } from "./notify-product.js";
|
|
22
22
|
/** The first chant with `chant notify relay` and the notify relay buttons (#4611). */
|
|
23
23
|
export const NOTIFY_RELAY_FLOOR = "0.124.55";
|
|
@@ -44,9 +44,28 @@ export { prActionJob, PR_ACTION_JOB, prApplyComment, prCommentLockJobs, prCommen
|
|
|
44
44
|
* `components/product-plan-pipeline`. A product feature-detects on this
|
|
45
45
|
* floor.
|
|
46
46
|
*/
|
|
47
|
-
export const PRODUCT_PLAN_FLOOR =
|
|
47
|
+
export const PRODUCT_PLAN_FLOOR = "0.124.86";
|
|
48
48
|
export { productPlanJobs, PR_PLAN_NOTE_WORDS_ENV } from "./components/product-plan.js";
|
|
49
49
|
export { planNoteHandoff, PR_PLAN_NOTE_FILE } from "./pr-plan-note.js";
|
|
50
|
+
/**
|
|
51
|
+
* The first chant whose product plan carries the plan-job steps beside the plan verb and the note job's own lines (#4899, #4931): `productPlan.login` and a target's `login` (ci-login) with the job's OIDC token, `idTokens`, `pending`, `controlRead`, `setup` steps, job-level `env`, `report`, `concurrency`, the comment re-plan `replan`, and `noteSteps`; a hand-off's `marker` kept under the note words' `productMarker`; and the note job's notices and overdue Ops under a hand-off's counts.
|
|
52
|
+
*/
|
|
53
|
+
export const PRODUCT_PLAN_STEPS_FLOOR = NEXT_RELEASE;
|
|
54
|
+
export { PLAN_ARGUMENT_ENV, PLAN_NOTE_NOTICES_ENV } from "./components/product-plan.js";
|
|
55
|
+
/**
|
|
56
|
+
* The first chant whose `parseProductComment` takes `leaveCommit` and that has `commitWordOf` (#4890): a comment job that is not the commit job leaves every comment for a commit word to it, a malformed one included, so the comment gets one reply.
|
|
57
|
+
*/
|
|
58
|
+
export const COMMENT_LEAVES_COMMIT_FLOOR = NEXT_RELEASE;
|
|
59
|
+
/**
|
|
60
|
+
* The first chant whose product plan takes `watches`, the product's own scheduled jobs the note job's `pr-post` checks for having stopped with the job's token (#4888), and whose `checkOverdueOps` and `overdueOpsAt` take a product's `logPrefix` and `label`.
|
|
61
|
+
*/
|
|
62
|
+
export const PRODUCT_PLAN_WATCHES_FLOOR = NEXT_RELEASE;
|
|
63
|
+
export { PLAN_WATCHES_ENV } from "./op/schedule-overdue.js";
|
|
64
|
+
/**
|
|
65
|
+
* The first chant whose product plan takes `record` (#4899): the plan step writes the plan job's run record into the hand-off, and the note job keeps it as Op `pr-plan` on `chant/lifecycle` with `pr-post --record-run <plan job>` (`--open` on GitLab), as `chant ci run plan --in-place` records `pr-plan`'s.
|
|
66
|
+
*/
|
|
67
|
+
export const PRODUCT_PLAN_RECORD_FLOOR = NEXT_RELEASE;
|
|
68
|
+
export { PLAN_RUN_OP, PLAN_RUN_RECORD_FILE, readPlanRunRecord } from "./pr-plan-record.js";
|
|
50
69
|
/**
|
|
51
70
|
* Day-2 actions in the product pipeline (#4654): the `action` comment
|
|
52
71
|
* command counted as answered by the product's own workflow
|
|
@@ -22,6 +22,13 @@
|
|
|
22
22
|
*/
|
|
23
23
|
import type { ParsedArgs } from "../registry.js";
|
|
24
24
|
import type { PendingGateRecord } from "../../lifecycle/gate-ledger.js";
|
|
25
|
+
/**
|
|
26
|
+
* The first chant with `confirmApproval` here, the type-the-name
|
|
27
|
+
* confirmation a product's approve word asks through (#4575). #4916
|
|
28
|
+
* declared it after the fact, so `chant dev dead-guards` sees a product's
|
|
29
|
+
* lazy load of this subpath.
|
|
30
|
+
*/
|
|
31
|
+
export declare const APPROVE_CONFIRM_FLOOR = "0.124.55";
|
|
25
32
|
/** The streams the terminal check reads. `process` in the CLI; tests pass their own. */
|
|
26
33
|
export interface ApprovalTerminal {
|
|
27
34
|
stdin: {
|
|
@@ -81,4 +88,11 @@ export declare function approvalTarget(gate: string, standing: Pick<PendingGateR
|
|
|
81
88
|
* ({@link interactiveApproval}).
|
|
82
89
|
*/
|
|
83
90
|
export declare function confirmApproval(opName: string, gate: string, opts?: ConfirmApprovalOptions): Promise<ApprovalConfirmation>;
|
|
91
|
+
/**
|
|
92
|
+
* Print the attachment a gated request stored under `digest` (#4928), such
|
|
93
|
+
* as a state migration's roots and the product's record. JSON is printed
|
|
94
|
+
* indented, anything else as stored, and either is cut at
|
|
95
|
+
* {@link ATTACHMENT_SHOWN_BYTES} with the path of the whole. False when none is stored.
|
|
96
|
+
*/
|
|
97
|
+
export declare function showAttachment(op: string, digest: string, cwd: string, out: (text: string) => void, err: (text: string) => void): Promise<boolean>;
|
|
84
98
|
//# sourceMappingURL=approve-confirm.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"approve-confirm.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/approve-confirm.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAGrE,wFAAwF;AACxF,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IAC3B,MAAM,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IAC5B,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;CACzC;AAED;;;GAGG;AACH,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,IAAI,CAAC,UAAU,EAAE,KAAK,GAAG,MAAM,CAAC,EACtC,QAAQ,GAAE,gBAA0B,GACnC,OAAO,CAAC,OAAO,CAAC,CAOlB;AAED,qCAAqC;AACrC,MAAM,MAAM,oBAAoB;AAC9B,2HAA2H;AACzH;IAAE,MAAM,EAAE,SAAS,CAAA;CAAE;AACvB,kEAAkE;GAChE;IAAE,MAAM,EAAE,WAAW,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE;AACvD,6CAA6C;GAC3C;IAAE,MAAM,EAAE,SAAS,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAExC,MAAM,WAAW,sBAAsB;IACrC,4BAA4B;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2BAA2B;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0EAA0E;IAC1E,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,sHAAsH;IACtH,GAAG,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACnD,qDAAqD;IACrD,GAAG,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,6EAA6E;IAC7E,GAAG,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9B;AAED,2EAA2E;AAC3E,wBAAsB,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CActE;AAQD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC,iBAAiB,EAAE,aAAa,CAAC,GAAG,SAAS,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAEvI;AAED;;;;GAIG;AACH,wBAAsB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE,sBAA2B,GAAG,OAAO,CAAC,oBAAoB,CAAC,
|
|
1
|
+
{"version":3,"file":"approve-confirm.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/approve-confirm.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AACH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAC9C,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAGrE;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,aAAa,CAAC;AAEhD,wFAAwF;AACxF,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IAC3B,MAAM,EAAE;QAAE,KAAK,CAAC,EAAE,OAAO,CAAA;KAAE,CAAC;IAC5B,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC,CAAC;CACzC;AAED;;;GAGG;AACH,wBAAsB,mBAAmB,CACvC,IAAI,EAAE,IAAI,CAAC,UAAU,EAAE,KAAK,GAAG,MAAM,CAAC,EACtC,QAAQ,GAAE,gBAA0B,GACnC,OAAO,CAAC,OAAO,CAAC,CAOlB;AAED,qCAAqC;AACrC,MAAM,MAAM,oBAAoB;AAC9B,2HAA2H;AACzH;IAAE,MAAM,EAAE,SAAS,CAAA;CAAE;AACvB,kEAAkE;GAChE;IAAE,MAAM,EAAE,WAAW,CAAC;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAA;CAAE;AACvD,6CAA6C;GAC3C;IAAE,MAAM,EAAE,SAAS,CAAC;IAAC,IAAI,EAAE,MAAM,CAAA;CAAE,CAAC;AAExC,MAAM,WAAW,sBAAsB;IACrC,4BAA4B;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,2BAA2B;IAC3B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,0EAA0E;IAC1E,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,sHAAsH;IACtH,GAAG,CAAC,EAAE,CAAC,QAAQ,EAAE,MAAM,KAAK,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CAAC;IACnD,qDAAqD;IACrD,GAAG,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;IAC7B,6EAA6E;IAC7E,GAAG,CAAC,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,CAAC;CAC9B;AAED,2EAA2E;AAC3E,wBAAsB,OAAO,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,GAAG,IAAI,CAAC,CActE;AAQD;;;GAGG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,QAAQ,EAAE,IAAI,CAAC,iBAAiB,EAAE,aAAa,CAAC,GAAG,SAAS,EAAE,WAAW,CAAC,EAAE,MAAM,GAAG,MAAM,CAEvI;AAED;;;;GAIG;AACH,wBAAsB,eAAe,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE,sBAA2B,GAAG,OAAO,CAAC,oBAAoB,CAAC,CA4FpI;AAKD;;;;;GAKG;AACH,wBAAsB,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,GAAG,OAAO,CAAC,OAAO,CAAC,CAuBxJ"}
|
|
@@ -1,4 +1,11 @@
|
|
|
1
1
|
import { CHANT_EXIT } from "../../exit-codes.js";
|
|
2
|
+
/**
|
|
3
|
+
* The first chant with `confirmApproval` here, the type-the-name
|
|
4
|
+
* confirmation a product's approve word asks through (#4575). #4916
|
|
5
|
+
* declared it after the fact, so `chant dev dead-guards` sees a product's
|
|
6
|
+
* lazy load of this subpath.
|
|
7
|
+
*/
|
|
8
|
+
export const APPROVE_CONFIRM_FLOOR = "0.124.55";
|
|
2
9
|
/**
|
|
3
10
|
* Whether `chant approve` asks before recording: a person at a terminal, on
|
|
4
11
|
* a shell channel, who did not pass `--yes` or `--json`.
|
|
@@ -114,6 +121,9 @@ export async function confirmApproval(opName, gate, opts = {}) {
|
|
|
114
121
|
err(`The stored plan can't be read: ${e instanceof Error ? e.message : String(e)}\n`);
|
|
115
122
|
}
|
|
116
123
|
}
|
|
124
|
+
// #4928: a gated request's attachment (a state migration's roots and the product's record) is what its digest binds; show it.
|
|
125
|
+
if (!shown)
|
|
126
|
+
shown = await showAttachment(opName, digest, cwd, out, err);
|
|
117
127
|
if (!shown) {
|
|
118
128
|
err(`No plan is stored on chant/lifecycle under ${changeSet}. The run that stopped at the gate printed it; ` +
|
|
119
129
|
`the digest above is what this approval binds.\n`);
|
|
@@ -140,3 +150,39 @@ export async function confirmApproval(opName, gate, opts = {}) {
|
|
|
140
150
|
}
|
|
141
151
|
return { status: "confirmed", plan: digest, target };
|
|
142
152
|
}
|
|
153
|
+
/** The most of an attachment `chant approve` prints before it says where the rest is (#4928). */
|
|
154
|
+
const ATTACHMENT_SHOWN_BYTES = 64 * 1024;
|
|
155
|
+
/**
|
|
156
|
+
* Print the attachment a gated request stored under `digest` (#4928), such
|
|
157
|
+
* as a state migration's roots and the product's record. JSON is printed
|
|
158
|
+
* indented, anything else as stored, and either is cut at
|
|
159
|
+
* {@link ATTACHMENT_SHOWN_BYTES} with the path of the whole. False when none is stored.
|
|
160
|
+
*/
|
|
161
|
+
export async function showAttachment(op, digest, cwd, out, err) {
|
|
162
|
+
const { gatedRequestAttachmentPath } = await import("../../lifecycle/gated-request-digest.js");
|
|
163
|
+
const { readBlobFromPath } = await import("../../lifecycle/git.js");
|
|
164
|
+
const { dir, file } = gatedRequestAttachmentPath(op, digest);
|
|
165
|
+
let text;
|
|
166
|
+
try {
|
|
167
|
+
text = await readBlobFromPath(dir, file, { cwd });
|
|
168
|
+
}
|
|
169
|
+
catch (e) {
|
|
170
|
+
err(`The request's attachment can't be read: ${e instanceof Error ? e.message : String(e)}\n`);
|
|
171
|
+
return false;
|
|
172
|
+
}
|
|
173
|
+
if (text === null)
|
|
174
|
+
return false;
|
|
175
|
+
let shown = text;
|
|
176
|
+
try {
|
|
177
|
+
shown = `${JSON.stringify(JSON.parse(text), null, 2)}\n`;
|
|
178
|
+
}
|
|
179
|
+
catch {
|
|
180
|
+
// Not JSON: shown as stored.
|
|
181
|
+
}
|
|
182
|
+
const cut = Buffer.byteLength(shown, "utf8") > ATTACHMENT_SHOWN_BYTES;
|
|
183
|
+
out(`The request binds ${dir}/${file}:\n`);
|
|
184
|
+
out(cut ? `${Buffer.from(shown, "utf8").subarray(0, ATTACHMENT_SHOWN_BYTES).toString("utf8")}\n...\n` : shown);
|
|
185
|
+
if (cut)
|
|
186
|
+
err(`The attachment is longer than ${ATTACHMENT_SHOWN_BYTES} bytes; the whole is at ${dir}/${file} on chant/lifecycle.\n`);
|
|
187
|
+
return true;
|
|
188
|
+
}
|
|
@@ -5,7 +5,7 @@ import type { CommandContext } from "../registry.js";
|
|
|
5
5
|
* they do. Each value is refused by name, as `pr-apply` and `pr-post` refuse
|
|
6
6
|
* it, so a build never writes a job that fails on its own line.
|
|
7
7
|
*/
|
|
8
|
-
export declare function prLoopFlagsProblem(args: Pick<CommandContext["args"], "prLoop" | "applyBeforeMerge" | "merge" | "mergeTokenEnv" | "mergeMethod" | "respond" | "decideBackend" | "decideModel" | "targetDependents"> & Partial<Pick<CommandContext["args"], "controlRepo" | "controlSettings">>): string | undefined;
|
|
8
|
+
export declare function prLoopFlagsProblem(args: Pick<CommandContext["args"], "prLoop" | "applyBeforeMerge" | "merge" | "mergeTokenEnv" | "mergeMethod" | "respond" | "decideBackend" | "decideModel" | "targetDependents"> & Partial<Pick<CommandContext["args"], "controlRepo" | "controlSettings" | "evidenceRunnerKeySecret" | "evidenceIdentity" | "evidenceAudience" | "checkJob" | "refGateStatus">>): string | undefined;
|
|
9
9
|
/**
|
|
10
10
|
* The directory `chant build` builds (#4794). A path argument wins. With
|
|
11
11
|
* none, at the root of a project, it is the one source-dir rule's
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/build.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/build.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAkHlD;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,QAAQ,GAAG,kBAAkB,GAAG,OAAO,GAAG,eAAe,GAAG,aAAa,GAAG,SAAS,GAAG,eAAe,GAAG,aAAa,GAAG,kBAAkB,CAAC,GAAG,OAAO,CAAC,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,aAAa,GAAG,iBAAiB,GAAG,yBAAyB,GAAG,kBAAkB,GAAG,kBAAkB,GAAG,UAAU,GAAG,eAAe,CAAC,CAAC,GAAG,MAAM,GAAG,SAAS,CAyCvZ;AAsTD;;;;;;GAMG;AACH,wBAAsB,WAAW,CAAC,IAAI,EAAE,IAAI,CAAC,cAAc,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,WAAW,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,CAM3G;AAED,wBAAsB,QAAQ,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAwJnE"}
|
|
@@ -63,7 +63,11 @@ async function engineSetupFor(path) {
|
|
|
63
63
|
* `--merge auto --merge-token-env <VAR> [--merge-method <m>]` (#4636) merges
|
|
64
64
|
* the pull request after its update before merge. `--respond <list>`,
|
|
65
65
|
* `--decide-backend` and `--decide-model` (#4629) set the apply and note
|
|
66
|
-
* jobs' responses and the description check's service.
|
|
66
|
+
* jobs' responses and the description check's service.
|
|
67
|
+
* `--evidence-runner-key-secret <NAME>`, or `--evidence-identity oidc` with
|
|
68
|
+
* `--evidence-audience` (#4935), give the loop its runner identity: the note
|
|
69
|
+
* job signs `plan` and `policy`. `--check-job` and `--ref-gate-status`
|
|
70
|
+
* (#4935) write the check job and the ref gate's status job. {@link prLoopFlagsProblem}
|
|
67
71
|
* has checked all of them first.
|
|
68
72
|
*/
|
|
69
73
|
function prLoopOption(args, reportUrl, requireReview = false, requireRunnerStart = false) {
|
|
@@ -103,6 +107,11 @@ function prLoopOption(args, reportUrl, requireReview = false, requireRunnerStart
|
|
|
103
107
|
// #4629: the responses on the apply and note jobs, and the description check's service.
|
|
104
108
|
...(respond && Object.keys(respond).length > 0 ? { respond } : {}),
|
|
105
109
|
...(args.decideBackend && args.decideModel ? { decide: { backend: args.decideBackend, model: args.decideModel } } : {}),
|
|
110
|
+
// #4935: the runner identity the note job signs with, the check job and the ref gate's status job.
|
|
111
|
+
...(args.evidenceRunnerKeySecret ? { evidence: { runnerKeySecret: args.evidenceRunnerKeySecret } } : {}),
|
|
112
|
+
...(args.evidenceIdentity === "oidc" ? { evidence: { identity: "oidc", ...(args.evidenceAudience ? { audience: args.evidenceAudience } : {}) } } : {}),
|
|
113
|
+
...(args.checkJob ? { checkJob: true } : {}),
|
|
114
|
+
...(args.refGateStatus ? { refGateStatus: true } : {}),
|
|
106
115
|
};
|
|
107
116
|
}
|
|
108
117
|
/**
|
|
@@ -113,6 +122,11 @@ function prLoopOption(args, reportUrl, requireReview = false, requireRunnerStart
|
|
|
113
122
|
*/
|
|
114
123
|
export function prLoopFlagsProblem(args) {
|
|
115
124
|
const given = [
|
|
125
|
+
...(args.evidenceRunnerKeySecret !== undefined ? ["--evidence-runner-key-secret"] : []),
|
|
126
|
+
...(args.evidenceIdentity !== undefined ? ["--evidence-identity"] : []),
|
|
127
|
+
...(args.evidenceAudience !== undefined ? ["--evidence-audience"] : []),
|
|
128
|
+
...(args.checkJob ? ["--check-job"] : []),
|
|
129
|
+
...(args.refGateStatus ? ["--ref-gate-status"] : []),
|
|
116
130
|
...(args.controlRepo !== undefined ? ["--control"] : []),
|
|
117
131
|
...(args.controlSettings !== undefined ? ["--control-setting"] : []),
|
|
118
132
|
...(args.merge !== undefined ? ["--merge"] : []),
|
|
@@ -149,6 +163,13 @@ export function prLoopFlagsProblem(args) {
|
|
|
149
163
|
}
|
|
150
164
|
if (args.controlSettings !== undefined && args.controlRepo === undefined)
|
|
151
165
|
return "--control-setting sets the control repo's settings, so it needs --control <repo>";
|
|
166
|
+
// #4935: one runner identity, as PipelineEvidence takes it.
|
|
167
|
+
if (args.evidenceRunnerKeySecret !== undefined && args.evidenceIdentity !== undefined)
|
|
168
|
+
return "--evidence-runner-key-secret and --evidence-identity each name the runner identity the jobs sign with; give one of them";
|
|
169
|
+
if (args.evidenceAudience !== undefined && args.evidenceIdentity === undefined)
|
|
170
|
+
return "--evidence-audience is the keyless signing token's audience, so it goes with --evidence-identity oidc";
|
|
171
|
+
if (args.evidenceRunnerKeySecret !== undefined && !/^[A-Za-z_][A-Za-z0-9_]*$/.test(args.evidenceRunnerKeySecret))
|
|
172
|
+
return `--evidence-runner-key-secret takes a secret name of letters, digits and _, not ${args.evidenceRunnerKeySecret}`;
|
|
152
173
|
const respond = args.respond ? parseRespondList(args.respond) : {};
|
|
153
174
|
if ("error" in respond)
|
|
154
175
|
return respond.error;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ci-check.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/ci-check.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ci-check.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/ci-check.ts"],"names":[],"mappings":"AA+BA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AA8DlD,wBAAsB,UAAU,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA4CrE"}
|
|
@@ -10,15 +10,20 @@
|
|
|
10
10
|
* failed. See `../../components/check-hooks.ts` and
|
|
11
11
|
* `../../components/check-steps.ts`.
|
|
12
12
|
*
|
|
13
|
-
* With a runner key in `CHANT_RUNNER_KEY` (#4870),
|
|
13
|
+
* With a runner key in `CHANT_RUNNER_KEY` (#4870), or `CHANT_RUNNER_IDENTITY=oidc`
|
|
14
|
+
* to sign keyless from the job's OIDC identity (#4869), each hook that passed is
|
|
14
15
|
* signed as a named check over `HEAD` and attached under `refs/notes/chant/evidence`, which
|
|
15
|
-
* is pushed unless `--no-push`; the key
|
|
16
|
+
* is pushed unless `--no-push`; neither the key nor the token request reaches a hook.
|
|
16
17
|
*
|
|
17
18
|
* #4868: with a local key in `CHANT_LOCAL_EVIDENCE_KEY` (a developer's or an
|
|
18
19
|
* agent session's, listed under `local.keys` at base) each hook that passed
|
|
19
20
|
* is signed as local evidence instead, under `refs/notes/chant/local-evidence`.
|
|
20
21
|
* Without one, a hook whose check `local.checks` at base names is skipped
|
|
21
22
|
* when current local evidence for the tree stands in for it; the rest run.
|
|
23
|
+
*
|
|
24
|
+
* #4914: `--summary <file>` appends the report's markdown section
|
|
25
|
+
* (`checkReportSummary`) to the file, as a product's check report keeps it,
|
|
26
|
+
* and a job with `GITHUB_STEP_SUMMARY` set gets it in its summary too.
|
|
22
27
|
*/
|
|
23
28
|
import { resolve } from "node:path";
|
|
24
29
|
import { CHANT_EXIT } from "../../exit-codes.js";
|
|
@@ -41,28 +46,31 @@ async function lexiconCheckSteps(ctx, cwd) {
|
|
|
41
46
|
}
|
|
42
47
|
return plugins.map((p) => p.checkSteps?.()).filter((a) => a !== undefined);
|
|
43
48
|
}
|
|
44
|
-
const USAGE = "chant ci check --base <rev> [<target>...] [--output <dir>] [--no-push] [--json]";
|
|
49
|
+
const USAGE = "chant ci check --base <rev> [<target>...] [--output <dir>] [--summary <file>] [--no-push] [--json]";
|
|
45
50
|
/**
|
|
46
|
-
* The check stage's signer (#4870), when the job
|
|
47
|
-
*
|
|
48
|
-
*
|
|
49
|
-
*
|
|
51
|
+
* The check stage's signer (#4870), when the job has a runner identity: a
|
|
52
|
+
* runner key in `CHANT_RUNNER_KEY`, or its OIDC identity with
|
|
53
|
+
* `CHANT_RUNNER_IDENTITY=oidc` (#4869), as `.chant/trust.json` at `base`
|
|
54
|
+
* lists it. Throws when the job has one and the policy at base does not
|
|
55
|
+
* list it, so a job asked to sign never passes while signing nothing.
|
|
50
56
|
*/
|
|
51
57
|
async function checkEvidenceSigner(base, noPush) {
|
|
52
|
-
const { CHECK_EVIDENCE_KEY_ENV, LOCAL_EVIDENCE_KEY_ENV } = await import("../../workspace/trust/check-evidence-report.js");
|
|
53
|
-
const
|
|
58
|
+
const { CHECK_EVIDENCE_KEY_ENV, LOCAL_EVIDENCE_KEY_ENV, RUNNER_IDENTITY_ENV } = await import("../../workspace/trust/check-evidence-report.js");
|
|
59
|
+
const runner = process.env[CHECK_EVIDENCE_KEY_ENV] || process.env[RUNNER_IDENTITY_ENV];
|
|
54
60
|
const localPem = process.env[LOCAL_EVIDENCE_KEY_ENV];
|
|
55
|
-
if (!
|
|
61
|
+
if (!runner && !localPem)
|
|
56
62
|
return undefined;
|
|
57
|
-
if (
|
|
58
|
-
throw new Error(`${CHECK_EVIDENCE_KEY_ENV} and ${LOCAL_EVIDENCE_KEY_ENV} are both set; a job signs as a runner or as a person or agent, never both`);
|
|
63
|
+
if (runner && localPem)
|
|
64
|
+
throw new Error(`${process.env[CHECK_EVIDENCE_KEY_ENV] ? CHECK_EVIDENCE_KEY_ENV : RUNNER_IDENTITY_ENV} and ${LOCAL_EVIDENCE_KEY_ENV} are both set; a job signs as a runner or as a person or agent, never both`);
|
|
59
65
|
const { top, commit } = await baseCommit(base);
|
|
60
66
|
if (localPem) {
|
|
61
67
|
const { localKeyEvidenceSigner } = await import("../../workspace/trust/local-evidence.js");
|
|
62
68
|
return { signer: localKeyEvidenceSigner(top, commit, localPem), ...(noPush ? { push: false } : {}) };
|
|
63
69
|
}
|
|
64
|
-
|
|
65
|
-
|
|
70
|
+
// #4869: the runner key, or the job's OIDC identity, read in one place.
|
|
71
|
+
const { runnerEvidenceSigner } = await import("../../workspace/trust/check-evidence.js");
|
|
72
|
+
const signer = await runnerEvidenceSigner(top, commit);
|
|
73
|
+
return signer ? { signer, ...(noPush ? { push: false } : {}) } : undefined;
|
|
66
74
|
}
|
|
67
75
|
async function baseCommit(base) {
|
|
68
76
|
const { execFileSync } = await import("node:child_process");
|
|
@@ -99,6 +107,22 @@ export async function runCiCheck(ctx) {
|
|
|
99
107
|
console.error(formatError({ message: err instanceof Error ? err.message : String(err), hint: USAGE }));
|
|
100
108
|
return CHANT_EXIT.failed;
|
|
101
109
|
}
|
|
110
|
+
// #4914: the report's markdown section, in the product's own report and the job summary of a forge that keeps one.
|
|
111
|
+
for (const file of [...new Set([args.checkSummary, process.env.GITHUB_STEP_SUMMARY].filter((f) => Boolean(f)))]) {
|
|
112
|
+
const { checkReportSummary } = await import("../../components/check-hooks.js");
|
|
113
|
+
const lines = checkReportSummary(report);
|
|
114
|
+
if (lines.length === 0)
|
|
115
|
+
continue;
|
|
116
|
+
try {
|
|
117
|
+
const { appendFileSync, mkdirSync } = await import("node:fs");
|
|
118
|
+
const { dirname } = await import("node:path");
|
|
119
|
+
mkdirSync(dirname(resolve(file)), { recursive: true });
|
|
120
|
+
appendFileSync(file, `${lines.join("\n")}\n`);
|
|
121
|
+
}
|
|
122
|
+
catch (err) {
|
|
123
|
+
console.error(`ci check: could not write the summary to ${file}: ${err instanceof Error ? err.message : String(err)}`);
|
|
124
|
+
}
|
|
125
|
+
}
|
|
102
126
|
if (args.json)
|
|
103
127
|
console.log(JSON.stringify(report, null, 2));
|
|
104
128
|
else if (report.status === "none")
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ci-evidence.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/ci-evidence.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"ci-evidence.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/ci-evidence.ts"],"names":[],"mappings":"AAsDA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AA+BlD,wBAAsB,aAAa,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAWxE"}
|