@intentius/chant 0.124.54 → 0.124.56
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/__fixtures__/estate-ledger.d.ts +13 -0
- package/dist/__fixtures__/estate-ledger.d.ts.map +1 -0
- package/dist/__fixtures__/estate-ledger.js +67 -0
- package/dist/__fixtures__/oidc-emulator.d.ts +11 -1
- package/dist/__fixtures__/oidc-emulator.d.ts.map +1 -1
- package/dist/__fixtures__/oidc-emulator.js +26 -2
- package/dist/__fixtures__/product-words.d.ts +78 -0
- package/dist/__fixtures__/product-words.d.ts.map +1 -0
- package/dist/__fixtures__/product-words.js +43 -0
- package/dist/__golden__/wave-loop/op-by-apply-after-fails.json +10 -2
- package/dist/__golden__/wave-loop/op-by-apply-hold.json +20 -4
- package/dist/__golden__/wave-loop/op-by-apply-ignored.json +10 -2
- package/dist/__golden__/wave-loop/op-by-apply-pass.json +10 -2
- package/dist/__golden__/wave-loop/op-by-apply-skip.json +10 -2
- package/dist/__golden__/wave-loop/op-discover-rest-stops.json +22 -6
- package/dist/__golden__/wave-loop/op-discover-rest.json +44 -12
- package/dist/__golden__/wave-loop/op-discover-wide.json +12 -3
- package/dist/__golden__/wave-loop/op-held-on.json +28 -7
- package/dist/__golden__/wave-loop/op-hooks-apply-fails.json +22 -6
- package/dist/__golden__/wave-loop/op-hooks-fail-after-apply.json +22 -6
- package/dist/__golden__/wave-loop/op-hooks-fail-before-apply.json +4 -2
- package/dist/__golden__/wave-loop/op-hooks-held.json +26 -8
- package/dist/__golden__/wave-loop/op-hooks-hold-before-apply.json +18 -4
- package/dist/__golden__/wave-loop/op-hooks-pass.json +22 -6
- package/dist/__golden__/wave-loop/op-hooks-share.json +20 -7
- package/dist/__golden__/wave-loop/op-outcome-held.json +12 -3
- package/dist/__golden__/wave-loop/op-outcome-replan-approved.json +16 -5
- package/dist/__golden__/wave-loop/op-outcome-replan-forever.json +48 -21
- package/dist/__golden__/wave-loop/op-outcome-replan.json +16 -5
- package/dist/__golden__/wave-loop/op-outcome-stood-down.json +12 -3
- package/dist/__golden__/wave-loop/op-outcome-unreadable.json +12 -3
- package/dist/__golden__/wave-loop/op-overridden.json +28 -7
- package/dist/__golden__/wave-loop/op-per-run.json +20 -4
- package/dist/__golden__/wave-loop/op-point.json +18 -4
- package/dist/__golden__/wave-loop/op-pr-review.json +10 -2
- package/dist/__golden__/wave-loop/op-spend-change-only.json +10 -2
- package/dist/__golden__/wave-loop/op-spend.json +10 -2
- package/dist/__golden__/wave-loop/op-wave-commands.json +56 -13
- package/dist/__golden__/wave-loop/op-wide.json +20 -4
- package/dist/bucket-check/azure.d.ts +108 -0
- package/dist/bucket-check/azure.d.ts.map +1 -0
- package/dist/bucket-check/azure.js +258 -0
- package/dist/bucket-check/fixtures/azure.json +153 -0
- package/dist/bucket-check/fixtures/gcs.json +148 -0
- package/dist/bucket-check/fixtures/s3.json +277 -0
- package/dist/bucket-check/gcs.d.ts +77 -0
- package/dist/bucket-check/gcs.d.ts.map +1 -0
- package/dist/bucket-check/gcs.js +202 -0
- package/dist/bucket-check/index.d.ts +48 -0
- package/dist/bucket-check/index.d.ts.map +1 -0
- package/dist/bucket-check/index.js +44 -0
- package/dist/bucket-check/s3.d.ts +116 -0
- package/dist/bucket-check/s3.d.ts.map +1 -0
- package/dist/bucket-check/s3.js +362 -0
- package/dist/bucket-check/types.d.ts +66 -0
- package/dist/bucket-check/types.d.ts.map +1 -0
- package/dist/bucket-check/types.js +31 -0
- package/dist/bucket-check/wire.d.ts +27 -0
- package/dist/bucket-check/wire.d.ts.map +1 -0
- package/dist/bucket-check/wire.js +32 -0
- package/dist/bucket-check.d.ts +6 -0
- package/dist/bucket-check.d.ts.map +1 -0
- package/dist/bucket-check.js +5 -0
- package/dist/capabilities/templates.d.ts.map +1 -1
- package/dist/capabilities/templates.js +1 -2
- package/dist/change-set.d.ts.map +1 -1
- package/dist/change-set.js +2 -3
- package/dist/ci-agent.d.ts +381 -0
- package/dist/ci-agent.d.ts.map +1 -0
- package/dist/ci-agent.js +832 -0
- package/dist/ci-audit/attribution.d.ts +111 -0
- package/dist/ci-audit/attribution.d.ts.map +1 -0
- package/dist/ci-audit/attribution.js +194 -0
- package/dist/ci-audit/audit-log.d.ts +144 -0
- package/dist/ci-audit/audit-log.d.ts.map +1 -0
- package/dist/ci-audit/audit-log.js +149 -0
- package/dist/ci-audit/index.d.ts +12 -0
- package/dist/ci-audit/index.d.ts.map +1 -0
- package/dist/ci-audit/index.js +12 -0
- package/dist/ci-audit/unrecorded.d.ts +74 -0
- package/dist/ci-audit/unrecorded.d.ts.map +1 -0
- package/dist/ci-audit/unrecorded.js +95 -0
- package/dist/ci-audit.d.ts +3 -0
- package/dist/ci-audit.d.ts.map +1 -0
- package/dist/ci-audit.js +2 -0
- package/dist/ci-control.d.ts +42 -0
- package/dist/ci-control.d.ts.map +1 -0
- package/dist/ci-control.js +41 -0
- package/dist/ci-estate/delivery.d.ts +137 -0
- package/dist/ci-estate/delivery.d.ts.map +1 -0
- package/dist/ci-estate/delivery.js +311 -0
- package/dist/ci-estate/overdue.d.ts +34 -0
- package/dist/ci-estate/overdue.d.ts.map +1 -0
- package/dist/ci-estate/overdue.js +58 -0
- package/dist/ci-estate/page.d.ts +134 -0
- package/dist/ci-estate/page.d.ts.map +1 -0
- package/dist/ci-estate/page.js +233 -0
- package/dist/ci-estate/rows.d.ts +118 -0
- package/dist/ci-estate/rows.d.ts.map +1 -0
- package/dist/ci-estate/rows.js +126 -0
- package/dist/ci-estate.d.ts +92 -0
- package/dist/ci-estate.d.ts.map +1 -0
- package/dist/ci-estate.js +82 -0
- package/dist/ci-handover.d.ts +29 -5
- package/dist/ci-handover.d.ts.map +1 -1
- package/dist/ci-handover.js +50 -16
- package/dist/ci-identity.d.ts +82 -7
- package/dist/ci-identity.d.ts.map +1 -1
- package/dist/ci-identity.js +86 -15
- package/dist/ci-job-guard.d.ts +139 -0
- package/dist/ci-job-guard.d.ts.map +1 -0
- package/dist/ci-job-guard.js +287 -0
- package/dist/ci-jobs.d.ts +7 -0
- package/dist/ci-jobs.d.ts.map +1 -1
- package/dist/ci-jobs.js +7 -0
- package/dist/ci-product-words.d.ts +296 -0
- package/dist/ci-product-words.d.ts.map +1 -0
- package/dist/ci-product-words.js +407 -0
- package/dist/ci-product.d.ts +117 -0
- package/dist/ci-product.d.ts.map +1 -0
- package/dist/ci-product.js +113 -0
- package/dist/ci-respond-run.d.ts +73 -0
- package/dist/ci-respond-run.d.ts.map +1 -0
- package/dist/ci-respond-run.js +247 -0
- package/dist/ci-respond.d.ts +189 -0
- package/dist/ci-respond.d.ts.map +1 -0
- package/dist/ci-respond.js +285 -0
- package/dist/cli/commands/audit.d.ts +2 -2
- package/dist/cli/commands/audit.d.ts.map +1 -1
- package/dist/cli/commands/audit.js +3 -2
- package/dist/cli/commands/carve.js +2 -2
- package/dist/cli/commands/init.d.ts +2 -0
- package/dist/cli/commands/init.d.ts.map +1 -1
- package/dist/cli/commands/init.js +1 -1
- package/dist/cli/handlers/agent.d.ts +17 -0
- package/dist/cli/handlers/agent.d.ts.map +1 -0
- package/dist/cli/handlers/agent.js +114 -0
- package/dist/cli/handlers/approve-confirm.d.ts +84 -0
- package/dist/cli/handlers/approve-confirm.d.ts.map +1 -0
- package/dist/cli/handlers/approve-confirm.js +142 -0
- package/dist/cli/handlers/approve.d.ts.map +1 -1
- package/dist/cli/handlers/approve.js +19 -1
- package/dist/cli/handlers/audit-log.d.ts +12 -0
- package/dist/cli/handlers/audit-log.d.ts.map +1 -0
- package/dist/cli/handlers/audit-log.js +81 -0
- package/dist/cli/handlers/build.d.ts +7 -0
- package/dist/cli/handlers/build.d.ts.map +1 -1
- package/dist/cli/handlers/build.js +124 -1
- package/dist/cli/handlers/ci-check-job.d.ts +11 -0
- package/dist/cli/handlers/ci-check-job.d.ts.map +1 -0
- package/dist/cli/handlers/ci-check-job.js +27 -0
- package/dist/cli/handlers/ci-check.d.ts +3 -0
- package/dist/cli/handlers/ci-check.d.ts.map +1 -0
- package/dist/cli/handlers/ci-check.js +63 -0
- package/dist/cli/handlers/ci-forge-check.d.ts +3 -0
- package/dist/cli/handlers/ci-forge-check.d.ts.map +1 -0
- package/dist/cli/handlers/ci-forge-check.js +89 -0
- package/dist/cli/handlers/e2e-safe-run.d.ts +12 -0
- package/dist/cli/handlers/e2e-safe-run.d.ts.map +1 -0
- package/dist/cli/handlers/e2e-safe-run.js +23 -0
- package/dist/cli/handlers/fan-out.js +4 -0
- package/dist/cli/handlers/gate-pending.d.ts +11 -0
- package/dist/cli/handlers/gate-pending.d.ts.map +1 -0
- package/dist/cli/handlers/gate-pending.js +44 -0
- package/dist/cli/handlers/init.d.ts.map +1 -1
- package/dist/cli/handlers/init.js +1 -0
- package/dist/cli/handlers/ledger.js +1 -1
- package/dist/cli/handlers/lifecycle-drift.d.ts +6 -2
- package/dist/cli/handlers/lifecycle-drift.d.ts.map +1 -1
- package/dist/cli/handlers/lifecycle-drift.js +7 -2
- package/dist/cli/handlers/lock.d.ts.map +1 -1
- package/dist/cli/handlers/lock.js +64 -5
- package/dist/cli/handlers/notify-relay.d.ts +15 -0
- package/dist/cli/handlers/notify-relay.d.ts.map +1 -0
- package/dist/cli/handlers/notify-relay.js +130 -0
- package/dist/cli/handlers/pr-env.d.ts.map +1 -1
- package/dist/cli/handlers/pr-env.js +42 -11
- package/dist/cli/handlers/pr.d.ts +43 -3
- package/dist/cli/handlers/pr.d.ts.map +1 -1
- package/dist/cli/handlers/pr.js +908 -205
- package/dist/cli/handlers/promote.d.ts.map +1 -1
- package/dist/cli/handlers/promote.js +21 -2
- package/dist/cli/handlers/release.d.ts.map +1 -1
- package/dist/cli/handlers/release.js +3 -0
- package/dist/cli/handlers/run-wave.d.ts +8 -0
- package/dist/cli/handlers/run-wave.d.ts.map +1 -1
- package/dist/cli/handlers/run-wave.js +160 -2
- package/dist/cli/handlers/run.d.ts +6 -1
- package/dist/cli/handlers/run.d.ts.map +1 -1
- package/dist/cli/handlers/run.js +86 -1
- package/dist/cli/handlers/serve.d.ts.map +1 -1
- package/dist/cli/handlers/serve.js +10 -1
- package/dist/cli/main.d.ts +11 -1
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +178 -13
- package/dist/cli/mcp/ledger-tools.d.ts +36 -0
- package/dist/cli/mcp/ledger-tools.d.ts.map +1 -0
- package/dist/cli/mcp/ledger-tools.js +122 -0
- package/dist/cli/mcp/product-tools.d.ts +78 -0
- package/dist/cli/mcp/product-tools.d.ts.map +1 -0
- package/dist/cli/mcp/product-tools.js +93 -0
- package/dist/cli/mcp/read-only.d.ts +34 -0
- package/dist/cli/mcp/read-only.d.ts.map +1 -0
- package/dist/cli/mcp/read-only.js +61 -0
- package/dist/cli/mcp/report-tools.d.ts +48 -0
- package/dist/cli/mcp/report-tools.d.ts.map +1 -0
- package/dist/cli/mcp/report-tools.js +128 -0
- package/dist/cli/mcp/server.d.ts +28 -1
- package/dist/cli/mcp/server.d.ts.map +1 -1
- package/dist/cli/mcp/server.js +86 -15
- package/dist/cli/mcp-config.d.ts +9 -2
- package/dist/cli/mcp-config.d.ts.map +1 -1
- package/dist/cli/mcp-config.js +8 -3
- package/dist/cli/parse-args.d.ts.map +1 -1
- package/dist/cli/parse-args.js +164 -3
- package/dist/cli/registry.d.ts +73 -0
- package/dist/cli/registry.d.ts.map +1 -1
- package/dist/cloud-lister/sigv4.d.ts +42 -7
- package/dist/cloud-lister/sigv4.d.ts.map +1 -1
- package/dist/cloud-lister/sigv4.js +72 -22
- package/dist/components/adoption.d.ts +69 -0
- package/dist/components/adoption.d.ts.map +1 -0
- package/dist/components/adoption.js +92 -0
- package/dist/components/apply-lease.d.ts +19 -0
- package/dist/components/apply-lease.d.ts.map +1 -0
- package/dist/components/apply-lease.js +41 -0
- package/dist/components/capability.d.ts +159 -5
- package/dist/components/capability.d.ts.map +1 -1
- package/dist/components/capability.js +39 -6
- package/dist/components/check-hooks.d.ts +116 -0
- package/dist/components/check-hooks.d.ts.map +1 -0
- package/dist/components/check-hooks.js +192 -0
- package/dist/components/check-steps.d.ts +74 -0
- package/dist/components/check-steps.d.ts.map +1 -0
- package/dist/components/check-steps.js +102 -0
- package/dist/components/ci-services.d.ts +57 -0
- package/dist/components/ci-services.d.ts.map +1 -0
- package/dist/components/ci-services.js +60 -0
- package/dist/components/cli-support.d.ts +13 -0
- package/dist/components/cli-support.d.ts.map +1 -1
- package/dist/components/cli-support.js +10 -2
- package/dist/components/driver.d.ts +32 -3
- package/dist/components/driver.d.ts.map +1 -1
- package/dist/components/driver.js +59 -5
- package/dist/components/fan-out-run.d.ts +12 -0
- package/dist/components/fan-out-run.d.ts.map +1 -1
- package/dist/components/fan-out-run.js +56 -16
- package/dist/components/groups.d.ts.map +1 -1
- package/dist/components/groups.js +23 -5
- package/dist/components/pr-env-ledger.d.ts +32 -0
- package/dist/components/pr-env-ledger.d.ts.map +1 -0
- package/dist/components/pr-env-ledger.js +38 -0
- package/dist/components/pr-env-ports.d.ts +12 -0
- package/dist/components/pr-env-ports.d.ts.map +1 -1
- package/dist/components/pr-env-ports.js +13 -3
- package/dist/components/pr-env-run.d.ts +6 -0
- package/dist/components/pr-env-run.d.ts.map +1 -1
- package/dist/components/pr-env-run.js +3 -2
- package/dist/components/pr-environment.d.ts +32 -4
- package/dist/components/pr-environment.d.ts.map +1 -1
- package/dist/components/pr-environment.js +26 -8
- package/dist/components/pr-pipeline.d.ts +297 -5
- package/dist/components/pr-pipeline.d.ts.map +1 -1
- package/dist/components/pr-pipeline.js +329 -18
- package/dist/components/pr-policy.d.ts +26 -2
- package/dist/components/pr-policy.d.ts.map +1 -1
- package/dist/components/pr-policy.js +41 -7
- package/dist/components/pr-run.d.ts +71 -0
- package/dist/components/pr-run.d.ts.map +1 -1
- package/dist/components/pr-run.js +91 -7
- package/dist/components/pr-targets.d.ts +24 -0
- package/dist/components/pr-targets.d.ts.map +1 -0
- package/dist/components/pr-targets.js +48 -0
- package/dist/components/product-pipeline.d.ts +250 -0
- package/dist/components/product-pipeline.d.ts.map +1 -0
- package/dist/components/product-pipeline.js +212 -0
- package/dist/components/promote.d.ts +6 -0
- package/dist/components/promote.d.ts.map +1 -1
- package/dist/components/promote.js +4 -1
- package/dist/components/release-compile.d.ts +22 -1
- package/dist/components/release-compile.d.ts.map +1 -1
- package/dist/components/release-compile.js +85 -0
- package/dist/components/release-promote.d.ts +15 -1
- package/dist/components/release-promote.d.ts.map +1 -1
- package/dist/components/release-promote.js +67 -2
- package/dist/components/repo-lock.d.ts +27 -0
- package/dist/components/repo-lock.d.ts.map +1 -0
- package/dist/components/repo-lock.js +49 -0
- package/dist/components/row-lease.d.ts +84 -0
- package/dist/components/row-lease.d.ts.map +1 -0
- package/dist/components/row-lease.js +110 -0
- package/dist/components/wave-plan.d.ts +42 -0
- package/dist/components/wave-plan.d.ts.map +1 -1
- package/dist/components/wave-plan.js +72 -4
- package/dist/control/applied.d.ts +89 -0
- package/dist/control/applied.d.ts.map +1 -0
- package/dist/control/applied.js +175 -0
- package/dist/control/consumers.d.ts +78 -0
- package/dist/control/consumers.d.ts.map +1 -0
- package/dist/control/consumers.js +172 -0
- package/dist/control/dispatch.d.ts +334 -0
- package/dist/control/dispatch.d.ts.map +1 -0
- package/dist/control/dispatch.js +519 -0
- package/dist/control/edges.d.ts +75 -0
- package/dist/control/edges.d.ts.map +1 -0
- package/dist/control/edges.js +133 -0
- package/dist/control/reconcile.d.ts +120 -0
- package/dist/control/reconcile.d.ts.map +1 -0
- package/dist/control/reconcile.js +178 -0
- package/dist/control/records.d.ts +187 -0
- package/dist/control/records.d.ts.map +1 -0
- package/dist/control/records.js +307 -0
- package/dist/discovery/sandbox/bundle.d.ts.map +1 -1
- package/dist/discovery/sandbox/bundle.js +25 -1
- package/dist/e2e-harness/bucket.d.ts +21 -0
- package/dist/e2e-harness/bucket.d.ts.map +1 -0
- package/dist/e2e-harness/bucket.js +61 -0
- package/dist/e2e-harness/claim.d.ts +70 -0
- package/dist/e2e-harness/claim.d.ts.map +1 -0
- package/dist/e2e-harness/claim.js +98 -0
- package/dist/e2e-harness/driver.d.ts +64 -0
- package/dist/e2e-harness/driver.d.ts.map +1 -0
- package/dist/e2e-harness/driver.js +243 -0
- package/dist/e2e-harness/forgejo.d.ts +77 -0
- package/dist/e2e-harness/forgejo.d.ts.map +1 -0
- package/dist/e2e-harness/forgejo.js +205 -0
- package/dist/e2e-harness/git.d.ts +32 -0
- package/dist/e2e-harness/git.d.ts.map +1 -0
- package/dist/e2e-harness/git.js +67 -0
- package/dist/e2e-harness/index.d.ts +22 -0
- package/dist/e2e-harness/index.d.ts.map +1 -0
- package/dist/e2e-harness/index.js +48 -0
- package/dist/e2e-harness/jobs.d.ts +8 -0
- package/dist/e2e-harness/jobs.d.ts.map +1 -0
- package/dist/e2e-harness/jobs.js +34 -0
- package/dist/e2e-harness/pins.d.ts +45 -0
- package/dist/e2e-harness/pins.d.ts.map +1 -0
- package/dist/e2e-harness/pins.js +44 -0
- package/dist/e2e-harness/ports.d.ts +113 -0
- package/dist/e2e-harness/ports.d.ts.map +1 -0
- package/dist/e2e-harness/ports.js +4 -0
- package/dist/e2e-harness/reports.d.ts +45 -0
- package/dist/e2e-harness/reports.d.ts.map +1 -0
- package/dist/e2e-harness/reports.js +57 -0
- package/dist/e2e-harness/safe-run-cli.d.ts +17 -0
- package/dist/e2e-harness/safe-run-cli.d.ts.map +1 -0
- package/dist/e2e-harness/safe-run-cli.js +43 -0
- package/dist/e2e-harness/safe-run.d.ts +61 -0
- package/dist/e2e-harness/safe-run.d.ts.map +1 -0
- package/dist/e2e-harness/safe-run.js +172 -0
- package/dist/e2e-harness/scenario.d.ts +11 -0
- package/dist/e2e-harness/scenario.d.ts.map +1 -0
- package/dist/e2e-harness/scenario.js +89 -0
- package/dist/e2e-harness/schemas/demo-cycle.schema.json +282 -0
- package/dist/e2e-harness/schemas/demo-step.schema.json +245 -0
- package/dist/e2e-harness/schemas/e2e-claim-row.schema.json +33 -0
- package/dist/e2e-harness/schemas/e2e-claims.schema.json +18 -0
- package/dist/e2e-harness/schemas/e2e-scenario.schema.json +150 -0
- package/dist/e2e-harness/schemas/index.d.ts +191 -0
- package/dist/e2e-harness/schemas/index.d.ts.map +1 -0
- package/dist/e2e-harness/schemas/index.js +62 -0
- package/dist/e2e-harness/stack.d.ts +124 -0
- package/dist/e2e-harness/stack.d.ts.map +1 -0
- package/dist/e2e-harness/stack.js +207 -0
- package/dist/e2e-harness/steps.d.ts +11 -0
- package/dist/e2e-harness/steps.d.ts.map +1 -0
- package/dist/e2e-harness/steps.js +22 -0
- package/dist/e2e-harness.d.ts +3 -0
- package/dist/e2e-harness.d.ts.map +1 -0
- package/dist/e2e-harness.js +2 -0
- package/dist/engine-facts.d.ts.map +1 -1
- package/dist/engine-facts.js +1 -2
- package/dist/exit-codes.d.ts +54 -0
- package/dist/exit-codes.d.ts.map +1 -0
- package/dist/exit-codes.js +55 -0
- package/dist/forge-check/check.d.ts +63 -0
- package/dist/forge-check/check.d.ts.map +1 -0
- package/dist/forge-check/check.js +139 -0
- package/dist/forge-check/contract.d.ts +152 -0
- package/dist/forge-check/contract.d.ts.map +1 -0
- package/dist/forge-check/contract.js +118 -0
- package/dist/forge-check/forge.d.ts +42 -0
- package/dist/forge-check/forge.d.ts.map +1 -0
- package/dist/forge-check/forge.js +338 -0
- package/dist/forge-check/index.d.ts +24 -0
- package/dist/forge-check/index.d.ts.map +1 -0
- package/dist/forge-check/index.js +23 -0
- package/dist/forge-check/pulumi.d.ts +44 -0
- package/dist/forge-check/pulumi.d.ts.map +1 -0
- package/dist/forge-check/pulumi.js +184 -0
- package/dist/forge-check/read-only.d.ts +26 -0
- package/dist/forge-check/read-only.d.ts.map +1 -0
- package/dist/forge-check/read-only.js +53 -0
- package/dist/forge-check/trust.d.ts +94 -0
- package/dist/forge-check/trust.d.ts.map +1 -0
- package/dist/forge-check/trust.js +532 -0
- package/dist/forge-check/types.d.ts +80 -0
- package/dist/forge-check/types.d.ts.map +1 -0
- package/dist/forge-check/types.js +18 -0
- package/dist/forge-check.d.ts +6 -0
- package/dist/forge-check.d.ts.map +1 -0
- package/dist/forge-check.js +5 -0
- package/dist/gate-decision.d.ts +1 -0
- package/dist/gate-decision.d.ts.map +1 -1
- package/dist/gate-decision.js +2 -0
- package/dist/gate-policy.d.ts +47 -1
- package/dist/gate-policy.d.ts.map +1 -1
- package/dist/gate-policy.js +50 -2
- package/dist/index.d.ts +1 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -0
- package/dist/lexicon.d.ts +152 -6
- package/dist/lexicon.d.ts.map +1 -1
- package/dist/lifecycle/adoption-file.d.ts +24 -0
- package/dist/lifecycle/adoption-file.d.ts.map +1 -1
- package/dist/lifecycle/adoption-file.js +1 -2
- package/dist/lifecycle/cloud-index.d.ts.map +1 -1
- package/dist/lifecycle/cloud-index.js +1 -2
- package/dist/lifecycle/gate-applied.d.ts +6 -0
- package/dist/lifecycle/gate-applied.d.ts.map +1 -1
- package/dist/lifecycle/gate-ledger.d.ts +29 -0
- package/dist/lifecycle/gate-ledger.d.ts.map +1 -1
- package/dist/lifecycle/gate-ledger.js +10 -1
- package/dist/lifecycle/gate-pending-by-plan.d.ts +75 -0
- package/dist/lifecycle/gate-pending-by-plan.d.ts.map +1 -0
- package/dist/lifecycle/gate-pending-by-plan.js +96 -0
- package/dist/lifecycle/gated-request-digest.d.ts +28 -0
- package/dist/lifecycle/gated-request-digest.d.ts.map +1 -0
- package/dist/lifecycle/gated-request-digest.js +35 -0
- package/dist/lifecycle/gated-request.d.ts +126 -0
- package/dist/lifecycle/gated-request.d.ts.map +1 -0
- package/dist/lifecycle/gated-request.js +204 -0
- package/dist/lifecycle/identity-match.d.ts +15 -0
- package/dist/lifecycle/identity-match.d.ts.map +1 -1
- package/dist/lifecycle/identity-match.js +11 -6
- package/dist/lifecycle/index-diff.d.ts +40 -0
- package/dist/lifecycle/index-diff.d.ts.map +1 -1
- package/dist/lifecycle/index-diff.js +1 -2
- package/dist/lifecycle/index-document.d.ts.map +1 -1
- package/dist/lifecycle/index-document.js +1 -2
- package/dist/lifecycle/index-import.d.ts +4 -1
- package/dist/lifecycle/index-import.d.ts.map +1 -1
- package/dist/lifecycle/index-import.js +29 -32
- package/dist/lifecycle/ledger-read.d.ts.map +1 -1
- package/dist/lifecycle/ledger-read.js +7 -3
- package/dist/lifecycle/lock-rows.d.ts +76 -0
- package/dist/lifecycle/lock-rows.d.ts.map +1 -0
- package/dist/lifecycle/lock-rows.js +140 -0
- package/dist/lifecycle/query.d.ts +50 -3
- package/dist/lifecycle/query.d.ts.map +1 -1
- package/dist/lifecycle/query.js +97 -7
- package/dist/lifecycle/release-catalog-site.d.ts +66 -0
- package/dist/lifecycle/release-catalog-site.d.ts.map +1 -0
- package/dist/lifecycle/release-catalog-site.js +232 -0
- package/dist/lifecycle/release-catalog.d.ts +201 -0
- package/dist/lifecycle/release-catalog.d.ts.map +1 -0
- package/dist/lifecycle/release-catalog.js +198 -0
- package/dist/lifecycle/release-changelog.d.ts +41 -0
- package/dist/lifecycle/release-changelog.d.ts.map +1 -0
- package/dist/lifecycle/release-changelog.js +38 -0
- package/dist/lifecycle/release-cut.d.ts +1 -0
- package/dist/lifecycle/release-cut.d.ts.map +1 -1
- package/dist/lifecycle/release-cut.js +1 -1
- package/dist/lifecycle/release-ledger.d.ts +16 -0
- package/dist/lifecycle/release-ledger.d.ts.map +1 -1
- package/dist/lifecycle/release-ledger.js +9 -0
- package/dist/lifecycle/release-publish.d.ts +43 -22
- package/dist/lifecycle/release-publish.d.ts.map +1 -1
- package/dist/lifecycle/release-read.d.ts.map +1 -1
- package/dist/lifecycle/release-read.js +3 -0
- package/dist/lifecycle/release-status.d.ts +106 -0
- package/dist/lifecycle/release-status.d.ts.map +1 -0
- package/dist/lifecycle/release-status.js +115 -0
- package/dist/lifecycle/resource-lock.d.ts +120 -0
- package/dist/lifecycle/resource-lock.d.ts.map +1 -0
- package/dist/lifecycle/resource-lock.js +317 -0
- package/dist/lifecycle/retention.d.ts.map +1 -1
- package/dist/lifecycle/retention.js +3 -0
- package/dist/lifecycle/run-ledger.d.ts.map +1 -1
- package/dist/lifecycle/run-ledger.js +9 -1
- package/dist/lifecycle/snapshot-store-s3.d.ts +36 -3
- package/dist/lifecycle/snapshot-store-s3.d.ts.map +1 -1
- package/dist/lifecycle/snapshot-store-s3.js +9 -44
- package/dist/lifecycle/snapshot-store.d.ts.map +1 -1
- package/dist/lifecycle/snapshot-store.js +1 -2
- package/dist/lifecycle/target-lock.d.ts +15 -0
- package/dist/lifecycle/target-lock.d.ts.map +1 -1
- package/dist/lifecycle/target-lock.js +25 -10
- package/dist/lifecycle/wave-plans.d.ts +23 -7
- package/dist/lifecycle/wave-plans.d.ts.map +1 -1
- package/dist/lifecycle/wave-plans.js +9 -2
- package/dist/mcp/types.d.ts +7 -0
- package/dist/mcp/types.d.ts.map +1 -1
- package/dist/notify-product.d.ts +43 -0
- package/dist/notify-product.d.ts.map +1 -0
- package/dist/notify-product.js +58 -0
- package/dist/notify-relay.d.ts +197 -0
- package/dist/notify-relay.d.ts.map +1 -0
- package/dist/notify-relay.js +321 -0
- package/dist/notify.d.ts +44 -4
- package/dist/notify.d.ts.map +1 -1
- package/dist/notify.js +77 -14
- package/dist/object-store/azure-blob.d.ts +129 -0
- package/dist/object-store/azure-blob.d.ts.map +1 -0
- package/dist/object-store/azure-blob.js +341 -0
- package/dist/object-store/common.d.ts +108 -0
- package/dist/object-store/common.d.ts.map +1 -0
- package/dist/object-store/common.js +80 -0
- package/dist/object-store/errors.d.ts +28 -0
- package/dist/object-store/errors.d.ts.map +1 -0
- package/dist/object-store/errors.js +21 -0
- package/dist/object-store/from-env.d.ts +18 -0
- package/dist/object-store/from-env.d.ts.map +1 -0
- package/dist/object-store/from-env.js +22 -0
- package/dist/object-store/gcs.d.ts +106 -0
- package/dist/object-store/gcs.d.ts.map +1 -0
- package/dist/object-store/gcs.js +393 -0
- package/dist/object-store/index.d.ts +9 -0
- package/dist/object-store/index.d.ts.map +1 -0
- package/dist/object-store/index.js +8 -0
- package/dist/object-store/s3.d.ts +146 -0
- package/dist/object-store/s3.d.ts.map +1 -0
- package/dist/object-store/s3.js +306 -0
- package/dist/op/activities/converge.d.ts.map +1 -1
- package/dist/op/activities/converge.js +2 -1
- package/dist/op/activities/index.d.ts +1 -1
- package/dist/op/activities/index.d.ts.map +1 -1
- package/dist/op/activities/index.js +1 -1
- package/dist/op/activities/review-agent.d.ts +55 -2
- package/dist/op/activities/review-agent.d.ts.map +1 -1
- package/dist/op/activities/review-agent.js +65 -5
- package/dist/op/approval-status.d.ts +103 -0
- package/dist/op/approval-status.d.ts.map +1 -0
- package/dist/op/approval-status.js +197 -0
- package/dist/op/gate.d.ts +29 -1
- package/dist/op/gate.d.ts.map +1 -1
- package/dist/op/gate.js +59 -23
- package/dist/op/generate-pipeline.d.ts.map +1 -1
- package/dist/op/generate-pipeline.js +7 -1
- package/dist/op/index.d.ts +12 -1
- package/dist/op/index.d.ts.map +1 -1
- package/dist/op/index.js +7 -1
- package/dist/op/op-waves-after-plan.d.ts +137 -0
- package/dist/op/op-waves-after-plan.d.ts.map +1 -0
- package/dist/op/op-waves-after-plan.js +163 -0
- package/dist/op/op-waves-capability-spec.d.ts +63 -0
- package/dist/op/op-waves-capability-spec.d.ts.map +1 -0
- package/dist/op/op-waves-capability-spec.js +115 -0
- package/dist/op/op-waves-capability.d.ts +197 -0
- package/dist/op/op-waves-capability.d.ts.map +1 -0
- package/dist/op/op-waves-capability.js +311 -0
- package/dist/op/op-waves-events.d.ts +54 -0
- package/dist/op/op-waves-events.d.ts.map +1 -0
- package/dist/op/op-waves-events.js +122 -0
- package/dist/op/op-waves-notify.d.ts +7 -1
- package/dist/op/op-waves-notify.d.ts.map +1 -1
- package/dist/op/op-waves-notify.js +35 -16
- package/dist/op/op-waves-release-port.d.ts +18 -0
- package/dist/op/op-waves-release-port.d.ts.map +1 -0
- package/dist/op/op-waves-release-port.js +61 -0
- package/dist/op/op-waves-release.d.ts +92 -0
- package/dist/op/op-waves-release.d.ts.map +1 -0
- package/dist/op/op-waves-release.js +96 -0
- package/dist/op/op-waves-run.d.ts +182 -6
- package/dist/op/op-waves-run.d.ts.map +1 -1
- package/dist/op/op-waves-run.js +1076 -44
- package/dist/op/op-waves-stand-down.d.ts +60 -0
- package/dist/op/op-waves-stand-down.d.ts.map +1 -0
- package/dist/op/op-waves-stand-down.js +96 -0
- package/dist/op/op-waves.d.ts +187 -8
- package/dist/op/op-waves.d.ts.map +1 -1
- package/dist/op/op-waves.js +203 -19
- package/dist/op/runtime.d.ts +95 -0
- package/dist/op/runtime.d.ts.map +1 -1
- package/dist/op/runtime.js +18 -0
- package/dist/op/stage-hooks.d.ts +45 -7
- package/dist/op/stage-hooks.d.ts.map +1 -1
- package/dist/op/stage-hooks.js +61 -3
- package/dist/op/steward-beside.d.ts.map +1 -1
- package/dist/op/steward-beside.js +2 -1
- package/dist/op/types.d.ts +2 -2
- package/dist/op/types.d.ts.map +1 -1
- package/dist/op/types.js +3 -2
- package/dist/otlp-metrics.d.ts +38 -0
- package/dist/otlp-metrics.d.ts.map +1 -0
- package/dist/otlp-metrics.js +82 -0
- package/dist/otlp.d.ts +249 -0
- package/dist/otlp.d.ts.map +1 -0
- package/dist/otlp.js +425 -0
- package/dist/override-gate.d.ts.map +1 -1
- package/dist/override-gate.js +5 -0
- package/dist/parallelism.d.ts +17 -0
- package/dist/parallelism.d.ts.map +1 -0
- package/dist/parallelism.js +33 -0
- package/dist/policy-packs.d.ts +69 -0
- package/dist/policy-packs.d.ts.map +1 -0
- package/dist/policy-packs.js +205 -0
- package/dist/policy-source.d.ts +51 -0
- package/dist/policy-source.d.ts.map +1 -0
- package/dist/policy-source.js +102 -0
- package/dist/pr-forge.d.ts +40 -0
- package/dist/pr-forge.d.ts.map +1 -1
- package/dist/pr-forge.js +146 -37
- package/dist/pr-loop.d.ts +158 -11
- package/dist/pr-loop.d.ts.map +1 -1
- package/dist/pr-loop.js +302 -44
- package/dist/pr-merge.d.ts +64 -0
- package/dist/pr-merge.d.ts.map +1 -0
- package/dist/pr-merge.js +78 -0
- package/dist/pr-post.d.ts +86 -1
- package/dist/pr-post.d.ts.map +1 -1
- package/dist/pr-post.js +141 -5
- package/dist/pr-report-url.d.ts +32 -4
- package/dist/pr-report-url.d.ts.map +1 -1
- package/dist/pr-report-url.js +45 -5
- package/dist/pr-requires.d.ts +13 -2
- package/dist/pr-requires.d.ts.map +1 -1
- package/dist/pr-requires.js +14 -0
- package/dist/release-floors.d.ts +1 -1
- package/dist/release-floors.js +1 -1
- package/dist/run-event.d.ts +26 -1
- package/dist/run-event.d.ts.map +1 -1
- package/dist/run-event.js +3 -1
- package/dist/scheduled-op-cloud.d.ts +32 -0
- package/dist/scheduled-op-cloud.d.ts.map +1 -0
- package/dist/scheduled-op-cloud.js +69 -0
- package/dist/sorted-json.d.ts +10 -0
- package/dist/sorted-json.d.ts.map +1 -0
- package/dist/sorted-json.js +14 -0
- package/dist/terraform/credentials.d.ts +59 -0
- package/dist/terraform/credentials.d.ts.map +1 -0
- package/dist/terraform/credentials.js +149 -0
- package/dist/utils.d.ts +1 -4
- package/dist/utils.d.ts.map +1 -1
- package/dist/utils.js +1 -9
- package/dist/wave-runtime.d.ts +1 -1
- package/dist/wave-runtime.js +2 -2
- package/dist/wave-runtime.mjs +405 -287
- package/dist/workspace/chant-migrations/chud-lexicon-exit.d.ts.map +1 -1
- package/dist/workspace/chant-migrations/chud-lexicon-exit.js +4 -1
- package/dist/workspace/ci-lock-grain.d.ts +17 -0
- package/dist/workspace/ci-lock-grain.d.ts.map +1 -0
- package/dist/workspace/ci-lock-grain.js +21 -0
- package/dist/workspace/ci-run.d.ts +2 -1
- package/dist/workspace/ci-run.d.ts.map +1 -1
- package/dist/workspace/ci-run.js +10 -3
- package/dist/workspace/declaration.d.ts +16 -4
- package/dist/workspace/declaration.d.ts.map +1 -1
- package/dist/workspace/declaration.js +5 -2
- package/dist/workspace/declaration.schema.json +27 -3
- package/dist/workspace/drift-cli.d.ts.map +1 -1
- package/dist/workspace/drift-cli.js +8 -3
- package/dist/workspace/exit-cli.d.ts +1 -1
- package/dist/workspace/exit-cli.d.ts.map +1 -1
- package/dist/workspace/exit-cli.js +2 -1
- package/dist/workspace/import-fetch.d.ts +4 -2
- package/dist/workspace/import-fetch.d.ts.map +1 -1
- package/dist/workspace/import-fetch.js +4 -2
- package/dist/workspace/import-init.d.ts.map +1 -1
- package/dist/workspace/import-init.js +4 -2
- package/dist/workspace/ledger.schema.json +7 -3
- package/dist/workspace/lineage-upgrade-cli.d.ts +1 -1
- package/dist/workspace/lineage-upgrade-cli.d.ts.map +1 -1
- package/dist/workspace/lineage-upgrade-cli.js +2 -1
- package/dist/workspace/pr-report.schema.json +79 -3
- package/dist/workspace/promote.d.ts +1 -1
- package/dist/workspace/promote.d.ts.map +1 -1
- package/dist/workspace/promote.js +2 -1
- package/dist/workspace/records-cli.d.ts +2 -2
- package/dist/workspace/records-cli.d.ts.map +1 -1
- package/dist/workspace/records-cli.js +3 -2
- package/dist/workspace/release-catalog.schema.json +277 -0
- package/dist/workspace/run-event.schema.json +18 -1
- package/dist/workspace/work-cli.d.ts +3 -1
- package/dist/workspace/work-cli.d.ts.map +1 -1
- package/dist/workspace/work-cli.js +7 -2
- package/dist/workspace/workspace-run.d.ts.map +1 -1
- package/dist/workspace/workspace-run.js +2 -1
- package/package.json +21 -1
- package/src/__fixtures__/estate-ledger.ts +101 -0
- package/src/__fixtures__/oidc-emulator.ts +31 -2
- package/src/__fixtures__/product-words.ts +44 -0
- package/src/__golden__/wave-loop/op-by-apply-after-fails.json +10 -2
- package/src/__golden__/wave-loop/op-by-apply-hold.json +20 -4
- package/src/__golden__/wave-loop/op-by-apply-ignored.json +10 -2
- package/src/__golden__/wave-loop/op-by-apply-pass.json +10 -2
- package/src/__golden__/wave-loop/op-by-apply-skip.json +10 -2
- package/src/__golden__/wave-loop/op-discover-rest-stops.json +22 -6
- package/src/__golden__/wave-loop/op-discover-rest.json +44 -12
- package/src/__golden__/wave-loop/op-discover-wide.json +12 -3
- package/src/__golden__/wave-loop/op-held-on.json +28 -7
- package/src/__golden__/wave-loop/op-hooks-apply-fails.json +22 -6
- package/src/__golden__/wave-loop/op-hooks-fail-after-apply.json +22 -6
- package/src/__golden__/wave-loop/op-hooks-fail-before-apply.json +4 -2
- package/src/__golden__/wave-loop/op-hooks-held.json +26 -8
- package/src/__golden__/wave-loop/op-hooks-hold-before-apply.json +18 -4
- package/src/__golden__/wave-loop/op-hooks-pass.json +22 -6
- package/src/__golden__/wave-loop/op-hooks-share.json +20 -7
- package/src/__golden__/wave-loop/op-outcome-held.json +12 -3
- package/src/__golden__/wave-loop/op-outcome-replan-approved.json +16 -5
- package/src/__golden__/wave-loop/op-outcome-replan-forever.json +48 -21
- package/src/__golden__/wave-loop/op-outcome-replan.json +16 -5
- package/src/__golden__/wave-loop/op-outcome-stood-down.json +12 -3
- package/src/__golden__/wave-loop/op-outcome-unreadable.json +12 -3
- package/src/__golden__/wave-loop/op-overridden.json +28 -7
- package/src/__golden__/wave-loop/op-per-run.json +20 -4
- package/src/__golden__/wave-loop/op-point.json +18 -4
- package/src/__golden__/wave-loop/op-pr-review.json +10 -2
- package/src/__golden__/wave-loop/op-spend-change-only.json +10 -2
- package/src/__golden__/wave-loop/op-spend.json +10 -2
- package/src/__golden__/wave-loop/op-wave-commands.json +56 -13
- package/src/__golden__/wave-loop/op-wide.json +20 -4
- package/src/bucket-check/azure.ts +307 -0
- package/src/bucket-check/bucket-check.test.ts +210 -0
- package/src/bucket-check/fixtures/azure.json +153 -0
- package/src/bucket-check/fixtures/gcs.json +148 -0
- package/src/bucket-check/fixtures/s3.json +277 -0
- package/src/bucket-check/gcs.ts +257 -0
- package/src/bucket-check/index.ts +61 -0
- package/src/bucket-check/s3.ts +433 -0
- package/src/bucket-check/types.ts +75 -0
- package/src/bucket-check/wire.ts +50 -0
- package/src/bucket-check.ts +5 -0
- package/src/capabilities/templates.test.ts +2 -3
- package/src/capabilities/templates.ts +1 -2
- package/src/cdk/advise.test.ts +1 -1
- package/src/change-set-bundle.test.ts +0 -1
- package/src/change-set.ts +2 -3
- package/src/ci-agent.test.ts +348 -0
- package/src/ci-agent.ts +1025 -0
- package/src/ci-audit/__fixtures__/cloudtrail-lookup-bucket.json +37 -0
- package/src/ci-audit/__fixtures__/cloudtrail-writes-window.json +59 -0
- package/src/ci-audit/attribution.ts +260 -0
- package/src/ci-audit/audit-log.ts +220 -0
- package/src/ci-audit/ci-audit.test.ts +175 -0
- package/src/ci-audit/index.ts +15 -0
- package/src/ci-audit/unrecorded.ts +140 -0
- package/src/ci-audit.ts +2 -0
- package/src/ci-control.ts +173 -0
- package/src/ci-estate/delivery.ts +433 -0
- package/src/ci-estate/overdue.ts +81 -0
- package/src/ci-estate/page.ts +343 -0
- package/src/ci-estate/rows.ts +251 -0
- package/src/ci-estate.test.ts +281 -0
- package/src/ci-estate.ts +175 -0
- package/src/ci-handover.ts +67 -16
- package/src/ci-identity-database.test.ts +54 -0
- package/src/ci-identity-pulumi.test.ts +163 -0
- package/src/ci-identity-targets.test.ts +3 -1
- package/src/ci-identity.ts +123 -22
- package/src/ci-job-guard.test.ts +154 -0
- package/src/ci-job-guard.ts +319 -0
- package/src/ci-jobs.ts +8 -0
- package/src/ci-product-comment-targets.test.ts +45 -0
- package/src/ci-product-words.test.ts +101 -0
- package/src/ci-product-words.ts +565 -0
- package/src/ci-product.ts +226 -0
- package/src/ci-respond-run.ts +291 -0
- package/src/ci-respond.test.ts +264 -0
- package/src/ci-respond.ts +412 -0
- package/src/ci-shared-reads.test.ts +145 -0
- package/src/cli/commands/audit.test.ts +1 -1
- package/src/cli/commands/audit.ts +3 -2
- package/src/cli/commands/carve.test.ts +1 -1
- package/src/cli/commands/carve.ts +2 -2
- package/src/cli/commands/init.ts +3 -1
- package/src/cli/component-wave-args.test.ts +16 -0
- package/src/cli/handlers/agent.ts +126 -0
- package/src/cli/handlers/approve-confirm.test.ts +276 -0
- package/src/cli/handlers/approve-confirm.ts +200 -0
- package/src/cli/handlers/approve.ts +18 -1
- package/src/cli/handlers/audit-log.ts +74 -0
- package/src/cli/handlers/build-pr-loop-flags.test.ts +98 -0
- package/src/cli/handlers/build.test.ts +7 -0
- package/src/cli/handlers/build.ts +113 -1
- package/src/cli/handlers/ci-check-job.test.ts +114 -0
- package/src/cli/handlers/ci-check-job.ts +33 -0
- package/src/cli/handlers/ci-check.ts +63 -0
- package/src/cli/handlers/ci-forge-check.ts +91 -0
- package/src/cli/handlers/e2e-safe-run.ts +27 -0
- package/src/cli/handlers/fan-out.test.ts +10 -10
- package/src/cli/handlers/fan-out.ts +5 -0
- package/src/cli/handlers/gate-pending.ts +46 -0
- package/src/cli/handlers/init.ts +1 -0
- package/src/cli/handlers/ledger.ts +1 -1
- package/src/cli/handlers/lifecycle-drift.ts +7 -2
- package/src/cli/handlers/lock.test.ts +29 -2
- package/src/cli/handlers/lock.ts +66 -6
- package/src/cli/handlers/notify-relay.ts +130 -0
- package/src/cli/handlers/pr-before-merge.test.ts +2 -1
- package/src/cli/handlers/pr-deploy-inputs.test.ts +7 -7
- package/src/cli/handlers/pr-env.ts +48 -11
- package/src/cli/handlers/pr-plan-comment-targets.test.ts +166 -0
- package/src/cli/handlers/pr-plan-flags.test.ts +161 -0
- package/src/cli/handlers/pr-plan-targets.test.ts +155 -0
- package/src/cli/handlers/pr-waves-blocked.test.ts +5 -0
- package/src/cli/handlers/pr-waves.test.ts +8 -2
- package/src/cli/handlers/pr.test.ts +8 -8
- package/src/cli/handlers/pr.ts +879 -205
- package/src/cli/handlers/promote.test.ts +5 -5
- package/src/cli/handlers/promote.ts +22 -2
- package/src/cli/handlers/release.ts +2 -0
- package/src/cli/handlers/run-components-exit.test.ts +7 -7
- package/src/cli/handlers/run-wave.ts +144 -2
- package/src/cli/handlers/run.test.ts +6 -4
- package/src/cli/handlers/run.ts +86 -1
- package/src/cli/handlers/serve.ts +10 -1
- package/src/cli/main.test.ts +1 -1
- package/src/cli/main.ts +180 -13
- package/src/cli/mcp/ledger-tools.ts +126 -0
- package/src/cli/mcp/product-tools.test.ts +123 -0
- package/src/cli/mcp/product-tools.ts +129 -0
- package/src/cli/mcp/read-only.test.ts +134 -0
- package/src/cli/mcp/read-only.ts +68 -0
- package/src/cli/mcp/report-tools.ts +135 -0
- package/src/cli/mcp/server.test.ts +5 -4
- package/src/cli/mcp/server.ts +90 -16
- package/src/cli/mcp-config.ts +8 -3
- package/src/cli/parse-args.ts +119 -2
- package/src/cli/registry.ts +73 -0
- package/src/cloud-lister/sigv4.ts +80 -23
- package/src/components/adoption.test.ts +140 -0
- package/src/components/adoption.ts +140 -0
- package/src/components/apply-lease.ts +49 -0
- package/src/components/capability.ts +180 -6
- package/src/components/check-hooks.test.ts +66 -0
- package/src/components/check-hooks.ts +255 -0
- package/src/components/check-steps.test.ts +70 -0
- package/src/components/check-steps.ts +158 -0
- package/src/components/ci-services.test.ts +51 -0
- package/src/components/ci-services.ts +82 -0
- package/src/components/cli-support.ts +23 -2
- package/src/components/driver.test.ts +3 -3
- package/src/components/driver.ts +73 -6
- package/src/components/fan-out-run.ts +68 -18
- package/src/components/groups.ts +21 -4
- package/src/components/plan-flags.test.ts +46 -0
- package/src/components/pr-comment-preview-targets.test.ts +34 -0
- package/src/components/pr-comment-preview.test.ts +54 -0
- package/src/components/pr-env-ledger.test.ts +9 -0
- package/src/components/pr-env-ledger.ts +42 -0
- package/src/components/pr-env-ports.ts +29 -4
- package/src/components/pr-env-run-bundle.test.ts +2 -14
- package/src/components/pr-env-run.test.ts +19 -0
- package/src/components/pr-env-run.ts +12 -2
- package/src/components/pr-environment.test.ts +29 -0
- package/src/components/pr-environment.ts +40 -8
- package/src/components/pr-pipeline-runners.test.ts +80 -0
- package/src/components/pr-pipeline.test.ts +15 -0
- package/src/components/pr-pipeline.ts +498 -18
- package/src/components/pr-policy.ts +45 -7
- package/src/components/pr-run.test.ts +1 -1
- package/src/components/pr-run.ts +138 -11
- package/src/components/pr-stale-job.test.ts +34 -0
- package/src/components/pr-targets.test.ts +35 -0
- package/src/components/pr-targets.ts +45 -0
- package/src/components/product-pipeline.test.ts +200 -0
- package/src/components/product-pipeline.ts +383 -0
- package/src/components/promote.ts +10 -1
- package/src/components/release-compile.ts +87 -1
- package/src/components/release-promote.ts +65 -1
- package/src/components/repo-lock.ts +52 -0
- package/src/components/row-lease.test.ts +490 -0
- package/src/components/row-lease.ts +167 -0
- package/src/components/wave-plan-policy.test.ts +19 -0
- package/src/components/wave-plan.ts +96 -6
- package/src/control/__fixtures__/consumers/apps/consumers.json +15 -0
- package/src/control/__fixtures__/consumers/infra/consumers.json +23 -0
- package/src/control/applied.test.ts +148 -0
- package/src/control/applied.ts +191 -0
- package/src/control/consumers.test.ts +129 -0
- package/src/control/consumers.ts +192 -0
- package/src/control/control.test.ts +302 -0
- package/src/control/dispatch.ts +699 -0
- package/src/control/edges.test.ts +112 -0
- package/src/control/edges.ts +164 -0
- package/src/control/note-checkout.test.ts +91 -0
- package/src/control/reconcile.ts +250 -0
- package/src/control/records.ts +395 -0
- package/src/discovery/sandbox/bundle.ts +25 -1
- package/src/e2e-harness/__project__/chant.config.ts +4 -0
- package/src/e2e-harness/__project__/src/compose.ts +33 -0
- package/src/e2e-harness/bucket.ts +69 -0
- package/src/e2e-harness/claim.test.ts +150 -0
- package/src/e2e-harness/claim.ts +140 -0
- package/src/e2e-harness/driver.test.ts +304 -0
- package/src/e2e-harness/driver.ts +294 -0
- package/src/e2e-harness/forgejo.ts +267 -0
- package/src/e2e-harness/git.ts +96 -0
- package/src/e2e-harness/index.ts +50 -0
- package/src/e2e-harness/jobs.ts +35 -0
- package/src/e2e-harness/pins.ts +52 -0
- package/src/e2e-harness/ports.ts +130 -0
- package/src/e2e-harness/reports.ts +79 -0
- package/src/e2e-harness/safe-run-cli.test.ts +102 -0
- package/src/e2e-harness/safe-run-cli.ts +54 -0
- package/src/e2e-harness/safe-run.ts +198 -0
- package/src/e2e-harness/scenario.ts +89 -0
- package/src/e2e-harness/schemas/README.md +62 -0
- package/src/e2e-harness/schemas/demo-cycle.schema.json +282 -0
- package/src/e2e-harness/schemas/demo-step.schema.json +245 -0
- package/src/e2e-harness/schemas/e2e-claim-row.schema.json +33 -0
- package/src/e2e-harness/schemas/e2e-claims.schema.json +18 -0
- package/src/e2e-harness/schemas/e2e-scenario.schema.json +150 -0
- package/src/e2e-harness/schemas/index.ts +220 -0
- package/src/e2e-harness/schemas.test.ts +145 -0
- package/src/e2e-harness/stack.test.ts +124 -0
- package/src/e2e-harness/stack.ts +306 -0
- package/src/e2e-harness/steps.ts +30 -0
- package/src/e2e-harness.ts +2 -0
- package/src/engine-facts.test.ts +2 -3
- package/src/engine-facts.ts +1 -2
- package/src/exit-codes.test.ts +32 -0
- package/src/exit-codes.ts +61 -0
- package/src/forge-check/check.ts +155 -0
- package/src/forge-check/contract.ts +215 -0
- package/src/forge-check/forge-check.test.ts +427 -0
- package/src/forge-check/forge.ts +318 -0
- package/src/forge-check/index.ts +43 -0
- package/src/forge-check/pulumi.ts +192 -0
- package/src/forge-check/read-only.ts +56 -0
- package/src/forge-check/trust.ts +527 -0
- package/src/forge-check/types.ts +78 -0
- package/src/forge-check.ts +5 -0
- package/src/gate-decision-bundle.test.ts +11 -0
- package/src/gate-decision.ts +3 -0
- package/src/gate-policy.ts +92 -3
- package/src/gated-waves-bundle.test.ts +0 -1
- package/src/index.ts +2 -0
- package/src/lexicon.ts +143 -6
- package/src/lifecycle/adoption-file.ts +1 -2
- package/src/lifecycle/cloud-index.test.ts +2 -3
- package/src/lifecycle/cloud-index.ts +1 -2
- package/src/lifecycle/control-entries-ledger.test.ts +69 -0
- package/src/lifecycle/gate-applied.ts +6 -0
- package/src/lifecycle/gate-ledger.ts +35 -1
- package/src/lifecycle/gate-pending-by-plan.test.ts +69 -0
- package/src/lifecycle/gate-pending-by-plan.ts +133 -0
- package/src/lifecycle/gated-request-digest.ts +49 -0
- package/src/lifecycle/gated-request-ledger.test.ts +53 -0
- package/src/lifecycle/gated-request.ts +279 -0
- package/src/lifecycle/identity-match.ts +25 -6
- package/src/lifecycle/index-diff.ts +1 -2
- package/src/lifecycle/index-document.ts +1 -2
- package/src/lifecycle/index-import.test.ts +14 -0
- package/src/lifecycle/index-import.ts +54 -34
- package/src/lifecycle/ledger-read.ts +7 -3
- package/src/lifecycle/lock-rows.test.ts +109 -0
- package/src/lifecycle/lock-rows.ts +167 -0
- package/src/lifecycle/publish-target-context.test.ts +108 -0
- package/src/lifecycle/query.test.ts +2 -3
- package/src/lifecycle/query.ts +109 -8
- package/src/lifecycle/release-catalog-site.test.ts +142 -0
- package/src/lifecycle/release-catalog-site.ts +291 -0
- package/src/lifecycle/release-catalog.test.ts +192 -0
- package/src/lifecycle/release-catalog.ts +353 -0
- package/src/lifecycle/release-changelog.test.ts +70 -0
- package/src/lifecycle/release-changelog.ts +71 -0
- package/src/lifecycle/release-cut.ts +2 -2
- package/src/lifecycle/release-ledger.ts +19 -0
- package/src/lifecycle/release-publish.ts +45 -22
- package/src/lifecycle/release-read.ts +2 -0
- package/src/lifecycle/release-status.test.ts +185 -0
- package/src/lifecycle/release-status.ts +175 -0
- package/src/lifecycle/resource-lock.test.ts +175 -0
- package/src/lifecycle/resource-lock.ts +354 -0
- package/src/lifecycle/retention.ts +2 -0
- package/src/lifecycle/run-ledger.ts +7 -1
- package/src/lifecycle/snapshot-store-s3.ts +9 -45
- package/src/lifecycle/snapshot-store.ts +1 -2
- package/src/lifecycle/target-lock.ts +24 -9
- package/src/lifecycle/wave-plans.ts +33 -5
- package/src/mcp/types.ts +7 -0
- package/src/notify-product.ts +76 -0
- package/src/notify-relay.test.ts +213 -0
- package/src/notify-relay.ts +407 -0
- package/src/notify.ts +95 -14
- package/src/object-store/azure-blob.ts +374 -0
- package/src/object-store/common.ts +133 -0
- package/src/object-store/errors.ts +26 -0
- package/src/object-store/from-env.ts +36 -0
- package/src/object-store/gcs.ts +436 -0
- package/src/object-store/index.ts +8 -0
- package/src/object-store/object-store.test.ts +130 -0
- package/src/object-store/s3.ts +350 -0
- package/src/op/activities/converge.ts +2 -1
- package/src/op/activities/index.ts +1 -1
- package/src/op/activities/review-agent.open.test.ts +78 -0
- package/src/op/activities/review-agent.test.ts +13 -0
- package/src/op/activities/review-agent.ts +89 -5
- package/src/op/approval-status.test.ts +134 -0
- package/src/op/approval-status.ts +235 -0
- package/src/op/gate-review.test.ts +2 -1
- package/src/op/gate.ts +81 -22
- package/src/op/generate-pipeline.ts +7 -1
- package/src/op/index.ts +23 -0
- package/src/op/op-waves-after-plan.test.ts +288 -0
- package/src/op/op-waves-after-plan.ts +238 -0
- package/src/op/op-waves-capability-spec.ts +133 -0
- package/src/op/op-waves-capability.test.ts +217 -0
- package/src/op/op-waves-capability.ts +370 -0
- package/src/op/op-waves-events.ts +135 -0
- package/src/op/op-waves-notify-words.test.ts +149 -0
- package/src/op/op-waves-notify.ts +41 -16
- package/src/op/op-waves-parallelism.test.ts +89 -0
- package/src/op/op-waves-pull-request.test.ts +219 -0
- package/src/op/op-waves-release-port.ts +64 -0
- package/src/op/op-waves-release.test.ts +209 -0
- package/src/op/op-waves-release.ts +132 -0
- package/src/op/op-waves-run-record.test.ts +32 -0
- package/src/op/op-waves-run.ts +1235 -52
- package/src/op/op-waves-stand-down.test.ts +240 -0
- package/src/op/op-waves-stand-down.ts +107 -0
- package/src/op/op-waves-trace.test.ts +205 -0
- package/src/op/op-waves.test.ts +112 -0
- package/src/op/op-waves.ts +320 -22
- package/src/op/runtime.ts +107 -0
- package/src/op/stage-hooks-hold-record.test.ts +41 -0
- package/src/op/stage-hooks.ts +91 -12
- package/src/op/steward-beside.ts +2 -1
- package/src/op/types.ts +3 -2
- package/src/otlp-metrics.ts +96 -0
- package/src/otlp.test.ts +243 -0
- package/src/otlp.ts +543 -0
- package/src/override-gate-bundle.test.ts +2 -0
- package/src/override-gate.ts +4 -0
- package/src/parallelism.test.ts +38 -0
- package/src/parallelism.ts +33 -0
- package/src/policy-packs.ts +230 -0
- package/src/policy-source.test.ts +256 -0
- package/src/policy-source.ts +111 -0
- package/src/pr-forge-bundle.test.ts +1 -1
- package/src/pr-forge.ts +175 -33
- package/src/pr-loop-bundle.test.ts +7 -3
- package/src/pr-loop-narrowed.test.ts +63 -0
- package/src/pr-loop-words.test.ts +155 -0
- package/src/pr-loop.ts +398 -52
- package/src/pr-merge.test.ts +100 -0
- package/src/pr-merge.ts +105 -0
- package/src/pr-post-stale.test.ts +163 -0
- package/src/pr-post.ts +190 -5
- package/src/pr-report-url.ts +61 -6
- package/src/pr-requires.test.ts +37 -1
- package/src/pr-requires.ts +16 -2
- package/src/product-subpaths-plain-node.e2e.test.ts +212 -0
- package/src/release-floors.ts +1 -1
- package/src/run-event.ts +28 -1
- package/src/scheduled-op-cloud.ts +68 -0
- package/src/sorted-json.ts +17 -0
- package/src/stage-hooks-bundle.test.ts +6 -0
- package/src/terraform/credentials.test.ts +77 -0
- package/src/terraform/credentials.ts +162 -0
- package/src/utils.ts +2 -11
- package/src/wave-loop-golden.test.ts +2 -1
- package/src/wave-runtime.ts +2 -2
- package/src/workspace/chant-migrations/chud-lexicon-exit.ts +4 -1
- package/src/workspace/ci-lock-grain.test.ts +31 -0
- package/src/workspace/ci-lock-grain.ts +29 -0
- package/src/workspace/ci-report-url.test.ts +1 -1
- package/src/workspace/ci-run.test.ts +1 -1
- package/src/workspace/ci-run.ts +10 -3
- package/src/workspace/declaration.schema.json +27 -3
- package/src/workspace/declaration.test.ts +1 -1
- package/src/workspace/declaration.ts +26 -10
- package/src/workspace/drift-cli.ts +8 -3
- package/src/workspace/exit-cli.ts +2 -1
- package/src/workspace/import-fetch.ts +4 -2
- package/src/workspace/import-init.ts +4 -2
- package/src/workspace/ledger.schema.json +7 -3
- package/src/workspace/lineage-upgrade-cli.ts +2 -1
- package/src/workspace/pr-report.schema.json +79 -3
- package/src/workspace/promote.ts +2 -1
- package/src/workspace/records-cli.ts +3 -2
- package/src/workspace/release-catalog.schema.json +277 -0
- package/src/workspace/run-event.schema.json +18 -1
- package/src/workspace/work-cli.ts +8 -2
- package/src/workspace/workspace-run.ts +2 -1
|
@@ -0,0 +1,407 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* A CI product's words (#4550): the names a product built on chant's pull
|
|
3
|
+
* request pipeline shows people, filled into chant's own sentences.
|
|
4
|
+
*
|
|
5
|
+
* terragucci and plywood run one chant pipeline. They differ only in the
|
|
6
|
+
* object they pass here: the status prefix, the stage and verb words, the
|
|
7
|
+
* noun for a member, the comment commands, the approve and override lines,
|
|
8
|
+
* and the op and gate names the waves record under. Every slot defaults to
|
|
9
|
+
* chant's word, so a plain chant pipeline renders as it always has.
|
|
10
|
+
*
|
|
11
|
+
* Job names, note markers, ledger paths, artifact names and GitLab variable
|
|
12
|
+
* names stay chant's. People never type them, and readers of the ledger and
|
|
13
|
+
* the artifacts key on them.
|
|
14
|
+
*
|
|
15
|
+
* The words reach a running job through the product's bin (ruling C,
|
|
16
|
+
* 2026-10-27): the generated jobs run the product's command, and its bin
|
|
17
|
+
* calls chant in process with its words (`runCommandInProcess(argv, {
|
|
18
|
+
* words })`, ../cli/main.ts), which sets them as the active words for the
|
|
19
|
+
* command's lifetime. Every renderer here reads {@link activeProductWords}
|
|
20
|
+
* when it is given none.
|
|
21
|
+
*
|
|
22
|
+
* This module imports nothing: the pull request loop bundle (pr-loop.ts,
|
|
23
|
+
* pr-loop-bundle.test.ts) carries it.
|
|
24
|
+
*/
|
|
25
|
+
/** Every stage slot, in the order {@link assertProductWords} reports them. */
|
|
26
|
+
export const CI_PRODUCT_STAGES = ["plan", "apply", "record", "check", "drift", "lock", "approval", "control"];
|
|
27
|
+
export const CI_PRODUCT_COMMANDS = ["plan", "apply", "lock", "unlock", "agent"];
|
|
28
|
+
export const CI_PRODUCT_APPLY_MODES = ["on-merge", "release", "before-merge"];
|
|
29
|
+
/** chant's own wave label in a notify summary. */
|
|
30
|
+
export const CHANT_NOTIFY_WAVE_TEMPLATE = "wave {k} ({name}) of {spec}";
|
|
31
|
+
/** chant's own approve line. */
|
|
32
|
+
export const CHANT_APPROVE_TEMPLATE = "chant approve {op} {gate} --plan {digest} --approver {approver} {sign}";
|
|
33
|
+
/** chant's own override line. */
|
|
34
|
+
export const CHANT_OVERRIDE_TEMPLATE = 'chant approve {op} {target} --rule {rule} --reason "<why>" {sign}';
|
|
35
|
+
/** chant's words: what every slot defaults to. */
|
|
36
|
+
export const CHANT_WORDS = Object.freeze({
|
|
37
|
+
product: "chant",
|
|
38
|
+
stages: { plan: "plan", apply: "apply", record: "record", check: "check", drift: "drift", lock: "lock", approval: "approval", control: "control" },
|
|
39
|
+
verbs: { plan: ["plan", "planned"], apply: ["apply", "applied"] },
|
|
40
|
+
noun: ["member", "members"],
|
|
41
|
+
commands: { apply: "apply" },
|
|
42
|
+
aliases: [],
|
|
43
|
+
approve: CHANT_APPROVE_TEMPLATE,
|
|
44
|
+
override: CHANT_OVERRIDE_TEMPLATE,
|
|
45
|
+
gateName: "{gate}-wave-{k}",
|
|
46
|
+
prGate: "pr-apply",
|
|
47
|
+
approval: "pull-request",
|
|
48
|
+
applyMode: "release",
|
|
49
|
+
adoptMarkers: [],
|
|
50
|
+
notify: { source: "chant", wave: CHANT_NOTIFY_WAVE_TEMPLATE, headers: "x-chant" },
|
|
51
|
+
});
|
|
52
|
+
/** Fill every slot `input` leaves out with chant's word. */
|
|
53
|
+
export function resolveProductWords(input = {}) {
|
|
54
|
+
const product = input.product ?? CHANT_WORDS.product;
|
|
55
|
+
const own = product !== CHANT_WORDS.product;
|
|
56
|
+
return {
|
|
57
|
+
product,
|
|
58
|
+
stages: { ...CHANT_WORDS.stages, ...(input.stages ?? {}) },
|
|
59
|
+
verbs: { plan: input.verbs?.plan ?? CHANT_WORDS.verbs.plan, apply: input.verbs?.apply ?? CHANT_WORDS.verbs.apply },
|
|
60
|
+
noun: input.noun ?? CHANT_WORDS.noun,
|
|
61
|
+
commands: input.commands ?? CHANT_WORDS.commands,
|
|
62
|
+
aliases: input.aliases ?? [],
|
|
63
|
+
// A product's own lines default to chant's grammar under its own name.
|
|
64
|
+
approve: input.approve ?? (own ? `${product} approve {op} {gate} --plan {digest} {sign}` : CHANT_APPROVE_TEMPLATE),
|
|
65
|
+
override: input.override ?? (own ? `${product} override {target} --rule {rule} --reason {reason} {sign}` : CHANT_OVERRIDE_TEMPLATE),
|
|
66
|
+
...(input.op !== undefined ? { op: input.op } : {}),
|
|
67
|
+
gateName: input.gateName ?? CHANT_WORDS.gateName,
|
|
68
|
+
prGate: input.prGate ?? CHANT_WORDS.prGate,
|
|
69
|
+
approval: input.approval ?? CHANT_WORDS.approval,
|
|
70
|
+
applyMode: input.applyMode ?? (own && (input.op !== undefined || input.approval === "per-wave") ? "on-merge" : CHANT_WORDS.applyMode),
|
|
71
|
+
...(input.bin !== undefined ? { bin: input.bin } : {}),
|
|
72
|
+
adoptMarkers: input.adoptMarkers ?? [],
|
|
73
|
+
notify: {
|
|
74
|
+
source: input.notify?.source ?? product,
|
|
75
|
+
wave: input.notify?.wave ?? CHANT_NOTIFY_WAVE_TEMPLATE,
|
|
76
|
+
headers: input.notify?.headers ?? `x-${product}`,
|
|
77
|
+
},
|
|
78
|
+
};
|
|
79
|
+
}
|
|
80
|
+
/** A word that may reach a shell line, an `if:` expression or a status context. */
|
|
81
|
+
const WORD = /^[a-z0-9][a-z0-9-]*$/;
|
|
82
|
+
/** An op or gate name, as the gate ledger names files. */
|
|
83
|
+
const NAME = /^[a-z0-9][a-z0-9_-]*$/;
|
|
84
|
+
/** A template's placeholders. */
|
|
85
|
+
const PLACEHOLDERS = new Set(["op", "gate", "digest", "approver", "sign", "target", "rule", "reason"]);
|
|
86
|
+
/** The notify wave label's placeholders (#4610). */
|
|
87
|
+
const NOTIFY_WAVE_PLACEHOLDERS = new Set(["k", "name", "spec", "product"]);
|
|
88
|
+
/** Thrown for words chant refuses, with every problem named. */
|
|
89
|
+
export class CiProductWordsError extends Error {
|
|
90
|
+
constructor(problems) {
|
|
91
|
+
super(`the product's words are refused: ${problems.join("; ")}`);
|
|
92
|
+
this.problems = problems;
|
|
93
|
+
this.name = "CiProductWordsError";
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Every problem with `words`, one line each: a word outside `[a-z0-9-]`, one
|
|
98
|
+
* stage word used for two stages, a command the pipeline has no job for
|
|
99
|
+
* (`jobs`, when given, lists the commands it answers), and a template with
|
|
100
|
+
* a placeholder chant does not fill.
|
|
101
|
+
*/
|
|
102
|
+
export function productWordsProblems(words, options = {}) {
|
|
103
|
+
const problems = [];
|
|
104
|
+
const word = (where, value) => {
|
|
105
|
+
if (!WORD.test(value))
|
|
106
|
+
problems.push(`${where} is ${JSON.stringify(value)}, and a word is lowercase letters, digits and -`);
|
|
107
|
+
};
|
|
108
|
+
word("product", words.product);
|
|
109
|
+
const seen = new Map();
|
|
110
|
+
for (const stage of CI_PRODUCT_STAGES) {
|
|
111
|
+
const w = words.stages[stage];
|
|
112
|
+
word(`stages.${stage}`, w);
|
|
113
|
+
const other = seen.get(w);
|
|
114
|
+
if (other)
|
|
115
|
+
problems.push(`stages.${stage} and stages.${other} are both ${JSON.stringify(w)}, so their statuses would be one`);
|
|
116
|
+
seen.set(w, stage);
|
|
117
|
+
}
|
|
118
|
+
for (const [k, pair] of Object.entries(words.verbs))
|
|
119
|
+
pair.forEach((v, i) => word(`verbs.${k}[${i}]`, v));
|
|
120
|
+
words.noun.forEach((v, i) => word(`noun[${i}]`, v));
|
|
121
|
+
for (const [typed, command] of Object.entries(words.commands)) {
|
|
122
|
+
word(`commands.${typed}`, typed);
|
|
123
|
+
if (!CI_PRODUCT_COMMANDS.includes(command))
|
|
124
|
+
problems.push(`commands.${typed} maps onto ${JSON.stringify(command)}, which is not one of ${CI_PRODUCT_COMMANDS.join(", ")}`);
|
|
125
|
+
else if (options.jobs && !options.jobs.includes(command))
|
|
126
|
+
problems.push(`commands.${typed} needs a ${command} job, and the pipeline has none`);
|
|
127
|
+
}
|
|
128
|
+
for (const a of words.aliases) {
|
|
129
|
+
if (!/^[a-z0-9][a-z0-9 -]*$/.test(a.from))
|
|
130
|
+
problems.push(`the alias ${JSON.stringify(a.from)} is lowercase words`);
|
|
131
|
+
if (!Object.values(words.commands).includes(a.command))
|
|
132
|
+
problems.push(`the alias ${JSON.stringify(a.from)} stands for ${a.command}, which no command names`);
|
|
133
|
+
}
|
|
134
|
+
for (const [where, template] of [["approve", words.approve], ["override", words.override]]) {
|
|
135
|
+
for (const m of template.matchAll(/\{([^}]*)\}/g))
|
|
136
|
+
if (!PLACEHOLDERS.has(m[1]))
|
|
137
|
+
problems.push(`${where} names {${m[1]}}, which chant does not fill`);
|
|
138
|
+
if (/[`$;&|<>\\\n]/.test(template.replace(/\{[^}]*\}/g, "").replace(/<[a-z-]+>/g, "")))
|
|
139
|
+
problems.push(`${where} carries shell syntax`);
|
|
140
|
+
}
|
|
141
|
+
if (words.op !== undefined && !NAME.test(words.op))
|
|
142
|
+
problems.push(`op is ${JSON.stringify(words.op)}, and an op is lowercase letters, digits, - and _`);
|
|
143
|
+
if (!NAME.test(words.prGate))
|
|
144
|
+
problems.push(`prGate is ${JSON.stringify(words.prGate)}, and a gate is lowercase letters, digits, - and _`);
|
|
145
|
+
if (!words.gateName.includes("{k}"))
|
|
146
|
+
problems.push("gateName needs {k}, so each wave has its own gate");
|
|
147
|
+
else if (!NAME.test(words.gateName.replace("{gate}", "g").replace("{k}", "1")))
|
|
148
|
+
problems.push(`gateName ${JSON.stringify(words.gateName)} does not make a gate name`);
|
|
149
|
+
if (words.approval !== "per-wave" && words.approval !== "pull-request")
|
|
150
|
+
problems.push(`approval is ${JSON.stringify(words.approval)}; use per-wave or pull-request`);
|
|
151
|
+
if (!CI_PRODUCT_APPLY_MODES.includes(words.applyMode))
|
|
152
|
+
problems.push(`applyMode is ${JSON.stringify(words.applyMode)}; use ${CI_PRODUCT_APPLY_MODES.join(", ")}`);
|
|
153
|
+
if (words.bin !== undefined && !/^[A-Za-z0-9@/._ -]+$/.test(words.bin))
|
|
154
|
+
problems.push(`bin ${JSON.stringify(words.bin)} carries shell syntax`);
|
|
155
|
+
// #4610: the notify slots. A receiver routes on the source and verifies under the header prefix.
|
|
156
|
+
const notify = words.notify ?? CHANT_WORDS.notify;
|
|
157
|
+
word("notify.source", notify.source);
|
|
158
|
+
if (!/^x-[a-z0-9][a-z0-9-]*$/.test(notify.headers))
|
|
159
|
+
problems.push(`notify.headers is ${JSON.stringify(notify.headers)}, and a header prefix is x- then lowercase letters, digits and -`);
|
|
160
|
+
for (const m of notify.wave.matchAll(/\{([^}]*)\}/g))
|
|
161
|
+
if (!NOTIFY_WAVE_PLACEHOLDERS.has(m[1]))
|
|
162
|
+
problems.push(`notify.wave names {${m[1]}}, which chant does not fill`);
|
|
163
|
+
if (!notify.wave.includes("{k}"))
|
|
164
|
+
problems.push("notify.wave needs {k}, so a message names its wave");
|
|
165
|
+
if (/[\r\n]/.test(notify.wave))
|
|
166
|
+
problems.push("notify.wave is one line");
|
|
167
|
+
return problems;
|
|
168
|
+
}
|
|
169
|
+
/** Refuse words with any problem ({@link productWordsProblems}); return them resolved. */
|
|
170
|
+
export function assertProductWords(input, options = {}) {
|
|
171
|
+
const words = resolveProductWords(input);
|
|
172
|
+
const problems = productWordsProblems(words, options);
|
|
173
|
+
if (problems.length > 0)
|
|
174
|
+
throw new CiProductWordsError(problems);
|
|
175
|
+
return words;
|
|
176
|
+
}
|
|
177
|
+
let active = CHANT_WORDS;
|
|
178
|
+
/** The words the running command renders with: the product's when its bin set them, else chant's. */
|
|
179
|
+
export function activeProductWords() {
|
|
180
|
+
return active;
|
|
181
|
+
}
|
|
182
|
+
/** Set the words for this process (a product's bin, once, before it calls chant). Returns the ones it replaced. */
|
|
183
|
+
export function setActiveProductWords(words) {
|
|
184
|
+
const was = active;
|
|
185
|
+
active = words ? assertProductWords(words) : CHANT_WORDS;
|
|
186
|
+
return was;
|
|
187
|
+
}
|
|
188
|
+
/** Run `fn` with `words` active, and put the earlier ones back after it settles. */
|
|
189
|
+
export async function withProductWords(words, fn) {
|
|
190
|
+
if (!words)
|
|
191
|
+
return fn();
|
|
192
|
+
const was = setActiveProductWords(words);
|
|
193
|
+
try {
|
|
194
|
+
return await fn();
|
|
195
|
+
}
|
|
196
|
+
finally {
|
|
197
|
+
active = was;
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
/** Whether `words` are chant's own, so callers can keep chant's long-standing text. */
|
|
201
|
+
export function isChantWords(words) {
|
|
202
|
+
return words.product === CHANT_WORDS.product;
|
|
203
|
+
}
|
|
204
|
+
/** A status context: `<product>/<stage word>`, then `/<member>` in a workspace member. */
|
|
205
|
+
export function productStatusContext(words, stage, member) {
|
|
206
|
+
const context = `${words.product}/${words.stages[stage]}`;
|
|
207
|
+
return member ? `${context}/${member}` : context;
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* How a notify summary names wave `k` of `spec` (#4610): the words'
|
|
211
|
+
* `notify.wave` filled. chant's words give `wave 2 (prod) of tf-apply`, and
|
|
212
|
+
* `wave 2 of tf-apply` for a wave with no name.
|
|
213
|
+
*/
|
|
214
|
+
export function notifyWaveLabel(words, input) {
|
|
215
|
+
const template = (words.notify ?? CHANT_WORDS.notify).wave;
|
|
216
|
+
const named = input.name ? template : template.replace(/ ?\(\{name\}\)/g, "").replace(/ ?\{name\}/g, "");
|
|
217
|
+
return named.replace(/\{(k|name|spec|product)\}/g, (_, key) => key === "k" ? String(input.k) : key === "name" ? (input.name ?? "") : key === "spec" ? input.spec : words.product);
|
|
218
|
+
}
|
|
219
|
+
/** The context for a name chant uses as is, such as a run record's `pr-plan` or a gate: `<product>/<name>`. */
|
|
220
|
+
export function productContext(words, name) {
|
|
221
|
+
return `${words.product}/${name}`;
|
|
222
|
+
}
|
|
223
|
+
const fill = (template, values) => template
|
|
224
|
+
.replace(/\{([a-z]+)\}/g, (_, k) => values[k] ?? "")
|
|
225
|
+
.split(/[ \t]+/)
|
|
226
|
+
.filter((w) => w !== "")
|
|
227
|
+
.join(" ");
|
|
228
|
+
/**
|
|
229
|
+
* The command a reviewer runs to approve a digest: the product's template
|
|
230
|
+
* filled. One function for the note, the job log and the chat message, so all
|
|
231
|
+
* three name the same command.
|
|
232
|
+
*/
|
|
233
|
+
export function approveLine(words, input) {
|
|
234
|
+
const line = fill(words.approve, {
|
|
235
|
+
op: input.op,
|
|
236
|
+
gate: input.gate,
|
|
237
|
+
digest: input.digest,
|
|
238
|
+
approver: input.approver ?? "<you>",
|
|
239
|
+
sign: input.sign === false ? "" : "--sign",
|
|
240
|
+
target: input.target ?? "",
|
|
241
|
+
});
|
|
242
|
+
// chant's own line names a component gate's environment after the gate, as `chant approve` reads it.
|
|
243
|
+
if (input.environment !== undefined && isChantWords(words) && words.approve === CHANT_APPROVE_TEMPLATE) {
|
|
244
|
+
return line.replace(` ${input.gate} `, ` ${input.gate} --env ${input.environment} `);
|
|
245
|
+
}
|
|
246
|
+
return line;
|
|
247
|
+
}
|
|
248
|
+
/** The command that overrides a policy denial: the product's template filled. */
|
|
249
|
+
export function overrideLine(words, input) {
|
|
250
|
+
return fill(words.override, {
|
|
251
|
+
op: input.op,
|
|
252
|
+
gate: input.gate ?? "",
|
|
253
|
+
rule: [...new Set(input.rules)].sort().join(" --rule "),
|
|
254
|
+
reason: input.reason ?? "<text>",
|
|
255
|
+
target: input.target ?? "",
|
|
256
|
+
digest: input.digest ?? "",
|
|
257
|
+
approver: "<you>",
|
|
258
|
+
sign: input.sign ? "--sign" : "",
|
|
259
|
+
});
|
|
260
|
+
}
|
|
261
|
+
/** The typed word for one of chant's commands: the first `commands` entry that maps onto it. */
|
|
262
|
+
export function commandWord(words, command) {
|
|
263
|
+
return Object.entries(words.commands).find(([, c]) => c === command)?.[0];
|
|
264
|
+
}
|
|
265
|
+
/** The comment a job answers: `/<product> <word>`, such as `/plywood up`. Undefined when the product has no word for the command. */
|
|
266
|
+
export function commentLine(words, command) {
|
|
267
|
+
const typed = commandWord(words, command);
|
|
268
|
+
return typed === undefined ? undefined : `/${words.product} ${typed}`;
|
|
269
|
+
}
|
|
270
|
+
/** The wave gate pattern filled for wave `k`. */
|
|
271
|
+
export function productWaveGate(words, gate, k) {
|
|
272
|
+
return words.gateName.replace("{gate}", gate).replace("{k}", String(k));
|
|
273
|
+
}
|
|
274
|
+
/** A member as a comment may name it: path segments, no leading dash, no shell or glob syntax. */
|
|
275
|
+
const MEMBER = /^[A-Za-z0-9_][A-Za-z0-9_.\/-]{0,199}$/;
|
|
276
|
+
/**
|
|
277
|
+
* A target address as a comment may give it (#4626): a Terraform address,
|
|
278
|
+
* a Pulumi URN, or `<member>:<address>`, at most 500 characters, with no
|
|
279
|
+
* leading dash and none of the characters a shell or a quote would read.
|
|
280
|
+
* It never reaches a shell: the job reads the comment from a variable.
|
|
281
|
+
*/
|
|
282
|
+
const TARGET = /^[A-Za-z0-9_][A-Za-z0-9_.:\/\[\]"*@=+$,-]{0,499}$/;
|
|
283
|
+
/** The longest ask an agent comment may carry. */
|
|
284
|
+
export const PRODUCT_COMMENT_ASK_MAX = 2000;
|
|
285
|
+
/** Commands a comment never runs, named in the reply so nobody waits on them. */
|
|
286
|
+
const NEVER = new Set(["approve", "override", "force-unlock", "unlock-state", "import", "state", "destroy", "merge"]);
|
|
287
|
+
/**
|
|
288
|
+
* Read a comment against the product's grammar (moved from terragucci's
|
|
289
|
+
* comment.ts). Undefined when it is not addressed to the product. A comment
|
|
290
|
+
* that starts with `/<product>` is a command or it is refused: the whole
|
|
291
|
+
* comment is the command, one line, words separated by spaces or tabs. The
|
|
292
|
+
* comment is untrusted input: only a member path checked against a pattern
|
|
293
|
+
* with no shell syntax, and a wave number, leave this function.
|
|
294
|
+
*
|
|
295
|
+
* `env` turns on an alias whose `when` variable is `1` there.
|
|
296
|
+
*/
|
|
297
|
+
export function parseProductComment(words, body, env = {}) {
|
|
298
|
+
if (typeof body !== "string")
|
|
299
|
+
return undefined;
|
|
300
|
+
let text = body.trim();
|
|
301
|
+
const prefix = `/${words.product}`;
|
|
302
|
+
for (const a of words.aliases) {
|
|
303
|
+
if (a.when !== undefined && env[a.when] !== "1")
|
|
304
|
+
continue;
|
|
305
|
+
if (text !== a.from && !text.startsWith(`${a.from} `) && !text.startsWith(`${a.from}\t`))
|
|
306
|
+
continue;
|
|
307
|
+
if (/[\r\n]/.test(text))
|
|
308
|
+
return { kind: "refused", reason: "a command is one line, and nothing else in the comment" };
|
|
309
|
+
const typed = commandWord(words, a.command);
|
|
310
|
+
if (typed === undefined)
|
|
311
|
+
return undefined;
|
|
312
|
+
const rest = text.slice(a.from.length).trim().split(/[ \t]+/).filter((w) => w !== "");
|
|
313
|
+
const args = [];
|
|
314
|
+
for (let i = 0; i < rest.length; i++) {
|
|
315
|
+
const w = rest[i];
|
|
316
|
+
if (w === "-d" || w === "--dir") {
|
|
317
|
+
const dir = rest[++i];
|
|
318
|
+
if (dir === undefined)
|
|
319
|
+
return { kind: "refused", reason: `\`${w}\` names the ${words.noun[0]}'s directory` };
|
|
320
|
+
args.push(dir.replace(/^\.\/+/, "").replace(/\/+$/, ""));
|
|
321
|
+
}
|
|
322
|
+
else if (w === "--verbose")
|
|
323
|
+
continue;
|
|
324
|
+
else if (w.startsWith("-"))
|
|
325
|
+
return { kind: "refused", reason: `\`${a.from}\` takes no flag ${w} here` };
|
|
326
|
+
else
|
|
327
|
+
args.push(w);
|
|
328
|
+
}
|
|
329
|
+
text = [prefix, typed, ...args].join(" ");
|
|
330
|
+
break;
|
|
331
|
+
}
|
|
332
|
+
if (text !== prefix && !text.startsWith(`${prefix} `) && !text.startsWith(`${prefix}\t`))
|
|
333
|
+
return undefined;
|
|
334
|
+
if (/[\r\n]/.test(text))
|
|
335
|
+
return { kind: "refused", reason: "a command is one line, and nothing else in the comment" };
|
|
336
|
+
const parts = text.split(/[ \t]+/);
|
|
337
|
+
const typed = parts[1];
|
|
338
|
+
const known = Object.keys(words.commands).map((w) => `\`${prefix} ${w}\``).join(", ");
|
|
339
|
+
if (typed === undefined)
|
|
340
|
+
return { kind: "refused", reason: `the commands are ${known}` };
|
|
341
|
+
const command = words.commands[typed];
|
|
342
|
+
if (command === undefined) {
|
|
343
|
+
return {
|
|
344
|
+
kind: "refused",
|
|
345
|
+
reason: NEVER.has(typed) ? `a comment never runs \`${typed}\`: ${words.product} re-plans, and runs what an approval covers, on request and nothing more` : `the commands are ${known}`,
|
|
346
|
+
};
|
|
347
|
+
}
|
|
348
|
+
const line = `\`${prefix} ${typed}\``;
|
|
349
|
+
switch (command) {
|
|
350
|
+
case "lock":
|
|
351
|
+
case "unlock":
|
|
352
|
+
return parts.length === 2 ? { kind: command } : { kind: "refused", reason: `${line} takes nothing after it` };
|
|
353
|
+
case "agent": {
|
|
354
|
+
const ask = text.slice(`${prefix} ${typed}`.length).trim();
|
|
355
|
+
if (ask === "")
|
|
356
|
+
return { kind: "refused", reason: `${line} needs an ask after it, on the same line` };
|
|
357
|
+
if (ask.length > PRODUCT_COMMENT_ASK_MAX)
|
|
358
|
+
return { kind: "refused", reason: `an ask is at most ${PRODUCT_COMMENT_ASK_MAX} characters` };
|
|
359
|
+
if (/[\u0000-\u0008\u000b-\u001f\u007f]/.test(ask))
|
|
360
|
+
return { kind: "refused", reason: "an ask is plain text, with no control characters" };
|
|
361
|
+
return { kind: "agent", ask };
|
|
362
|
+
}
|
|
363
|
+
case "apply": {
|
|
364
|
+
if (parts.length === 2)
|
|
365
|
+
return { kind: "apply" };
|
|
366
|
+
const m = parts.length === 3 ? /^wave-([1-9][0-9]{0,3})$/.exec(parts[2]) : null;
|
|
367
|
+
return m ? { kind: "apply", wave: Number(m[1]) } : { kind: "refused", reason: `${line} takes nothing, or a wave like \`wave-2\`` };
|
|
368
|
+
}
|
|
369
|
+
case "plan": {
|
|
370
|
+
// #4626: repeatable --target <address> after the plan word, and at most one member.
|
|
371
|
+
const targets = [];
|
|
372
|
+
const rest = [];
|
|
373
|
+
const flags = {};
|
|
374
|
+
for (let i = 2; i < parts.length; i++) {
|
|
375
|
+
const w = parts[i];
|
|
376
|
+
if (w === "--target") {
|
|
377
|
+
const address = parts[++i];
|
|
378
|
+
if (address === undefined)
|
|
379
|
+
return { kind: "refused", reason: `\`--target\` needs an address after it: \`${prefix} ${typed} --target <address>\`` };
|
|
380
|
+
if (!TARGET.test(address))
|
|
381
|
+
return { kind: "refused", reason: "a target is a resource address or URN, or <member>:<address>, with no spaces or shell characters" };
|
|
382
|
+
targets.push(address);
|
|
383
|
+
}
|
|
384
|
+
else if (w === "--refresh")
|
|
385
|
+
flags.refresh = true;
|
|
386
|
+
// #4627: the flags pr-plan takes beside --target.
|
|
387
|
+
else if (w === "--target-dependents")
|
|
388
|
+
flags.targetDependents = true;
|
|
389
|
+
else if (w.startsWith("-"))
|
|
390
|
+
return { kind: "refused", reason: `${line} takes \`--target <address>\`, \`--target-dependents\` and \`--refresh\`, and no other flag` };
|
|
391
|
+
else
|
|
392
|
+
rest.push(w);
|
|
393
|
+
}
|
|
394
|
+
if (rest.length > 1)
|
|
395
|
+
return { kind: "refused", reason: `${line} takes one ${words.noun[0]} at most` };
|
|
396
|
+
const member = rest[0];
|
|
397
|
+
if (flags.targetDependents && targets.length === 0)
|
|
398
|
+
return { kind: "refused", reason: "`--target-dependents` widens a `--target`; give one" };
|
|
399
|
+
const narrowed = { ...(targets.length > 0 ? { targets } : {}), ...flags };
|
|
400
|
+
if (member === undefined)
|
|
401
|
+
return { kind: "plan", ...narrowed };
|
|
402
|
+
if (!MEMBER.test(member) || member.split("/").some((s) => s === "" || s === "." || s === ".."))
|
|
403
|
+
return { kind: "refused", reason: `the ${words.noun[0]} is a name or a path from the repository root` };
|
|
404
|
+
return { kind: "plan", member, ...narrowed };
|
|
405
|
+
}
|
|
406
|
+
}
|
|
407
|
+
}
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@intentius/chant/ci-product` (#4550): what a CI product built on chant's
|
|
3
|
+
* pull request pipeline imports. terragucci and plywood pass their words
|
|
4
|
+
* here and get the same jobs, the same note and the same statuses, in their
|
|
5
|
+
* own words.
|
|
6
|
+
*
|
|
7
|
+
* A product feature-detects this entry until the chant release that carries
|
|
8
|
+
* {@link CI_PRODUCT_FLOOR} is its floor: `productPipelineJobs`, `approveLine`
|
|
9
|
+
* and `assertProductWords` present means the rest is too.
|
|
10
|
+
*/
|
|
11
|
+
import type { CiProductWords, CiProductWordsInput } from "./ci-product-words.js";
|
|
12
|
+
import type { ProductMcpHook } from "./cli/mcp/product-tools.js";
|
|
13
|
+
import type { ProductWaveHook } from "./op/op-waves-after-plan.js";
|
|
14
|
+
/**
|
|
15
|
+
* The first chant with the product pipeline (#4550): the words, the
|
|
16
|
+
* `pull-request` op-wave approval source, `runCommandInProcess(argv, {
|
|
17
|
+
* words })`, the lexicons' `ciSetup`, and the member detail sections of the
|
|
18
|
+
* note (#4573).
|
|
19
|
+
*/
|
|
20
|
+
export declare const CI_PRODUCT_FLOOR = "0.124.55";
|
|
21
|
+
export { activeProductWords, approveLine, assertProductWords, CHANT_APPROVE_TEMPLATE, CHANT_NOTIFY_WAVE_TEMPLATE, CHANT_OVERRIDE_TEMPLATE, CHANT_WORDS, CI_PRODUCT_APPLY_MODES, CI_PRODUCT_COMMANDS, CI_PRODUCT_STAGES, CiProductWordsError, commandWord, commentLine, isChantWords, notifyWaveLabel, overrideLine, parseProductComment, productContext, productStatusContext, productWaveGate, productWordsProblems, resolveProductWords, setActiveProductWords, withProductWords, type ApproveLineInput, type CiProductAlias, type CiProductApplyMode, type CiProductApproval, type CiProductCommand, type CiProductNotifyWords, type CiProductNotifyWordsInput, type CiProductStage, type CiProductWords, type CiProductWordsInput, type OverrideLineInput, type ParsedProductComment, } from "./ci-product-words.js";
|
|
22
|
+
export { driftNotifyFields, productNotifySource, productNotifyWords, productSendOptions, type DriftNotifyInput } from "./notify-product.js";
|
|
23
|
+
/** The first chant with `chant notify relay` and the notify relay buttons (#4611). */
|
|
24
|
+
export declare const NOTIFY_RELAY_FLOOR = "0.124.55";
|
|
25
|
+
/**
|
|
26
|
+
* The first chant whose product pipeline has the comment preview
|
|
27
|
+
* (`previewComment`, `build --pr-loop --preview-comment`) and whose
|
|
28
|
+
* `components pr-plan` takes `--target` (#4620). A product feature-detects
|
|
29
|
+
* `prCommentPreviewJob` and this constant together.
|
|
30
|
+
*/
|
|
31
|
+
export declare const PR_PREVIEW_FLOOR = "0.124.55";
|
|
32
|
+
export { decideRelayClick, handleRelayRequest, relayPrincipalFor, RELAY_ENV, slackRelayClick, slackSignature, startRelayServer, teamsRelayClick, teamsSignature, verifySlackRequest, verifyTeamsRequest, type RelayAnswer, type RelayClick, type RelayDeps, type RelayPending, type RelayRequest, type RelayResponse, type RelaySettings, } from "./notify-relay.js";
|
|
33
|
+
export { componentWaveOutputsFile, componentWaveSteps, componentWavesSpec, productAgentSpec, productCommand, productDriftAgent, productPipelineJobs, productWavesSpec, productWavesSpecFile, PRODUCT_WAVES_SPEC_DIR, type ComponentWaveStepOptions, type ComponentWaveSteps, type ComponentWavesSpecOptions, type ProductAgentOptions, type ProductPipelineJobs, type ProductPipelineOptions, } from "./components/product-pipeline.js";
|
|
34
|
+
export { prApplyComment, prCommentLockJobs, prCommentPreviewJob, prLoopSetup, engineSetupLines, withProductBin, type PrCommentLockJob, type PrCommentPreviewJob } from "./components/pr-pipeline.js";
|
|
35
|
+
export { CI_SERVICES_FLOOR, engineServices, githubServices, gitlabServices, serviceWaitLine, servicesJobEnv, type CiService } from "./components/ci-services.js";
|
|
36
|
+
export { renderPrNote, prStatusContext, prApproveCommand, prApproveCommands, prApproveTargets, prMergeSentence, type PrMemberDetail } from "./pr-loop.js";
|
|
37
|
+
export { upsertPlanNote } from "./pr-post.js";
|
|
38
|
+
/**
|
|
39
|
+
* The approval status before merge (#4630): under a `pr-review` wave, the
|
|
40
|
+
* op waves generators add a job that posts `<product>/approval` on each
|
|
41
|
+
* open pull request's head. A product feature-detects on
|
|
42
|
+
* `APPROVAL_STATUS_FLOOR`.
|
|
43
|
+
*/
|
|
44
|
+
export declare const APPROVAL_STATUS_FLOOR = "0.124.56";
|
|
45
|
+
/**
|
|
46
|
+
* The approval status for `pull-request` waves too (#4630, 2026-10-28
|
|
47
|
+
* ruling): the generators add the record-plans and approval-status jobs for
|
|
48
|
+
* a spec whose waves take the pull request's own approval, and the status
|
|
49
|
+
* reads that approval's coverage of each wave's change set. A product such
|
|
50
|
+
* as plywood, whose waves all take `approval: pull-request`, feature-detects
|
|
51
|
+
* on this floor.
|
|
52
|
+
*/
|
|
53
|
+
export declare const APPROVAL_STATUS_PULL_REQUEST_FLOOR = "0.124.56";
|
|
54
|
+
export { opWavesPostsApprovalStatus } from "./op/op-waves.js";
|
|
55
|
+
export { approvalStatusOf, headWaveHolds, postApprovalStatus, postOpenApprovalStatuses, type ApprovalStatus, type ApprovalStatusInput } from "./op/approval-status.js";
|
|
56
|
+
/**
|
|
57
|
+
* Responses to pipeline events (#4629): a refused wave's diff, a failed
|
|
58
|
+
* apply's triage and the pull request description check, in the product's
|
|
59
|
+
* words. `productPipelineJobs(forge, env, { words, respond, decide })` turns
|
|
60
|
+
* them on and off; a product feature-detects on `CI_RESPOND_FLOOR`.
|
|
61
|
+
*/
|
|
62
|
+
export declare const CI_RESPOND_FLOOR = "0.124.56";
|
|
63
|
+
/**
|
|
64
|
+
* `chant build --pr-loop` carries `--merge auto --merge-token-env <VAR>
|
|
65
|
+
* [--merge-method <m>]` (#4636), `--respond <list>`, `--decide-backend` and
|
|
66
|
+
* `--decide-model` (#4629) into the generated pull request jobs. Before it
|
|
67
|
+
* the build parsed them and wrote jobs without them; a product that writes
|
|
68
|
+
* its pull request jobs with the build feature-detects on this floor.
|
|
69
|
+
*/
|
|
70
|
+
export declare const PR_LOOP_BUILD_FLAGS_FLOOR = "0.124.56";
|
|
71
|
+
export { CI_RESPOND_DEFAULTS, CI_RESPOND_ENV, CI_RESPONSES, parseRespondList, renderRefusedDiff, renderTriage, respondList, resolveResponses, type CiRespondEvent, type CiResponses, type DescriptionFinding, type FailedApply, type RefusedDiff, } from "./ci-respond.js";
|
|
72
|
+
export { respondDescription, respondOpWave, respondPrApply, triageOfOpWave, triageOfPrReport, refusedOfOpWave, refusedOfPrReport } from "./ci-respond-run.js";
|
|
73
|
+
/**
|
|
74
|
+
* Run one chant command line in this process with the product's words
|
|
75
|
+
* (ruling C): what a product's bin calls for every command its verbs map
|
|
76
|
+
* onto, and for the `chant ...` lines the generated jobs run through it. The
|
|
77
|
+
* CLI loads on the first call, so importing this entry stays light.
|
|
78
|
+
*/
|
|
79
|
+
export declare function runChantInProcess(argv: string[], words: CiProductWordsInput | CiProductWords, options?: {
|
|
80
|
+
mcp?: ProductMcpHook;
|
|
81
|
+
wave?: ProductWaveHook;
|
|
82
|
+
}): Promise<number>;
|
|
83
|
+
/**
|
|
84
|
+
* The agent job (#4616): `productPipelineJobs(forge, env, { words, agent })`
|
|
85
|
+
* returns the agent's Op spec, and `productDriftAgent` the `agent` of a
|
|
86
|
+
* scheduled drift Op; `chant run --generate` writes both. Feature-detect on
|
|
87
|
+
* `CI_AGENT_FLOOR`.
|
|
88
|
+
*/
|
|
89
|
+
export { CI_AGENT_FLOOR, agentForbiddenPaths, type AgentSettings, type OpAgentSpec } from "./ci-agent.js";
|
|
90
|
+
/**
|
|
91
|
+
* After-plan hooks in a wave job's process (#4614): `runChantInProcess(["run",
|
|
92
|
+
* "wave", ...], words, { wave: { afterPlan, capabilities } })`, or
|
|
93
|
+
* `runOpWave({ afterPlan })` from `@intentius/chant/op`. Feature-detect on
|
|
94
|
+
* `OP_WAVE_AFTER_PLAN_FLOOR`.
|
|
95
|
+
*/
|
|
96
|
+
export { OP_WAVE_AFTER_PLAN_FLOOR } from "./op/runtime.js";
|
|
97
|
+
export type { OpWaveAfterPlanHook, OpWaveAfterPlanResult, OpWaveAfterPlanRun, ProductWaveHook } from "./op/op-waves-after-plan.js";
|
|
98
|
+
/**
|
|
99
|
+
* The standing pending gates waiting on a plan digest, with the pull request
|
|
100
|
+
* a `pr-<n>` gate belongs to (#4607): what a product's approve verb reads so
|
|
101
|
+
* a person types only the digest. Feature-detect on `pendingGatesByPlan`;
|
|
102
|
+
* the ledger's git code loads on its first call. `parseRequiresList` checks
|
|
103
|
+
* a product's `apply.requires` before it becomes `pr-apply --requires`.
|
|
104
|
+
*/
|
|
105
|
+
export { pendingGatesByPlan, pullRequestOfOp, standingPendingByPlan, type PendingGateByPlan, type PendingGatesByPlanOptions } from "./lifecycle/gate-pending-by-plan.js";
|
|
106
|
+
export { parseRequiresList, PR_APPLY_REQUIRES, type PrApplyRequire } from "./pr-requires.js";
|
|
107
|
+
/**
|
|
108
|
+
* Telemetry and MCP (#4555). A product's bin configures the exporter once
|
|
109
|
+
* with its prefix (`configureOtlp({ prefix })`, or leaves it to its words),
|
|
110
|
+
* and passes its MCP tools as `runChantInProcess(["serve", "mcp"], words, {
|
|
111
|
+
* mcp: hook })`. Feature-detect on `configureOtlp` and
|
|
112
|
+
* `PRODUCT_MCP_HOOK_FLOOR`: present means both are.
|
|
113
|
+
*/
|
|
114
|
+
export declare const PRODUCT_MCP_HOOK_FLOOR = "0.124.55";
|
|
115
|
+
export type { ProductMcpContext, ProductMcpHook } from "./cli/mcp/product-tools.js";
|
|
116
|
+
export { activeOtlp, configureOtlp, OTLP_EXPORTER_FLOOR, RunEventTrace, type CapabilityTraceFacts, type CapabilityTraceSpan, type OtlpExporter, } from "./otlp.js";
|
|
117
|
+
//# sourceMappingURL=ci-product.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ci-product.d.ts","sourceRoot":"","sources":["../src/ci-product.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AAGH,OAAO,KAAK,EAAE,cAAc,EAAE,mBAAmB,EAAE,MAAM,oBAAoB,CAAC;AAC9E,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAGhE;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,aAAa,CAAC;AAE3C,OAAO,EACL,kBAAkB,EAClB,WAAW,EACX,kBAAkB,EAClB,sBAAsB,EACtB,0BAA0B,EAC1B,uBAAuB,EACvB,WAAW,EACX,sBAAsB,EACtB,mBAAmB,EACnB,iBAAiB,EACjB,mBAAmB,EACnB,WAAW,EACX,WAAW,EACX,YAAY,EACZ,eAAe,EACf,YAAY,EACZ,mBAAmB,EACnB,cAAc,EACd,oBAAoB,EACpB,eAAe,EACf,oBAAoB,EACpB,mBAAmB,EACnB,qBAAqB,EACrB,gBAAgB,EAChB,KAAK,gBAAgB,EACrB,KAAK,cAAc,EACnB,KAAK,kBAAkB,EACvB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,EAC9B,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,GAC1B,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,kBAAkB,EAAE,kBAAkB,EAAE,KAAK,gBAAgB,EAAE,MAAM,kBAAkB,CAAC;AAEzI,sFAAsF;AACtF,eAAO,MAAM,kBAAkB,aAAa,CAAC;AAE7C;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,aAAa,CAAC;AAC3C,OAAO,EACL,gBAAgB,EAChB,kBAAkB,EAClB,iBAAiB,EACjB,SAAS,EACT,eAAe,EACf,cAAc,EACd,gBAAgB,EAChB,eAAe,EACf,cAAc,EACd,kBAAkB,EAClB,kBAAkB,EAClB,KAAK,WAAW,EAChB,KAAK,UAAU,EACf,KAAK,SAAS,EACd,KAAK,YAAY,EACjB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,aAAa,GACnB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,wBAAwB,EACxB,kBAAkB,EAClB,kBAAkB,EAClB,gBAAgB,EAChB,cAAc,EACd,iBAAiB,EACjB,mBAAmB,EACnB,gBAAgB,EAChB,oBAAoB,EACpB,sBAAsB,EACtB,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,EAC9B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,sBAAsB,GAC5B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,cAAc,EAAE,iBAAiB,EAAE,mBAAmB,EAAE,WAAW,EAAE,gBAAgB,EAAE,cAAc,EAAE,KAAK,gBAAgB,EAAE,KAAK,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAClM,OAAO,EAAE,iBAAiB,EAAE,cAAc,EAAE,cAAc,EAAE,cAAc,EAAE,eAAe,EAAE,cAAc,EAAE,KAAK,SAAS,EAAE,MAAM,0BAA0B,CAAC;AAC9J,OAAO,EAAE,YAAY,EAAE,eAAe,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,eAAe,EAAE,KAAK,cAAc,EAAE,MAAM,WAAW,CAAC;AACvJ,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC;AAE3C;;;;;GAKG;AACH,eAAO,MAAM,qBAAqB,aAAe,CAAC;AAClD;;;;;;;GAOG;AACH,eAAO,MAAM,kCAAkC,aAAe,CAAC;AAC/D,OAAO,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,KAAK,cAAc,EAAE,KAAK,mBAAmB,EAAE,MAAM,sBAAsB,CAAC;AAEpK;;;;;GAKG;AACH,eAAO,MAAM,gBAAgB,aAAe,CAAC;AAE7C;;;;;;GAMG;AACH,eAAO,MAAM,yBAAyB,aAAe,CAAC;AACtD,OAAO,EACL,mBAAmB,EACnB,cAAc,EACd,YAAY,EACZ,gBAAgB,EAChB,iBAAiB,EACjB,YAAY,EACZ,WAAW,EACX,gBAAgB,EAChB,KAAK,cAAc,EACnB,KAAK,WAAW,EAChB,KAAK,kBAAkB,EACvB,KAAK,WAAW,EAChB,KAAK,WAAW,GACjB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,kBAAkB,EAAE,aAAa,EAAE,cAAc,EAAE,cAAc,EAAE,gBAAgB,EAAE,eAAe,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAE3J;;;;;GAKG;AACH,wBAAsB,iBAAiB,CAAC,IAAI,EAAE,MAAM,EAAE,EAAE,KAAK,EAAE,mBAAmB,GAAG,cAAc,EAAE,OAAO,GAAE;IAAE,GAAG,CAAC,EAAE,cAAc,CAAC;IAAC,IAAI,CAAC,EAAE,eAAe,CAAA;CAAO,GAAG,OAAO,CAAC,MAAM,CAAC,CAGpL;AAED;;;;;GAKG;AACH,OAAO,EAAE,cAAc,EAAE,mBAAmB,EAAE,KAAK,aAAa,EAAE,KAAK,WAAW,EAAE,MAAM,YAAY,CAAC;AAEvG;;;;;GAKG;AACH,OAAO,EAAE,wBAAwB,EAAE,MAAM,cAAc,CAAC;AACxD,YAAY,EAAE,mBAAmB,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAEhI;;;;;;GAMG;AACH,OAAO,EAAE,kBAAkB,EAAE,eAAe,EAAE,qBAAqB,EAAE,KAAK,iBAAiB,EAAE,KAAK,yBAAyB,EAAE,MAAM,kCAAkC,CAAC;AACtK,OAAO,EAAE,iBAAiB,EAAE,iBAAiB,EAAE,KAAK,cAAc,EAAE,MAAM,eAAe,CAAC;AAE1F;;;;;;GAMG;AACH,eAAO,MAAM,sBAAsB,aAAsB,CAAC;AAC1D,YAAY,EAAE,iBAAiB,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AACjF,OAAO,EACL,UAAU,EACV,aAAa,EACb,mBAAmB,EACnB,aAAa,EACb,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,EACxB,KAAK,YAAY,GAClB,MAAM,QAAQ,CAAC"}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `@intentius/chant/ci-product` (#4550): what a CI product built on chant's
|
|
3
|
+
* pull request pipeline imports. terragucci and plywood pass their words
|
|
4
|
+
* here and get the same jobs, the same note and the same statuses, in their
|
|
5
|
+
* own words.
|
|
6
|
+
*
|
|
7
|
+
* A product feature-detects this entry until the chant release that carries
|
|
8
|
+
* {@link CI_PRODUCT_FLOOR} is its floor: `productPipelineJobs`, `approveLine`
|
|
9
|
+
* and `assertProductWords` present means the rest is too.
|
|
10
|
+
*/
|
|
11
|
+
import { NEXT_RELEASE } from "./release-floors.js";
|
|
12
|
+
import { OTLP_EXPORTER_FLOOR } from "./otlp.js";
|
|
13
|
+
/**
|
|
14
|
+
* The first chant with the product pipeline (#4550): the words, the
|
|
15
|
+
* `pull-request` op-wave approval source, `runCommandInProcess(argv, {
|
|
16
|
+
* words })`, the lexicons' `ciSetup`, and the member detail sections of the
|
|
17
|
+
* note (#4573).
|
|
18
|
+
*/
|
|
19
|
+
export const CI_PRODUCT_FLOOR = "0.124.55";
|
|
20
|
+
export { activeProductWords, approveLine, assertProductWords, CHANT_APPROVE_TEMPLATE, CHANT_NOTIFY_WAVE_TEMPLATE, CHANT_OVERRIDE_TEMPLATE, CHANT_WORDS, CI_PRODUCT_APPLY_MODES, CI_PRODUCT_COMMANDS, CI_PRODUCT_STAGES, CiProductWordsError, commandWord, commentLine, isChantWords, notifyWaveLabel, overrideLine, parseProductComment, productContext, productStatusContext, productWaveGate, productWordsProblems, resolveProductWords, setActiveProductWords, withProductWords, } from "./ci-product-words.js";
|
|
21
|
+
export { driftNotifyFields, productNotifySource, productNotifyWords, productSendOptions } from "./notify-product.js";
|
|
22
|
+
/** The first chant with `chant notify relay` and the notify relay buttons (#4611). */
|
|
23
|
+
export const NOTIFY_RELAY_FLOOR = "0.124.55";
|
|
24
|
+
/**
|
|
25
|
+
* The first chant whose product pipeline has the comment preview
|
|
26
|
+
* (`previewComment`, `build --pr-loop --preview-comment`) and whose
|
|
27
|
+
* `components pr-plan` takes `--target` (#4620). A product feature-detects
|
|
28
|
+
* `prCommentPreviewJob` and this constant together.
|
|
29
|
+
*/
|
|
30
|
+
export const PR_PREVIEW_FLOOR = "0.124.55";
|
|
31
|
+
export { decideRelayClick, handleRelayRequest, relayPrincipalFor, RELAY_ENV, slackRelayClick, slackSignature, startRelayServer, teamsRelayClick, teamsSignature, verifySlackRequest, verifyTeamsRequest, } from "./notify-relay.js";
|
|
32
|
+
export { componentWaveOutputsFile, componentWaveSteps, componentWavesSpec, productAgentSpec, productCommand, productDriftAgent, productPipelineJobs, productWavesSpec, productWavesSpecFile, PRODUCT_WAVES_SPEC_DIR, } from "./components/product-pipeline.js";
|
|
33
|
+
export { prApplyComment, prCommentLockJobs, prCommentPreviewJob, prLoopSetup, engineSetupLines, withProductBin } from "./components/pr-pipeline.js";
|
|
34
|
+
export { CI_SERVICES_FLOOR, engineServices, githubServices, gitlabServices, serviceWaitLine, servicesJobEnv } from "./components/ci-services.js";
|
|
35
|
+
export { renderPrNote, prStatusContext, prApproveCommand, prApproveCommands, prApproveTargets, prMergeSentence } from "./pr-loop.js";
|
|
36
|
+
export { upsertPlanNote } from "./pr-post.js";
|
|
37
|
+
/**
|
|
38
|
+
* The approval status before merge (#4630): under a `pr-review` wave, the
|
|
39
|
+
* op waves generators add a job that posts `<product>/approval` on each
|
|
40
|
+
* open pull request's head. A product feature-detects on
|
|
41
|
+
* `APPROVAL_STATUS_FLOOR`.
|
|
42
|
+
*/
|
|
43
|
+
export const APPROVAL_STATUS_FLOOR = NEXT_RELEASE;
|
|
44
|
+
/**
|
|
45
|
+
* The approval status for `pull-request` waves too (#4630, 2026-10-28
|
|
46
|
+
* ruling): the generators add the record-plans and approval-status jobs for
|
|
47
|
+
* a spec whose waves take the pull request's own approval, and the status
|
|
48
|
+
* reads that approval's coverage of each wave's change set. A product such
|
|
49
|
+
* as plywood, whose waves all take `approval: pull-request`, feature-detects
|
|
50
|
+
* on this floor.
|
|
51
|
+
*/
|
|
52
|
+
export const APPROVAL_STATUS_PULL_REQUEST_FLOOR = NEXT_RELEASE;
|
|
53
|
+
export { opWavesPostsApprovalStatus } from "./op/op-waves.js";
|
|
54
|
+
export { approvalStatusOf, headWaveHolds, postApprovalStatus, postOpenApprovalStatuses } from "./op/approval-status.js";
|
|
55
|
+
/**
|
|
56
|
+
* Responses to pipeline events (#4629): a refused wave's diff, a failed
|
|
57
|
+
* apply's triage and the pull request description check, in the product's
|
|
58
|
+
* words. `productPipelineJobs(forge, env, { words, respond, decide })` turns
|
|
59
|
+
* them on and off; a product feature-detects on `CI_RESPOND_FLOOR`.
|
|
60
|
+
*/
|
|
61
|
+
export const CI_RESPOND_FLOOR = NEXT_RELEASE;
|
|
62
|
+
/**
|
|
63
|
+
* `chant build --pr-loop` carries `--merge auto --merge-token-env <VAR>
|
|
64
|
+
* [--merge-method <m>]` (#4636), `--respond <list>`, `--decide-backend` and
|
|
65
|
+
* `--decide-model` (#4629) into the generated pull request jobs. Before it
|
|
66
|
+
* the build parsed them and wrote jobs without them; a product that writes
|
|
67
|
+
* its pull request jobs with the build feature-detects on this floor.
|
|
68
|
+
*/
|
|
69
|
+
export const PR_LOOP_BUILD_FLAGS_FLOOR = NEXT_RELEASE;
|
|
70
|
+
export { CI_RESPOND_DEFAULTS, CI_RESPOND_ENV, CI_RESPONSES, parseRespondList, renderRefusedDiff, renderTriage, respondList, resolveResponses, } from "./ci-respond.js";
|
|
71
|
+
export { respondDescription, respondOpWave, respondPrApply, triageOfOpWave, triageOfPrReport, refusedOfOpWave, refusedOfPrReport } from "./ci-respond-run.js";
|
|
72
|
+
/**
|
|
73
|
+
* Run one chant command line in this process with the product's words
|
|
74
|
+
* (ruling C): what a product's bin calls for every command its verbs map
|
|
75
|
+
* onto, and for the `chant ...` lines the generated jobs run through it. The
|
|
76
|
+
* CLI loads on the first call, so importing this entry stays light.
|
|
77
|
+
*/
|
|
78
|
+
export async function runChantInProcess(argv, words, options = {}) {
|
|
79
|
+
const { runCommandInProcess } = await import("./cli/main.js");
|
|
80
|
+
return runCommandInProcess(argv, { words, ...(options.mcp ? { mcp: options.mcp } : {}), ...(options.wave ? { wave: options.wave } : {}) });
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* The agent job (#4616): `productPipelineJobs(forge, env, { words, agent })`
|
|
84
|
+
* returns the agent's Op spec, and `productDriftAgent` the `agent` of a
|
|
85
|
+
* scheduled drift Op; `chant run --generate` writes both. Feature-detect on
|
|
86
|
+
* `CI_AGENT_FLOOR`.
|
|
87
|
+
*/
|
|
88
|
+
export { CI_AGENT_FLOOR, agentForbiddenPaths } from "./ci-agent.js";
|
|
89
|
+
/**
|
|
90
|
+
* After-plan hooks in a wave job's process (#4614): `runChantInProcess(["run",
|
|
91
|
+
* "wave", ...], words, { wave: { afterPlan, capabilities } })`, or
|
|
92
|
+
* `runOpWave({ afterPlan })` from `@intentius/chant/op`. Feature-detect on
|
|
93
|
+
* `OP_WAVE_AFTER_PLAN_FLOOR`.
|
|
94
|
+
*/
|
|
95
|
+
export { OP_WAVE_AFTER_PLAN_FLOOR } from "./op/runtime.js";
|
|
96
|
+
/**
|
|
97
|
+
* The standing pending gates waiting on a plan digest, with the pull request
|
|
98
|
+
* a `pr-<n>` gate belongs to (#4607): what a product's approve verb reads so
|
|
99
|
+
* a person types only the digest. Feature-detect on `pendingGatesByPlan`;
|
|
100
|
+
* the ledger's git code loads on its first call. `parseRequiresList` checks
|
|
101
|
+
* a product's `apply.requires` before it becomes `pr-apply --requires`.
|
|
102
|
+
*/
|
|
103
|
+
export { pendingGatesByPlan, pullRequestOfOp, standingPendingByPlan } from "./lifecycle/gate-pending-by-plan.js";
|
|
104
|
+
export { parseRequiresList, PR_APPLY_REQUIRES } from "./pr-requires.js";
|
|
105
|
+
/**
|
|
106
|
+
* Telemetry and MCP (#4555). A product's bin configures the exporter once
|
|
107
|
+
* with its prefix (`configureOtlp({ prefix })`, or leaves it to its words),
|
|
108
|
+
* and passes its MCP tools as `runChantInProcess(["serve", "mcp"], words, {
|
|
109
|
+
* mcp: hook })`. Feature-detect on `configureOtlp` and
|
|
110
|
+
* `PRODUCT_MCP_HOOK_FLOOR`: present means both are.
|
|
111
|
+
*/
|
|
112
|
+
export const PRODUCT_MCP_HOOK_FLOOR = OTLP_EXPORTER_FLOOR;
|
|
113
|
+
export { activeOtlp, configureOtlp, OTLP_EXPORTER_FLOOR, RunEventTrace, } from "./otlp.js";
|