@intentius/chant 0.124.51 → 0.124.54
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/audit/discover.d.ts.map +1 -1
- package/dist/audit/discover.js +3 -1
- package/dist/behaviour.d.ts +1 -1
- package/dist/behaviour.d.ts.map +1 -1
- package/dist/capabilities/templates.d.ts +65 -0
- package/dist/capabilities/templates.d.ts.map +1 -0
- package/dist/capabilities/templates.js +193 -0
- package/dist/capabilities/templates.json +145 -0
- package/dist/change-set-graph.d.ts +35 -3
- package/dist/change-set-graph.d.ts.map +1 -1
- package/dist/change-set-graph.js +60 -9
- package/dist/change-set.d.ts +65 -7
- package/dist/change-set.d.ts.map +1 -1
- package/dist/change-set.js +23 -12
- package/dist/ci-identity.d.ts +7 -2
- package/dist/ci-identity.d.ts.map +1 -1
- package/dist/ci-identity.js +4 -1
- package/dist/cli/commands/import-index.d.ts +52 -0
- package/dist/cli/commands/import-index.d.ts.map +1 -0
- package/dist/cli/commands/import-index.js +226 -0
- package/dist/cli/commands/lint.d.ts.map +1 -1
- package/dist/cli/commands/lint.js +4 -2
- package/dist/cli/handlers/components.d.ts.map +1 -1
- package/dist/cli/handlers/components.js +11 -2
- package/dist/cli/handlers/fan-out.d.ts.map +1 -1
- package/dist/cli/handlers/fan-out.js +16 -3
- package/dist/cli/handlers/graph.d.ts.map +1 -1
- package/dist/cli/handlers/graph.js +22 -4
- package/dist/cli/handlers/index-cloud.d.ts +14 -0
- package/dist/cli/handlers/index-cloud.d.ts.map +1 -0
- package/dist/cli/handlers/index-cloud.js +22 -0
- package/dist/cli/handlers/index-diff.d.ts +18 -0
- package/dist/cli/handlers/index-diff.d.ts.map +1 -0
- package/dist/cli/handlers/index-diff.js +142 -0
- package/dist/cli/handlers/lifecycle-drift.d.ts +25 -0
- package/dist/cli/handlers/lifecycle-drift.d.ts.map +1 -0
- package/dist/cli/handlers/lifecycle-drift.js +64 -0
- package/dist/cli/handlers/lifecycle.d.ts.map +1 -1
- package/dist/cli/handlers/lifecycle.js +188 -28
- package/dist/cli/handlers/misc.d.ts +9 -0
- package/dist/cli/handlers/misc.d.ts.map +1 -1
- package/dist/cli/handlers/misc.js +77 -0
- package/dist/cli/handlers/pr.d.ts.map +1 -1
- package/dist/cli/handlers/pr.js +17 -3
- package/dist/cli/handlers/promote.d.ts.map +1 -1
- package/dist/cli/handlers/promote.js +89 -15
- package/dist/cli/handlers/query.d.ts.map +1 -1
- package/dist/cli/handlers/query.js +28 -4
- package/dist/cli/handlers/scenario.d.ts.map +1 -1
- package/dist/cli/handlers/scenario.js +8 -7
- package/dist/cli/handlers/search.d.ts +34 -4
- package/dist/cli/handlers/search.d.ts.map +1 -1
- package/dist/cli/handlers/search.js +216 -36
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +55 -1
- package/dist/cli/mcp/lifecycle-tools.d.ts.map +1 -1
- package/dist/cli/mcp/lifecycle-tools.js +3 -2
- package/dist/cli/mcp/resource-handlers.d.ts.map +1 -1
- package/dist/cli/mcp/resource-handlers.js +4 -3
- package/dist/cli/mcp/workspace-tools.js +1 -1
- package/dist/cli/parse-args.d.ts.map +1 -1
- package/dist/cli/parse-args.js +55 -2
- package/dist/cli/registry.d.ts +19 -1
- package/dist/cli/registry.d.ts.map +1 -1
- package/dist/cloud-lister/aws.d.ts +35 -0
- package/dist/cloud-lister/aws.d.ts.map +1 -0
- package/dist/cloud-lister/aws.js +203 -0
- package/dist/cloud-lister/azure.d.ts +34 -0
- package/dist/cloud-lister/azure.d.ts.map +1 -0
- package/dist/cloud-lister/azure.js +129 -0
- package/dist/cloud-lister/common.d.ts +40 -0
- package/dist/cloud-lister/common.d.ts.map +1 -0
- package/dist/cloud-lister/common.js +83 -0
- package/dist/cloud-lister/credentials.d.ts +50 -0
- package/dist/cloud-lister/credentials.d.ts.map +1 -0
- package/dist/cloud-lister/credentials.js +86 -0
- package/dist/cloud-lister/fakes.d.ts +27 -0
- package/dist/cloud-lister/fakes.d.ts.map +1 -0
- package/dist/cloud-lister/fakes.js +50 -0
- package/dist/cloud-lister/gcp.d.ts +42 -0
- package/dist/cloud-lister/gcp.d.ts.map +1 -0
- package/dist/cloud-lister/gcp.js +143 -0
- package/dist/cloud-lister/guard.d.ts +49 -0
- package/dist/cloud-lister/guard.d.ts.map +1 -0
- package/dist/cloud-lister/guard.js +103 -0
- package/dist/cloud-lister/ids.d.ts +23 -0
- package/dist/cloud-lister/ids.d.ts.map +1 -0
- package/dist/cloud-lister/ids.js +42 -0
- package/dist/cloud-lister/index.d.ts +67 -0
- package/dist/cloud-lister/index.d.ts.map +1 -0
- package/dist/cloud-lister/index.js +102 -0
- package/dist/cloud-lister/kubernetes.d.ts +64 -0
- package/dist/cloud-lister/kubernetes.d.ts.map +1 -0
- package/dist/cloud-lister/kubernetes.js +276 -0
- package/dist/cloud-lister/markers.d.ts +31 -0
- package/dist/cloud-lister/markers.d.ts.map +1 -0
- package/dist/cloud-lister/markers.js +73 -0
- package/dist/cloud-lister/mask.d.ts +31 -0
- package/dist/cloud-lister/mask.d.ts.map +1 -0
- package/dist/cloud-lister/mask.js +74 -0
- package/dist/cloud-lister/sigv4.d.ts +29 -0
- package/dist/cloud-lister/sigv4.d.ts.map +1 -0
- package/dist/cloud-lister/sigv4.js +54 -0
- package/dist/cloud-lister/transport.d.ts +55 -0
- package/dist/cloud-lister/transport.d.ts.map +1 -0
- package/dist/cloud-lister/transport.js +86 -0
- package/dist/cloud-lister/types.d.ts +121 -0
- package/dist/cloud-lister/types.d.ts.map +1 -0
- package/dist/cloud-lister/types.js +24 -0
- package/dist/components/capability-plugin-loader.d.ts.map +1 -1
- package/dist/components/capability-plugin-loader.js +6 -0
- package/dist/components/capability-plugin.d.ts +9 -0
- package/dist/components/capability-plugin.d.ts.map +1 -1
- package/dist/components/capability.d.ts +224 -0
- package/dist/components/capability.d.ts.map +1 -1
- package/dist/components/cli-support.d.ts +21 -0
- package/dist/components/cli-support.d.ts.map +1 -1
- package/dist/components/cli-support.js +58 -14
- package/dist/components/covered-round.d.ts +173 -0
- package/dist/components/covered-round.d.ts.map +1 -0
- package/dist/components/covered-round.js +200 -0
- package/dist/components/declared-reads.d.ts +38 -0
- package/dist/components/declared-reads.d.ts.map +1 -0
- package/dist/components/declared-reads.js +131 -0
- package/dist/components/deploy-units.d.ts.map +1 -1
- package/dist/components/deploy-units.js +4 -0
- package/dist/components/driver.d.ts +42 -1
- package/dist/components/driver.d.ts.map +1 -1
- package/dist/components/driver.js +74 -3
- package/dist/components/fan-out-run.d.ts +23 -1
- package/dist/components/fan-out-run.d.ts.map +1 -1
- package/dist/components/fan-out-run.js +82 -14
- package/dist/components/fan-out-support.d.ts +6 -0
- package/dist/components/fan-out-support.d.ts.map +1 -1
- package/dist/components/fan-out-support.js +4 -1
- package/dist/components/fan-out.d.ts +28 -0
- package/dist/components/fan-out.d.ts.map +1 -1
- package/dist/components/groups.d.ts +229 -0
- package/dist/components/groups.d.ts.map +1 -0
- package/dist/components/groups.js +760 -0
- package/dist/components/index.d.ts +7 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/index.js +5 -0
- package/dist/components/plan-shape-conformance.d.ts +48 -0
- package/dist/components/plan-shape-conformance.d.ts.map +1 -0
- package/dist/components/plan-shape-conformance.js +122 -0
- package/dist/components/pr-run.d.ts +62 -7
- package/dist/components/pr-run.d.ts.map +1 -1
- package/dist/components/pr-run.js +354 -53
- package/dist/components/promote-rounds.d.ts +9 -0
- package/dist/components/promote-rounds.d.ts.map +1 -1
- package/dist/components/promote-rounds.js +23 -2
- package/dist/components/promote.d.ts +17 -0
- package/dist/components/promote.d.ts.map +1 -1
- package/dist/components/promote.js +36 -6
- package/dist/components/release-gate.d.ts +23 -1
- package/dist/components/release-gate.d.ts.map +1 -1
- package/dist/components/release-gate.js +97 -33
- package/dist/components/run-groups.d.ts +58 -0
- package/dist/components/run-groups.d.ts.map +1 -0
- package/dist/components/run-groups.js +78 -0
- package/dist/components/starter-plugin.d.ts +1 -0
- package/dist/components/starter-plugin.d.ts.map +1 -1
- package/dist/components/starter-plugin.js +6 -1
- package/dist/components/verbs/index.d.ts +1 -0
- package/dist/components/verbs/index.d.ts.map +1 -1
- package/dist/components/verbs/index.js +1 -0
- package/dist/components/verbs/member-outputs.d.ts +187 -0
- package/dist/components/verbs/member-outputs.d.ts.map +1 -0
- package/dist/components/verbs/member-outputs.js +218 -0
- package/dist/components/wave-plan.d.ts +2 -0
- package/dist/components/wave-plan.d.ts.map +1 -1
- package/dist/components/wave-plan.js +4 -1
- package/dist/config.d.ts +60 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +27 -0
- package/dist/deep-observation.d.ts +1 -13
- package/dist/deep-observation.d.ts.map +1 -1
- package/dist/deep-observation.js +5 -22
- package/dist/drift-record.d.ts +542 -0
- package/dist/drift-record.d.ts.map +1 -0
- package/dist/drift-record.js +886 -0
- package/dist/engine-facts.d.ts +144 -0
- package/dist/engine-facts.d.ts.map +1 -0
- package/dist/engine-facts.js +14 -0
- package/dist/graph-ir.d.ts +153 -2
- package/dist/graph-ir.d.ts.map +1 -1
- package/dist/graph-ir.js +224 -6
- package/dist/graph-refs.d.ts +145 -0
- package/dist/graph-refs.d.ts.map +1 -1
- package/dist/graph-refs.js +305 -0
- package/dist/graph-schema/fixtures/adopt.json +15 -0
- package/dist/graph-schema/fixtures/choudoufu.engine-graph.json +169 -0
- package/dist/graph-schema/fixtures/index.json +68 -0
- package/dist/graph-schema/fixtures/plunge.engine-graph.json +158 -0
- package/dist/graph-schema/fixtures.d.ts +23 -0
- package/dist/graph-schema/fixtures.d.ts.map +1 -0
- package/dist/graph-schema/fixtures.js +246 -0
- package/dist/graph-schema/generate.d.ts +15 -0
- package/dist/graph-schema/generate.d.ts.map +1 -0
- package/dist/graph-schema/generate.js +267 -0
- package/dist/graph-schema/graph.schema.json +1387 -0
- package/dist/health.schema.json +2 -1
- package/dist/identity.d.ts.map +1 -1
- package/dist/identity.js +2 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/instance-nodes.d.ts +159 -0
- package/dist/instance-nodes.d.ts.map +1 -0
- package/dist/instance-nodes.js +231 -0
- package/dist/lexicon.d.ts +72 -0
- package/dist/lexicon.d.ts.map +1 -1
- package/dist/lifecycle/adoption-file.d.ts +56 -0
- package/dist/lifecycle/adoption-file.d.ts.map +1 -0
- package/dist/lifecycle/adoption-file.js +123 -0
- package/dist/lifecycle/cloud-index.d.ts +186 -0
- package/dist/lifecycle/cloud-index.d.ts.map +1 -0
- package/dist/lifecycle/cloud-index.js +618 -0
- package/dist/lifecycle/derive-edges.d.ts +59 -0
- package/dist/lifecycle/derive-edges.d.ts.map +1 -0
- package/dist/lifecycle/derive-edges.js +126 -0
- package/dist/lifecycle/git.d.ts +10 -9
- package/dist/lifecycle/git.d.ts.map +1 -1
- package/dist/lifecycle/git.js +7 -1
- package/dist/lifecycle/identity-match.d.ts +133 -0
- package/dist/lifecycle/identity-match.d.ts.map +1 -0
- package/dist/lifecycle/identity-match.js +147 -0
- package/dist/lifecycle/index-diff.d.ts +224 -0
- package/dist/lifecycle/index-diff.d.ts.map +1 -0
- package/dist/lifecycle/index-diff.js +327 -0
- package/dist/lifecycle/index-document.d.ts +130 -0
- package/dist/lifecycle/index-document.d.ts.map +1 -0
- package/dist/lifecycle/index-document.js +189 -0
- package/dist/lifecycle/index-drift.d.ts +121 -0
- package/dist/lifecycle/index-drift.d.ts.map +1 -0
- package/dist/lifecycle/index-drift.js +178 -0
- package/dist/lifecycle/index-import.d.ts +168 -0
- package/dist/lifecycle/index-import.d.ts.map +1 -0
- package/dist/lifecycle/index-import.js +515 -0
- package/dist/lifecycle/index-join.d.ts +129 -0
- package/dist/lifecycle/index-join.d.ts.map +1 -0
- package/dist/lifecycle/index-join.js +248 -0
- package/dist/lifecycle/index.d.ts +4 -0
- package/dist/lifecycle/index.d.ts.map +1 -1
- package/dist/lifecycle/index.js +4 -0
- package/dist/lifecycle/observation-baseline.d.ts +61 -21
- package/dist/lifecycle/observation-baseline.d.ts.map +1 -1
- package/dist/lifecycle/observation-baseline.js +144 -19
- package/dist/lifecycle/observe.d.ts.map +1 -1
- package/dist/lifecycle/observe.js +6 -1
- package/dist/lifecycle/query.d.ts +45 -4
- package/dist/lifecycle/query.d.ts.map +1 -1
- package/dist/lifecycle/query.js +89 -7
- package/dist/lifecycle/replay.d.ts +10 -3
- package/dist/lifecycle/replay.d.ts.map +1 -1
- package/dist/lifecycle/replay.js +10 -6
- package/dist/lifecycle/scenario.d.ts +4 -3
- package/dist/lifecycle/scenario.d.ts.map +1 -1
- package/dist/lifecycle/snapshot-store-fake.d.ts +9 -0
- package/dist/lifecycle/snapshot-store-fake.d.ts.map +1 -0
- package/dist/lifecycle/snapshot-store-fake.js +21 -0
- package/dist/lifecycle/snapshot-store-s3.d.ts +102 -0
- package/dist/lifecycle/snapshot-store-s3.d.ts.map +1 -0
- package/dist/lifecycle/snapshot-store-s3.js +254 -0
- package/dist/lifecycle/snapshot-store.d.ts +170 -0
- package/dist/lifecycle/snapshot-store.d.ts.map +1 -0
- package/dist/lifecycle/snapshot-store.js +832 -0
- package/dist/lifecycle/snapshot.d.ts +11 -0
- package/dist/lifecycle/snapshot.d.ts.map +1 -1
- package/dist/lifecycle/snapshot.js +18 -5
- package/dist/lifecycle/type-listing.d.ts +148 -0
- package/dist/lifecycle/type-listing.d.ts.map +1 -0
- package/dist/lifecycle/type-listing.js +166 -0
- package/dist/lint/component-checks.d.ts +15 -1
- package/dist/lint/component-checks.d.ts.map +1 -1
- package/dist/lint/component-checks.js +1 -0
- package/dist/lint/presets/relaxed.json +2 -1
- package/dist/lint/presets/strict.json +2 -1
- package/dist/lint/rules/__fixtures__/comp/comp008/fail/dns.component.d.ts +4 -0
- package/dist/lint/rules/__fixtures__/comp/comp008/fail/dns.component.d.ts.map +1 -0
- package/dist/lint/rules/__fixtures__/comp/comp008/fail/dns.component.js +13 -0
- package/dist/lint/rules/__fixtures__/comp/comp008/pass/dns.component.d.ts +4 -0
- package/dist/lint/rules/__fixtures__/comp/comp008/pass/dns.component.d.ts.map +1 -0
- package/dist/lint/rules/__fixtures__/comp/comp008/pass/dns.component.js +8 -0
- package/dist/lint/rules/comp/comp008-applies-signal-only-root.d.ts +33 -0
- package/dist/lint/rules/comp/comp008-applies-signal-only-root.d.ts.map +1 -0
- package/dist/lint/rules/comp/comp008-applies-signal-only-root.js +123 -0
- package/dist/lint/rules/comp/index.d.ts +2 -1
- package/dist/lint/rules/comp/index.d.ts.map +1 -1
- package/dist/lint/rules/comp/index.js +4 -1
- package/dist/observation.d.ts +19 -2
- package/dist/observation.d.ts.map +1 -1
- package/dist/observation.js +18 -1
- package/dist/op/activities/activity-contracts.d.ts +1 -1
- package/dist/op/activities/activity-contracts.js +1 -1
- package/dist/op/activities/change-set.d.ts +6 -4
- package/dist/op/activities/change-set.d.ts.map +1 -1
- package/dist/op/activities/change-set.js +4 -2
- package/dist/op/activity-failure.d.ts +27 -0
- package/dist/op/activity-failure.d.ts.map +1 -1
- package/dist/op/activity-failure.js +31 -0
- package/dist/op/index.d.ts +2 -1
- package/dist/op/index.d.ts.map +1 -1
- package/dist/op/index.js +1 -1
- package/dist/op/local-executor.d.ts +5 -1
- package/dist/op/local-executor.d.ts.map +1 -1
- package/dist/op/local-executor.js +22 -8
- package/dist/pr-loop.d.ts +92 -3
- package/dist/pr-loop.d.ts.map +1 -1
- package/dist/pr-loop.js +62 -3
- package/dist/pulumi-urn.d.ts +101 -0
- package/dist/pulumi-urn.d.ts.map +1 -0
- package/dist/pulumi-urn.js +131 -0
- package/dist/release-floors.d.ts +23 -0
- package/dist/release-floors.d.ts.map +1 -0
- package/dist/release-floors.js +22 -0
- package/dist/sensitive-key.d.ts +23 -0
- package/dist/sensitive-key.d.ts.map +1 -0
- package/dist/sensitive-key.js +31 -0
- package/dist/wave-runtime.mjs +234 -234
- package/dist/workspace/adoption-report.d.ts +53 -0
- package/dist/workspace/adoption-report.d.ts.map +1 -0
- package/dist/workspace/adoption-report.js +76 -0
- package/dist/workspace/capabilities-contract.d.ts +7 -0
- package/dist/workspace/capabilities-contract.d.ts.map +1 -1
- package/dist/workspace/capabilities-contract.js +2 -1
- package/dist/workspace/capabilities.schema.json +98 -0
- package/dist/workspace/change-set.schema.json +42 -3
- package/dist/workspace/ci-cloud-identity.d.ts +13 -1
- package/dist/workspace/ci-cloud-identity.d.ts.map +1 -1
- package/dist/workspace/ci-cloud-identity.js +30 -1
- package/dist/workspace/compose-graph.d.ts +10 -1
- package/dist/workspace/compose-graph.d.ts.map +1 -1
- package/dist/workspace/compose-graph.js +6 -1
- package/dist/workspace/conformance/index.d.ts +1 -1
- package/dist/workspace/conformance/index.d.ts.map +1 -1
- package/dist/workspace/conformance/index.js +6 -1
- package/dist/workspace/drift-cli.d.ts +81 -0
- package/dist/workspace/drift-cli.d.ts.map +1 -0
- package/dist/workspace/drift-cli.js +317 -0
- package/dist/workspace/drift.schema.json +672 -0
- package/dist/workspace/graph-cli.d.ts +2 -0
- package/dist/workspace/graph-cli.d.ts.map +1 -1
- package/dist/workspace/graph-cli.js +3 -0
- package/dist/workspace/graph.schema.json +72 -0
- package/dist/workspace/init.d.ts +5 -1
- package/dist/workspace/init.d.ts.map +1 -1
- package/dist/workspace/init.js +55 -9
- package/dist/workspace/ledger.schema.json +1 -1
- package/dist/workspace/nested-graph.d.ts.map +1 -1
- package/dist/workspace/nested-graph.js +2 -0
- package/dist/workspace/pr-report.schema.json +76 -3
- package/dist/workspace/promote-waves.d.ts +112 -0
- package/dist/workspace/promote-waves.d.ts.map +1 -0
- package/dist/workspace/promote-waves.js +290 -0
- package/dist/workspace/promote.d.ts +84 -2
- package/dist/workspace/promote.d.ts.map +1 -1
- package/dist/workspace/promote.js +347 -61
- package/dist/workspace/reason-codes.d.ts +12 -0
- package/dist/workspace/reason-codes.d.ts.map +1 -1
- package/dist/workspace/reason-codes.js +14 -0
- package/dist/workspace/search-contract.d.ts +3 -3
- package/dist/workspace/search-contract.d.ts.map +1 -1
- package/dist/workspace/search-contract.js +2 -0
- package/dist/workspace/search.schema.json +103 -5
- package/package.json +14 -1
- package/src/__fixtures__/drift-record/README.md +58 -0
- package/src/__fixtures__/drift-record/choudoufu-cone.ndjson +4 -0
- package/src/__fixtures__/drift-record/choudoufu-resource.ndjson +3 -0
- package/src/__fixtures__/drift-record/component-status-ledger.json +65 -0
- package/src/__fixtures__/drift-record/component-status.json +91 -0
- package/src/__fixtures__/drift-record/deep-diff.json +259 -0
- package/src/__fixtures__/drift-record/lifecycle-diff-live.json +825 -0
- package/src/__fixtures__/drift-record/live-diff.json +125 -0
- package/src/audit/discover.e2e.test.ts +14 -0
- package/src/audit/discover.ts +3 -1
- package/src/behaviour.ts +1 -1
- package/src/capabilities/templates.json +145 -0
- package/src/capabilities/templates.test.ts +212 -0
- package/src/capabilities/templates.ts +204 -0
- package/src/change-set-bundle.test.ts +83 -0
- package/src/change-set-graph.ts +80 -9
- package/src/change-set.test.ts +24 -0
- package/src/change-set.ts +77 -14
- package/src/ci-identity-targets.test.ts +23 -0
- package/src/ci-identity.ts +10 -4
- package/src/cli/commands/import-index.test.ts +117 -0
- package/src/cli/commands/import-index.ts +265 -0
- package/src/cli/commands/lint.ts +4 -2
- package/src/cli/handlers/components.test.ts +9 -0
- package/src/cli/handlers/components.ts +12 -2
- package/src/cli/handlers/fan-out.ts +17 -3
- package/src/cli/handlers/graph.test.ts +42 -0
- package/src/cli/handlers/graph.ts +26 -4
- package/src/cli/handlers/index-cloud.ts +32 -0
- package/src/cli/handlers/index-diff.test.ts +68 -0
- package/src/cli/handlers/index-diff.ts +146 -0
- package/src/cli/handlers/ledger-root-member.test.ts +161 -0
- package/src/cli/handlers/lifecycle-drift.ts +68 -0
- package/src/cli/handlers/lifecycle.test.ts +33 -11
- package/src/cli/handlers/lifecycle.ts +205 -30
- package/src/cli/handlers/misc.ts +73 -0
- package/src/cli/handlers/pr-waves-blocked.test.ts +37 -2
- package/src/cli/handlers/pr.ts +16 -3
- package/src/cli/handlers/promote.test.ts +64 -0
- package/src/cli/handlers/promote.ts +81 -6
- package/src/cli/handlers/query.ts +27 -4
- package/src/cli/handlers/run-declared-reads-cli.test.ts +187 -0
- package/src/cli/handlers/run-groups-cli.test.ts +229 -0
- package/src/cli/handlers/scenario.test.ts +13 -0
- package/src/cli/handlers/scenario.ts +8 -7
- package/src/cli/handlers/search-index.test.ts +255 -0
- package/src/cli/handlers/search-json.test.ts +1 -1
- package/src/cli/handlers/search-ownership.test.ts +194 -0
- package/src/cli/handlers/search.ts +271 -38
- package/src/cli/main.test.ts +7 -0
- package/src/cli/main.ts +56 -1
- package/src/cli/mcp/lifecycle-tools.ts +3 -2
- package/src/cli/mcp/resource-handlers.ts +4 -3
- package/src/cli/mcp/workspace-tools.ts +1 -1
- package/src/cli/parse-args.ts +40 -2
- package/src/cli/registry.ts +19 -1
- package/src/cloud-lister/aws.test.ts +202 -0
- package/src/cloud-lister/aws.ts +226 -0
- package/src/cloud-lister/azure.test.ts +132 -0
- package/src/cloud-lister/azure.ts +142 -0
- package/src/cloud-lister/common.ts +115 -0
- package/src/cloud-lister/credentials.ts +110 -0
- package/src/cloud-lister/fakes.ts +66 -0
- package/src/cloud-lister/gcp.test.ts +121 -0
- package/src/cloud-lister/gcp.ts +159 -0
- package/src/cloud-lister/guard.test.ts +198 -0
- package/src/cloud-lister/guard.ts +111 -0
- package/src/cloud-lister/ids.ts +54 -0
- package/src/cloud-lister/index.ts +134 -0
- package/src/cloud-lister/kubernetes.test.ts +160 -0
- package/src/cloud-lister/kubernetes.ts +284 -0
- package/src/cloud-lister/markers.ts +74 -0
- package/src/cloud-lister/mask.ts +77 -0
- package/src/cloud-lister/shape.test.ts +81 -0
- package/src/cloud-lister/sigv4.ts +70 -0
- package/src/cloud-lister/transport.ts +118 -0
- package/src/cloud-lister/types.ts +135 -0
- package/src/components/capability-plugin-loader.ts +4 -0
- package/src/components/capability-plugin.ts +10 -0
- package/src/components/capability.ts +238 -0
- package/src/components/cli-support.ts +70 -14
- package/src/components/covered-round.test.ts +166 -0
- package/src/components/covered-round.ts +293 -0
- package/src/components/declared-reads.test.ts +103 -0
- package/src/components/declared-reads.ts +134 -0
- package/src/components/deploy-units.ts +4 -0
- package/src/components/driver.ts +101 -4
- package/src/components/fan-out-run.ts +95 -15
- package/src/components/fan-out-support.ts +10 -1
- package/src/components/fan-out.ts +30 -0
- package/src/components/groups.test.ts +320 -0
- package/src/components/groups.ts +880 -0
- package/src/components/index.ts +59 -0
- package/src/components/plan-shape-conformance.ts +130 -0
- package/src/components/pr-env-run-bundle.test.ts +2 -0
- package/src/components/pr-run.test.ts +728 -4
- package/src/components/pr-run.ts +395 -55
- package/src/components/promote-rounds.ts +25 -2
- package/src/components/promote.ts +55 -5
- package/src/components/registry.test.ts +1 -1
- package/src/components/release-gate.ts +115 -30
- package/src/components/release-groups.test.ts +362 -0
- package/src/components/run-groups.ts +113 -0
- package/src/components/starter-plugin.ts +6 -0
- package/src/components/verbs/index.ts +1 -0
- package/src/components/verbs/member-outputs.test.ts +205 -0
- package/src/components/verbs/member-outputs.ts +308 -0
- package/src/components/wave-plan.ts +5 -2
- package/src/config.ts +44 -0
- package/src/deep-observation.ts +5 -23
- package/src/drift-record.test.ts +596 -0
- package/src/drift-record.ts +1206 -0
- package/src/engine-facts.guard.test.ts +111 -0
- package/src/engine-facts.test.ts +178 -0
- package/src/engine-facts.ts +154 -0
- package/src/gated-waves-bundle.test.ts +2 -0
- package/src/graph-ir-live.test.ts +92 -0
- package/src/graph-ir.ts +317 -7
- package/src/graph-refs.ts +416 -0
- package/src/graph-schema/fixtures/adopt.json +15 -0
- package/src/graph-schema/fixtures/choudoufu.engine-graph.json +169 -0
- package/src/graph-schema/fixtures/index.json +68 -0
- package/src/graph-schema/fixtures/plunge.engine-graph.json +158 -0
- package/src/graph-schema/fixtures.ts +267 -0
- package/src/graph-schema/generate.ts +263 -0
- package/src/graph-schema/graph-schema.test.ts +153 -0
- package/src/graph-schema/graph.schema.json +1387 -0
- package/src/health.schema.json +2 -1
- package/src/identity.ts +2 -0
- package/src/index.ts +2 -0
- package/src/instance-nodes.ts +288 -0
- package/src/lexicon.ts +76 -0
- package/src/lifecycle/__fixtures__/index-diff/20261026T120000Z-aaaaaaaaaaaa.json +149 -0
- package/src/lifecycle/__fixtures__/index-diff/20261026T130000Z-bbbbbbbbbbbb.json +127 -0
- package/src/lifecycle/adoption-file.test.ts +100 -0
- package/src/lifecycle/adoption-file.ts +154 -0
- package/src/lifecycle/cloud-index.test.ts +517 -0
- package/src/lifecycle/cloud-index.ts +736 -0
- package/src/lifecycle/derive-edges.test.ts +193 -0
- package/src/lifecycle/derive-edges.ts +182 -0
- package/src/lifecycle/git.ts +10 -4
- package/src/lifecycle/identity-match.test.ts +308 -0
- package/src/lifecycle/identity-match.ts +257 -0
- package/src/lifecycle/index-diff.test.ts +198 -0
- package/src/lifecycle/index-diff.ts +476 -0
- package/src/lifecycle/index-document.test.ts +64 -0
- package/src/lifecycle/index-document.ts +299 -0
- package/src/lifecycle/index-drift.test.ts +191 -0
- package/src/lifecycle/index-drift.ts +304 -0
- package/src/lifecycle/index-import.test.ts +255 -0
- package/src/lifecycle/index-import.ts +634 -0
- package/src/lifecycle/index-join.test.ts +250 -0
- package/src/lifecycle/index-join.ts +304 -0
- package/src/lifecycle/index-store-load-bearing.test.ts +187 -0
- package/src/lifecycle/index.ts +4 -0
- package/src/lifecycle/member-ledger.test.ts +25 -7
- package/src/lifecycle/observation-baseline.test.ts +72 -1
- package/src/lifecycle/observation-baseline.ts +190 -27
- package/src/lifecycle/observe.ts +6 -1
- package/src/lifecycle/query.test.ts +69 -1
- package/src/lifecycle/query.ts +103 -10
- package/src/lifecycle/replay.test.ts +9 -5
- package/src/lifecycle/replay.ts +9 -5
- package/src/lifecycle/scenario.ts +4 -3
- package/src/lifecycle/snapshot-store-fake.ts +29 -0
- package/src/lifecycle/snapshot-store-s3.ts +316 -0
- package/src/lifecycle/snapshot-store.test.ts +385 -0
- package/src/lifecycle/snapshot-store.ts +981 -0
- package/src/lifecycle/snapshot.test.ts +13 -0
- package/src/lifecycle/snapshot.ts +23 -6
- package/src/lifecycle/type-listing.test.ts +166 -0
- package/src/lifecycle/type-listing.ts +309 -0
- package/src/lint/component-checks.ts +17 -1
- package/src/lint/config.test.ts +3 -0
- package/src/lint/presets/relaxed.json +2 -1
- package/src/lint/presets/strict.json +2 -1
- package/src/lint/rules/__fixtures__/comp/comp008/fail/dns.component.ts +15 -0
- package/src/lint/rules/__fixtures__/comp/comp008/pass/dns.component.ts +10 -0
- package/src/lint/rules/comp/comp.test.ts +2 -1
- package/src/lint/rules/comp/comp008-applies-signal-only-root.ts +121 -0
- package/src/lint/rules/comp/comp008.test.ts +77 -0
- package/src/lint/rules/comp/index.ts +4 -1
- package/src/observation-edges.test.ts +33 -0
- package/src/observation.ts +36 -1
- package/src/op/activities/activity-contracts.ts +1 -1
- package/src/op/activities/change-set.ts +8 -5
- package/src/op/activity-failure.ts +36 -0
- package/src/op/index.ts +2 -1
- package/src/op/local-executor.test.ts +80 -0
- package/src/op/local-executor.ts +27 -9
- package/src/pr-loop-bundle.test.ts +5 -2
- package/src/pr-loop.test.ts +57 -1
- package/src/pr-loop.ts +154 -6
- package/src/pulumi-urn.ts +151 -0
- package/src/release-floors.ts +22 -0
- package/src/sensitive-key.ts +34 -0
- package/src/workspace/adoption-report.test.ts +61 -0
- package/src/workspace/adoption-report.ts +103 -0
- package/src/workspace/capabilities-contract.test.ts +4 -0
- package/src/workspace/capabilities-contract.ts +9 -1
- package/src/workspace/capabilities.schema.json +98 -0
- package/src/workspace/change-set.schema.json +42 -3
- package/src/workspace/ci-cloud-identity.ts +31 -1
- package/src/workspace/compose-graph.test.ts +12 -0
- package/src/workspace/compose-graph.ts +12 -1
- package/src/workspace/conformance/conformance.e2e.test.ts +2 -1
- package/src/workspace/conformance/index.ts +6 -1
- package/src/workspace/drift-cli.test.ts +65 -0
- package/src/workspace/drift-cli.ts +365 -0
- package/src/workspace/drift.schema.json +672 -0
- package/src/workspace/graph-cli.ts +5 -0
- package/src/workspace/graph.schema.json +72 -0
- package/src/workspace/init.test.ts +38 -1
- package/src/workspace/init.ts +50 -8
- package/src/workspace/intent-gaps.test.ts +18 -2
- package/src/workspace/ledger.schema.json +1 -1
- package/src/workspace/nested-graph.ts +1 -0
- package/src/workspace/pr-report.schema.json +76 -3
- package/src/workspace/promote-waves.test.ts +296 -0
- package/src/workspace/promote-waves.ts +340 -0
- package/src/workspace/promote.test.ts +158 -4
- package/src/workspace/promote.ts +398 -57
- package/src/workspace/reason-codes.test.ts +4 -1
- package/src/workspace/reason-codes.ts +14 -0
- package/src/workspace/search-contract.ts +2 -0
- package/src/workspace/search.schema.json +103 -5
|
@@ -32,6 +32,7 @@ import { contentDigest } from "../content-digest.js";
|
|
|
32
32
|
import { parseDuration } from "./duration.js";
|
|
33
33
|
import { stepLabel, withRunConsole, withStepConsole } from "./step-console.js";
|
|
34
34
|
import { stepTimeoutProblem } from "./activity-profiles.js";
|
|
35
|
+
import { knownOutputsOf } from "./activity-failure.js";
|
|
35
36
|
import { describeGateMismatch, evaluateGate, gateIsSealed, gitGateLedgerPort } from "./gate.js";
|
|
36
37
|
import { resolveWorkspaceRun } from "./workspace-run-env.js";
|
|
37
38
|
import { gateName } from "./gate-name.js";
|
|
@@ -330,13 +331,7 @@ async function runStep(step, phaseName, activities, profiles, resultsById, signa
|
|
|
330
331
|
if (step.id)
|
|
331
332
|
resultsById.set(step.id, result);
|
|
332
333
|
const record = { ...base, status: "ok", durationMs: Date.now() - start };
|
|
333
|
-
|
|
334
|
-
// An attribute whose path the result does not hold is left off, rather than recorded as undefined.
|
|
335
|
-
const outcomes = attrs.map((a) => ({ name: a.name, value: resolvePath(result, a.from) })).filter((o) => o.value !== undefined);
|
|
336
|
-
if (outcomes.length > 0) {
|
|
337
|
-
record.outcomes = outcomes;
|
|
338
|
-
record.outcome = outcomes[0];
|
|
339
|
-
}
|
|
334
|
+
captureOutcomes(step, record, result);
|
|
340
335
|
return { record, result };
|
|
341
336
|
}
|
|
342
337
|
catch (err) {
|
|
@@ -363,7 +358,26 @@ async function runStep(step, phaseName, activities, profiles, resultsById, signa
|
|
|
363
358
|
break;
|
|
364
359
|
}
|
|
365
360
|
}
|
|
366
|
-
|
|
361
|
+
const failed = { ...base, status: "fail", durationMs: Date.now() - start, error: errMessage(lastErr) };
|
|
362
|
+
// #4512: a failed step still records the outcomes its activity knew before it
|
|
363
|
+
// failed, read off the last attempt's error, as terraformInit's root path.
|
|
364
|
+
const known = knownOutputsOf(lastErr);
|
|
365
|
+
if (known)
|
|
366
|
+
captureOutcomes(step, failed, known);
|
|
367
|
+
return { record: failed };
|
|
368
|
+
}
|
|
369
|
+
}
|
|
370
|
+
/**
|
|
371
|
+
* Set `record`'s outcomes from the step's `outcomeAttribute` paths over
|
|
372
|
+
* `source`: the activity's result, or for a failed step the outputs it knew
|
|
373
|
+
* before it failed (#4512). An attribute whose path `source` does not hold is
|
|
374
|
+
* left off, rather than recorded as undefined.
|
|
375
|
+
*/
|
|
376
|
+
function captureOutcomes(step, record, source) {
|
|
377
|
+
const outcomes = outcomeAttributesOf(step).map((a) => ({ name: a.name, value: resolvePath(source, a.from) })).filter((o) => o.value !== undefined);
|
|
378
|
+
if (outcomes.length > 0) {
|
|
379
|
+
record.outcomes = outcomes;
|
|
380
|
+
record.outcome = outcomes[0];
|
|
367
381
|
}
|
|
368
382
|
}
|
|
369
383
|
// ── Effect steps (#1834) ──────────────────────────────────────────────────────
|
package/dist/pr-loop.d.ts
CHANGED
|
@@ -75,6 +75,12 @@ export declare const PR_REPORT_POLICY_FLOOR = "0.124.41";
|
|
|
75
75
|
export declare const PR_REPORT_BEFORE_MERGE_FLOOR = "0.124.42";
|
|
76
76
|
/** The first chant whose plan report can carry `migrations` (#4407). */
|
|
77
77
|
export declare const PR_REPORT_MIGRATIONS_FLOOR = "0.124.49";
|
|
78
|
+
/** The first chant whose report can carry a member's `reads`, known at plan or not. */
|
|
79
|
+
export declare const PR_REPORT_READS_FLOOR = "0.124.52";
|
|
80
|
+
/** The first chant whose report can carry the `not-started` member status (ws-107, #4440). */
|
|
81
|
+
export declare const PR_REPORT_NOT_STARTED_FLOOR = "0.124.54";
|
|
82
|
+
/** The first chant whose report can carry `groups`, `fallbacks`, and a member's `group` and `groupOutcome` (ws-107, #4446). */
|
|
83
|
+
export declare const PR_REPORT_GROUPS_FLOOR = "0.124.54";
|
|
78
84
|
/** The gate a pull request's apply waits on, unless the pipeline names another. */
|
|
79
85
|
export declare const PR_APPLY_GATE = "pr-apply";
|
|
80
86
|
/**
|
|
@@ -127,7 +133,54 @@ export type PrMemberStatus =
|
|
|
127
133
|
* that applied as another value, or was known only after apply. It waits
|
|
128
134
|
* on an approval of the plan the apply made for it afterwards (`rounds`).
|
|
129
135
|
*/
|
|
130
|
-
| "waiting"
|
|
136
|
+
| "waiting"
|
|
137
|
+
/**
|
|
138
|
+
* Apply stage (ws-107, #4440): a member of a group whose apply stopped
|
|
139
|
+
* before its part began. Written by chant {@link PR_REPORT_NOT_STARTED_FLOOR}
|
|
140
|
+
* and newer.
|
|
141
|
+
*/
|
|
142
|
+
| "not-started";
|
|
143
|
+
/** One upstream a member reads outputs of (`PrMember.reads`). */
|
|
144
|
+
export interface PrMemberRead {
|
|
145
|
+
/** The component (or stack) whose outputs it reads. */
|
|
146
|
+
upstream: string;
|
|
147
|
+
/** The output names it reads, sorted. `publish.<field>` for a published artifact. */
|
|
148
|
+
outputs: string[];
|
|
149
|
+
/** The ones its plan had no value for, sorted: known only after the upstream applies. Absent when every one was known. */
|
|
150
|
+
unknown?: string[];
|
|
151
|
+
}
|
|
152
|
+
/** How a member's part of a group apply ended, as its capability said (ws-107): `PrMember.groupOutcome`. */
|
|
153
|
+
export type PrGroupOutcome = "applied" | "partial" | "failed" | "not-started" | "no-changes";
|
|
154
|
+
/** Components one capability planned and applied as one (ws-107, #4446): the report's `groups`. */
|
|
155
|
+
export interface PrGroup {
|
|
156
|
+
/** The kind of the capability every member's one step names. */
|
|
157
|
+
capability: string;
|
|
158
|
+
/** The members, by component, in apply order: upstreams first. */
|
|
159
|
+
components: string[];
|
|
160
|
+
/** The 1-based wave of `selection.waves` it ran in. */
|
|
161
|
+
wave: number;
|
|
162
|
+
/** The group digest folded into each member's `planDigest`. `null` when the group failed to plan. */
|
|
163
|
+
digest: string | null;
|
|
164
|
+
/** Why the group failed to plan. Every member is then `plan-failed`. */
|
|
165
|
+
error?: string;
|
|
166
|
+
/** Each read of another member its plan did not know, which the group's apply computes, sorted. Absent when none. */
|
|
167
|
+
reads?: Array<{
|
|
168
|
+
component: string;
|
|
169
|
+
ref: string;
|
|
170
|
+
}>;
|
|
171
|
+
}
|
|
172
|
+
/**
|
|
173
|
+
* A component that could have joined a group and did not (ws-107, ruling 1,
|
|
174
|
+
* #4446): the report's `fallbacks`. `kind` is core's `steps`, `split` or
|
|
175
|
+
* `cycle`, or the capability's own; `off` means the capability's setting
|
|
176
|
+
* turns grouping off, and the note does not print it.
|
|
177
|
+
*/
|
|
178
|
+
export interface PrGroupFallback {
|
|
179
|
+
component: string;
|
|
180
|
+
capability: string;
|
|
181
|
+
kind: string;
|
|
182
|
+
reason: string;
|
|
183
|
+
}
|
|
131
184
|
export interface PrMember {
|
|
132
185
|
/** The member's name in the change set: a root, for a terraform-family step. */
|
|
133
186
|
member: string;
|
|
@@ -148,8 +201,10 @@ export interface PrMember {
|
|
|
148
201
|
/**
|
|
149
202
|
* The upstream outputs its plan read that the change's plans could not
|
|
150
203
|
* say (#3999), as `<component>.<output>`, sorted: known only after that
|
|
151
|
-
* upstream applies. The
|
|
152
|
-
*
|
|
204
|
+
* upstream applies. The apply plans the member again once they are known;
|
|
205
|
+
* the first approval covers that round when it does only what the preview
|
|
206
|
+
* showed with only these inputs filled in, and anything else waits for an
|
|
207
|
+
* approval of its own (`PrRound.covered`, `PrRound.notCovered`).
|
|
153
208
|
*/
|
|
154
209
|
unknownInputs?: string[];
|
|
155
210
|
/**
|
|
@@ -160,12 +215,25 @@ export interface PrMember {
|
|
|
160
215
|
* applies without a later round.
|
|
161
216
|
*/
|
|
162
217
|
buildInputs?: string[];
|
|
218
|
+
/**
|
|
219
|
+
* Every other component's output its steps read, one entry per upstream,
|
|
220
|
+
* by upstream: the output names, sorted, and under `unknown` the ones its
|
|
221
|
+
* plan had no value for. A read whose value the plan knew is here too, so
|
|
222
|
+
* a reader of the report sees each read between components from the plan
|
|
223
|
+
* on, not only the ones `unknownInputs` names. Added within contract 1 by
|
|
224
|
+
* chant {@link PR_REPORT_READS_FLOOR}.
|
|
225
|
+
*/
|
|
226
|
+
reads?: PrMemberRead[];
|
|
163
227
|
/** Apply stage (#3999): the round whose plan it applied or waits on, when not the first. */
|
|
164
228
|
round?: number;
|
|
165
229
|
/** Apply stage (#3999): why the first round's plan did not apply. */
|
|
166
230
|
held?: string;
|
|
167
231
|
/** A blocked member's (#4291): the component whose failure held it, past any component blocked in between. */
|
|
168
232
|
blockedBy?: string;
|
|
233
|
+
/** The index in the report's `groups` of the group it planned and applied with (#4446). Added within contract 1 by chant {@link PR_REPORT_GROUPS_FLOOR}. */
|
|
234
|
+
group?: number;
|
|
235
|
+
/** Apply stage (#4446): how its part of the group's apply ended. Absent when the group did not run. */
|
|
236
|
+
groupOutcome?: PrGroupOutcome;
|
|
169
237
|
}
|
|
170
238
|
/** A round of plans an apply made after an upstream applied (#3999), the report's `rounds`. */
|
|
171
239
|
export interface PrRound {
|
|
@@ -182,6 +250,18 @@ export interface PrRound {
|
|
|
182
250
|
status: "applied" | "failed" | "waiting" | "plan-failed";
|
|
183
251
|
/** With `waiting`: why an approval that stands does not count (`--require-review`). */
|
|
184
252
|
message?: string;
|
|
253
|
+
/**
|
|
254
|
+
* The first approval covered this round's plan (#4419): no gate of its own was
|
|
255
|
+
* decided. `digest` is the first approval's, which the coverage is bound
|
|
256
|
+
* to; `filledInputs` are the inputs it previewed as unknown and this plan
|
|
257
|
+
* had a value for, as `<component>.<output>`.
|
|
258
|
+
*/
|
|
259
|
+
covered?: {
|
|
260
|
+
digest: string;
|
|
261
|
+
filledInputs: string[];
|
|
262
|
+
};
|
|
263
|
+
/** Why the first approval did not cover this round, so it asked for its own (#4419). */
|
|
264
|
+
notCovered?: string;
|
|
185
265
|
/** The change-set document the round planned. */
|
|
186
266
|
changeSet: ChangeSetDocument;
|
|
187
267
|
}
|
|
@@ -423,6 +503,15 @@ export interface PrReport {
|
|
|
423
503
|
* {@link PR_REPORT_MIGRATIONS_FLOOR}.
|
|
424
504
|
*/
|
|
425
505
|
migrations?: PrMigrationFile[];
|
|
506
|
+
/**
|
|
507
|
+
* The groups a capability planned and applied as one (ws-107, #4446), in
|
|
508
|
+
* plan order of their first member. On a resume, what is left of a group,
|
|
509
|
+
* grouped again. Absent when none formed. Added within contract 1 by chant
|
|
510
|
+
* {@link PR_REPORT_GROUPS_FLOOR}.
|
|
511
|
+
*/
|
|
512
|
+
groups?: PrGroup[];
|
|
513
|
+
/** The components that could have grouped and did not, with why (#4446), sorted. Absent when none. Since {@link PR_REPORT_GROUPS_FLOOR}. */
|
|
514
|
+
fallbacks?: PrGroupFallback[];
|
|
426
515
|
/** Component names: which changed, which run because they depend on one, and what the change touched that no component deploys. */
|
|
427
516
|
selection: {
|
|
428
517
|
changed: string[];
|
package/dist/pr-loop.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pr-loop.d.ts","sourceRoot":"","sources":["../src/pr-loop.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+CG;AAEH,OAAO,KAAK,EAAmB,iBAAiB,EAAE,MAAM,cAAc,CAAC;AACvE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO,EAAwB,KAAK,eAAe,EAAE,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"pr-loop.d.ts","sour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AACrG,wBAAgB,aAAa,CAAC,MAAM,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CASjF"}
|
package/dist/pr-loop.js
CHANGED
|
@@ -48,6 +48,7 @@
|
|
|
48
48
|
*/
|
|
49
49
|
import { renderMigrationLines } from "./pr-migrations.js";
|
|
50
50
|
import { GITHUB_COMMENT_LIMIT, groupChangeSet, renderPlanSummaryMarkdown } from "./plan-summary.js";
|
|
51
|
+
import { NEXT_RELEASE } from "./release-floors.js";
|
|
51
52
|
/** The schema a pull-request report names in `$schema`. */
|
|
52
53
|
export const PR_REPORT_SCHEMA_ID = "https://intentius.io/chant/schemas/workspace/pr-report/v1/pr-report.schema.json";
|
|
53
54
|
/** The read-contract version the report follows. */
|
|
@@ -74,6 +75,12 @@ export const PR_REPORT_POLICY_FLOOR = "0.124.41";
|
|
|
74
75
|
export const PR_REPORT_BEFORE_MERGE_FLOOR = "0.124.42";
|
|
75
76
|
/** The first chant whose plan report can carry `migrations` (#4407). */
|
|
76
77
|
export const PR_REPORT_MIGRATIONS_FLOOR = "0.124.49";
|
|
78
|
+
/** The first chant whose report can carry a member's `reads`, known at plan or not. */
|
|
79
|
+
export const PR_REPORT_READS_FLOOR = "0.124.52";
|
|
80
|
+
/** The first chant whose report can carry the `not-started` member status (ws-107, #4440). */
|
|
81
|
+
export const PR_REPORT_NOT_STARTED_FLOOR = NEXT_RELEASE;
|
|
82
|
+
/** The first chant whose report can carry `groups`, `fallbacks`, and a member's `group` and `groupOutcome` (ws-107, #4446). */
|
|
83
|
+
export const PR_REPORT_GROUPS_FLOOR = NEXT_RELEASE;
|
|
77
84
|
/** The gate a pull request's apply waits on, unless the pipeline names another. */
|
|
78
85
|
export const PR_APPLY_GATE = "pr-apply";
|
|
79
86
|
/**
|
|
@@ -142,6 +149,7 @@ const STATUS_WORDS = {
|
|
|
142
149
|
failed: "apply failed",
|
|
143
150
|
blocked: "blocked",
|
|
144
151
|
waiting: "waiting on its new plan",
|
|
152
|
+
"not-started": "not started",
|
|
145
153
|
};
|
|
146
154
|
function headline(report) {
|
|
147
155
|
const n = report.members.length;
|
|
@@ -161,7 +169,8 @@ function headline(report) {
|
|
|
161
169
|
return `Applied ${members}.`;
|
|
162
170
|
case "failed": {
|
|
163
171
|
const blocked = report.members.filter((m) => m.status === "blocked").length;
|
|
164
|
-
|
|
172
|
+
const notStarted = report.members.filter((m) => m.status === "not-started").length;
|
|
173
|
+
return `The apply failed: ${report.members.filter((m) => m.status === "failed").length} failed, ${blocked > 0 ? `${blocked} blocked, ` : ""}${notStarted > 0 ? `${notStarted} not started, ` : ""}${report.members.filter((m) => m.status === "applied").length} applied.`;
|
|
165
174
|
}
|
|
166
175
|
case "wave-applied": {
|
|
167
176
|
const applied = (report.waves ?? []).filter((w) => w.status === "applied").map((w) => w.wave);
|
|
@@ -196,6 +205,44 @@ function blockedLine(members) {
|
|
|
196
205
|
.map(([by, names]) => `${[...names].sort().map(code).join(", ")} (blocked by ${by === "a dependency" ? by : code(by)})`);
|
|
197
206
|
return `Blocked, so not applied: ${groups.join("; ")}. A failure blocks only the members that depend on it, so the rest went on.`;
|
|
198
207
|
}
|
|
208
|
+
/** `a`, `b` and `c`. */
|
|
209
|
+
const listed = (items) => (items.length > 1 ? `${items.slice(0, -1).join(", ")} and ${items.at(-1)}` : (items[0] ?? ""));
|
|
210
|
+
const GROUP_OUTCOME_WORDS = {
|
|
211
|
+
applied: "applied and stays applied",
|
|
212
|
+
"no-changes": "had no changes",
|
|
213
|
+
partial: "applied in part, and what applied stays",
|
|
214
|
+
failed: "failed",
|
|
215
|
+
"not-started": "did not start",
|
|
216
|
+
};
|
|
217
|
+
/**
|
|
218
|
+
* The groups and fallbacks (#4446): a line per group naming its members and
|
|
219
|
+
* the reads its apply computes, how a group that stopped part way left each
|
|
220
|
+
* member, and why the components that could have grouped did not.
|
|
221
|
+
*/
|
|
222
|
+
function groupLines(report) {
|
|
223
|
+
const out = [];
|
|
224
|
+
for (const g of report.groups ?? []) {
|
|
225
|
+
const reads = (g.reads ?? []).map((r) => `${code(r.component)} reads ${code(r.ref)}`);
|
|
226
|
+
out.push("", `${listed(g.components.map(code))} plan and apply as one (${code(g.capability)}, wave ${g.wave})` +
|
|
227
|
+
(g.error ? `; the group failed to plan, so nothing applies: ${g.error}.` : reads.length > 0 ? `; ${listed(reads)}, known when the group applies.` : "."));
|
|
228
|
+
const outcome = new Map(report.members.filter((m) => m.groupOutcome && g.components.includes(m.component)).map((m) => [m.component, m.groupOutcome]));
|
|
229
|
+
const left = g.components.filter((c) => outcome.has(c) && outcome.get(c) !== "applied" && outcome.get(c) !== "no-changes");
|
|
230
|
+
if (left.length === 0)
|
|
231
|
+
continue;
|
|
232
|
+
out.push("", `The group's apply stopped part way: ${g.components.filter((c) => outcome.has(c)).map((c) => `${code(c)} ${GROUP_OUTCOME_WORDS[outcome.get(c)]}`).join("; ")}. ` +
|
|
233
|
+
`Nothing that applied is undone. \`pr-apply --resume\` plans ${listed(left.map(code))} again, as one group where they still join, and applies them under this approval when the new plans are covered.`);
|
|
234
|
+
}
|
|
235
|
+
const byWhy = new Map();
|
|
236
|
+
for (const f of report.fallbacks ?? []) {
|
|
237
|
+
if (f.kind === "off")
|
|
238
|
+
continue;
|
|
239
|
+
const why = `(${code(f.kind)}): ${f.reason}`;
|
|
240
|
+
byWhy.set(why, [...(byWhy.get(why) ?? []), code(f.component)]);
|
|
241
|
+
}
|
|
242
|
+
if (byWhy.size > 0)
|
|
243
|
+
out.push("", `Planned one by one, not as a group: ${[...byWhy].map(([why, names]) => `${names.join(", ")} ${why}`).join("; ")}.`);
|
|
244
|
+
return out;
|
|
245
|
+
}
|
|
199
246
|
/** The policy's lines in the note (#4294): what denied or held the plan, and how a denial is overridden. */
|
|
200
247
|
function policyLines(report) {
|
|
201
248
|
const p = report.policy;
|
|
@@ -286,9 +333,13 @@ export function renderPrNote(report, options = {}) {
|
|
|
286
333
|
out.push("", "| Member | Component | Status | Create | Update | Replace | Delete |", "|---|---|---|---:|---:|---:|---:|");
|
|
287
334
|
for (const m of report.members) {
|
|
288
335
|
const holes = memberHoleReasons(report, m.member);
|
|
336
|
+
// #4463: a member planned with stand-in values says so, naming them.
|
|
337
|
+
const placeholders = report.changeSet.members.find((x) => x.member === m.member)?.placeholders ?? [];
|
|
289
338
|
const status = STATUS_WORDS[m.status] +
|
|
290
339
|
(m.status === "blocked" && m.blockedBy ? ` by ${code(m.blockedBy)}` : "") +
|
|
340
|
+
(m.groupOutcome === "partial" ? ", applied in part" : m.groupOutcome === "no-changes" ? ", no changes" : "") +
|
|
291
341
|
(m.inputsMoved?.length ? `, inputs from ${m.inputsMoved.join(", ")} moved` : "") +
|
|
342
|
+
(placeholders.length > 0 ? `, previewed with placeholders for ${placeholders.map(code).join(", ")}` : "") +
|
|
292
343
|
(holes.length > 0 ? `; ${holes.length > 2 ? `${holes[0]}; and ${holes.length - 1} more, listed under Holes` : holes.join("; ")}` : "");
|
|
293
344
|
// A member whose plan has holes and no entries says nothing about what
|
|
294
345
|
// it changes, so its counts are unknown, not zero (#4084).
|
|
@@ -303,6 +354,7 @@ export function renderPrNote(report, options = {}) {
|
|
|
303
354
|
const blocked = blockedLine(report.members);
|
|
304
355
|
if (blocked)
|
|
305
356
|
out.push("", blocked);
|
|
357
|
+
out.push(...groupLines(report));
|
|
306
358
|
out.push(...waveLines(report, options.approver ?? "<you>"));
|
|
307
359
|
// #4288: the hooks that did not pass, by name; a passed hook is a count.
|
|
308
360
|
const hooks = report.hooks ?? [];
|
|
@@ -328,8 +380,8 @@ export function renderPrNote(report, options = {}) {
|
|
|
328
380
|
}
|
|
329
381
|
const unknown = [...new Set(report.members.flatMap((m) => (m.unknownInputs ?? []).map((ref) => `${code(m.component)} reads ${code(ref)}`)))];
|
|
330
382
|
if (unknown.length > 0) {
|
|
331
|
-
out.push("", `Known only after apply: ${unknown.join("; ")}.
|
|
332
|
-
"The apply plans
|
|
383
|
+
out.push("", `Known only after apply: ${unknown.join("; ")}. ` +
|
|
384
|
+
"The apply plans those members again once their upstream applied. When that plan does only what this one shows, with only those inputs filled in, this approval covers it; anything else asks for an approval of its own.");
|
|
333
385
|
}
|
|
334
386
|
const fromBuild = [...new Set(report.members.flatMap((m) => (m.buildInputs ?? []).map((ref) => `${code(m.component)} reads ${code(ref)}`)))];
|
|
335
387
|
if (fromBuild.length > 0) {
|
|
@@ -338,6 +390,13 @@ export function renderPrNote(report, options = {}) {
|
|
|
338
390
|
}
|
|
339
391
|
for (const r of report.rounds ?? []) {
|
|
340
392
|
const what = `Round ${r.round} planned ${r.components.map(code).join(", ")} again after their upstream applied, digest ${code(r.digest)}`;
|
|
393
|
+
if (r.covered) {
|
|
394
|
+
const filled = r.covered.filledInputs.length > 0 ? `, with ${r.covered.filledInputs.map(code).join(", ")} filled in` : "";
|
|
395
|
+
out.push("", `${what}: covered by the approval of ${code(r.covered.digest)}${filled}, so it ${r.status === "applied" ? "applied" : "did not apply"} without a new approval${r.status === "failed" ? " (the apply failed)" : ""}.`);
|
|
396
|
+
continue;
|
|
397
|
+
}
|
|
398
|
+
if (r.notCovered)
|
|
399
|
+
out.push("", `Round ${r.round}'s plan is not covered by the approval of ${code(report.digest)}: ${r.notCovered}.`);
|
|
341
400
|
if (r.status === "waiting") {
|
|
342
401
|
if (r.message)
|
|
343
402
|
out.push("", `> ${r.message}`);
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pulumi URN to graph node (#4456): the one rule every Pulumi reader uses.
|
|
3
|
+
*
|
|
4
|
+
* A Pulumi resource is named by its URN,
|
|
5
|
+
* `urn:pulumi:<stack>::<project>::<qualified type>::<name>`, where the
|
|
6
|
+
* qualified type is the parent type chain joined with `$` and the resource's
|
|
7
|
+
* own type last (`my:mod:Web$aws:lambda/function:Function`). The stack export
|
|
8
|
+
* the pulumi member kind renders, the steps of `pulumi preview --json` (the
|
|
9
|
+
* change set) and of `pulumi refresh --preview-only --json` (drift records)
|
|
10
|
+
* all carry that URN, and nothing else they all carry names the resource. So
|
|
11
|
+
* the node is a function of the URN alone:
|
|
12
|
+
*
|
|
13
|
+
* - The node key is the URN after its stack and project,
|
|
14
|
+
* `<qualified type>::<name>`: `aws:s3/bucket:Bucket::assets`,
|
|
15
|
+
* `my:mod:Web$aws:lambda/function:Function::handler`. Two stacks of one
|
|
16
|
+
* program give the same keys, and a key never changes with the stack or
|
|
17
|
+
* project name.
|
|
18
|
+
* - Inside a workspace the node id is `<member>/<key>`, as the terraform
|
|
19
|
+
* lexicon names a block `<root>/<block key>`.
|
|
20
|
+
* - Provider resources (`pulumi:providers:*`, at any depth) and the root
|
|
21
|
+
* `pulumi:pulumi:Stack` have no node: {@link pulumiNodeKey} is null, and a
|
|
22
|
+
* change-set entry or drift record for one gets `node: null`.
|
|
23
|
+
*
|
|
24
|
+
* A child sits under its component through the `parent` edge the export
|
|
25
|
+
* gives, not through its id. A component's name is not part of its
|
|
26
|
+
* children's URNs, and a preview narrowed with `--target`, or a delete step,
|
|
27
|
+
* need not carry the chain of parents, so an id built from parent names
|
|
28
|
+
* could differ between the export and a change set for the same resource.
|
|
29
|
+
* The parent's type is part of the key, through the qualified type.
|
|
30
|
+
*
|
|
31
|
+
* Like `./change-set.ts`, this imports nothing at run time, so the change-set
|
|
32
|
+
* and drift-record bundles can carry it. The pulumi lexicon imports it as
|
|
33
|
+
* `@intentius/chant/pulumi-urn`.
|
|
34
|
+
*/
|
|
35
|
+
/** A URN split into its parts. */
|
|
36
|
+
export interface PulumiUrn {
|
|
37
|
+
stack: string;
|
|
38
|
+
project: string;
|
|
39
|
+
/** The parent type chain and the resource's own type, joined with `$`. */
|
|
40
|
+
qualifiedType: string;
|
|
41
|
+
/** The resource's own type, the last of the chain. */
|
|
42
|
+
type: string;
|
|
43
|
+
/** The parent types, outermost first; empty for a resource whose parent is the stack. */
|
|
44
|
+
parentTypes: string[];
|
|
45
|
+
/** The resource's name; it may itself hold `::`. */
|
|
46
|
+
name: string;
|
|
47
|
+
}
|
|
48
|
+
/** The type of the root resource every stack has. */
|
|
49
|
+
export declare const PULUMI_STACK_TYPE = "pulumi:pulumi:Stack";
|
|
50
|
+
/** The parts of a Pulumi URN, or undefined when `urn` is not one. */
|
|
51
|
+
export declare function parsePulumiUrn(urn: string): PulumiUrn | undefined;
|
|
52
|
+
/** True for a resource that never gets a node: a provider or the root stack. */
|
|
53
|
+
export declare function isPulumiNodeless(type: string): boolean;
|
|
54
|
+
/**
|
|
55
|
+
* The node key of a URN in its member's graph, `<qualified type>::<name>`.
|
|
56
|
+
* Null for a provider resource or the root stack. A string that is not a
|
|
57
|
+
* Pulumi URN is its own key, so a reader that holds something else still
|
|
58
|
+
* gets a stable id.
|
|
59
|
+
*/
|
|
60
|
+
export declare function pulumiNodeKey(urn: string): string | null;
|
|
61
|
+
/** The node id of a URN inside a workspace, `<member>/<key>`, or null when it has no node. */
|
|
62
|
+
export declare function pulumiNodeId(member: string, urn: string): string | null;
|
|
63
|
+
/**
|
|
64
|
+
* The address of a change-set entry that stands for the resources a
|
|
65
|
+
* component may register inside an `apply()` that preview could not run
|
|
66
|
+
* (#4453): the component's URN with `$*` after its qualified type and `/*`
|
|
67
|
+
* after its name, `urn:pulumi:dev::site::my:web:Site$*::site/*`. It reads as
|
|
68
|
+
* any resource, of any type and name, whose parent chain is the component,
|
|
69
|
+
* and stays unique per component, since a component's URN is.
|
|
70
|
+
*/
|
|
71
|
+
export declare function pulumiMayAppearAddress(componentUrn: string): string;
|
|
72
|
+
/** The component URN a {@link pulumiMayAppearAddress} was made from, or undefined for any other address. */
|
|
73
|
+
export declare function pulumiMayAppearParent(address: string): string | undefined;
|
|
74
|
+
/**
|
|
75
|
+
* The ids, in the order tried, that a Pulumi change-set entry or drift
|
|
76
|
+
* record can have in its member's graph IR, in the shape of
|
|
77
|
+
* `changeSetNodeCandidates` (`./change-set-graph.ts`): `<member>/<key>`.
|
|
78
|
+
* Empty for a provider or the root stack, so mapping leaves `node: null`.
|
|
79
|
+
* A may-appear entry ({@link pulumiMayAppearAddress}) is on its component's
|
|
80
|
+
* node, since nothing names the resources it stands for.
|
|
81
|
+
*/
|
|
82
|
+
export declare function pulumiNodeCandidates(entry: {
|
|
83
|
+
member: string;
|
|
84
|
+
address: string;
|
|
85
|
+
}): string[];
|
|
86
|
+
/** One step of `pulumi preview --json` (or `refresh --preview-only --json`), as far as the node rule reads it. */
|
|
87
|
+
export interface PulumiPreviewStep {
|
|
88
|
+
op?: string;
|
|
89
|
+
urn?: string;
|
|
90
|
+
}
|
|
91
|
+
/**
|
|
92
|
+
* The URN and node id of each step of a `pulumi preview --json` document
|
|
93
|
+
* (`{ steps: [...] }`). A replace shows as several steps on one URN; each
|
|
94
|
+
* gets the same node. Steps with no URN are skipped.
|
|
95
|
+
*/
|
|
96
|
+
export declare function pulumiPreviewNodes(preview: unknown, member: string): {
|
|
97
|
+
urn: string;
|
|
98
|
+
op: string;
|
|
99
|
+
node: string | null;
|
|
100
|
+
}[];
|
|
101
|
+
//# sourceMappingURL=pulumi-urn.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pulumi-urn.d.ts","sourceRoot":"","sources":["../src/pulumi-urn.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,kCAAkC;AAClC,MAAM,WAAW,SAAS;IACxB,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,0EAA0E;IAC1E,aAAa,EAAE,MAAM,CAAC;IACtB,sDAAsD;IACtD,IAAI,EAAE,MAAM,CAAC;IACb,yFAAyF;IACzF,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,oDAAoD;IACpD,IAAI,EAAE,MAAM,CAAC;CACd;AAID,qDAAqD;AACrD,eAAO,MAAM,iBAAiB,wBAAwB,CAAC;AAEvD,qEAAqE;AACrE,wBAAgB,cAAc,CAAC,GAAG,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,CASjE;AAED,gFAAgF;AAChF,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAEtD;AAED;;;;;GAKG;AACH,wBAAgB,aAAa,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAKxD;AAED,8FAA8F;AAC9F,wBAAgB,YAAY,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,IAAI,CAGvE;AAKD;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM,CAInE;AAED,4GAA4G;AAC5G,wBAAgB,qBAAqB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAOzE;AAED;;;;;;;GAOG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE;IAAE,MAAM,EAAE,MAAM,CAAC;IAAC,OAAO,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,EAAE,CAGzF;AAED,kHAAkH;AAClH,MAAM,WAAW,iBAAiB;IAChC,EAAE,CAAC,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE,MAAM,CAAC;CACd;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,GAAG,IAAI,CAAA;CAAE,EAAE,CASvH"}
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Pulumi URN to graph node (#4456): the one rule every Pulumi reader uses.
|
|
3
|
+
*
|
|
4
|
+
* A Pulumi resource is named by its URN,
|
|
5
|
+
* `urn:pulumi:<stack>::<project>::<qualified type>::<name>`, where the
|
|
6
|
+
* qualified type is the parent type chain joined with `$` and the resource's
|
|
7
|
+
* own type last (`my:mod:Web$aws:lambda/function:Function`). The stack export
|
|
8
|
+
* the pulumi member kind renders, the steps of `pulumi preview --json` (the
|
|
9
|
+
* change set) and of `pulumi refresh --preview-only --json` (drift records)
|
|
10
|
+
* all carry that URN, and nothing else they all carry names the resource. So
|
|
11
|
+
* the node is a function of the URN alone:
|
|
12
|
+
*
|
|
13
|
+
* - The node key is the URN after its stack and project,
|
|
14
|
+
* `<qualified type>::<name>`: `aws:s3/bucket:Bucket::assets`,
|
|
15
|
+
* `my:mod:Web$aws:lambda/function:Function::handler`. Two stacks of one
|
|
16
|
+
* program give the same keys, and a key never changes with the stack or
|
|
17
|
+
* project name.
|
|
18
|
+
* - Inside a workspace the node id is `<member>/<key>`, as the terraform
|
|
19
|
+
* lexicon names a block `<root>/<block key>`.
|
|
20
|
+
* - Provider resources (`pulumi:providers:*`, at any depth) and the root
|
|
21
|
+
* `pulumi:pulumi:Stack` have no node: {@link pulumiNodeKey} is null, and a
|
|
22
|
+
* change-set entry or drift record for one gets `node: null`.
|
|
23
|
+
*
|
|
24
|
+
* A child sits under its component through the `parent` edge the export
|
|
25
|
+
* gives, not through its id. A component's name is not part of its
|
|
26
|
+
* children's URNs, and a preview narrowed with `--target`, or a delete step,
|
|
27
|
+
* need not carry the chain of parents, so an id built from parent names
|
|
28
|
+
* could differ between the export and a change set for the same resource.
|
|
29
|
+
* The parent's type is part of the key, through the qualified type.
|
|
30
|
+
*
|
|
31
|
+
* Like `./change-set.ts`, this imports nothing at run time, so the change-set
|
|
32
|
+
* and drift-record bundles can carry it. The pulumi lexicon imports it as
|
|
33
|
+
* `@intentius/chant/pulumi-urn`.
|
|
34
|
+
*/
|
|
35
|
+
const PREFIX = "urn:pulumi:";
|
|
36
|
+
const PROVIDER_TYPE = /^pulumi:providers:/;
|
|
37
|
+
/** The type of the root resource every stack has. */
|
|
38
|
+
export const PULUMI_STACK_TYPE = "pulumi:pulumi:Stack";
|
|
39
|
+
/** The parts of a Pulumi URN, or undefined when `urn` is not one. */
|
|
40
|
+
export function parsePulumiUrn(urn) {
|
|
41
|
+
if (!urn.startsWith(PREFIX))
|
|
42
|
+
return undefined;
|
|
43
|
+
const parts = urn.slice(PREFIX.length).split("::");
|
|
44
|
+
if (parts.length < 4)
|
|
45
|
+
return undefined;
|
|
46
|
+
const [stack, project, qualifiedType] = parts;
|
|
47
|
+
const name = parts.slice(3).join("::");
|
|
48
|
+
if (!stack || !project || !qualifiedType || !name)
|
|
49
|
+
return undefined;
|
|
50
|
+
const chain = qualifiedType.split("$");
|
|
51
|
+
return { stack, project, qualifiedType, type: chain[chain.length - 1], parentTypes: chain.slice(0, -1), name };
|
|
52
|
+
}
|
|
53
|
+
/** True for a resource that never gets a node: a provider or the root stack. */
|
|
54
|
+
export function isPulumiNodeless(type) {
|
|
55
|
+
return PROVIDER_TYPE.test(type) || type === PULUMI_STACK_TYPE;
|
|
56
|
+
}
|
|
57
|
+
/**
|
|
58
|
+
* The node key of a URN in its member's graph, `<qualified type>::<name>`.
|
|
59
|
+
* Null for a provider resource or the root stack. A string that is not a
|
|
60
|
+
* Pulumi URN is its own key, so a reader that holds something else still
|
|
61
|
+
* gets a stable id.
|
|
62
|
+
*/
|
|
63
|
+
export function pulumiNodeKey(urn) {
|
|
64
|
+
const parsed = parsePulumiUrn(urn);
|
|
65
|
+
if (!parsed)
|
|
66
|
+
return urn;
|
|
67
|
+
if (isPulumiNodeless(parsed.type))
|
|
68
|
+
return null;
|
|
69
|
+
return `${parsed.qualifiedType}::${parsed.name}`;
|
|
70
|
+
}
|
|
71
|
+
/** The node id of a URN inside a workspace, `<member>/<key>`, or null when it has no node. */
|
|
72
|
+
export function pulumiNodeId(member, urn) {
|
|
73
|
+
const key = pulumiNodeKey(urn);
|
|
74
|
+
return key === null ? null : `${member}/${key}`;
|
|
75
|
+
}
|
|
76
|
+
const MAY_APPEAR_TYPE = "$*";
|
|
77
|
+
const MAY_APPEAR_NAME = "/*";
|
|
78
|
+
/**
|
|
79
|
+
* The address of a change-set entry that stands for the resources a
|
|
80
|
+
* component may register inside an `apply()` that preview could not run
|
|
81
|
+
* (#4453): the component's URN with `$*` after its qualified type and `/*`
|
|
82
|
+
* after its name, `urn:pulumi:dev::site::my:web:Site$*::site/*`. It reads as
|
|
83
|
+
* any resource, of any type and name, whose parent chain is the component,
|
|
84
|
+
* and stays unique per component, since a component's URN is.
|
|
85
|
+
*/
|
|
86
|
+
export function pulumiMayAppearAddress(componentUrn) {
|
|
87
|
+
const parsed = parsePulumiUrn(componentUrn);
|
|
88
|
+
if (!parsed)
|
|
89
|
+
return `${componentUrn}${MAY_APPEAR_NAME}`;
|
|
90
|
+
return `${PREFIX}${parsed.stack}::${parsed.project}::${parsed.qualifiedType}${MAY_APPEAR_TYPE}::${parsed.name}${MAY_APPEAR_NAME}`;
|
|
91
|
+
}
|
|
92
|
+
/** The component URN a {@link pulumiMayAppearAddress} was made from, or undefined for any other address. */
|
|
93
|
+
export function pulumiMayAppearParent(address) {
|
|
94
|
+
const parsed = parsePulumiUrn(address);
|
|
95
|
+
if (!parsed || !parsed.qualifiedType.endsWith(MAY_APPEAR_TYPE) || !parsed.name.endsWith(MAY_APPEAR_NAME))
|
|
96
|
+
return undefined;
|
|
97
|
+
const qualifiedType = parsed.qualifiedType.slice(0, -MAY_APPEAR_TYPE.length);
|
|
98
|
+
const name = parsed.name.slice(0, -MAY_APPEAR_NAME.length);
|
|
99
|
+
if (!qualifiedType || !name)
|
|
100
|
+
return undefined;
|
|
101
|
+
return `${PREFIX}${parsed.stack}::${parsed.project}::${qualifiedType}::${name}`;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* The ids, in the order tried, that a Pulumi change-set entry or drift
|
|
105
|
+
* record can have in its member's graph IR, in the shape of
|
|
106
|
+
* `changeSetNodeCandidates` (`./change-set-graph.ts`): `<member>/<key>`.
|
|
107
|
+
* Empty for a provider or the root stack, so mapping leaves `node: null`.
|
|
108
|
+
* A may-appear entry ({@link pulumiMayAppearAddress}) is on its component's
|
|
109
|
+
* node, since nothing names the resources it stands for.
|
|
110
|
+
*/
|
|
111
|
+
export function pulumiNodeCandidates(entry) {
|
|
112
|
+
const id = pulumiNodeId(entry.member, pulumiMayAppearParent(entry.address) ?? entry.address);
|
|
113
|
+
return id === null ? [] : [id];
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* The URN and node id of each step of a `pulumi preview --json` document
|
|
117
|
+
* (`{ steps: [...] }`). A replace shows as several steps on one URN; each
|
|
118
|
+
* gets the same node. Steps with no URN are skipped.
|
|
119
|
+
*/
|
|
120
|
+
export function pulumiPreviewNodes(preview, member) {
|
|
121
|
+
const steps = preview?.steps;
|
|
122
|
+
if (!Array.isArray(steps))
|
|
123
|
+
return [];
|
|
124
|
+
const out = [];
|
|
125
|
+
for (const s of steps) {
|
|
126
|
+
if (typeof s?.urn !== "string")
|
|
127
|
+
continue;
|
|
128
|
+
out.push({ urn: s.urn, op: typeof s.op === "string" ? s.op : "", node: pulumiNodeId(member, s.urn) });
|
|
129
|
+
}
|
|
130
|
+
return out;
|
|
131
|
+
}
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The version of the next chant release (#4480, #4473).
|
|
3
|
+
*
|
|
4
|
+
* A contract floor added since the last release, the first chant that can
|
|
5
|
+
* write a field, names the release that ships it. That release has no number
|
|
6
|
+
* until the maintainer cuts it, so every such floor is this constant, and the
|
|
7
|
+
* schema and docs text that repeats a floor ("written by chant X and newer",
|
|
8
|
+
* the "Fields added within version 1" rows) is listed in
|
|
9
|
+
* scripts/release-floors.ts, which checks it agrees.
|
|
10
|
+
*
|
|
11
|
+
* To set the number: `npx tsx scripts/release-floors.ts --set <version>`
|
|
12
|
+
* rewrites this constant and every listed text. `just release` refuses to
|
|
13
|
+
* cut a version when any floor names a version that is neither a published
|
|
14
|
+
* release nor the one being cut.
|
|
15
|
+
*
|
|
16
|
+
* After the cut, a floor stays at the value it was released with. Once the
|
|
17
|
+
* release is published, `just release-floors --freeze <version>` writes the
|
|
18
|
+
* version into every floor that names this constant as a literal, and moves
|
|
19
|
+
* this constant to the next patch (#4501). The check fails while a floor
|
|
20
|
+
* still names this constant after its version shipped.
|
|
21
|
+
*/
|
|
22
|
+
export declare const NEXT_RELEASE = "0.124.54";
|
|
23
|
+
//# sourceMappingURL=release-floors.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release-floors.d.ts","sourceRoot":"","sources":["../src/release-floors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,YAAY,aAAa,CAAC"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The version of the next chant release (#4480, #4473).
|
|
3
|
+
*
|
|
4
|
+
* A contract floor added since the last release, the first chant that can
|
|
5
|
+
* write a field, names the release that ships it. That release has no number
|
|
6
|
+
* until the maintainer cuts it, so every such floor is this constant, and the
|
|
7
|
+
* schema and docs text that repeats a floor ("written by chant X and newer",
|
|
8
|
+
* the "Fields added within version 1" rows) is listed in
|
|
9
|
+
* scripts/release-floors.ts, which checks it agrees.
|
|
10
|
+
*
|
|
11
|
+
* To set the number: `npx tsx scripts/release-floors.ts --set <version>`
|
|
12
|
+
* rewrites this constant and every listed text. `just release` refuses to
|
|
13
|
+
* cut a version when any floor names a version that is neither a published
|
|
14
|
+
* release nor the one being cut.
|
|
15
|
+
*
|
|
16
|
+
* After the cut, a floor stays at the value it was released with. Once the
|
|
17
|
+
* release is published, `just release-floors --freeze <version>` writes the
|
|
18
|
+
* version into every floor that names this constant as a literal, and moves
|
|
19
|
+
* this constant to the next patch (#4501). The check fails while a floor
|
|
20
|
+
* still names this constant after its version shipped.
|
|
21
|
+
*/
|
|
22
|
+
export const NEXT_RELEASE = "0.124.54";
|