@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":"lint.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/lint.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAI7D,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAW,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/lint.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAI7D,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAW,MAAM,iBAAiB,CAAC;AAwBzE;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,QAAQ,CAW5D;AAED;;;;;;;;;;;;;;;;;;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output (see `printOnboardResult`). */
|
|
3
4
|
verbose?: boolean;
|
|
4
5
|
/** Monorepo root to patch. Defaults to the root this module lives in. */
|
|
5
6
|
root?: string;
|
|
@@ -8,6 +9,7 @@ export interface OnboardResult {
|
|
|
8
9
|
success: boolean;
|
|
9
10
|
patched: string[];
|
|
10
11
|
skipped: string[];
|
|
12
|
+
verbose?: boolean;
|
|
11
13
|
error?: string;
|
|
12
14
|
}
|
|
13
15
|
export interface PatchResult {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"onboard.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/onboard.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,yEAAyE;IACzE,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;
|
|
1
|
+
{"version":3,"file":"onboard.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/onboard.ts"],"names":[],"mappings":"AAKA,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,0FAA0F;IAC1F,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,yEAAyE;IACzE,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,OAAO,CAAC;IACjB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,WAAW;IAC1B,OAAO,EAAE,OAAO,CAAC;IACjB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAwFD;;;;;;GAMG;AACH,wBAAgB,sBAAsB,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,WAAW,CAyB9E;AAuDD;;;GAGG;AACH,wBAAgB,sBAAsB,CAAC,KAAK,EAAE,MAAM,EAAE,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAoB7E;AAiFD;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,WAAW,CAe3E;AAED;;GAEG;AACH,wBAAgB,cAAc,CAAC,OAAO,EAAE,cAAc,GAAG,aAAa,CA+BrE;AAED;;GAEG;AACH,wBAAsB,kBAAkB,CAAC,MAAM,EAAE,aAAa,EAAE,IAAI,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA8C3F"}
|
|
@@ -1 +1 @@
|
|
|
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;
|
|
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;AA+FlD,wBAAsB,QAAQ,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAgFnE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/lifecycle.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"lifecycle.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/lifecycle.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oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA+C/E"}
|
|
@@ -1,15 +1,38 @@
|
|
|
1
1
|
import { type ConvergeTickRecord } from "../../lifecycle/converge-ledger.js";
|
|
2
|
-
import type {
|
|
2
|
+
import type { OpRunRecord } from "../../op/runtime.js";
|
|
3
|
+
import type { GateResolutionRecord, PendingGateRecord } from "../../lifecycle/gate-ledger.js";
|
|
3
4
|
import type { CommandContext } from "../registry.js";
|
|
4
5
|
/**
|
|
5
6
|
* `chant operator [--env <env>] [--interval <duration>] [--lease-ttl
|
|
6
7
|
* <duration>] [--once]` — run scheduled ticks for this project's discovered
|
|
7
|
-
* ConvergeOps, locally, with no
|
|
8
|
+
* ConvergeOps, locally, with no service to install (issue's own worked
|
|
8
9
|
* example). `--once` runs a single round and exits (also the offline test
|
|
9
10
|
* story, and what a cron/systemd-timer/k8s-CronJob invoker uses instead of
|
|
10
11
|
* leaving the daemon running); omitted, the daemon loops until Ctrl-C.
|
|
11
12
|
*/
|
|
12
13
|
export declare function runOperator(ctx: CommandContext): Promise<number>;
|
|
14
|
+
/**
|
|
15
|
+
* Every gate an op is currently standing at, read from its own gate ledger
|
|
16
|
+
* (#2119) — a live (unexpired) pending fact with no resolution newer than it.
|
|
17
|
+
*
|
|
18
|
+
* Ledger-first, so `chant operator status` sees a gate any run recorded, not
|
|
19
|
+
* only one a converge tick's dispatch reached. Before this, a plain `chant run
|
|
20
|
+
* <op>` could not produce a pending gate at all (the executor refused the op
|
|
21
|
+
* outright), so reading the converge ledger's `gated` outcomes was the whole
|
|
22
|
+
* story; now it is one source among the ops' own.
|
|
23
|
+
*/
|
|
24
|
+
export declare function pendingGatesFor(opName: string, opts?: {
|
|
25
|
+
cwd?: string;
|
|
26
|
+
now?: string;
|
|
27
|
+
}): Promise<PendingGateRecord[]>;
|
|
28
|
+
/** One op standing at a gate that no ConvergeOp row above already reported (#2119) — an ordinary `chant run <op>` records these now, so they belong on this page even where no converge tick was ever involved. */
|
|
29
|
+
export interface StandaloneGateLine {
|
|
30
|
+
op: string;
|
|
31
|
+
gate: string;
|
|
32
|
+
description?: string;
|
|
33
|
+
expiresAt: string;
|
|
34
|
+
url?: string;
|
|
35
|
+
}
|
|
13
36
|
/**
|
|
14
37
|
* `chant operator status [--env <env>] [--json]` — last tick, outcome
|
|
15
38
|
* counts, and pending gates, read from the `chant/lifecycle` orphan branch
|
|
@@ -17,6 +40,11 @@ export declare function runOperator(ctx: CommandContext): Promise<number>;
|
|
|
17
40
|
* running: everything here was already durably recorded by whichever
|
|
18
41
|
* process (this operator, a bare `chant run <op>`, or another machine's
|
|
19
42
|
* operator) ran the last tick.
|
|
43
|
+
*
|
|
44
|
+
* Pending gates are read from every discovered op's own gate ledger, not only
|
|
45
|
+
* from a converge tick's `gated` outcomes (#2119) — a gate an ordinary `chant
|
|
46
|
+
* run <op>` stopped at is the same standing fact and shows up the same way,
|
|
47
|
+
* under "pending gates" for ops with no converge tick behind them.
|
|
20
48
|
*/
|
|
21
49
|
export declare function runOperatorStatus(ctx: CommandContext): Promise<number>;
|
|
22
50
|
/** One entry of the merged tick/gate timeline `chant operator log` prints. */
|
|
@@ -28,18 +56,26 @@ export type OperatorLogEntry = {
|
|
|
28
56
|
kind: "gate-resolution";
|
|
29
57
|
timestamp: string;
|
|
30
58
|
record: GateResolutionRecord;
|
|
59
|
+
}
|
|
60
|
+
/** One Op run (#2118), timestamped at the instant it ended — the tick that dispatched it precedes it. */
|
|
61
|
+
| {
|
|
62
|
+
kind: "run";
|
|
63
|
+
timestamp: string;
|
|
64
|
+
record: OpRunRecord;
|
|
31
65
|
};
|
|
32
66
|
export interface OperatorLogResult {
|
|
33
67
|
entries: OperatorLogEntry[];
|
|
34
68
|
/**
|
|
35
|
-
* Unreadable lines behind this answer, per ledger. `readConvergeLedger
|
|
36
|
-
* `readGateResolutions`
|
|
37
|
-
* throwing, so a corrupted ledger renders a shorter
|
|
38
|
-
* consumer could not tell that from a genuinely
|
|
69
|
+
* Unreadable lines behind this answer, per ledger. `readConvergeLedger`,
|
|
70
|
+
* `readGateResolutions` and `readRunLedger` all skip a malformed line and
|
|
71
|
+
* count it rather than throwing, so a corrupted ledger renders a shorter
|
|
72
|
+
* timeline; without this a consumer could not tell that from a genuinely
|
|
73
|
+
* quiet environment.
|
|
39
74
|
*/
|
|
40
75
|
malformed: {
|
|
41
76
|
converge: number;
|
|
42
77
|
gates: number;
|
|
78
|
+
runs: number;
|
|
43
79
|
};
|
|
44
80
|
}
|
|
45
81
|
/**
|
|
@@ -77,16 +113,46 @@ export declare function collectOperatorLog(ops: {
|
|
|
77
113
|
*/
|
|
78
114
|
export declare function runOperatorLog(ctx: CommandContext): Promise<number>;
|
|
79
115
|
/**
|
|
80
|
-
* `chant approve <op> <gate> [--actor <name>] [--note <text>] [--url <url>]
|
|
81
|
-
* — record the
|
|
82
|
-
*
|
|
83
|
-
*
|
|
84
|
-
*
|
|
85
|
-
*
|
|
86
|
-
*
|
|
87
|
-
*
|
|
88
|
-
*
|
|
89
|
-
*
|
|
116
|
+
* `chant approve <op> <gate> [--actor <name>] [--note <text>] [--url <url>]
|
|
117
|
+
* [--expire]` — record the out-of-band resolution fact for a gate a run
|
|
118
|
+
* stopped at (issue #1485: "resolution is an out-of-band act that writes the
|
|
119
|
+
* counterpart fact"). Per that issue's leaning on open question 3 ("local
|
|
120
|
+
* trust in v1"), this performs no authorization check beyond "you can run
|
|
121
|
+
* `chant approve` locally".
|
|
122
|
+
*
|
|
123
|
+
* Since #2119 this closes the loop rather than just narrating it: the next
|
|
124
|
+
* `chant run <op>` reads the resolution, finds it newer than the gate's
|
|
125
|
+
* pending fact, and walks through.
|
|
126
|
+
*
|
|
127
|
+
* `--expire` is the other half — clear a standing pending fact *without*
|
|
128
|
+
* approving anything, for a gate that was recorded against a run nobody
|
|
129
|
+
* intends to finish. It writes no resolution; it appends a pending fact that
|
|
130
|
+
* is already expired, which supersedes the standing one on an append-only
|
|
131
|
+
* ledger, so the next run decides the gate from scratch.
|
|
90
132
|
*/
|
|
91
133
|
export declare function runApprove(ctx: CommandContext): Promise<number>;
|
|
134
|
+
/** What a caller supplies alongside the op and gate names. */
|
|
135
|
+
export interface GateApprovalOptions {
|
|
136
|
+
/** `--actor`/`--approver`; falls back to the CI or shell identity. */
|
|
137
|
+
actor?: string;
|
|
138
|
+
/** `--note` — free-text prose. */
|
|
139
|
+
note?: string;
|
|
140
|
+
/** `--url` — the approval surface, validated as absolute http/https. */
|
|
141
|
+
url?: string;
|
|
142
|
+
}
|
|
143
|
+
export type GateApprovalOutcome = {
|
|
144
|
+
ok: true;
|
|
145
|
+
record: GateResolutionRecord;
|
|
146
|
+
} | {
|
|
147
|
+
ok: false;
|
|
148
|
+
};
|
|
149
|
+
/**
|
|
150
|
+
* The ledger write behind `chant approve` — extracted so `chant run approve`
|
|
151
|
+
* (#2121) records the identical fact before waking the runtime that hosts the
|
|
152
|
+
* gated run, instead of growing a second, drifting writer.
|
|
153
|
+
*
|
|
154
|
+
* Prints the same warning for an undiscovered op and the same success line as
|
|
155
|
+
* `chant approve` always did; the caller adds whatever it does next.
|
|
156
|
+
*/
|
|
157
|
+
export declare function recordGateApproval(opName: string, gate: string, opts: GateApprovalOptions): Promise<GateApprovalOutcome>;
|
|
92
158
|
//# sourceMappingURL=operator.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operator.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/operator.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAsB,KAAK,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"operator.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/operator.ts"],"names":[],"mappings":"AAqBA,OAAO,EAAsB,KAAK,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAE9F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,oBAAoB,E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.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
/**
|
|
3
|
+
* The exit code a run that stopped at an unapproved gate uses (#2119).
|
|
4
|
+
* Deliberately not 1: a gate is a standing fact waiting on a human, and a CI
|
|
5
|
+
* job that treats it as a failure would page someone for a decision nobody has
|
|
6
|
+
* made yet.
|
|
7
|
+
*/
|
|
8
|
+
export declare const GATED_EXIT_CODE = 3;
|
|
8
9
|
export declare function runOpList(ctx: CommandContext): Promise<number>;
|
|
9
10
|
export declare function runOpStatus(ctx: CommandContext): Promise<number>;
|
|
10
11
|
export declare function runOpLog(ctx: CommandContext): Promise<number>;
|
|
11
12
|
/**
|
|
12
|
-
* `chant run
|
|
13
|
-
*
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
*
|
|
13
|
+
* `chant run approve <op> <gate> [--approver] [--url] [--note]` (#2121) — the
|
|
14
|
+
* rename of `chant run signal`, and a different act.
|
|
15
|
+
*
|
|
16
|
+
* A gate resolution is a fact, not a message: the ledger write is the whole
|
|
17
|
+
* of it, and it is the same write `chant approve` performs
|
|
18
|
+
* (`recordGateApproval`, ./operator.ts), so a resolution recorded here reads
|
|
19
|
+
* back identically. The runtime is told afterwards, through its optional
|
|
20
|
+
* `resolveGate`, purely so a runtime that parks a run mid-flight can wake it
|
|
21
|
+
* now rather than on its next tick. A runtime without that method is not a
|
|
22
|
+
* failure — the fact is recorded either way, and the next run re-reads it.
|
|
19
23
|
*/
|
|
20
|
-
export declare function
|
|
21
|
-
/**
|
|
24
|
+
export declare function runOpApprove(ctx: CommandContext): Promise<number>;
|
|
25
|
+
/**
|
|
26
|
+
* `chant run signal` was renamed `chant run approve` (#2121). Registered so
|
|
27
|
+
* the old spelling says where the verb went instead of being read as an Op
|
|
28
|
+
* named "signal".
|
|
29
|
+
*/
|
|
30
|
+
export declare function runOpSignalRenamed(ctx: CommandContext): Promise<number>;
|
|
31
|
+
/** `chant run cancel <name>` — asks the resolved runtime (#2121) to stop the Op's active run. */
|
|
22
32
|
export declare function runOpCancel(ctx: CommandContext): Promise<number>;
|
|
23
33
|
export declare function runOp(ctx: CommandContext): Promise<number>;
|
|
24
34
|
/**
|
|
25
|
-
* `chant run --components <name|all> [--env <env>]
|
|
26
|
-
*
|
|
27
|
-
* is the component name (or `all`), matching `chant run
|
|
28
|
-
* convention exactly (`args.path` is the Op name there
|
|
29
|
-
* project directory — components are always discovered from
|
|
30
|
-
* working directory, the same way Op discovery (`discoverOps()`)
|
|
31
|
-
* a project-path argument either.
|
|
32
|
-
*
|
|
33
|
-
* Local mode (the default) resolves the selector through `runComponents`
|
|
34
|
-
* (`../../components/cli-support.ts`) and runs it on the local in-process
|
|
35
|
-
* executor; gated components are rejected before any step runs (matching
|
|
36
|
-
* `runOpLocal`'s pre-flight `findGate` guard) with an actionable message
|
|
37
|
-
* pointing at `--temporal`.
|
|
35
|
+
* `chant run --components <name|all> [--env <env>]` (#585) — the interpret
|
|
36
|
+
* driver's CLI entrypoint, and since #2116 the only component run path there
|
|
37
|
+
* is. `args.path` is the component name (or `all`), matching `chant run
|
|
38
|
+
* <name>`'s Op-dispatch convention exactly (`args.path` is the Op name there
|
|
39
|
+
* too) rather than a project directory — components are always discovered from
|
|
40
|
+
* the current working directory, the same way Op discovery (`discoverOps()`)
|
|
41
|
+
* never takes a project-path argument either.
|
|
38
42
|
*
|
|
39
|
-
*
|
|
40
|
-
*
|
|
41
|
-
*
|
|
42
|
-
*
|
|
43
|
-
* in-process block. Scoped to a single named component (`all --temporal` is
|
|
44
|
-
* out of scope for #589: coordinating N durable workflows' cross-component
|
|
45
|
-
* `dependsOn` durably is a follow-up, not part of "compile a component's
|
|
46
|
-
* `deploy` composition into a durable orchestrator").
|
|
43
|
+
* The selector resolves through the runtime's `runComponents` and runs on the
|
|
44
|
+
* local in-process driver; a `gate` is decided against the gate ledger when
|
|
45
|
+
* the driver reaches it (#2119), and one nobody has approved ends the run with
|
|
46
|
+
* exit code 3 and the `chant approve` line, exactly as `chant run <op>` does.
|
|
47
47
|
*
|
|
48
48
|
* On a successful run, auto-emits one release-ledger record per component
|
|
49
49
|
* that published a digest (#597, `recordAutoReleasesForRun` above) — a
|
|
@@ -56,8 +56,8 @@ export declare function runOp(ctx: CommandContext): Promise<number>;
|
|
|
56
56
|
* chant #1108 — resolves this invocation's declared build-time parameters
|
|
57
57
|
* (`chant.config.ts`'s `buildParams`, against `--param`/`--params-file`/a
|
|
58
58
|
* declared `env` mapping) the exact same way `chant build` does
|
|
59
|
-
* (`resolveCliBuildParams`, shared with `buildCommand`), BEFORE
|
|
60
|
-
*
|
|
59
|
+
* (`resolveCliBuildParams`, shared with `buildCommand`), BEFORE anything
|
|
60
|
+
* discovers/imports a `*.component.ts` file.
|
|
61
61
|
* Before this, `params.*` (`@intentius/chant/params`) was always `{}` under
|
|
62
62
|
* this command, no matter what a component's `chant.config.ts` declared or a
|
|
63
63
|
* CI job's environment supplied — see chant #1108. `chant.config.ts` is
|
|
@@ -67,10 +67,17 @@ export declare function runOp(ctx: CommandContext): Promise<number>;
|
|
|
67
67
|
*/
|
|
68
68
|
export declare function runOpComponents(ctx: CommandContext): Promise<number>;
|
|
69
69
|
/**
|
|
70
|
-
*
|
|
71
|
-
*
|
|
72
|
-
*
|
|
70
|
+
* `chant run <name>` on the resolved runtime (#2121) — the built-in `local`
|
|
71
|
+
* provider by default, a lexicon's `opRuntime` under `--on <name>`.
|
|
72
|
+
*
|
|
73
|
+
* This function knows nothing about how a run happens. It discovers the Op,
|
|
74
|
+
* runs the CLI-level pre-flights that are about flags rather than execution
|
|
75
|
+
* (`--sandbox` over a `policyGate` step, #2003), hands the config to the
|
|
76
|
+
* runtime, and renders whatever comes back. On the local runtime that is the
|
|
77
|
+
* executor's own `OpRunResult`, so `--json` and the human render are exactly
|
|
78
|
+
* what they were before the seam existed; a runtime that reports only a state
|
|
79
|
+
* gets the terser render instead.
|
|
73
80
|
*/
|
|
74
|
-
export declare function
|
|
81
|
+
export declare function runOpOnRuntime(ctx: CommandContext): Promise<number>;
|
|
75
82
|
export declare function runOpUnknown(ctx: CommandContext): Promise<number>;
|
|
76
83
|
//# sourceMappingURL=run.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/run.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/run.ts"],"names":[],"mappings":"AAeA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAOlD;;;;;GAKG;AACH,eAAO,MAAM,eAAe,IAAI,CAAC;AA0GjC,wBAAsB,SAAS,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAGpE;AAuED,wBAAsB,WAAW,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAetE;AA8BD,wBAAsB,QAAQ,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAenE;AA2CD;;;;;;;;;;;GAWG;AACH,wBAAsB,YAAY,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAuCvE;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAQvE;AAID,iGAAiG;AACjG,wBAAsB,WAAW,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAuBtE;AAsED,wBAAsB,KAAK,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAiBhE;AA+ED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAsB,eAAe,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAkG1E;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,cAAc,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAoFzE;AAID,wBAAgB,YAAY,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAMjE"}
|
package/dist/cli/main.d.ts
CHANGED
|
@@ -1,9 +1,36 @@
|
|
|
1
1
|
#!/usr/bin/env tsx
|
|
2
|
-
import { type ParsedArgs } from "./registry.js";
|
|
2
|
+
import { type CommandDef, type ParsedArgs } from "./registry.js";
|
|
3
3
|
/**
|
|
4
4
|
* Parse command line arguments
|
|
5
5
|
*/
|
|
6
|
+
/**
|
|
7
|
+
* `--temporal` picked the Temporal runtime, which #2116 deleted. It is caught
|
|
8
|
+
* ahead of {@link parseArgs} — which no longer knows the flag at all — for one
|
|
9
|
+
* minor version, so an invocation that still carries it is told where the
|
|
10
|
+
* runtime went instead of getting "Unknown flag: --temporal" and a pointer at
|
|
11
|
+
* `--help`. Delete this, its test and the constants below once that version
|
|
12
|
+
* has shipped.
|
|
13
|
+
*/
|
|
14
|
+
export declare const REMOVED_TEMPORAL_FLAG = "--temporal was removed in #2116; use --on fountain";
|
|
15
|
+
/**
|
|
16
|
+
* Not 1: a removed flag means the command never started, so a CI job that
|
|
17
|
+
* retries a failed run has nothing to retry here.
|
|
18
|
+
*/
|
|
19
|
+
export declare const REMOVED_FLAG_EXIT_CODE = 2;
|
|
20
|
+
/** Matches the bare flag and the joined `--temporal=…` form `splitJoinedFlags` would otherwise split. */
|
|
21
|
+
export declare function usesRemovedTemporalFlag(argv: string[]): boolean;
|
|
6
22
|
export declare function parseArgs(args: string[]): ParsedArgs;
|
|
23
|
+
/**
|
|
24
|
+
* Every command word `chant` answers to, and the handler behind it.
|
|
25
|
+
*
|
|
26
|
+
* Exported because a caller other than `main()` now needs to ask "is this a
|
|
27
|
+
* chant verb, and what runs it?" — the fountain lexicon's ACP server (#2125)
|
|
28
|
+
* treats a prompt as a chant command line, and the only honest answer to
|
|
29
|
+
* whether `chant lifecycle diff` is a verb is this list. A hand-kept copy
|
|
30
|
+
* would be wrong the first time a command is added, and the ACP server would
|
|
31
|
+
* refuse a verb that works at the terminal.
|
|
32
|
+
*/
|
|
33
|
+
export declare const commandRegistry: CommandDef[];
|
|
7
34
|
/**
|
|
8
35
|
* Wait until a writable stream has flushed its buffer. `process.exit()` discards
|
|
9
36
|
* data still buffered for an async sink (a pipe or file), truncating large output
|
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,
|
|
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;AAwF9E;;GAEG;AACH;;;;;;;GAOG;AACH,eAAO,MAAM,qBAAqB,uDAAuD,CAAC;AAE1F;;;GAGG;AACH,eAAO,MAAM,sBAAsB,IAAI,CAAC;AAExC,yGAAyG;AACzG,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAE/D;AAED,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,UAAU,CAsVpD;AAgbD;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,EAAE,UAAU,EAkGvC,CAAC;AAsIF;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAuB5E"}
|
|
@@ -1,7 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MCP tools over Ops — on the runtime seam (#2121), not on any one runtime's
|
|
3
|
+
* own client.
|
|
4
|
+
*
|
|
5
|
+
* Every tool here goes through an {@link OpRuntimeProvider} — the built-in
|
|
6
|
+
* `local` one by default, or the `runtime` argument's lexicon `opRuntime` when
|
|
7
|
+
* an agent names one. One provider is built per call, so a long-lived server
|
|
8
|
+
* picks up a project's config as it is now rather than as it was at boot; the
|
|
9
|
+
* local provider's in-process run history is the exception and is held for the
|
|
10
|
+
* life of the module, so `op-status` can answer for a run `op-run` started.
|
|
11
|
+
*
|
|
12
|
+
* #2118 owns the ledger-backed record shape; when it lands, `status`/`log`
|
|
13
|
+
* read the ledger and this file stops depending on the process outliving the
|
|
14
|
+
* run.
|
|
15
|
+
*/
|
|
1
16
|
import type { ToolRegistration } from "./lifecycle-tools.js";
|
|
2
17
|
export declare function createOpListTool(): ToolRegistration;
|
|
3
18
|
export declare function createOpRunTool(): ToolRegistration;
|
|
4
19
|
export declare function createOpStatusTool(): ToolRegistration;
|
|
5
|
-
export declare function
|
|
20
|
+
export declare function createOpApproveTool(): ToolRegistration;
|
|
6
21
|
export declare function createOpReportTool(): ToolRegistration;
|
|
7
22
|
//# sourceMappingURL=op-tools.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"op-tools.d.ts","sourceRoot":"","sources":["../../../src/cli/mcp/op-tools.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"op-tools.d.ts","sourceRoot":"","sources":["../../../src/cli/mcp/op-tools.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AASH,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,mBAAmB,CAAC;AAoC1D,wBAAgB,gBAAgB,IAAI,gBAAgB,CAsCnD;AAED,wBAAgB,eAAe,IAAI,gBAAgB,CAuClD;AAED,wBAAgB,kBAAkB,IAAI,gBAAgB,CAoCrD;AAED,wBAAgB,mBAAmB,IAAI,gBAAgB,CA2CtD;AAED,wBAAgB,kBAAkB,IAAI,gBAAgB,CAkDrD"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resource-handlers.d.ts","sourceRoot":"","sources":["../../../src/cli/mcp/resource-handlers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;
|
|
1
|
+
{"version":3,"file":"resource-handlers.d.ts","sourceRoot":"","sources":["../../../src/cli/mcp/resource-handlers.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAQlD,KAAK,mBAAmB,GAAG;IAAE,UAAU,EAAE,kBAAkB,CAAC;IAAC,OAAO,EAAE,MAAM,OAAO,CAAC,MAAM,CAAC,CAAA;CAAE,CAAC;AAE9F;;GAEG;AACH,eAAO,MAAM,uBAAuB,EAAE,kBAAkB,EAiDvD,CAAC;AAEF;;GAEG;AACH,wBAAgB,kBAAkB,CAChC,eAAe,EAAE,GAAG,CAAC,MAAM,EAAE,mBAAmB,CAAC,GAChD;IAAE,SAAS,EAAE,kBAAkB,EAAE,CAAA;CAAE,CAMrC;AAED;;GAEG;AACH,wBAAgB,eAAe,CAC7B,eAAe,EAAE,GAAG,CAAC,MAAM,EAAE,mBAAmB,CAAC,GAChD,KAAK,CAAC;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,WAAW,EAAE,MAAM,CAAA;CAAE,CAAC,CAS9C;AAED;;GAEG;AACH,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EAC/B,eAAe,EAAE,GAAG,CAAC,MAAM,EAAE,mBAAmB,CAAC,GAChD,OAAO,CAAC,OAAO,CAAC,CAkKlB"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../src/cli/mcp/resources/context.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,UAAU,IAAI,MAAM,
|
|
1
|
+
{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["../../../../src/cli/mcp/resources/context.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,wBAAgB,UAAU,IAAI,MAAM,CAgFnC"}
|
package/dist/cli/registry.d.ts
CHANGED
|
@@ -17,12 +17,26 @@ export interface ParsedArgs {
|
|
|
17
17
|
watch: boolean;
|
|
18
18
|
verbose: boolean;
|
|
19
19
|
help: boolean;
|
|
20
|
-
profile?: string;
|
|
21
20
|
report?: boolean;
|
|
22
21
|
/** `chant run` — force the local in-process executor (the default). */
|
|
23
22
|
local?: boolean;
|
|
24
|
-
/**
|
|
25
|
-
|
|
23
|
+
/**
|
|
24
|
+
* `chant run <op> --on <lexicon>` (#2121) — which runtime hosts the run.
|
|
25
|
+
* The named lexicon's `opRuntime` (`../lexicon.ts`) takes it; omitted, core's
|
|
26
|
+
* built-in `local` provider does. Applies to every `run` subcommand, so
|
|
27
|
+
* `run status`/`log`/`list`/`cancel`/`approve` all address the same runtime
|
|
28
|
+
* the run started on.
|
|
29
|
+
*/
|
|
30
|
+
on?: string;
|
|
31
|
+
/**
|
|
32
|
+
* `-p, --profile <name>` (#2124, restored in #2192) — which named connection
|
|
33
|
+
* profile the hosting runtime targets, handed to it as
|
|
34
|
+
* {@link OpRunStartOptions.profile}. Only a runtime that declares profiles
|
|
35
|
+
* reads it: fountain resolves it through `fountain.profiles` in
|
|
36
|
+
* `chant.config.ts` and refuses a name it does not find. Omitted, each
|
|
37
|
+
* runtime keeps its own default (fountain's `defaultProfile`).
|
|
38
|
+
*/
|
|
39
|
+
profile?: string;
|
|
26
40
|
/** `chant run` — emit the structured OpRunResult as JSON on stdout. */
|
|
27
41
|
json?: boolean;
|
|
28
42
|
/**
|
|
@@ -31,10 +45,9 @@ export interface ParsedArgs {
|
|
|
31
45
|
* per line to stdout while the run executes, so a consumer can render live
|
|
32
46
|
* wave/component/phase/step progress instead of tailing raw logs.
|
|
33
47
|
*
|
|
34
|
-
* `chant run <name> --
|
|
35
|
-
*
|
|
36
|
-
*
|
|
37
|
-
* ../handlers/op-progress.ts) per settled step instead.
|
|
48
|
+
* `chant run <name> --progress-json` streams one NDJSON `StepRecord`
|
|
49
|
+
* (../../op/local-executor.ts) per settled step instead, fed by whatever
|
|
50
|
+
* the resolved runtime reports through its `progress` hook (#2121).
|
|
38
51
|
*
|
|
39
52
|
* Both are purely additive: run semantics, ordering, and exit code are
|
|
40
53
|
* unchanged; omitted (undefined, not false) when the flag isn't passed.
|
|
@@ -172,7 +185,7 @@ export interface ParsedArgs {
|
|
|
172
185
|
* registered in `~/.claude.json`, not just the path argument.
|
|
173
186
|
*/
|
|
174
187
|
allProjects?: boolean;
|
|
175
|
-
/** `chant audit --fail-on merge-worthy|warning|none` */
|
|
188
|
+
/** `chant audit --fail-on merge-worthy|warning|error|none` */
|
|
176
189
|
failOn?: string;
|
|
177
190
|
/** `chant audit --theme <file>` — JSON theme knobs for the HTML report */
|
|
178
191
|
theme?: string;
|
|
@@ -249,8 +262,10 @@ export interface ParsedArgs {
|
|
|
249
262
|
runId?: string;
|
|
250
263
|
/** `chant components release record --actor <name>` (#568) — who/what triggered the deploy. */
|
|
251
264
|
actor?: string;
|
|
252
|
-
/** `--approver <name>` (#1035) — who approved a gated change.
|
|
265
|
+
/** `--approver <name>` (#1035) — who approved a gated change. Read by `chant approve` and `chant run approve` (recorded as `resolvedBy` on the gate-resolution fact, taking precedence over `--actor`) and by `chant components release` (recorded on the release ledger). Optional; absent for ungated changes. */
|
|
253
266
|
approver?: string;
|
|
267
|
+
/** `chant run approve <op> <gate> --on <lexicon> --durable-requests` (#2126) — reserved. It would resolve the gate by answering the hosting runtime's own pending request instead of posting a follow-up prompt. No runtime implements it: fountain's needs the request-answer path from BinaryBourbon/fountain#1635, which has not shipped, and refuses by name rather than reporting a resolution it did not make. */
|
|
268
|
+
durableRequests?: boolean;
|
|
254
269
|
/** `chant components status <env> --compare-to <env>` (#568) — a second environment to cross-check the same component's recorded digest against. */
|
|
255
270
|
compareTo?: string;
|
|
256
271
|
/** `chant run --components <name> --env <env> --no-release-record` (#597) — opt out of auto-emitting a release-ledger record after a successful component deploy. Default (flag omitted): recording is ON. Also settable project-wide via `chant.config.ts`'s `release.autoRecord: false`. */
|
|
@@ -285,6 +300,8 @@ export interface ParsedArgs {
|
|
|
285
300
|
once?: boolean;
|
|
286
301
|
/** `chant approve <op> <gate> --note <text>` (#1485) — optional free-text prose recorded on the gate-resolution fact. The PR link belongs in `--url` since #2028; this is for everything that isn't the link. */
|
|
287
302
|
note?: string;
|
|
303
|
+
/** `chant approve <op> <gate> --expire` (#2119) — clear the gate's standing pending fact instead of approving it, so the next run decides the gate from scratch and records a fresh one. Writes no resolution: nothing is approved, the wait is only restarted. */
|
|
304
|
+
expire?: boolean;
|
|
288
305
|
/** `chant operator log --op <name>` (#2029) — restrict the tick history to one ConvergeOp by name. Omitted, every discovered ConvergeOp's ticks are merged into one timeline. */
|
|
289
306
|
op?: string;
|
|
290
307
|
/** `chant operator log --since <iso>` (#2029) — only entries at or after this ISO-8601 instant. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/cli/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,GAAG,EAAE,OAAO,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,
|
|
1
|
+
{"version":3,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AAU,EAAE,GAAG,eAAe,GAAG,IAAI,CAiB/F"}
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
*
|
|
10
10
|
* Detection reuses the runtime's own `isPostSynthCheck`, so the barrel contains
|
|
11
11
|
* exactly the checks discovery would — including files whose export name differs
|
|
12
|
-
* from the filename (docker/helm
|
|
12
|
+
* from the filename (docker/helm) and excluding helper modules
|
|
13
13
|
* (cf-refs, arm-refs, …) that export no check.
|
|
14
14
|
*/
|
|
15
15
|
export interface BarrelEntry {
|
|
@@ -13,16 +13,6 @@ import type { DriverStepRecord } from "./driver.js";
|
|
|
13
13
|
* `runComponentDeploy`.
|
|
14
14
|
*/
|
|
15
15
|
export declare function extractRunDigest(records: DriverStepRecord[]): string | undefined;
|
|
16
|
-
/**
|
|
17
|
-
* Same digest extraction as `extractRunDigest`, but over a component
|
|
18
|
-
* Temporal workflow's returned `phaseOutputs` (`{ [phase]: output }`) instead
|
|
19
|
-
* of a `DriverStepRecord[]` — the shape `handle.result()` resolves to for a
|
|
20
|
-
* COMPLETED component workflow (see lexicons/temporal/src/component-op/
|
|
21
|
-
* serializer.ts's generated `return { phaseOutputs, componentOutputs }`).
|
|
22
|
-
* Used by the `--temporal` CLI path, which never sees individual step
|
|
23
|
-
* records (those exist only inside the workflow/activities).
|
|
24
|
-
*/
|
|
25
|
-
export declare function extractRunDigestFromPhaseOutputs(phaseOutputs: Record<string, Record<string, unknown>> | undefined): string | undefined;
|
|
26
16
|
/** Explicit reasons `maybeRecordAutoRelease` declined to write a record — never a thrown error, since "nothing to record" (or "opted out") is an expected, common outcome. */
|
|
27
17
|
export type AutoReleaseSkipReason = "opted-out" | "run-not-successful" | "no-digest" | "no-actor";
|
|
28
18
|
export type AutoReleaseResult = {
|
|
@@ -38,19 +28,19 @@ export type AutoReleaseResult = {
|
|
|
38
28
|
reason: "error";
|
|
39
29
|
error: string;
|
|
40
30
|
};
|
|
41
|
-
/** Input describing one component's completed run
|
|
31
|
+
/** Input describing one component's completed run. */
|
|
42
32
|
export interface AutoReleaseRunInfo {
|
|
43
33
|
component: string;
|
|
44
34
|
env: string;
|
|
45
|
-
/** Whether the run reported overall success
|
|
35
|
+
/** Whether the run reported overall success (`DriverRunResult.ok`). A caller must not call this for a non-terminal/in-progress run. */
|
|
46
36
|
success: boolean;
|
|
47
37
|
/** The component's step records (local executor), used to locate the published digest via `extractRunDigest`. Mutually exclusive with `digest` — pass whichever the caller already has. */
|
|
48
38
|
records?: DriverStepRecord[];
|
|
49
|
-
/** A digest
|
|
39
|
+
/** A digest the caller already resolved by its own means. Takes precedence over `records` when both are given. */
|
|
50
40
|
digest?: string;
|
|
51
|
-
/** Orchestrator run identifier — a
|
|
41
|
+
/** Orchestrator run identifier — a hosting runtime's own run id, or a locally generated one (mirrors `runComponentsReleaseRecord`'s `--run-id` default). */
|
|
52
42
|
runId: string;
|
|
53
|
-
/** The id space `runId` lives in (#2045) — `{ forge: "op" }` for a
|
|
43
|
+
/** The id space `runId` lives in (#2045) — `{ forge: "op" }` for a hosted run, `{ forge: "local" }` for a local-executor mint. Recorded verbatim as the release record's `runOrigin`. */
|
|
54
44
|
runOrigin?: RunOrigin;
|
|
55
45
|
/** The bypassed capability-profile divergences, when the caller deliberately overrode a deploy-time profile assertion (chant #1244) — recorded verbatim as the release record's `profileOverride`. */
|
|
56
46
|
profileOverride?: string;
|
|
@@ -69,11 +59,11 @@ export interface AutoReleaseOptions {
|
|
|
69
59
|
cwd?: string;
|
|
70
60
|
}
|
|
71
61
|
/**
|
|
72
|
-
* After a successful `chant run --components <name> --env <env
|
|
73
|
-
*
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
*
|
|
62
|
+
* After a successful `chant run --components <name> --env <env>`, append
|
|
63
|
+
* exactly one immutable release record to the ledger and push it — or
|
|
64
|
+
* explain, without throwing, why it didn't. Never called for a failed run
|
|
65
|
+
* (`run.success` must be true before the caller invokes this at all; see
|
|
66
|
+
* `runOpComponents`) — a failed
|
|
77
67
|
* deploy writes nothing, by construction, since this function is simply
|
|
78
68
|
* never reached on that path.
|
|
79
69
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"auto-release.d.ts","sourceRoot":"","sources":["../../src/components/auto-release.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"auto-release.d.ts","sourceRoot":"","sources":["../../src/components/auto-release.ts"],"names":[],"mappings":"AA4BA,OAAO,EAAkD,KAAK,aAAa,EAAE,KAAK,SAAS,EAAE,MAAM,6BAA6B,CAAC;AACjI,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,UAAU,CAAC;AAkBjD;;;;;;;;;;;GAWG;AACH,wBAAgB,gBAAgB,CAAC,OAAO,EAAE,gBAAgB,EAAE,GAAG,MAAM,GAAG,SAAS,CAShF;AAED,8KAA8K;AAC9K,MAAM,MAAM,qBAAqB,GAC7B,WAAW,GACX,oBAAoB,GACpB,WAAW,GACX,UAAU,CAAC;AAEf,MAAM,MAAM,iBAAiB,GACzB;IAAE,QAAQ,EAAE,IAAI,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,aAAa,CAAA;CAAE,GACzD;IAAE,QAAQ,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,qBAAqB,CAAC;IAAC,MAAM,CAAC,EAAE,MAAM,CAAA;CAAE,GACnE;IAAE,QAAQ,EAAE,KAAK,CAAC;IAAC,MAAM,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,CAAC;AAExD,sDAAsD;AACtD,MAAM,WAAW,kBAAkB;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,GAAG,EAAE,MAAM,CAAC;IACZ,uIAAuI;IACvI,OAAO,EAAE,OAAO,CAAC;IACjB,2LAA2L;IAC3L,OAAO,CAAC,EAAE,gBAAgB,EAAE,CAAC;IAC7B,kHAAkH;IAClH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,4JAA4J;IAC5J,KAAK,EAAE,MAAM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