@intentius/chant 0.105.0 → 0.106.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cli/commands/lint.d.ts.map +1 -1
- package/dist/cli/handlers/build.d.ts.map +1 -1
- package/dist/cli/handlers/fan-out.d.ts.map +1 -1
- package/dist/cli/handlers/operator.d.ts.map +1 -1
- package/dist/cli/handlers/pr.d.ts +16 -2
- package/dist/cli/handlers/pr.d.ts.map +1 -1
- package/dist/cli/handlers/promote.d.ts.map +1 -1
- package/dist/cli/handlers/run.d.ts.map +1 -1
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/registry.d.ts +7 -0
- package/dist/cli/registry.d.ts.map +1 -1
- package/dist/components/changed-files.d.ts +8 -2
- package/dist/components/changed-files.d.ts.map +1 -1
- package/dist/components/fan-out-record.d.ts +24 -0
- package/dist/components/fan-out-record.d.ts.map +1 -1
- package/dist/components/pr-pipeline.d.ts +60 -4
- package/dist/components/pr-pipeline.d.ts.map +1 -1
- package/dist/components/pr-run.d.ts +92 -3
- package/dist/components/pr-run.d.ts.map +1 -1
- package/dist/gated-waves.d.ts +4 -1
- package/dist/gated-waves.d.ts.map +1 -1
- package/dist/lexicon.d.ts +13 -2
- package/dist/lexicon.d.ts.map +1 -1
- package/dist/lifecycle/gate-ledger.d.ts.map +1 -1
- package/dist/op/activities/factory.d.ts.map +1 -1
- package/dist/op/gate-name.d.ts +7 -0
- package/dist/op/gate-name.d.ts.map +1 -1
- package/dist/op/gate-summary.d.ts +2 -0
- package/dist/op/gate-summary.d.ts.map +1 -1
- package/dist/op/gate.d.ts +10 -2
- package/dist/op/gate.d.ts.map +1 -1
- package/dist/op/index.d.ts +2 -2
- package/dist/op/index.d.ts.map +1 -1
- package/dist/op/local-executor.d.ts.map +1 -1
- package/dist/op/local-output.d.ts +2 -2
- package/dist/op/local-output.d.ts.map +1 -1
- package/dist/op/runtime.d.ts +19 -2
- package/dist/op/runtime.d.ts.map +1 -1
- package/dist/op/runtimes/local.d.ts.map +1 -1
- package/dist/pr-loop.d.ts +29 -4
- package/dist/pr-loop.d.ts.map +1 -1
- package/dist/workspace/lineage-upgrade-cli.d.ts.map +1 -1
- package/dist/workspace/member-pipeline.d.ts +14 -1
- package/dist/workspace/member-pipeline.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/__fixtures__/change-set/warden.change-set.golden.json +2 -2
- package/src/__fixtures__/change-set/warden.plan.json +47 -40
- package/src/__fixtures__/plan-summary/normalization-vectors.json +275 -2
- package/src/change-set.test.ts +7 -8
- package/src/cli/commands/lint.ts +34 -1
- package/src/cli/handlers/build-lexicon-output.test.ts +94 -0
- package/src/cli/handlers/build.ts +65 -0
- package/src/cli/handlers/fan-out.test.ts +12 -1
- package/src/cli/handlers/fan-out.ts +7 -3
- package/src/cli/handlers/operator.ts +1 -2
- package/src/cli/handlers/pr.ts +220 -35
- package/src/cli/handlers/promote.test.ts +15 -1
- package/src/cli/handlers/promote.ts +5 -3
- package/src/cli/handlers/run.test.ts +164 -1
- package/src/cli/handlers/run.ts +22 -11
- package/src/cli/main.ts +13 -1
- package/src/cli/mcp/never-over-mcp.test.ts +74 -0
- package/src/cli/registry.ts +7 -0
- package/src/components/changed-files.test.ts +58 -0
- package/src/components/changed-files.ts +19 -4
- package/src/components/fan-out-record.test.ts +47 -2
- package/src/components/fan-out-record.ts +53 -0
- package/src/components/pr-pipeline.ts +89 -6
- package/src/components/pr-run.test.ts +300 -3
- package/src/components/pr-run.ts +196 -5
- package/src/gated-waves.test.ts +11 -0
- package/src/gated-waves.ts +7 -2
- package/src/lexicon.ts +13 -1
- package/src/lifecycle/gate-ledger.ts +4 -3
- package/src/op/activities/factory.ts +9 -1
- package/src/op/gate-name.ts +17 -0
- package/src/op/gate-summary.test.ts +12 -0
- package/src/op/gate-summary.ts +3 -1
- package/src/op/gate.test.ts +15 -1
- package/src/op/gate.ts +21 -4
- package/src/op/index.ts +2 -2
- package/src/op/local-executor.test.ts +35 -0
- package/src/op/local-executor.ts +2 -2
- package/src/op/local-output.test.ts +20 -0
- package/src/op/local-output.ts +4 -4
- package/src/op/runtime.ts +20 -2
- package/src/op/runtimes/local.test.ts +15 -0
- package/src/op/runtimes/local.ts +3 -1
- package/src/pr-loop.test.ts +41 -1
- package/src/pr-loop.ts +38 -8
- package/src/workspace/lineage-upgrade-cli.ts +4 -3
- package/src/workspace/lineage-upgrade.test.ts +40 -0
- package/src/workspace/member-pipeline.test.ts +28 -0
- package/src/workspace/member-pipeline.ts +20 -3
- package/src/workspace/pr-report.schema.json +14 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/lint.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAG7D,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAW,MAAM,iBAAiB,CAAC;
|
|
1
|
+
{"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../../../src/cli/commands/lint.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,kBAAkB,CAAC;AAG7D,OAAO,KAAK,EAAE,QAAQ,EAAE,cAAc,EAAW,MAAM,iBAAiB,CAAC;AA8BzE;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,QAAQ,CAW5D;AAED;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AACH,wBAAsB,eAAe,CACnC,OAAO,EAAE,MAAM,EAAE,EACjB,SAAS,EAAE,MAAM,GAChB,OAAO,CAAC,GAAG,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAmBhC;AAED;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,0BAA0B,WAAW,CAAC;AA+JnD;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,mBAAmB;IACnB,IAAI,EAAE,MAAM,CAAC;IACb;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,oBAAoB,EAAE,CAAC;IACrC,uBAAuB;IACvB,GAAG,CAAC,EAAE,OAAO,CAAC;IACd,oBAAoB;IACpB,MAAM,EAAE,SAAS,GAAG,MAAM,GAAG,OAAO,CAAC;IACrC,qCAAqC;IACrC,KAAK,CAAC,EAAE,QAAQ,EAAE,CAAC;IACnB;;;;;OAKG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,sCAAsC;IACtC,OAAO,EAAE,OAAO,CAAC;IACjB,uBAAuB;IACvB,UAAU,EAAE,MAAM,CAAC;IACnB,yBAAyB;IACzB,YAAY,EAAE,MAAM,CAAC;IACrB,sBAAsB;IACtB,WAAW,EAAE,cAAc,EAAE,CAAC;IAC9B,uBAAuB;IACvB,MAAM,EAAE,MAAM,CAAC;CAChB;AAiVD;;GAEG;AACH,wBAAsB,WAAW,CAAC,OAAO,EAAE,WAAW,GAAG,OAAO,CAAC,UAAU,CAAC,CAqN3E;AAED;;GAEG;AACH,wBAAgB,eAAe,CAAC,MAAM,EAAE,UAAU,GAAG,IAAI,CAIxD;AAED;;;GAGG;AACH,wBAAgB,gBAAgB,CAC9B,OAAO,EAAE,WAAW,EACpB,QAAQ,CAAC,EAAE,CAAC,MAAM,EAAE,UAAU,KAAK,IAAI,GACtC,MAAM,IAAI,CAiCZ"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/build.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"build.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/build.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AA+IlD,wBAAsB,QAAQ,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA+InE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fan-out.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/fan-out.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAIH,OAAO,EAA+C,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAa7F,OAAO,EAAmB,KAAK,YAAY,EAAuB,MAAM,0BAA0B,CAAC;AAMnG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,mBAAmB,CACvC,GAAG,EAAE,cAAc,EACnB,MAAM,EAAE,WAAW,EACnB,IAAI,GAAE;IACJ,yFAAyF;IACzF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wFAAwF;IACxF,UAAU,CAAC,EAAE,OAAO,CAAC;CACjB,GACL,OAAO,CAAC;IAAE,KAAK,EAAE,YAAY,CAAA;CAAE,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CA+ErE;AAED;;;;;GAKG;AACH,wBAAsB,mBAAmB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,
|
|
1
|
+
{"version":3,"file":"fan-out.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/fan-out.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AAIH,OAAO,EAA+C,KAAK,WAAW,EAAE,MAAM,cAAc,CAAC;AAa7F,OAAO,EAAmB,KAAK,YAAY,EAAuB,MAAM,0BAA0B,CAAC;AAMnG,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAElD;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,mBAAmB,CACvC,GAAG,EAAE,cAAc,EACnB,MAAM,EAAE,WAAW,EACnB,IAAI,GAAE;IACJ,yFAAyF;IACzF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,wFAAwF;IACxF,UAAU,CAAC,EAAE,OAAO,CAAC;CACjB,GACL,OAAO,CAAC;IAAE,KAAK,EAAE,YAAY,CAAA;CAAE,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC,CA+ErE;AAED;;;;;GAKG;AACH,wBAAsB,mBAAmB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAoR9E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"operator.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/operator.ts"],"names":[],"mappings":"AAgCA,OAAO,EAAsB,KAAK,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAE9F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAC3F,OAAO,EACuE,KAAK,UAAU,EAC5F,MAAM,6BAA6B,CAAC;AAOrC,OAAO,EAEuC,KAAK,mBAAmB,EAAE,KAAK,oBAAoB,EAChG,MAAM,wBAAwB,CAAC;
|
|
1
|
+
{"version":3,"file":"operator.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/operator.ts"],"names":[],"mappings":"AAgCA,OAAO,EAAsB,KAAK,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AAE9F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,oBAAoB,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AAC3F,OAAO,EACuE,KAAK,UAAU,EAC5F,MAAM,6BAA6B,CAAC;AAOrC,OAAO,EAEuC,KAAK,mBAAmB,EAAE,KAAK,oBAAoB,EACh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EAAE,MAAM,EAAE,CAAC;IACjB;;;OAGG;IACH,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB;;;;;OAKG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,oGAAoG;IACpG,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,8EAA8E;IAC9E,SAAS,CAAC,EAAE,mBAAmB,CAAC;CACjC;AAED,MAAM,MAAM,mBAAmB,GAC3B;IAAE,EAAE,EAAE,IAAI,CAAC;IAAC,MAAM,EAAE,oBAAoB,CAAA;CAAE,GAC1C;IAAE,EAAE,EAAE,KAAK,CAAA;CAAE,CAAC;AAElB;;;;;;;;;;;;;;GAcG;AACH,wBAAsB,kBAAkB,CACtC,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,mBAAmB,GACxB,OAAO,CAAC,mBAAmB,CAAC,CAuS9B;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,QAAQ,EAAE,oBAAoB,EAC9B,MAAM,EAAE,oBAAoB,EAC5B,KAAK,EAAE,oBAAoB,EAAE,EAC7B,QAAQ,EAAE,iBAAiB,GAAG,SAAS,GACtC,MAAM,EAAE,CAiCV"}
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* ```
|
|
6
6
|
* chant components pr-plan --base <ref> --pr <n> --env <env> [--forge github|gitlab|forgejo]
|
|
7
7
|
* chant approve pr-<n> pr-apply --plan <digest> --approver github:<login> --sign
|
|
8
|
-
* chant components pr-apply --base <ref> --env <env> [--pr <n>] [--forge <kind>] [--require-review]
|
|
8
|
+
* chant components pr-apply --base <ref> --env <env> [--pr <n>] [--forge <kind>] [--require-review] [--resume <file>]
|
|
9
9
|
* ```
|
|
10
10
|
*
|
|
11
11
|
* Both measure the change from the merge base of `--base` and `HEAD`, select
|
|
@@ -18,8 +18,22 @@
|
|
|
18
18
|
* applies only when an approval stands for that digest. A moved plan stops
|
|
19
19
|
* it with both digests named and nothing applied (exit 3).
|
|
20
20
|
*
|
|
21
|
+
* `--resume <file>` (#3464) finishes an apply that failed partway, the way
|
|
22
|
+
* `components fan-out --resume` does (#2417, #3049). The apply writes the
|
|
23
|
+
* attempt record as each component settles: the change set the gate
|
|
24
|
+
* approved and the components that applied. Repeated on the same commit
|
|
25
|
+
* with the same record, it plans only what is left, checks each member
|
|
26
|
+
* against the approved set (`resumePrSet`) and, when all are covered and the
|
|
27
|
+
* approval still stands, applies the rest without a fresh approval. When
|
|
28
|
+
* they are not covered it says why and runs as it would without a record.
|
|
29
|
+
*
|
|
21
30
|
* Every run writes `pr-plan.json` or `pr-apply.json` (`pr-report.schema.json`),
|
|
22
|
-
* `change-set.json` and `pr-note.md` under `--output` (default `.chant/pr`).
|
|
31
|
+
* `change-set.json` and `pr-note.md` under `--output` (default `.chant/pr`). *
|
|
32
|
+
* `--member <name>` (#3465) runs a workspace member's loop: the member's
|
|
33
|
+
* generated pipeline passes it from the member's directory. The gate is
|
|
34
|
+
* recorded under `pr-<n>-<member>`, and the note and the statuses carry the
|
|
35
|
+
* member's name, so each member's loop on one pull request stands apart.
|
|
36
|
+
* The name must be the member that owns the current directory.
|
|
23
37
|
*/
|
|
24
38
|
import type { CommandContext } from "../registry.js";
|
|
25
39
|
/** Where the reports land unless `--output` says. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pr.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/pr.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"pr.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/pr.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAyCH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAMlD,qDAAqD;AACrD,eAAO,MAAM,aAAa,cAAc,CAAC;AAuMzC,8HAA8H;AAC9H,wBAAsB,mBAAmB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA0C9E;AAED,oJAAoJ;AACpJ,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAkL/E"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"promote.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/promote.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAuCH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"promote.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/promote.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAuCH,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AA6OlD,wBAAsB,oBAAoB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA8C/E;AAED,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA0BhF;AAED,wBAAsB,qBAAqB,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA0BhF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["../../../src/cli/handlers/run.ts"],"names":[],"mappings":"AAkBA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAUlD,OAAO,KAAK,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAGpE;;;;;GAKG;AACH,eAAO,MAAM,eAAe,IAAI,CAAC;AAoNjC,wBAAsB,SAAS,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAGpE;AAuED,wBAAsB,WAAW,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAA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BAAqB,EAAE,EAChC,GAAG,EAAE,MAAM,EACX,KAAK,EAAE,MAAM,EACb,QAAQ,EAAE,OAAO,GAChB,OAAO,CAAC,aAAa,EAAE,CAAC,CA0C1B;AAID;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AACH,wBAAsB,eAAe,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA4I1E;AAED;;;;;;;;;;;GAWG;AACH,wBAAsB,cAAc,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CA6KzE;AAgDD,wBAAgB,YAAY,CAAC,GAAG,EAAE,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,CAMjE"}
|
package/dist/cli/main.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/cli/main.ts"],"names":[],"mappings":";AAMA,OAAO,EAAkB,KAAK,UAAU,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAwG9E;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,UAAU,
|
|
1
|
+
{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["../../src/cli/main.ts"],"names":[],"mappings":";AAMA,OAAO,EAAkB,KAAK,UAAU,EAAE,KAAK,UAAU,EAAE,MAAM,YAAY,CAAC;AAwG9E;;GAEG;AACH,wBAAgB,SAAS,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,UAAU,CAqoBpD;AA63BD;;;;;;;;;;GAUG;AACH,wBAAsB,mBAAmB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAuBzE;AAID;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,EAAE,UAAU,EA8JvC,CAAC;AA4KF;;;;;;;;GAQG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,EAAE,MAAM,CAAC,WAAW,GAAG,OAAO,CAAC,IAAI,CAAC,CAuB5E"}
|
package/dist/cli/registry.d.ts
CHANGED
|
@@ -281,6 +281,9 @@ export interface ParsedArgs {
|
|
|
281
281
|
* the identical command finishes what an interrupted attempt left, because
|
|
282
282
|
* the plan is narrowed by this file before the gate is decided and the
|
|
283
283
|
* digest is carried rather than recomputed, so the approval still stands.
|
|
284
|
+
* `chant components pr-apply --resume <file>` (#3464) keeps the same record
|
|
285
|
+
* with the approved change set in it, and finishes an apply that failed
|
|
286
|
+
* partway under that approval.
|
|
284
287
|
*/
|
|
285
288
|
resume?: string;
|
|
286
289
|
/** `chant audit --tier merge-worthy|all` */
|
|
@@ -445,6 +448,8 @@ export interface ParsedArgs {
|
|
|
445
448
|
/**
|
|
446
449
|
* `chant workspace build|lint|audit|graph --member <name>` (#2537): run only
|
|
447
450
|
* the named members or example groups. Repeatable, and a comma list works too.
|
|
451
|
+
* `chant components pr-plan|pr-apply --member <name>` (#3465) takes exactly
|
|
452
|
+
* one: the workspace member whose pull-request loop runs.
|
|
448
453
|
*/
|
|
449
454
|
members?: string[];
|
|
450
455
|
/**
|
|
@@ -522,6 +527,8 @@ export interface ParsedArgs {
|
|
|
522
527
|
foldRankCollapsedFile?: string;
|
|
523
528
|
/** `chant build --param name=value` (#1064) — repeatable. Bound to `params.<name>` (`@intentius/chant/params`) for source to reference, after validation against `chant.config.ts`'s declared `buildParams`. Highest precedence over `--params-file`/a declared `env` mapping/the declared `default`. */
|
|
524
529
|
param?: string[];
|
|
530
|
+
/** `chant build --lexicon-output <lexicon>=<path>` — repeatable. Writes that lexicon's output to its own file, so one project can declare several lexicons (otel and prometheus) without their outputs sharing a file. Lexicons not named are built into `--output` when given, and skipped otherwise. */
|
|
531
|
+
lexiconOutput?: string[];
|
|
525
532
|
/** `chant build --params-file <path>` (#1064) — a JSON file of `{ "name": value }` build-time parameter values. Second precedence, after `--param`. */
|
|
526
533
|
paramsFile?: string;
|
|
527
534
|
/** `chant graph --components --format ir --projection <lexicon>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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;AAWD,wBAAgB,cAAc,CAAC,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,eAAe,GAAG,IAAI,CAiB/F"}
|
|
@@ -18,8 +18,14 @@ export declare function resolveMergeBase(cwd: string, base: string, head?: strin
|
|
|
18
18
|
/** The full commit `ref` names. */
|
|
19
19
|
export declare function resolveCommit(cwd: string, ref: string): Promise<string>;
|
|
20
20
|
/**
|
|
21
|
-
* Files changed between `base` and `head`, relative to `cwd
|
|
22
|
-
*
|
|
21
|
+
* Files changed between `base` and `head`, relative to `cwd`, with `/`
|
|
22
|
+
* separators. A rename counts as its old and its new path.
|
|
23
|
+
*
|
|
24
|
+
* Every changed file in the repository is listed, not only those under
|
|
25
|
+
* `cwd`: one outside it reads `../...`. A project in a workspace member
|
|
26
|
+
* (#3465) can call a module that lives in another member or beside the
|
|
27
|
+
* members, and a change there reaches it; `changedUnits` decides which of
|
|
28
|
+
* these paths matter.
|
|
23
29
|
*/
|
|
24
30
|
export declare function changedFilesBetween(cwd: string, base: string, head?: string): Promise<string[]>;
|
|
25
31
|
/** The union of every plugin's `changedUnits` answer, sorted. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"changed-files.d.ts","sourceRoot":"","sources":["../../src/components/changed-files.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;
|
|
1
|
+
{"version":3,"file":"changed-files.d.ts","sourceRoot":"","sources":["../../src/components/changed-files.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAKH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAShD;;;;;GAKG;AACH,wBAAsB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,SAAS,GAAG,OAAO,CAAC,MAAM,CAAC,CAUhG;AAED,mCAAmC;AACnC,wBAAsB,aAAa,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,MAAM,CAAC,CAE7E;AAED;;;;;;;;;GASG;AACH,wBAAsB,mBAAmB,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,SAAS,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,CAWrG;AAED,iEAAiE;AACjE,wBAAsB,mBAAmB,CACvC,OAAO,EAAE,SAAS,IAAI,CAAC,aAAa,EAAE,cAAc,CAAC,EAAE,EACvD,GAAG,EAAE;IAAE,WAAW,EAAE,MAAM,CAAC;IAAC,MAAM,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IAAC,YAAY,EAAE,MAAM,EAAE,CAAA;CAAE,GACpF,OAAO,CAAC,MAAM,EAAE,CAAC,CAQnB"}
|
|
@@ -27,6 +27,28 @@
|
|
|
27
27
|
* per-wave CI job hands to the next.
|
|
28
28
|
*/
|
|
29
29
|
import { type WaveRecord } from "../gated-waves.js";
|
|
30
|
+
import type { ChangeSetDocument } from "../change-set.js";
|
|
31
|
+
import type { PrMember } from "../pr-loop.js";
|
|
32
|
+
/** What a pull request's apply approved, kept so a re-run can finish it (#3464). */
|
|
33
|
+
export interface PrApplyRecord {
|
|
34
|
+
/** The gate's op and name: `pr-<n>` and `pr-apply` unless the pipeline names another. */
|
|
35
|
+
op: string;
|
|
36
|
+
gate: string;
|
|
37
|
+
/** The commit the apply ran on. A record from another commit does not carry. */
|
|
38
|
+
head: string;
|
|
39
|
+
/** The change-set digest the approval stands for. */
|
|
40
|
+
digest: string;
|
|
41
|
+
approvedBy: string[];
|
|
42
|
+
/** Every member of the approved set, as planned. */
|
|
43
|
+
members: PrMember[];
|
|
44
|
+
/** The approved change-set document. Its entries are what a re-planned member is checked against. */
|
|
45
|
+
changeSet: ChangeSetDocument;
|
|
46
|
+
/**
|
|
47
|
+
* The outputs the approved plans read. The members left are planned
|
|
48
|
+
* against them again, so an unchanged member plans to the same digest.
|
|
49
|
+
*/
|
|
50
|
+
planOutputs: Record<string, Record<string, unknown>>;
|
|
51
|
+
}
|
|
30
52
|
export interface FanOutAttempt {
|
|
31
53
|
digest: string;
|
|
32
54
|
completed: string[];
|
|
@@ -40,6 +62,8 @@ export interface FanOutAttempt {
|
|
|
40
62
|
* root, choudoufu's wave resume file.
|
|
41
63
|
*/
|
|
42
64
|
carried?: Record<string, unknown>;
|
|
65
|
+
/** A pull request's apply only (#3464). */
|
|
66
|
+
prApply?: PrApplyRecord;
|
|
43
67
|
}
|
|
44
68
|
/** Read an attempt record, or `undefined` when there is none yet. Throws on a file that is not JSON. */
|
|
45
69
|
export declare function readFanOutAttempt(path: string): FanOutAttempt | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fan-out-record.d.ts","sourceRoot":"","sources":["../../src/components/fan-out-record.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAIH,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"fan-out-record.d.ts","sourceRoot":"","sources":["../../src/components/fan-out-record.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAIH,OAAO,EAAmB,KAAK,UAAU,EAAE,MAAM,gBAAgB,CAAC;AAClE,OAAO,KAAK,EAAE,iBA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at a time per environment.
|
|
19
19
|
*
|
|
20
|
+
* The apply job passes `--resume` (#3543) with a record path outside the
|
|
21
|
+
* report directory, and each forge keeps that file in its CI cache under a
|
|
22
|
+
* key that names the environment, the member and the pushed commit
|
|
23
|
+
* (`prApplyRecordKey`). A re-run of a failed apply job restores it and
|
|
24
|
+
* finishes the approved set under the same approval; the record itself is
|
|
25
|
+
* checked against the pull request's gate, the commit, the selection and
|
|
26
|
+
* the ledger before it counts (`pr-apply --resume`, #3464).
|
|
27
|
+
*
|
|
20
28
|
* Measuring the push from the commit it replaced works for merge commits,
|
|
21
29
|
* squash merges and rebase merges alike, and every job measures from the
|
|
22
30
|
* merge base of that commit and its own head (`resolveMergeBase`).
|
|
31
|
+
*
|
|
32
|
+
* In a workspace member (#3465) both commands run in the member's directory
|
|
33
|
+
* and pass `--member <name>`, so the member's gate (`pr-<number>-<member>`),
|
|
34
|
+
* note and statuses stay apart from every other member's on the same pull
|
|
35
|
+
* request. They still measure the whole change: a file outside the member
|
|
36
|
+
* that one of its units reaches selects that unit.
|
|
23
37
|
*/
|
|
24
38
|
import type { ForgeKind } from "../pr-forge.js";
|
|
25
39
|
/** Where both jobs write their reports, kept as a CI artifact. */
|
|
26
40
|
export declare const PR_LOOP_REPORT_DIR = ".chant/pr";
|
|
41
|
+
/**
|
|
42
|
+
* The attempt record the apply job resumes from (#3543), relative to the
|
|
43
|
+
* directory the job runs in. It sits outside `PR_LOOP_REPORT_DIR`, so the
|
|
44
|
+
* report artifact never carries it: it holds the outputs the members read.
|
|
45
|
+
*/
|
|
46
|
+
export declare const PR_APPLY_RECORD = ".chant/pr-resume/pr-apply.json";
|
|
47
|
+
/**
|
|
48
|
+
* The image the pull-request pipeline runs in when the caller sets none. The
|
|
49
|
+
* full `node` image has git, which both jobs measure the change with;
|
|
50
|
+
* `PR_LOOP_SETUP` adds OpenTofu on top of it. A caller who sets `image`
|
|
51
|
+
* brings both and gets no setup lines.
|
|
52
|
+
*/
|
|
53
|
+
export declare const PR_LOOP_IMAGE = "node:22";
|
|
54
|
+
/** Installs OpenTofu into `PR_LOOP_IMAGE`. */
|
|
55
|
+
export declare const PR_LOOP_SETUP: string[];
|
|
56
|
+
/** The setup lines for a pipeline running in `image`: the install when it is the default image, none otherwise. */
|
|
57
|
+
export declare function prLoopSetup(image: string): string[];
|
|
27
58
|
/** The `prLoop` generator option (`ComponentPipelineOptions.prLoop`). */
|
|
28
59
|
export interface PrLoopPipelineOptions {
|
|
29
60
|
/** The gate the apply waits on. Default `pr-apply`. */
|
|
@@ -53,9 +84,34 @@ export interface PrLoopJob {
|
|
|
53
84
|
* variables on GitLab.
|
|
54
85
|
*/
|
|
55
86
|
env: Record<string, string>;
|
|
87
|
+
/** Shell lines to run before the command, to settle values the forge may leave unusable. */
|
|
88
|
+
setup?: string[];
|
|
56
89
|
}
|
|
57
|
-
/**
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
90
|
+
/**
|
|
91
|
+
* The two jobs for `forge`. `member` is the workspace member the pipeline is
|
|
92
|
+
* generated for; the commands then run in its directory, so `--output` is
|
|
93
|
+
* relative to it.
|
|
94
|
+
*/
|
|
95
|
+
export declare function prLoopJobs(forge: ForgeKind, env: string, options?: PrLoopPipelineOptions, member?: string): PrLoopJob[];
|
|
96
|
+
/**
|
|
97
|
+
* The concurrency group (GitHub, Forgejo) or resource group (GitLab) that
|
|
98
|
+
* keeps one apply at a time per environment, and per member in a workspace.
|
|
99
|
+
*/
|
|
100
|
+
export declare function prApplyGroup(env: string, member?: string): string;
|
|
101
|
+
/**
|
|
102
|
+
* The cache key the apply job keeps its attempt record under (#3543), with
|
|
103
|
+
* `commit` the forge's expression for the pushed commit. A push of another
|
|
104
|
+
* commit never restores a record, and the environment and member keep each
|
|
105
|
+
* pipeline's record apart. The pull request and the gate digest are not in
|
|
106
|
+
* the key, since neither is known before the job runs; `pr-apply --resume`
|
|
107
|
+
* refuses a record made for another pull request, gate or digest.
|
|
108
|
+
*/
|
|
109
|
+
export declare function prApplyRecordKey(env: string, commit: string, member?: string): string;
|
|
110
|
+
/**
|
|
111
|
+
* GitLab sets `CI_COMMIT_BEFORE_SHA` to forty zeros on a branch's first push.
|
|
112
|
+
* The line replaces it with the merge request's diff base when the pipeline
|
|
113
|
+
* has one, and otherwise with the merge base of the target branch and the
|
|
114
|
+
* pushed commit, or the pushed commit's parent when that is the commit itself.
|
|
115
|
+
*/
|
|
116
|
+
export declare function gitlabBaseFallback(branch?: string): string;
|
|
61
117
|
//# sourceMappingURL=pr-pipeline.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pr-pipeline.d.ts","sourceRoot":"","sources":["../../src/components/pr-pipeline.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"pr-pipeline.d.ts","sourceRoot":"","sources":["../../src/components/pr-pipeline.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAoCG;AAEH,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAG7C,kEAAkE;AAClE,eAAO,MAAM,kBAAkB,cAAc,CAAC;AAE9C;;;;GAIG;AACH,eAAO,MAAM,eAAe,mCAAmC,CAAC;AAEhE;;;;;GAKG;AACH,eAAO,MAAM,aAAa,YAAY,CAAC;AAEvC,8CAA8C;AAC9C,eAAO,MAAM,aAAa,UAEzB,CAAC;AAEF,mHAAmH;AACnH,wBAAgB,WAAW,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,EAAE,CAEnD;AAED,yEAAyE;AACzE,MAAM,WAAW,qBAAqB;IACpC,uDAAuD;IACvD,IAAI,CAAC,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,oGAAoG;IACpG,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB;;;OAGG;IACH,KAAK,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;CAC9B;AAED,8FAA8F;AAC9F,MAAM,WAAW,SAAS;IACxB,yBAAyB;IACzB,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC;IAC1B,2EAA2E;IAC3E,OAAO,EAAE,MAAM,CAAC;IAChB;;;;OAIG;IACH,GAAG,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;IAC5B,4FAA4F;IAC5F,KAAK,CAAC,EAAE,MAAM,EAAE,CAAC;CAClB;AAED;;;;GAIG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,SAAS,EAAE,GAAG,EAAE,MAAM,EAAE,OAAO,GAAE,qBAA0B,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,EAAE,CA2B3H;AAED;;;GAGG;AACH,wBAAgB,YAAY,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAEjE;AAED;;;;;;;GAOG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAErF;AAED;;;;;GAKG;AACH,wBAAgB,kBAAkB,CAAC,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAU1D"}
|
|
@@ -18,13 +18,27 @@
|
|
|
18
18
|
* it against the new value. A change that must carry a moved output through
|
|
19
19
|
* its dependents in one rollout is what gated waves are for (#3049): each
|
|
20
20
|
* wave is planned after the one before it applied.
|
|
21
|
+
*
|
|
22
|
+
* ## Finishing an apply that failed partway
|
|
23
|
+
*
|
|
24
|
+
* {@link resumePrSet} (#3464) is fan-out's resume (#2417, #3049) for a pull
|
|
25
|
+
* request. The attempt record (`./fan-out-record.ts`) keeps the change set
|
|
26
|
+
* the gate approved and the components that applied. A re-run on the same
|
|
27
|
+
* commit narrows the derivation to what is left (`remainingFanOut`), plans
|
|
28
|
+
* only that against the outputs the approved plans read, and checks each
|
|
29
|
+
* member it plans against the approved set. When every one is covered, the
|
|
30
|
+
* gate is decided against the approved digest, which still stands, and only
|
|
31
|
+
* the rest applies. Planning everything again would give the applied members
|
|
32
|
+
* empty plans and the set a new digest, and so ask for a second approval of
|
|
33
|
+
* work already approved.
|
|
21
34
|
*/
|
|
22
35
|
import { type ChangeSetDocument } from "../change-set.js";
|
|
23
36
|
import { type GateCheck, type GateLedgerPort } from "../op/gate.js";
|
|
24
37
|
import { type PrApproval, type PrMember, type PrRefusal, type PrReport, type PrStatus } from "../pr-loop.js";
|
|
25
|
-
import { type DriverComponent } from "./driver.js";
|
|
38
|
+
import { type DriverComponent, type DriverComponentResult } from "./driver.js";
|
|
26
39
|
import { type FanOutRunResult } from "./fan-out-run.js";
|
|
27
|
-
import type
|
|
40
|
+
import { type ComponentChangeSignal, type FanOutPlan } from "./fan-out.js";
|
|
41
|
+
import type { PrApplyRecord } from "./fan-out-record.js";
|
|
28
42
|
import type { CapabilityRegistry } from "./capability.js";
|
|
29
43
|
import type { RunProgressEvent } from "./run-progress.js";
|
|
30
44
|
export interface PrPlanSetOptions {
|
|
@@ -84,9 +98,20 @@ export interface PrApplyOptions {
|
|
|
84
98
|
registry: CapabilityRegistry;
|
|
85
99
|
env: string;
|
|
86
100
|
vars?: Record<string, unknown>;
|
|
87
|
-
/** The set {@link planPrSet} planned and the gate approved. */
|
|
101
|
+
/** The set {@link planPrSet} planned and the gate approved, or {@link resumePrSet}'s set. */
|
|
88
102
|
set: PrPlanSet;
|
|
89
103
|
onProgress?: (event: RunProgressEvent) => void;
|
|
104
|
+
/**
|
|
105
|
+
* What an earlier attempt at this approved set applied (#3464): its
|
|
106
|
+
* components, which are reported applied and not run again, and the
|
|
107
|
+
* outputs they left.
|
|
108
|
+
*/
|
|
109
|
+
resumed?: {
|
|
110
|
+
completed: string[];
|
|
111
|
+
outputs: Record<string, Record<string, unknown>>;
|
|
112
|
+
};
|
|
113
|
+
/** Called as each component settles, so an attempt record survives a kill (`runFanOut`). */
|
|
114
|
+
onComponentSettled?: (result: DriverComponentResult, outputs: Record<string, unknown> | undefined) => void;
|
|
90
115
|
}
|
|
91
116
|
/**
|
|
92
117
|
* Apply the approved plans in dependency order. A failed component blocks
|
|
@@ -97,10 +122,72 @@ export declare function applyPrSet(options: PrApplyOptions): Promise<{
|
|
|
97
122
|
status: "applied" | "failed";
|
|
98
123
|
run: FanOutRunResult;
|
|
99
124
|
}>;
|
|
125
|
+
/**
|
|
126
|
+
* Why `member`'s fresh plan is not covered by the approved change set, or
|
|
127
|
+
* `undefined` when it is. A member left over from a partial apply is covered
|
|
128
|
+
* when it plans to the digest that was approved, or when every change it
|
|
129
|
+
* plans now is one the approved plan made:
|
|
130
|
+
*
|
|
131
|
+
* - an entry at the same address with the same action, or a `create` or a
|
|
132
|
+
* `delete` where a `replace` was approved (the other half applied);
|
|
133
|
+
* - each attribute it writes was written by the approved entry, to the same
|
|
134
|
+
* value or to one the approved plan knew only after apply. A sensitive
|
|
135
|
+
* attribute carries no value to compare, so it is covered only where the
|
|
136
|
+
* approved entry wrote that attribute as sensitive too. On a `create` left
|
|
137
|
+
* from a `replace`, an attribute the replace did not change is not compared;
|
|
138
|
+
* - each side effect is one the approved plan ran.
|
|
139
|
+
*
|
|
140
|
+
* A member with holes the approved plan did not have is never covered by its
|
|
141
|
+
* entries, since its entries may not say everything it will do.
|
|
142
|
+
*/
|
|
143
|
+
export declare function planCoveredBy(approved: ChangeSetDocument, fresh: ChangeSetDocument, member: string): string | undefined;
|
|
144
|
+
export interface PrResumeOptions {
|
|
145
|
+
components: DriverComponent[];
|
|
146
|
+
/** The fan-out the change derives now. The caller has checked it is the one the record was made from. */
|
|
147
|
+
plan: FanOutPlan;
|
|
148
|
+
registry: CapabilityRegistry;
|
|
149
|
+
env: string;
|
|
150
|
+
vars?: Record<string, unknown>;
|
|
151
|
+
seededOutputs?: Record<string, Record<string, unknown>>;
|
|
152
|
+
/** The approved set, from the attempt record. */
|
|
153
|
+
record: PrApplyRecord;
|
|
154
|
+
/** Components an earlier attempt applied. */
|
|
155
|
+
completed: string[];
|
|
156
|
+
}
|
|
157
|
+
export type PrResume = {
|
|
158
|
+
ok: true;
|
|
159
|
+
/** The derivation narrowed to what is left. */
|
|
160
|
+
plan: FanOutPlan;
|
|
161
|
+
/** The approved set, carrying fresh plans for the members left. Its digest is the approved one. */
|
|
162
|
+
set: PrPlanSet;
|
|
163
|
+
/** What the fresh plans of the members left came to. */
|
|
164
|
+
fresh: PrPlanSet;
|
|
165
|
+
} | {
|
|
166
|
+
ok: false;
|
|
167
|
+
/** Why the approved set does not cover what is left, one line per member. */
|
|
168
|
+
reasons: string[];
|
|
169
|
+
fresh?: PrPlanSet;
|
|
170
|
+
};
|
|
171
|
+
/**
|
|
172
|
+
* Plan what an apply that failed partway left (#3464): narrow the plan by
|
|
173
|
+
* the components that applied, plan the rest against the outputs the
|
|
174
|
+
* approved plans read, and check each member against the approved change
|
|
175
|
+
* set ({@link planCoveredBy}). Covered, the result is the approved set with
|
|
176
|
+
* the new plans in it, to decide the gate against `record.digest` and hand
|
|
177
|
+
* to {@link applyPrSet}. Not covered, it says why, and the caller plans
|
|
178
|
+
* everything and asks for a fresh approval.
|
|
179
|
+
*
|
|
180
|
+
* The record now travels between CI jobs through a cache (#3543), so its
|
|
181
|
+
* change set has to be the one its digest names: the document's own digest
|
|
182
|
+
* is `record.digest`, and its members' plan digests give that digest.
|
|
183
|
+
*/
|
|
184
|
+
export declare function resumePrSet(options: PrResumeOptions): Promise<PrResume>;
|
|
100
185
|
export interface PrReportInput {
|
|
101
186
|
stage: "plan" | "apply";
|
|
102
187
|
pr: number | null;
|
|
103
188
|
env: string;
|
|
189
|
+
/** The workspace member whose pipeline runs the stage (#3465). */
|
|
190
|
+
member?: string;
|
|
104
191
|
base: string;
|
|
105
192
|
head: string;
|
|
106
193
|
op: string;
|
|
@@ -113,6 +200,8 @@ export interface PrReportInput {
|
|
|
113
200
|
members?: PrMember[];
|
|
114
201
|
refusal?: PrRefusal;
|
|
115
202
|
message?: string;
|
|
203
|
+
/** Components an earlier attempt at the approved set applied (#3464). */
|
|
204
|
+
resumed?: string[];
|
|
116
205
|
}
|
|
117
206
|
/** The report a stage writes. */
|
|
118
207
|
export declare function prReport(input: PrReportInput): PrReport;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pr-run.d.ts","sourceRoot":"","sources":["../../src/components/pr-run.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"pr-run.d.ts","sourceRoot":"","sources":["../../src/components/pr-run.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiCG;AAEH,OAAO,EAA2C,KAAK,iBAAiB,EAA2C,MAAM,eAAe,CAAC;AACzI,OAAO,EAAgB,KAAK,SAAS,EAAE,KAAK,cAAc,EAAE,MAAM,YAAY,CAAC;AAC/E,OAAO,EAIL,KAAK,UAAU,EACf,KAAK,QAAQ,EACb,KAAK,SAAS,EACd,KAAK,QAAQ,EACb,KAAK,QAAQ,EACd,MAAM,YAAY,CAAC;AACpB,OAAO,EAAiB,KAAK,eAAe,EAAE,KAAK,qBAAqB,EAAE,MAAM,UAAU,CAAC;AAE3F,OAAO,EAAa,KAAK,eAAe,EAAE,MAAM,eAAe,CAAC;AAChE,OAAO,EAAmB,KAAK,qBAAqB,EAAE,KAAK,UAAU,EAAE,MAAM,WAAW,CAAC;AACzF,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,kBAAkB,CAAC;AACtD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC;AACvD,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,gBAAgB,CAAC;AAGvD,MAAM,WAAW,gBAAgB;IAC/B,sCAAsC;IACtC,UAAU,EAAE,eAAe,EAAE,CAAC;IAC9B,qFAAqF;IACrF,IAAI,EAAE,UAAU,CAAC;IACjB,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,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E;IACzE,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC;CACpB;AAED,iCAAiC;AACjC,wBAAgB,QAAQ,CAAC,KAAK,EAAE,aAAa,GAAG,QAAQ,CA6BvD"}
|
package/dist/gated-waves.d.ts
CHANGED
|
@@ -142,6 +142,9 @@ export declare function withWaveRecord(records: readonly WaveRecord[], record: W
|
|
|
142
142
|
/**
|
|
143
143
|
* The refusal for a wave whose set changed after it was approved: the digest
|
|
144
144
|
* that was approved, the one planned now, and that nothing in the wave ran.
|
|
145
|
+
* On a sealed gate the approve hint ends in `--sign`.
|
|
145
146
|
*/
|
|
146
|
-
export declare function describeChangedWave(record: Pick<WaveRecord, "wave" | "op" | "gate" | "digest" | "approved"
|
|
147
|
+
export declare function describeChangedWave(record: Pick<WaveRecord, "wave" | "op" | "gate" | "digest" | "approved">,
|
|
148
|
+
/** True when the gate is sealed (`identity.gates`): an approval without `--sign` doesn't count, so the hint says to sign. */
|
|
149
|
+
sealed?: boolean): string;
|
|
147
150
|
//# sourceMappingURL=gated-waves.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"gated-waves.d.ts","sourceRoot":"","sources":["../src/gated-waves.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAIH,kFAAkF;AAClF,MAAM,WAAW,QAAQ;IACvB,IAAI,EAAE,MAAM,CAAC;IACb,oFAAoF;IACpF,SAAS,CAAC,EAAE,SAAS,MAAM,EAAE,CAAC;CAC/B;AAED,iFAAiF;AACjF,qBAAa,kBAAmB,SAAQ,KAAK;IAEzC,QAAQ,CAAC,MAAM,EAAE,MAAM;IADzB,YACW,MAAM,EAAE,MAAM,EACvB,KAAK,EAAE,SAAS,MAAM,EAAE,EAIzB;CACF;AAED,2EAA2E;AAC3E,qBAAa,cAAe,SAAQ,KAAK;IAC3B,QAAQ,CAAC,OAAO,EAAE,MAAM,EAAE;IAAtC,YAAqB,OAAO,EAAE,MAAM,EAAE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MAAM,CAAA;KAAE,CAAC,CAAC;CACvD;AAOD;;;GAGG;AACH,wBAAgB,eAAe,CAAC,KAAK,EAAE,OAAO,GAAG,UAAU,EAAE,CAgC5D;AAED,kGAAkG;AAClG,wBAAgB,cAAc,CAAC,OAAO,EAAE,SAAS,UAAU,EAAE,EAAE,MAAM,EAAE,UAAU,GAAG,UAAU,EAAE,CAE/F;AAED;;;;GAIG;AACH,wBAAgB,mBAAmB,CACjC,MAAM,EAAE,IAAI,CAAC,UAAU,EAAE,MAAM,GAAG,IAAI,GAAG,MAAM,GAAG,QAAQ,GAAG,UAAU,CAAC;AACxE,6HAA6H;AAC7H,MAAM,UAAQ,GACb,MAAM,CAMR"}
|
package/dist/lexicon.d.ts
CHANGED
|
@@ -33,7 +33,7 @@ import type { DisruptionQuery, DisruptionVerdict } from "./lifecycle/disruption.
|
|
|
33
33
|
import type { OwnerChainVerdict } from "./owner-chain.js";
|
|
34
34
|
import type { CommandGroup } from "./cli/command-group.js";
|
|
35
35
|
import type { Archetype } from "./components/component.js";
|
|
36
|
-
export type { OpRuntimeProvider, OpRunHandle, OpRunRecord, OpRunStartOptions, OpRunState, OpRunStatus, } from "./op/runtime.js";
|
|
36
|
+
export type { OpRuntimeProvider, OpRunHandle, OpRunRecord, OpRunStartOptions, OpGateResolveOptions, OpRunState, OpRunStatus, } from "./op/runtime.js";
|
|
37
37
|
export type { CommandGroup, CommandGroupCommand, CommandGroupContext } from "./cli/command-group.js";
|
|
38
38
|
export type { ReferenceCatalog, IdentityRule, RefRule } from "./graph-refs.js";
|
|
39
39
|
export type { IREdge } from "./graph-ir.js";
|
|
@@ -485,6 +485,12 @@ export interface ComponentPipelineOptions {
|
|
|
485
485
|
* GitLab's job rules) are limited to the member's files and the pipeline
|
|
486
486
|
* file. Its jobs run in the member's directory, and its names carry the
|
|
487
487
|
* member's name so two members' pipelines never collide.
|
|
488
|
+
*
|
|
489
|
+
* A pull-request pipeline (`prLoop`, #3465) takes no path filter: a change
|
|
490
|
+
* outside the member can reach it (a module it calls in another member),
|
|
491
|
+
* so its plan runs on every pull request and selects from the whole
|
|
492
|
+
* change. Its commands pass `--member`, which gives the member its own
|
|
493
|
+
* gate op, note and statuses on the pull request.
|
|
488
494
|
*/
|
|
489
495
|
member?: PipelineMember;
|
|
490
496
|
}
|
|
@@ -800,7 +806,12 @@ export interface ChangedUnitsContext {
|
|
|
800
806
|
projectRoot: string;
|
|
801
807
|
/** The resolved project configuration, for the lexicon's own namespace. */
|
|
802
808
|
config: Record<string, unknown>;
|
|
803
|
-
/**
|
|
809
|
+
/**
|
|
810
|
+
* Files the change added, modified or deleted, relative to `projectRoot`,
|
|
811
|
+
* with `/` separators. Files outside `projectRoot` are listed too, as
|
|
812
|
+
* `../...`, so a unit that calls code outside the project (another
|
|
813
|
+
* workspace member's module, #3465) can claim them.
|
|
814
|
+
*/
|
|
804
815
|
changedFiles: string[];
|
|
805
816
|
}
|
|
806
817
|
export interface BuildRootContext {
|