@intentius/chant 0.102.0 → 0.104.1
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/core.d.ts +2 -0
- package/dist/audit/core.d.ts.map +1 -1
- package/dist/audit/discover.d.ts.map +1 -1
- package/dist/change-set.d.ts +232 -0
- package/dist/change-set.d.ts.map +1 -0
- package/dist/cli/commands/audit.d.ts +7 -0
- package/dist/cli/commands/audit.d.ts.map +1 -1
- package/dist/cli/commands/build.d.ts.map +1 -1
- package/dist/cli/handlers/build.d.ts.map +1 -1
- package/dist/cli/handlers/change-set.d.ts +11 -0
- package/dist/cli/handlers/change-set.d.ts.map +1 -0
- package/dist/cli/handlers/fan-out.d.ts +33 -0
- package/dist/cli/handlers/fan-out.d.ts.map +1 -1
- package/dist/cli/handlers/operator.d.ts +7 -0
- package/dist/cli/handlers/operator.d.ts.map +1 -1
- package/dist/cli/handlers/pr.d.ts +31 -0
- package/dist/cli/handlers/pr.d.ts.map +1 -0
- package/dist/cli/handlers/run.d.ts.map +1 -1
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/mcp/op-tools.d.ts.map +1 -1
- package/dist/cli/mcp/workspace-tools.d.ts +3 -2
- package/dist/cli/mcp/workspace-tools.d.ts.map +1 -1
- package/dist/cli/registry.d.ts +63 -1
- package/dist/cli/registry.d.ts.map +1 -1
- package/dist/components/auto-release.d.ts +16 -0
- package/dist/components/auto-release.d.ts.map +1 -1
- package/dist/components/capability.d.ts +53 -0
- package/dist/components/capability.d.ts.map +1 -1
- package/dist/components/changed-files.d.ts +31 -0
- package/dist/components/changed-files.d.ts.map +1 -0
- package/dist/components/cli-support.d.ts +9 -1
- package/dist/components/cli-support.d.ts.map +1 -1
- package/dist/components/component.d.ts +24 -0
- package/dist/components/component.d.ts.map +1 -1
- package/dist/components/deploy-units.d.ts.map +1 -1
- package/dist/components/driver.d.ts +13 -0
- package/dist/components/driver.d.ts.map +1 -1
- package/dist/components/fan-out-output.d.ts +6 -0
- package/dist/components/fan-out-output.d.ts.map +1 -1
- package/dist/components/fan-out-record.d.ts +41 -0
- package/dist/components/fan-out-record.d.ts.map +1 -0
- package/dist/components/fan-out-run.d.ts +65 -0
- package/dist/components/fan-out-run.d.ts.map +1 -1
- package/dist/components/fan-out-support.d.ts +2 -0
- package/dist/components/fan-out-support.d.ts.map +1 -1
- package/dist/components/fan-out.d.ts +6 -0
- package/dist/components/fan-out.d.ts.map +1 -1
- package/dist/components/gated-wave-pipeline.d.ts +50 -0
- package/dist/components/gated-wave-pipeline.d.ts.map +1 -0
- package/dist/components/index.d.ts +1 -1
- package/dist/components/index.d.ts.map +1 -1
- package/dist/components/layers.d.ts +25 -0
- package/dist/components/layers.d.ts.map +1 -0
- package/dist/components/pr-pipeline.d.ts +61 -0
- package/dist/components/pr-pipeline.d.ts.map +1 -0
- package/dist/components/pr-run.d.ts +119 -0
- package/dist/components/pr-run.d.ts.map +1 -0
- package/dist/components/promote.d.ts.map +1 -1
- package/dist/components/verbs/shell.d.ts.map +1 -1
- package/dist/components/wave-plan.d.ts +49 -0
- package/dist/components/wave-plan.d.ts.map +1 -0
- package/dist/gated-waves.d.ts +147 -0
- package/dist/gated-waves.d.ts.map +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/lexicon.d.ts +48 -0
- package/dist/lexicon.d.ts.map +1 -1
- package/dist/lifecycle/gate-ledger.d.ts +7 -0
- package/dist/lifecycle/gate-ledger.d.ts.map +1 -1
- package/dist/lifecycle/git.d.ts +46 -1
- package/dist/lifecycle/git.d.ts.map +1 -1
- package/dist/lint/post-synth.d.ts +18 -0
- package/dist/lint/post-synth.d.ts.map +1 -1
- package/dist/op/activities/activity-contracts.d.ts +126 -0
- package/dist/op/activities/activity-contracts.d.ts.map +1 -1
- package/dist/op/activities/change-set.d.ts +62 -0
- package/dist/op/activities/change-set.d.ts.map +1 -0
- package/dist/op/activities/decide.d.ts +2 -0
- package/dist/op/activities/decide.d.ts.map +1 -1
- package/dist/op/activities/factory.d.ts +137 -0
- package/dist/op/activities/factory.d.ts.map +1 -0
- package/dist/op/activities/index.d.ts +4 -0
- package/dist/op/activities/index.d.ts.map +1 -1
- package/dist/op/activity-contract.d.ts.map +1 -1
- package/dist/op/builders.d.ts +11 -0
- package/dist/op/builders.d.ts.map +1 -1
- package/dist/op/decide-backend.d.ts +5 -1
- package/dist/op/decide-backend.d.ts.map +1 -1
- package/dist/op/decide-read-inputs.d.ts +4 -2
- package/dist/op/decide-read-inputs.d.ts.map +1 -1
- package/dist/op/factory.d.ts +83 -0
- package/dist/op/factory.d.ts.map +1 -0
- package/dist/op/index.d.ts +4 -1
- package/dist/op/index.d.ts.map +1 -1
- package/dist/op/op-ir.d.ts +2 -0
- package/dist/op/op-ir.d.ts.map +1 -1
- package/dist/op/op-verb-class.d.ts.map +1 -1
- package/dist/op/types.d.ts +8 -0
- package/dist/op/types.d.ts.map +1 -1
- package/dist/op/work-lease-run.d.ts.map +1 -1
- package/dist/plan-summary.d.ts +207 -0
- package/dist/plan-summary.d.ts.map +1 -0
- package/dist/pr-forge.d.ts +105 -0
- package/dist/pr-forge.d.ts.map +1 -0
- package/dist/pr-loop.d.ts +178 -0
- package/dist/pr-loop.d.ts.map +1 -0
- package/dist/telemetry-attribution.d.ts +31 -0
- package/dist/telemetry-attribution.d.ts.map +1 -1
- package/dist/terraform/hcl2json.d.ts +45 -0
- package/dist/terraform/hcl2json.d.ts.map +1 -0
- package/dist/terraform/parse.d.ts +4 -40
- package/dist/terraform/parse.d.ts.map +1 -1
- package/dist/vendor/js-yaml-load.d.ts +56 -0
- package/dist/vendor/js-yaml-load.d.ts.map +1 -0
- package/dist/workspace/box-cli.d.ts +12 -0
- package/dist/workspace/box-cli.d.ts.map +1 -0
- package/dist/workspace/box-factory.d.ts +27 -3
- package/dist/workspace/box-factory.d.ts.map +1 -1
- package/dist/workspace/box-listing.d.ts +85 -0
- package/dist/workspace/box-listing.d.ts.map +1 -0
- package/dist/workspace/box-publish.d.ts +147 -0
- package/dist/workspace/box-publish.d.ts.map +1 -0
- package/dist/workspace/broker-protocol.d.ts +190 -0
- package/dist/workspace/broker-protocol.d.ts.map +1 -0
- package/dist/workspace/checks.d.ts.map +1 -1
- package/dist/workspace/composites.d.ts +2 -2
- package/dist/workspace/composites.d.ts.map +1 -1
- package/dist/workspace/conformance/__fixtures__/reference-broker.d.ts +17 -0
- package/dist/workspace/conformance/__fixtures__/reference-broker.d.ts.map +1 -0
- package/dist/workspace/conformance/broker.d.ts +202 -0
- package/dist/workspace/conformance/broker.d.ts.map +1 -0
- package/dist/workspace/conformance/index.d.ts +2 -1
- package/dist/workspace/conformance/index.d.ts.map +1 -1
- package/dist/workspace/conformance/vitest.d.ts +9 -2
- package/dist/workspace/conformance/vitest.d.ts.map +1 -1
- package/dist/workspace/conformance/writer.d.ts +108 -14
- package/dist/workspace/conformance/writer.d.ts.map +1 -1
- package/dist/workspace/decide.d.ts +126 -12
- package/dist/workspace/decide.d.ts.map +1 -1
- package/dist/workspace/decision-points.schema.json +11 -4
- package/dist/workspace/declaration.d.ts +65 -0
- package/dist/workspace/declaration.d.ts.map +1 -1
- package/dist/workspace/declaration.schema.json +153 -4
- package/dist/workspace/environments.d.ts +36 -10
- package/dist/workspace/environments.d.ts.map +1 -1
- package/dist/workspace/factory-rules.d.ts +180 -0
- package/dist/workspace/factory-rules.d.ts.map +1 -0
- package/dist/workspace/init.d.ts +21 -0
- package/dist/workspace/init.d.ts.map +1 -1
- package/dist/workspace/intent-cli.d.ts +1 -1
- package/dist/workspace/intent-cli.d.ts.map +1 -1
- package/dist/workspace/intent-record.d.ts +28 -1
- package/dist/workspace/intent-record.d.ts.map +1 -1
- package/dist/workspace/intent.d.ts +102 -5
- package/dist/workspace/intent.d.ts.map +1 -1
- package/dist/workspace/json-edit.d.ts +24 -0
- package/dist/workspace/json-edit.d.ts.map +1 -0
- package/dist/workspace/jsonc.d.ts +11 -0
- package/dist/workspace/jsonc.d.ts.map +1 -1
- package/dist/workspace/kinds.d.ts +48 -0
- package/dist/workspace/kinds.d.ts.map +1 -1
- package/dist/workspace/lexicon-symbols.d.ts +29 -0
- package/dist/workspace/lexicon-symbols.d.ts.map +1 -0
- package/dist/workspace/lineage-upgrade.d.ts +31 -2
- package/dist/workspace/lineage-upgrade.d.ts.map +1 -1
- package/dist/workspace/point-answer.schema.json +42 -2
- package/dist/workspace/points-cli.d.ts +10 -3
- package/dist/workspace/points-cli.d.ts.map +1 -1
- package/dist/workspace/points.d.ts +66 -5
- package/dist/workspace/points.d.ts.map +1 -1
- package/dist/workspace/reason-codes.d.ts +33 -4
- package/dist/workspace/reason-codes.d.ts.map +1 -1
- package/dist/workspace/record-sessions.d.ts +5 -7
- package/dist/workspace/record-sessions.d.ts.map +1 -1
- package/dist/workspace/records-cli.d.ts +7 -0
- package/dist/workspace/records-cli.d.ts.map +1 -1
- package/dist/workspace/records-close.d.ts +7 -3
- package/dist/workspace/records-close.d.ts.map +1 -1
- package/dist/workspace/records-write.d.ts +66 -6
- package/dist/workspace/records-write.d.ts.map +1 -1
- package/dist/workspace/records.d.ts +28 -9
- package/dist/workspace/records.d.ts.map +1 -1
- package/dist/workspace/runs-cli.d.ts +138 -6
- package/dist/workspace/runs-cli.d.ts.map +1 -1
- package/dist/workspace/runs.d.ts +132 -11
- package/dist/workspace/runs.d.ts.map +1 -1
- package/dist/workspace/session-kinds.d.ts +1 -1
- package/dist/workspace/session-kinds.d.ts.map +1 -1
- package/dist/workspace/squash.d.ts +80 -0
- package/dist/workspace/squash.d.ts.map +1 -0
- package/dist/workspace/status-gates.d.ts +2 -0
- package/dist/workspace/status-gates.d.ts.map +1 -1
- package/dist/workspace/status.d.ts +54 -0
- package/dist/workspace/status.d.ts.map +1 -1
- package/dist/workspace/symbols.d.ts +16 -5
- package/dist/workspace/symbols.d.ts.map +1 -1
- package/dist/workspace/trust/run-commits.d.ts +46 -0
- package/dist/workspace/trust/run-commits.d.ts.map +1 -0
- package/dist/workspace/trust/run-statement.d.ts +128 -0
- package/dist/workspace/trust/run-statement.d.ts.map +1 -0
- package/dist/workspace/trust/seal.d.ts +6 -1
- package/dist/workspace/trust/seal.d.ts.map +1 -1
- package/dist/workspace/trust/verify-cli.d.ts +1 -1
- package/dist/workspace/trust/verify.d.ts +16 -2
- package/dist/workspace/trust/verify.d.ts.map +1 -1
- package/dist/workspace/wip-cli.d.ts +21 -0
- package/dist/workspace/wip-cli.d.ts.map +1 -0
- package/dist/workspace/wip.d.ts +268 -0
- package/dist/workspace/wip.d.ts.map +1 -0
- package/dist/workspace/work-cli.d.ts.map +1 -1
- package/dist/workspace/work-evidence.d.ts +1 -1
- package/dist/workspace/work-evidence.d.ts.map +1 -1
- package/dist/workspace/work-size.d.ts +55 -0
- package/dist/workspace/work-size.d.ts.map +1 -0
- package/dist/workspace/workspace-kinds.schema.json +122 -0
- package/dist/workspace/write-lock-cli.d.ts +60 -0
- package/dist/workspace/write-lock-cli.d.ts.map +1 -0
- package/dist/workspace/write-lock.d.ts +152 -0
- package/dist/workspace/write-lock.d.ts.map +1 -0
- package/dist/workspace/write-scope.d.ts +6 -2
- package/dist/workspace/write-scope.d.ts.map +1 -1
- package/dist/yaml.d.ts +1 -1
- package/dist/yaml.d.ts.map +1 -1
- package/package.json +6 -1
- package/src/__fixtures__/change-set/lifecycle-plan.floci.json +59 -0
- package/src/__fixtures__/change-set/lifecycle-v1.ts.txt +4 -0
- package/src/__fixtures__/change-set/lifecycle-v2.ts.txt +4 -0
- package/src/__fixtures__/change-set/lifecycle.change-set.golden.json +95 -0
- package/src/__fixtures__/change-set/warden.change-set.golden.json +106 -0
- package/src/__fixtures__/change-set/warden.plan.json +44 -0
- package/src/__fixtures__/plan-summary/normalization-vectors.json +1593 -0
- package/src/__fixtures__/pr-loop/pr-apply-applied.note.golden.md +31 -0
- package/src/__fixtures__/pr-loop/pr-apply-refused.note.golden.md +31 -0
- package/src/__fixtures__/pr-loop/pr-plan.golden.json +127 -0
- package/src/__fixtures__/pr-loop/pr-plan.note.golden.md +37 -0
- package/src/audit/core.test.ts +15 -0
- package/src/audit/core.ts +8 -2
- package/src/audit/discover.test.ts +11 -0
- package/src/audit/discover.ts +7 -2
- package/src/change-set-bundle.test.ts +57 -0
- package/src/change-set.test.ts +215 -0
- package/src/change-set.ts +445 -0
- package/src/cli/commands/audit-opt-in.test.ts +54 -0
- package/src/cli/commands/audit.ts +29 -2
- package/src/cli/commands/build.test.ts +19 -0
- package/src/cli/commands/build.ts +3 -2
- package/src/cli/handlers/build.ts +13 -1
- package/src/cli/handlers/change-set.test.ts +56 -0
- package/src/cli/handlers/change-set.ts +44 -0
- package/src/cli/handlers/fan-out.test.ts +221 -2
- package/src/cli/handlers/fan-out.ts +165 -75
- package/src/cli/handlers/graph.ts +3 -0
- package/src/cli/handlers/operator.test.ts +21 -0
- package/src/cli/handlers/operator.ts +34 -3
- package/src/cli/handlers/pr.ts +373 -0
- package/src/cli/handlers/run.ts +1 -0
- package/src/cli/main.test.ts +20 -0
- package/src/cli/main.ts +185 -23
- package/src/cli/mcp/never-over-mcp.test.ts +101 -0
- package/src/cli/mcp/op-tools.ts +24 -2
- package/src/cli/mcp/workspace-tools.test.ts +1 -1
- package/src/cli/mcp/workspace-tools.ts +34 -6
- package/src/cli/registry.ts +63 -1
- package/src/components/auto-release.ts +1 -1
- package/src/components/capability.ts +55 -0
- package/src/components/changed-files.ts +66 -0
- package/src/components/cli-support.ts +28 -5
- package/src/components/component.schema.json +17 -0
- package/src/components/component.ts +25 -0
- package/src/components/deploy-units.ts +3 -0
- package/src/components/driver.test.ts +52 -0
- package/src/components/driver.ts +31 -13
- package/src/components/fan-out-output.ts +42 -1
- package/src/components/fan-out-record.ts +69 -0
- package/src/components/fan-out-run.test.ts +17 -0
- package/src/components/fan-out-run.ts +304 -1
- package/src/components/fan-out-support.ts +3 -0
- package/src/components/fan-out-waves.test.ts +375 -0
- package/src/components/fan-out.ts +18 -17
- package/src/components/gated-wave-pipeline.ts +82 -0
- package/src/components/index.ts +1 -0
- package/src/components/layers.ts +30 -0
- package/src/components/pr-pipeline.ts +91 -0
- package/src/components/pr-run.test.ts +205 -0
- package/src/components/pr-run.ts +280 -0
- package/src/components/promote.ts +5 -0
- package/src/components/verbs/shell.test.ts +11 -0
- package/src/components/verbs/shell.ts +7 -3
- package/src/components/wave-plan.ts +124 -0
- package/src/discovery/sandbox/bundle.ts +1 -1
- package/src/gated-waves-bundle.test.ts +62 -0
- package/src/gated-waves.test.ts +118 -0
- package/src/gated-waves.ts +240 -0
- package/src/index.ts +1 -0
- package/src/lexicon.ts +51 -0
- package/src/lifecycle/gate-ledger.ts +7 -0
- package/src/lifecycle/git.ts +102 -16
- package/src/lint/post-synth.test.ts +19 -0
- package/src/lint/post-synth.ts +19 -1
- package/src/meta/declared-imports.test.ts +1 -1
- package/src/op/activities/activity-contracts.ts +84 -0
- package/src/op/activities/change-set.ts +114 -0
- package/src/op/activities/decide.ts +3 -0
- package/src/op/activities/factory.ts +675 -0
- package/src/op/activities/index.ts +6 -0
- package/src/op/activity-contract.test.ts +21 -1
- package/src/op/activity-contract.ts +19 -9
- package/src/op/builders.ts +23 -0
- package/src/op/decide-backend.ts +5 -1
- package/src/op/decide-read-inputs.ts +33 -5
- package/src/op/factory.e2e.test.ts +232 -0
- package/src/op/factory.ts +118 -0
- package/src/op/index.ts +9 -1
- package/src/op/op-ir.test.ts +9 -0
- package/src/op/op-ir.ts +4 -0
- package/src/op/op-verb-class.ts +3 -0
- package/src/op/types.ts +8 -0
- package/src/op/work-lease-run.ts +3 -0
- package/src/plan-summary.test.ts +263 -0
- package/src/plan-summary.ts +845 -0
- package/src/pr-forge.test.ts +237 -0
- package/src/pr-forge.ts +332 -0
- package/src/pr-loop-bundle.test.ts +46 -0
- package/src/pr-loop.test.ts +171 -0
- package/src/pr-loop.ts +324 -0
- package/src/telemetry-attribution.test.ts +23 -1
- package/src/telemetry-attribution.ts +51 -0
- package/src/terraform/hcl2json.test.ts +21 -0
- package/src/terraform/hcl2json.ts +81 -0
- package/src/terraform/parse.ts +11 -74
- package/src/vendor/js-yaml-load.test.ts +115 -0
- package/src/vendor/js-yaml-load.ts +1939 -0
- package/src/workspace/__fixtures__/studio-template-84c8b21.json +1 -1
- package/src/workspace/app-kind.test.ts +196 -0
- package/src/workspace/box-cli.ts +113 -0
- package/src/workspace/box-factory.test.ts +4 -1
- package/src/workspace/box-factory.ts +37 -4
- package/src/workspace/box-listing-write.schema.json +204 -0
- package/src/workspace/box-listing.test.ts +234 -0
- package/src/workspace/box-listing.ts +324 -0
- package/src/workspace/box-publish.schema.json +498 -0
- package/src/workspace/box-publish.test.ts +204 -0
- package/src/workspace/box-publish.ts +420 -0
- package/src/workspace/box-ship.test.ts +96 -0
- package/src/workspace/broker-protocol.schema.json +186 -0
- package/src/workspace/broker-protocol.test.ts +122 -0
- package/src/workspace/broker-protocol.ts +317 -0
- package/src/workspace/builder-tiers.test.ts +146 -0
- package/src/workspace/change-set.schema.json +460 -0
- package/src/workspace/chant-migrations.e2e.test.ts +17 -5
- package/src/workspace/checks/boxes.test.ts +3 -0
- package/src/workspace/checks.ts +10 -3
- package/src/workspace/component-environments.test.ts +105 -0
- package/src/workspace/composites.schema.json +23 -4
- package/src/workspace/composites.test.ts +8 -8
- package/src/workspace/composites.ts +13 -2
- package/src/workspace/conformance/__fixture__/decisions/decision.schema.json +2 -2
- package/src/workspace/conformance/__fixtures__/reference-broker.ts +207 -0
- package/src/workspace/conformance/__writer_fixture__/answers/answer.kind.mjs +7 -2
- package/src/workspace/conformance/__writer_fixture__/answers/answer.schema.json +42 -2
- package/src/workspace/conformance/__writer_fixture__/contracts/contract.kind.mjs +37 -0
- package/src/workspace/conformance/__writer_fixture__/contracts/contract.schema.json +213 -0
- package/src/workspace/conformance/__writer_fixture__/decisions/points.json +96 -0
- package/src/workspace/conformance/__writer_fixture__/drivers/driver.kind.mjs +15 -0
- package/src/workspace/conformance/__writer_fixture__/drivers/driver.schema.json +38 -0
- package/src/workspace/conformance/__writer_fixture__/sessions/session.kind.mjs +14 -8
- package/src/workspace/conformance/__writer_fixture__/sessions/session.schema.json +187 -6
- package/src/workspace/conformance/__writer_fixture__/work/work.schema.json +25 -0
- package/src/workspace/conformance/broker.test.ts +122 -0
- package/src/workspace/conformance/broker.ts +792 -0
- package/src/workspace/conformance/conformance.e2e.test.ts +2 -1
- package/src/workspace/conformance/index.mjs +22 -1
- package/src/workspace/conformance/index.ts +5 -1
- package/src/workspace/conformance/vitest.ts +33 -1
- package/src/workspace/conformance/writer-conformance.e2e.test.ts +49 -3
- package/src/workspace/conformance/writer.test.ts +32 -2
- package/src/workspace/conformance/writer.ts +339 -28
- package/src/workspace/decide.test.ts +208 -4
- package/src/workspace/decide.ts +427 -73
- package/src/workspace/decision-points.schema.json +11 -4
- package/src/workspace/declaration.schema.json +153 -4
- package/src/workspace/declaration.ts +141 -0
- package/src/workspace/environments.ts +66 -14
- package/src/workspace/factory-rules.test.ts +62 -0
- package/src/workspace/factory-rules.ts +218 -0
- package/src/workspace/graph-cli.ts +2 -2
- package/src/workspace/graph.schema.json +67 -0
- package/src/workspace/identity.test.ts +23 -0
- package/src/workspace/init.ts +82 -2
- package/src/workspace/intent-cli.ts +26 -9
- package/src/workspace/intent-patch-id.test.ts +162 -0
- package/src/workspace/intent-record.schema.json +130 -3
- package/src/workspace/intent-record.ts +74 -28
- package/src/workspace/intent-reviews.test.ts +76 -0
- package/src/workspace/intent-squash.test.ts +213 -0
- package/src/workspace/intent-why.test.ts +5 -5
- package/src/workspace/intent.schema.json +234 -4
- package/src/workspace/intent.ts +260 -66
- package/src/workspace/json-edit.test.ts +121 -0
- package/src/workspace/json-edit.ts +142 -0
- package/src/workspace/jsonc.ts +20 -0
- package/src/workspace/kinds.ts +157 -2
- package/src/workspace/lexicon-symbols.test.ts +148 -0
- package/src/workspace/lexicon-symbols.ts +125 -0
- package/src/workspace/lineage-upgrade.test.ts +63 -0
- package/src/workspace/lineage-upgrade.ts +146 -5
- package/src/workspace/plan-summary.schema.json +155 -0
- package/src/workspace/point-answer.schema.json +42 -2
- package/src/workspace/points-cli.ts +42 -16
- package/src/workspace/points-write.schema.json +162 -4
- package/src/workspace/points.schema.json +157 -2
- package/src/workspace/points.test.ts +13 -1
- package/src/workspace/points.ts +118 -12
- package/src/workspace/pr-report.schema.json +95 -0
- package/src/workspace/profiles.test.ts +159 -0
- package/src/workspace/read-contract.test.ts +2 -2
- package/src/workspace/reason-codes.test.ts +13 -1
- package/src/workspace/reason-codes.ts +38 -4
- package/src/workspace/record-sessions.ts +9 -8
- package/src/workspace/records-amend.schema.json +78 -0
- package/src/workspace/records-cli.ts +20 -6
- package/src/workspace/records-close.schema.json +78 -0
- package/src/workspace/records-close.ts +31 -7
- package/src/workspace/records-concurrent.e2e.test.ts +135 -0
- package/src/workspace/records-concurrent.test.ts +145 -0
- package/src/workspace/records-formats.test.ts +46 -10
- package/src/workspace/records-new.schema.json +7 -0
- package/src/workspace/records-review.schema.json +78 -0
- package/src/workspace/records-sessions-write.test.ts +69 -0
- package/src/workspace/records-sessions.test.ts +22 -0
- package/src/workspace/records-write.ts +192 -25
- package/src/workspace/records.schema.json +16 -0
- package/src/workspace/records.ts +50 -9
- package/src/workspace/reference-kinds/app/package.json +10 -0
- package/src/workspace/reference-kinds/app/workspace-kinds.json +45 -0
- package/src/workspace/run-statement.schema.json +622 -0
- package/src/workspace/runs-cli.ts +343 -14
- package/src/workspace/runs-statement.test.ts +239 -0
- package/src/workspace/runs-write.schema.json +416 -5
- package/src/workspace/runs.schema.json +451 -4
- package/src/workspace/runs.test.ts +39 -0
- package/src/workspace/runs.ts +296 -35
- package/src/workspace/session-kinds.ts +3 -3
- package/src/workspace/squash.ts +198 -0
- package/src/workspace/status-contract.test.ts +5 -2
- package/src/workspace/status-gates.ts +3 -1
- package/src/workspace/status.schema.json +126 -3
- package/src/workspace/status.ts +90 -1
- package/src/workspace/symbols.ts +20 -9
- package/src/workspace/trust/run-commits.ts +115 -0
- package/src/workspace/trust/run-statement.ts +226 -0
- package/src/workspace/trust/seal.ts +8 -2
- package/src/workspace/trust/verify-cli.ts +6 -5
- package/src/workspace/trust/verify.ts +39 -6
- package/src/workspace/wip-cli.ts +97 -0
- package/src/workspace/wip-write.schema.json +504 -0
- package/src/workspace/wip.schema.json +334 -0
- package/src/workspace/wip.test.ts +294 -0
- package/src/workspace/wip.ts +753 -0
- package/src/workspace/work-cli.ts +3 -0
- package/src/workspace/work-evidence.schema.json +3 -0
- package/src/workspace/work-size.test.ts +77 -0
- package/src/workspace/work-size.ts +93 -0
- package/src/workspace/workspace-kinds.schema.json +122 -0
- package/src/workspace/write-lock-cli.ts +131 -0
- package/src/workspace/write-lock.schema.json +172 -0
- package/src/workspace/write-lock.test.ts +189 -0
- package/src/workspace/write-lock.ts +474 -0
- package/src/workspace/write-scope.test.ts +16 -1
- package/src/workspace/write-scope.ts +33 -11
- package/src/yaml.ts +31 -21
package/dist/audit/core.d.ts
CHANGED
|
@@ -132,6 +132,8 @@ export declare function auditFiles(inputs: AuditInput[], opts?: {
|
|
|
132
132
|
checksProvider?: ChecksProvider;
|
|
133
133
|
entitiesProvider?: EntitiesProvider;
|
|
134
134
|
suppressionStats?: SuppressionStats;
|
|
135
|
+
/** Check ids the project enabled with `lint.rules`; a check marked `auditOptIn` runs only when listed here (#3190). */
|
|
136
|
+
enabledRules?: ReadonlySet<string>;
|
|
135
137
|
}): Promise<AuditFinding[]>;
|
|
136
138
|
/** Label for findings that span more than one file (e.g. duplicate names). */
|
|
137
139
|
export declare const CROSS_FILE = "(cross-file)";
|
package/dist/audit/core.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"core.d.ts","sourceRoot":"","sources":["../../src/audit/core.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AAGH,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,cAAc,CAAC;AAC7C,OAAO,KAAK,EAAE,cAAc,EAAyC,M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,CAAC;AAa9F;;;;GAIG;AACH,qEAAqE;AACrE,qBAAa,mBAAoB,SAAQ,KAAK;CAAG;AAoEjD;;;;;;;GAOG;AACH,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,wBAAsB,UAAU,CAC9B,MAAM,EAAE,UAAU,EAAE,EACpB,IAAI,GAAE;IACJ,cAAc,CAAC,EAAE,cAAc,CAAC;IAChC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,gBAAgB,CAAC,EAAE,gBAAgB,CAAC;IACpC,uHAAuH;IACvH,YAAY,CAAC,EAAE,WAAW,CAAC,MAAM,CAAC,CAAC;CAC/B,GACL,OAAO,CAAC,YAAY,EAAE,CAAC,CAqBzB;AAED,8EAA8E;AAC9E,eAAO,MAAM,UAAU,iBAAiB,CAAC"}
|
|
@@ -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/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E,WAAW,CAAC;CACtB;AAED;;;;GAIG;AACH,wBAAgB,cAAc,CAAC,KAAK,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"}
|
|
@@ -0,0 +1,232 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* One change-set document across planners (#3181).
|
|
3
|
+
*
|
|
4
|
+
* Several things plan changes, each with its own output: `chant lifecycle
|
|
5
|
+
* plan` for the cloud lexicons, terraform, tofu and choudoufu plans, and a
|
|
6
|
+
* warden's reconcile plan. This module is the one typed document they all
|
|
7
|
+
* become, so a reader can ask one question of every plan in a run: what will
|
|
8
|
+
* change, where, and how risky it is. Its schema is
|
|
9
|
+
* `./workspace/change-set.schema.json`, part of the workspace read contract.
|
|
10
|
+
*
|
|
11
|
+
* Each planner reaches it through an adapter that returns a
|
|
12
|
+
* {@link ChangeSetPart}: one member and its entries. The lifecycle and
|
|
13
|
+
* reconcile adapters are here; the terraform-family ones live in the
|
|
14
|
+
* terraform lexicon's `change-set` subpath. {@link composeChangeSet} joins
|
|
15
|
+
* the parts.
|
|
16
|
+
*
|
|
17
|
+
* ## The digest
|
|
18
|
+
*
|
|
19
|
+
* Every member carries the plan digest a gate on that member alone binds
|
|
20
|
+
* (#2300): `terraformPlanDigest` for a terraform-family root, and here
|
|
21
|
+
* `computePlanDigest("lifecycle-plan", …)` and `computePlanDigest(
|
|
22
|
+
* "reconcile-plan", …)`. The document's digest is {@link changeSetDigest}
|
|
23
|
+
* over the sorted `{ member, planDigest }` pairs, the set digest #3049
|
|
24
|
+
* describes, so a wave's digest is the same function over the wave's
|
|
25
|
+
* members. The entries and the summary are derived from the plans those
|
|
26
|
+
* digests cover and are not hashed again: a change to how chant projects a
|
|
27
|
+
* plan into entries does not expire an approval.
|
|
28
|
+
*
|
|
29
|
+
* ## The import graph
|
|
30
|
+
*
|
|
31
|
+
* terragucci runs this in customer CI as one bundled file with no TypeScript
|
|
32
|
+
* toolchain (#3421). Everything here imports `./lifecycle/plan-digest` and
|
|
33
|
+
* types only, and `change-set-bundle.test.ts` holds that.
|
|
34
|
+
*/
|
|
35
|
+
import type { ChangeSet as LifecycleChangeSet } from "./lifecycle/change-set.js";
|
|
36
|
+
import type { ChangeSet as ReconcileChangeSet } from "./reconcile.js";
|
|
37
|
+
/** The schema a change-set document names in `$schema`. */
|
|
38
|
+
export declare const CHANGE_SET_SCHEMA_ID = "https://intentius.io/chant/schemas/workspace/change-set/v1/change-set.schema.json";
|
|
39
|
+
/** The read-contract version the document follows. */
|
|
40
|
+
export declare const CHANGE_SET_CONTRACT = 1;
|
|
41
|
+
/** What a planner proposes for one resource. `no-op`, `read` and `forget` appear only when the planner reports them. */
|
|
42
|
+
export type ChangeSetAction = "create" | "update" | "replace" | "delete" | "read" | "no-op" | "forget";
|
|
43
|
+
/** Every action, in the order the summary lists them. */
|
|
44
|
+
export declare const CHANGE_SET_ACTIONS: readonly ChangeSetAction[];
|
|
45
|
+
/** How much applying one change hurts, in the vocabulary of `./lifecycle/disruption.ts`. */
|
|
46
|
+
export type ChangeSetDisruption = "in-place" | "rolling" | "replace" | "destroy" | "unknown";
|
|
47
|
+
/** Which tool produced a member's plan. */
|
|
48
|
+
export type ChangeSetPlanner = "terraform" | "tofu" | "choudoufu" | "chant" | "warden";
|
|
49
|
+
/** One attribute a change writes, at top-level granularity. */
|
|
50
|
+
export interface ChangeSetAttribute {
|
|
51
|
+
path: string;
|
|
52
|
+
/** The value before. Absent on a create, and when `sensitive`. */
|
|
53
|
+
before?: unknown;
|
|
54
|
+
/** The value after. Absent on a delete, when `unknown`, and when `sensitive`. */
|
|
55
|
+
after?: unknown;
|
|
56
|
+
/** The value is known only after apply. */
|
|
57
|
+
unknown?: true;
|
|
58
|
+
/** The planner marked the value sensitive, so neither side is carried. */
|
|
59
|
+
sensitive?: true;
|
|
60
|
+
/** Changing this attribute is what forces the replacement. */
|
|
61
|
+
forcesReplacement?: true;
|
|
62
|
+
}
|
|
63
|
+
export interface ChangeSetEntry {
|
|
64
|
+
member: string;
|
|
65
|
+
lexicon: string;
|
|
66
|
+
planner: ChangeSetPlanner;
|
|
67
|
+
/** The planner's own address for the resource, unique within the member with `deposed`. */
|
|
68
|
+
address: string;
|
|
69
|
+
type: string;
|
|
70
|
+
/** The resource's name, without module path or index, when the planner's address has one. */
|
|
71
|
+
name?: string;
|
|
72
|
+
/** A `count` or `for_each` index. */
|
|
73
|
+
index?: string | number;
|
|
74
|
+
/** The module path the resource sits in. */
|
|
75
|
+
module?: string;
|
|
76
|
+
/** A deposed object's key: a second entry at the same address. */
|
|
77
|
+
deposed?: string;
|
|
78
|
+
/** The provider's own id, when the planner reports one. */
|
|
79
|
+
id?: string;
|
|
80
|
+
action: ChangeSetAction;
|
|
81
|
+
/** The entry also imports the object into state (an `import` block). Its action is whatever else the plan does to it, `no-op` included. */
|
|
82
|
+
importing?: true;
|
|
83
|
+
/** Set on update, replace and delete. `unknown` means nobody could say. */
|
|
84
|
+
disruption?: ChangeSetDisruption;
|
|
85
|
+
region?: string;
|
|
86
|
+
/** The estate, environment or org the change lands in. */
|
|
87
|
+
scope?: string;
|
|
88
|
+
attributes: ChangeSetAttribute[];
|
|
89
|
+
}
|
|
90
|
+
/** Something a planner could not read, so the plan says nothing about it. */
|
|
91
|
+
export interface ChangeSetHole {
|
|
92
|
+
address: string;
|
|
93
|
+
type?: string;
|
|
94
|
+
reason: string;
|
|
95
|
+
}
|
|
96
|
+
export interface ChangeSetMember {
|
|
97
|
+
member: string;
|
|
98
|
+
lexicon: string;
|
|
99
|
+
planner: ChangeSetPlanner;
|
|
100
|
+
scope?: string;
|
|
101
|
+
status: "planned" | "failed";
|
|
102
|
+
error?: string;
|
|
103
|
+
/** What a gate on this member alone binds. `null` when the member failed to plan. */
|
|
104
|
+
planDigest: string | null;
|
|
105
|
+
/**
|
|
106
|
+
* Planned before what it reads applied, so it may hold stand-in values (a
|
|
107
|
+
* Terragrunt dependent planned on `mock_outputs` at PR time, #3416). A
|
|
108
|
+
* preview only: {@link changeSetDigest} leaves it out, so no approval of the
|
|
109
|
+
* document covers it, a wave's set digest refuses it, and the grouped
|
|
110
|
+
* summary never folds it into a group of real plans.
|
|
111
|
+
*/
|
|
112
|
+
provisional?: true;
|
|
113
|
+
/** The planner's own digest of the same plan, when it prints one (choudoufu's per-root digest). */
|
|
114
|
+
nativeDigest?: string;
|
|
115
|
+
holes: ChangeSetHole[];
|
|
116
|
+
}
|
|
117
|
+
/** A provider-defined side effect an apply runs: a Terraform `action` block's invocation. */
|
|
118
|
+
export interface ChangeSetSideEffect {
|
|
119
|
+
member: string;
|
|
120
|
+
/** The invocation's address, or its action type when the planner gives none. */
|
|
121
|
+
address: string;
|
|
122
|
+
/** The action's type, such as `aws_lambda_invoke`. */
|
|
123
|
+
type: string;
|
|
124
|
+
/** The address of the resource whose lifecycle triggers it, when one does. */
|
|
125
|
+
trigger?: string;
|
|
126
|
+
/** The lifecycle event, such as `after_update`. */
|
|
127
|
+
event?: string;
|
|
128
|
+
}
|
|
129
|
+
/** What an adapter returns: one member, the entries it plans and the side effects it will run. */
|
|
130
|
+
export interface ChangeSetPart {
|
|
131
|
+
member: ChangeSetMember;
|
|
132
|
+
entries: ChangeSetEntry[];
|
|
133
|
+
sideEffects?: Array<Omit<ChangeSetSideEffect, "member">>;
|
|
134
|
+
}
|
|
135
|
+
export type ActionCounts = Partial<Record<ChangeSetAction, number>>;
|
|
136
|
+
export interface ChangeSetNamed {
|
|
137
|
+
member: string;
|
|
138
|
+
address: string;
|
|
139
|
+
type: string;
|
|
140
|
+
deposed?: string;
|
|
141
|
+
disruption?: ChangeSetDisruption;
|
|
142
|
+
}
|
|
143
|
+
export interface ChangeSetSummary {
|
|
144
|
+
members: number;
|
|
145
|
+
entries: number;
|
|
146
|
+
/** Every action, zero included. */
|
|
147
|
+
actions: Record<ChangeSetAction, number>;
|
|
148
|
+
/** Per type, the actions it has. */
|
|
149
|
+
types: Record<string, ActionCounts>;
|
|
150
|
+
/** Per member, the actions it has. */
|
|
151
|
+
byMember: Record<string, ActionCounts>;
|
|
152
|
+
deletes: ChangeSetNamed[];
|
|
153
|
+
replacements: ChangeSetNamed[];
|
|
154
|
+
/** Members that failed to plan. */
|
|
155
|
+
failed: string[];
|
|
156
|
+
holes: number;
|
|
157
|
+
}
|
|
158
|
+
export interface ChangeSetDocument {
|
|
159
|
+
$schema: typeof CHANGE_SET_SCHEMA_ID;
|
|
160
|
+
contract: typeof CHANGE_SET_CONTRACT;
|
|
161
|
+
/** The chant that composed it, when the caller knows. */
|
|
162
|
+
chant?: string;
|
|
163
|
+
digest: string;
|
|
164
|
+
members: ChangeSetMember[];
|
|
165
|
+
entries: ChangeSetEntry[];
|
|
166
|
+
/** Triggered actions, sorted by member and address. Absent when no member runs one. */
|
|
167
|
+
sideEffects?: ChangeSetSideEffect[];
|
|
168
|
+
summary: ChangeSetSummary;
|
|
169
|
+
}
|
|
170
|
+
/**
|
|
171
|
+
* The set digest over members' plan digests: `computePlanDigest("change-set",
|
|
172
|
+
* …)` over `{ member, planDigest }` sorted by member. Order-independent,
|
|
173
|
+
* and different whenever one member's plan digest is. Refuses a set that
|
|
174
|
+
* names a member twice, which has no single plan for that member.
|
|
175
|
+
*
|
|
176
|
+
* Provisional members are left out: their plans may stand on values that do
|
|
177
|
+
* not exist yet, so an approval of this digest never covers them.
|
|
178
|
+
*/
|
|
179
|
+
export declare function changeSetDigest(members: ReadonlyArray<Pick<ChangeSetMember, "member" | "planDigest" | "provisional">>): string;
|
|
180
|
+
/** The summary of a set of members and entries. */
|
|
181
|
+
export declare function summarizeChangeSet(members: ChangeSetMember[], entries: ChangeSetEntry[]): ChangeSetSummary;
|
|
182
|
+
export interface ComposeChangeSetOptions {
|
|
183
|
+
/** The chant version to record in `chant`. */
|
|
184
|
+
chant?: string;
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Join adapters' parts into one document: members sorted by name, entries
|
|
188
|
+
* by member, address, deposed key and action, the summary, and the digest.
|
|
189
|
+
* Throws when two parts name the same member, or an entry names a member
|
|
190
|
+
* other than its part's.
|
|
191
|
+
*/
|
|
192
|
+
export declare function composeChangeSet(parts: ReadonlyArray<ChangeSetPart>, options?: ComposeChangeSetOptions): ChangeSetDocument;
|
|
193
|
+
/** Whether a document's digest is the one its members' plan digests give. */
|
|
194
|
+
export declare function verifyChangeSetDigest(doc: Pick<ChangeSetDocument, "digest" | "members">): boolean;
|
|
195
|
+
export interface LifecyclePlanPartInput {
|
|
196
|
+
member: string;
|
|
197
|
+
/** `chant lifecycle plan <env> --json`, parsed. */
|
|
198
|
+
plan: LifecycleChangeSet;
|
|
199
|
+
/** The lexicon an entry names when it carries none. Default `"chant"`. */
|
|
200
|
+
lexicon?: string;
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* A chant member's part, from `chant lifecycle plan <env> --json`.
|
|
204
|
+
*
|
|
205
|
+
* `create`, `update`, `delete` and `noop` map across. An `update` whose
|
|
206
|
+
* lexicon says it replaces or destroys becomes a `replace`. An `effect`
|
|
207
|
+
* entry is the receipt its effect step writes: a `create` when the receipt
|
|
208
|
+
* is absent, else an `update`. `unobserved` entries are holes. `adopt` and
|
|
209
|
+
* `runtime` propose nothing and are left out.
|
|
210
|
+
*
|
|
211
|
+
* The member's plan digest is `computePlanDigest("lifecycle-plan", plan)`
|
|
212
|
+
* over the whole document, which carries no timestamp or run id.
|
|
213
|
+
*/
|
|
214
|
+
export declare function lifecyclePlanPart(input: LifecyclePlanPartInput): ChangeSetPart;
|
|
215
|
+
export interface ReconcilePlanPartInput {
|
|
216
|
+
member: string;
|
|
217
|
+
/** The change sets a reconcile run planned, one per cycle and org. */
|
|
218
|
+
plan: ReconcileChangeSet | ReconcileChangeSet[];
|
|
219
|
+
/** The lexicon the reconciled provider belongs to. Default `"github"`. */
|
|
220
|
+
lexicon?: string;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* A warden member's part, from the reconcile `ChangeSet`s it planned
|
|
224
|
+
* (`./reconcile.ts`). The address is `<resourceType>.<key>`, unique within
|
|
225
|
+
* one org, and the scope is the org. An update's disruption is `unknown`:
|
|
226
|
+
* the reconcile model says nothing about it.
|
|
227
|
+
*
|
|
228
|
+
* The plan digest covers each change set's org and entries, and leaves out
|
|
229
|
+
* the managed counts, which are guardrail denominators rather than changes.
|
|
230
|
+
*/
|
|
231
|
+
export declare function reconcilePlanPart(input: ReconcilePlanPartInput): ChangeSetPart;
|
|
232
|
+
//# sourceMappingURL=change-set.d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M,WAAW,sBAAsB;IACrC,MAAM,EAAE,MAAM,CAAC;IACf,sEAAsE;IACtE,IAAI,EAAE,kBAAkB,GAAG,kBAAkB,EAAE,CAAC;IAChD,0EAA0E;IAC1E,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAMD;;;;;;;;GAQG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,sBAAsB,GAAG,aAAa,CAyC9E"}
|
|
@@ -101,6 +101,13 @@ export interface AuditCommandResult {
|
|
|
101
101
|
}
|
|
102
102
|
/** Exit code when the audit had no lexicons to look with. Distinct from 1 (findings / failure). */
|
|
103
103
|
export declare const NO_LEXICONS_EXIT_CODE = 2;
|
|
104
|
+
/**
|
|
105
|
+
* The rule ids the audited project enables with `lint.rules` (anything but
|
|
106
|
+
* `"off"`), read from its config without running it, the way the audit reads
|
|
107
|
+
* its lexicon paths. Only a check marked `auditOptIn` consults this (#3190).
|
|
108
|
+
* A config that cannot be read statically enables nothing.
|
|
109
|
+
*/
|
|
110
|
+
export declare function readEnabledRules(path: string): Set<string>;
|
|
104
111
|
/**
|
|
105
112
|
* chant#2589 — the lexicons a local target's chant.config declares by path,
|
|
106
113
|
* with any recorded earlier in this process. The config is read statically
|
|
@@ -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,EAAyB,MAAM,kBAAkB,CAAC;AAC9H,OAAO,EAAmF,KAAK,aAAa,EAAE,KAAK,YAAY,EAAiB,KAAK,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAEjM,OAAO,EAAsC,KAAK,kBAAkB,EAAE,MAAM,qBAAqB,CAAC;AAMlG,OAAO,EAAc,KAAK,WAAW,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"audit.d.ts","sourceRoot":"","s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
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/build.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/build.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AA6IlD,wBAAsB,QAAQ,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAgFnE"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { CommandContext } from "../registry.js";
|
|
2
|
+
/**
|
|
3
|
+
* `chant change-set summary <file>` (#3188): the grouped plan summary of a
|
|
4
|
+
* change-set document (`../../change-set.ts`), such as the `document` a
|
|
5
|
+
* `composeChangeSet` step returns. `--format` picks text (default), json
|
|
6
|
+
* (the plan-summary schema) or markdown, an MR or PR note of at most
|
|
7
|
+
* `--limit` characters (default GitHub's comment limit, 65536). Reads one
|
|
8
|
+
* file; no project, no plugins, no network.
|
|
9
|
+
*/
|
|
10
|
+
export declare function runChangeSetSummary(ctx: CommandContext): Promise<number>;
|
|
11
|
+
//# sourceMappingURL=change-set.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"change-set.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/change-set.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAIlD;;;;;;;GAOG;AACH,wBAAsB,mBAAmB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA2B9E"}
|
|
@@ -33,8 +33,41 @@
|
|
|
33
33
|
* `--resume` carries the earlier attempt's progress, `remainingFanOut` narrows
|
|
34
34
|
* the plan before the gate is decided, and the digest is carried rather than
|
|
35
35
|
* recomputed, so the approval still stands.
|
|
36
|
+
*
|
|
37
|
+
* `--wave-gate <name>` (#3049) swaps the one gate for one per wave: the same
|
|
38
|
+
* repeated command stops at each wave's gate in turn, each planned after the
|
|
39
|
+
* wave before it applied, and `chant approve fan-out <name>-wave-<n>` answers
|
|
40
|
+
* it. `--wave <n>` runs one wave, for a CI job per wave.
|
|
36
41
|
*/
|
|
42
|
+
import { type ChantConfig } from "../../config.js";
|
|
43
|
+
import { type ChangedUnits } from "../../components/fan-out.js";
|
|
37
44
|
import type { CommandContext } from "../registry.js";
|
|
45
|
+
/**
|
|
46
|
+
* The stack-level change signal, from whichever end the invocation supplied.
|
|
47
|
+
*
|
|
48
|
+
* `--base` re-derives it here, which is the one-command shape a developer
|
|
49
|
+
* wants. `--from-affected` reads what `chant lifecycle affected --json` already
|
|
50
|
+
* wrote, which is the shape a CI job wants when an earlier step has run the
|
|
51
|
+
* diff and there is no reason to build twice. Exactly one, because defaulting
|
|
52
|
+
* either way would let a stale file silently beat a fresh `--base` or the other
|
|
53
|
+
* way round.
|
|
54
|
+
*
|
|
55
|
+
* `dependents` is folded into `changed` when it is present. It is only present
|
|
56
|
+
* when somebody asked for it (`--include-dependents`), and a stack that
|
|
57
|
+
* consumes a changed export is affected at stack granularity in the same way a
|
|
58
|
+
* changed component is at component granularity.
|
|
59
|
+
*/
|
|
60
|
+
export declare function resolveChangedUnits(ctx: CommandContext, config: ChantConfig, opts?: {
|
|
61
|
+
/** Measure from this commit instead of `--base` (a pull request's merge base, #3183). */
|
|
62
|
+
base?: string;
|
|
63
|
+
/** Build both refs for `lifecycle affected` only when the project declares `stacks`. */
|
|
64
|
+
stacksOnly?: boolean;
|
|
65
|
+
}): Promise<{
|
|
66
|
+
units: ChangedUnits;
|
|
67
|
+
} | {
|
|
68
|
+
error: string;
|
|
69
|
+
hint?: string;
|
|
70
|
+
}>;
|
|
38
71
|
/**
|
|
39
72
|
* chant components fan-out --base <ref> | --from-affected <file>
|
|
40
73
|
* [--head <ref>] [--include-dependents] [--env <env>] [--gate <name>]
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fan-out.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/fan-out.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"fan-out.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/fan-out.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAIH,OAAO,EAA+C,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAa7F,OAAO,EAAmB,KAAK,YAAY,EAAuB,MAAM,0BAA0B,CAAC;AAMnG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,mBAAmB,CACvC,GAAG,EAAE,cAAc,EACnB,MAAM,EAAE,WAAW,EACnB,IAAI,GAAE;IACJ,yFAAyF;IACzF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wFAAwF;IACxF,UAAU,CAAC,EAAE,OAAO,CAAC;CACjB,GACL,OAAO,CAAC;IAAE,KAAK,EAAE,YAAY,CAAA;CAAE,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CA+ErE;AAED;;;;;GAKG;AACH,wBAAsB,mBAAmB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAiQ9E"}
|
|
@@ -156,6 +156,13 @@ export interface GateApprovalOptions {
|
|
|
156
156
|
actor?: string;
|
|
157
157
|
/** `--note` — free-text prose. */
|
|
158
158
|
note?: string;
|
|
159
|
+
/**
|
|
160
|
+
* `--relayed-by <principal>` (#3402): who carried this approval to chant for
|
|
161
|
+
* the approver, such as a follower program relaying a person's approval.
|
|
162
|
+
* Recorded as `relayedBy` on the resolution line and covered by `--sign`.
|
|
163
|
+
* The approver is still `--actor`; the relay is not an approver.
|
|
164
|
+
*/
|
|
165
|
+
relayedBy?: string;
|
|
159
166
|
/** `--url` — the approval surface, validated as absolute http/https. */
|
|
160
167
|
url?: string;
|
|
161
168
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operator.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/operator.ts"],"names":[],"mappings":"AAgCA,OAAO,EAAsB,KAAK,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAE9F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAC3F,OAAO,EACuE,KAAK,UAAU,EAC5F,MAAM,6BAA6B,CAAC;AAOrC,OAAO,EAEuC,KAAK,mBAAmB,EAAE,KAAK,oBAAoB,EAChG,MAAM,wBAAwB,CAAC;AAKhC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"operator.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/operator.ts"],"names":[],"mappings":"AAgCA,OAAO,EAAsB,KAAK,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAE9F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAC3F,OAAO,EACuE,KAAK,UAAU,EAC5F,MAAM,6BAA6B,CAAC;AAOrC,OAAO,EAEuC,KAAK,mBAAmB,EAAE,KAAK,oBAAoB,EAChG,MAAM,wBAAwB,CAAC;AAKhC,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAwFlD;;;;;;;GAOG;AACH,wBAAsB,WAAW,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA+EtE;AAID;;;;;;;;;;;;GAYG;AACH,wBAAsB,kBAAkB,CAAC,GAAG,EAAE,cAAc,G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AAM,MAAM,mBAAmB,GAC3B;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,MAAM,EAAE,oBAAoB,CAAA;CAAE,GAC1C;IAAE,EAAE,EAAE,KAAK,CAAA;CAAE,CAAC;AAElB;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,mBAAmB,GACxB,OAAO,CAAC,mBAAmB,CAAC,CA6R9B;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,oBAAoB,EAC9B,MAAM,EAAE,oBAAoB,EAC5B,KAAK,EAAE,oBAAoB,EAAE,EAC7B,QAAQ,EAAE,iBAAiB,GAAG,SAAS,GACtC,MAAM,EAAE,CAiCV"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `chant components pr-plan` and `chant components pr-apply` (#3183): the
|
|
3
|
+
* pull-request loop the generated CI runs.
|
|
4
|
+
*
|
|
5
|
+
* ```
|
|
6
|
+
* chant components pr-plan --base <ref> --pr <n> --env <env> [--forge github|gitlab|forgejo]
|
|
7
|
+
* chant approve pr-<n> pr-apply --plan <digest> --approver github:<login> --sign
|
|
8
|
+
* chant components pr-apply --base <ref> --env <env> [--pr <n>] [--forge <kind>] [--require-review]
|
|
9
|
+
* ```
|
|
10
|
+
*
|
|
11
|
+
* Both measure the change from the merge base of `--base` and `HEAD`, select
|
|
12
|
+
* the components it reaches and the ones that depend on them (the fan-out's
|
|
13
|
+
* derivation, #2417), and plan every member before anything applies
|
|
14
|
+
* (`../../components/pr-run.ts`). pr-plan writes the report and the note and
|
|
15
|
+
* applies nothing; it reads the gate ledger and writes nothing to it, since
|
|
16
|
+
* it runs the pull request's own code. pr-apply plans the same members on
|
|
17
|
+
* the merged commit, decides the gate against the digest it gets, and
|
|
18
|
+
* applies only when an approval stands for that digest. A moved plan stops
|
|
19
|
+
* it with both digests named and nothing applied (exit 3).
|
|
20
|
+
*
|
|
21
|
+
* Every run writes `pr-plan.json` or `pr-apply.json` (`pr-report.schema.json`),
|
|
22
|
+
* `change-set.json` and `pr-note.md` under `--output` (default `.chant/pr`).
|
|
23
|
+
*/
|
|
24
|
+
import type { CommandContext } from "../registry.js";
|
|
25
|
+
/** Where the reports land unless `--output` says. */
|
|
26
|
+
export declare const PR_REPORT_DIR = ".chant/pr";
|
|
27
|
+
/** chant components pr-plan --base <ref> --pr <n> [--env <env>] [--gate <name>] [--forge <kind>] [--output <dir>] [--json] */
|
|
28
|
+
export declare function runComponentsPrPlan(ctx: CommandContext): Promise<number>;
|
|
29
|
+
/** chant components pr-apply --base <ref> [--pr <n>] [--env <env>] [--gate <name>] [--forge <kind>] [--require-review] [--output <dir>] [--json] */
|
|
30
|
+
export declare function runComponentsPrApply(ctx: CommandContext): Promise<number>;
|
|
31
|
+
//# sourceMappingURL=pr.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"pr.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/pr.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAqCH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAMlD,qDAAqD;AACrD,eAAO,MAAM,aAAa,cAAc,CAAC;AAgKzC,8HAA8H;AAC9H,wBAAsB,mBAAmB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAwC9E;AAED,oJAAoJ;AACpJ,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAsG/E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/run.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAUlD,OAAO,KAAK,EAAE,qBAAqB,E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AC,CAQvE;AAID,iGAAiG;AACjG,wBAAsB,WAAW,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAuBtE;AAsMD,wBAAsB,KAAK,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA2BhE;AAID;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAkCG;AACH,wBAAsB,wBAAwB,CAC5C,OAAO,EAAE,qBAAqB,EAAE,EAChC,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,OAAO,GAChB,OAAO,CAAC,aAAa,EAAE,CAAC,CA0C1B;AAID;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAsB,eAAe,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA2I1E;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,cAAc,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAsKzE;AAgDD,wBAAgB,YAAY,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAMjE"}
|
package/dist/cli/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/cli/main.ts"],"names":[],"mappings":";AAMA,OAAO,EAAkB,KAAK,UAAU,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAwG9E;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,UAAU,
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/cli/main.ts"],"names":[],"mappings":";AAMA,OAAO,EAAkB,KAAK,UAAU,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAwG9E;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,UAAU,CAioBpD;AAq3BD;;;;;;;;;;GAUG;AACH,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAuBzE;AAID;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,EAAE,UAAU,EA8JvC,CAAC;AA4KF;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAuB5E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"op-tools.d.ts","sourceRoot":"","sources":["../../../src/cli/mcp/op-tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAUH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"op-tools.d.ts","sourceRoot":"","sources":["../../../src/cli/mcp/op-tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAUH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAmD1D,wBAAgB,gBAAgB,IAAI,gBAAgB,CAsCnD;AAED,wBAAgB,eAAe,IAAI,gBAAgB,CA0ClD;AAED,wBAAgB,kBAAkB,IAAI,gBAAgB,CAoCrD;AAED,wBAAgB,mBAAmB,IAAI,gBAAgB,CA6DtD;AAED,wBAAgB,kBAAkB,IAAI,gBAAgB,CAkDrD"}
|
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
* read to the workspace root's pinned chant included (ws-021), and keeps
|
|
16
16
|
* anything a command prints away from the protocol on stdout.
|
|
17
17
|
* - The writes (`records-new`, `records-amend`, `records-review`,
|
|
18
|
-
* `records-close`, `points-answer`) call the functions
|
|
19
|
-
* records new|amend|review|close` and `points
|
|
18
|
+
* `records-close`, `points-answer`, `points-retract`) call the functions
|
|
19
|
+
* `chant workspace records new|amend|review|close` and `points
|
|
20
|
+
* answer|retract` call, and return the
|
|
20
21
|
* same JSON result. They keep every rule
|
|
21
22
|
* the CLI keeps: the kind's schema, a closed record never changing, an
|
|
22
23
|
* approved one changing only as its approval rule allows, a dissent needing
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace-tools.d.ts","sourceRoot":"","sources":["../../../src/cli/mcp/workspace-tools.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"workspace-tools.d.ts","sourceRoot":"","sources":["../../../src/cli/mcp/workspace-tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCG;AAGH,OAAO,KAAK,EAAe,cAAc,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAKxE,oEAAoE;AACpE,MAAM,MAAM,YAAY,GAAG,MAAM,EAAE,CAAC;AAEpC;;;GAGG;AACH,wBAAgB,eAAe,IAAI,YAAY,CAE9C;AAED,MAAM,WAAW,qBAAqB;IACpC,qFAAqF;IACrF,GAAG,EAAE,MAAM,CAAC;IACZ,oEAAoE;IACpE,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,mFAAmF;IACnF,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAmBD,eAAO,MAAM,kBAAkB,EAAE,cAAc,EAkI9C,CAAC;AAEF,eAAO,MAAM,mBAAmB,EAAE,cAAc,EA8G/C,CAAC;AAsCF,qHAAqH;AACrH,wBAAgB,QAAQ,CAAC,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,MAAM,EAAE,CAyEhF;AA6CD,MAAM,WAAW,aAAa;IAC5B,UAAU,EAAE,cAAc,CAAC;IAC3B,OAAO,EAAE,WAAW,CAAC;CACtB;AAED,+EAA+E;AAC/E,wBAAgB,oBAAoB,CAAC,OAAO,EAAE,qBAAqB,GAAG,aAAa,EAAE,CAyGpF"}
|
package/dist/cli/registry.d.ts
CHANGED
|
@@ -8,6 +8,8 @@ export interface ParsedArgs {
|
|
|
8
8
|
path: string;
|
|
9
9
|
extraPositional?: string;
|
|
10
10
|
extraPositional2?: string;
|
|
11
|
+
/** Every positional after the command word, in order (#3308): for a command with more than three, such as `workspace box listing set <member>`. */
|
|
12
|
+
positionals?: string[];
|
|
11
13
|
output?: string;
|
|
12
14
|
format: string;
|
|
13
15
|
force?: boolean;
|
|
@@ -237,6 +239,42 @@ export interface ParsedArgs {
|
|
|
237
239
|
* ungated. A component's own authored gates are unaffected either way.
|
|
238
240
|
*/
|
|
239
241
|
gate?: string;
|
|
242
|
+
/**
|
|
243
|
+
* `chant components fan-out --wave-gate <name>` (#3049) — one gate per wave
|
|
244
|
+
* instead of one over the set. Wave `n` waits on `<name>-wave-<n>`, bound to
|
|
245
|
+
* that wave's set digest, and is planned only once the waves before it
|
|
246
|
+
* applied. Also `chant build --components --generate <lexicon> --wave-gate
|
|
247
|
+
* <name>`, which generates one CI job per wave.
|
|
248
|
+
*/
|
|
249
|
+
waveGate?: string;
|
|
250
|
+
/** `chant components fan-out --wave <n>` (#3049) — run wave `n` of a `--wave-gate` fan-out and no other. */
|
|
251
|
+
wave?: number;
|
|
252
|
+
/** `chant components fan-out --canary <component>` (#3049), repeatable — components that form wave 1. */
|
|
253
|
+
canary?: string[];
|
|
254
|
+
/**
|
|
255
|
+
* `chant components pr-plan|pr-apply --pr <n>` (#3183) — the pull or merge
|
|
256
|
+
* request the plan belongs to. Its gate is recorded under op `pr-<n>`.
|
|
257
|
+
* pr-apply finds it from the commit through `--forge` when omitted.
|
|
258
|
+
*/
|
|
259
|
+
pr?: number;
|
|
260
|
+
/**
|
|
261
|
+
* `chant components pr-plan|pr-apply --forge github|gitlab|forgejo` (#3183)
|
|
262
|
+
* — post the note and the commit status on this forge, with the client
|
|
263
|
+
* read from the CI job's environment.
|
|
264
|
+
*/
|
|
265
|
+
forge?: string;
|
|
266
|
+
/**
|
|
267
|
+
* `chant components pr-apply --require-review` (#3183) — count an approval
|
|
268
|
+
* only when its approver has a standing approving review on the pull
|
|
269
|
+
* request. Needs `--forge`.
|
|
270
|
+
*/
|
|
271
|
+
requireReview?: boolean;
|
|
272
|
+
/**
|
|
273
|
+
* `chant build --components --generate <lexicon> --pr-loop` (#3183) —
|
|
274
|
+
* generate the pull-request pipeline: plan on the pull request, apply on
|
|
275
|
+
* merge bound to the approved digest.
|
|
276
|
+
*/
|
|
277
|
+
prLoop?: boolean;
|
|
240
278
|
/**
|
|
241
279
|
* `chant components fan-out --resume <file>` (#2420) — the attempt record
|
|
242
280
|
* this fan-out reads before it starts and writes when it finishes. Repeating
|
|
@@ -302,8 +340,10 @@ export interface ParsedArgs {
|
|
|
302
340
|
bys?: string[];
|
|
303
341
|
/** `chant workspace points --open` (#2739): only the questions still open. */
|
|
304
342
|
open?: boolean;
|
|
305
|
-
/** `chant workspace points ask <point> --inputs <file
|
|
343
|
+
/** `chant workspace points ask <point> --inputs <file|-|json>` (#2739): the inputs, as a JSON object. */
|
|
306
344
|
inputs?: string;
|
|
345
|
+
/** `chant workspace points ask <point> --candidates <file|-|json>` (#3403): an ad-hoc point's question and candidates. */
|
|
346
|
+
candidates?: string;
|
|
307
347
|
/** `chant workspace points ask <point> --response <file>` (#2739): a POST /v1/systemone response the caller got from a backend. */
|
|
308
348
|
response?: string;
|
|
309
349
|
/** `chant workspace points ask <point> --subject <id>` (#2739): what the question is about. */
|
|
@@ -316,6 +356,8 @@ export interface ParsedArgs {
|
|
|
316
356
|
composites?: boolean;
|
|
317
357
|
/** `chant workspace graph --intent <path[:start-end]|path#symbol>` (#2651): the region the intent graph is over. Empty with `--record`. */
|
|
318
358
|
intent?: string;
|
|
359
|
+
/** `chant workspace graph --intent` and `chant workspace runs` (#3035): follow squash merges to their pull requests' original commits, fetching missing pull request refs. */
|
|
360
|
+
followSquash?: boolean;
|
|
319
361
|
/** `chant workspace graph --intent --record <id>`: walk one decision record over every entry its constrains lists. */
|
|
320
362
|
record?: string;
|
|
321
363
|
/** `chant workspace patch <range> --path <p>`: only these paths, from the workspace root. Repeatable. */
|
|
@@ -334,8 +376,20 @@ export interface ParsedArgs {
|
|
|
334
376
|
uncommitted?: boolean;
|
|
335
377
|
/** `chant workspace records amend <id> --set <file|->` (#2670): the JSON fields to set. */
|
|
336
378
|
set?: string;
|
|
379
|
+
/** `chant workspace records amend|review|close <id> --expect <digest>` (#3173): the record's digest the caller last read; the write is refused with record-conflict when it has moved on. */
|
|
380
|
+
expect?: string;
|
|
337
381
|
/** `chant workspace records review <id> --verdict <v>` (#2670): agree, dissent or abstain. */
|
|
338
382
|
verdict?: string;
|
|
383
|
+
/** `chant workspace box listing set <member> --cover <image>` (#3308): a PNG, JPEG or WebP picture to copy in as the box's cover. */
|
|
384
|
+
cover?: string;
|
|
385
|
+
/** `chant workspace box listing set <member> --cover <image> --cover-path <path>` (#3308): where the cover goes, from the workspace root. */
|
|
386
|
+
coverPath?: string;
|
|
387
|
+
/** `chant workspace box publish <member> --records` (#3165): publish the records kept uncommitted instead of a work item. */
|
|
388
|
+
records?: boolean;
|
|
389
|
+
/** `chant workspace wip save --label <text>` (#3172): what the caller calls the snapshot, such as a turn id. */
|
|
390
|
+
label?: string;
|
|
391
|
+
/** `chant workspace wip --branch <branch>` (#3172): list one branch's snapshots. */
|
|
392
|
+
branch?: string;
|
|
339
393
|
/**
|
|
340
394
|
* `chant workspace records review <id> --by <principal>` (#2670): the
|
|
341
395
|
* reviewer, as the caller names them. Also `chant workspace records new
|
|
@@ -350,6 +404,12 @@ export interface ParsedArgs {
|
|
|
350
404
|
* On `chant approve` and `chant run approve`, the key that seals the gate approval (#3163).
|
|
351
405
|
*/
|
|
352
406
|
sign?: string | true;
|
|
407
|
+
/**
|
|
408
|
+
* `chant approve <op> <gate> --relayed-by <principal>` and `chant workspace
|
|
409
|
+
* points answer <id> --relayed-by <principal>` (#3402): the principal that
|
|
410
|
+
* carried the approval or answer to chant on behalf of the person it names.
|
|
411
|
+
*/
|
|
412
|
+
relayedBy?: string;
|
|
353
413
|
/** `chant workspace records review <id> --session <id>` (#2670): the review session the verdict was given in. */
|
|
354
414
|
session?: string;
|
|
355
415
|
/** `chant workspace records new <kind> --prefix <prefix>` (#2670): the id prefix to allocate under. */
|
|
@@ -364,6 +424,8 @@ export interface ParsedArgs {
|
|
|
364
424
|
claim?: string;
|
|
365
425
|
/** `chant workspace evidence sign --environment <file>` (#2553): the runner environment, hashed into the evidence. */
|
|
366
426
|
environment?: string;
|
|
427
|
+
/** `chant workspace runs statement <id> --signer <principal>` (#3192): the runner principal that will sign. */
|
|
428
|
+
signer?: string;
|
|
367
429
|
/** `chant workspace evidence verify --envelope <file>` (#2553). */
|
|
368
430
|
envelope?: string;
|
|
369
431
|
/** `chant workspace signers rotate --threshold <n>` (#2553). */
|