@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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"discover.d.ts","sourceRoot":"","sources":["../../src/audit/discover.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAOvD,mEAAmE;AACnE,eAAO,MAAM,cAAc,YAAI,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,QAAQ,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,UAAU,EAAE,WAAW,CAAU,CAAC;AAEhJ;;;;;;GAMG;AACH,wBAAsB,gBAAgB,CAAC,KAAK,GAAE,SAAS,MAAM,EAAmB,GAAG,OAAO,CAAC,aAAa,EAAE,CAAC,CAe1G;AAID;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,OAAO,CAAC;
|
|
1
|
+
{"version":3,"file":"discover.d.ts","sourceRoot":"","sources":["../../src/audit/discover.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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K,EAAE,QAAQ,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,aAAa,EAAE,CAehH;AAmKD,2FAA2F;AAC3F,MAAM,WAAW,eAAe;IAC9B;;;;;OAKG;IACH,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAAC,KAAK,EAAE,QAAQ,EAAE,EAAE,OAAO,EAAE,YAAY,EAAE,EAAE,IAAI,GAAE,eAAoB,GAAG,UAAU,EAAE,CAqClH;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,YAAY,EAAE,GAAG,UAAU,EAAE,CAEvF;AAED,kCAAkC;AAClC,MAAM,WAAW,oBAAoB;IACnC,6GAA6G;IAC7G,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,WAAW,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CACjC;AAED,yEAAyE;AACzE,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,QAAQ,EAAE,CAAC;IAClB,mCAAmC;IACnC,QAAQ,EAAE,MAAM,CAAC;IACjB,uEAAuE;IACvE,SAAS,EAAE,OAAO,CAAC;CACpB;AAED,4GAA4G;AAC5G,wBAAgB,iBAAiB,CAAC,IAAI,EAAE,MAAM,GAAG,QAAQ,EAAE,CAE1D;AAED;;;GAGG;AACH,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,GAAE,oBAAyB,GAAG,aAAa,CAuC3F"}
|
package/dist/audit/discover.js
CHANGED
|
@@ -145,7 +145,9 @@ function isDockerfileName(name) {
|
|
|
145
145
|
function isTerraformFileName(name) {
|
|
146
146
|
// `terragrunt.hcl` and `root.hcl` ride in the terraform bundle (#3417): the
|
|
147
147
|
// terraform lexicon reads them into Terragrunt entities, apart from modules.
|
|
148
|
-
|
|
148
|
+
// `.tf.json`, `.tofu` and `.tofu.json` are configuration too (chant#4457);
|
|
149
|
+
// which of them a root reads is the lexicon's call, by its binary.
|
|
150
|
+
return /\.(tf|tofu)(\.json)?$/i.test(name) || name === "terragrunt.hcl" || name === "root.hcl";
|
|
149
151
|
}
|
|
150
152
|
/**
|
|
151
153
|
* Filenames the secrets scan (#443) wants that no lexicon otherwise reads —
|
package/dist/behaviour.d.ts
CHANGED
|
@@ -356,7 +356,7 @@ export interface PredictedBehaviour {
|
|
|
356
356
|
* wrong place — as does folding either into `engine-unreachable`, which points
|
|
357
357
|
* at an address that is answering perfectly well.
|
|
358
358
|
*/
|
|
359
|
-
export type BehaviourUnpredictedReason = Exclude<UnobservedReason, "no-credentials"> | "no-engine" | "engine-unreachable" | "engine-out-of-credit" | "engine-over-quota" | "credential-in-request";
|
|
359
|
+
export type BehaviourUnpredictedReason = Exclude<UnobservedReason, "no-credentials" | "not-reached"> | "no-engine" | "engine-unreachable" | "engine-out-of-credit" | "engine-over-quota" | "credential-in-request";
|
|
360
360
|
/** Every legal {@link BehaviourUnpredictedReason}, for validation and conformance checks. */
|
|
361
361
|
export declare const BEHAVIOUR_UNPREDICTED_REASONS: readonly BehaviourUnpredictedReason[];
|
|
362
362
|
/** True when `value` is a legal {@link BehaviourUnpredictedReason}. */
|
package/dist/behaviour.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"behaviour.d.ts","sourceRoot":"","sources":["../src/behaviour.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgMG;AAEH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AACtD,OAAO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,IAAI,EAAE,cAAc,CAAC;IACrB,yEAAyE;IACzE,IAAI,EAAE,MAAM,CAAC;CACd;AAED;;;GAGG;AACH,wBAAgB,wBAAwB,CAAC,OAAO,EAAE,MAAM,GAAG,iBAAiB,EAAE,CAoE7E;AAED;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,2BAA2B,CAAC,OAAO,EAAE,MAAM,GAAG,IAAI,CAUjE;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GACd,sBAAsB,GAAG,SAAS,CAgBpC"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/** The first chant whose capabilities document carries `templates` (#4531). */
|
|
2
|
+
export declare const CAPABILITY_TEMPLATES_FLOOR = "0.124.54";
|
|
3
|
+
/** The version of templates.json's shape. */
|
|
4
|
+
export declare const TEMPLATES_DATA_VERSION = 1;
|
|
5
|
+
export type TemplateQueryKind = "path" | "cypher";
|
|
6
|
+
/** What answering reads: the declared source, a live read, recorded snapshots, or only the session's loaded graph. */
|
|
7
|
+
export type TemplateReads = "source" | "live" | "snapshots" | "session";
|
|
8
|
+
/**
|
|
9
|
+
* resource: the node the template is about, given as a name, an IR id, a
|
|
10
|
+
* block address or a cloud ID, and resolved to one node before expanding.
|
|
11
|
+
* scope: an environment or estate the query is read in. term: one search
|
|
12
|
+
* term, such as a kind or a capability call.
|
|
13
|
+
*/
|
|
14
|
+
export type TemplateInputKind = "resource" | "scope" | "term";
|
|
15
|
+
export interface TemplateInput {
|
|
16
|
+
name: string;
|
|
17
|
+
kind: TemplateInputKind;
|
|
18
|
+
description: string;
|
|
19
|
+
}
|
|
20
|
+
export interface TemplateEntry {
|
|
21
|
+
id: string;
|
|
22
|
+
title: string;
|
|
23
|
+
/** The question it answers, in people's words. */
|
|
24
|
+
question: string;
|
|
25
|
+
/** The sources whose nodes it applies to (behold's source kinds); absent means every source. */
|
|
26
|
+
sources?: string[];
|
|
27
|
+
inputs: TemplateInput[];
|
|
28
|
+
reads: TemplateReads;
|
|
29
|
+
query: {
|
|
30
|
+
kind: TemplateQueryKind;
|
|
31
|
+
text: string;
|
|
32
|
+
};
|
|
33
|
+
/** What it does not answer, said where it is offered. */
|
|
34
|
+
note?: string;
|
|
35
|
+
}
|
|
36
|
+
/** A templates file that does not hold to the entry kind, naming the template. */
|
|
37
|
+
export declare class TemplateCatalogError extends Error {
|
|
38
|
+
}
|
|
39
|
+
/**
|
|
40
|
+
* Read a templates file, checking each entry against the entry kind: a
|
|
41
|
+
* unique id, exactly one resource input first, a query of a known kind
|
|
42
|
+
* whose placeholders (path) or parameters (Cypher) are its inputs, and every
|
|
43
|
+
* input used.
|
|
44
|
+
*/
|
|
45
|
+
export declare function parseTemplates(raw: unknown): TemplateEntry[];
|
|
46
|
+
/** The templates chant ships, checked. */
|
|
47
|
+
export declare function investigationTemplates(): TemplateEntry[];
|
|
48
|
+
export interface ExpandedTemplate {
|
|
49
|
+
template: string;
|
|
50
|
+
kind: TemplateQueryKind;
|
|
51
|
+
reads: TemplateReads;
|
|
52
|
+
/** path: the chant search query. cypher: the statement, unchanged. */
|
|
53
|
+
text: string;
|
|
54
|
+
/** cypher: the parameters, the resource as `key`. */
|
|
55
|
+
params?: Record<string, string>;
|
|
56
|
+
/** The scope inputs given, which say where the query is read. */
|
|
57
|
+
scope?: Record<string, string>;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Fill one template. `inputs` holds every input by name, the resource input
|
|
61
|
+
* as the resolved node's id (path) or key (Cypher). A value that would make
|
|
62
|
+
* a second search term is refused.
|
|
63
|
+
*/
|
|
64
|
+
export declare function expandTemplate(t: TemplateEntry, inputs: Record<string, string>): ExpandedTemplate;
|
|
65
|
+
//# sourceMappingURL=templates.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"templates.d.ts","sourceRoot":"","sources":["../../src/capabilities/templ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IACtE,IAAI,EAAE,MAAM,CAAC;IACb,qDAAqD;IACrD,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAChC,iEAAiE;IACjE,KAAK,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CAChC;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,aAAa,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,GAAG,gBAAgB,CAkBjG"}
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Investigation templates (#4531): the capability catalog's second kind of
|
|
3
|
+
* entry, after the capabilities themselves (behold#1022 contract 3).
|
|
4
|
+
*
|
|
5
|
+
* A template is a fixed query with the resource filled in, so a click in
|
|
6
|
+
* behold, choudoufu's `investigate` (choudoufu#2280) and an agent run the
|
|
7
|
+
* same query. Each says which language it expands to (behold#1022 ruling Q4):
|
|
8
|
+
* a `chant search` path pattern where one can express the question, Cypher
|
|
9
|
+
* otherwise. A path template needs nothing beyond chant search, so it keeps
|
|
10
|
+
* working where behold's optional LadybugDB peer is missing; a Cypher one
|
|
11
|
+
* needs behold's graph pane.
|
|
12
|
+
*
|
|
13
|
+
* The catalog lives here, beside the capability rules (ruling Q5), and is
|
|
14
|
+
* data: `templates.json` beside this module, shipped as
|
|
15
|
+
* `@intentius/chant/capabilities/templates.json` and carried as `templates`
|
|
16
|
+
* on the capabilities document (`chant search --capabilities --json`).
|
|
17
|
+
* behold and choudoufu read it as data. The initial set is the one behold#1027
|
|
18
|
+
* stubbed in behold's src/graph-db/templates.ts.
|
|
19
|
+
*
|
|
20
|
+
* Filling in: a path template's `{{<input>}}` is replaced by the input's
|
|
21
|
+
* value, the resource's id for `{{node}}`. A Cypher template takes its inputs
|
|
22
|
+
* as query parameters, never spliced into the text: the resource's key is
|
|
23
|
+
* `$key` and every other input is `$<name>`.
|
|
24
|
+
*/
|
|
25
|
+
import { NEXT_RELEASE } from "../release-floors.js";
|
|
26
|
+
import data from "./templates.json" with { type: "json" };
|
|
27
|
+
/** The first chant whose capabilities document carries `templates` (#4531). */
|
|
28
|
+
export const CAPABILITY_TEMPLATES_FLOOR = NEXT_RELEASE;
|
|
29
|
+
/** The version of templates.json's shape. */
|
|
30
|
+
export const TEMPLATES_DATA_VERSION = 1;
|
|
31
|
+
/** A templates file that does not hold to the entry kind, naming the template. */
|
|
32
|
+
export class TemplateCatalogError extends Error {
|
|
33
|
+
}
|
|
34
|
+
const ID = /^[a-z][a-z0-9-]*$/;
|
|
35
|
+
const INPUT_NAME = /^[a-z][A-Za-z0-9_]*$/;
|
|
36
|
+
const KINDS = ["path", "cypher"];
|
|
37
|
+
const READS = ["source", "live", "snapshots", "session"];
|
|
38
|
+
const INPUT_KINDS = ["resource", "scope", "term"];
|
|
39
|
+
const PLACEHOLDER = /\{\{([^{}]*)\}\}/g;
|
|
40
|
+
const PARAM = /\$([A-Za-z_][A-Za-z0-9_]*)/g;
|
|
41
|
+
const str = (v) => typeof v === "string" && v.trim() !== "";
|
|
42
|
+
/**
|
|
43
|
+
* Read a templates file, checking each entry against the entry kind: a
|
|
44
|
+
* unique id, exactly one resource input first, a query of a known kind
|
|
45
|
+
* whose placeholders (path) or parameters (Cypher) are its inputs, and every
|
|
46
|
+
* input used.
|
|
47
|
+
*/
|
|
48
|
+
export function parseTemplates(raw) {
|
|
49
|
+
const doc = raw;
|
|
50
|
+
if (!doc || typeof doc !== "object")
|
|
51
|
+
throw new TemplateCatalogError("a templates file is an object");
|
|
52
|
+
if (doc.version !== TEMPLATES_DATA_VERSION)
|
|
53
|
+
throw new TemplateCatalogError(`templates file version ${String(doc.version)} is not ${TEMPLATES_DATA_VERSION}`);
|
|
54
|
+
if (!Array.isArray(doc.templates))
|
|
55
|
+
throw new TemplateCatalogError("templates is a list");
|
|
56
|
+
const seen = new Set();
|
|
57
|
+
return doc.templates.map((t, i) => {
|
|
58
|
+
const e = t;
|
|
59
|
+
const where = str(e?.id) ? `template ${e.id}` : `template ${i}`;
|
|
60
|
+
const fail = (m) => {
|
|
61
|
+
throw new TemplateCatalogError(`${where}: ${m}`);
|
|
62
|
+
};
|
|
63
|
+
if (!e || typeof e !== "object")
|
|
64
|
+
fail("is not an object");
|
|
65
|
+
if (!str(e.id) || !ID.test(e.id))
|
|
66
|
+
fail("needs an id of lowercase letters, digits and -");
|
|
67
|
+
if (seen.has(e.id))
|
|
68
|
+
fail("is defined twice");
|
|
69
|
+
seen.add(e.id);
|
|
70
|
+
if (!str(e.title))
|
|
71
|
+
fail("needs a title");
|
|
72
|
+
if (!str(e.question))
|
|
73
|
+
fail("needs the question it answers");
|
|
74
|
+
if (!READS.includes(e.reads))
|
|
75
|
+
fail(`reads is one of ${READS.join(", ")}`);
|
|
76
|
+
if (e.sources !== undefined && (!Array.isArray(e.sources) || !e.sources.every(str)))
|
|
77
|
+
fail("sources is a list of source kinds");
|
|
78
|
+
if (e.note !== undefined && !str(e.note))
|
|
79
|
+
fail("a note is text");
|
|
80
|
+
if (!Array.isArray(e.inputs))
|
|
81
|
+
fail("needs its inputs");
|
|
82
|
+
const names = new Set();
|
|
83
|
+
for (const input of e.inputs) {
|
|
84
|
+
if (!input || !str(input.name) || !INPUT_NAME.test(input.name))
|
|
85
|
+
fail("an input needs a name");
|
|
86
|
+
if (names.has(input.name))
|
|
87
|
+
fail(`input ${input.name} is listed twice`);
|
|
88
|
+
names.add(input.name);
|
|
89
|
+
if (!INPUT_KINDS.includes(input.kind))
|
|
90
|
+
fail(`input ${input.name}'s kind is one of ${INPUT_KINDS.join(", ")}`);
|
|
91
|
+
if (!str(input.description))
|
|
92
|
+
fail(`input ${input.name} needs a description`);
|
|
93
|
+
}
|
|
94
|
+
const resources = e.inputs.filter((x) => x.kind === "resource");
|
|
95
|
+
if (resources.length !== 1 || e.inputs[0] !== resources[0])
|
|
96
|
+
fail("takes one resource input, first");
|
|
97
|
+
const q = e.query;
|
|
98
|
+
if (!q || !KINDS.includes(q.kind) || !str(q.text))
|
|
99
|
+
fail(`query is { kind: ${KINDS.join(" | ")}, text }`);
|
|
100
|
+
const resource = resources[0].name;
|
|
101
|
+
if (q.kind === "path") {
|
|
102
|
+
if (/\$[A-Za-z_]/.test(q.text))
|
|
103
|
+
fail("a path pattern takes {{input}} placeholders, not $parameters");
|
|
104
|
+
const used = new Set([...q.text.matchAll(PLACEHOLDER)].map((m) => m[1]));
|
|
105
|
+
for (const u of used)
|
|
106
|
+
if (!names.has(u))
|
|
107
|
+
fail(`{{${u}}} names no input`);
|
|
108
|
+
// A scope is where the query is read, not part of its text.
|
|
109
|
+
for (const input of e.inputs)
|
|
110
|
+
if (input.kind !== "scope" && !used.has(input.name))
|
|
111
|
+
fail(`the path pattern never uses ${input.name}`);
|
|
112
|
+
}
|
|
113
|
+
else {
|
|
114
|
+
if (/\{\{/.test(q.text))
|
|
115
|
+
fail("a Cypher query takes $parameters, never spliced {{input}} text");
|
|
116
|
+
if (!/^\s*(MATCH|OPTIONAL MATCH|WITH|CALL|UNWIND)\b/i.test(q.text))
|
|
117
|
+
fail("a Cypher query starts with a reading clause");
|
|
118
|
+
if (/\b(CREATE|MERGE|DELETE|DETACH|SET|REMOVE|DROP)\b/i.test(q.text))
|
|
119
|
+
fail("a Cypher query only reads");
|
|
120
|
+
if (!balanced(q.text))
|
|
121
|
+
fail("its brackets do not balance");
|
|
122
|
+
const params = new Set([...q.text.matchAll(PARAM)].map((m) => m[1]));
|
|
123
|
+
if (!params.has("key"))
|
|
124
|
+
fail("a Cypher query binds the resource as $key");
|
|
125
|
+
for (const p of params)
|
|
126
|
+
if (p !== "key" && !names.has(p))
|
|
127
|
+
fail(`$${p} names no input`);
|
|
128
|
+
for (const input of e.inputs)
|
|
129
|
+
if (input.name !== resource && input.kind !== "scope" && !params.has(input.name))
|
|
130
|
+
fail(`the query never uses $${input.name}`);
|
|
131
|
+
}
|
|
132
|
+
return e;
|
|
133
|
+
});
|
|
134
|
+
}
|
|
135
|
+
/** Whether (), [] and {} nest, outside quoted strings. */
|
|
136
|
+
function balanced(text) {
|
|
137
|
+
const open = [];
|
|
138
|
+
const pair = { ")": "(", "]": "[", "}": "{" };
|
|
139
|
+
let quote;
|
|
140
|
+
for (const c of text) {
|
|
141
|
+
if (quote) {
|
|
142
|
+
if (c === quote)
|
|
143
|
+
quote = undefined;
|
|
144
|
+
continue;
|
|
145
|
+
}
|
|
146
|
+
if (c === "'" || c === '"')
|
|
147
|
+
quote = c;
|
|
148
|
+
else if (c === "(" || c === "[" || c === "{")
|
|
149
|
+
open.push(c);
|
|
150
|
+
else if (c in pair && open.pop() !== pair[c])
|
|
151
|
+
return false;
|
|
152
|
+
}
|
|
153
|
+
return open.length === 0 && !quote;
|
|
154
|
+
}
|
|
155
|
+
let cache;
|
|
156
|
+
/** The templates chant ships, checked. */
|
|
157
|
+
export function investigationTemplates() {
|
|
158
|
+
cache ?? (cache = parseTemplates(data));
|
|
159
|
+
return cache;
|
|
160
|
+
}
|
|
161
|
+
/** A value spliced into a path pattern is one search term: letters, digits and `_ : . - / * ( ) , [ ]` only. */
|
|
162
|
+
const TERM_VALUE = /^[A-Za-z0-9_:.\-/*(),[\]]+$/;
|
|
163
|
+
/**
|
|
164
|
+
* Fill one template. `inputs` holds every input by name, the resource input
|
|
165
|
+
* as the resolved node's id (path) or key (Cypher). A value that would make
|
|
166
|
+
* a second search term is refused.
|
|
167
|
+
*/
|
|
168
|
+
export function expandTemplate(t, inputs) {
|
|
169
|
+
for (const i of t.inputs)
|
|
170
|
+
if (!inputs[i.name])
|
|
171
|
+
throw new TemplateCatalogError(`${t.id} needs ${i.name}: ${i.description}`);
|
|
172
|
+
for (const k of Object.keys(inputs))
|
|
173
|
+
if (!t.inputs.some((i) => i.name === k))
|
|
174
|
+
throw new TemplateCatalogError(`${t.id} takes no input ${k}`);
|
|
175
|
+
const scopes = t.inputs.filter((i) => i.kind === "scope");
|
|
176
|
+
const scope = scopes.length ? Object.fromEntries(scopes.map((i) => [i.name, inputs[i.name]])) : undefined;
|
|
177
|
+
const head = { template: t.id, kind: t.query.kind, reads: t.reads, ...(scope ? { scope } : {}) };
|
|
178
|
+
if (t.query.kind === "cypher") {
|
|
179
|
+
const resource = t.inputs[0].name;
|
|
180
|
+
const params = { key: inputs[resource] };
|
|
181
|
+
for (const i of t.inputs)
|
|
182
|
+
if (i.name !== resource && i.kind !== "scope")
|
|
183
|
+
params[i.name] = inputs[i.name];
|
|
184
|
+
return { ...head, text: t.query.text, params };
|
|
185
|
+
}
|
|
186
|
+
const text = t.query.text.replace(PLACEHOLDER, (_, name) => {
|
|
187
|
+
const v = inputs[name];
|
|
188
|
+
if (!TERM_VALUE.test(v))
|
|
189
|
+
throw new TemplateCatalogError(`${t.id}: ${name} ${JSON.stringify(v)} is not one search term`);
|
|
190
|
+
return v;
|
|
191
|
+
});
|
|
192
|
+
return { ...head, text };
|
|
193
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"templates": [
|
|
4
|
+
{
|
|
5
|
+
"id": "dependents",
|
|
6
|
+
"title": "What depends on it",
|
|
7
|
+
"question": "what reads this resource, directly or through others, in its own project",
|
|
8
|
+
"sources": ["chant"],
|
|
9
|
+
"inputs": [
|
|
10
|
+
{ "name": "node", "kind": "resource", "description": "The resource: a name, an IR id, a block address or a cloud ID." }
|
|
11
|
+
],
|
|
12
|
+
"reads": "source",
|
|
13
|
+
"query": { "kind": "path", "text": "->*{{node}}" }
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
"id": "dependencies",
|
|
17
|
+
"title": "What it depends on",
|
|
18
|
+
"question": "what this resource reads, directly or through others, in its own project",
|
|
19
|
+
"sources": ["chant"],
|
|
20
|
+
"inputs": [
|
|
21
|
+
{ "name": "node", "kind": "resource", "description": "The resource: a name, an IR id, a block address or a cloud ID." }
|
|
22
|
+
],
|
|
23
|
+
"reads": "source",
|
|
24
|
+
"query": { "kind": "path", "text": "<-*{{node}}" }
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"id": "paths-to-kind",
|
|
28
|
+
"title": "Paths from it to a kind",
|
|
29
|
+
"question": "does this resource reach anything of a given kind, and by which path",
|
|
30
|
+
"sources": ["chant"],
|
|
31
|
+
"inputs": [
|
|
32
|
+
{ "name": "node", "kind": "resource", "description": "The resource: a name, an IR id, a block address or a cloud ID." },
|
|
33
|
+
{ "name": "kind", "kind": "term", "description": "A kind or type, as kind: takes it (aws_internet_gateway, EC2::InternetGateway)." }
|
|
34
|
+
],
|
|
35
|
+
"reads": "source",
|
|
36
|
+
"query": { "kind": "path", "text": "{{node}} ->*kind:{{kind}}" }
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"id": "capability",
|
|
40
|
+
"title": "Whether a capability holds for it",
|
|
41
|
+
"question": "does a capability from the catalog hold for this resource",
|
|
42
|
+
"sources": ["chant"],
|
|
43
|
+
"inputs": [
|
|
44
|
+
{ "name": "node", "kind": "resource", "description": "The resource: a name, an IR id, a block address or a cloud ID." },
|
|
45
|
+
{ "name": "capability", "kind": "term", "description": "A capability from chant's catalog, with its arguments: internet-reachable(22)." }
|
|
46
|
+
],
|
|
47
|
+
"reads": "source",
|
|
48
|
+
"query": { "kind": "path", "text": "{{node}} cap:{{capability}}" }
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"id": "drift",
|
|
52
|
+
"title": "Drift",
|
|
53
|
+
"question": "has this resource drifted from its declaration in an environment",
|
|
54
|
+
"sources": ["chant"],
|
|
55
|
+
"inputs": [
|
|
56
|
+
{ "name": "node", "kind": "resource", "description": "The resource: a name, an IR id, a block address or a cloud ID." },
|
|
57
|
+
{ "name": "env", "kind": "scope", "description": "The environment to read live." }
|
|
58
|
+
],
|
|
59
|
+
"reads": "live",
|
|
60
|
+
"query": { "kind": "path", "text": "{{node}}" },
|
|
61
|
+
"note": "Draws the node in the environment's live read, coloured by drift."
|
|
62
|
+
},
|
|
63
|
+
{
|
|
64
|
+
"id": "dependents-all",
|
|
65
|
+
"title": "What depends on it, across every source",
|
|
66
|
+
"question": "what reads this resource, in any project, root or stack loaded into the session",
|
|
67
|
+
"inputs": [
|
|
68
|
+
{ "name": "node", "kind": "resource", "description": "The resource: a name, an IR id, a block address or a cloud ID." }
|
|
69
|
+
],
|
|
70
|
+
"reads": "session",
|
|
71
|
+
"query": {
|
|
72
|
+
"kind": "cypher",
|
|
73
|
+
"text": "MATCH (o:Resource)-[:REF*1..6]->(r:Resource {key: $key}) RETURN DISTINCT o.key AS key, o.kind AS kind, o.scopeKey AS scope"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"id": "dependencies-all",
|
|
78
|
+
"title": "What it depends on, across every source",
|
|
79
|
+
"question": "what this resource reads, in any project, root or stack loaded into the session",
|
|
80
|
+
"inputs": [
|
|
81
|
+
{ "name": "node", "kind": "resource", "description": "The resource: a name, an IR id, a block address or a cloud ID." }
|
|
82
|
+
],
|
|
83
|
+
"reads": "session",
|
|
84
|
+
"query": {
|
|
85
|
+
"kind": "cypher",
|
|
86
|
+
"text": "MATCH (r:Resource {key: $key})-[:REF*1..6]->(o:Resource) RETURN DISTINCT o.key AS key, o.kind AS kind, o.scopeKey AS scope"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
{
|
|
90
|
+
"id": "ownership",
|
|
91
|
+
"title": "Ownership",
|
|
92
|
+
"question": "who owns this cloud ID, and which other sources know the same object",
|
|
93
|
+
"inputs": [
|
|
94
|
+
{ "name": "node", "kind": "resource", "description": "The resource: a name, an IR id, a block address or a cloud ID." }
|
|
95
|
+
],
|
|
96
|
+
"reads": "session",
|
|
97
|
+
"query": {
|
|
98
|
+
"kind": "cypher",
|
|
99
|
+
"text": "MATCH (r:Resource {key: $key}) OPTIONAL MATCH (r)-[:KNOWN_AS]->(:CloudId)<-[:KNOWN_AS]-(o:Resource) WHERE o.key <> r.key RETURN r.key AS key, r.ownership AS ownership, r.engineOwnership AS engineOwnership, r.facts AS facts, r.observedAt AS observedAt, collect(DISTINCT o.key) AS sameObject"
|
|
100
|
+
},
|
|
101
|
+
"note": "ownership is chant's marker verdict, owned or foreign. engineOwnership is an engine's, bound, unowned, pending or foreign. Absent is unknown, never guessed. A cloud listing reads markers only."
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"id": "same-object",
|
|
105
|
+
"title": "The same object in other sources",
|
|
106
|
+
"question": "where else is the object behind this resource declared or recorded",
|
|
107
|
+
"inputs": [
|
|
108
|
+
{ "name": "node", "kind": "resource", "description": "The resource: a name, an IR id, a block address or a cloud ID." }
|
|
109
|
+
],
|
|
110
|
+
"reads": "session",
|
|
111
|
+
"query": {
|
|
112
|
+
"kind": "cypher",
|
|
113
|
+
"text": "MATCH (r:Resource {key: $key})-[:KNOWN_AS]->(c:CloudId)<-[:KNOWN_AS]-(o:Resource) WHERE o.scopeKey <> r.scopeKey RETURN DISTINCT o.key AS key, o.scopeKey AS scope, c.value AS cloudId, c.kind AS cloudIdKind"
|
|
114
|
+
}
|
|
115
|
+
},
|
|
116
|
+
{
|
|
117
|
+
"id": "readers",
|
|
118
|
+
"title": "Who reads it from another estate or root",
|
|
119
|
+
"question": "which other estate or root reads this resource",
|
|
120
|
+
"inputs": [
|
|
121
|
+
{ "name": "node", "kind": "resource", "description": "The resource: a name, an IR id, a block address or a cloud ID." }
|
|
122
|
+
],
|
|
123
|
+
"reads": "session",
|
|
124
|
+
"query": {
|
|
125
|
+
"kind": "cypher",
|
|
126
|
+
"text": "MATCH (o:Resource)-[e:REF]->(r:Resource {key: $key}) WHERE o.scopeKey <> r.scopeKey RETURN o.key AS key, o.scopeKey AS scope, e.viaAttr AS via, e.origin AS origin, e.rule AS rule UNION MATCH (r:Resource {key: $key})-[:KNOWN_AS]->(:CloudId)<-[:KNOWN_AS]-(t:Resource)<-[e:REF]-(o:Resource) WHERE o.scopeKey <> r.scopeKey RETURN o.key AS key, o.scopeKey AS scope, e.viaAttr AS via, e.origin AS origin, e.rule AS rule"
|
|
127
|
+
},
|
|
128
|
+
"note": "A derived edge (origin derived, rule identity:<kind>) is an identity match, not a declared reference."
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"id": "history",
|
|
132
|
+
"title": "History",
|
|
133
|
+
"question": "how has this resource's record changed over time",
|
|
134
|
+
"inputs": [
|
|
135
|
+
{ "name": "node", "kind": "resource", "description": "The resource: a name, an IR id, a block address or a cloud ID." }
|
|
136
|
+
],
|
|
137
|
+
"reads": "snapshots",
|
|
138
|
+
"query": {
|
|
139
|
+
"kind": "cypher",
|
|
140
|
+
"text": "MATCH (r:Resource {key: $key}) RETURN r.key AS key, r.facts AS facts, r.version AS version, r.observedAt AS observedAt"
|
|
141
|
+
},
|
|
142
|
+
"note": "The record's versions come from facts.recordVersions, when the engine ran with -history or --versions. Snapshot history (chant#4519's store) is not loaded into the session yet."
|
|
143
|
+
}
|
|
144
|
+
]
|
|
145
|
+
}
|
|
@@ -18,8 +18,20 @@
|
|
|
18
18
|
* a delete of a block the source no longer declares, or a warden or sql
|
|
19
19
|
* change outside the graph.
|
|
20
20
|
*
|
|
21
|
-
*
|
|
22
|
-
*
|
|
21
|
+
* An instance of a `count` or `for_each` block gets its instance node
|
|
22
|
+
* (#4454): the block node's id followed by the instance key as the planner
|
|
23
|
+
* prints it, `<root>/module.app/terraform_data.instance[0]`, with
|
|
24
|
+
* `instanceOf` naming the block node. That holds whether or not the graph
|
|
25
|
+
* lists the instance node, since a graph read of the source lists only the
|
|
26
|
+
* instances it can count (`./instance-nodes.ts`). Under an expanded module
|
|
27
|
+
* call the module key sits on the call's segment (#4486):
|
|
28
|
+
* `module.app[0].aws_eip.pool[1]` is `<root>/module.app[0]/aws_eip.pool[1]`.
|
|
29
|
+
* {@link graphNodeFor} is the same rule for a single address, which a drift
|
|
30
|
+
* row uses.
|
|
31
|
+
*
|
|
32
|
+
* Like `./change-set.ts`, this imports nothing at run time but
|
|
33
|
+
* `./instance-nodes.ts` and `./pulumi-urn.ts`, which import nothing either,
|
|
34
|
+
* so it bundles into one file with the change-set code.
|
|
23
35
|
*/
|
|
24
36
|
import type { ChangeSetDocument, ChangeSetEntry } from "./change-set.js";
|
|
25
37
|
/** The graph a document is mapped onto: the node ids of one member's own IR. */
|
|
@@ -52,12 +64,32 @@ export declare function terraformBlockKey(address: string): string | undefined;
|
|
|
52
64
|
* - `terraform`, `tofu`, `choudoufu`: `<root>/<block key>`, the root being
|
|
53
65
|
* the change-set member (`terraformBlockKey`), then the address.
|
|
54
66
|
* - `warden`, `sql`: the address.
|
|
67
|
+
* - `pulumi`: the address is a URN, and the id is `<member>/<key>` by the
|
|
68
|
+
* one URN rule (`pulumiNodeCandidates`, `./pulumi-urn.ts`, #4456); none
|
|
69
|
+
* for a provider or the root stack.
|
|
55
70
|
*/
|
|
56
71
|
export declare function changeSetNodeCandidates(entry: Pick<ChangeSetEntry, "member" | "planner" | "address">): string[];
|
|
72
|
+
/** Where one address sits on a graph: its node, and the block node when that node is an instance's. */
|
|
73
|
+
export interface GraphNodePlacement {
|
|
74
|
+
/** The node id, with the member in front inside a workspace, or null when the graph holds none for the address. */
|
|
75
|
+
node: string | null;
|
|
76
|
+
/** The block node's id, set when `node` is an instance node (#4454). */
|
|
77
|
+
instanceOf?: string;
|
|
78
|
+
/** The source file of the node, or of its block node for an instance, from the graph's `sources`. */
|
|
79
|
+
source?: string;
|
|
80
|
+
}
|
|
81
|
+
/**
|
|
82
|
+
* The node one engine address is on in `graph`, by the change set's mapping
|
|
83
|
+
* rules: what a drift row's `node` and `instanceOf` are (#4454), so a drift
|
|
84
|
+
* row and a change-set entry for the same instance name the same node. A null
|
|
85
|
+
* `graph` places nothing.
|
|
86
|
+
*/
|
|
87
|
+
export declare function graphNodeFor(entry: Pick<ChangeSetEntry, "member" | "planner" | "address">, graph: ChangeSetGraphNodes | null): GraphNodePlacement;
|
|
57
88
|
/**
|
|
58
89
|
* The document with each entry's `node` set from `graph`, and `graph`
|
|
59
90
|
* recording which graph it was. A null `graph` (none could be read) gives
|
|
60
|
-
* every entry `node: null`. The digest is unchanged: `node`
|
|
91
|
+
* every entry `node: null`. The digest is unchanged: `node`, `instanceOf` and
|
|
92
|
+
* `source` are not hashed.
|
|
61
93
|
*/
|
|
62
94
|
export declare function mapChangeSetToGraph(doc: ChangeSetDocument, graph: ChangeSetGraphNodes | null): ChangeSetDocument;
|
|
63
95
|
//# sourceMappingURL=change-set-graph.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"change-set-graph.d.ts","sourceRoot":"","sources":["../src/change-set-graph.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"change-set-graph.d.ts","sourceRoot":"","sources":["../src/change-set-graph.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AAEH,OAAO,KAAK,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,cAAc,CAAC;AAItE,gFAAgF;AAChF,MAAM,WAAW,mBAAmB;IAClC,0HAA0H;IAC1H,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,8DAA8D;IAC9D,EAAE,EAAE,MAAM,GAAG,IAAI,CAAC;IAClB,4FAA4F;IAC5F,GAAG,EAAE,QAAQ,CAAC,MAAM,CAAC,CAAC;IACtB;;;;OAIG;IACH,OAAO,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;CACvC;AA+BD;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAmBrE;AAED;;;;;;;;;;;GAWG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,IAAI,CAAC,cAAc,EAAE,QAAQ,GAAG,SAAS,GAAG,SAAS,CAAC,GAAG,MAAM,EAAE,CAa/G;AAED,uGAAuG;AACvG,MAAM,WAAW,kBAAkB;IACjC,mHAAmH;IACnH,IAAI,E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