@intentius/chant-lexicon-terraform 0.101.0 → 0.104.0
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/__fixtures__/terragrunt/affected-cases.d.ts +23 -0
- package/dist/__fixtures__/terragrunt/affected-cases.d.ts.map +1 -0
- package/dist/__fixtures__/terragrunt/record.d.ts +17 -0
- package/dist/__fixtures__/terragrunt/record.d.ts.map +1 -0
- package/dist/change-set.d.ts +67 -0
- package/dist/change-set.d.ts.map +1 -0
- package/dist/changed-roots.d.ts +30 -0
- package/dist/changed-roots.d.ts.map +1 -0
- package/dist/codegen/package.d.ts +1 -1
- package/dist/commands.d.ts +26 -0
- package/dist/commands.d.ts.map +1 -0
- package/dist/components/capability-plugin.d.ts +54 -0
- package/dist/components/capability-plugin.d.ts.map +1 -0
- package/dist/composites/terraform-pin-rollout-op.d.ts +44 -0
- package/dist/composites/terraform-pin-rollout-op.d.ts.map +1 -0
- package/dist/config.d.ts +3 -3
- package/dist/hcl/descend.d.ts +1 -1
- package/dist/hcl/descend.d.ts.map +1 -1
- package/dist/hcl/edges.d.ts +2 -2
- package/dist/hcl/edges.d.ts.map +1 -1
- package/dist/hcl/jsonencode.d.ts +106 -0
- package/dist/hcl/jsonencode.d.ts.map +1 -0
- package/dist/hcl/marker.d.ts.map +1 -1
- package/dist/hcl/parse.d.ts +29 -1
- package/dist/hcl/parse.d.ts.map +1 -1
- package/dist/hcl/roots.d.ts +1 -1
- package/dist/hcl/roots.d.ts.map +1 -1
- package/dist/hcl/suppressions.d.ts.map +1 -1
- package/dist/index.d.ts +4 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/integrity.json +22 -4
- package/dist/lint/audit-catalog.d.ts.map +1 -1
- package/dist/lint/audit-lineage.d.ts +1 -1
- package/dist/lint/audit-lineage.d.ts.map +1 -1
- package/dist/lint/post-synth/flat-attributes.d.ts +69 -0
- package/dist/lint/post-synth/flat-attributes.d.ts.map +1 -0
- package/dist/lint/post-synth/index.d.ts.map +1 -1
- package/dist/lint/post-synth/module-source.d.ts +27 -1
- package/dist/lint/post-synth/module-source.d.ts.map +1 -1
- package/dist/lint/post-synth/terragrunt.d.ts +37 -0
- package/dist/lint/post-synth/terragrunt.d.ts.map +1 -0
- package/dist/lint/post-synth/tf002.d.ts +3 -1
- package/dist/lint/post-synth/tf002.d.ts.map +1 -1
- package/dist/lint/post-synth/tf030.d.ts +51 -0
- package/dist/lint/post-synth/tf030.d.ts.map +1 -0
- package/dist/lint/post-synth/tf031.d.ts +55 -0
- package/dist/lint/post-synth/tf031.d.ts.map +1 -0
- package/dist/lint/post-synth/tf032.d.ts +71 -0
- package/dist/lint/post-synth/tf032.d.ts.map +1 -0
- package/dist/lint/post-synth/tf033.d.ts +50 -0
- package/dist/lint/post-synth/tf033.d.ts.map +1 -0
- package/dist/lint/post-synth/tf034.d.ts +25 -0
- package/dist/lint/post-synth/tf034.d.ts.map +1 -0
- package/dist/lint/post-synth/tf035.d.ts +33 -0
- package/dist/lint/post-synth/tf035.d.ts.map +1 -0
- package/dist/lint/post-synth/tf036.d.ts +33 -0
- package/dist/lint/post-synth/tf036.d.ts.map +1 -0
- package/dist/lint/post-synth/tf037.d.ts +31 -0
- package/dist/lint/post-synth/tf037.d.ts.map +1 -0
- package/dist/lint/post-synth/tf038.d.ts +22 -0
- package/dist/lint/post-synth/tf038.d.ts.map +1 -0
- package/dist/lint/post-synth/tf039.d.ts +23 -0
- package/dist/lint/post-synth/tf039.d.ts.map +1 -0
- package/dist/lint/post-synth/tf040.d.ts +30 -0
- package/dist/lint/post-synth/tf040.d.ts.map +1 -0
- package/dist/lint/post-synth/tf041.d.ts +20 -0
- package/dist/lint/post-synth/tf041.d.ts.map +1 -0
- package/dist/lint/post-synth/tf042.d.ts +18 -0
- package/dist/lint/post-synth/tf042.d.ts.map +1 -0
- package/dist/lint/post-synth/tf043.d.ts +17 -0
- package/dist/lint/post-synth/tf043.d.ts.map +1 -0
- package/dist/lint/post-synth/tf044.d.ts +17 -0
- package/dist/lint/post-synth/tf044.d.ts.map +1 -0
- package/dist/lint/post-synth/tf045.d.ts +22 -0
- package/dist/lint/post-synth/tf045.d.ts.map +1 -0
- package/dist/manifest.json +1 -1
- package/dist/okf/index.md +16 -0
- package/dist/okf/rules/TF030.md +11 -0
- package/dist/okf/rules/TF031.md +11 -0
- package/dist/okf/rules/TF032.md +11 -0
- package/dist/okf/rules/TF033.md +11 -0
- package/dist/okf/rules/TF034.md +11 -0
- package/dist/okf/rules/TF035.md +11 -0
- package/dist/okf/rules/TF036.md +11 -0
- package/dist/okf/rules/TF037.md +11 -0
- package/dist/okf/rules/TF038.md +11 -0
- package/dist/okf/rules/TF039.md +11 -0
- package/dist/okf/rules/TF040.md +11 -0
- package/dist/okf/rules/TF041.md +11 -0
- package/dist/okf/rules/TF042.md +11 -0
- package/dist/okf/rules/TF043.md +11 -0
- package/dist/okf/rules/TF044.md +11 -0
- package/dist/okf/rules/TF045.md +11 -0
- package/dist/op/activities/index.d.ts +4 -0
- package/dist/op/activities/index.d.ts.map +1 -1
- package/dist/op/activities/pin-rollout.d.ts +46 -0
- package/dist/op/activities/pin-rollout.d.ts.map +1 -0
- package/dist/op/activities/terraform.d.ts +24 -50
- package/dist/op/activities/terraform.d.ts.map +1 -1
- package/dist/op/activity-contracts.d.ts +66 -18
- package/dist/op/activity-contracts.d.ts.map +1 -1
- package/dist/op/builders.d.ts +9 -0
- package/dist/op/builders.d.ts.map +1 -1
- package/dist/pin/edit-ts.d.ts +21 -0
- package/dist/pin/edit-ts.d.ts.map +1 -0
- package/dist/pin/edit.d.ts +52 -0
- package/dist/pin/edit.d.ts.map +1 -0
- package/dist/pin/forge.d.ts +39 -0
- package/dist/pin/forge.d.ts.map +1 -0
- package/dist/pin/index.d.ts +22 -0
- package/dist/pin/index.d.ts.map +1 -0
- package/dist/pin/rollout.d.ts +116 -0
- package/dist/pin/rollout.d.ts.map +1 -0
- package/dist/pin/scan.d.ts +54 -0
- package/dist/pin/scan.d.ts.map +1 -0
- package/dist/pin/source.d.ts +93 -0
- package/dist/pin/source.d.ts.map +1 -0
- package/dist/pin/waves.d.ts +66 -0
- package/dist/pin/waves.d.ts.map +1 -0
- package/dist/plan-digest.d.ts +59 -0
- package/dist/plan-digest.d.ts.map +1 -0
- package/dist/plugin.d.ts.map +1 -1
- package/dist/rules/flat-attributes.ts +146 -0
- package/dist/rules/module-source.ts +56 -1
- package/dist/rules/terragrunt.ts +76 -0
- package/dist/rules/tf002.ts +1 -1
- package/dist/rules/tf030.ts +290 -0
- package/dist/rules/tf031.ts +370 -0
- package/dist/rules/tf032.ts +226 -0
- package/dist/rules/tf033.ts +160 -0
- package/dist/rules/tf034.ts +63 -0
- package/dist/rules/tf035.ts +74 -0
- package/dist/rules/tf036.ts +119 -0
- package/dist/rules/tf037.ts +101 -0
- package/dist/rules/tf038.ts +71 -0
- package/dist/rules/tf039.ts +64 -0
- package/dist/rules/tf040.ts +76 -0
- package/dist/rules/tf041.ts +56 -0
- package/dist/rules/tf042.ts +42 -0
- package/dist/rules/tf043.ts +49 -0
- package/dist/rules/tf044.ts +51 -0
- package/dist/rules/tf045.ts +47 -0
- package/dist/terragrunt/affected.d.ts +119 -0
- package/dist/terragrunt/affected.d.ts.map +1 -0
- package/dist/terragrunt/index.d.ts +11 -0
- package/dist/terragrunt/index.d.ts.map +1 -0
- package/dist/terragrunt/mocks.d.ts +147 -0
- package/dist/terragrunt/mocks.d.ts.map +1 -0
- package/dist/terragrunt/run.d.ts +130 -0
- package/dist/terragrunt/run.d.ts.map +1 -0
- package/dist/terragrunt/units.d.ts +103 -0
- package/dist/terragrunt/units.d.ts.map +1 -0
- package/dist/terragrunt/wave.d.ts +89 -0
- package/dist/terragrunt/wave.d.ts.map +1 -0
- package/package.json +13 -3
- package/src/__fixtures__/change-set/choudoufu-set-plan.change-set.golden.json +95 -0
- package/src/__fixtures__/change-set/choudoufu-set-plan.json +76 -0
- package/src/__fixtures__/change-set/choudoufu.part.golden.json +173 -0
- package/src/__fixtures__/change-set/choudoufu.plan.json +610 -0
- package/src/__fixtures__/change-set/terraform.import-forget.plan.json +81 -0
- package/src/__fixtures__/change-set/terraform.part.golden.json +173 -0
- package/src/__fixtures__/change-set/terraform.plan.json +589 -0
- package/src/__fixtures__/change-set/tofu.part.golden.json +173 -0
- package/src/__fixtures__/change-set/tofu.plan.json +588 -0
- package/src/__fixtures__/change-set/v1.tf.txt +21 -0
- package/src/__fixtures__/change-set/v2-module-app.tf.txt +4 -0
- package/src/__fixtures__/change-set/v2.tf.txt +21 -0
- package/src/__fixtures__/pin/choudoufu-live-waves-n5.json +83 -0
- package/src/__fixtures__/pin/largeset-oci-n5/apply-order.txt +5 -0
- package/src/__fixtures__/pin/largeset-oci-n5/estates/e01/estate.chdf.hcl +6 -0
- package/src/__fixtures__/pin/largeset-oci-n5/estates/e01/main.tf +33 -0
- package/src/__fixtures__/pin/largeset-oci-n5/estates/e02/estate.chdf.hcl +6 -0
- package/src/__fixtures__/pin/largeset-oci-n5/estates/e02/main.tf +45 -0
- package/src/__fixtures__/pin/largeset-oci-n5/estates/e03/estate.chdf.hcl +6 -0
- package/src/__fixtures__/pin/largeset-oci-n5/estates/e03/main.tf +47 -0
- package/src/__fixtures__/pin/largeset-oci-n5/estates/e04/estate.chdf.hcl +6 -0
- package/src/__fixtures__/pin/largeset-oci-n5/estates/e04/main.tf +31 -0
- package/src/__fixtures__/pin/largeset-oci-n5/estates/e05/estate.chdf.hcl +6 -0
- package/src/__fixtures__/pin/largeset-oci-n5/estates/e05/main.tf +27 -0
- package/src/__fixtures__/pin/largeset-oci-n5/fixture.json +77 -0
- package/src/__fixtures__/plan-summary/largeset-n5-bump.json +2071 -0
- package/src/__fixtures__/plan-summary/largeset-n5.summary.golden.json +95 -0
- package/src/__fixtures__/plan-summary/largeset-n5.summary.golden.md +22 -0
- package/src/__fixtures__/plan-summary/largeset-n5.summary.golden.txt +12 -0
- package/src/__fixtures__/terragrunt/affected/catalog/units/web/terragrunt.hcl +3 -0
- package/src/__fixtures__/terragrunt/affected/gitignore +3 -0
- package/src/__fixtures__/terragrunt/affected/live/dev/app/terragrunt.hcl +3 -0
- package/src/__fixtures__/terragrunt/affected/live/dev/vpc/terragrunt.hcl +3 -0
- package/src/__fixtures__/terragrunt/affected/live/prod/app/terragrunt.hcl +3 -0
- package/src/__fixtures__/terragrunt/affected/live/stg/terragrunt.stack.hcl +5 -0
- package/src/__fixtures__/terragrunt/affected/modules/app/main.tf +6 -0
- package/src/__fixtures__/terragrunt/affected/modules/app/policy.json +1 -0
- package/src/__fixtures__/terragrunt/affected/modules/net/main.tf +2 -0
- package/src/__fixtures__/terragrunt/affected/modules/thing/main.tf +3 -0
- package/src/__fixtures__/terragrunt/affected/root.hcl +5 -0
- package/src/__fixtures__/terragrunt/affected-cases.ts +126 -0
- package/src/__fixtures__/terragrunt/five-units/catalog/units/thing/terragrunt.hcl +3 -0
- package/src/__fixtures__/terragrunt/five-units/live/dev/app/terragrunt.hcl +13 -0
- package/src/__fixtures__/terragrunt/five-units/live/dev/db/terragrunt.hcl +8 -0
- package/src/__fixtures__/terragrunt/five-units/live/dev/vpc/terragrunt.hcl +3 -0
- package/src/__fixtures__/terragrunt/five-units/live/prod/app/terragrunt.hcl +8 -0
- package/src/__fixtures__/terragrunt/five-units/live/prod/vpc/terragrunt.hcl +3 -0
- package/src/__fixtures__/terragrunt/five-units/modules/thing/main.tf +7 -0
- package/src/__fixtures__/terragrunt/five-units/root.hcl +5 -0
- package/src/__fixtures__/terragrunt/record.ts +56 -0
- package/src/__fixtures__/terragrunt/recorded/affected-find.json +50 -0
- package/src/__fixtures__/terragrunt/recorded/failed-plan-report.json +36 -0
- package/src/__fixtures__/terragrunt/recorded/find.json +67 -0
- package/src/__fixtures__/terragrunt/recorded/version.txt +1 -0
- package/src/__fixtures__/terragrunt/recorded/wave-1/apply-report.json +22 -0
- package/src/__fixtures__/terragrunt/recorded/wave-1/json/live/dev/vpc/tfplan.json +1 -0
- package/src/__fixtures__/terragrunt/recorded/wave-1/json/live/prod/vpc/tfplan.json +1 -0
- package/src/__fixtures__/terragrunt/recorded/wave-1/plan-report.json +22 -0
- package/src/__fixtures__/terragrunt/recorded/wave-2/json/live/dev/db/tfplan.json +1 -0
- package/src/__fixtures__/terragrunt/recorded/wave-2/json/live/prod/app/tfplan.json +1 -0
- package/src/__fixtures__/terragrunt/recorded/wave-2/plan-report.json +22 -0
- package/src/change-set-combined-run.test.ts +156 -0
- package/src/change-set.test.ts +151 -0
- package/src/change-set.ts +273 -0
- package/src/changed-roots.test.ts +58 -0
- package/src/changed-roots.ts +102 -0
- package/src/commands.ts +112 -0
- package/src/components/capability-plugin.test.ts +91 -0
- package/src/components/capability-plugin.ts +131 -0
- package/src/components/pr-loop.tofu.test.ts +244 -0
- package/src/composites/terraform-pin-rollout-op.test.ts +69 -0
- package/src/composites/terraform-pin-rollout-op.ts +60 -0
- package/src/hcl/descend.ts +1 -1
- package/src/hcl/edges.ts +2 -2
- package/src/hcl/jsonencode.test.ts +226 -0
- package/src/hcl/jsonencode.ts +454 -0
- package/src/hcl/parse.test.ts +25 -0
- package/src/hcl/parse.ts +91 -6
- package/src/hcl/roots.ts +1 -1
- package/src/hcl/suppressions.ts +8 -2
- package/src/index.ts +18 -0
- package/src/lint/audit-catalog.ts +230 -0
- package/src/lint/audit-lineage.ts +155 -1
- package/src/lint/audit.test.ts +3 -1
- package/src/lint/post-synth/estate-2284.test.ts +68 -0
- package/src/lint/post-synth/fixtures/TF030/negative-rules.tf +45 -0
- package/src/lint/post-synth/fixtures/TF030/negative.tf +55 -0
- package/src/lint/post-synth/fixtures/TF030/not-determined-port.tf +28 -0
- package/src/lint/post-synth/fixtures/TF030/not-determined-standalone.tf +32 -0
- package/src/lint/post-synth/fixtures/TF030/not-determined-vpc-rule.tf +21 -0
- package/src/lint/post-synth/fixtures/TF030/not-determined.tf +39 -0
- package/src/lint/post-synth/fixtures/TF030/positive-ipv6.tf +44 -0
- package/src/lint/post-synth/fixtures/TF030/positive-mixed.tf +36 -0
- package/src/lint/post-synth/fixtures/TF030/positive-standalone.tf +25 -0
- package/src/lint/post-synth/fixtures/TF030/positive.tf +43 -0
- package/src/lint/post-synth/fixtures/TF031/negative.tf +89 -0
- package/src/lint/post-synth/fixtures/TF031/not-determined.tf +139 -0
- package/src/lint/post-synth/fixtures/TF031/positive-data-source.tf +57 -0
- package/src/lint/post-synth/fixtures/TF031/positive-heredoc.tf +149 -0
- package/src/lint/post-synth/fixtures/TF031/positive-jsonencode.tf +115 -0
- package/src/lint/post-synth/fixtures/TF032/negative-heredoc.tf +20 -0
- package/src/lint/post-synth/fixtures/TF032/negative-references.tf +214 -0
- package/src/lint/post-synth/fixtures/TF032/negative.tf +99 -0
- package/src/lint/post-synth/fixtures/TF032/positive-heredoc.tf +22 -0
- package/src/lint/post-synth/fixtures/TF032/positive-sidecar.tf +197 -0
- package/src/lint/post-synth/fixtures/TF032/positive.tf +54 -0
- package/src/lint/post-synth/fixtures/TF033/negative.tf +39 -0
- package/src/lint/post-synth/fixtures/TF033/not-determined-aurora.tf +25 -0
- package/src/lint/post-synth/fixtures/TF033/positive-absent.tf +93 -0
- package/src/lint/post-synth/fixtures/TF033/positive.tf +50 -0
- package/src/lint/post-synth/fixtures/TF034/negative.tf +24 -0
- package/src/lint/post-synth/fixtures/TF034/positive-absent.tf +36 -0
- package/src/lint/post-synth/fixtures/TF034/positive.tf +14 -0
- package/src/lint/post-synth/fixtures/TF035/negative-absent.tf +43 -0
- package/src/lint/post-synth/fixtures/TF035/negative.tf +54 -0
- package/src/lint/post-synth/fixtures/TF035/positive.tf +37 -0
- package/src/lint/post-synth/fixtures/TF036/negative.tf +61 -0
- package/src/lint/post-synth/fixtures/TF036/not-determined.tf +28 -0
- package/src/lint/post-synth/fixtures/TF036/positive.tf +38 -0
- package/src/lint/post-synth/fixtures/TF037/negative-exclusion.tf +63 -0
- package/src/lint/post-synth/fixtures/TF037/negative.tf +27 -0
- package/src/lint/post-synth/fixtures/TF037/not-determined.tf +27 -0
- package/src/lint/post-synth/fixtures/TF037/positive-absent.tf +15 -0
- package/src/lint/post-synth/fixtures/TF037/positive.tf +26 -0
- package/src/lint/post-synth/fixtures/TF038/positive.tf +3 -0
- package/src/lint/post-synth/fixtures/TF039/positive.tf +4 -0
- package/src/lint/post-synth/fixtures/TF041/negative/terragrunt.hcl +12 -0
- package/src/lint/post-synth/fixtures/TF041/positive/terragrunt.hcl +7 -0
- package/src/lint/post-synth/fixtures/TF041/positive-apply/terragrunt.hcl +8 -0
- package/src/lint/post-synth/fixtures/TF042/negative/terragrunt.hcl +13 -0
- package/src/lint/post-synth/fixtures/TF042/positive/terragrunt.hcl +9 -0
- package/src/lint/post-synth/fixtures/TF043/negative/terragrunt.hcl +3 -0
- package/src/lint/post-synth/fixtures/TF043/negative-other/terragrunt.hcl +3 -0
- package/src/lint/post-synth/fixtures/TF043/positive-git/terragrunt.hcl +3 -0
- package/src/lint/post-synth/fixtures/TF043/positive-oci/terragrunt.hcl +3 -0
- package/src/lint/post-synth/fixtures/TF043/positive-tfr/terragrunt.hcl +3 -0
- package/src/lint/post-synth/fixtures/TF044/negative/terragrunt.hcl +9 -0
- package/src/lint/post-synth/fixtures/TF044/positive/terragrunt.hcl +7 -0
- package/src/lint/post-synth/fixtures/TF044/positive-generate/terragrunt.hcl +9 -0
- package/src/lint/post-synth/fixtures/TF045/negative/root.hcl +1 -0
- package/src/lint/post-synth/fixtures/TF045/negative/terragrunt.hcl +3 -0
- package/src/lint/post-synth/fixtures/TF045/positive/root.hcl +9 -0
- package/src/lint/post-synth/fixtures/TF045/positive/terragrunt.hcl +3 -0
- package/src/lint/post-synth/fixtures/TF045/unit-only/terragrunt.hcl +3 -0
- package/src/lint/post-synth/fixtures/estate-2284/clean/main.tf +132 -0
- package/src/lint/post-synth/fixtures/estate-2284/violating/main.tf +112 -0
- package/src/lint/post-synth/flat-attributes.ts +146 -0
- package/src/lint/post-synth/index.ts +32 -0
- package/src/lint/post-synth/module-source.test.ts +42 -1
- package/src/lint/post-synth/module-source.ts +56 -1
- package/src/lint/post-synth/terragrunt.ts +76 -0
- package/src/lint/post-synth/tf002.ts +1 -1
- package/src/lint/post-synth/tf030.test.ts +219 -0
- package/src/lint/post-synth/tf030.ts +290 -0
- package/src/lint/post-synth/tf031.test.ts +229 -0
- package/src/lint/post-synth/tf031.ts +370 -0
- package/src/lint/post-synth/tf032.test.ts +127 -0
- package/src/lint/post-synth/tf032.ts +226 -0
- package/src/lint/post-synth/tf033.test.ts +126 -0
- package/src/lint/post-synth/tf033.ts +160 -0
- package/src/lint/post-synth/tf034.test.ts +71 -0
- package/src/lint/post-synth/tf034.ts +63 -0
- package/src/lint/post-synth/tf035.test.ts +68 -0
- package/src/lint/post-synth/tf035.ts +74 -0
- package/src/lint/post-synth/tf036.test.ts +87 -0
- package/src/lint/post-synth/tf036.ts +119 -0
- package/src/lint/post-synth/tf037.test.ts +88 -0
- package/src/lint/post-synth/tf037.ts +101 -0
- package/src/lint/post-synth/tf038.test.ts +51 -0
- package/src/lint/post-synth/tf038.ts +71 -0
- package/src/lint/post-synth/tf039.test.ts +40 -0
- package/src/lint/post-synth/tf039.ts +64 -0
- package/src/lint/post-synth/tf040.test.ts +55 -0
- package/src/lint/post-synth/tf040.ts +76 -0
- package/src/lint/post-synth/tf041.test.ts +50 -0
- package/src/lint/post-synth/tf041.ts +56 -0
- package/src/lint/post-synth/tf042.test.ts +19 -0
- package/src/lint/post-synth/tf042.ts +42 -0
- package/src/lint/post-synth/tf043.test.ts +65 -0
- package/src/lint/post-synth/tf043.ts +49 -0
- package/src/lint/post-synth/tf044.test.ts +27 -0
- package/src/lint/post-synth/tf044.ts +51 -0
- package/src/lint/post-synth/tf045.test.ts +30 -0
- package/src/lint/post-synth/tf045.ts +47 -0
- package/src/op/activities/index.ts +4 -0
- package/src/op/activities/pin-rollout.ts +77 -0
- package/src/op/activities/terraform.test.ts +13 -0
- package/src/op/activities/terraform.ts +46 -86
- package/src/op/activity-contracts.test.ts +4 -1
- package/src/op/activity-contracts.ts +42 -0
- package/src/op/builders.ts +13 -0
- package/src/pin/bundle.test.ts +53 -0
- package/src/pin/edit-ts.test.ts +39 -0
- package/src/pin/edit-ts.ts +77 -0
- package/src/pin/edit.test.ts +199 -0
- package/src/pin/edit.ts +157 -0
- package/src/pin/forge.ts +85 -0
- package/src/pin/index.ts +22 -0
- package/src/pin/rollout.test.ts +232 -0
- package/src/pin/rollout.ts +451 -0
- package/src/pin/scan.ts +309 -0
- package/src/pin/source.ts +206 -0
- package/src/pin/waves.test.ts +101 -0
- package/src/pin/waves.ts +125 -0
- package/src/plan-digest.ts +99 -0
- package/src/plan-summary.test.ts +154 -0
- package/src/plugin.ts +25 -2
- package/src/terragrunt/affected.acceptance.test.ts +83 -0
- package/src/terragrunt/affected.test.ts +177 -0
- package/src/terragrunt/affected.ts +348 -0
- package/src/terragrunt/index.ts +11 -0
- package/src/terragrunt/mocks.acceptance.test.ts +105 -0
- package/src/terragrunt/mocks.test.ts +309 -0
- package/src/terragrunt/mocks.ts +324 -0
- package/src/terragrunt/run.ts +369 -0
- package/src/terragrunt/terragrunt.acceptance.test.ts +122 -0
- package/src/terragrunt/terragrunt.test.ts +332 -0
- package/src/terragrunt/units.ts +235 -0
- package/src/terragrunt/wave.ts +181 -0
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
* module load (`ensureChoudoufuVersion`) and refuses a binary older than
|
|
39
39
|
* {@link MIN_CHOUDOUFU_VERSION}.
|
|
40
40
|
*/
|
|
41
|
+
import type { ChangeSetPart } from "@intentius/chant/change-set";
|
|
41
42
|
import type { TerraformConfig, TerraformRootConfig } from "../../config.js";
|
|
42
43
|
import { type AdoptionCandidate } from "../adoption.js";
|
|
43
44
|
/** Plan file written into the root directory when a step names none. */
|
|
@@ -111,6 +112,14 @@ export interface TerraformPlanArgs extends TerraformRootArgs {
|
|
|
111
112
|
planFile?: string;
|
|
112
113
|
/** `-destroy`: plan the removal of everything the root manages. */
|
|
113
114
|
destroy?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* Input variables, passed as `-var` after the root's `-var-file`s, so they
|
|
117
|
+
* win over a var file that sets the same name (#3049). A string goes as it
|
|
118
|
+
* is; anything else as JSON, which terraform reads as HCL for a list, a map
|
|
119
|
+
* or an object. This is how a value another root produced, wired with
|
|
120
|
+
* `stackOutput()`, reaches the plan.
|
|
121
|
+
*/
|
|
122
|
+
vars?: Record<string, unknown>;
|
|
114
123
|
}
|
|
115
124
|
export interface TerraformApplyArgs extends TerraformRootArgs {
|
|
116
125
|
/**
|
|
@@ -203,56 +212,7 @@ export interface PlanChangeCounts {
|
|
|
203
212
|
/** Resources to destroy. This is the number an approval gate exists for. */
|
|
204
213
|
destroys: number;
|
|
205
214
|
}
|
|
206
|
-
|
|
207
|
-
* One resource's proposed change, as a plan digest sees it (#2300) — the
|
|
208
|
-
* projection of a `terraform show -json` `resource_changes` entry that
|
|
209
|
-
* survives into {@link terraformPlanDigest}.
|
|
210
|
-
*/
|
|
211
|
-
export interface TerraformPlannedChange {
|
|
212
|
-
address: unknown;
|
|
213
|
-
mode: unknown;
|
|
214
|
-
type: unknown;
|
|
215
|
-
name: unknown;
|
|
216
|
-
index: unknown;
|
|
217
|
-
provider_name: unknown;
|
|
218
|
-
deposed: unknown;
|
|
219
|
-
actions: unknown;
|
|
220
|
-
before: unknown;
|
|
221
|
-
after: unknown;
|
|
222
|
-
after_unknown: unknown;
|
|
223
|
-
replace_paths: unknown;
|
|
224
|
-
importing: unknown;
|
|
225
|
-
}
|
|
226
|
-
/**
|
|
227
|
-
* The change set a `terraform show -json` plan describes, canonicalised
|
|
228
|
-
* (#2300): every proposed change, at its address, with the values that would
|
|
229
|
-
* be written, sorted so two renderings of the same plan project identically.
|
|
230
|
-
*
|
|
231
|
-
* Everything else in the document is dropped, and the drops are the point —
|
|
232
|
-
* see `packages/core/src/lifecycle/plan-digest.ts` for the general rule. Here
|
|
233
|
-
* that means `timestamp` and `terraform_version` (when the plan was taken and
|
|
234
|
-
* by which binary), `format_version` (how it was rendered), `prior_state` and
|
|
235
|
-
* `planned_values` (restatements of the same change set from another angle),
|
|
236
|
-
* `configuration` (the source that produced it, which can be refactored
|
|
237
|
-
* without changing a single proposed action) and `checks` / `relevant_
|
|
238
|
-
* attributes` (diagnostics about the plan, not the plan). What is left is
|
|
239
|
-
* what applying it would do.
|
|
240
|
-
*/
|
|
241
|
-
export declare function terraformPlanChangeSet(planJson: unknown): {
|
|
242
|
-
resourceChanges: TerraformPlannedChange[];
|
|
243
|
-
outputChanges: unknown;
|
|
244
|
-
};
|
|
245
|
-
/**
|
|
246
|
-
* The identity of a terraform plan (#2300): {@link terraformPlanChangeSet}
|
|
247
|
-
* hashed. This is what a `TerraformApplyOp` gate binds its approval to, and
|
|
248
|
-
* what a later run recomputes and compares.
|
|
249
|
-
*
|
|
250
|
-
* Taken over the `show -json` rendering rather than the plan file's bytes on
|
|
251
|
-
* purpose: the file is an opaque, version-stamped archive, and two runs of
|
|
252
|
-
* `plan -out` over an unchanged root produce different bytes. The rendering
|
|
253
|
-
* is the same plan both times.
|
|
254
|
-
*/
|
|
255
|
-
export declare function terraformPlanDigest(planJson: unknown): string;
|
|
215
|
+
export { terraformPlanChangeSet, terraformPlanDigest, type TerraformPlannedChange } from "../../plan-digest.js";
|
|
256
216
|
/** What {@link terraformPlan} resolved. Carries the plan itself, so no later step re-plans. */
|
|
257
217
|
export interface TerraformPlanResult extends PlanChangeCounts {
|
|
258
218
|
/** `true` when terraform reported exit 2 under `-detailed-exitcode`: the plan proposes changes. */
|
|
@@ -272,6 +232,13 @@ export interface TerraformPlanResult extends PlanChangeCounts {
|
|
|
272
232
|
* plan.out.planDigest })`.
|
|
273
233
|
*/
|
|
274
234
|
planDigest: string;
|
|
235
|
+
/**
|
|
236
|
+
* This root's part of a change-set document (#3181): every proposed change
|
|
237
|
+
* as an entry, the root's name as the member, and {@link planDigest} as the
|
|
238
|
+
* member's plan digest. Hand the parts of a run's roots to
|
|
239
|
+
* `composeChangeSet` and bind the run's gate to the document's digest.
|
|
240
|
+
*/
|
|
241
|
+
changeSet: ChangeSetPart;
|
|
275
242
|
}
|
|
276
243
|
/**
|
|
277
244
|
* Why a live apply refused the approval artifact it was handed. Both are
|
|
@@ -481,6 +448,7 @@ export declare function terraformPlanCommand(opts: {
|
|
|
481
448
|
binary: string;
|
|
482
449
|
planFile: string;
|
|
483
450
|
varFiles?: string[];
|
|
451
|
+
vars?: Record<string, unknown>;
|
|
484
452
|
destroy?: boolean;
|
|
485
453
|
}): string;
|
|
486
454
|
/**
|
|
@@ -631,6 +599,12 @@ export declare function classifyApprovalRefusal(output: string): TerraformApprov
|
|
|
631
599
|
* Uses the longInfra profile.
|
|
632
600
|
*/
|
|
633
601
|
export declare function terraformApply(args: TerraformApplyArgs, signal?: AbortSignal): Promise<TerraformApplyResult>;
|
|
602
|
+
/**
|
|
603
|
+
* `terraform output -json` in the named root, as `{ name: value }` (#3049).
|
|
604
|
+
* A sensitive output's value comes back like any other, since the caller
|
|
605
|
+
* asked for the values to hand them on.
|
|
606
|
+
*/
|
|
607
|
+
export declare function terraformOutputs(args: TerraformRootArgs, signal?: AbortSignal): Promise<Record<string, unknown>>;
|
|
634
608
|
/**
|
|
635
609
|
* `terraform show` over current state, or over a saved plan when `planFile` is
|
|
636
610
|
* given. Returns the parsed `-json` output and the `-no-color` render, plus
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"terraform.d.ts","sourceRoot":"","sources":["../../../src/op/activities/terraform.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;
|
|
1
|
+
{"version":3,"file":"terraform.d.ts","sourceRoot":"","sources":["../../../src/op/activities/terraform.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuCG;AAUH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,6BAA6B,CAAC;AACjE,OA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C,EAAE,WAAW,GACnB,OAAO,CAAC,+BAA+B,CAAC,CAiD1C;AAED,wBAAsB,iBAAiB,CACrC,IAAI,EAAE,qBAAqB,GAAG;IAAE,YAAY,CAAC,EAAE,MAAM,CAAA;CAAE,EACvD,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,uBAAuB,CAAC,CAiElC;AAED;;;;;;;GAOG;AACH,wBAAsB,eAAe,CACnC,IAAI,EAAE,mBAAmB,EACzB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,qBAAqB,CAAC,CAkBhC;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoDG;AACH,wBAAsB,cAAc,CAClC,IAAI,EAAE,kBAAkB,EACxB,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,oBAAoB,CAAC,CA8C/B;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,kBAAkB,CACtC,IAAI,EAAE,sBAAsB,EAC5B,MAAM,CAAC,EAAE,WAAW,GACnB,OAAO,CAAC,wBAAwB,CAAC,CAuBnC"}
|
|
@@ -31,60 +31,72 @@
|
|
|
31
31
|
*/
|
|
32
32
|
export declare const terraformInitContract: import("@intentius/chant/op").ActivityContract<{
|
|
33
33
|
root: string;
|
|
34
|
+
cwd?: string | undefined;
|
|
34
35
|
upgrade?: boolean | undefined;
|
|
35
36
|
reconfigure?: boolean | undefined;
|
|
36
|
-
cwd?: string | undefined;
|
|
37
37
|
}, {
|
|
38
38
|
dir: string;
|
|
39
39
|
workspace?: string | undefined;
|
|
40
40
|
}>;
|
|
41
41
|
export declare const terraformPlanContract: import("@intentius/chant/op").ActivityContract<{
|
|
42
42
|
root: string;
|
|
43
|
+
cwd?: string | undefined;
|
|
43
44
|
planFile?: string | undefined;
|
|
44
45
|
destroy?: boolean | undefined;
|
|
45
|
-
|
|
46
|
+
vars?: Record<string, unknown> | undefined;
|
|
46
47
|
}, {
|
|
48
|
+
adds: number;
|
|
49
|
+
changes: number;
|
|
50
|
+
destroys: number;
|
|
47
51
|
changed: boolean;
|
|
48
52
|
planFile: string;
|
|
49
53
|
dir: string;
|
|
50
54
|
json: unknown;
|
|
51
55
|
text: string;
|
|
52
56
|
planDigest: string;
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
57
|
+
changeSet: {
|
|
58
|
+
member: {
|
|
59
|
+
[x: string]: unknown;
|
|
60
|
+
member: string;
|
|
61
|
+
planDigest: string | null;
|
|
62
|
+
};
|
|
63
|
+
entries: unknown[];
|
|
64
|
+
};
|
|
56
65
|
}>;
|
|
57
66
|
export declare const terraformApplyContract: import("@intentius/chant/op").ActivityContract<{
|
|
58
67
|
root: string;
|
|
59
|
-
planFile?: string | undefined;
|
|
60
68
|
cwd?: string | undefined;
|
|
69
|
+
planFile?: string | undefined;
|
|
61
70
|
}, {
|
|
71
|
+
planFile?: string | undefined;
|
|
62
72
|
dir: string;
|
|
63
73
|
applied: boolean;
|
|
64
|
-
planFile?: string | undefined;
|
|
65
74
|
refused?: "approval-mismatch" | "wrong-estate" | undefined;
|
|
66
75
|
refusal?: string | undefined;
|
|
67
76
|
}>;
|
|
68
77
|
export declare const terraformShowContract: import("@intentius/chant/op").ActivityContract<{
|
|
69
78
|
root: string;
|
|
70
|
-
planFile?: string | undefined;
|
|
71
79
|
cwd?: string | undefined;
|
|
80
|
+
planFile?: string | undefined;
|
|
72
81
|
}, {
|
|
82
|
+
adds: number;
|
|
83
|
+
changes: number;
|
|
84
|
+
destroys: number;
|
|
73
85
|
source: "plan" | "state";
|
|
74
86
|
json: unknown;
|
|
75
87
|
text: string;
|
|
76
88
|
dir: string;
|
|
77
|
-
adds: number;
|
|
78
|
-
changes: number;
|
|
79
|
-
destroys: number;
|
|
80
89
|
planFile?: string | undefined;
|
|
81
90
|
}>;
|
|
82
91
|
export declare const choudoufuLivePlanContract: import("@intentius/chant/op").ActivityContract<{
|
|
83
92
|
root: string;
|
|
93
|
+
cwd?: string | undefined;
|
|
84
94
|
estate?: string | undefined;
|
|
85
95
|
adoptionOnly?: boolean | undefined;
|
|
86
|
-
cwd?: string | undefined;
|
|
87
96
|
}, {
|
|
97
|
+
adds: number;
|
|
98
|
+
changes: number;
|
|
99
|
+
destroys: number;
|
|
88
100
|
unowned: number;
|
|
89
101
|
adoptable: number;
|
|
90
102
|
drift: boolean;
|
|
@@ -102,15 +114,12 @@ export declare const choudoufuLivePlanContract: import("@intentius/chant/op").Ac
|
|
|
102
114
|
dir: string;
|
|
103
115
|
documentPath: string;
|
|
104
116
|
estate: string;
|
|
105
|
-
adds: number;
|
|
106
|
-
changes: number;
|
|
107
|
-
destroys: number;
|
|
108
117
|
}>;
|
|
109
118
|
export declare const choudoufuLiveLsContract: import("@intentius/chant/op").ActivityContract<{
|
|
110
119
|
root: string;
|
|
120
|
+
cwd?: string | undefined;
|
|
111
121
|
estate?: string | undefined;
|
|
112
122
|
consistent?: boolean | undefined;
|
|
113
|
-
cwd?: string | undefined;
|
|
114
123
|
}, {
|
|
115
124
|
json: unknown;
|
|
116
125
|
dir: string;
|
|
@@ -126,14 +135,14 @@ export declare const choudoufuLiveCheckContract: import("@intentius/chant/op").A
|
|
|
126
135
|
dir: string;
|
|
127
136
|
}>;
|
|
128
137
|
export declare const choudoufuAdoptContract: import("@intentius/chant/op").ActivityContract<{
|
|
138
|
+
root: string;
|
|
139
|
+
cwd?: string | undefined;
|
|
129
140
|
adoptions: {
|
|
130
141
|
[x: string]: unknown;
|
|
131
142
|
}[];
|
|
132
|
-
root: string;
|
|
133
143
|
contested?: {
|
|
134
144
|
[x: string]: unknown;
|
|
135
145
|
}[] | undefined;
|
|
136
|
-
cwd?: string | undefined;
|
|
137
146
|
}, {
|
|
138
147
|
mechanism: "tag-write";
|
|
139
148
|
adopted: string[];
|
|
@@ -146,4 +155,43 @@ export declare const choudoufuAdoptContract: import("@intentius/chant/op").Activ
|
|
|
146
155
|
ambiguous: number;
|
|
147
156
|
dir: string;
|
|
148
157
|
}>;
|
|
158
|
+
/**
|
|
159
|
+
* `terraformPinRollout` (#3189). It names no `terraform.roots` key: a rollout
|
|
160
|
+
* moves a module's pin across many roots, found by directory, so it carries no
|
|
161
|
+
* `rootEntity`. `status` and `summary` are the fields an Op reads: the run's
|
|
162
|
+
* outcome and a body for a report step.
|
|
163
|
+
*/
|
|
164
|
+
export declare const terraformPinRolloutContract: import("@intentius/chant/op").ActivityContract<{
|
|
165
|
+
module: string;
|
|
166
|
+
from: string;
|
|
167
|
+
to: string;
|
|
168
|
+
roots?: {
|
|
169
|
+
root: string;
|
|
170
|
+
dependsOn?: string[] | undefined;
|
|
171
|
+
tsSource?: string | undefined;
|
|
172
|
+
}[] | undefined;
|
|
173
|
+
canaries?: string[] | undefined;
|
|
174
|
+
wavesFrom?: string | undefined;
|
|
175
|
+
wavesPrefix?: string | undefined;
|
|
176
|
+
mode?: "pull-request" | "report" | undefined;
|
|
177
|
+
base?: string | undefined;
|
|
178
|
+
remote?: string | undefined;
|
|
179
|
+
appliedCheck?: string | undefined;
|
|
180
|
+
cwd?: string | undefined;
|
|
181
|
+
}, {
|
|
182
|
+
module: string;
|
|
183
|
+
from: string;
|
|
184
|
+
to: string;
|
|
185
|
+
mode: "pull-request" | "report";
|
|
186
|
+
base: string;
|
|
187
|
+
status: "complete" | "opened" | "stopped" | "waiting" | "would-open";
|
|
188
|
+
roots: {
|
|
189
|
+
[x: string]: unknown;
|
|
190
|
+
}[];
|
|
191
|
+
waves: {
|
|
192
|
+
[x: string]: unknown;
|
|
193
|
+
}[];
|
|
194
|
+
stop?: string | undefined;
|
|
195
|
+
summary: string;
|
|
196
|
+
}>;
|
|
149
197
|
//# sourceMappingURL=activity-contracts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"activity-contracts.d.ts","sourceRoot":"","sources":["../../src/op/activity-contracts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AA+BH,eAAO,MAAM,qBAAqB;;;;;;;;EASjC,CAAC;AAEF,eAAO,MAAM,qBAAqB
|
|
1
|
+
{"version":3,"file":"activity-contracts.d.ts","sourceRoot":"","sources":["../../src/op/activity-contracts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AA+BH,eAAO,MAAM,qBAAqB;;;;;;;;EASjC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;EAoBjC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;EAWlC,CAAC;AAEF,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;EAYjC,CAAC;AAEF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;EAwBrC,CAAC;AAEF,eAAO,MAAM,uBAAuB;;;;;;;;;EASnC,CAAC;AAEF,eAAO,MAAM,0BAA0B;;;;;;;;EAKtC,CAAC;AAEF,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;EAgBlC,CAAC;AAKF;;;;;GAKG;AACH,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA4BvC,CAAC"}
|
package/dist/op/builders.d.ts
CHANGED
|
@@ -16,6 +16,7 @@
|
|
|
16
16
|
*/
|
|
17
17
|
import { type ActivityStep, type NamedActivityStep, type WithStepRefs } from "@intentius/chant/op";
|
|
18
18
|
import type { TerraformInitArgs, TerraformPlanArgs, TerraformApplyArgs, TerraformShowArgs, ChoudoufuLivePlanArgs, ChoudoufuLiveLsArgs, ChoudoufuLiveCheckArgs, ChoudoufuAdoptArgs } from "./activities/terraform.js";
|
|
19
|
+
import type { TerraformPinRolloutArgs } from "./activities/pin-rollout.js";
|
|
19
20
|
/** Extra opts every wrapper below accepts alongside its activity's own fields. */
|
|
20
21
|
type StepOpts = {
|
|
21
22
|
profile?: ActivityStep["profile"];
|
|
@@ -94,5 +95,13 @@ export declare const choudoufuAdopt: (root: string, opts: WithStepRefs<Omit<Chou
|
|
|
94
95
|
* provider.
|
|
95
96
|
*/
|
|
96
97
|
export declare const terraformShow: (root: string, opts?: WithStepRefs<Omit<TerraformShowArgs, "root">> & StepOpts) => NamedActivityStep;
|
|
98
|
+
/**
|
|
99
|
+
* One run of a pin-bump rollout (#3189). `opts` is
|
|
100
|
+
* {@link TerraformPinRolloutArgs} itself. It names no root: the rollout finds
|
|
101
|
+
* the roots that call the module. Defaults to the `fastIdempotent` profile: a
|
|
102
|
+
* repeated run reads the forge again and finds the PR an earlier attempt
|
|
103
|
+
* opened.
|
|
104
|
+
*/
|
|
105
|
+
export declare const terraformPinRollout: (opts: WithStepRefs<TerraformPinRolloutArgs> & StepOpts) => NamedActivityStep;
|
|
97
106
|
export {};
|
|
98
107
|
//# sourceMappingURL=builders.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builders.d.ts","sourceRoot":"","sources":["../../src/op/builders.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAGL,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,YAAY,EAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACtB,kBAAkB,EACnB,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"builders.d.ts","sourceRoot":"","sources":["../../src/op/builders.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,OAAO,EAGL,KAAK,YAAY,EACjB,KAAK,iBAAiB,EACtB,KAAK,YAAY,EAClB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,KAAK,EACV,iBAAiB,EACjB,iBAAiB,EACjB,kBAAkB,EAClB,iBAAiB,EACjB,qBAAqB,EACrB,mBAAmB,EACnB,sBAAsB,EACtB,kBAAkB,E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AAC,CAAC,GAAG,QAAQ,KAC9D,iBAOF,CAAC;AAEF;;;;;GAKG;AACH,eAAO,MAAM,aAAa,SAClB,MAAM,SACL,YAAY,CAAC,IAAI,CAAC,iBAAiB,EAAE,MAAM,CAAC,CAAC,GAAG,QAAQ,KAC9D,iBAOF,CAAC;AAEF;;;;;;GAMG;AACH,eAAO,MAAM,mBAAmB,SAAU,YAAY,CAAC,uBAAuB,CAAC,GAAG,QAAQ,KAAG,iBAG5F,CAAC"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The pin edit for a root chant generates (#3189): move the pin in the
|
|
3
|
+
* module declaration of its TypeScript source, not in the `.tf` a build
|
|
4
|
+
* writes from it.
|
|
5
|
+
*
|
|
6
|
+
* A module declaration in TypeScript is an object literal with the same
|
|
7
|
+
* arguments the HCL block has: a `source` string, and a `version` string
|
|
8
|
+
* beside a registry source. Any object literal whose `source` is a plain
|
|
9
|
+
* string naming the module counts, whatever function or constructor receives
|
|
10
|
+
* it. The TypeScript compiler parses the file, so a `source:` inside a
|
|
11
|
+
* comment, a template with substitutions, or another string is never a
|
|
12
|
+
* match, and the edit replaces the string literal's content only. Every other
|
|
13
|
+
* byte of the file stays as it was.
|
|
14
|
+
*
|
|
15
|
+
* It needs the TypeScript compiler, so `./index.ts` (the bundled subpath,
|
|
16
|
+
* #3421) does not import it. The rollout takes it as `editTs`.
|
|
17
|
+
*/
|
|
18
|
+
import type { PinEditResult, PinRequest } from "./edit.js";
|
|
19
|
+
/** Move `request.module`'s pin in one TypeScript file. */
|
|
20
|
+
export declare function editPinsInTs(text: string, file: string, request: PinRequest): PinEditResult;
|
|
21
|
+
//# sourceMappingURL=edit-ts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit-ts.d.ts","sourceRoot":"","sources":["../../src/pin/edit-ts.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAGH,OAAO,KAAK,EAAiB,aAAa,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAwBvE,0DAA0D;AAC1D,wBAAgB,YAAY,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,GAAG,aAAa,CAgC3F"}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The pin edit for hand-written HCL (#3189): move one module's pin from an old
|
|
3
|
+
* version to a new one in a `.tf` file or a `terragrunt.hcl`, and leave every
|
|
4
|
+
* other byte of the file as it was.
|
|
5
|
+
*
|
|
6
|
+
* Three steps, each one a check on the last:
|
|
7
|
+
*
|
|
8
|
+
* 1. The HCL reader (`@cdktn/hcl2json`, the parser the rest of this lexicon
|
|
9
|
+
* reads `.tf` with) parses the file. Its tree says which calls exist and
|
|
10
|
+
* what each one's `source` and `version` are: `module "<name>"` blocks in a
|
|
11
|
+
* `.tf`, and the `terraform` block's `source` in a `terragrunt.hcl`.
|
|
12
|
+
* 2. `./source.ts` decides, per call, whether it names the module and how its
|
|
13
|
+
* pin moves. `./scan.ts` finds the byte offsets of the literal to rewrite,
|
|
14
|
+
* and its unescaped content has to equal the value the reader returned, or
|
|
15
|
+
* the call is refused rather than guessed at.
|
|
16
|
+
* 3. The edited text is parsed again. Its tree has to equal the first tree
|
|
17
|
+
* with only the moved values changed. Anything else throws, and nothing is
|
|
18
|
+
* written.
|
|
19
|
+
*
|
|
20
|
+
* The parser is passed in rather than imported. It is a 1.8 MB wasm package
|
|
21
|
+
* that core loads lazily (`loadHcl2json`), and a caller that bundles this
|
|
22
|
+
* module (terragucci's `tf-rollout` stage, #3421) decides how it is loaded.
|
|
23
|
+
*/
|
|
24
|
+
import type { Hcl2Json } from "@intentius/chant/terraform/hcl2json";
|
|
25
|
+
import { type PinMove } from "./source.js";
|
|
26
|
+
/** What to move: a module, named by its source without the pin, from one pin to another. */
|
|
27
|
+
export interface PinRequest {
|
|
28
|
+
module: string;
|
|
29
|
+
from: string;
|
|
30
|
+
to: string;
|
|
31
|
+
}
|
|
32
|
+
/** One module call the edit looked at, and what happened to it. */
|
|
33
|
+
export type PinCallResult = PinMove & {
|
|
34
|
+
/** The file, as the caller named it. */
|
|
35
|
+
file: string;
|
|
36
|
+
/** `module.<name>` in a `.tf`, `terraform` in a `terragrunt.hcl`, or `line <n>` in TypeScript source. */
|
|
37
|
+
call: string;
|
|
38
|
+
};
|
|
39
|
+
/** The edited text and every call that names the module. */
|
|
40
|
+
export interface PinEditResult {
|
|
41
|
+
content: string;
|
|
42
|
+
calls: PinCallResult[];
|
|
43
|
+
}
|
|
44
|
+
/** Whether a file is read as a Terragrunt configuration rather than a `.tf` file. */
|
|
45
|
+
export declare function isTerragruntFile(file: string): boolean;
|
|
46
|
+
/**
|
|
47
|
+
* Move `request.module`'s pin in one file. Calls that name another module are
|
|
48
|
+
* left alone and not reported. A call that names the module and cannot move
|
|
49
|
+
* is reported with its reason and left as it was.
|
|
50
|
+
*/
|
|
51
|
+
export declare function editPins(text: string, file: string, request: PinRequest, parser: Hcl2Json): Promise<PinEditResult>;
|
|
52
|
+
//# sourceMappingURL=edit.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"edit.d.ts","sourceRoot":"","sources":["../../src/pin/edit.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAEH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,EAAW,KAAK,OAAO,EAAE,MAAM,UAAU,CAAC;AAGjD,4FAA4F;AAC5F,MAAM,WAAW,UAAU;IACzB,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,mEAAmE;AACnE,MAAM,MAAM,aAAa,GAAG,OAAO,GAAG;IACpC,wCAAwC;IACxC,IAAI,EAAE,MAAM,CAAC;IACb,yGAAyG;IACzG,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,4DAA4D;AAC5D,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,KAAK,EAAE,aAAa,EAAE,CAAC;CACxB;AAED,qFAAqF;AACrF,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEtD;AA2CD;;;;GAIG;AACH,wBAAsB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,QAAQ,GAAG,OAAO,CAAC,aAAa,CAAC,CAgDxH"}
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* What a pin-bump rollout asks the forge (#3189): find a wave's pull request
|
|
3
|
+
* by its branch, open one, and read the checks on the commit a merge made.
|
|
4
|
+
*
|
|
5
|
+
* The default answers through `gh`, the way core's `proposeWorkspaceUpgrade`
|
|
6
|
+
* (#2550) opens its pull request: `gh pr list --head`, `gh pr create`, and
|
|
7
|
+
* `gh api` for the commit's check runs and statuses. A test, or a caller with
|
|
8
|
+
* its own forge client, passes a {@link PinForge} instead.
|
|
9
|
+
*/
|
|
10
|
+
import type { CommandRunner } from "@intentius/chant/op/activities/propose-upgrade";
|
|
11
|
+
/** A wave's pull request, as the forge reports it. */
|
|
12
|
+
export interface PinPullRequest {
|
|
13
|
+
url: string;
|
|
14
|
+
state: "open" | "merged" | "closed";
|
|
15
|
+
body: string;
|
|
16
|
+
/** The commit the merge made on the base branch, once merged. */
|
|
17
|
+
mergeCommit?: string;
|
|
18
|
+
}
|
|
19
|
+
/** One check or status on a commit. */
|
|
20
|
+
export interface PinCommitCheck {
|
|
21
|
+
name: string;
|
|
22
|
+
state: "success" | "pending" | "failure";
|
|
23
|
+
}
|
|
24
|
+
export interface PinForge {
|
|
25
|
+
/** The newest pull request whose head is `branch`, in any state, or null. */
|
|
26
|
+
findPullRequest(branch: string): Promise<PinPullRequest | null>;
|
|
27
|
+
/** Open a pull request and return its URL. */
|
|
28
|
+
createPullRequest(input: {
|
|
29
|
+
base: string;
|
|
30
|
+
head: string;
|
|
31
|
+
title: string;
|
|
32
|
+
body: string;
|
|
33
|
+
}): Promise<string>;
|
|
34
|
+
/** The checks and statuses on a commit. */
|
|
35
|
+
commitChecks(sha: string): Promise<PinCommitCheck[]>;
|
|
36
|
+
}
|
|
37
|
+
/** A {@link PinForge} over `gh`, run in `repo`. */
|
|
38
|
+
export declare function ghPinForge(run: CommandRunner, repo: string): PinForge;
|
|
39
|
+
//# sourceMappingURL=forge.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forge.d.ts","sourceRoot":"","sources":["../../src/pin/forge.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAEH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gDAAgD,CAAC;AAEpF,sDAAsD;AACtD,MAAM,WAAW,cAAc;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,GAAG,QAAQ,GAAG,QAAQ,CAAC;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,iEAAiE;IACjE,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB;AAED,uCAAuC;AACvC,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,SAAS,GAAG,SAAS,GAAG,SAAS,CAAC;CAC1C;AAED,MAAM,WAAW,QAAQ;IACvB,6EAA6E;IAC7E,eAAe,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,GAAG,IAAI,CAAC,CAAC;IAChE,8CAA8C;IAC9C,iBAAiB,CAAC,KAAK,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAAC;IACvG,2CAA2C;IAC3C,YAAY,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,cAAc,EAAE,CAAC,CAAC;CACtD;AAgBD,mDAAmD;AACnD,wBAAgB,UAAU,CAAC,GAAG,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,GAAG,QAAQ,CAiCrE"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pin-bump rollouts (#3189): the pin edit, the wave plan, and the run that
|
|
3
|
+
* opens one pull request per wave.
|
|
4
|
+
*
|
|
5
|
+
* This subpath, `@intentius/chant-lexicon-terraform/pin`, bundles without the
|
|
6
|
+
* TypeScript toolchain, zod, or chant's fold, lint and codegen modules, so
|
|
7
|
+
* terragucci's `tf-rollout` stage can run it from one bundled file (#3421).
|
|
8
|
+
* `./bundle.test.ts` holds it to that. The HCL parser is passed in, and the
|
|
9
|
+
* TypeScript editor for generated roots lives in `./edit-ts.ts`, which this
|
|
10
|
+
* index does not import.
|
|
11
|
+
*/
|
|
12
|
+
export { readModulePin, movePin, moduleOf, exactVersion, isPinValue, checkPinRequest } from "./source.js";
|
|
13
|
+
export type { ModuleCallPin, PinMove, PinParam } from "./source.js";
|
|
14
|
+
export { editPins, isTerragruntFile } from "./edit.js";
|
|
15
|
+
export type { PinRequest, PinCallResult, PinEditResult } from "./edit.js";
|
|
16
|
+
export { planPinWaves, wavesFromChoudoufu, restrictWaves, terragruntDependencies, PinWavePlanError } from "./waves.js";
|
|
17
|
+
export type { PinRoot, PinWave } from "./waves.js";
|
|
18
|
+
export { ghPinForge } from "./forge.js";
|
|
19
|
+
export type { PinForge, PinPullRequest, PinCommitCheck } from "./forge.js";
|
|
20
|
+
export { runPinRollout, renderPinRollout, pinWaveBranch } from "./rollout.js";
|
|
21
|
+
export type { PinRolloutOptions, PinRolloutResult, PinRolloutMode, PinRootState, PinWaveState, PinWaveStatus, TsPinEditor } from "./rollout.js";
|
|
22
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/pin/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,UAAU,EAAE,eAAe,EAAE,MAAM,UAAU,CAAC;AACvG,YAAY,EAAE,aAAa,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,UAAU,CAAC;AACjE,OAAO,EAAE,QAAQ,EAAE,gBAAgB,EAAE,MAAM,QAAQ,CAAC;AACpD,YAAY,EAAE,UAAU,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,QAAQ,CAAC;AACvE,OAAO,EAAE,YAAY,EAAE,kBAAkB,EAAE,aAAa,EAAE,sBAAsB,EAAE,gBAAgB,EAAE,MAAM,SAAS,CAAC;AACpH,YAAY,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,SAAS,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,YAAY,EAAE,QAAQ,EAAE,cAAc,EAAE,cAAc,EAAE,MAAM,SAAS,CAAC;AACxE,OAAO,EAAE,aAAa,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,WAAW,CAAC;AAC3E,YAAY,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,cAAc,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,WAAW,CAAC"}
|
|
@@ -0,0 +1,116 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Roll a module version out as pin-bump pull requests, one wave at a time
|
|
3
|
+
* (#3189, choudoufu#1749).
|
|
4
|
+
*
|
|
5
|
+
* Each run reads where the rollout stands and does at most one thing:
|
|
6
|
+
*
|
|
7
|
+
* 1. It checks out the base branch in a temporary worktree and reads every
|
|
8
|
+
* root's pin there: at the old version, at the new one, refused (a
|
|
9
|
+
* floating constraint, no pin, an expression), or pinned at something
|
|
10
|
+
* else. Only roots at the old or the new version are in the rollout, so
|
|
11
|
+
* the wave plan is the same on every run.
|
|
12
|
+
* 2. It splits those roots into waves (`./waves.ts`).
|
|
13
|
+
* 3. It walks the waves in order, reading each wave's pull request by its
|
|
14
|
+
* branch. A wave whose PR merged, and whose every moved root reports its
|
|
15
|
+
* apply check as passed on the merge commit, is done. The first wave that
|
|
16
|
+
* is not done decides the run:
|
|
17
|
+
* - no PR yet: open it (one branch, one PR, the pin moved for that wave's
|
|
18
|
+
* roots only), or in `report` mode say it would;
|
|
19
|
+
* - PR open, or merged with an apply still pending: report where it
|
|
20
|
+
* stands and open nothing;
|
|
21
|
+
* - PR closed without merging, or a root whose apply check failed: stop,
|
|
22
|
+
* naming it. The waves after it do not open.
|
|
23
|
+
*
|
|
24
|
+
* That is #2119's gate as a fact: nothing waits. The next run reads the
|
|
25
|
+
* forge again and either moves on or reports the same place.
|
|
26
|
+
*
|
|
27
|
+
* The PR's branch is built from the base branch in a worktree and pushed.
|
|
28
|
+
* The default branch, and whatever the caller has checked out, are never
|
|
29
|
+
* written, as with core's `proposeWorkspaceUpgrade` (#2550). Each PR changes
|
|
30
|
+
* only the files of its wave's roots, so a path-diff selection (GitLab's
|
|
31
|
+
* `rules: changes:`, #3183's affected members) plans exactly those roots.
|
|
32
|
+
*
|
|
33
|
+
* An "applied" root is one whose apply check, named by `appliedCheck`
|
|
34
|
+
* (default `apply/{root}`), passed on the merge commit. That is how a
|
|
35
|
+
* per-root apply job on the merged commit reports today; when the per-PR
|
|
36
|
+
* loop (#3183) lands, its per-member check name is the one to pass.
|
|
37
|
+
*/
|
|
38
|
+
import type { Hcl2Json } from "@intentius/chant/terraform/hcl2json";
|
|
39
|
+
import type { CommandRunner } from "@intentius/chant/op/activities/propose-upgrade";
|
|
40
|
+
import { type PinCallResult, type PinEditResult, type PinRequest } from "./edit.js";
|
|
41
|
+
import { type PinRoot, type PinWave } from "./waves.js";
|
|
42
|
+
import { type PinForge } from "./forge.js";
|
|
43
|
+
/** Edits the module declaration in a generated root's TypeScript source (`./edit-ts.ts`). */
|
|
44
|
+
export type TsPinEditor = (text: string, file: string, request: PinRequest) => PinEditResult;
|
|
45
|
+
export type PinRolloutMode = "report" | "pull-request";
|
|
46
|
+
export interface PinRolloutOptions extends PinRequest {
|
|
47
|
+
/** A directory inside the repository. Default: the working directory. */
|
|
48
|
+
cwd?: string;
|
|
49
|
+
/** The roots to roll out. Default: every directory under the repository with a `.tf` file or a `terragrunt.hcl` that calls the module. */
|
|
50
|
+
roots?: PinRoot[];
|
|
51
|
+
/** Roots that form wave 1. */
|
|
52
|
+
canaries?: string[];
|
|
53
|
+
/** A wave plan to use instead of canaries and dependency order, such as {@link wavesFromChoudoufu}'s. */
|
|
54
|
+
waves?: PinWave[];
|
|
55
|
+
/** `report` (default) opens nothing; `pull-request` opens the next wave's PR when it is due. */
|
|
56
|
+
mode?: PinRolloutMode;
|
|
57
|
+
/** The branch PRs target. Default: the remote's default branch. */
|
|
58
|
+
base?: string;
|
|
59
|
+
/** Default `origin`. */
|
|
60
|
+
remote?: string;
|
|
61
|
+
/** The check each moved root's apply reports on the merge commit. `{root}` is the root's directory. Default `apply/{root}`. */
|
|
62
|
+
appliedCheck?: string;
|
|
63
|
+
/** The HCL reader, `loadHcl2json()` from `@intentius/chant/terraform/hcl2json`. */
|
|
64
|
+
parser: Hcl2Json;
|
|
65
|
+
/** The forge. Default: `gh`, through `run`. */
|
|
66
|
+
forge?: PinForge;
|
|
67
|
+
/** Runs `git` (and `gh`, for the default forge). For tests. */
|
|
68
|
+
run?: CommandRunner;
|
|
69
|
+
/** The TypeScript editor for generated roots. Without it, a root with `tsSource` is refused. */
|
|
70
|
+
editTs?: TsPinEditor;
|
|
71
|
+
/** Markdown appended to a wave's PR body, such as the grouped plan summary of #3188 once a caller has the wave's plans. */
|
|
72
|
+
planSummary?: (wave: PinWave) => Promise<string | undefined>;
|
|
73
|
+
}
|
|
74
|
+
/** Where one root's pin stood on the base branch. */
|
|
75
|
+
export interface PinRootState {
|
|
76
|
+
root: string;
|
|
77
|
+
/** `from`: at least one call moves; `to`: every call is already moved; the rest are not in the rollout. */
|
|
78
|
+
state: "from" | "to" | "refused" | "elsewhere" | "absent";
|
|
79
|
+
files: string[];
|
|
80
|
+
calls: PinCallResult[];
|
|
81
|
+
reason?: string;
|
|
82
|
+
}
|
|
83
|
+
export type PinWaveState = "applied" | "nothing-to-move" | "opened" | "would-open" | "open" | "waiting-apply" | "failed" | "closed" | "not-reached";
|
|
84
|
+
export interface PinWaveStatus extends PinWave {
|
|
85
|
+
branch: string;
|
|
86
|
+
state: PinWaveState;
|
|
87
|
+
pr?: string;
|
|
88
|
+
/** Roots whose apply check has not reported yet. */
|
|
89
|
+
pending?: string[];
|
|
90
|
+
/** Roots whose apply check failed. */
|
|
91
|
+
failed?: string[];
|
|
92
|
+
/** Files the wave's PR changes (`opened` and `would-open`). */
|
|
93
|
+
files?: string[];
|
|
94
|
+
}
|
|
95
|
+
export interface PinRolloutResult extends PinRequest {
|
|
96
|
+
mode: PinRolloutMode;
|
|
97
|
+
base: string;
|
|
98
|
+
/**
|
|
99
|
+
* `complete`: every wave applied. `opened`/`would-open`: the next wave's PR
|
|
100
|
+
* was opened, or would be. `waiting`: a PR is open or an apply has not
|
|
101
|
+
* reported. `stopped`: a root failed or a PR closed unmerged, and `stop` says
|
|
102
|
+
* which.
|
|
103
|
+
*/
|
|
104
|
+
status: "complete" | "opened" | "would-open" | "waiting" | "stopped";
|
|
105
|
+
roots: PinRootState[];
|
|
106
|
+
waves: PinWaveStatus[];
|
|
107
|
+
stop?: string;
|
|
108
|
+
summary: string;
|
|
109
|
+
}
|
|
110
|
+
/** The branch a wave's PR is opened from. */
|
|
111
|
+
export declare function pinWaveBranch(request: PinRequest, wave: number): string;
|
|
112
|
+
/** Read where a rollout stands, and open the next wave's PR when it is due and `mode` is `pull-request`. */
|
|
113
|
+
export declare function runPinRollout(options: PinRolloutOptions): Promise<PinRolloutResult>;
|
|
114
|
+
/** The rollout for a terminal or a run log. */
|
|
115
|
+
export declare function renderPinRollout(result: Omit<PinRolloutResult, "summary">): string;
|
|
116
|
+
//# sourceMappingURL=rollout.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"rollout.d.ts","sourceRoot":"","sources":["../../src/pin/rollout.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAOH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,qCAAqC,CAAC;AACpE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gDAAgD,CAAC;AACpF,OAAO,EAAY,KAAK,aAAa,EAAE,KAAK,aAAa,EAAE,KAAK,UAAU,EAAE,MAAM,QAAQ,CAAC;AAE3F,OAAO,EAAuD,KAAK,OAAO,EAAE,KAAK,OAAO,EAAE,MAAM,SAAS,CAAC;AAC1G,OAAO,EAAc,KAAK,QAAQ,EAAE,MAAM,SAAS,CAAC;AAIpD,6FAA6F;AAC7F,MAAM,MAAM,WAAW,GAAG,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,UAAU,KAAK,aAAa,CAAC;AAE7F,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,cAAc,CAAC;AAEvD,MAAM,WAAW,iBAAkB,SAAQ,UAAU;IACnD,yEAAyE;IACzE,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,0IAA0I;IAC1I,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC;IAClB,8BAA8B;IAC9B,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,yGAAyG;IACzG,KAAK,CAAC,EAAE,OAAO,EAAE,CAAC;IAClB,gGAAgG;IAChG,IAAI,CAAC,EAAE,cAAc,CAAC;IACtB,mEAAmE;IACnE,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wBAAwB;IACxB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB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