@intentius/chant 0.124.40 → 0.124.42
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__/oidc-emulator.d.ts +49 -0
- package/dist/__fixtures__/oidc-emulator.d.ts.map +1 -0
- package/dist/__fixtures__/oidc-emulator.js +89 -0
- package/dist/ci-handover.d.ts +117 -0
- package/dist/ci-handover.d.ts.map +1 -0
- package/dist/ci-handover.js +217 -0
- package/dist/ci-identity.d.ts +190 -0
- package/dist/ci-identity.d.ts.map +1 -0
- package/dist/ci-identity.js +219 -0
- package/dist/cli/handlers/approve.d.ts +2 -1
- package/dist/cli/handlers/approve.d.ts.map +1 -1
- package/dist/cli/handlers/approve.js +20 -6
- package/dist/cli/handlers/build.d.ts.map +1 -1
- package/dist/cli/handlers/build.js +18 -1
- package/dist/cli/handlers/fan-out.d.ts.map +1 -1
- package/dist/cli/handlers/fan-out.js +42 -5
- package/dist/cli/handlers/gate-resume.d.ts +3 -0
- package/dist/cli/handlers/gate-resume.d.ts.map +1 -1
- package/dist/cli/handlers/gate-resume.js +15 -2
- package/dist/cli/handlers/lock.d.ts +8 -0
- package/dist/cli/handlers/lock.d.ts.map +1 -0
- package/dist/cli/handlers/lock.js +197 -0
- package/dist/cli/handlers/pr-env.d.ts +34 -0
- package/dist/cli/handlers/pr-env.d.ts.map +1 -0
- package/dist/cli/handlers/pr-env.js +436 -0
- package/dist/cli/handlers/pr.d.ts +76 -0
- package/dist/cli/handlers/pr.d.ts.map +1 -1
- package/dist/cli/handlers/pr.js +615 -55
- package/dist/cli/handlers/promote.d.ts.map +1 -1
- package/dist/cli/handlers/promote.js +9 -0
- package/dist/cli/handlers/query.d.ts +6 -0
- package/dist/cli/handlers/query.d.ts.map +1 -0
- package/dist/cli/handlers/query.js +80 -0
- package/dist/cli/handlers/run.d.ts.map +1 -1
- package/dist/cli/handlers/run.js +11 -0
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +49 -4
- package/dist/cli/parse-args.d.ts.map +1 -1
- package/dist/cli/parse-args.js +46 -2
- package/dist/cli/registry.d.ts +31 -2
- package/dist/cli/registry.d.ts.map +1 -1
- package/dist/components/capability.d.ts +47 -0
- package/dist/components/capability.d.ts.map +1 -1
- package/dist/components/capability.js +44 -0
- package/dist/components/cli-support.d.ts +6 -0
- package/dist/components/cli-support.d.ts.map +1 -1
- package/dist/components/cli-support.js +8 -1
- package/dist/components/driver.d.ts +10 -0
- package/dist/components/driver.d.ts.map +1 -1
- package/dist/components/driver.js +52 -2
- package/dist/components/fan-out-run.d.ts +37 -0
- package/dist/components/fan-out-run.d.ts.map +1 -1
- package/dist/components/fan-out-run.js +44 -4
- package/dist/components/gate-plan.d.ts +2 -0
- package/dist/components/gate-plan.d.ts.map +1 -1
- package/dist/components/gate-plan.js +1 -0
- package/dist/components/pr-environment.d.ts +298 -0
- package/dist/components/pr-environment.d.ts.map +1 -0
- package/dist/components/pr-environment.js +406 -0
- package/dist/components/pr-hooks.d.ts +66 -0
- package/dist/components/pr-hooks.d.ts.map +1 -0
- package/dist/components/pr-hooks.js +119 -0
- package/dist/components/pr-pipeline.d.ts +92 -2
- package/dist/components/pr-pipeline.d.ts.map +1 -1
- package/dist/components/pr-pipeline.js +150 -21
- package/dist/components/pr-policy.d.ts +109 -0
- package/dist/components/pr-policy.d.ts.map +1 -0
- package/dist/components/pr-policy.js +150 -0
- package/dist/components/pr-run.d.ts +6 -0
- package/dist/components/pr-run.d.ts.map +1 -1
- package/dist/components/pr-run.js +8 -3
- package/dist/components/wave-plan.d.ts +14 -1
- package/dist/components/wave-plan.d.ts.map +1 -1
- package/dist/components/wave-plan.js +34 -2
- package/dist/gate-decision.d.ts +15 -2
- package/dist/gate-decision.d.ts.map +1 -1
- package/dist/gate-decision.js +17 -2
- package/dist/gate-policy.d.ts +140 -0
- package/dist/gate-policy.d.ts.map +1 -0
- package/dist/gate-policy.js +242 -0
- package/dist/lifecycle/gate-checkpoint.d.ts +1 -1
- package/dist/lifecycle/gate-checkpoint.js +1 -1
- package/dist/{workspace/trust → lifecycle}/gate-seal.d.ts +1 -1
- package/dist/lifecycle/gate-seal.d.ts.map +1 -0
- package/dist/lifecycle/query.d.ts +68 -0
- package/dist/lifecycle/query.d.ts.map +1 -0
- package/dist/lifecycle/query.js +246 -0
- package/dist/lifecycle/run-ledger.d.ts +13 -0
- package/dist/lifecycle/run-ledger.d.ts.map +1 -1
- package/dist/lifecycle/run-ledger.js +16 -0
- package/dist/lifecycle/target-lock.d.ts +97 -0
- package/dist/lifecycle/target-lock.d.ts.map +1 -0
- package/dist/lifecycle/target-lock.js +286 -0
- package/dist/op/activities/activity-contracts.d.ts +30 -0
- package/dist/op/activities/activity-contracts.d.ts.map +1 -1
- package/dist/op/activities/activity-contracts.js +26 -0
- package/dist/op/activities/index.d.ts +2 -0
- package/dist/op/activities/index.d.ts.map +1 -1
- package/dist/op/activities/index.js +4 -0
- package/dist/op/activities/pr-refs.d.ts +10 -0
- package/dist/op/activities/pr-refs.d.ts.map +1 -0
- package/dist/op/activities/pr-refs.js +26 -0
- package/dist/op/activities/predict-behaviour.d.ts +2 -4
- package/dist/op/activities/predict-behaviour.d.ts.map +1 -1
- package/dist/op/activities/predict-behaviour.js +2 -21
- package/dist/op/activities/review-agent.d.ts +137 -0
- package/dist/op/activities/review-agent.d.ts.map +1 -0
- package/dist/op/activities/review-agent.js +266 -0
- package/dist/op/builders.d.ts +9 -0
- package/dist/op/builders.d.ts.map +1 -1
- package/dist/op/builders.js +11 -0
- package/dist/op/cron.d.ts +8 -0
- package/dist/op/cron.d.ts.map +1 -1
- package/dist/op/cron.js +51 -0
- package/dist/op/gate-approval.d.ts +20 -13
- package/dist/op/gate-approval.d.ts.map +1 -1
- package/dist/op/gate-approval.js +13 -18
- package/dist/op/gate-quorum.d.ts +131 -0
- package/dist/op/gate-quorum.d.ts.map +1 -0
- package/dist/op/gate-quorum.js +183 -0
- package/dist/op/gate-resume.d.ts +4 -2
- package/dist/op/gate-resume.d.ts.map +1 -1
- package/dist/op/gate-resume.js +5 -4
- package/dist/op/gate-review.js +1 -1
- package/dist/op/gate.d.ts +32 -4
- package/dist/op/gate.d.ts.map +1 -1
- package/dist/op/gate.js +40 -24
- package/dist/op/index.d.ts +6 -4
- package/dist/op/index.d.ts.map +1 -1
- package/dist/op/index.js +4 -3
- package/dist/op/local-executor.d.ts.map +1 -1
- package/dist/op/local-executor.js +9 -3
- package/dist/op/op-waves-run.d.ts +28 -43
- package/dist/op/op-waves-run.d.ts.map +1 -1
- package/dist/op/op-waves-run.js +170 -120
- package/dist/op/op-waves.d.ts +55 -3
- package/dist/op/op-waves.d.ts.map +1 -1
- package/dist/op/op-waves.js +63 -8
- package/dist/op/schedule-overdue.d.ts +57 -0
- package/dist/op/schedule-overdue.d.ts.map +1 -0
- package/dist/op/schedule-overdue.js +138 -0
- package/dist/op/stage-hooks.d.ts +132 -0
- package/dist/op/stage-hooks.d.ts.map +1 -0
- package/dist/op/stage-hooks.js +142 -0
- package/dist/override-gate.d.ts +2 -2
- package/dist/override-gate.d.ts.map +1 -1
- package/dist/override-gate.js +1 -1
- package/dist/pr-forge.d.ts +64 -0
- package/dist/pr-forge.d.ts.map +1 -1
- package/dist/pr-forge.js +331 -44
- package/dist/pr-loop.d.ts +107 -1
- package/dist/pr-loop.d.ts.map +1 -1
- package/dist/pr-loop.js +84 -3
- package/dist/pr-post.d.ts +72 -0
- package/dist/pr-post.d.ts.map +1 -0
- package/dist/pr-post.js +134 -0
- package/dist/pr-requires.d.ts +38 -0
- package/dist/pr-requires.d.ts.map +1 -0
- package/dist/pr-requires.js +48 -0
- package/dist/wave-blocked.d.ts +79 -0
- package/dist/wave-blocked.d.ts.map +1 -0
- package/dist/wave-blocked.js +245 -0
- package/dist/wave-engine.d.ts +6 -0
- package/dist/wave-engine.d.ts.map +1 -1
- package/dist/wave-engine.js +2 -0
- package/dist/wave-runtime.mjs +243 -243
- package/dist/workspace/__fixtures__/two-member-workspace.d.ts +1 -0
- package/dist/workspace/__fixtures__/two-member-workspace.d.ts.map +1 -1
- package/dist/workspace/__fixtures__/two-member-workspace.js +1 -1
- package/dist/workspace/checks/ci-workflow.d.ts.map +1 -1
- package/dist/workspace/checks/ci-workflow.js +19 -4
- package/dist/workspace/ci-branches.d.ts +51 -0
- package/dist/workspace/ci-branches.d.ts.map +1 -0
- package/dist/workspace/ci-branches.js +69 -0
- package/dist/workspace/ci-cloud-identity.d.ts +11 -0
- package/dist/workspace/ci-cloud-identity.d.ts.map +1 -0
- package/dist/workspace/ci-cloud-identity.js +24 -0
- package/dist/workspace/ci-init.d.ts.map +1 -1
- package/dist/workspace/ci-init.js +5 -4
- package/dist/workspace/ci-locks.d.ts +12 -0
- package/dist/workspace/ci-locks.d.ts.map +1 -0
- package/dist/workspace/ci-locks.js +6 -0
- package/dist/workspace/ci-run.d.ts +17 -1
- package/dist/workspace/ci-run.d.ts.map +1 -1
- package/dist/workspace/ci-run.js +66 -4
- package/dist/workspace/ci-workflow-at.d.ts +14 -0
- package/dist/workspace/ci-workflow-at.d.ts.map +1 -0
- package/dist/workspace/ci-workflow-at.js +17 -0
- package/dist/workspace/ci-workflow.d.ts +11 -3
- package/dist/workspace/ci-workflow.d.ts.map +1 -1
- package/dist/workspace/ci-workflow.js +10 -2
- package/dist/workspace/declaration.d.ts +69 -3
- package/dist/workspace/declaration.d.ts.map +1 -1
- package/dist/workspace/declaration.js +72 -1
- package/dist/workspace/declaration.schema.json +149 -2
- package/dist/workspace/identity-gate-rule.d.ts +1 -1
- package/dist/workspace/identity-gate-rule.d.ts.map +1 -1
- package/dist/workspace/identity-gate-rule.js +1 -1
- package/dist/workspace/identity.d.ts +1 -1
- package/dist/workspace/identity.d.ts.map +1 -1
- package/dist/workspace/lineage-upgrade.d.ts.map +1 -1
- package/dist/workspace/lineage-upgrade.js +8 -5
- package/dist/workspace/member-pipeline.d.ts +6 -0
- package/dist/workspace/member-pipeline.d.ts.map +1 -1
- package/dist/workspace/member-pipeline.js +23 -0
- package/dist/workspace/pr-report.schema.json +94 -3
- package/dist/workspace/reason-codes.d.ts +1 -1
- package/dist/workspace/reason-codes.d.ts.map +1 -1
- package/dist/workspace/reason-codes.js +1 -1
- package/dist/workspace/security.d.ts.map +1 -1
- package/dist/workspace/security.js +4 -0
- package/dist/workspace/status-gates.d.ts +3 -2
- package/dist/workspace/status-gates.d.ts.map +1 -1
- package/dist/workspace/status-gates.js +8 -7
- package/dist/workspace/status.d.ts.map +1 -1
- package/dist/workspace/status.js +4 -1
- package/dist/workspace/trust/seal.d.ts +2 -2
- package/dist/workspace/trust/seal.d.ts.map +1 -1
- package/dist/workspace/trust/seal.js +2 -2
- package/package.json +1 -1
- package/src/__fixtures__/oidc-emulator.ts +118 -0
- package/src/ci-handover.test.ts +209 -0
- package/src/ci-handover.ts +237 -0
- package/src/ci-identity.test.ts +201 -0
- package/src/ci-identity.ts +310 -0
- package/src/cli/handlers/approve.ts +18 -5
- package/src/cli/handlers/build.ts +18 -1
- package/src/cli/handlers/fan-out.ts +43 -6
- package/src/cli/handlers/gate-resume.ts +16 -2
- package/src/cli/handlers/lock.test.ts +98 -0
- package/src/cli/handlers/lock.ts +202 -0
- package/src/cli/handlers/operator.test.ts +3 -1
- package/src/cli/handlers/pr-before-merge.test.ts +276 -0
- package/src/cli/handlers/pr-env.ts +462 -0
- package/src/cli/handlers/pr-waves-blocked.test.ts +247 -0
- package/src/cli/handlers/pr.test.ts +184 -0
- package/src/cli/handlers/pr.ts +605 -61
- package/src/cli/handlers/promote.ts +9 -0
- package/src/cli/handlers/query.ts +78 -0
- package/src/cli/handlers/run.ts +10 -0
- package/src/cli/main.ts +49 -4
- package/src/cli/parse-args.ts +34 -2
- package/src/cli/registry.ts +31 -2
- package/src/components/capability-targets.test.ts +162 -0
- package/src/components/capability.ts +71 -0
- package/src/components/cli-support.ts +14 -1
- package/src/components/driver.ts +54 -3
- package/src/components/fan-out-run.ts +58 -3
- package/src/components/fan-out-waves.test.ts +45 -1
- package/src/components/gate-plan.ts +3 -0
- package/src/components/pr-environment.test.ts +249 -0
- package/src/components/pr-environment.ts +538 -0
- package/src/components/pr-hooks.test.ts +118 -0
- package/src/components/pr-hooks.ts +157 -0
- package/src/components/pr-pipeline.ts +194 -21
- package/src/components/pr-policy.test.ts +145 -0
- package/src/components/pr-policy.ts +211 -0
- package/src/components/pr-run.ts +14 -2
- package/src/components/wave-plan.ts +38 -3
- package/src/gate-decision-bundle.test.ts +4 -3
- package/src/gate-decision.ts +39 -2
- package/src/gate-policy-bundle.test.ts +28 -0
- package/src/gate-policy.test.ts +162 -0
- package/src/gate-policy.ts +298 -0
- package/src/lifecycle/gate-checkpoint.ts +1 -1
- package/src/{workspace/trust → lifecycle}/gate-seal.ts +1 -1
- package/src/lifecycle/query.test.ts +91 -0
- package/src/lifecycle/query.ts +315 -0
- package/src/lifecycle/run-ledger.ts +18 -0
- package/src/lifecycle/target-lock.test.ts +195 -0
- package/src/lifecycle/target-lock.ts +347 -0
- package/src/op/activities/activity-contracts.ts +31 -0
- package/src/op/activities/index.ts +6 -0
- package/src/op/activities/pr-refs.ts +28 -0
- package/src/op/activities/predict-behaviour.ts +3 -23
- package/src/op/activities/review-agent.test.ts +240 -0
- package/src/op/activities/review-agent.ts +355 -0
- package/src/op/builders.ts +13 -0
- package/src/op/cron.ts +44 -0
- package/src/op/gate-alias.test.ts +2 -2
- package/src/op/gate-approval.test.ts +30 -9
- package/src/op/gate-approval.ts +23 -26
- package/src/op/gate-quorum.test.ts +139 -0
- package/src/op/gate-quorum.ts +248 -0
- package/src/op/gate-resume.ts +6 -3
- package/src/op/gate-review.ts +1 -1
- package/src/op/gate.ts +64 -23
- package/src/op/index.ts +13 -1
- package/src/op/local-executor.ts +9 -2
- package/src/op/op-waves-hook-targets.test.ts +126 -0
- package/src/op/op-waves-policy-hold.test.ts +66 -0
- package/src/op/op-waves-quorum.test.ts +101 -0
- package/src/op/op-waves-run.ts +197 -183
- package/src/op/op-waves.ts +83 -10
- package/src/op/schedule-overdue.test.ts +220 -0
- package/src/op/schedule-overdue.ts +161 -0
- package/src/op/stage-hooks.ts +251 -0
- package/src/override-gate-bundle.test.ts +1 -1
- package/src/override-gate.ts +2 -2
- package/src/pr-forge-bundle.test.ts +2 -2
- package/src/pr-forge.test.ts +33 -0
- package/src/pr-forge.ts +347 -35
- package/src/pr-loop-bundle.test.ts +2 -2
- package/src/pr-loop.test.ts +58 -0
- package/src/pr-loop.ts +170 -4
- package/src/pr-post.test.ts +141 -0
- package/src/pr-post.ts +159 -0
- package/src/pr-requires.test.ts +184 -0
- package/src/pr-requires.ts +79 -0
- package/src/review-agent-bundle.test.ts +35 -0
- package/src/stage-hooks-bundle.test.ts +38 -0
- package/src/wave-blocked-bundle.test.ts +25 -0
- package/src/wave-blocked.test.ts +146 -0
- package/src/wave-blocked.ts +271 -0
- package/src/wave-engine.ts +8 -0
- package/src/workspace/__fixtures__/two-member-workspace.ts +2 -2
- package/src/workspace/checks/ci-workflow.test.ts +9 -0
- package/src/workspace/checks/ci-workflow.ts +18 -4
- package/src/workspace/ci-branches.test.ts +62 -0
- package/src/workspace/ci-branches.ts +79 -0
- package/src/workspace/ci-cloud-identity.test.ts +53 -0
- package/src/workspace/ci-cloud-identity.ts +23 -0
- package/src/workspace/ci-init.ts +5 -4
- package/src/workspace/ci-locks.ts +16 -0
- package/src/workspace/ci-run-index.test.ts +2 -1
- package/src/workspace/ci-run.test.ts +107 -8
- package/src/workspace/ci-run.ts +74 -5
- package/src/workspace/ci-workflow-at.ts +23 -0
- package/src/workspace/ci-workflow.ts +13 -2
- package/src/workspace/declaration.schema.json +149 -2
- package/src/workspace/declaration.test.ts +76 -0
- package/src/workspace/declaration.ts +140 -5
- package/src/workspace/identity-gate-rule.ts +1 -1
- package/src/workspace/identity.ts +1 -1
- package/src/workspace/lineage-upgrade.ts +11 -8
- package/src/workspace/member-pipeline.test.ts +29 -0
- package/src/workspace/member-pipeline.ts +30 -0
- package/src/workspace/pr-report.schema.json +94 -3
- package/src/workspace/reason-codes.ts +1 -1
- package/src/workspace/security.ts +4 -0
- package/src/workspace/status-gates.ts +9 -6
- package/src/workspace/status.ts +4 -1
- package/src/workspace/trust/gate-seal.test.ts +1 -1
- package/src/workspace/trust/seal.ts +2 -2
- package/dist/workspace/trust/gate-seal.d.ts.map +0 -1
- /package/dist/{workspace/trust → lifecycle}/gate-seal.js +0 -0
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promote.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/promote.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;
|
|
1
|
+
{"version":3,"file":"promote.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/promote.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;GAqBG;AAiDH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAuzBlD,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAmF/E;AAED,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAsChF;AAsCD,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA6BhF"}
|
|
@@ -25,6 +25,7 @@ import { dirname, join, resolve } from "node:path";
|
|
|
25
25
|
import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
26
26
|
import { loadChantConfig } from "../../config.js";
|
|
27
27
|
import { promotionOrder } from "../../workspace/promotion-order.js";
|
|
28
|
+
import { releaseTargetRefusal } from "../../components/pr-environment.js";
|
|
28
29
|
import { resolvePromotionSource } from "../../components/promote-order.js";
|
|
29
30
|
import { fetchLifecycle, getHeadCommit, pushLifecycle } from "../../lifecycle/git.js";
|
|
30
31
|
import { appendReleaseRecord, latestPerComponent, readReleaseLedger, resolveRunId, } from "../../lifecycle/release-ledger.js";
|
|
@@ -809,6 +810,14 @@ export async function runComponentsPromote(ctx) {
|
|
|
809
810
|
console.error(formatError({ message: "--to <env> is required", hint: PROMOTE_USAGE }));
|
|
810
811
|
return 1;
|
|
811
812
|
}
|
|
813
|
+
// #4298: a pull request's environment is neither a release's target nor its source.
|
|
814
|
+
for (const env of [to, args.migrateFrom]) {
|
|
815
|
+
const refusal = env ? releaseTargetRefusal(env) : undefined;
|
|
816
|
+
if (refusal) {
|
|
817
|
+
console.error(formatError({ message: refusal }));
|
|
818
|
+
return 1;
|
|
819
|
+
}
|
|
820
|
+
}
|
|
812
821
|
const who = actorOrRefuse(ctx);
|
|
813
822
|
if (typeof who === "number")
|
|
814
823
|
return who;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import type { CommandContext } from "../registry.js";
|
|
2
|
+
import type { QueryLedger } from "../../lifecycle/query.js";
|
|
3
|
+
/** The ledgers `chant query` reads from `cwd`: every member's in a workspace, else the project's own. */
|
|
4
|
+
export declare function queryLedgers(cwd: string, members?: readonly string[]): Promise<QueryLedger[]>;
|
|
5
|
+
export declare function runQueryCommand(ctx: CommandContext): Promise<number>;
|
|
6
|
+
//# sourceMappingURL=query.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"query.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/query.ts"],"names":[],"mappings":"AAcA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAClD,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAKzD,yGAAyG;AACzG,wBAAsB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,SAAS,MAAM,EAAE,GAAG,OAAO,CAAC,WAAW,EAAE,CAAC,CAuBnG;AAED,wBAAsB,eAAe,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA+B1E"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* `chant query "<sql>" [dir] [--member <name>] [--json]` (#4297): one
|
|
3
|
+
* read-only SQL statement over the snapshots, Op runs, gates, deploys and
|
|
4
|
+
* releases on the local `chant/lifecycle` branch. The tables and the engine
|
|
5
|
+
* live in `../../lifecycle/query.ts`; this reads the ledgers and prints.
|
|
6
|
+
*
|
|
7
|
+
* Inside a workspace every member's ledger is read, each row naming its
|
|
8
|
+
* member; `--member` keeps the members it names. Outside one the project's
|
|
9
|
+
* own ledger is read and `member` is NULL. It reads the local branch and
|
|
10
|
+
* never fetches.
|
|
11
|
+
*/
|
|
12
|
+
import { existsSync } from "node:fs";
|
|
13
|
+
import { resolve } from "node:path";
|
|
14
|
+
import { formatError, formatWarning } from "../format.js";
|
|
15
|
+
import { findWorkspaceRoot } from "../../project-root.js";
|
|
16
|
+
const USAGE = 'chant query "<sql>" [dir] [--member <name>] [--json]';
|
|
17
|
+
/** The ledgers `chant query` reads from `cwd`: every member's in a workspace, else the project's own. */
|
|
18
|
+
export async function queryLedgers(cwd, members) {
|
|
19
|
+
const { gitLedgerReadPort } = await import("../../lifecycle/git.js");
|
|
20
|
+
const found = findWorkspaceRoot(cwd);
|
|
21
|
+
if (!found)
|
|
22
|
+
return [{ member: null, port: gitLedgerReadPort({ cwd }) }];
|
|
23
|
+
// Workspace code loads only when there is a workspace, so a level-0 project never pays for it.
|
|
24
|
+
const { readDeclaration, WorkspaceReadError } = await import("../../workspace/declaration.js");
|
|
25
|
+
const { workingTree } = await import("../../workspace/tree.js");
|
|
26
|
+
const { QueryError } = await import("../../lifecycle/query.js");
|
|
27
|
+
let declaration;
|
|
28
|
+
try {
|
|
29
|
+
declaration = readDeclaration(workingTree(found.dir), "");
|
|
30
|
+
}
|
|
31
|
+
catch (err) {
|
|
32
|
+
if (err instanceof WorkspaceReadError)
|
|
33
|
+
throw new QueryError(`${err.code}: ${err.message}`);
|
|
34
|
+
throw err;
|
|
35
|
+
}
|
|
36
|
+
const wanted = members && members.length > 0 ? new Set(members) : null;
|
|
37
|
+
if (wanted) {
|
|
38
|
+
const unknown = [...wanted].filter((n) => !declaration.members.some((m) => m.name === n));
|
|
39
|
+
if (unknown.length > 0)
|
|
40
|
+
throw new QueryError(`--member ${unknown.join(", ")} names no member of the workspace`);
|
|
41
|
+
}
|
|
42
|
+
return declaration.members
|
|
43
|
+
.filter((m) => !wanted || wanted.has(m.name))
|
|
44
|
+
.map((m) => ({ member: m.name, port: gitLedgerReadPort({ cwd: found.dir, member: m.dir === "." ? "." : m.name }) }));
|
|
45
|
+
}
|
|
46
|
+
export async function runQueryCommand(ctx) {
|
|
47
|
+
const { args } = ctx;
|
|
48
|
+
const sql = args.positionals?.[0];
|
|
49
|
+
if (sql === undefined || sql.trim() === "") {
|
|
50
|
+
console.error(formatError({ message: "chant query needs a statement", hint: `${USAGE}, such as chant query "SELECT env, count(*) FROM resources GROUP BY env"` }));
|
|
51
|
+
return 1;
|
|
52
|
+
}
|
|
53
|
+
const cwd = resolve(args.positionals?.[1] ?? ".");
|
|
54
|
+
if (!existsSync(cwd)) {
|
|
55
|
+
console.error(formatError({ message: `${cwd} does not exist`, hint: USAGE }));
|
|
56
|
+
return 1;
|
|
57
|
+
}
|
|
58
|
+
const { loadQueryData, runQuery, formatQueryResult, QueryError } = await import("../../lifecycle/query.js");
|
|
59
|
+
try {
|
|
60
|
+
const load = await loadQueryData(await queryLedgers(cwd, args.members));
|
|
61
|
+
const result = await runQuery(sql, load);
|
|
62
|
+
if (args.json) {
|
|
63
|
+
console.log(JSON.stringify(result, null, 2));
|
|
64
|
+
}
|
|
65
|
+
else {
|
|
66
|
+
console.log(formatQueryResult(result));
|
|
67
|
+
const bad = Object.entries(result.malformed).filter(([, n]) => n > 0);
|
|
68
|
+
if (bad.length > 0)
|
|
69
|
+
console.error(formatWarning({ message: `left out what could not be read: ${bad.map(([t, n]) => `${n} in ${t}`).join(", ")}` }));
|
|
70
|
+
}
|
|
71
|
+
return 0;
|
|
72
|
+
}
|
|
73
|
+
catch (err) {
|
|
74
|
+
if (err instanceof QueryError) {
|
|
75
|
+
console.error(formatError({ message: err.message, hint: USAGE }));
|
|
76
|
+
return 1;
|
|
77
|
+
}
|
|
78
|
+
throw err;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/run.ts"],"names":[],"mappings":"AAMA,OAAO,EAAmB,KAAK,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAEhE,OAAO,EAAkD,KAAK,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAI1G,OAAO,KAAK,EAAqB,WAAW,EAAe,MAAM,kBAAkB,CAAC;AAMpF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAYlD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAA6D,KAAK,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAE9H,OAAO,EAAqB,KAAK,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;
|
|
1
|
+
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/run.ts"],"names":[],"mappings":"AAMA,OAAO,EAAmB,KAAK,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAEhE,OAAO,EAAkD,KAAK,UAAU,EAAE,MAAM,yBAAyB,CAAC;AAI1G,OAAO,KAAK,EAAqB,WAAW,EAAe,MAAM,kBAAkB,CAAC;AAMpF,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAYlD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAA6D,KAAK,aAAa,EAAE,MAAM,+BAA+B,CAAC;AAE9H,OAAO,EAAqB,KAAK,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAGxF,OAAO,EAA+B,KAAK,aAAa,EAAE,KAAK,SA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kCpJ"}
|
package/dist/cli/handlers/run.js
CHANGED
|
@@ -30,6 +30,7 @@ import { appliedDigestOf, extractRunDigest, maybeRecordAutoRelease } from "../..
|
|
|
30
30
|
import { maybePersistBuildManifest } from "../../components/manifest-persistence.js";
|
|
31
31
|
import { failedRunExitCode } from "../../components/driver.js";
|
|
32
32
|
import { isComponentList } from "../../components/cli-support.js";
|
|
33
|
+
import { parseComponentTargets } from "../../components/capability.js";
|
|
33
34
|
import { isApplyRecord, resolveCiRun } from "../../lifecycle/release-ledger.js";
|
|
34
35
|
import { gateAdmission, gateApprover } from "../../components/promote.js";
|
|
35
36
|
import { runOpGenerate } from "./run-generate.js";
|
|
@@ -1089,10 +1090,20 @@ async function runComponentSelection(ctx) {
|
|
|
1089
1090
|
console.error(formatInfo(`added as dependencies: ${plan.added.join(", ")}`));
|
|
1090
1091
|
}
|
|
1091
1092
|
: undefined;
|
|
1093
|
+
// #4300: `--target <component>:<address>`, the addresses a component's steps narrow to.
|
|
1094
|
+
let targets;
|
|
1095
|
+
try {
|
|
1096
|
+
targets = ctx.args.targets && ctx.args.targets.length > 0 ? parseComponentTargets(ctx.args.targets) : undefined;
|
|
1097
|
+
}
|
|
1098
|
+
catch (err) {
|
|
1099
|
+
console.error(formatError({ message: err instanceof Error ? err.message : String(err) }));
|
|
1100
|
+
return 1;
|
|
1101
|
+
}
|
|
1092
1102
|
let result;
|
|
1093
1103
|
try {
|
|
1094
1104
|
result = await runtime.runComponents(projectPath, selector, {
|
|
1095
1105
|
env: ctx.args.env,
|
|
1106
|
+
...(targets ? { targets } : {}),
|
|
1096
1107
|
componentOutputs: seededOutputs,
|
|
1097
1108
|
onProgress,
|
|
1098
1109
|
...(events ? { onRunEvent: events.emit } : {}),
|
package/dist/cli/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/cli/main.ts"],"names":[],"mappings":";AAKA,OAAO,EAAkB,KAAK,UAAU,EAAmB,MAAM,YAAY,CAAC;AAa9E,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAgB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE3D,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/cli/main.ts"],"names":[],"mappings":";AAKA,OAAO,EAAkB,KAAK,UAAU,EAAmB,MAAM,YAAY,CAAC;AAa9E,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAgB,kBAAkB,EAAE,MAAM,SAAS,CAAC;AAE3D,OAAO,EAAE,SAAS,EAAE,kBAAkB,EAAE,CAAC;AA23CzC;;;;;;;;;;GAUG;AACH,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAuBzE;AAID;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,EAAE,UAAU,EAwNvC,CAAC"}
|
package/dist/cli/main.js
CHANGED
|
@@ -160,6 +160,11 @@ Commands:
|
|
|
160
160
|
terms; --live or --at <ref> with --env <name> reads the
|
|
161
161
|
estate or a recorded snapshot; --show <attr>,
|
|
162
162
|
--check-live, --check-snapshot, --fail-on-drift)
|
|
163
|
+
query "<sql>" [dir] Run one read-only SQL statement over chant/lifecycle:
|
|
164
|
+
the resources and snapshots each lexicon observed, Op
|
|
165
|
+
runs, gates, deploys, releases and cuts, loaded into
|
|
166
|
+
node:sqlite (schema v1, listed in chant_schema).
|
|
167
|
+
--member <name> keeps members; --json prints rows
|
|
163
168
|
generate Generate typed code from sources chant.config declares
|
|
164
169
|
(k8s.crds, helm.charts) into src/generated/<lexicon>/
|
|
165
170
|
(codegen.outDir); --check exits 1 when the committed
|
|
@@ -329,7 +334,7 @@ CI:
|
|
|
329
334
|
key. --trust commits its runner entry on a branch of its
|
|
330
335
|
own and pushes it for review; the target branch is never
|
|
331
336
|
written
|
|
332
|
-
ci init --workflow trunk-curated|trunk-curated+apply-on-merge
|
|
337
|
+
ci init --workflow trunk-curated|trunk-curated+apply-on-merge|apply-before-merge
|
|
333
338
|
[--forge github|gitlab|forgejo] [--security <group>]... [--yes]
|
|
334
339
|
Set the workspace up for a prescribed delivery workflow:
|
|
335
340
|
print what it would write as a diff, then write it on
|
|
@@ -545,6 +550,15 @@ Ops:
|
|
|
545
550
|
applies it once, if .chant/overriders at base lists
|
|
546
551
|
--actor
|
|
547
552
|
|
|
553
|
+
lock <target>... Lock targets for a pull request on chant/lifecycle
|
|
554
|
+
(--pr <n>, --stage plan|apply|lock, --head <sha>,
|
|
555
|
+
--by <who>, --gate <name>, --json). --from-report
|
|
556
|
+
<pr-plan.json> locks the components a plan selected.
|
|
557
|
+
--forge <kind> reads which holders are still open and
|
|
558
|
+
posts chant/lock on --head. Exits 3 when another open
|
|
559
|
+
pull request holds a target. --list prints the locks
|
|
560
|
+
unlock [<target>...] Release the locks a pull request holds (--pr <n>,
|
|
561
|
+
--gate <name>, --json)
|
|
548
562
|
graph Show Op dependency graph (--stacks for cross-stack order,
|
|
549
563
|
--format ir|mermaid|dot|layout for the lint-gated graph IR,
|
|
550
564
|
a Mermaid flowchart, Graphviz DOT, or node positions;
|
|
@@ -984,17 +998,33 @@ Component release ledger + status:
|
|
|
984
998
|
when the wave is reached, with --canary <name>
|
|
985
999
|
for wave 1 and --wave <n> for one wave per CI
|
|
986
1000
|
job; --resume <file> finishes an attempt that
|
|
987
|
-
stopped
|
|
1001
|
+
stopped; --target <component>:<address> plans
|
|
1002
|
+
and applies only that address)
|
|
988
1003
|
components pr-plan Plan the components a pull request reaches and
|
|
989
1004
|
the ones that depend on them, and write the
|
|
990
1005
|
report and note (--base <ref> --pr <n>
|
|
991
1006
|
[--forge github|gitlab|forgejo] posts them);
|
|
992
1007
|
applies nothing
|
|
1008
|
+
components pr-post Post the plan note and the chant/plan status
|
|
1009
|
+
from the report pr-plan --no-status wrote
|
|
1010
|
+
(--pr <n> --head <sha> --env <env> --forge
|
|
1011
|
+
<kind>), in a job that runs none of the
|
|
1012
|
+
change's code (#4295)
|
|
993
1013
|
components pr-record On merge (#4168): plan the same members again,
|
|
994
1014
|
store the change set and write the merge record
|
|
995
1015
|
_merges/<commit>.json; applies and refuses
|
|
996
1016
|
nothing, and a plan that differs from the
|
|
997
1017
|
approved one sets a failing chant/record status
|
|
1018
|
+
components pr-env An environment per open pull request (#4298): up
|
|
1019
|
+
--base <ref> --pr <n> applies the change to pr-<n>,
|
|
1020
|
+
derived from ci.prEnvironment.template, once an
|
|
1021
|
+
approval of its plan stands (chant approve pr-<n>
|
|
1022
|
+
pr-env --plan <digest>); post --pr <n> --head
|
|
1023
|
+
<sha> keeps the record up --no-push handed on and
|
|
1024
|
+
posts the note; down --pr <n> tears down
|
|
1025
|
+
only what carries pr-<n>'s ownership marker; sweep
|
|
1026
|
+
tears down each one whose TTL passed or whose pull
|
|
1027
|
+
request closed. Never a release target
|
|
998
1028
|
components pr-apply With --apply-on-merge: plan the same members again and apply
|
|
999
1029
|
them only if an approval stands for that digest
|
|
1000
1030
|
(chant approve pr-<n> pr-apply --plan <digest>);
|
|
@@ -1013,6 +1043,11 @@ Component release ledger + status:
|
|
|
1013
1043
|
from the one last applied to --env, under the
|
|
1014
1044
|
approved plans of the merges since, else at gate
|
|
1015
1045
|
op green-<sha>;
|
|
1046
|
+
--before-merge --pr <n>: apply the open pull
|
|
1047
|
+
request's head under its gate, once the
|
|
1048
|
+
declaration at base sets ci.workflow to
|
|
1049
|
+
apply-before-merge and the forge says it is
|
|
1050
|
+
approved, mergeable, undiverged and green;
|
|
1016
1051
|
--events-json, both commands: the run-event
|
|
1017
1052
|
stream on stdout; --report-url <s3 or file URL>,
|
|
1018
1053
|
both commands: copy the report, the change set
|
|
@@ -1188,7 +1223,8 @@ Options:
|
|
|
1188
1223
|
chant.config.ts's build.sandbox: true; #1045)
|
|
1189
1224
|
--param <name=value> (build, graph, run --components, components fan-out,
|
|
1190
1225
|
components promote, components rollback,
|
|
1191
|
-
components redeploy,
|
|
1226
|
+
components redeploy, components pr-env up,
|
|
1227
|
+
release cut) Bind a
|
|
1192
1228
|
declared build-time parameter (chant.config.ts's buildParams)
|
|
1193
1229
|
to a value, for source to read as params.<name>
|
|
1194
1230
|
(#1064) instead of process.env — repeatable.
|
|
@@ -1200,7 +1236,8 @@ Options:
|
|
|
1200
1236
|
chant.template.json declares instead (#2627).
|
|
1201
1237
|
--params-file <path> (build, graph, run --components, components fan-out,
|
|
1202
1238
|
components promote, components rollback,
|
|
1203
|
-
components redeploy,
|
|
1239
|
+
components redeploy, components pr-env up,
|
|
1240
|
+
release cut) JSON file
|
|
1204
1241
|
of { "name": value } build-time parameter values
|
|
1205
1242
|
(#1064). Second precedence, after --param.
|
|
1206
1243
|
init --from refuses it: pass --param instead.
|
|
@@ -1424,6 +1461,8 @@ export const commandRegistry = [
|
|
|
1424
1461
|
{ name: "describe", handler: runDescribe },
|
|
1425
1462
|
{ name: "explain", handler: runExplain },
|
|
1426
1463
|
{ name: "search", handler: runSearch },
|
|
1464
|
+
// #4297 — SQL over the snapshots, runs, gates, deploys and releases on chant/lifecycle. Imported on first use.
|
|
1465
|
+
{ name: "query", runsNoConfig: true, handler: async (ctx) => (await import("./handlers/query.js")).runQueryCommand(ctx) },
|
|
1427
1466
|
// chant#2591 — `import --agents` and `audit` read chant.config statically
|
|
1428
1467
|
// and never evaluate it (chant#2589 for audit, which audits code it must not run).
|
|
1429
1468
|
{ name: "import", handler: runImport, runsNoConfig: (args) => args.agents === true },
|
|
@@ -1504,6 +1543,9 @@ export const commandRegistry = [
|
|
|
1504
1543
|
{ name: "operator log", handler: runOperatorLog },
|
|
1505
1544
|
{ name: "operator", handler: runOperator },
|
|
1506
1545
|
{ name: "approve", handler: runApprove },
|
|
1546
|
+
// #4293 — target locks a pull request holds on chant/lifecycle. Imported on first use.
|
|
1547
|
+
{ name: "lock", runsNoConfig: true, handler: async (ctx) => (await import("./handlers/lock.js")).runLock(ctx) },
|
|
1548
|
+
{ name: "unlock", runsNoConfig: true, handler: async (ctx) => (await import("./handlers/lock.js")).runUnlock(ctx) },
|
|
1507
1549
|
{ name: "graph", handler: runGraph },
|
|
1508
1550
|
{ name: "vendor", handler: runVendor },
|
|
1509
1551
|
// Project-local codegen: typed code from sources chant.config declares
|
|
@@ -1588,7 +1630,10 @@ export const commandRegistry = [
|
|
|
1588
1630
|
// #3183 — the pull-request loop the generated CI runs. Imported on first use.
|
|
1589
1631
|
{ name: "components pr-plan", requiresPlugins: true, handler: async (ctx) => (await import("./handlers/pr.js")).runComponentsPrPlan(ctx) },
|
|
1590
1632
|
{ name: "components pr-apply", requiresPlugins: true, handler: async (ctx) => (await import("./handlers/pr.js")).runComponentsPrApply(ctx) },
|
|
1633
|
+
// #4295: posts from the plan report in a job that runs none of the change's code, so it loads no plugins.
|
|
1634
|
+
{ name: "components pr-post", handler: async (ctx) => (await import("./handlers/pr.js")).runComponentsPrPost(ctx) },
|
|
1591
1635
|
{ name: "components pr-record", requiresPlugins: true, handler: async (ctx) => (await import("./handlers/pr.js")).runComponentsPrRecord(ctx) },
|
|
1636
|
+
{ name: "components pr-env", requiresPlugins: true, handler: async (ctx) => (await import("./handlers/pr-env.js")).runComponentsPrEnv(ctx) },
|
|
1592
1637
|
{ name: "components status", requiresPlugins: true, handler: runComponentsStatus },
|
|
1593
1638
|
{ name: "components release", handler: runComponentsReleaseRecord },
|
|
1594
1639
|
{ name: "components export", handler: runComponentsExport },
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse-args.d.ts","sourceRoot":"","sources":["../../src/cli/parse-args.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"parse-args.d.ts","sourceRoot":"","sources":["../../src/cli/parse-args.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AA4F7C;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,UAAU,CAu4BpD"}
|
package/dist/cli/parse-args.js
CHANGED
|
@@ -41,6 +41,7 @@ const BOOLEAN_FLAGS = new Set([
|
|
|
41
41
|
"--stacks",
|
|
42
42
|
"--components",
|
|
43
43
|
"--pr-build",
|
|
44
|
+
"--pr-env",
|
|
44
45
|
"--up",
|
|
45
46
|
"--down",
|
|
46
47
|
"--include-dependents",
|
|
@@ -70,6 +71,7 @@ const BOOLEAN_FLAGS = new Set([
|
|
|
70
71
|
"--in-place",
|
|
71
72
|
"--require-runner-start",
|
|
72
73
|
"--no-push",
|
|
74
|
+
"--list",
|
|
73
75
|
"--no-require-review",
|
|
74
76
|
"--expire",
|
|
75
77
|
"--check-live",
|
|
@@ -470,6 +472,13 @@ export function parseArgs(args) {
|
|
|
470
472
|
throw new Error(`--share needs a share number from 1: got "${raw ?? ""}"`);
|
|
471
473
|
result.share = share;
|
|
472
474
|
}
|
|
475
|
+
else if (arg === "--target") {
|
|
476
|
+
// `chant components fan-out|run --components --target <component>:<address>` (#4300), repeatable.
|
|
477
|
+
const raw = args[++i];
|
|
478
|
+
if (!raw || raw.startsWith("-") || !raw.includes(":"))
|
|
479
|
+
throw new Error("--target needs a component and an address: --target <component>:<address>");
|
|
480
|
+
(result.targets ?? (result.targets = [])).push(raw);
|
|
481
|
+
}
|
|
473
482
|
else if (arg === "--canary") {
|
|
474
483
|
const raw = args[++i];
|
|
475
484
|
if (!raw || raw.startsWith("-"))
|
|
@@ -499,6 +508,22 @@ export function parseArgs(args) {
|
|
|
499
508
|
else if (arg === "--require-review") {
|
|
500
509
|
result.requireReview = true;
|
|
501
510
|
}
|
|
511
|
+
else if (arg === "--list") {
|
|
512
|
+
// `chant lock --list` (#4293): print the target locks instead of taking any.
|
|
513
|
+
result.list = true;
|
|
514
|
+
}
|
|
515
|
+
else if (arg === "--stage") {
|
|
516
|
+
// `chant lock --stage plan|apply|lock` (#4293): how the lock was taken.
|
|
517
|
+
result.lockStage = args[++i];
|
|
518
|
+
if (!result.lockStage || result.lockStage.startsWith("-"))
|
|
519
|
+
throw new Error("--stage needs plan, apply or lock: --stage <stage>");
|
|
520
|
+
}
|
|
521
|
+
else if (arg === "--from-report") {
|
|
522
|
+
// `chant lock --from-report <pr-plan.json>` (#4293): lock the components a pull-request report lists.
|
|
523
|
+
result.fromReport = args[++i];
|
|
524
|
+
if (!result.fromReport || result.fromReport.startsWith("-"))
|
|
525
|
+
throw new Error("--from-report needs a report file: --from-report <pr-plan.json>");
|
|
526
|
+
}
|
|
502
527
|
else if (arg === "--report-url") {
|
|
503
528
|
// `chant components pr-plan|pr-apply --report-url <url>` (#4007).
|
|
504
529
|
const url = args[++i];
|
|
@@ -506,6 +531,12 @@ export function parseArgs(args) {
|
|
|
506
531
|
throw new Error("--report-url needs a URL: --report-url s3://<bucket>/<prefix> or file://<directory>");
|
|
507
532
|
result.reportUrl = url;
|
|
508
533
|
}
|
|
534
|
+
else if (arg === "--result") {
|
|
535
|
+
// `chant components pr-post --result <result>` (#4295): the plan job's own result, which fails the status when it failed.
|
|
536
|
+
result.planResult = args[++i];
|
|
537
|
+
if (!result.planResult || result.planResult.startsWith("-"))
|
|
538
|
+
throw new Error("--result needs the plan job's result: --result success|failure|cancelled");
|
|
539
|
+
}
|
|
509
540
|
else if (arg === "--no-status") {
|
|
510
541
|
// `chant ci run|serve --no-status` (#4097): post no commit status for the job.
|
|
511
542
|
result.noStatus = true;
|
|
@@ -531,10 +562,22 @@ export function parseArgs(args) {
|
|
|
531
562
|
// `chant components pr-apply --green` (#4168 step 9): apply the green commit at HEAD.
|
|
532
563
|
result.green = true;
|
|
533
564
|
}
|
|
565
|
+
else if (arg === "--before-merge") {
|
|
566
|
+
// `chant components pr-apply --before-merge` (#4301, ws-106): apply an open pull request's plan from its head.
|
|
567
|
+
result.beforeMerge = true;
|
|
568
|
+
}
|
|
569
|
+
else if (arg === "--apply-before-merge") {
|
|
570
|
+
// `chant build --pr-loop --apply-before-merge` and `chant ci run apply --apply-before-merge` (#4301): the job that applies before merge.
|
|
571
|
+
result.applyBeforeMerge = true;
|
|
572
|
+
}
|
|
534
573
|
else if (arg === "--apply-on-merge") {
|
|
535
574
|
// `chant build --pr-loop --apply-on-merge` and `chant ci serve --apply-on-merge` (#4168): opt into applying on merge.
|
|
536
575
|
result.applyOnMerge = true;
|
|
537
576
|
}
|
|
577
|
+
else if (arg === "--pr-env") {
|
|
578
|
+
// `chant build --pr-loop --pr-env` (#4298): add the pull request environment's jobs.
|
|
579
|
+
result.prEnv = true;
|
|
580
|
+
}
|
|
538
581
|
else if (arg === "--pr-build") {
|
|
539
582
|
// `chant build --pr-loop --pr-build` (#4088), and `chant ci run --pr-build` (#4094).
|
|
540
583
|
result.prBuild = true;
|
|
@@ -1160,8 +1203,9 @@ export function parseArgs(args) {
|
|
|
1160
1203
|
result.expire = true;
|
|
1161
1204
|
}
|
|
1162
1205
|
else if (arg === "--role") {
|
|
1163
|
-
// #2508 — a role the approver
|
|
1164
|
-
// roles
|
|
1206
|
+
// #2508 — a role the approver claims, which a gate's policy sees. A
|
|
1207
|
+
// quorum reads roles from .chant/trust.json at base instead (#4290).
|
|
1208
|
+
// Repeatable, and a comma list works too.
|
|
1165
1209
|
const value = args[++i] ?? "";
|
|
1166
1210
|
result.roles = [...(result.roles ?? []), ...value.split(",").map((r) => r.trim()).filter(Boolean)];
|
|
1167
1211
|
}
|
package/dist/cli/registry.d.ts
CHANGED
|
@@ -293,6 +293,12 @@ export interface ParsedArgs {
|
|
|
293
293
|
share?: number;
|
|
294
294
|
/** `chant run wave --group <name>` (#3914) — apply one job group's runs of a decided wave. */
|
|
295
295
|
group?: string;
|
|
296
|
+
/**
|
|
297
|
+
* `chant components fan-out --target <component>:<address>` and `chant run
|
|
298
|
+
* --components --target ...` (#4300), repeatable: the addresses a
|
|
299
|
+
* component's steps narrow to. Raw values; `parseComponentTargets` groups them.
|
|
300
|
+
*/
|
|
301
|
+
targets?: string[];
|
|
296
302
|
/** `chant components fan-out --canary <component>` (#3049), repeatable — components that form wave 1. */
|
|
297
303
|
canary?: string[];
|
|
298
304
|
/**
|
|
@@ -301,6 +307,12 @@ export interface ParsedArgs {
|
|
|
301
307
|
* pr-apply finds it from the commit through `--forge` when omitted.
|
|
302
308
|
*/
|
|
303
309
|
pr?: number;
|
|
310
|
+
/** `chant lock --list` (#4293): print the target locks instead of taking any. */
|
|
311
|
+
list?: boolean;
|
|
312
|
+
/** `chant lock --stage plan|apply|lock` (#4293): how the lock is taken. Default `lock`. */
|
|
313
|
+
lockStage?: string;
|
|
314
|
+
/** `chant lock --from-report <file>` (#4293): lock the components a `pr-plan.json` lists. */
|
|
315
|
+
fromReport?: string;
|
|
304
316
|
/** Every `--pr <n>`, in order: `chant release compose` (#4168 4.3) takes several. */
|
|
305
317
|
prs?: number[];
|
|
306
318
|
/** `chant release cut --channel <tag>` (#4168 4.3): the tag a publish of the release moves in place of `latest`. */
|
|
@@ -344,6 +356,21 @@ export interface ParsedArgs {
|
|
|
344
356
|
* approved plans of the merges between or a gate of its own.
|
|
345
357
|
*/
|
|
346
358
|
green?: boolean;
|
|
359
|
+
/** `chant build --pr-loop --pr-env` (#4298) — add the env-up, env-down and env-sweep jobs of a pull request's environment. */
|
|
360
|
+
prEnv?: boolean;
|
|
361
|
+
/**
|
|
362
|
+
* `chant components pr-apply --before-merge` (#4301, ws-106): apply an open
|
|
363
|
+
* pull request's plan from its head, once the declaration at base sets
|
|
364
|
+
* `ci.workflow: "apply-before-merge"` and the pull request is approved,
|
|
365
|
+
* mergeable, undiverged and green.
|
|
366
|
+
*/
|
|
367
|
+
beforeMerge?: boolean;
|
|
368
|
+
/**
|
|
369
|
+
* `chant build --pr-loop --apply-before-merge` and `chant ci run apply
|
|
370
|
+
* --apply-before-merge` (#4301): the pipeline's apply job applies an open
|
|
371
|
+
* pull request before it merges, and a merge records.
|
|
372
|
+
*/
|
|
373
|
+
applyBeforeMerge?: boolean;
|
|
347
374
|
/** `chant build --pr-loop --pr-build` (#4088) — build and lint before pr-plan and pr-apply. */
|
|
348
375
|
prBuild?: boolean;
|
|
349
376
|
/** `chant ci serve --build-command <line>` (#4169) — the line that builds a commit a `ci/build/<sha>` tag asks for, in a worktree of it. */
|
|
@@ -476,7 +503,7 @@ export interface ParsedArgs {
|
|
|
476
503
|
records?: boolean;
|
|
477
504
|
/** `chant workspace wip save --label <text>` (#3172): what the caller calls the snapshot, such as a turn id. */
|
|
478
505
|
label?: string;
|
|
479
|
-
/** `chant workspace wip --branch <branch>` (#3172): list one branch's snapshots. */
|
|
506
|
+
/** `chant workspace wip --branch <branch>` (#3172): list one branch's snapshots. `chant components pr-apply|pr-record --branch <branch>` (#4292): the branch pushed, which `ci.branches` routes members by; default the forge's GITHUB_REF_NAME or CI_COMMIT_BRANCH. */
|
|
480
507
|
branch?: string;
|
|
481
508
|
/** `chant ci workflow --workflow <name>`, repeatable (#3573): a workflow whose completion triggers a tick, beside those the scan finds. Also `chant ci init --workflow <name>` (#4168 step 6), the prescribed workflow to set up. */
|
|
482
509
|
ciWorkflows?: string[];
|
|
@@ -490,6 +517,8 @@ export interface ParsedArgs {
|
|
|
490
517
|
ciSecrets?: string;
|
|
491
518
|
/** `chant ci workflow --chant <command>` (#3573): the command the tick step runs chant with, in place of the npx pin. Also `chant ci run --chant` (#4094): what runs chant in the job. */
|
|
492
519
|
ciChant?: string;
|
|
520
|
+
/** `chant components pr-post --result <result>` (#4295): the plan job's own result. `failure` or `cancelled` fails the `chant/plan` status. */
|
|
521
|
+
planResult?: string;
|
|
493
522
|
/** `chant ci run|serve --no-status` (#4097): post no commit status for the job. `chant components pr-plan|pr-apply --no-status` (#4161): post neither the status nor the note. */
|
|
494
523
|
noStatus?: boolean;
|
|
495
524
|
/** `chant ci run|serve --status-url <template>` (#4097): the link a job's status carries. `{key}` is `<pr>/<commit>[/<member>]`, as `--report-url` keys it. */
|
|
@@ -735,7 +764,7 @@ export interface ParsedArgs {
|
|
|
735
764
|
* on a model-authored channel.
|
|
736
765
|
*/
|
|
737
766
|
allowSameOrigin?: boolean;
|
|
738
|
-
/** `chant approve --role <name>` (#2508) — roles the approver claims,
|
|
767
|
+
/** `chant approve --role <name>` (#2508) — roles the approver claims, which a gate's policy sees. A quorum never counts them (#4290): its roles come from `.chant/trust.json` at base. Repeatable; a comma list also works. */
|
|
739
768
|
roles?: string[];
|
|
740
769
|
/** `chant approve --agent` (#2508) — record the approval as an agent's. An agent never counts toward a quorum; it passes a gate only through a policy permit in `enforce` mode. */
|
|
741
770
|
agent?: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"registry.d.ts","sourceRoot":"","sources":["../../src/cli/registry.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAEhD;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,mJAAmJ;IACnJ,WAAW,CAAC,EAAE,MAAM,EAAE,CAAC;IACvB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,GAAG,EAAE,OAAO,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,OAAO,CAAC;IACf,OAAO,EAAE,OAAO,CAAC;IACjB,IAAI,EAAE,OAAO,CAAC;IACd,uEAAuE;IACvE,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,0KAA0K;IAC1K,KAA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IACtE,IAAI,EAAE,MAAM,CAAC;IACb,2DAA2D;IAC3D,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B;;;;;OAKG;IACH,YAAY,CAAC,EAAE,OAAO,GAAG,CAAC,CAAC,IAAI,EAAE,UAAU,KAAK,OAAO,CAAC,CAAC;IACzD,0CAA0C;IAC1C,OAAO,EAAE,CAAC,GAAG,EAAE,cAAc,KAAK,OAAO,CAAC,MAAM,CAAC,CAAC;CACnD;AAED;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,UAAU,CAAC;IACjB,OAAO,EAAE,aAAa,EAAE,CAAC;IACzB,WAAW,EAAE,UAAU,EAAE,CAAC;CAC3B;AAED;;GAEG;AACH,MAAM,WAAW,eAAe;IAC9B,GAAG,EAAE,UAAU,CAAC;IAChB,4FAA4F;IAC5F,QAAQ,EAAE,OAAO,CAAC;CACnB;AAeD,wBAAgB,cAAc,CAAC,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,eAAe,GAAG,IAAI,CAiB/F"}
|
|
@@ -70,6 +70,14 @@ export interface DeployContext {
|
|
|
70
70
|
* against missing values.
|
|
71
71
|
*/
|
|
72
72
|
unresolvedInputs?: string[];
|
|
73
|
+
/**
|
|
74
|
+
* The addresses this component's steps narrow to (#4300), from
|
|
75
|
+
* `--target <component>:<address>`, sorted. A step's `plan` plans only
|
|
76
|
+
* these, and its `run` applies only these. Every capability step of the
|
|
77
|
+
* component must accept targets ({@link Capability.targets}), or the
|
|
78
|
+
* component refuses before anything plans or runs. Absent: the whole step.
|
|
79
|
+
*/
|
|
80
|
+
targets?: string[];
|
|
73
81
|
}
|
|
74
82
|
/**
|
|
75
83
|
* What a capability's `plan` produced (#3049): the member it planned, that
|
|
@@ -98,6 +106,14 @@ export interface CapabilityPlan {
|
|
|
98
106
|
* applies.
|
|
99
107
|
*/
|
|
100
108
|
outputs?: PlannedOutputs;
|
|
109
|
+
/**
|
|
110
|
+
* The targets this plan narrowed to (#4300), sorted. A plan made with
|
|
111
|
+
* `DeployContext.targets` gives them back, which says it planned only
|
|
112
|
+
* those. Planning binds them into the member's digest
|
|
113
|
+
* ({@link targetedPlanDigest} in ./wave-plan.ts), so an approval of a
|
|
114
|
+
* targeted plan covers that plan and no other.
|
|
115
|
+
*/
|
|
116
|
+
targets?: string[];
|
|
101
117
|
}
|
|
102
118
|
/**
|
|
103
119
|
* What a plan says about the outputs its apply will leave (#3999). An
|
|
@@ -171,9 +187,32 @@ export interface Capability<In = unknown, Out = unknown> {
|
|
|
171
187
|
* compensation gap. See ../lint/rules/comp/comp003-mutating-no-rollback.ts.
|
|
172
188
|
*/
|
|
173
189
|
readonly rollbackPolicy?: RollbackPolicy;
|
|
190
|
+
/**
|
|
191
|
+
* Whether this verb narrows to `DeployContext.targets` (#4300). `"accept"`:
|
|
192
|
+
* its `plan` and `run` act on the targets alone, and its plan gives them
|
|
193
|
+
* back in {@link CapabilityPlan.targets}. `{ refuse }`: it can't, and says
|
|
194
|
+
* why. Unset refuses too, with a reason that names the verb.
|
|
195
|
+
*/
|
|
196
|
+
readonly targets?: TargetSupport;
|
|
174
197
|
}
|
|
175
198
|
/** A capability's relationship to rollback — see `Capability.rollbackPolicy`. */
|
|
176
199
|
export type RollbackPolicy = "native" | "none-by-design" | "needs-opt-out";
|
|
200
|
+
/** Whether a capability accepts `DeployContext.targets` (#4300). See `Capability.targets`. */
|
|
201
|
+
export type TargetSupport = "accept" | {
|
|
202
|
+
refuse: string;
|
|
203
|
+
};
|
|
204
|
+
/**
|
|
205
|
+
* A component was asked to narrow to targets (#4300) and one of its steps'
|
|
206
|
+
* capabilities refuses them. Nothing in the component plans or runs.
|
|
207
|
+
*/
|
|
208
|
+
export declare class TargetsRefusedError extends Error {
|
|
209
|
+
readonly component: string;
|
|
210
|
+
readonly kind: string;
|
|
211
|
+
readonly reason: string;
|
|
212
|
+
constructor(component: string, kind: string, reason: string);
|
|
213
|
+
}
|
|
214
|
+
/** Why `capability` refuses targets, or `undefined` when it accepts them (#4300). */
|
|
215
|
+
export declare function targetRefusal(capability: Pick<Capability<never, unknown>, "kind" | "targets">): string | undefined;
|
|
177
216
|
/** Extract a capability's `In` type. */
|
|
178
217
|
export type CapabilityInput<C> = C extends Capability<infer In, unknown> ? In : never;
|
|
179
218
|
/** Extract a capability's `Out` type. */
|
|
@@ -219,4 +258,12 @@ export declare class CapabilityRegistry {
|
|
|
219
258
|
/** All registered kinds, sorted. */
|
|
220
259
|
kinds(): string[];
|
|
221
260
|
}
|
|
261
|
+
/**
|
|
262
|
+
* `--target <component>:<address>` values (#4300), grouped by component with
|
|
263
|
+
* each component's addresses sorted and unique. The address is everything
|
|
264
|
+
* after the first `:`, so it may hold colons of its own. Throws for a value
|
|
265
|
+
* with no component or no address, and, given `known`, for a component not
|
|
266
|
+
* among them.
|
|
267
|
+
*/
|
|
268
|
+
export declare function parseComponentTargets(values: readonly string[], known?: ReadonlySet<string>): Record<string, string[]>;
|
|
222
269
|
//# sourceMappingURL=capability.d.ts.map
|