@intentius/chant 0.57.0 → 0.58.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/audit/catalog.d.ts +51 -1
- package/dist/audit/catalog.d.ts.map +1 -1
- package/dist/audit/core.d.ts +20 -1
- package/dist/audit/core.d.ts.map +1 -1
- package/dist/audit/discover.d.ts +14 -8
- package/dist/audit/discover.d.ts.map +1 -1
- package/dist/audit/lineage.d.ts +10 -0
- package/dist/audit/lineage.d.ts.map +1 -0
- package/dist/audit/prior-art.d.ts +385 -0
- package/dist/audit/prior-art.d.ts.map +1 -0
- package/dist/audit/proof.d.ts +16 -0
- package/dist/audit/proof.d.ts.map +1 -1
- package/dist/audit/report-html.d.ts.map +1 -1
- package/dist/audit/report-model.d.ts +8 -1
- package/dist/audit/report-model.d.ts.map +1 -1
- package/dist/audit/report.d.ts.map +1 -1
- package/dist/audit/rules-doc.d.ts +3 -0
- package/dist/audit/rules-doc.d.ts.map +1 -1
- package/dist/audit/secrets.d.ts +15 -0
- package/dist/audit/secrets.d.ts.map +1 -1
- package/dist/audit/terraform-state.d.ts +46 -0
- package/dist/audit/terraform-state.d.ts.map +1 -0
- package/dist/build.d.ts +17 -1
- package/dist/build.d.ts.map +1 -1
- package/dist/claimed-fields.d.ts +161 -0
- package/dist/claimed-fields.d.ts.map +1 -0
- package/dist/cli/build-params-cli.d.ts +2 -2
- package/dist/cli/command-group.d.ts +14 -0
- package/dist/cli/command-group.d.ts.map +1 -1
- package/dist/cli/commands/audit.d.ts +17 -1
- package/dist/cli/commands/audit.d.ts.map +1 -1
- package/dist/cli/commands/build.d.ts.map +1 -1
- package/dist/cli/commands/check-lexicon-docs.d.ts +1 -1
- package/dist/cli/commands/check-lexicon-examples.d.ts +16 -6
- package/dist/cli/commands/check-lexicon-examples.d.ts.map +1 -1
- package/dist/cli/commands/init-lexicon/templates/codegen.d.ts +1 -0
- package/dist/cli/commands/init-lexicon/templates/codegen.d.ts.map +1 -1
- package/dist/cli/commands/init-lexicon/templates/project.d.ts +7 -0
- package/dist/cli/commands/init-lexicon/templates/project.d.ts.map +1 -1
- package/dist/cli/commands/init-lexicon.d.ts.map +1 -1
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/lint.d.ts.map +1 -1
- package/dist/cli/commands/onboard.d.ts +2 -0
- package/dist/cli/commands/onboard.d.ts.map +1 -1
- package/dist/cli/handlers/build.d.ts.map +1 -1
- package/dist/cli/handlers/lifecycle.d.ts.map +1 -1
- package/dist/cli/handlers/operator.d.ts +82 -16
- package/dist/cli/handlers/operator.d.ts.map +1 -1
- package/dist/cli/handlers/run.d.ts +49 -42
- package/dist/cli/handlers/run.d.ts.map +1 -1
- package/dist/cli/main.d.ts +28 -1
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/mcp/op-tools.d.ts +16 -1
- package/dist/cli/mcp/op-tools.d.ts.map +1 -1
- package/dist/cli/mcp/resource-handlers.d.ts.map +1 -1
- package/dist/cli/mcp/resources/context.d.ts.map +1 -1
- package/dist/cli/registry.d.ts +26 -9
- package/dist/cli/registry.d.ts.map +1 -1
- package/dist/codegen/generate-post-synth-barrel.d.ts +1 -1
- package/dist/components/auto-release.d.ts +10 -20
- package/dist/components/auto-release.d.ts.map +1 -1
- package/dist/components/capability.d.ts +4 -4
- package/dist/components/cli-support.d.ts +20 -21
- package/dist/components/cli-support.d.ts.map +1 -1
- package/dist/components/component.d.ts +3 -3
- package/dist/components/component.d.ts.map +1 -1
- package/dist/components/driver-output.d.ts.map +1 -1
- package/dist/components/driver.d.ts +66 -36
- package/dist/components/driver.d.ts.map +1 -1
- package/dist/components/index.d.ts +1 -2
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/manifest-persistence.d.ts +1 -9
- package/dist/components/manifest-persistence.d.ts.map +1 -1
- package/dist/components/run-progress.d.ts +6 -6
- package/dist/components/run-progress.d.ts.map +1 -1
- package/dist/components/verbs/run-agent.d.ts +9 -15
- package/dist/components/verbs/run-agent.d.ts.map +1 -1
- package/dist/components/verbs/verify.d.ts +2 -2
- package/dist/deep-observation.d.ts +17 -0
- package/dist/deep-observation.d.ts.map +1 -1
- package/dist/discovery/files.d.ts +4 -4
- package/dist/discovery/fold-import.d.ts.map +1 -1
- package/dist/discovery/param-deps.d.ts +33 -0
- package/dist/discovery/param-deps.d.ts.map +1 -1
- package/dist/discovery/sandbox/bundle.d.ts.map +1 -1
- package/dist/discovery/sandbox/config-wire.d.ts +2 -2
- package/dist/fold/foldable-helpers.d.ts +5 -1
- package/dist/fold/foldable-helpers.d.ts.map +1 -1
- package/dist/fold-provenance.d.ts +236 -0
- package/dist/fold-provenance.d.ts.map +1 -0
- package/dist/graph-ops.d.ts +1 -1
- package/dist/held-elsewhere.d.ts +85 -0
- package/dist/held-elsewhere.d.ts.map +1 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/kubectl-context.d.ts +3 -3
- package/dist/lexicon-config.d.ts +4 -4
- package/dist/lexicon-plugin-helpers.d.ts +1 -1
- package/dist/lexicon.d.ts +104 -14
- package/dist/lexicon.d.ts.map +1 -1
- package/dist/lifecycle/change-set.d.ts +13 -0
- package/dist/lifecycle/change-set.d.ts.map +1 -1
- package/dist/lifecycle/deep-diff.d.ts +133 -6
- package/dist/lifecycle/deep-diff.d.ts.map +1 -1
- package/dist/lifecycle/deep-observe.d.ts.map +1 -1
- package/dist/lifecycle/gate-ledger.d.ts +71 -3
- package/dist/lifecycle/gate-ledger.d.ts.map +1 -1
- package/dist/lifecycle/index.d.ts +1 -0
- package/dist/lifecycle/index.d.ts.map +1 -1
- package/dist/lifecycle/release-ledger.d.ts +2 -2
- package/dist/lifecycle/run-ledger.d.ts +53 -0
- package/dist/lifecycle/run-ledger.d.ts.map +1 -0
- package/dist/lifecycle/symptoms.d.ts +3 -3
- package/dist/lifecycle/symptoms.d.ts.map +1 -1
- package/dist/lint/config.d.ts +81 -2
- package/dist/lint/config.d.ts.map +1 -1
- package/dist/lint/post-synth.d.ts +55 -2
- package/dist/lint/post-synth.d.ts.map +1 -1
- package/dist/lint/rules/__fixtures__/comp/comp004/pass/neo4j-cluster.component.d.ts +1 -1
- package/dist/lint/rules/__fixtures__/comp/comp004/pass/neo4j-cluster.component.d.ts.map +1 -1
- package/dist/lint/rules/__fixtures__/comp/comp004/pass/orders-table.component.d.ts +1 -1
- package/dist/lint/rules/__fixtures__/comp/comp004/pass/orders-table.component.d.ts.map +1 -1
- package/dist/lint/rules/comp/comp004-gate-needs-durable-runtime.d.ts +44 -0
- package/dist/lint/rules/comp/comp004-gate-needs-durable-runtime.d.ts.map +1 -0
- package/dist/lint/rules/comp/index.d.ts +1 -1
- package/dist/lint/rules/comp/index.d.ts.map +1 -1
- package/dist/lint/rules/op/index.d.ts +16 -0
- package/dist/lint/rules/op/index.d.ts.map +1 -0
- package/dist/lint/rules/op/ops012-activity-contract.d.ts +27 -0
- package/dist/lint/rules/op/ops012-activity-contract.d.ts.map +1 -0
- package/dist/lint/rules/op/ops013-step-output-ref.d.ts +61 -0
- package/dist/lint/rules/op/ops013-step-output-ref.d.ts.map +1 -0
- package/dist/lint/rules/op/ops014-converge-rule-refusals.d.ts +55 -0
- package/dist/lint/rules/op/ops014-converge-rule-refusals.d.ts.map +1 -0
- package/dist/lint/rules/op/support.d.ts +12 -0
- package/dist/lint/rules/op/support.d.ts.map +1 -0
- package/dist/lint/suppressions.d.ts +108 -0
- package/dist/lint/suppressions.d.ts.map +1 -0
- package/dist/live-endpoint.d.ts +1 -1
- package/dist/op/activities/activity-contracts.d.ts +54 -0
- package/dist/op/activities/activity-contracts.d.ts.map +1 -0
- package/dist/op/activities/apply.d.ts +262 -0
- package/dist/op/activities/apply.d.ts.map +1 -0
- package/dist/op/activities/build.d.ts +13 -0
- package/dist/op/activities/build.d.ts.map +1 -0
- package/dist/op/activities/converge.d.ts +110 -0
- package/dist/op/activities/converge.d.ts.map +1 -0
- package/dist/op/activities/env-teardown.d.ts +76 -0
- package/dist/op/activities/env-teardown.d.ts.map +1 -0
- package/dist/op/activities/guard-validate.d.ts +64 -0
- package/dist/op/activities/guard-validate.d.ts.map +1 -0
- package/dist/op/activities/http-check.d.ts +34 -0
- package/dist/op/activities/http-check.d.ts.map +1 -0
- package/dist/op/activities/index.d.ts +31 -0
- package/dist/op/activities/index.d.ts.map +1 -0
- package/dist/op/activities/lexicon-upgrade.d.ts +182 -0
- package/dist/op/activities/lexicon-upgrade.d.ts.map +1 -0
- package/dist/op/activities/lifecycle.d.ts +42 -0
- package/dist/op/activities/lifecycle.d.ts.map +1 -0
- package/dist/op/activities/pipeline-audit.d.ts +84 -0
- package/dist/op/activities/pipeline-audit.d.ts.map +1 -0
- package/dist/op/activities/policy.d.ts +17 -0
- package/dist/op/activities/policy.d.ts.map +1 -0
- package/dist/op/activities/reconcile.d.ts +89 -0
- package/dist/op/activities/reconcile.d.ts.map +1 -0
- package/dist/op/activities/shell.d.ts +13 -0
- package/dist/op/activities/shell.d.ts.map +1 -0
- package/dist/op/activities/teardown.d.ts +10 -0
- package/dist/op/activities/teardown.d.ts.map +1 -0
- package/dist/op/activities/util.d.ts +7 -0
- package/dist/op/activities/util.d.ts.map +1 -0
- package/dist/op/activities/wait.d.ts +28 -0
- package/dist/op/activities/wait.d.ts.map +1 -0
- package/dist/op/activities/workflow-audit.d.ts +92 -0
- package/dist/op/activities/workflow-audit.d.ts.map +1 -0
- package/dist/op/activity-contract-registry.d.ts +76 -0
- package/dist/op/activity-contract-registry.d.ts.map +1 -0
- package/dist/op/activity-contract.d.ts +25 -18
- package/dist/op/activity-contract.d.ts.map +1 -1
- package/dist/op/activity-failure.d.ts +28 -0
- package/dist/op/activity-failure.d.ts.map +1 -0
- package/dist/op/activity-profiles.d.ts +118 -0
- package/dist/op/activity-profiles.d.ts.map +1 -0
- package/dist/op/activity-registry.d.ts +22 -38
- package/dist/op/activity-registry.d.ts.map +1 -1
- package/dist/op/activity-runtime.d.ts +3 -14
- package/dist/op/activity-runtime.d.ts.map +1 -1
- package/dist/op/builders.d.ts +84 -29
- package/dist/op/builders.d.ts.map +1 -1
- package/dist/op/composites/apply-op.d.ts +113 -0
- package/dist/op/composites/apply-op.d.ts.map +1 -0
- package/dist/op/composites/converge-op.d.ts +120 -0
- package/dist/op/composites/converge-op.d.ts.map +1 -0
- package/dist/op/composites/index.d.ts +26 -0
- package/dist/op/composites/index.d.ts.map +1 -0
- package/dist/op/composites/lexicon-upgrade-op.d.ts +78 -0
- package/dist/op/composites/lexicon-upgrade-op.d.ts.map +1 -0
- package/dist/op/composites/pipeline-audit-op.d.ts +50 -0
- package/dist/op/composites/pipeline-audit-op.d.ts.map +1 -0
- package/dist/op/composites/reconcile-op.d.ts +57 -0
- package/dist/op/composites/reconcile-op.d.ts.map +1 -0
- package/dist/op/composites/watch-op.d.ts +60 -0
- package/dist/op/composites/watch-op.d.ts.map +1 -0
- package/dist/op/composites/workflow-audit-op.d.ts +57 -0
- package/dist/op/composites/workflow-audit-op.d.ts.map +1 -0
- package/dist/op/converge-rule.d.ts +12 -10
- package/dist/op/converge-rule.d.ts.map +1 -1
- package/dist/op/cron.d.ts +51 -0
- package/dist/op/cron.d.ts.map +1 -0
- package/dist/op/discover.d.ts +9 -0
- package/dist/op/discover.d.ts.map +1 -1
- package/dist/op/duration.d.ts +11 -0
- package/dist/op/duration.d.ts.map +1 -0
- package/dist/op/emulator-lifecycle.d.ts.map +1 -1
- package/dist/op/gate.d.ts +90 -0
- package/dist/op/gate.d.ts.map +1 -0
- package/dist/op/generate-pipeline.d.ts +9 -0
- package/dist/op/generate-pipeline.d.ts.map +1 -1
- package/dist/op/index.d.ts +23 -7
- package/dist/op/index.d.ts.map +1 -1
- package/dist/op/local-executor.d.ts +114 -28
- package/dist/op/local-executor.d.ts.map +1 -1
- package/dist/op/local-output.d.ts +11 -1
- package/dist/op/local-output.d.ts.map +1 -1
- package/dist/op/op-ir.d.ts +184 -0
- package/dist/op/op-ir.d.ts.map +1 -0
- package/dist/op/op-verb-class.d.ts +10 -2
- package/dist/op/op-verb-class.d.ts.map +1 -1
- package/dist/op/operator.d.ts +30 -5
- package/dist/op/operator.d.ts.map +1 -1
- package/dist/op/receipt-store.d.ts +1 -1
- package/dist/op/receipt-store.d.ts.map +1 -1
- package/dist/op/resource.d.ts +15 -1
- package/dist/op/resource.d.ts.map +1 -1
- package/dist/op/runtime.d.ts +200 -0
- package/dist/op/runtime.d.ts.map +1 -0
- package/dist/op/runtimes/local.d.ts +29 -0
- package/dist/op/runtimes/local.d.ts.map +1 -0
- package/dist/op/step-output-ref.d.ts +15 -13
- package/dist/op/step-output-ref.d.ts.map +1 -1
- package/dist/op/types.d.ts +79 -27
- package/dist/op/types.d.ts.map +1 -1
- package/dist/ownership.d.ts +1 -1
- package/dist/provenance.d.ts +21 -0
- package/dist/provenance.d.ts.map +1 -1
- package/dist/serializer-walker.d.ts.map +1 -1
- package/package.json +6 -1
- package/src/audit/catalog.test.ts +79 -3
- package/src/audit/catalog.ts +111 -13
- package/src/audit/core.test.ts +26 -0
- package/src/audit/core.ts +61 -17
- package/src/audit/discover.test.ts +39 -0
- package/src/audit/discover.ts +91 -15
- package/src/audit/lineage.ts +100 -0
- package/src/audit/prior-art.ts +153 -0
- package/src/audit/proof.test.ts +67 -0
- package/src/audit/proof.ts +70 -0
- package/src/audit/report-html.ts +9 -4
- package/src/audit/report-model.ts +16 -2
- package/src/audit/report.test.ts +33 -0
- package/src/audit/report.ts +5 -3
- package/src/audit/rules-doc.test.ts +34 -2
- package/src/audit/rules-doc.ts +82 -9
- package/src/audit/secrets.ts +15 -3
- package/src/audit/terraform-state.test.ts +144 -0
- package/src/audit/terraform-state.ts +131 -0
- package/src/build.ts +31 -1
- package/src/claimed-fields.test.ts +145 -0
- package/src/claimed-fields.ts +208 -0
- package/src/cli/build-params-cli.ts +2 -2
- package/src/cli/command-group.ts +14 -0
- package/src/cli/commands/__fixtures__/audit-terraform/infra/.terraform/providers/lock.txt +1 -0
- package/src/cli/commands/__fixtures__/audit-terraform/infra/main.tf +1 -0
- package/src/cli/commands/__fixtures__/audit-terraform/infra/modules/foo/main.tf +1 -0
- package/src/cli/commands/__fixtures__/audit-terraform/infra/variables.tf +3 -0
- package/src/cli/commands/__fixtures__/init-lexicon-output/package.json +13 -4
- package/src/cli/commands/__fixtures__/init-lexicon-output/src/codegen/docs-cli.ts +4 -0
- package/src/cli/commands/__fixtures__/init-lexicon-output/src/codegen/package.ts +1 -0
- package/src/cli/commands/__fixtures__/init-lexicon-output/src/package-cli.ts +21 -0
- package/src/cli/commands/__snapshots__/init-lexicon.test.ts.snap +1 -0
- package/src/cli/commands/audit.test.ts +189 -11
- package/src/cli/commands/audit.ts +73 -27
- package/src/cli/commands/build.test.ts +292 -9
- package/src/cli/commands/build.ts +156 -24
- package/src/cli/commands/check-lexicon-docs.ts +1 -1
- package/src/cli/commands/check-lexicon-examples.test.ts +29 -1
- package/src/cli/commands/check-lexicon-examples.ts +42 -10
- package/src/cli/commands/init-lexicon/templates/codegen.ts +9 -0
- package/src/cli/commands/init-lexicon/templates/project.ts +44 -4
- package/src/cli/commands/init-lexicon.test.ts +97 -2
- package/src/cli/commands/init-lexicon.ts +4 -2
- package/src/cli/commands/init.test.ts +35 -1
- package/src/cli/commands/init.ts +14 -3
- package/src/cli/commands/lint.test.ts +48 -0
- package/src/cli/commands/lint.ts +123 -0
- package/src/cli/commands/onboard.test.ts +75 -0
- package/src/cli/commands/onboard.ts +54 -23
- package/src/cli/handlers/build.test.ts +81 -1
- package/src/cli/handlers/build.ts +15 -1
- package/src/cli/handlers/graph.test.ts +3 -3
- package/src/cli/handlers/lifecycle.test.ts +195 -12
- package/src/cli/handlers/lifecycle.ts +123 -6
- package/src/cli/handlers/misc.ts +1 -1
- package/src/cli/handlers/operator.test.ts +183 -11
- package/src/cli/handlers/operator.ts +260 -55
- package/src/cli/handlers/run.test.ts +431 -1287
- package/src/cli/handlers/run.ts +365 -915
- package/src/cli/main.test.ts +23 -15
- package/src/cli/main.ts +88 -33
- package/src/cli/mcp/op-tools.ts +147 -88
- package/src/cli/mcp/resource-handlers.ts +10 -37
- package/src/cli/mcp/resources/context.ts +11 -12
- package/src/cli/mcp/server.test.ts +25 -27
- package/src/cli/mcp/server.ts +2 -2
- package/src/cli/registry.ts +26 -9
- package/src/codegen/docs.ts +1 -1
- package/src/codegen/generate-post-synth-barrel.test.ts +1 -1
- package/src/codegen/generate-post-synth-barrel.ts +1 -1
- package/src/components/README.md +3 -2
- package/src/components/auto-release.test.ts +4 -20
- package/src/components/auto-release.ts +17 -42
- package/src/components/capability.ts +4 -4
- package/src/components/cli-support.test.ts +10 -5
- package/src/components/cli-support.ts +52 -44
- package/src/components/component.schema.json +2 -2
- package/src/components/component.ts +3 -3
- package/src/components/driver-output.ts +14 -2
- package/src/components/driver.test.ts +92 -22
- package/src/components/driver.ts +193 -83
- package/src/components/index.ts +1 -6
- package/src/components/manifest-persistence.test.ts +2 -20
- package/src/components/manifest-persistence.ts +4 -24
- package/src/components/pilots/pilots-lint-clean.test.ts +11 -10
- package/src/components/run-progress.ts +6 -6
- package/src/components/verbs/run-agent.ts +11 -17
- package/src/components/verbs/verify.ts +2 -2
- package/src/deep-observation.test.ts +75 -0
- package/src/deep-observation.ts +48 -0
- package/src/discovery/collect.test.ts +3 -3
- package/src/discovery/files.ts +4 -4
- package/src/discovery/fold-import.ts +105 -2
- package/src/discovery/param-deps.test.ts +112 -1
- package/src/discovery/param-deps.ts +193 -0
- package/src/discovery/sandbox/bundle.ts +15 -1
- package/src/discovery/sandbox/config-wire.test.ts +2 -2
- package/src/discovery/sandbox/config-wire.ts +2 -2
- package/src/fold/fold.test.ts +56 -0
- package/src/fold/foldable-helpers.ts +81 -1
- package/src/fold-provenance-exclusion.test.ts +186 -0
- package/src/fold-provenance.test.ts +495 -0
- package/src/fold-provenance.ts +441 -0
- package/src/graph-ops.test.ts +2 -2
- package/src/graph-ops.ts +1 -1
- package/src/held-elsewhere.test.ts +102 -0
- package/src/held-elsewhere.ts +114 -0
- package/src/index.ts +3 -0
- package/src/kubectl-context.ts +3 -3
- package/src/lexicon-config.test.ts +5 -5
- package/src/lexicon-config.ts +4 -4
- package/src/lexicon-plugin-helpers.ts +1 -1
- package/src/lexicon.ts +120 -14
- package/src/lifecycle/change-set.test.ts +49 -0
- package/src/lifecycle/change-set.ts +67 -0
- package/src/lifecycle/converge-ledger.ts +1 -1
- package/src/lifecycle/deep-diff.test.ts +267 -14
- package/src/lifecycle/deep-diff.ts +217 -14
- package/src/lifecycle/deep-observe.test.ts +3 -1
- package/src/lifecycle/deep-observe.ts +16 -6
- package/src/lifecycle/gate-ledger.test.ts +74 -2
- package/src/lifecycle/gate-ledger.ts +143 -36
- package/src/lifecycle/index.ts +1 -0
- package/src/lifecycle/release-ledger.ts +2 -2
- package/src/lifecycle/run-ledger.test.ts +268 -0
- package/src/lifecycle/run-ledger.ts +201 -0
- package/src/lifecycle/symptoms.ts +3 -3
- package/src/lint/config.test.ts +82 -1
- package/src/lint/config.ts +112 -3
- package/src/lint/policy.test.ts +1 -1
- package/src/lint/post-synth.test.ts +31 -0
- package/src/lint/post-synth.ts +54 -1
- package/src/lint/rules/__fixtures__/comp/comp004/pass/neo4j-cluster.component.ts +2 -2
- package/src/lint/rules/__fixtures__/comp/comp004/pass/orders-table.component.ts +1 -1
- package/src/lint/rules/comp/comp.test.ts +1 -1
- package/src/lint/rules/comp/comp004-gate-needs-durable-runtime.ts +74 -0
- package/src/lint/rules/comp/index.ts +3 -3
- package/src/lint/rules/op/index.ts +23 -0
- package/src/lint/rules/op/ops012-activity-contract.test.ts +161 -0
- package/src/lint/rules/op/ops012-activity-contract.ts +64 -0
- package/src/lint/rules/op/ops013-step-output-ref.test.ts +237 -0
- package/src/lint/rules/op/ops013-step-output-ref.ts +98 -0
- package/src/lint/rules/op/ops014-converge-rule-refusals.test.ts +263 -0
- package/src/lint/rules/op/ops014-converge-rule-refusals.ts +179 -0
- package/src/lint/rules/op/support.ts +11 -0
- package/src/lint/suppressions.test.ts +163 -0
- package/src/lint/suppressions.ts +204 -0
- package/src/live-endpoint.ts +1 -1
- package/src/op/activities/activity-contracts.ts +66 -0
- package/src/op/activities/apply.test.ts +567 -0
- package/src/op/activities/apply.ts +662 -0
- package/src/op/activities/build.ts +26 -0
- package/src/op/activities/converge.test.ts +330 -0
- package/src/op/activities/converge.ts +449 -0
- package/src/op/activities/env-teardown.test.ts +187 -0
- package/src/op/activities/env-teardown.ts +171 -0
- package/src/op/activities/guard-validate.test.ts +139 -0
- package/src/op/activities/guard-validate.ts +223 -0
- package/src/op/activities/http-check.test.ts +48 -0
- package/src/op/activities/http-check.ts +55 -0
- package/src/op/activities/index.ts +119 -0
- package/src/op/activities/lexicon-upgrade.test.ts +492 -0
- package/src/op/activities/lexicon-upgrade.ts +673 -0
- package/src/op/activities/lifecycle.ts +85 -0
- package/src/op/activities/pipeline-audit.test.ts +67 -0
- package/src/op/activities/pipeline-audit.ts +201 -0
- package/src/op/activities/policy.test.ts +19 -0
- package/src/op/activities/policy.ts +37 -0
- package/src/op/activities/reconcile.test.ts +81 -0
- package/src/op/activities/reconcile.ts +187 -0
- package/src/op/activities/shell.ts +26 -0
- package/src/op/activities/teardown.ts +22 -0
- package/src/op/activities/util.ts +6 -0
- package/src/op/activities/wait.ts +69 -0
- package/src/op/activities/workflow-audit.test.ts +90 -0
- package/src/op/activities/workflow-audit.ts +203 -0
- package/src/op/activity-contract-registry.test.ts +98 -0
- package/src/op/activity-contract-registry.ts +114 -0
- package/src/op/activity-contract.test.ts +1 -1
- package/src/op/activity-contract.ts +37 -33
- package/src/op/activity-failure.ts +34 -0
- package/src/op/activity-profiles.test.ts +56 -0
- package/src/op/activity-profiles.ts +116 -0
- package/src/op/activity-registry.test.ts +37 -28
- package/src/op/activity-registry.ts +27 -56
- package/src/op/activity-runtime.ts +3 -47
- package/src/op/builders-exports.test.ts +0 -49
- package/src/op/builders-typed.test.ts +164 -0
- package/src/op/builders.ts +123 -39
- package/src/op/composites/apply-op.ts +208 -0
- package/src/op/composites/composites.test.ts +366 -0
- package/src/op/composites/converge-op.test.ts +168 -0
- package/src/op/composites/converge-op.ts +214 -0
- package/src/op/composites/index.ts +26 -0
- package/src/op/composites/lexicon-upgrade-op.test.ts +68 -0
- package/src/op/composites/lexicon-upgrade-op.ts +134 -0
- package/src/op/composites/pipeline-audit-op.test.ts +25 -0
- package/src/op/composites/pipeline-audit-op.ts +78 -0
- package/src/op/composites/reconcile-op.test.ts +51 -0
- package/src/op/composites/reconcile-op.ts +107 -0
- package/src/op/composites/watch-op.ts +108 -0
- package/src/op/composites/workflow-audit-op.test.ts +25 -0
- package/src/op/composites/workflow-audit-op.ts +88 -0
- package/src/op/converge-rule.ts +12 -10
- package/src/op/cron.test.ts +128 -0
- package/src/op/cron.ts +149 -0
- package/src/op/discover-root.test.ts +105 -1
- package/src/op/discover.test.ts +6 -2
- package/src/op/discover.ts +84 -16
- package/src/op/duration.ts +21 -0
- package/src/op/effect-step.test.ts +26 -11
- package/src/op/emulator-lifecycle.ts +1 -2
- package/src/op/gate.ts +155 -0
- package/src/op/generate-pipeline.test.ts +65 -3
- package/src/op/generate-pipeline.ts +19 -2
- package/src/op/index.ts +39 -6
- package/src/op/local-executor.test.ts +163 -34
- package/src/op/local-executor.ts +370 -102
- package/src/op/local-output.test.ts +95 -11
- package/src/op/local-output.ts +33 -4
- package/src/op/op-ir.test.ts +281 -0
- package/src/op/op-ir.ts +417 -0
- package/src/op/op-verb-class.ts +19 -5
- package/src/op/op.test.ts +26 -5
- package/src/op/operator.test.ts +175 -6
- package/src/op/operator.ts +63 -16
- package/src/op/receipt-store.ts +1 -1
- package/src/op/resource.ts +20 -2
- package/src/op/runtime.ts +203 -0
- package/src/op/runtimes/local.test.ts +181 -0
- package/src/op/runtimes/local.ts +212 -0
- package/src/op/step-output-ref.ts +15 -13
- package/src/op/types.ts +84 -24
- package/src/ownership.ts +1 -1
- package/src/provenance.test.ts +6 -0
- package/src/provenance.ts +21 -1
- package/src/serializer-walker.test.ts +42 -0
- package/src/serializer-walker.ts +21 -2
- package/dist/cli/handlers/op-progress.d.ts +0 -90
- package/dist/cli/handlers/op-progress.d.ts.map +0 -1
- package/dist/cli/handlers/run-client.d.ts +0 -127
- package/dist/cli/handlers/run-client.d.ts.map +0 -1
- package/dist/cli/handlers/run-report.d.ts +0 -5
- package/dist/cli/handlers/run-report.d.ts.map +0 -1
- package/dist/components/temporal-codegen-loader.d.ts +0 -27
- package/dist/components/temporal-codegen-loader.d.ts.map +0 -1
- package/dist/lint/rules/comp/comp004-gate-needs-temporal.d.ts +0 -37
- package/dist/lint/rules/comp/comp004-gate-needs-temporal.d.ts.map +0 -1
- package/src/cli/handlers/op-progress.test.ts +0 -268
- package/src/cli/handlers/op-progress.ts +0 -248
- package/src/cli/handlers/run-client.test.ts +0 -82
- package/src/cli/handlers/run-client.ts +0 -219
- package/src/cli/handlers/run-report.test.ts +0 -62
- package/src/cli/handlers/run-report.ts +0 -122
- package/src/components/temporal-codegen-loader.ts +0 -41
- package/src/lint/rules/comp/comp004-gate-needs-temporal.ts +0 -66
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"proof.d.ts","sourceRoot":"","sources":["../../src/audit/proof.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,OAAO,EAAgB,KAAK,QAAQ,EAAE,MAAM,WAAW,CAAC;AAExD,MAAM,WAAW,YAAY;IAC3B,2EAA2E;IAC3E,UAAU,CAAC,EAAE,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IACjE,2EAA2E;IAC3E,aAAa,CAAC,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,MAAM,GAAG,SAAS,CAAC;IACtD,4HAA4H;IAC5H,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;CACpC;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,MAAM,CAAC;IA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EAAE,EAAE,IAAI,GAAE,iBAAsB,GAAG,MAAM,CAoCzF"}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import type { AuditFinding } from "./core.js";
|
|
8
8
|
import type { UnclaimedFile } from "./discover.js";
|
|
9
|
-
import { type Authority, type Category, type FixKind, type RuleMeta, type Tier } from "./catalog.js";
|
|
9
|
+
import { type Authority, type Category, type FixKind, type Lineage, type RuleMeta, type Tier } from "./catalog.js";
|
|
10
10
|
import { type ProveOptions } from "./proof.js";
|
|
11
11
|
import type { Severity } from "../lint/rule.js";
|
|
12
12
|
/**
|
|
@@ -84,6 +84,11 @@ export interface SerializedFinding {
|
|
|
84
84
|
line?: number;
|
|
85
85
|
/** Redaction-safe fingerprint of a flagged value, when applicable (see `secrets.ts`). */
|
|
86
86
|
fingerprint?: string;
|
|
87
|
+
/** Set when the finding is an absence rather than a defect — see `PostSynthDiagnostic.missing` (chant #2113). */
|
|
88
|
+
missing?: {
|
|
89
|
+
kind: string;
|
|
90
|
+
scope: string;
|
|
91
|
+
};
|
|
87
92
|
lexicon: string;
|
|
88
93
|
tier: Tier;
|
|
89
94
|
fixKind: FixKind;
|
|
@@ -92,6 +97,8 @@ export interface SerializedFinding {
|
|
|
92
97
|
title: string;
|
|
93
98
|
remediation: string;
|
|
94
99
|
authority: Authority[];
|
|
100
|
+
/** Prior art: upstream tools whose rules check the same condition (credit, not authority). */
|
|
101
|
+
lineage: Lineage[];
|
|
95
102
|
/** Link to this rule's entry in the audit rules reference. */
|
|
96
103
|
docUrl: string;
|
|
97
104
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report-model.d.ts","sourceRoot":"","sources":["../../src/audit/report-model.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAA4B,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AY,CAAC,CAAC;IACxC,aAAa,CAAC,EAAE,YAAY,CAAC,eAAe,CAAC,CAAC;IAC9C,iIAAiI;IACjI,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;CACpC;AAED,2DAA2D;AAC3D,wBAAgB,gBAAgB,CAAC,QAAQ,EAAE,YAAY,EAAE,EAAE,IAAI,GAAE,iBAAsB,GAAG,WAAW,CAiDpG;AAED,2EAA2E;AAC3E,wBAAgB,eAAe,CAC7B,QAAQ,EAAE,YAAY,EAAE,EACxB,IAAI,GAAE;IAAE,QAAQ,CAAC,EAAE,aAAa,CAAC;IAAC,WAAW,CAAC,EAAE,MAAM,CAAC;IAAC,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IAAC,SAAS,CAAC,EAAE,aAAa,EAAE,CAAA;CAAO,GAC7H,eAAe,CA8BjB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../src/audit/report.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,
|
|
1
|
+
{"version":3,"file":"report.d.ts","sourceRoot":"","sources":["../../src/audit/report.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAC3C,OAAO,EAA4B,KAAK,QAAQ,EAAE,MAAM,WAAW,CAAC;AACpE,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAgB5C,MAAM,WAAW,aAAa;IAC5B,4CAA4C;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,sEAAsE;IACtE,KAAK,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACjD,iEAAiE;IACjE,UAAU,CAAC,EAAE,YAAY,CAAC,YAAY,CAAC,CAAC;IACxC,8EAA8E;IAC9E,aAAa,CAAC,EAAE,YAAY,CAAC,eAAe,CAAC,CAAC;IAC9C,6EAA6E;IAC7E,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;IACjB,sHAAsH;IACtH,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC;IACnC;;;;;OAKG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,YAAY,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC;CACtB;AAoDD,0CAA0C;AAC1C,wBAAgB,cAAc,CAAC,QAAQ,EAAE,YAAY,EAAE,EAAE,IAAI,GAAE,aAAkB,GAAG,MAAM,CAqCzF"}
|
|
@@ -6,6 +6,9 @@
|
|
|
6
6
|
* Each rule gets an `### <ID>` heading, which Starlight slugifies to `#<id>`
|
|
7
7
|
* (lowercased) — the anchor `ruleDocUrl()` links to.
|
|
8
8
|
*/
|
|
9
|
+
import { type RuleMeta } from "./catalog.js";
|
|
10
|
+
/** Exported for `rules-doc.test.ts` to exercise the alias/deprecated rendering directly against a synthetic `RuleMeta`, without needing a real catalog entry to carry either (chant #2113). */
|
|
11
|
+
export declare function ruleBlock(m: RuleMeta): string;
|
|
9
12
|
/**
|
|
10
13
|
* Render the full audit rules reference page (frontmatter + body). Aggregates
|
|
11
14
|
* the catalog across every audit lexicon (#687) — each provider's rule metadata
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules-doc.d.ts","sourceRoot":"","sources":["../../src/audit/rules-doc.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;
|
|
1
|
+
{"version":3,"file":"rules-doc.d.ts","sourceRoot":"","sources":["../../src/audit/rules-doc.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,OAAO,EAAoE,KAAK,QAAQ,EAAE,MAAM,WAAW,CAAC;AAqE5G,+LAA+L;AAC/L,wBAAgB,SAAS,CAAC,CAAC,EAAE,QAAQ,GAAG,MAAM,CAY7C;AAiCD;;;;;;GAMG;AACH,wBAAsB,oBAAoB,IAAI,OAAO,CAAC,MAAM,CAAC,CAqB5D"}
|
package/dist/audit/secrets.d.ts
CHANGED
|
@@ -75,6 +75,21 @@ export declare function fingerprintSecret(value: string): string;
|
|
|
75
75
|
* throwing.
|
|
76
76
|
*/
|
|
77
77
|
export declare function parseSecretsConfig(content: string): SecretsScanOptions;
|
|
78
|
+
/**
|
|
79
|
+
* Shannon entropy in bits per character. Exported so a lexicon's own
|
|
80
|
+
* secret-shape heuristic can score a candidate on the same scale this
|
|
81
|
+
* module's SEC010 catch-all uses (the terraform lexicon's
|
|
82
|
+
* `lint/secret-shape.ts`, #2110) instead of inventing a second one.
|
|
83
|
+
*/
|
|
84
|
+
export declare function shannonEntropy(s: string): number;
|
|
85
|
+
/**
|
|
86
|
+
* Cheap, format-agnostic "this doesn't look like a real secret" filter.
|
|
87
|
+
* Exported for the same reason {@link shannonEntropy} is: the placeholder
|
|
88
|
+
* vocabulary a scanner has to ignore (`changeme`, `example`, `your-api-key`,
|
|
89
|
+
* a run of one repeated character) is the same wherever the candidate came
|
|
90
|
+
* from, and a second copy of this list would drift from this one.
|
|
91
|
+
*/
|
|
92
|
+
export declare function looksLikePlaceholder(value: string): boolean;
|
|
78
93
|
/** The high-entropy catch-all's rule id (kept distinct so callers can special-case it). */
|
|
79
94
|
export declare const ENTROPY_RULE_ID = "SEC010";
|
|
80
95
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"secrets.d.ts","sourceRoot":"","sources":["../../src/audit/secrets.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAG3C,qFAAqF;AACrF,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC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C1B,yFAAyF;IACzF,KAAK,CAAC,EAAE,eAAe,EAAE,CAAC;CAC3B;AAOD;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAYvD;AAkDD;;;;;;GAMG;AACH,wBAAgB,kBAAkB,CAAC,OAAO,EAAE,MAAM,GAAG,kBAAkB,CAuBtE;AAID;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAShD;AAMD;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAK3D;AAkFD,2FAA2F;AAC3F,eAAO,MAAM,eAAe,WAAW,CAAC;AAIxC;;;;;;;GAOG;AACH,wBAAgB,uBAAuB,CAAC,KAAK,EAAE,MAAM,GAAG,OAAO,CAK9D;AAqED,kEAAkE;AAClE,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAGpD;AAED,wBAAgB,cAAc,CAAC,KAAK,EAAE,aAAa,EAAE,EAAE,IAAI,GAAE,kBAAuB,GAAG,YAAY,EAAE,CAmEpG"}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* TF023 (#2110): Terraform state, or the `.terraform/` working directory,
|
|
3
|
+
* committed to the repository.
|
|
4
|
+
*
|
|
5
|
+
* Every other rule in the TF family is a post-synth check over a parsed root
|
|
6
|
+
* module, contributed by the terraform lexicon. This one is not about HCL at
|
|
7
|
+
* all: the finding is that a path exists in version control, so there is
|
|
8
|
+
* nothing for `chant build` to check and nothing for the lexicon's parser to
|
|
9
|
+
* read. It therefore takes the shape `secrets.ts` established and `wrangler.ts`
|
|
10
|
+
* and `nginx.ts` copied, a path detector plus a check over the discovered file
|
|
11
|
+
* list, called from the audit CLI beside `scanForSecrets`, with its catalog
|
|
12
|
+
* entry in core's own `RULE_CATALOG` (./catalog.ts) rather than a lexicon's.
|
|
13
|
+
* It runs whether or not the terraform lexicon is installed.
|
|
14
|
+
*
|
|
15
|
+
* A state file is a committed secret store: it records every attribute of every
|
|
16
|
+
* managed resource, including the ones providers mark sensitive, in plaintext
|
|
17
|
+
* JSON. `.terraform/` is milder (providers and vendored modules) but is still
|
|
18
|
+
* hundreds of megabytes of machine-generated content, and it can hold a
|
|
19
|
+
* `terraform.tfstate` of its own for the workspace-local backend.
|
|
20
|
+
*
|
|
21
|
+
* Pure: no fs, no network, no Node-only global, so it is Workers-safe (epic #350). The
|
|
22
|
+
* walk that decides which paths reach here is `discover.ts`'s
|
|
23
|
+
* `collectCandidates`, which is also where a locally ignored path is dropped:
|
|
24
|
+
* see `isTerraformStatePath` there and `gitignoreCoversTerraformState` below.
|
|
25
|
+
*/
|
|
26
|
+
import type { AuditFinding } from "./core.js";
|
|
27
|
+
/** The minimal file shape the check needs (matches `discover.ts`'s `RepoFile`). */
|
|
28
|
+
export interface ScannableFile {
|
|
29
|
+
path: string;
|
|
30
|
+
content: string;
|
|
31
|
+
}
|
|
32
|
+
/** `terraform.tfstate`, `terraform.tfstate.backup`, and any other `*.tfstate`. */
|
|
33
|
+
export declare function isTerraformStateFile(path: string): boolean;
|
|
34
|
+
/** The `.terraform` working directory itself, or anything inside it. */
|
|
35
|
+
export declare function isTerraformWorkDir(path: string): boolean;
|
|
36
|
+
/** Either of the two shapes TF023 reports. */
|
|
37
|
+
export declare function isTerraformStatePath(path: string): boolean;
|
|
38
|
+
export declare function gitignoreCoversTerraformState(gitignore: string, path: string): boolean;
|
|
39
|
+
/**
|
|
40
|
+
* Report TF023 for every committed state file and `.terraform/` directory in
|
|
41
|
+
* the file list. One finding per path, and one for the `.terraform` directory
|
|
42
|
+
* as a whole rather than per file inside it: a vendored provider binary is not
|
|
43
|
+
* a separate finding from the directory that holds it.
|
|
44
|
+
*/
|
|
45
|
+
export declare function auditTerraformState(files: ScannableFile[]): AuditFinding[];
|
|
46
|
+
//# sourceMappingURL=terraform-state.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"terraform-state.d.ts","sourceRoot":"","sources":["../../src/audit/terraform-state.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;GAwBG;AAEH,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,QAAQ,CAAC;AAE3C,mFAAmF;AACnF,MAAM,WAAW,aAAa;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,kFAAkF;AAClF,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAG1D;AAED,wEAAwE;AACxE,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAGxD;AAED,8CAA8C;AAC9C,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,GAAG,OAAO,CAE1D;AAoBD,wBAAgB,6BAA6B,CAAC,SAAS,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CActF;AAED;;;;;GAKG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,aAAa,EAAE,GAAG,YAAY,EAAE,CAuC1E"}
|
package/dist/build.d.ts
CHANGED
|
@@ -3,7 +3,8 @@ import type { Serializer, SerializerResult } from "./serializer.js";
|
|
|
3
3
|
import type { OwnershipMarker } from "./ownership.js";
|
|
4
4
|
import type { BuildError } from "./errors.js";
|
|
5
5
|
import type { IntrinsicDef, BuildRootContributor } from "./lexicon.js";
|
|
6
|
-
import type
|
|
6
|
+
import { type BuildParamProvenance } from "./provenance.js";
|
|
7
|
+
import { type FoldProvenance } from "./fold-provenance.js";
|
|
7
8
|
import { DiscoveryError } from "./errors.js";
|
|
8
9
|
import { LexiconOutput } from "./lexicon-output.js";
|
|
9
10
|
import { type FoldDecision } from "./discovery/index.js";
|
|
@@ -179,6 +180,21 @@ export interface BuildResult {
|
|
|
179
180
|
* supplies none.
|
|
180
181
|
*/
|
|
181
182
|
buildParams: BuildParamProvenance[];
|
|
183
|
+
/**
|
|
184
|
+
* chant #2161 — emitted property path to origin, per entity: which composite
|
|
185
|
+
* parameter produced the field, which literal the composite fixes, which the
|
|
186
|
+
* author declared directly, and which this build could not attribute.
|
|
187
|
+
*
|
|
188
|
+
* Beside the output on purpose, and never inside it. Nothing here is passed
|
|
189
|
+
* to a serializer, so it cannot reach the document an applier writes; see
|
|
190
|
+
* ./fold-provenance.ts's module doc and `fold-provenance-exclusion.test.ts`.
|
|
191
|
+
*
|
|
192
|
+
* Every entity with properties appears. The origins are as fine as the build
|
|
193
|
+
* managed: a run build, or a fold build over a factory outside the
|
|
194
|
+
* interpretable subset, records `unknown` for a composite's fields rather
|
|
195
|
+
* than guessing.
|
|
196
|
+
*/
|
|
197
|
+
foldProvenance: FoldProvenance;
|
|
182
198
|
}
|
|
183
199
|
/**
|
|
184
200
|
* Partitions entities by their lexicon field.
|
package/dist/build.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,aAAa,CAAC;AACnD,OAAO,KAAK,EAAE,UAAU,EAAsB,MAAM,UAAU,CAAC;AAC/D,OAAO,KAAK,EAAE,YAAY,EAAyB,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAC3F,OAAO,KAAK,
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../src/build.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC/C,OAAO,KAAK,EAAE,UAAU,EAAE,gBAAgB,EAAE,MAAM,cAAc,CAAC;AACjE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,a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AACH,wBAAsB,qBAAqB,CACzC,IAAI,EAAE,sBAAsB,EAC5B,WAAW,EAAE,UAAU,EAAE,EACzB,KAAK,SAAsB,EAC3B,gBAAgB,CAAC,EAAE,GAAG,CAAC,MAAM,CAAC,EAC9B,OAAO,CAAC,EAAE,YAAY,GACrB,OAAO,CAAC,WAAW,CAAC,CAgBtB"}
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The claimed-field set (#2160) — which properties this declaration ever set.
|
|
3
|
+
*
|
|
4
|
+
* chant's ownership question has always been answered per resource, from a
|
|
5
|
+
* marker: is this thing mine. The finer question was never asked. A live
|
|
6
|
+
* property tree carries fields nobody declared — an autoscaler's replica count,
|
|
7
|
+
* a controller's annotation, a value a person typed into a console — and the
|
|
8
|
+
* deep diff (./lifecycle/deep-diff.ts) reported every one of them as a
|
|
9
|
+
* difference, because a difference is all a two-way comparison can produce.
|
|
10
|
+
*
|
|
11
|
+
* Every lexicon has been paying for that in hand-written knowledge.
|
|
12
|
+
* `DeepNormalizationHooks.prune` is where the noise goes, and three of the four
|
|
13
|
+
* hooks exist because the live tree holds fields the declaration never
|
|
14
|
+
* mentions. Kubernetes is the one substrate that escapes it: the API server
|
|
15
|
+
* records a field manager per field (`metadata.managedFields`), so a foreign
|
|
16
|
+
* write is a fact about the object rather than a rule somebody maintains.
|
|
17
|
+
* `lexicons/gcp/src/deep-observe.ts` says why nobody else can do that — "a REST
|
|
18
|
+
* payload carries no field ownership" — and answers with a static per-kind
|
|
19
|
+
* table instead.
|
|
20
|
+
*
|
|
21
|
+
* The declaration is the table they are missing. A `ResourceDeclarable`'s
|
|
22
|
+
* `props` are exactly the fields chant set, they are available on every
|
|
23
|
+
* substrate, and they come from the same build that produced the entity.
|
|
24
|
+
* Nothing has to come back from the provider.
|
|
25
|
+
*
|
|
26
|
+
* ## The grammar is the diff's grammar
|
|
27
|
+
*
|
|
28
|
+
* A claim is a set of property paths in the form `flattenDeepProperties`
|
|
29
|
+
* produces: `spec.replicas`, `Tags[#env].Value`, `ingress[0].fromPort`. Same
|
|
30
|
+
* hooks, same normalization, same flattening — so a path in the claim and a
|
|
31
|
+
* path in the diff are the same string or they are different fields. Deriving
|
|
32
|
+
* the claim any other way (walking raw props, say) would give a set that agrees
|
|
33
|
+
* with the diff for most trees and disagrees for exactly the ones the hooks
|
|
34
|
+
* were written for.
|
|
35
|
+
*
|
|
36
|
+
* ## Membership is exact, deliberately
|
|
37
|
+
*
|
|
38
|
+
* A claimed path is matched exactly, never by its index-erased pattern
|
|
39
|
+
* (`Tags[].Value`). The pattern is the right test for
|
|
40
|
+
* {@link import("./deep-observation.js").DeepNode.counterpart}, which asks a
|
|
41
|
+
* shape question ("did source declare tag values at all") before array order is
|
|
42
|
+
* canonical. Classification asks a value question, and it pairs a declared
|
|
43
|
+
* value with a live one at the same path. A pattern match would answer
|
|
44
|
+
* "declared" for a path that has no declared value to compare against, which is
|
|
45
|
+
* neither of the two declared classifications and would quietly become a third
|
|
46
|
+
* meaning of "drift".
|
|
47
|
+
*
|
|
48
|
+
* ## What the claim does not decide
|
|
49
|
+
*
|
|
50
|
+
* It does not prune. A field chant never declared still reaches the diff, still
|
|
51
|
+
* appears in the report, and still carries its live value — it is reported as
|
|
52
|
+
* unclaimed rather than dropped, because chant #1191 already lost a
|
|
53
|
+
* console-added label by pruning what it could not attribute. What the claim
|
|
54
|
+
* changes is the verdict: unclaimed is not drift, and drift is the only thing
|
|
55
|
+
* that may become an update.
|
|
56
|
+
*/
|
|
57
|
+
import { type DeepNormalizationHooks } from "./deep-observation.js";
|
|
58
|
+
/**
|
|
59
|
+
* The set of property paths one declaration claims — every path its `props`
|
|
60
|
+
* flatten to, in the diff's own grammar.
|
|
61
|
+
*
|
|
62
|
+
* Opaque on purpose: {@link isClaimed} is the only membership test, so a
|
|
63
|
+
* consumer cannot accidentally invent a looser one (see the module doc on
|
|
64
|
+
* pattern matching).
|
|
65
|
+
*/
|
|
66
|
+
export interface ClaimedFieldSet {
|
|
67
|
+
/** Flattened property paths, exactly as the diff addresses them. */
|
|
68
|
+
readonly paths: ReadonlySet<string>;
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* How one LIVE value relates to the claim. Three answers where a two-way diff
|
|
72
|
+
* had two:
|
|
73
|
+
*
|
|
74
|
+
* - `declared-equal` — chant set this field and the cloud agrees. Nothing to say.
|
|
75
|
+
* - `declared-changed` — chant set this field and the cloud holds something
|
|
76
|
+
* else. This is drift, and it is the only classification that may become an
|
|
77
|
+
* update.
|
|
78
|
+
* - `undeclared` — the field has a value and chant never set it. Somebody else
|
|
79
|
+
* holds it. Reported, never proposed, never counted as drift.
|
|
80
|
+
*
|
|
81
|
+
* A declared path with no live value at all is not in this enumeration: there
|
|
82
|
+
* is no live value to classify. The diff keeps reporting that case as `absent`.
|
|
83
|
+
*/
|
|
84
|
+
export type FieldClaim = "declared-equal" | "declared-changed" | "undeclared";
|
|
85
|
+
/** Which source answered "who holds this field". */
|
|
86
|
+
export type FieldClaimSource =
|
|
87
|
+
/**
|
|
88
|
+
* The substrate named the manager. Kubernetes' `metadata.managedFields`, and
|
|
89
|
+
* nowhere else today — strictly better than the claim, because it says who.
|
|
90
|
+
*/
|
|
91
|
+
"field-manager"
|
|
92
|
+
/**
|
|
93
|
+
* The declaration answered: the path is not in the claimed-field set, so
|
|
94
|
+
* chant never set it. Says that it is somebody else's without saying whose,
|
|
95
|
+
* which is the best any substrate without ownership metadata can do.
|
|
96
|
+
*/
|
|
97
|
+
| "claimed-fields";
|
|
98
|
+
/** An empty claim — a declaration with no props, and the safe default. */
|
|
99
|
+
export declare const NO_CLAIMED_FIELDS: ClaimedFieldSet;
|
|
100
|
+
/**
|
|
101
|
+
* Build a claim from an already-normalized declared property tree.
|
|
102
|
+
*
|
|
103
|
+
* `options` must be the same {@link FlattenDeepOptions} the diff flattens the
|
|
104
|
+
* declared side with, or the two disagree about keyed list segments.
|
|
105
|
+
*/
|
|
106
|
+
export declare function claimedFieldsOfTree(declared: Record<string, unknown>, options: {
|
|
107
|
+
entityType: string;
|
|
108
|
+
hooks?: DeepNormalizationHooks;
|
|
109
|
+
}): ClaimedFieldSet;
|
|
110
|
+
/**
|
|
111
|
+
* Build a claim straight from a declaration's raw `props` — the entry point for
|
|
112
|
+
* a consumer that has an entity and no diff.
|
|
113
|
+
*
|
|
114
|
+
* Normalizes with the lexicon's own hooks first, exactly as the diff does, so
|
|
115
|
+
* pruned and masked paths land the same way on both routes. `livePaths` is the
|
|
116
|
+
* counterpart set (`deepPathSet` over the live tree) where the caller has one:
|
|
117
|
+
* without it the pass runs one-sided and any hook gated on
|
|
118
|
+
* {@link import("./deep-observation.js").DeepNode.counterpart} sees `"unknown"`,
|
|
119
|
+
* which is the honest answer and prunes nothing default-related.
|
|
120
|
+
*/
|
|
121
|
+
export declare function claimedFieldsOfProps(props: Record<string, unknown>, options: {
|
|
122
|
+
entityType: string;
|
|
123
|
+
hooks?: DeepNormalizationHooks;
|
|
124
|
+
livePaths?: ReadonlySet<string>;
|
|
125
|
+
}): ClaimedFieldSet;
|
|
126
|
+
/** True when this declaration set the property at `path`. */
|
|
127
|
+
export declare function isClaimed(claimed: ClaimedFieldSet | undefined, path: string): boolean;
|
|
128
|
+
/**
|
|
129
|
+
* The claim as a sorted array — the wire form, for
|
|
130
|
+
* {@link import("./deep-observation.js").DeepResourceObservation.claimedFields}
|
|
131
|
+
* and for anything serializing a result to JSON.
|
|
132
|
+
*/
|
|
133
|
+
export declare function claimedFieldPaths(claimed: ClaimedFieldSet): string[];
|
|
134
|
+
/** Rebuild a claim from its wire form. */
|
|
135
|
+
export declare function claimedFieldsFromPaths(paths: Iterable<string>): ClaimedFieldSet;
|
|
136
|
+
/**
|
|
137
|
+
* Classify one live value against the claim.
|
|
138
|
+
*
|
|
139
|
+
* `declaredValue` is only read when the path is claimed; pass whatever the
|
|
140
|
+
* declared tree holds there (including `undefined`, which is a legal declared
|
|
141
|
+
* value on a claimed path only in the sense that the flattener never emits it).
|
|
142
|
+
*/
|
|
143
|
+
export declare function classifyLiveField(input: {
|
|
144
|
+
claimed: ClaimedFieldSet | undefined;
|
|
145
|
+
path: string;
|
|
146
|
+
declaredValue: unknown;
|
|
147
|
+
liveValue: unknown;
|
|
148
|
+
}): FieldClaim;
|
|
149
|
+
/**
|
|
150
|
+
* Who holds an undeclared live field, and which source said so.
|
|
151
|
+
*
|
|
152
|
+
* The manager wins where the substrate records one: "owned by `hpa-controller`"
|
|
153
|
+
* and "chant never set it" are the same verdict with very different amounts of
|
|
154
|
+
* information in them, and an operator can act on the first. The claim is the
|
|
155
|
+
* fallback, and it answers on every substrate.
|
|
156
|
+
*/
|
|
157
|
+
export declare function heldBy(fieldOwners: Record<string, string> | undefined, path: string): {
|
|
158
|
+
holder?: string;
|
|
159
|
+
source: FieldClaimSource;
|
|
160
|
+
};
|
|
161
|
+
//# sourceMappingURL=claimed-fields.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"claimed-fields.d.ts","sourceRoot":"","sources":["../src/claimed-fields.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AAEH,OAAO,EAIL,KAAK,sBAAsB,EAC5B,MAAM,oBAAoB,CAAC;AAE5B;;;;;;;GAOG;AACH,MAAM,WAAW,eAAe;IAC9B,oEAAoE;IACpE,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CACrC;AAED;;;;;;;;;;;;;GAaG;AACH,MAAM,MAAM,UAAU,GAAG,gBAAgB,GAAG,kBAAkB,GAAG,YAAY,CAAC;AAE9E,oDAAoD;AACpD,MAAM,MAAM,gBAAgB;AAC1B;;;GAGG;AACD,eAAe;AACjB;;;;GAIG;GACD,gBAAgB,CAAC;AAErB,0EAA0E;AAC1E,eAAO,MAAM,iBAAiB,EAAE,eAA8C,CAAC;AAE/E;;;;;GAKG;AACH,wBAAgB,mBAAm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chant #1108) so every command that discovers project source before
|
|
6
6
|
* running it resolves `chant.config.ts`'s declared `buildParams` the exact
|
|
7
7
|
* same way: `chant build` (`../commands/build.ts`'s `buildCommand`), the
|
|
8
|
-
* component deploy driver (`./handlers/run.ts`'s `chant run --components`
|
|
9
|
-
*
|
|
8
|
+
* component deploy driver (`./handlers/run.ts`'s `chant run --components`),
|
|
9
|
+
* and generate mode (`./handlers/build.ts`'s
|
|
10
10
|
* `chant build --components --generate <lexicon>`).
|
|
11
11
|
*
|
|
12
12
|
* Before #1108, only `buildCommand` ran this sequence — `chant run
|
|
@@ -53,6 +53,20 @@ export interface CommandGroup {
|
|
|
53
53
|
description: string;
|
|
54
54
|
/** Verbs in this group. */
|
|
55
55
|
commands: CommandGroupCommand[];
|
|
56
|
+
/**
|
|
57
|
+
* The verb to run when the group name is given on its own — `chant acp`
|
|
58
|
+
* rather than `chant acp serve` (#2125). Named here rather than assumed to
|
|
59
|
+
* be the first verb, because a group whose bare form should be a usage
|
|
60
|
+
* error (`chant kube`) must stay one: omitting this field is how a group
|
|
61
|
+
* says it has no default.
|
|
62
|
+
*
|
|
63
|
+
* The token after the group name decides which reading applies, and that
|
|
64
|
+
* decision belongs to the caller that still holds the raw argv
|
|
65
|
+
* (`../cli/main.ts`'s `tryPluginCommand`): with a default verb, `chant acp
|
|
66
|
+
* --durable-requests` has no verb token to consume, so the flag is the
|
|
67
|
+
* default verb's argument rather than a verb it does not have.
|
|
68
|
+
*/
|
|
69
|
+
defaultVerb?: string;
|
|
56
70
|
}
|
|
57
71
|
/**
|
|
58
72
|
* Top-level command words core's own static registry already owns
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command-group.d.ts","sourceRoot":"","sources":["../../src/cli/command-group.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD;;;;;;;;;;;;;;;;;;GAkBG;AAEH,qDAAqD;AACrD,MAAM,WAAW,mBAAmB;IAClC,gEAAgE;IAChE,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;;;OAQG;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,2DAA2D;AAC3D,MAAM,WAAW,mBAAmB;IAClC,sDAAsD;IACtD,IAAI,EAAE,MAAM,CAAC;IACb,wEAAwE;IACxE,WAAW,EAAE,MAAM,CAAC;IACpB,oDAAoD;IACpD,OAAO,EAAE,CAAC,GAAG,EAAE,mBAAmB,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;CACxD;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,gFAAgF;IAChF,IAAI,EAAE,MAAM,CAAC;IACb,uEAAuE;IACvE,WAAW,EAAE,MAAM,CAAC;IACpB,2BAA2B;IAC3B,QAAQ,EAAE,mBAAmB,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"command-group.d.ts","sourceRoot":"","sources":["../../src/cli/command-group.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAEhD;;;;;;;;;;;;;;;;;;GAkBG;AAEH,qDAAqD;AACrD,MAAM,WAAW,mBAAmB;IAClC,gEAAgE;IAChE,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;;;OAQG;IACH,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED,2DAA2D;AAC3D,MAAM,WAAW,mBAAmB;IAClC,sDAAsD;IACtD,IAAI,EAAE,MAAM,CAAC;IACb,wEAAwE;IACxE,WAAW,EAAE,MAAM,CAAC;IACpB,oDAAoD;IACpD,OAAO,EAAE,CAAC,GAAG,EAAE,mBAAmB,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;CACxD;AAED;;;GAGG;AACH,MAAM,WAAW,YAAY;IAC3B,gFAAgF;IAChF,IAAI,EAAE,MAAM,CAAC;IACb,uEAAuE;IACvE,WAAW,EAAE,MAAM,CAAC;IACpB,2BAA2B;IAC3B,QAAQ,EAAE,mBAAmB,EAAE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KAAK,CAAC;IAAC,QAAQ,EAAE,MAAM,CAAA;CAAE,CAAC;AAEtC;;;;;;GAMG;AACH,wBAAsB,oBAAoB,CACxC,OAAO,EAAE,SAAS,aAAa,EAAE,EACjC,SAAS,EAAE,MAAM,EACjB,QAAQ,EAAE,MAAM,GAAG,SAAS,EAC5B,OAAO,EAAE,MAAM,EAAE,GAChB,OAAO,CAAC,oBAAoB,CAAC,CAa/B;AAED;;;;GAIG;AACH,wBAAgB,uBAAuB,CAAC,MAAM,EAAE,SAAS,YAAY,EAAE,GAAG,MAAM,CAO/E"}
|
|
@@ -10,7 +10,17 @@ import { type SecretsScanOptions } from "../../audit/secrets.js";
|
|
|
10
10
|
import { type ReportTheme } from "../../audit/report-html.js";
|
|
11
11
|
export type AuditFormat = "stylish" | "json" | "sarif" | "markdown" | "html";
|
|
12
12
|
export type AuditTier = "merge-worthy" | "all";
|
|
13
|
-
|
|
13
|
+
/**
|
|
14
|
+
* `"error"` (chant #2113) is the minimum-failure-severity floor tflint's
|
|
15
|
+
* `--minimum-failure-severity` maps onto (`error | warning | notice`): unlike
|
|
16
|
+
* `"merge-worthy"`/`"warning"` above (which key off a rule's catalog `tier`
|
|
17
|
+
* or a finding's severity being at-or-above warning), `"error"` fails only on
|
|
18
|
+
* an `error`-severity finding, decoupling what CI fails a build over from
|
|
19
|
+
* what a rule ships reporting by default. It's the lever that lets a new
|
|
20
|
+
* rule ship at `warning` and be promoted to `error` later without a pipeline
|
|
21
|
+
* pinned to `--fail-on error` breaking the moment the rule starts firing.
|
|
22
|
+
*/
|
|
23
|
+
export type AuditFailOn = "merge-worthy" | "warning" | "error" | "none";
|
|
14
24
|
export interface AuditCommandOptions {
|
|
15
25
|
/** Repo root/dir to scan, or an https:// repo URL to fetch and audit. */
|
|
16
26
|
path: string;
|
|
@@ -64,6 +74,12 @@ export interface AuditCommandResult {
|
|
|
64
74
|
unclaimed?: UnclaimedFile[];
|
|
65
75
|
/** Where `output` belongs; diagnostics go to stderr, reports to stdout (default). */
|
|
66
76
|
stream?: "stdout" | "stderr";
|
|
77
|
+
/**
|
|
78
|
+
* Findings an inline `# chant-ignore*` comment suppressed (chant #2111),
|
|
79
|
+
* counted, never dropped silently, mirroring `chant build`'s equivalent
|
|
80
|
+
* summary line.
|
|
81
|
+
*/
|
|
82
|
+
suppressedCount?: number;
|
|
67
83
|
}
|
|
68
84
|
/** Exit code when the audit had no lexicons to look with. Distinct from 1 (findings / failure). */
|
|
69
85
|
export declare const NO_LEXICONS_EXIT_CODE = 2;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/audit.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAc,KAAK,UAAU,EAAE,KAAK,YAAY,EAAE,KAAK,cAAc,
|
|
1
|
+
{"version":3,"file":"audit.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/audit.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAIH,OAAO,EAAc,KAAK,UAAU,EAAE,KAAK,YAAY,EAAE,KAAK,cAAc,EAAyB,MAAM,kBAAkB,CAAC;AAC9H,OAAO,EAAsF,KAAK,YAAY,EAAiB,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAEhL,OAAO,EAAsC,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAKlG,OAAO,EAAc,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAOvE,MAAM,MAAM,WAAW,GAAG,SAAS,GAAG,MAAM,GAAG,OAAO,GAAG,UAAU,GAAG,MAAM,CAAC;AAC7E,MAAM,MAAM,SAAS,GAAG,cAAc,GAAG,KAAK,CAAC;AAC/C;;;;;;;;;GASG;AACH,MAAM,MAAM,WAAW,GAAG,cAAc,GAAG,SAAS,GAAG,OAAO,GAAG,MAAM,CAAC;AAExE,MAAM,WAAW,mBAAmB;IAClC,yEAAyE;IACzE,IAAI,EAAE,MAAM,CAAC;IACb,MAA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AAM,qBAAqB,IAAI,CAAC;AAYvC;;;;GAIG;AACH,wBAAgB,WAAW,CAAC,QAAQ,EAAE,MAAM,EAAE,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAGtE;AAkDD;;;GAGG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,GAAE,MAAM,CAAC,UAAwB,GAAG,MAAM,GAAG,SAAS,CAiBlG;AA4CD,oEAAoE;AACpE,wBAAgB,aAAa,CAAC,MAAM,EAAE,UAAU,EAAE,GAAG,MAAM,EAAE,CAS5D;AAgID,mDAAmD;AACnD,wBAAsB,YAAY,CAAC,OAAO,EAAE,mBAAmB,GAAG,OAAO,CAAC,kBAAkB,CAAC,CA4K5F;AAED,uCAAuC;AACvC,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,kBAAkB,GAAG,IAAI,CAWjE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/build.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,UAAU,EAAoB,MAAM,kBAAkB,CAAC;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/build.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,UAAU,EAAoB,MAAM,kBAAkB,CAAC;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAgBnD,OAAO,EAAuC,KAAK,cAAc,EAAE,MAAM,2BAA2B,CAAC;AAMrG;;GAEG;AACH,MAAM,WAAW,YAAY;IAC3B,uCAAuC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,4CAA4C;IAC5C,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oBAAoB;IACpB,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;IACxB,2CAA2C;IAC3C,WAAW,E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AgB,sBAAsB,CAAC,SAAS,EAAE,SAAS;IAAE,IAAI,EAAE,MAAM,CAAA;CAAE,EAAE,GAAG,MAAM,CAMrF;AAED;;;;;GAKG;AACH,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,cAAc,EAAE,SAAS,EAAE,MAAM,GAAG,MAAM,CAsBpF;AAiDD;;GAEG;AACH,wBAAgB,WAAW,CAAC,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,CAIlD;AAED;;GAEG;AACH,wBAAgB,aAAa,CAAC,QAAQ,EAAE,MAAM,EAAE,GAAG,IAAI,CAItD;AAED;;;GAGG;AACH,wBAAgB,iBAAiB,CAC/B,OAAO,EAAE,YAAY,EACrB,SAAS,CAAC,EAAE,CAAC,MAAM,EAAE,WAAW,KAAK,IAAI,GACxC,MAAM,IAAI,CAmCZ"}
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* The contract used to check documentation by counting files — "at least 1
|
|
5
5
|
* .mdx page" at tier 1, "at least 8" at tier 2 — and never opened one. That
|
|
6
6
|
* counts a page nothing links to exactly the same as a page a reader can
|
|
7
|
-
* actually find, so azure,
|
|
7
|
+
* actually find, so azure, helm and github each accumulated
|
|
8
8
|
* hand-added pages that appear in no sidebar and are reachable only by typing
|
|
9
9
|
* their URL. Azure's getting-started, resource reference and composites pages
|
|
10
10
|
* were all invisible while its ≥8-page check passed comfortably — the count
|
|
@@ -23,9 +23,18 @@
|
|
|
23
23
|
* diagnostic left at `error` severity fails the example. Warnings do not.
|
|
24
24
|
* An example is what a user copies wholesale; it must not teach a pattern
|
|
25
25
|
* the lexicon it demonstrates flags as an error.
|
|
26
|
+
*
|
|
27
|
+
* #2101 added the third axis: core's own Op-model checks (OPS012/OPS013/
|
|
28
|
+
* OPS014, `../../lint/rules/op/`) run over the same result, as `chant build`
|
|
29
|
+
* runs them, so an example carrying an Op has that Op validated here rather
|
|
30
|
+
* than only when a user builds the example themselves. They are given the
|
|
31
|
+
* activity contracts every loaded lexicon declares, resolved the same way
|
|
32
|
+
* `chant build` resolves them, so a step calling that lexicon's own activity
|
|
33
|
+
* validates against its own schemas.
|
|
26
34
|
*/
|
|
27
35
|
import { type BuildResult } from "../../build.js";
|
|
28
36
|
import { type PostSynthDiagnostic } from "../../lint/post-synth.js";
|
|
37
|
+
import type { ActivityContract } from "../../op/activity-contract.js";
|
|
29
38
|
import { applyConfiguredSeverity } from "../../lint/config.js";
|
|
30
39
|
import type { LexiconPlugin } from "../../lexicon.js";
|
|
31
40
|
export interface ExampleBuildResult {
|
|
@@ -34,13 +43,14 @@ export interface ExampleBuildResult {
|
|
|
34
43
|
detail?: string;
|
|
35
44
|
}
|
|
36
45
|
/**
|
|
37
|
-
* Run
|
|
38
|
-
*
|
|
39
|
-
* `cli/commands/build.ts` applies — and
|
|
40
|
-
* severity. Project `lint.policies` are not
|
|
41
|
-
* example author's organizational policy, not the
|
|
46
|
+
* Run core's Op-model checks over the whole result, then each plugin's own
|
|
47
|
+
* post-synth checks against that plugin's output — the same scoping and
|
|
48
|
+
* `lint.rules` severity resolution `cli/commands/build.ts` applies — and
|
|
49
|
+
* return what is left at `error` severity. Project `lint.policies` are not
|
|
50
|
+
* run here: those are the example author's organizational policy, not the
|
|
51
|
+
* lexicon's contract.
|
|
42
52
|
*/
|
|
43
|
-
export declare function postSynthErrors(plugins: LexiconPlugin[], result: BuildResult, lintRules: Parameters<typeof applyConfiguredSeverity>[1]): PostSynthDiagnostic[];
|
|
53
|
+
export declare function postSynthErrors(plugins: LexiconPlugin[], result: BuildResult, lintRules: Parameters<typeof applyConfiguredSeverity>[1], activityContracts?: ReadonlyMap<string, ActivityContract>): PostSynthDiagnostic[];
|
|
44
54
|
/**
|
|
45
55
|
* Build every non-empty example under `<lexiconDir>/examples/*\/src` and
|
|
46
56
|
* report per-example pass/fail. Returns `[]` when the lexicon has no
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"check-lexicon-examples.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/check-lexicon-examples.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"check-lexicon-examples.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/check-lexicon-examples.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAIH,OAAO,EAAS,KAAK,WAAW,EAAE,MAAM,aAAa,CAAC;AAKtD,OAAO,EAAsB,KAAK,mBAAmB,EAAE,MAAM,uBAAuB,CAAC;AAGrF,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,4BAA4B,CAAC;AACnE,OAAO,EAAE,uBAAuB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAGnD,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,MAAM,CAAC;IAChB,EAAE,EAAE,OAAO,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAC7B,OAAO,EAAE,aAAa,EAAE,EACxB,MAAM,EAAE,WAAW,EACnB,SAAS,EAAE,UAAU,CAAC,OAAO,uBAAuB,CAAC,CAAC,CAAC,CAAC,EACxD,iBAAiB,CAAC,EAAE,WAAW,CAAC,MAAM,EAAE,gBAAgB,CAAC,GACxD,mBAAmB,EAAE,CA8BvB;AAOD;;;;;GAKG;AACH,wBAAsB,kBAAkB,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,kBAAkB,EAAE,CAAC,CAsF1F"}
|
|
@@ -5,5 +5,6 @@ export declare function generateCodegenGenerateTs(): string;
|
|
|
5
5
|
export declare function generateCodegenGenerateCliTs(): string;
|
|
6
6
|
export declare function generateCodegenNamingTs(): string;
|
|
7
7
|
export declare function generateCodegenPackageTs(name: string): string;
|
|
8
|
+
export declare function generateCodegenDocsCliTs(): string;
|
|
8
9
|
export declare function generateCodegenDocsTs(name: string): string;
|
|
9
10
|
//# sourceMappingURL=codegen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codegen.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/init-lexicon/templates/codegen.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,wBAAgB,yBAAyB,IAAI,MAAM,CA6ElD;AAED,wBAAgB,4BAA4B,IAAI,MAAM,CAYrD;AAED,wBAAgB,uBAAuB,IAAI,MAAM,CAmChD;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"codegen.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/init-lexicon/templates/codegen.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,wBAAgB,yBAAyB,IAAI,MAAM,CA6ElD;AAED,wBAAgB,4BAA4B,IAAI,MAAM,CAYrD;AAED,wBAAgB,uBAAuB,IAAI,MAAM,CAmChD;AAED,wBAAgB,wBAAwB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CA4B7D;AAED,wBAAgB,wBAAwB,IAAI,MAAM,CAMjD;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CA2B1D"}
|
|
@@ -24,4 +24,11 @@ export declare function generateSerializerTs(name: string, names: {
|
|
|
24
24
|
}): string;
|
|
25
25
|
export declare function generateValidateTs(name: string): string;
|
|
26
26
|
export declare function generateValidateCliTs(): string;
|
|
27
|
+
/**
|
|
28
|
+
* Thin entry point for `npm run bundle`, called from `prepack`. Writes
|
|
29
|
+
* `src/generated/` (via the generate pipeline) and `dist/` (via the package
|
|
30
|
+
* pipeline plus `writeBundleSpec`), so `dist/manifest.json` exists before
|
|
31
|
+
* `npm run validate` and `npm run build` run.
|
|
32
|
+
*/
|
|
33
|
+
export declare function generatePackageCliTs(): string;
|
|
27
34
|
//# sourceMappingURL=project.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/init-lexicon/templates/project.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,
|
|
1
|
+
{"version":3,"file":"project.d.ts","sourceRoot":"","sources":["../../../../../src/cli/commands/init-lexicon/templates/project.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,wBAAgB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CAwCxF;AAED,wBAAgB,gBAAgB,IAAI,MAAM,CAWzC;AAED;;;;;;GAMG;AACH,wBAAgB,qBAAqB,IAAI,MAAM,CAmB9C;AAED,wBAAgB,gBAAgB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CA4BrD;AAED,wBAAgB,iBAAiB,IAAI,MAAM,CAK1C;AAED,wBAAgB,cAAc,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE;IAAE,WAAW,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CA4BnF;AAED,wBAAgB,oBAAoB,CAAC,IAAI,EAAE,MAAM,EAAE,KAAK,EAAE;IAAE,iBAAiB,EAAE,MAAM,CAAC;IAAC,UAAU,EAAE,MAAM,CAAA;CAAE,GAAG,MAAM,CA0BnH;AAED,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CA8BvD;AAED,wBAAgB,qBAAqB,IAAI,MAAM,CAO9C;AAED;;;;;GAKG;AACH,wBAAgB,oBAAoB,IAAI,MAAM,CAuB7C"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init-lexicon.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/init-lexicon.ts"],"names":[],"mappings":"AAeA;;GAEG;AACH,MAAM,WAAW,kBAAkB;IACjC,gCAAgC;IA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CAAC,MAAM,EAAE,iBAAiB,GAAG,OAAO,CAAC,IAAI,CAAC,CAyBrF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/init.ts"],"names":[],"mappings":"AAQA,wEAAwE;AACxE,wBAAgB,eAAe,IAAI,MAAM,CAQxC;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,yCAAyC;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qBAAqB;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,2DAA2D;IAC3D,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,6CAA6C;IAC7C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,iCAAiC;IACjC,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,sCAAsC;IACtC,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB;;;;OAIG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,6BAA6B;IAC7B,OAAO,EAAE,OAAO,CAAC;IACjB,oBAAoB;IACpB,YAAY,EAAE,MAAM,EAAE,CAAC;IACvB,uBAAuB;IACvB,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,8BAA8B;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AA+ND;;GAEG;AACH,wBAAsB,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/init.ts"],"names":[],"mappings":"AAQA,wEAAwE;AACxE,wBAAgB,eAAe,IAAI,MAAM,CAQxC;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,yCAAyC;IACzC,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,qBAAqB;IACrB,OAAO,EAAE,MAAM,CAAC;IAChB,2DAA2D;IAC3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