@intentius/chant 0.124.85 → 0.124.86
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/bundle-check.d.ts +102 -0
- package/dist/bundle-check.d.ts.map +1 -0
- package/dist/bundle-check.js +310 -0
- package/dist/chant-install.d.ts +100 -0
- package/dist/chant-install.d.ts.map +1 -0
- package/dist/chant-install.js +158 -0
- package/dist/ci-commit.d.ts +19 -6
- package/dist/ci-commit.d.ts.map +1 -1
- package/dist/ci-commit.js +23 -4
- package/dist/ci-evidence-jobs.d.ts +54 -0
- package/dist/ci-evidence-jobs.d.ts.map +1 -0
- package/dist/ci-evidence-jobs.js +55 -0
- package/dist/ci-image.d.ts +274 -0
- package/dist/ci-image.d.ts.map +1 -0
- package/dist/ci-image.js +635 -0
- package/dist/ci-login.d.ts +150 -0
- package/dist/ci-login.d.ts.map +1 -0
- package/dist/ci-login.js +240 -0
- package/dist/ci-product.d.ts +16 -0
- package/dist/ci-product.d.ts.map +1 -1
- package/dist/ci-product.js +17 -0
- package/dist/cli/commands/import-index.js +2 -2
- package/dist/cli/handlers/build.d.ts +8 -0
- package/dist/cli/handlers/build.d.ts.map +1 -1
- package/dist/cli/handlers/build.js +22 -4
- package/dist/cli/handlers/ci-check.d.ts.map +1 -1
- package/dist/cli/handlers/ci-check.js +57 -2
- package/dist/cli/handlers/ci-evidence.d.ts +3 -0
- package/dist/cli/handlers/ci-evidence.d.ts.map +1 -0
- package/dist/cli/handlers/ci-evidence.js +171 -0
- package/dist/cli/handlers/components.js +3 -3
- package/dist/cli/handlers/dead-guards.d.ts +3 -0
- package/dist/cli/handlers/dead-guards.d.ts.map +1 -0
- package/dist/cli/handlers/dead-guards.js +35 -0
- package/dist/cli/handlers/graph.js +4 -4
- package/dist/cli/handlers/lifecycle.d.ts +2 -1
- package/dist/cli/handlers/lifecycle.d.ts.map +1 -1
- package/dist/cli/handlers/lifecycle.js +5 -4
- package/dist/cli/handlers/local-chant.d.ts +16 -0
- package/dist/cli/handlers/local-chant.d.ts.map +1 -0
- package/dist/cli/handlers/local-chant.js +109 -0
- package/dist/cli/handlers/operator.js +2 -2
- package/dist/cli/handlers/search.js +5 -5
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +38 -0
- package/dist/cli/parse-args.d.ts.map +1 -1
- package/dist/cli/parse-args.js +28 -0
- package/dist/cli/registry.d.ts +16 -0
- package/dist/cli/registry.d.ts.map +1 -1
- package/dist/components/check-hooks.d.ts +49 -0
- package/dist/components/check-hooks.d.ts.map +1 -1
- package/dist/components/check-hooks.js +64 -4
- package/dist/components/check-steps.d.ts +17 -0
- package/dist/components/check-steps.d.ts.map +1 -1
- package/dist/components/check-steps.js +37 -5
- package/dist/components/product-pipeline.d.ts +23 -0
- package/dist/components/product-pipeline.d.ts.map +1 -1
- package/dist/components/product-pipeline.js +6 -2
- package/dist/components/product-plan.d.ts +137 -0
- package/dist/components/product-plan.d.ts.map +1 -0
- package/dist/components/product-plan.js +143 -0
- package/dist/components/release-compile.d.ts.map +1 -1
- package/dist/components/release-compile.js +2 -2
- package/dist/config.d.ts +39 -1
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +35 -3
- package/dist/dead-guards.d.ts +82 -0
- package/dist/dead-guards.d.ts.map +1 -0
- package/dist/dead-guards.js +436 -0
- package/dist/discovery/files.d.ts +3 -1
- package/dist/discovery/files.d.ts.map +1 -1
- package/dist/discovery/files.js +5 -3
- package/dist/drift-issue.d.ts +152 -0
- package/dist/drift-issue.d.ts.map +1 -0
- package/dist/drift-issue.js +167 -0
- package/dist/floor-table.d.ts +30 -0
- package/dist/floor-table.d.ts.map +1 -0
- package/dist/floor-table.data.d.ts +3 -0
- package/dist/floor-table.data.d.ts.map +1 -0
- package/dist/floor-table.data.js +178 -0
- package/dist/floor-table.js +56 -0
- package/dist/forge-flags.d.ts +90 -0
- package/dist/forge-flags.d.ts.map +1 -0
- package/dist/forge-flags.js +184 -0
- package/dist/lexicon.d.ts +69 -0
- package/dist/lexicon.d.ts.map +1 -1
- package/dist/lifecycle/gated-op.d.ts +7 -1
- package/dist/lifecycle/gated-op.d.ts.map +1 -1
- package/dist/lifecycle/gated-op.js +7 -4
- package/dist/local-chant.d.ts +98 -0
- package/dist/local-chant.d.ts.map +1 -0
- package/dist/local-chant.js +307 -0
- package/dist/op/activities/predict-behaviour.js +2 -2
- package/dist/op/op-waves-evidence-spec.d.ts +13 -0
- package/dist/op/op-waves-evidence-spec.d.ts.map +1 -0
- package/dist/op/op-waves-evidence-spec.js +21 -0
- package/dist/op/op-waves-evidence.d.ts +38 -0
- package/dist/op/op-waves-evidence.d.ts.map +1 -0
- package/dist/op/op-waves-evidence.js +57 -0
- package/dist/op/op-waves-run.d.ts +4 -0
- package/dist/op/op-waves-run.d.ts.map +1 -1
- package/dist/op/op-waves-run.js +24 -1
- package/dist/op/op-waves.d.ts +17 -1
- package/dist/op/op-waves.d.ts.map +1 -1
- package/dist/op/op-waves.js +23 -0
- package/dist/op/schedule-overdue.d.ts +41 -9
- package/dist/op/schedule-overdue.d.ts.map +1 -1
- package/dist/op/schedule-overdue.js +154 -25
- package/dist/plan-summary.d.ts +25 -0
- package/dist/plan-summary.d.ts.map +1 -1
- package/dist/plan-summary.js +31 -0
- package/dist/pr-plan-note.d.ts +35 -0
- package/dist/pr-plan-note.d.ts.map +1 -1
- package/dist/pr-plan-note.js +10 -0
- package/dist/pr-post.d.ts +23 -0
- package/dist/pr-post.d.ts.map +1 -1
- package/dist/pr-post.js +125 -3
- package/dist/release-floors.d.ts +31 -1
- package/dist/release-floors.d.ts.map +1 -1
- package/dist/release-floors.js +31 -1
- package/dist/state-migration.d.ts +24 -0
- package/dist/state-migration.d.ts.map +1 -1
- package/dist/state-migration.js +100 -5
- package/dist/wave-runtime.mjs +305 -298
- package/dist/workspace/lexicon-outputs.d.ts.map +1 -1
- package/dist/workspace/lexicon-outputs.js +21 -7
- package/dist/workspace/reason-codes.d.ts +3 -0
- package/dist/workspace/reason-codes.d.ts.map +1 -1
- package/dist/workspace/reason-codes.js +4 -0
- package/dist/workspace/ref-gate.schema.json +85 -0
- package/dist/workspace/search-contract.d.ts +1 -1
- package/dist/workspace/search-contract.d.ts.map +1 -1
- package/dist/workspace/trust/check-evidence-report.d.ts +51 -0
- package/dist/workspace/trust/check-evidence-report.d.ts.map +1 -0
- package/dist/workspace/trust/check-evidence-report.js +102 -0
- package/dist/workspace/trust/check-evidence.d.ts +126 -0
- package/dist/workspace/trust/check-evidence.d.ts.map +1 -0
- package/dist/workspace/trust/check-evidence.js +237 -0
- package/dist/workspace/trust/local-evidence.d.ts +120 -0
- package/dist/workspace/trust/local-evidence.d.ts.map +1 -0
- package/dist/workspace/trust/local-evidence.js +259 -0
- package/dist/workspace/trust/policy.d.ts +84 -0
- package/dist/workspace/trust/policy.d.ts.map +1 -1
- package/dist/workspace/trust/policy.js +94 -1
- package/dist/workspace/trust/ref-gate-cli.d.ts +33 -0
- package/dist/workspace/trust/ref-gate-cli.d.ts.map +1 -0
- package/dist/workspace/trust/ref-gate-cli.js +234 -0
- package/dist/workspace/trust/ref-gate-fixture.d.ts +38 -0
- package/dist/workspace/trust/ref-gate-fixture.d.ts.map +1 -0
- package/dist/workspace/trust/ref-gate-fixture.js +97 -0
- package/dist/workspace/trust/ref-gate.d.ts +187 -0
- package/dist/workspace/trust/ref-gate.d.ts.map +1 -0
- package/dist/workspace/trust/ref-gate.js +430 -0
- package/dist/workspace/trust/trust-files.d.ts.map +1 -1
- package/dist/workspace/trust/trust-files.js +18 -1
- package/package.json +1 -1
- package/src/bundle-check.test.ts +140 -0
- package/src/bundle-check.ts +352 -0
- package/src/chant-install.test.ts +112 -0
- package/src/chant-install.ts +179 -0
- package/src/ci-commit.test.ts +45 -0
- package/src/ci-commit.ts +38 -4
- package/src/ci-evidence-jobs.ts +67 -0
- package/src/ci-image.test.ts +506 -0
- package/src/ci-image.ts +822 -0
- package/src/ci-login.test.ts +235 -0
- package/src/ci-login.ts +307 -0
- package/src/ci-product.ts +18 -0
- package/src/cli/commands/__fixtures__/source-dir-include/chant.config.json +1 -0
- package/src/cli/commands/__fixtures__/source-dir-include/infra.ts +1 -0
- package/src/cli/commands/__fixtures__/source-dir-include/scripts/run-on-load.ts +3 -0
- package/src/cli/commands/__fixtures__/source-dir-root/chant.config.json +1 -0
- package/src/cli/commands/__fixtures__/source-dir-root/infra.test.ts +1 -0
- package/src/cli/commands/__fixtures__/source-dir-root/infra.ts +1 -0
- package/src/cli/commands/__fixtures__/source-dir-root/scripts/run-on-load.ts +3 -0
- package/src/cli/commands/__fixtures__/source-dir-scoped/app.ts +3 -0
- package/src/cli/commands/__fixtures__/source-dir-scoped/chant.config.json +1 -0
- package/src/cli/commands/__fixtures__/source-dir-scoped/infra/net.ts +1 -0
- package/src/cli/commands/__fixtures__/source-dir-scoped/scripts/run-on-load.ts +3 -0
- package/src/cli/commands/import-index.ts +2 -2
- package/src/cli/handlers/build-source-dir.test.ts +64 -0
- package/src/cli/handlers/build.ts +21 -4
- package/src/cli/handlers/ci-check.ts +56 -3
- package/src/cli/handlers/ci-evidence.ts +162 -0
- package/src/cli/handlers/components.ts +3 -3
- package/src/cli/handlers/dead-guards.ts +37 -0
- package/src/cli/handlers/graph.ts +4 -4
- package/src/cli/handlers/lifecycle.ts +5 -4
- package/src/cli/handlers/local-chant.ts +106 -0
- package/src/cli/handlers/operator.ts +2 -2
- package/src/cli/handlers/search.ts +5 -5
- package/src/cli/main.test.ts +7 -0
- package/src/cli/main.ts +38 -0
- package/src/cli/parse-args.ts +21 -0
- package/src/cli/registry.ts +16 -0
- package/src/components/check-evidence-stage.test.ts +80 -0
- package/src/components/check-hooks.ts +84 -4
- package/src/components/check-local-evidence-stage.test.ts +141 -0
- package/src/components/check-steps.ts +56 -6
- package/src/components/product-pipeline.ts +28 -3
- package/src/components/product-plan.test.ts +87 -0
- package/src/components/product-plan.ts +226 -0
- package/src/components/release-compile.ts +2 -2
- package/src/config.ts +44 -3
- package/src/dead-guards.test.ts +206 -0
- package/src/dead-guards.ts +446 -0
- package/src/discovery/files.ts +5 -3
- package/src/drift-issue-bundle.test.ts +31 -0
- package/src/drift-issue.test.ts +206 -0
- package/src/drift-issue.ts +274 -0
- package/src/fit-note.test.ts +44 -0
- package/src/floor-table.data.ts +180 -0
- package/src/floor-table.ts +77 -0
- package/src/forge-flags.test.ts +110 -0
- package/src/forge-flags.ts +208 -0
- package/src/gate-decision-bundle.test.ts +1 -0
- package/src/lexicon.ts +68 -0
- package/src/lifecycle/gated-op.ts +10 -5
- package/src/local-chant.e2e.test.ts +94 -0
- package/src/local-chant.test.ts +162 -0
- package/src/local-chant.ts +341 -0
- package/src/op/activities/predict-behaviour.ts +2 -2
- package/src/op/op-waves-evidence-spec.ts +24 -0
- package/src/op/op-waves-evidence.test.ts +130 -0
- package/src/op/op-waves-evidence.ts +57 -0
- package/src/op/op-waves-run.ts +25 -1
- package/src/op/op-waves.ts +31 -1
- package/src/op/schedule-overdue.test.ts +85 -0
- package/src/op/schedule-overdue.ts +162 -26
- package/src/plan-summary.ts +40 -0
- package/src/pr-plan-note.ts +34 -0
- package/src/pr-post-plan-note.test.ts +146 -0
- package/src/pr-post.ts +127 -3
- package/src/release-floors.ts +44 -1
- package/src/stage-hooks-bundle.test.ts +1 -0
- package/src/state-migration.test.ts +52 -1
- package/src/state-migration.ts +107 -5
- package/src/workspace/lexicon-outputs.ts +23 -6
- package/src/workspace/reason-codes.test.ts +3 -0
- package/src/workspace/reason-codes.ts +4 -0
- package/src/workspace/ref-gate.schema.json +85 -0
- package/src/workspace/trust/check-evidence-report.ts +106 -0
- package/src/workspace/trust/check-evidence.test.ts +133 -0
- package/src/workspace/trust/check-evidence.ts +257 -0
- package/src/workspace/trust/local-evidence.test.ts +127 -0
- package/src/workspace/trust/local-evidence.ts +266 -0
- package/src/workspace/trust/policy.ts +134 -1
- package/src/workspace/trust/ref-gate-cli.ts +244 -0
- package/src/workspace/trust/ref-gate-fixture.ts +125 -0
- package/src/workspace/trust/ref-gate.e2e.test.ts +76 -0
- package/src/workspace/trust/ref-gate.test.ts +247 -0
- package/src/workspace/trust/ref-gate.ts +538 -0
- package/src/workspace/trust/trust-files.test.ts +16 -0
- package/src/workspace/trust/trust-files.ts +41 -1
package/dist/plan-summary.d.ts
CHANGED
|
@@ -54,6 +54,7 @@
|
|
|
54
54
|
* imports `./lifecycle/plan-digest` and types only, as `./change-set` does,
|
|
55
55
|
* and `change-set-bundle.test.ts` holds that.
|
|
56
56
|
*/
|
|
57
|
+
import type { ForgeKind } from "./pr-forge.js";
|
|
57
58
|
import type { ChangeSetAction, ChangeSetDocument, ChangeSetSideEffect } from "./change-set.js";
|
|
58
59
|
/** The schema a plan summary names in `$schema`. */
|
|
59
60
|
export declare const PLAN_SUMMARY_SCHEMA_ID = "https://intentius.io/chant/schemas/workspace/plan-summary/v1/plan-summary.schema.json";
|
|
@@ -70,6 +71,30 @@ export declare const GITHUB_COMMENT_LIMIT = 65536;
|
|
|
70
71
|
* "Limited to 1,000,000 characters" (https://docs.gitlab.com/api/notes/).
|
|
71
72
|
*/
|
|
72
73
|
export declare const GITLAB_NOTE_LIMIT = 1000000;
|
|
74
|
+
/**
|
|
75
|
+
* The most characters a note on `forge` may hold (#4800): {@link GITLAB_NOTE_LIMIT}
|
|
76
|
+
* on GitLab, {@link GITHUB_COMMENT_LIMIT} on GitHub and Forgejo, and on a
|
|
77
|
+
* forge not known yet, so a note that fits there fits everywhere.
|
|
78
|
+
*/
|
|
79
|
+
export declare function noteLimit(forge?: ForgeKind): number;
|
|
80
|
+
export interface FitNoteOptions {
|
|
81
|
+
/** The most characters the note may hold, closing line included. Default {@link GITHUB_COMMENT_LIMIT}. */
|
|
82
|
+
limit?: number;
|
|
83
|
+
/** What follows the cut, in the product's words; `{cut}` becomes the characters kept. Default {@link NOTE_CUT_LINE}. */
|
|
84
|
+
tail?: string;
|
|
85
|
+
}
|
|
86
|
+
/** What {@link fitNote} writes after a cut. */
|
|
87
|
+
export declare const NOTE_CUT_LINE = "\n\nThe note was cut at {cut} characters; the run's report has all of it.";
|
|
88
|
+
/**
|
|
89
|
+
* `body` as it is when it fits `limit`, else its start and the closing line,
|
|
90
|
+
* the two together at most `limit` (#4800). Length is counted in UTF-16 units,
|
|
91
|
+
* JavaScript's `length`, which is never less than the code points a forge
|
|
92
|
+
* counts, and the cut never splits a surrogate pair. This is the one
|
|
93
|
+
* truncation products call in place of their own `MAX_NOTE` and
|
|
94
|
+
* `COMMENT_LIMIT` copies; a renderer that drops whole blocks, as
|
|
95
|
+
* {@link renderPlanSummaryMarkdown} does, compares against {@link noteLimit}.
|
|
96
|
+
*/
|
|
97
|
+
export declare function fitNote(body: string, options?: FitNoteOptions): string;
|
|
73
98
|
/** What a group's units are: whole members, or the instances of one member. */
|
|
74
99
|
export type PlanSummaryUnit = "member" | "instance";
|
|
75
100
|
/** One distinct normalized change of a group. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plan-summary.d.ts","sourceRoot":"","sources":["../src/plan-summary.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAuDG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAsB,iBAAiB,EAAmC,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEjJ,oDAAoD;AACpD,eAAO,MAAM,sBAAsB,0FAA0F,CAAC;AAE9H,qDAAqD;AACrD,eAAO,MAAM,qBAAqB,IAAI,CAAC;AAEvC;;;;GAIG;AACH,eAAO,MAAM,oBAAoB,QAAS,CAAC;AAE3C;;;GAGG;AACH,eAAO,MAAM,iBAAiB,UAAY,CAAC;AAE3C,+EAA+E;AAC/E,MAAM,MAAM,eAAe,GAAG,QAAQ,GAAG,UAAU,CAAC;AAEpD,iDAAiD;AACjD,MAAM,WAAW,iBAAiB;IAChC,kGAAkG;IAClG,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,eAAe,CAAC;IACxB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AA+F;IAC/F,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC7B,mGAAmG;IACnG,OAAO,EAAE,iBAAiB,EAAE,CAAC;IAC7B,4EAA4E;IAC5E,WAAW,EAAE,qBAAqB,EAAE,CAAC;IACrC,KAAK,EAAE,eAAe,EAAE,CAAC;CAC1B;AAED,MAAM,WAAW,qBAAqB;IACpC,6IAA6I;IAC7I,IAAI,CAAC,EAAE,eAAe,CAAC;CACxB;AA6ED,+HAA+H;AAC/H,wBAAgB,iBAAiB,CAAC,OAAO,EAAE,MAAM,GAAG;IAAE,IAAI,EAAE,MAAM,CAAC;IAAC,IAAI,EAAE,MAAM,EAAE,CAAA;CAAE,CA6BnF;AA2BD,6DAA6D;AAC7D,wBAAgB,mBAAmB,CAAC,OAAO,EAAE,MAAM,GAAG,MAAM,CAgB3D;AAoSD;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,GAAG,EAAE,iBAAiB,EAAE,OAAO,GAAE,qBAA0B,GAAG,WAAW,CA2BvG;AAUD,mEAAmE;AACnE,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,WAAW,GAAG,MAAM,CAW1D;AA4CD,6FAA6F;AAC7F,wBAAgB,qBAAqB,CAAC,CAAC,EAAE,WAAW,GAAG,MAAM,CAmC5D;AAED,MAAM,WAAW,qBAAqB;IACpC,iGAAiG;IACjG,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,6EAA6E;IAC7E,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAUD;;;;;;;;;;GAUG;AACH,wBAAgB,yBAAyB,CAAC,CAAC,EAAE,WAAW,EAAE,OAAO,GAAE,qBAA0B,GAAG,MAAM,CA2DrG"}
|
package/dist/plan-summary.js
CHANGED
|
@@ -70,6 +70,37 @@ export const GITHUB_COMMENT_LIMIT = 65536;
|
|
|
70
70
|
* "Limited to 1,000,000 characters" (https://docs.gitlab.com/api/notes/).
|
|
71
71
|
*/
|
|
72
72
|
export const GITLAB_NOTE_LIMIT = 1000000;
|
|
73
|
+
/**
|
|
74
|
+
* The most characters a note on `forge` may hold (#4800): {@link GITLAB_NOTE_LIMIT}
|
|
75
|
+
* on GitLab, {@link GITHUB_COMMENT_LIMIT} on GitHub and Forgejo, and on a
|
|
76
|
+
* forge not known yet, so a note that fits there fits everywhere.
|
|
77
|
+
*/
|
|
78
|
+
export function noteLimit(forge) {
|
|
79
|
+
return forge === "gitlab" ? GITLAB_NOTE_LIMIT : GITHUB_COMMENT_LIMIT;
|
|
80
|
+
}
|
|
81
|
+
/** What {@link fitNote} writes after a cut. */
|
|
82
|
+
export const NOTE_CUT_LINE = "\n\nThe note was cut at {cut} characters; the run's report has all of it.";
|
|
83
|
+
/**
|
|
84
|
+
* `body` as it is when it fits `limit`, else its start and the closing line,
|
|
85
|
+
* the two together at most `limit` (#4800). Length is counted in UTF-16 units,
|
|
86
|
+
* JavaScript's `length`, which is never less than the code points a forge
|
|
87
|
+
* counts, and the cut never splits a surrogate pair. This is the one
|
|
88
|
+
* truncation products call in place of their own `MAX_NOTE` and
|
|
89
|
+
* `COMMENT_LIMIT` copies; a renderer that drops whole blocks, as
|
|
90
|
+
* {@link renderPlanSummaryMarkdown} does, compares against {@link noteLimit}.
|
|
91
|
+
*/
|
|
92
|
+
export function fitNote(body, options = {}) {
|
|
93
|
+
const limit = options.limit ?? GITHUB_COMMENT_LIMIT;
|
|
94
|
+
if (body.length <= limit)
|
|
95
|
+
return body;
|
|
96
|
+
const tail = options.tail ?? NOTE_CUT_LINE;
|
|
97
|
+
let cut = Math.max(0, limit - tail.replaceAll("{cut}", String(limit)).length);
|
|
98
|
+
const code = body.charCodeAt(cut - 1);
|
|
99
|
+
if (code >= 0xd800 && code <= 0xdbff)
|
|
100
|
+
cut--;
|
|
101
|
+
const closing = tail.replaceAll("{cut}", String(cut));
|
|
102
|
+
return (body.slice(0, cut) + closing).slice(0, limit);
|
|
103
|
+
}
|
|
73
104
|
// ── normalization ────────────────────────────────────────────────────────────
|
|
74
105
|
const ESTATE = "<estate>";
|
|
75
106
|
const ADDRESS = "<address>";
|
package/dist/pr-plan-note.d.ts
CHANGED
|
@@ -28,6 +28,41 @@ import { type CiProductWords } from "./ci-product-words.js";
|
|
|
28
28
|
export declare const PR_PLAN_NOTE_FLOOR = "0.124.78";
|
|
29
29
|
/** The read contract a {@link PrPlanNote} follows. */
|
|
30
30
|
export declare const PR_PLAN_NOTE_CONTRACT = 1;
|
|
31
|
+
/**
|
|
32
|
+
* The file a product's plan verb writes its plan note hand-off to (#4799),
|
|
33
|
+
* beside where `pr-plan` writes `pr-plan.json`: chant's plan-note job posts
|
|
34
|
+
* it with `pr-post`.
|
|
35
|
+
*/
|
|
36
|
+
export declare const PR_PLAN_NOTE_FILE = "pr-plan-note.json";
|
|
37
|
+
/**
|
|
38
|
+
* A product's plan note, handed from its plan job to chant's plan-note job
|
|
39
|
+
* (#4799). `pr-post` checks `pr`, `head`, `env` and `member` against its own
|
|
40
|
+
* flags, renders `note` with the pipeline's note words, and sets the plan
|
|
41
|
+
* status to `state` with `description`, or to failure when the plan job
|
|
42
|
+
* failed. Everything in it is read as data: it was written by the change's
|
|
43
|
+
* code.
|
|
44
|
+
*/
|
|
45
|
+
export interface PrPlanNoteHandoff {
|
|
46
|
+
kind: "plan-note-handoff";
|
|
47
|
+
contract: typeof PR_PLAN_NOTE_CONTRACT;
|
|
48
|
+
pr: number;
|
|
49
|
+
/** The commit planned: the same as `note.head`. */
|
|
50
|
+
head: string;
|
|
51
|
+
env: string;
|
|
52
|
+
/** The target (an environment, a member) the note is for, as `pr-post --member` names it. */
|
|
53
|
+
member?: string;
|
|
54
|
+
state: "success" | "failure" | "pending";
|
|
55
|
+
description: string;
|
|
56
|
+
note: PrPlanNote;
|
|
57
|
+
}
|
|
58
|
+
/** The hand-off for `note` (#4799), as a product's plan verb writes it to {@link PR_PLAN_NOTE_FILE}. */
|
|
59
|
+
export declare function planNoteHandoff(note: PrPlanNote, at: {
|
|
60
|
+
pr: number;
|
|
61
|
+
env: string;
|
|
62
|
+
member?: string;
|
|
63
|
+
state: PrPlanNoteHandoff["state"];
|
|
64
|
+
description: string;
|
|
65
|
+
}): PrPlanNoteHandoff;
|
|
31
66
|
/** One change line of a group, as chant's plan summary groups them. */
|
|
32
67
|
export interface PrPlanNoteChange {
|
|
33
68
|
line: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pr-plan-note.d.ts","sourceRoot":"","sources":["../src/pr-plan-note.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;GAuBG;AAEH,OAAO,EAAE,YAAY,IAAI,gBAAgB,EAAE,KAAK,QAAQ,EAAE,MAAM,WAAW,CAAC;AAE5E,OAAO,EAAiD,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAExG,0DAA0D;AAC1D,eAAO,MAAM,kBAAkB,aAAa,CAAC;AAE7C,sDAAsD;AACtD,eAAO,MAAM,qBAAqB,IAAI,CAAC;AAEvC,uEAAuE;AACvE,MAAM,WAAW,gBAAgB;IAC/B,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,EAAE,MAAM,CAAC;IACd,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,MAAM,EAAE,CAAC;CACtB;AAED,6CAA6C;AAC7C,MAAM,WAAW,eAAe;IAC9B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,gFAAgF;IAChF,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,+FAA+F;IAC/F,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,+DAA+D;IAC/D,OAAO,EAAE,gBAAgB,EAAE,CAAC;IAC5B,8GAA8G;IAC9G,IAAI,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAC;QA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AAE,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE;QAAE,MAAM,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;QAAC,KAAK,EAAE,OAAO,CAAA;KAAE,EAAE,CAAC;IAAC,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAA;CAAE,GAAG,MAAM,CAEtK;AAmBD;;;;;;;GAOG;AACH,wBAAgB,cAAc,CAAC,MAAM,EAAE,UAAU,EAAE,OAAO,GAAE,eAAoB,GAAG,MAAM,CAqOxF"}
|
package/dist/pr-plan-note.js
CHANGED
|
@@ -29,6 +29,16 @@ import { activeProductWords, approveLine, overrideLine } from "./ci-product-word
|
|
|
29
29
|
export const PR_PLAN_NOTE_FLOOR = "0.124.78";
|
|
30
30
|
/** The read contract a {@link PrPlanNote} follows. */
|
|
31
31
|
export const PR_PLAN_NOTE_CONTRACT = 1;
|
|
32
|
+
/**
|
|
33
|
+
* The file a product's plan verb writes its plan note hand-off to (#4799),
|
|
34
|
+
* beside where `pr-plan` writes `pr-plan.json`: chant's plan-note job posts
|
|
35
|
+
* it with `pr-post`.
|
|
36
|
+
*/
|
|
37
|
+
export const PR_PLAN_NOTE_FILE = "pr-plan-note.json";
|
|
38
|
+
/** The hand-off for `note` (#4799), as a product's plan verb writes it to {@link PR_PLAN_NOTE_FILE}. */
|
|
39
|
+
export function planNoteHandoff(note, at) {
|
|
40
|
+
return { kind: "plan-note-handoff", contract: PR_PLAN_NOTE_CONTRACT, pr: at.pr, head: note.head, env: at.env, ...(at.member !== undefined ? { member: at.member } : {}), state: at.state, description: at.description, note };
|
|
41
|
+
}
|
|
32
42
|
const NOTE_WORDS = {
|
|
33
43
|
footer: "",
|
|
34
44
|
page: "report.html",
|
package/dist/pr-post.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ import { type PrOverdue, type PrReport } from "./pr-loop.js";
|
|
|
32
32
|
import { type PrForge } from "./pr-forge.js";
|
|
33
33
|
import { type CiProductWords } from "./ci-product-words.js";
|
|
34
34
|
import { type ControlEdgeFacts } from "./control/edges.js";
|
|
35
|
+
import { type PrPlanNoteHandoff, type PrPlanNoteWords } from "./pr-plan-note.js";
|
|
35
36
|
/** The plan report's file under the report directory. */
|
|
36
37
|
export declare const PR_PLAN_REPORT_FILE = "pr-plan.json";
|
|
37
38
|
/** What {@link postPlanReport} posts for. */
|
|
@@ -75,6 +76,12 @@ export interface PlanPostInput {
|
|
|
75
76
|
* Forgejo: the note, without its hidden lines, is added to it.
|
|
76
77
|
*/
|
|
77
78
|
summaryFile?: string;
|
|
79
|
+
/**
|
|
80
|
+
* The words a product's plan note hand-off renders with (#4799). Default:
|
|
81
|
+
* the JSON in `CHANT_PLAN_NOTE_WORDS`, which the generated note job sets
|
|
82
|
+
* from the pipeline, never from the report.
|
|
83
|
+
*/
|
|
84
|
+
noteWords?: PrPlanNoteWords;
|
|
78
85
|
}
|
|
79
86
|
/** What {@link postPlanReport} did. */
|
|
80
87
|
export interface PlanPostResult {
|
|
@@ -113,6 +120,22 @@ export declare function planNoteSummary(note: string): string;
|
|
|
113
120
|
* the caller's sets a failed status and posts no note.
|
|
114
121
|
*/
|
|
115
122
|
export declare function postPlanReport(input: PlanPostInput): Promise<PlanPostResult>;
|
|
123
|
+
/**
|
|
124
|
+
* Read a product's plan note hand-off under `dir` (#4799) and check it is the
|
|
125
|
+
* one the caller ran, as {@link readPlanReport} checks a report.
|
|
126
|
+
*/
|
|
127
|
+
export declare function readPlanNoteHandoff(input: Pick<PlanPostInput, "dir" | "pr" | "head" | "env" | "member">): {
|
|
128
|
+
handoff: PrPlanNoteHandoff;
|
|
129
|
+
} | {
|
|
130
|
+
refused: string;
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* The note for a product's plan note hand-off (#4799): rendered here with
|
|
134
|
+
* the pipeline's note words, every `<!--` after the marker line defused as
|
|
135
|
+
* {@link planNoteFor} does, except the waves marker chant itself rendered
|
|
136
|
+
* from the note's waves, which the product reads back.
|
|
137
|
+
*/
|
|
138
|
+
export declare function planNoteHandoffNote(handoff: PrPlanNoteHandoff, forge: Pick<PrForge, "kind">, marker: string, noteWords?: PrPlanNoteWords, baseTip?: string): string;
|
|
116
139
|
/**
|
|
117
140
|
* Post the plan note, or update it. Under a product's words that carry
|
|
118
141
|
* `adoptMarkers` (#4550), a pull request with no chant note yet but a note the
|
package/dist/pr-post.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"pr-post.d.ts","sourceRoot":"","sources":["../src/pr-post.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA6BG;AAKH,OAAO,EAAmF,KAAK,SAAS,EAAE,KAAK,QAAQ,EAAE,MAAM,WAAW,CAAC;AAC3I,OAAO,EAAoB,KAAK,OAAO,EAAE,MAAM,YAAY,CAAC;AAE5D,OAAO,EAAmC,KAAK,cAAc,EAAE,MAAM,oBAAoB,CAAC;AAC1F,OAAO,EAAkD,KAAK,gBAAgB,EAAE,MAAM,iBAAiB,CAAC;AAExG,yDAAyD;AACzD,eAAO,MAAM,mBAAmB,iBAAiB,CAAC;AAElD,6CAA6C;AAC7C,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,OAAO,CAAC;IACf,4DAA4D;IAC5D,GAAG,EAAE,MAAM,CAAC;IACZ,gDAAgD;IAChD,EAAE,EAAE,MAAM,CAAC;IACX,mEAAmE;IACnE,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,mFAAmF;IACnF,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;;OAGG;IACH,OAAO,CAAC,EAAE,MAAM,OAAO,CAAC,SAAS,EAAE,CAAC,CAAC;IACrC;;;;OAIG;IACH,YAAY,CAAC,EAAE,MAAM,OAAO,CAAC,gBAAgB,GAAG,SAAS,CAAC,CAAC;IAC3D;;;;OAIG;IACH,WAAW,CAA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YAAY;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,0GAA0G;IAC1G,MAAM,CAAC,EAAE,cAAc,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;;GASG;AACH,wBAAsB,mBAAmB,CAAC,KAAK,EAAE,iBAAiB,GAAG,OAAO,CAAC;IAAE,KAAK,EAAE,YAAY,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,CAkD1H;AAED,yCAAyC;AACzC,MAAM,WAAW,cAAc;IAC7B,iFAAiF;IACjF,KAAK,EAAE,OAAO,CAAC;IACf,oCAAoC;IACpC,MAAM,EAAE,MAAM,CAAC;IACf,kCAAkC;IAClC,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,+FAA+F;IAC/F,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,KAAK,CAAC,EAAE,cAAc,CAAC;CACxB;AAED,4DAA4D;AAC5D,MAAM,WAAW,SAAS;IACxB,EAAE,EAAE,MAAM,CAAC;IACX,wDAAwD;IACxD,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,6BAA6B;IAC7B,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED;;;;;;;;GAQG;AACH,wBAAsB,cAAc,CAAC,KAAK,EAAE,cAAc,GAAG,OAAO,CAAC;IAAE,KAAK,EAAE,SAAS,EAAE,CAAC;IAAC,QAAQ,EAAE,MAAM,EAAE,CAAA;CAAE,CAAC,CAiD/G"}
|
package/dist/pr-post.js
CHANGED
|
@@ -36,6 +36,8 @@ import { forgePrincipalOf } from "./pr-forge.js";
|
|
|
36
36
|
import { GITHUB_COMMENT_LIMIT, GITLAB_NOTE_LIMIT } from "./plan-summary.js";
|
|
37
37
|
import { activeProductWords, commentLine } from "./ci-product-words.js";
|
|
38
38
|
import { controlEdgeFactsFromEnv, remarkCrossStackEdges } from "./control/edges.js";
|
|
39
|
+
import { checkEvidenceNoteLine } from "./workspace/trust/check-evidence-report.js";
|
|
40
|
+
import { isPlanNote, planNoteMarker, PR_PLAN_NOTE_CONTRACT, PR_PLAN_NOTE_FILE, renderPlanNote } from "./pr-plan-note.js";
|
|
39
41
|
/** The plan report's file under the report directory. */
|
|
40
42
|
export const PR_PLAN_REPORT_FILE = "pr-plan.json";
|
|
41
43
|
const SHA = /^[0-9a-f]{40}$/;
|
|
@@ -114,6 +116,9 @@ const cut = (text, max = 140) => (text.length > max ? `${text.slice(0, max - 3)}
|
|
|
114
116
|
* the caller's sets a failed status and posts no note.
|
|
115
117
|
*/
|
|
116
118
|
export async function postPlanReport(input) {
|
|
119
|
+
// #4799: a product's plan verb wrote its plan note hand-off in place of pr-plan's report.
|
|
120
|
+
if (!existsSync(join(input.dir, PR_PLAN_REPORT_FILE)) && existsSync(join(input.dir, PR_PLAN_NOTE_FILE)))
|
|
121
|
+
return postPlanNoteHandoff(input);
|
|
117
122
|
const warnings = [];
|
|
118
123
|
const context = prStatusContext("plan", input.member);
|
|
119
124
|
const read = readPlanReport(input);
|
|
@@ -157,12 +162,33 @@ export async function postPlanReport(input) {
|
|
|
157
162
|
description = cut(`the plan job failed; ${description}`);
|
|
158
163
|
}
|
|
159
164
|
}
|
|
165
|
+
note = await postOutcome(input, context, state, description, note, refused, warnings);
|
|
166
|
+
if (input.description && "report" in read && !failedJob) {
|
|
167
|
+
try {
|
|
168
|
+
await input.description(read.report);
|
|
169
|
+
}
|
|
170
|
+
catch (err) {
|
|
171
|
+
warnings.push(`the description check did not run: ${err instanceof Error ? err.message : String(err)}`);
|
|
172
|
+
}
|
|
173
|
+
}
|
|
174
|
+
return { state, description: cut(description), noted: note !== undefined, ...(refused ? { refused } : {}), warnings };
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* Set the plan status, post the note when there is one, and add it to the
|
|
178
|
+
* job summary (#4295, #4628). Returns the note, or undefined when posting
|
|
179
|
+
* it failed.
|
|
180
|
+
*/
|
|
181
|
+
async function postOutcome(input, context, state, description, note, refused, warnings) {
|
|
160
182
|
try {
|
|
161
183
|
await input.forge.setStatus(input.head, { context, state, description: cut(description), ...(input.forge.runUrl ? { url: input.forge.runUrl } : {}) });
|
|
162
184
|
}
|
|
163
185
|
catch (err) {
|
|
164
186
|
warnings.push(`could not set the ${context} status: ${err instanceof Error ? err.message : String(err)}`);
|
|
165
187
|
}
|
|
188
|
+
// #4870: the checks the note job signed evidence for, when it signed any.
|
|
189
|
+
const evidence = note !== undefined ? checkEvidenceNoteLine(input.dir) : undefined;
|
|
190
|
+
if (note !== undefined && evidence)
|
|
191
|
+
note = `${note}${note.endsWith("\n") ? "" : "\n"}\n${evidence}\n`;
|
|
166
192
|
if (note !== undefined) {
|
|
167
193
|
try {
|
|
168
194
|
await upsertPlanNote(input.forge, input.pr, prNoteMarker(input.env, input.member), note);
|
|
@@ -181,14 +207,106 @@ export async function postPlanReport(input) {
|
|
|
181
207
|
warnings.push(`could not write the job summary: ${err instanceof Error ? err.message : String(err)}`);
|
|
182
208
|
}
|
|
183
209
|
}
|
|
184
|
-
|
|
210
|
+
return note;
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Read a product's plan note hand-off under `dir` (#4799) and check it is the
|
|
214
|
+
* one the caller ran, as {@link readPlanReport} checks a report.
|
|
215
|
+
*/
|
|
216
|
+
export function readPlanNoteHandoff(input) {
|
|
217
|
+
let doc;
|
|
218
|
+
try {
|
|
219
|
+
doc = JSON.parse(readFileSync(join(input.dir, PR_PLAN_NOTE_FILE), "utf-8"));
|
|
220
|
+
}
|
|
221
|
+
catch (err) {
|
|
222
|
+
return { refused: `the plan note does not read: ${err instanceof Error ? err.message : String(err)}` };
|
|
223
|
+
}
|
|
224
|
+
if (!doc || typeof doc !== "object" || Array.isArray(doc))
|
|
225
|
+
return { refused: "the plan note is not an object" };
|
|
226
|
+
const r = doc;
|
|
227
|
+
if (r.kind !== "plan-note-handoff")
|
|
228
|
+
return { refused: `the file is not a plan note hand-off (kind ${JSON.stringify(r.kind)})` };
|
|
229
|
+
if (r.contract !== PR_PLAN_NOTE_CONTRACT)
|
|
230
|
+
return { refused: `the plan note follows contract ${JSON.stringify(r.contract)}, and this chant reads ${PR_PLAN_NOTE_CONTRACT}` };
|
|
231
|
+
if (r.pr !== input.pr)
|
|
232
|
+
return { refused: `the plan note is for pull request ${JSON.stringify(r.pr)}, not ${input.pr}` };
|
|
233
|
+
if (typeof r.head !== "string" || !SHA.test(r.head) || r.head !== input.head)
|
|
234
|
+
return { refused: `the plan note is for head ${JSON.stringify(r.head)}, not ${input.head}` };
|
|
235
|
+
if (r.env !== input.env)
|
|
236
|
+
return { refused: `the plan note is for environment ${JSON.stringify(r.env)}, not ${input.env}` };
|
|
237
|
+
if ((r.member ?? undefined) !== input.member)
|
|
238
|
+
return { refused: `the plan note is for ${JSON.stringify(r.member ?? null)}, not ${JSON.stringify(input.member ?? null)}` };
|
|
239
|
+
if (r.state !== "success" && r.state !== "failure" && r.state !== "pending")
|
|
240
|
+
return { refused: `the plan note's state ${JSON.stringify(r.state)} is not success, failure or pending` };
|
|
241
|
+
if (typeof r.description !== "string")
|
|
242
|
+
return { refused: "the plan note has no description" };
|
|
243
|
+
if (!isPlanNote(r.note) || r.note.head !== r.head || !Array.isArray(r.note.waves) || !Array.isArray(r.note.groups) || !Array.isArray(r.note.named)) {
|
|
244
|
+
return { refused: "the plan note's note is not a plan note for its head" };
|
|
245
|
+
}
|
|
246
|
+
return { handoff: doc };
|
|
247
|
+
}
|
|
248
|
+
/** The note words from `CHANT_PLAN_NOTE_WORDS` (#4799), or undefined when unset or not an object. */
|
|
249
|
+
function noteWordsFromEnv() {
|
|
250
|
+
const raw = process.env.CHANT_PLAN_NOTE_WORDS;
|
|
251
|
+
if (!raw)
|
|
252
|
+
return undefined;
|
|
253
|
+
try {
|
|
254
|
+
const w = JSON.parse(raw);
|
|
255
|
+
return w && typeof w === "object" && !Array.isArray(w) ? w : undefined;
|
|
256
|
+
}
|
|
257
|
+
catch {
|
|
258
|
+
return undefined;
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
/**
|
|
262
|
+
* The note for a product's plan note hand-off (#4799): rendered here with
|
|
263
|
+
* the pipeline's note words, every `<!--` after the marker line defused as
|
|
264
|
+
* {@link planNoteFor} does, except the waves marker chant itself rendered
|
|
265
|
+
* from the note's waves, which the product reads back.
|
|
266
|
+
*/
|
|
267
|
+
export function planNoteHandoffNote(handoff, forge, marker, noteWords, baseTip) {
|
|
268
|
+
const words = activeProductWords();
|
|
269
|
+
const rendered = renderPlanNote(handoff.note, { limit: forge.kind === "gitlab" ? GITLAB_NOTE_LIMIT : GITHUB_COMMENT_LIMIT, words, ...(noteWords ? { note: noteWords } : {}) });
|
|
270
|
+
let body = rendered.split("<!--").join("<!--");
|
|
271
|
+
const n = handoff.note;
|
|
272
|
+
const previews = n.previews ?? [];
|
|
273
|
+
const waves = planNoteMarker(noteWords?.marker ?? `${words.product}:waves`, { head: n.head, waves: n.waves.map((x) => ({ number: x.number, digest: x.digest ?? null, waits: x.waits === true })), ...(previews.length ? { previews } : {}) });
|
|
274
|
+
body = body.replace(`<!--${waves.slice(4)}`, waves);
|
|
275
|
+
const tip = baseTip && SHA.test(baseTip) ? `${body.endsWith("\n") ? "" : "\n"}${prNoteTipMarker(baseTip)}\n` : "";
|
|
276
|
+
return `${marker}\n${body}${tip}`;
|
|
277
|
+
}
|
|
278
|
+
/** {@link postPlanReport} for a product's plan note hand-off (#4799). */
|
|
279
|
+
async function postPlanNoteHandoff(input) {
|
|
280
|
+
const warnings = [];
|
|
281
|
+
const context = prStatusContext("plan", input.member);
|
|
282
|
+
const read = readPlanNoteHandoff(input);
|
|
283
|
+
const failedJob = input.result === "failure" || input.result === "cancelled";
|
|
284
|
+
let state;
|
|
285
|
+
let description;
|
|
286
|
+
let note;
|
|
287
|
+
let refused;
|
|
288
|
+
if ("refused" in read) {
|
|
289
|
+
refused = read.refused;
|
|
290
|
+
state = "failure";
|
|
291
|
+
description = cut(read.refused);
|
|
292
|
+
}
|
|
293
|
+
else {
|
|
294
|
+
state = read.handoff.state;
|
|
295
|
+
description = read.handoff.description;
|
|
185
296
|
try {
|
|
186
|
-
|
|
297
|
+
note = planNoteHandoffNote(read.handoff, input.forge, prNoteMarker(input.env, input.member), input.noteWords ?? noteWordsFromEnv(), input.baseTip);
|
|
187
298
|
}
|
|
188
299
|
catch (err) {
|
|
189
|
-
|
|
300
|
+
refused = `the plan note does not render: ${err instanceof Error ? err.message : String(err)}`;
|
|
301
|
+
state = "failure";
|
|
302
|
+
description = cut(refused);
|
|
303
|
+
}
|
|
304
|
+
if (failedJob && state !== "failure") {
|
|
305
|
+
state = "failure";
|
|
306
|
+
description = cut(`the plan job failed; ${description}`);
|
|
190
307
|
}
|
|
191
308
|
}
|
|
309
|
+
note = await postOutcome(input, context, state, description, note, refused, warnings);
|
|
192
310
|
return { state, description: cut(description), noted: note !== undefined, ...(refused ? { refused } : {}), warnings };
|
|
193
311
|
}
|
|
194
312
|
/**
|
|
@@ -245,6 +363,10 @@ export async function postOpenPlanReports(input) {
|
|
|
245
363
|
const text = await forge.jobArtifact(job.id, `${input.artifactDir.replace(/\/+$/, "")}/${PR_PLAN_REPORT_FILE}`);
|
|
246
364
|
if (text !== undefined)
|
|
247
365
|
writeFileSync(join(dir, PR_PLAN_REPORT_FILE), text);
|
|
366
|
+
// #4799: a product's plan verb writes its plan note hand-off in place of the report.
|
|
367
|
+
const handoff = text === undefined ? await forge.jobArtifact(job.id, `${input.artifactDir.replace(/\/+$/, "")}/${PR_PLAN_NOTE_FILE}`) : undefined;
|
|
368
|
+
if (handoff !== undefined)
|
|
369
|
+
writeFileSync(join(dir, PR_PLAN_NOTE_FILE), handoff);
|
|
248
370
|
const posted = await postPlanReport({
|
|
249
371
|
// The status links to the plan job it reports on, which is how the next run knows it is posted.
|
|
250
372
|
forge: job.url ? { ...forge, runUrl: job.url } : forge,
|
package/dist/release-floors.d.ts
CHANGED
|
@@ -19,7 +19,27 @@
|
|
|
19
19
|
* this constant to the next patch (#4501). The check fails while a floor
|
|
20
20
|
* still names this constant after its version shipped.
|
|
21
21
|
*/
|
|
22
|
-
export declare const NEXT_RELEASE = "0.124.
|
|
22
|
+
export declare const NEXT_RELEASE = "0.124.86";
|
|
23
|
+
/** The first chant with `chant dev local` and `chant dev bundle-check`, `@intentius/chant/local-chant` and `@intentius/chant/bundle-check` (`chantRuntimeTarget`, `chantExternalPlugin`, `checkBundle`): a product built against a chant checkout, and its bundle checked, without its own scripts (#4787). */
|
|
24
|
+
export declare const LOCAL_CHANT_FLOOR = "0.124.86";
|
|
25
|
+
/** The first chant with `chant workspace ref-gate` (pre-receive, pre-push, check, status, attach, install) and `refs` in `.chant/trust.json`, the checks a ref update needs evidence for (#4867). */
|
|
26
|
+
export declare const REF_GATE_FLOOR = "0.124.86";
|
|
27
|
+
/** The first chant whose overdue check finds a schedule in any pipeline file, and whose `ScheduledWatch` takes a product's `files` and GitLab `schedule` selector (#4789). */
|
|
28
|
+
export declare const OVERDUE_PIPELINE_FILES_FLOOR = "0.124.86";
|
|
29
|
+
/** The first chant whose `terraformApplyCapabilityWith` takes `onCommand`, a hook around each engine command `terraform-apply` runs for a root, its reads' upstreams included (#4865). */
|
|
30
|
+
export declare const TERRAFORM_APPLY_COMMAND_HOOK_FLOOR = "0.124.86";
|
|
31
|
+
/** The first chant with `@intentius/chant/forge-flags` (`forgeTargetWith`, `forgeTargetFromFlags`, `apiBaseOf`), `@intentius/chant/chant-install` (`bundledChant`, `chantArgv`, `installChantResolveFallback`) and `noteLimit` and `fitNote` in `@intentius/chant/plan-summary` (#4800). */
|
|
32
|
+
export declare const PRODUCT_HELPERS_FLOOR = "0.124.86";
|
|
33
|
+
/** The first chant with `@intentius/chant/ci-image`: `productImageStages`, `productImageDockerfile` and `derivedImageDockerfile` for a product's CI image, and `ciToolFetchScript`, `ciToolInstallLine` and `installCiTool`, the digest-checked engine installs, with the terraform lexicon's `choudoufuInstallLine` checked the same way (#4784). */
|
|
34
|
+
export declare const CI_IMAGE_FLOOR = "0.124.86";
|
|
35
|
+
/** The first chant with `@intentius/chant/drift-issue`, whose `keepDriftIssue` keeps one drift issue per environment from a product's words and the drift records (#4790). */
|
|
36
|
+
export declare const DRIFT_ISSUE_FLOOR = "0.124.86";
|
|
37
|
+
/** The first chant whose `chant build` with no path builds the config's `sourceDir`, whose root build leaves a top-level `scripts/` out, and whose `@intentius/chant/config` exports `resolveSourceDir`, the one source-dir rule every command shares (#4794). */
|
|
38
|
+
export declare const SOURCE_DIR_RULE_FLOOR = "0.124.86";
|
|
39
|
+
/** The first chant whose pulumi lexicon runs `gatedStackExport`, `gatedStackCancel` and `gatedStackMove` on core's `exportStateVersion`, `releaseStateLock` and `runStateMigration`: export by version, the live-run check before a cancel (`liveRuns`, `forge`), and the check that nothing moved between a move's plan and its write (#4808). */
|
|
40
|
+
export declare const PULUMI_STACK_OPS_ON_CORE_FLOOR = "0.124.86";
|
|
41
|
+
/** The first chant whose terraform lexicon's state stores read versions (`version`, `hasVersion`, `readVersion`, `isAt`, `listVersions`), with `readStateVersion` and `listStateVersions`, and lock and write a GitLab-managed http backend's state (#4793). */
|
|
42
|
+
export declare const TERRAFORM_STATE_VERSION_READS_FLOOR = "0.124.86";
|
|
23
43
|
/** The first chant whose terraform lexicon's `terraform-apply` reads take `dir` and `workspace`, and read an upstream with `resolveRoot`'s binary and `readEnv` (terragucci issue 1303). */
|
|
24
44
|
export declare const TERRAFORM_APPLY_INSTANCE_READS_FLOOR = "0.124.80";
|
|
25
45
|
/** The first chant whose terraform lexicon's `terraform-apply` takes `binary`, and `terraformApplyCapabilityWith({ resolveRoot })` gives each root its own binary (terragucci issue 1303). */
|
|
@@ -46,4 +66,14 @@ export declare const PR_FORGE_RUN_READS_FLOOR = "0.124.80";
|
|
|
46
66
|
export declare const PR_FORGE_READS_FLOOR = "0.124.78";
|
|
47
67
|
/** The first chant whose GitLab `scheduledRuns` takes `schedule`, the selector of an Op's `gitlab.scheduleRule` (#4813). */
|
|
48
68
|
export declare const SCHEDULED_RUNS_SELECTOR_FLOOR = "0.124.78";
|
|
69
|
+
/** The first chant whose Op waves pipeline takes `waveJobs` and `recordPlans`, a product's login, report, artifact and plans-job inputs, so it edits nothing chant wrote (#4791). */
|
|
70
|
+
export declare const OP_WAVES_JOB_INPUTS_FLOOR = "0.124.86";
|
|
71
|
+
/** The first chant with `@intentius/chant/floor-table` (`FLOOR_TABLE`, `floorVersion`, `chantMeets`), every floor as one table, and `chant dev dead-guards` with `@intentius/chant/dead-guards` (`findDeadGuards`), which fails on a feature-detect the product's chant pin meets (#4792). */
|
|
72
|
+
export declare const FLOOR_TABLE_FLOOR = "0.124.86";
|
|
73
|
+
/** The first chant with `@intentius/chant/ci-login`: `githubCloudLogin`, `gitlabCloudLogin` and `forgejoCloudLogin` render a job's AWS, GCP and Azure login from the OIDC token file, per target too (#4788). */
|
|
74
|
+
export declare const CLOUD_LOGIN_FLOOR = "0.124.86";
|
|
75
|
+
/** The first chant whose generated pipelines sign evidence for each named check they run, with `chant ci evidence`, `ci check` signing each hook, and an Op waves spec's `evidence.requires` (#4870). */
|
|
76
|
+
export declare const CHECK_EVIDENCE_FLOOR = "0.124.86";
|
|
77
|
+
/** The first chant that accepts local evidence (#4868): `local` in `.chant/trust.json`, `chant ci evidence sign --local`, and `chant ci check` skipping a hook whose current local evidence the policy at base accepts. */
|
|
78
|
+
export declare const LOCAL_EVIDENCE_FLOOR = "0.124.86";
|
|
49
79
|
//# sourceMappingURL=release-floors.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"release-floors.d.ts","sourceRoot":"","sources":["../src/release-floors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,YAAY,aAAa,CAAC;AAEvC,4LAA4L;AAC5L,eAAO,MAAM,oCAAoC,aAA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AM,qBAAqB,aAAe,CAAC;AAClD,mVAAmV;AACnV,eAAO,MAAM,8BAA8B,aAAe,CAAC;AAC3D,gQAAgQ;AAChQ,eAAO,MAAM,mCAAmC,aAAe,CAAC;AAEhE,4LAA4L;AAC5L,eAAO,MAAM,oCAAoC,aAAa,CAAC;AAE/D,8LAA8L;AAC9L,eAAO,MAAM,iCAAiC,aAAa,CAAC;AAE5D,0NAA0N;AAC1N,eAAO,MAAM,sBAAsB,aAAa,CAAC;AAEjD,2LAA2L;AAC3L,eAAO,MAAM,+BAA+B,aAAa,CAAC;AAE1D,mJAAmJ;AACnJ,eAAO,MAAM,wBAAwB,aAAa,CAAC;AAEnD,yKAAyK;AACzK,eAAO,MAAM,0BAA0B,aAAa,CAAC;AAErD,sJAAsJ;AACtJ,eAAO,MAAM,oBAAoB,aAAa,CAAC;AAE/C,mNAAmN;AACnN,eAAO,MAAM,0BAA0B,aAAa,CAAC;AAErD,4OAA4O;AAC5O,eAAO,MAAM,mBAAmB,aAAa,CAAC;AAE9C,oKAAoK;AACpK,eAAO,MAAM,4BAA4B,aAAa,CAAC;AAEvD,6LAA6L;AAC7L,eAAO,MAAM,wBAAwB,aAAa,CAAC;AAEnD,kHAAkH;AAClH,eAAO,MAAM,oBAAoB,aAAa,CAAC;AAE/C,4HAA4H;AAC5H,eAAO,MAAM,6BAA6B,aAAa,CAAC;AAExD,qLAAqL;AACrL,eAAO,MAAM,yBAAyB,aAAe,CAAC;AAEtD,8RAA8R;AAC9R,eAAO,MAAM,iBAAiB,aAAe,CAAC;AAE9C,iNAAiN;AACjN,eAAO,MAAM,iBAAiB,aAAe,CAAC;AAE9C,yMAAyM;AACzM,eAAO,MAAM,oBAAoB,aAAe,CAAC;AAEjD,2NAA2N;AAC3N,eAAO,MAAM,oBAAoB,aAAe,CAAC"}
|
package/dist/release-floors.js
CHANGED
|
@@ -19,7 +19,27 @@
|
|
|
19
19
|
* this constant to the next patch (#4501). The check fails while a floor
|
|
20
20
|
* still names this constant after its version shipped.
|
|
21
21
|
*/
|
|
22
|
-
export const NEXT_RELEASE = "0.124.
|
|
22
|
+
export const NEXT_RELEASE = "0.124.86";
|
|
23
|
+
/** The first chant with `chant dev local` and `chant dev bundle-check`, `@intentius/chant/local-chant` and `@intentius/chant/bundle-check` (`chantRuntimeTarget`, `chantExternalPlugin`, `checkBundle`): a product built against a chant checkout, and its bundle checked, without its own scripts (#4787). */
|
|
24
|
+
export const LOCAL_CHANT_FLOOR = NEXT_RELEASE;
|
|
25
|
+
/** The first chant with `chant workspace ref-gate` (pre-receive, pre-push, check, status, attach, install) and `refs` in `.chant/trust.json`, the checks a ref update needs evidence for (#4867). */
|
|
26
|
+
export const REF_GATE_FLOOR = NEXT_RELEASE;
|
|
27
|
+
/** The first chant whose overdue check finds a schedule in any pipeline file, and whose `ScheduledWatch` takes a product's `files` and GitLab `schedule` selector (#4789). */
|
|
28
|
+
export const OVERDUE_PIPELINE_FILES_FLOOR = NEXT_RELEASE;
|
|
29
|
+
/** The first chant whose `terraformApplyCapabilityWith` takes `onCommand`, a hook around each engine command `terraform-apply` runs for a root, its reads' upstreams included (#4865). */
|
|
30
|
+
export const TERRAFORM_APPLY_COMMAND_HOOK_FLOOR = NEXT_RELEASE;
|
|
31
|
+
/** The first chant with `@intentius/chant/forge-flags` (`forgeTargetWith`, `forgeTargetFromFlags`, `apiBaseOf`), `@intentius/chant/chant-install` (`bundledChant`, `chantArgv`, `installChantResolveFallback`) and `noteLimit` and `fitNote` in `@intentius/chant/plan-summary` (#4800). */
|
|
32
|
+
export const PRODUCT_HELPERS_FLOOR = NEXT_RELEASE;
|
|
33
|
+
/** The first chant with `@intentius/chant/ci-image`: `productImageStages`, `productImageDockerfile` and `derivedImageDockerfile` for a product's CI image, and `ciToolFetchScript`, `ciToolInstallLine` and `installCiTool`, the digest-checked engine installs, with the terraform lexicon's `choudoufuInstallLine` checked the same way (#4784). */
|
|
34
|
+
export const CI_IMAGE_FLOOR = NEXT_RELEASE;
|
|
35
|
+
/** The first chant with `@intentius/chant/drift-issue`, whose `keepDriftIssue` keeps one drift issue per environment from a product's words and the drift records (#4790). */
|
|
36
|
+
export const DRIFT_ISSUE_FLOOR = NEXT_RELEASE;
|
|
37
|
+
/** The first chant whose `chant build` with no path builds the config's `sourceDir`, whose root build leaves a top-level `scripts/` out, and whose `@intentius/chant/config` exports `resolveSourceDir`, the one source-dir rule every command shares (#4794). */
|
|
38
|
+
export const SOURCE_DIR_RULE_FLOOR = NEXT_RELEASE;
|
|
39
|
+
/** The first chant whose pulumi lexicon runs `gatedStackExport`, `gatedStackCancel` and `gatedStackMove` on core's `exportStateVersion`, `releaseStateLock` and `runStateMigration`: export by version, the live-run check before a cancel (`liveRuns`, `forge`), and the check that nothing moved between a move's plan and its write (#4808). */
|
|
40
|
+
export const PULUMI_STACK_OPS_ON_CORE_FLOOR = NEXT_RELEASE;
|
|
41
|
+
/** The first chant whose terraform lexicon's state stores read versions (`version`, `hasVersion`, `readVersion`, `isAt`, `listVersions`), with `readStateVersion` and `listStateVersions`, and lock and write a GitLab-managed http backend's state (#4793). */
|
|
42
|
+
export const TERRAFORM_STATE_VERSION_READS_FLOOR = NEXT_RELEASE;
|
|
23
43
|
/** The first chant whose terraform lexicon's `terraform-apply` reads take `dir` and `workspace`, and read an upstream with `resolveRoot`'s binary and `readEnv` (terragucci issue 1303). */
|
|
24
44
|
export const TERRAFORM_APPLY_INSTANCE_READS_FLOOR = "0.124.80";
|
|
25
45
|
/** The first chant whose terraform lexicon's `terraform-apply` takes `binary`, and `terraformApplyCapabilityWith({ resolveRoot })` gives each root its own binary (terragucci issue 1303). */
|
|
@@ -46,3 +66,13 @@ export const PR_FORGE_RUN_READS_FLOOR = "0.124.80";
|
|
|
46
66
|
export const PR_FORGE_READS_FLOOR = "0.124.78";
|
|
47
67
|
/** The first chant whose GitLab `scheduledRuns` takes `schedule`, the selector of an Op's `gitlab.scheduleRule` (#4813). */
|
|
48
68
|
export const SCHEDULED_RUNS_SELECTOR_FLOOR = "0.124.78";
|
|
69
|
+
/** The first chant whose Op waves pipeline takes `waveJobs` and `recordPlans`, a product's login, report, artifact and plans-job inputs, so it edits nothing chant wrote (#4791). */
|
|
70
|
+
export const OP_WAVES_JOB_INPUTS_FLOOR = NEXT_RELEASE;
|
|
71
|
+
/** The first chant with `@intentius/chant/floor-table` (`FLOOR_TABLE`, `floorVersion`, `chantMeets`), every floor as one table, and `chant dev dead-guards` with `@intentius/chant/dead-guards` (`findDeadGuards`), which fails on a feature-detect the product's chant pin meets (#4792). */
|
|
72
|
+
export const FLOOR_TABLE_FLOOR = NEXT_RELEASE;
|
|
73
|
+
/** The first chant with `@intentius/chant/ci-login`: `githubCloudLogin`, `gitlabCloudLogin` and `forgejoCloudLogin` render a job's AWS, GCP and Azure login from the OIDC token file, per target too (#4788). */
|
|
74
|
+
export const CLOUD_LOGIN_FLOOR = NEXT_RELEASE;
|
|
75
|
+
/** The first chant whose generated pipelines sign evidence for each named check they run, with `chant ci evidence`, `ci check` signing each hook, and an Op waves spec's `evidence.requires` (#4870). */
|
|
76
|
+
export const CHECK_EVIDENCE_FLOOR = NEXT_RELEASE;
|
|
77
|
+
/** The first chant that accepts local evidence (#4868): `local` in `.chant/trust.json`, `chant ci evidence sign --local`, and `chant ci check` skipping a hook whose current local evidence the policy at base accepts. */
|
|
78
|
+
export const LOCAL_EVIDENCE_FLOOR = NEXT_RELEASE;
|
|
@@ -2,6 +2,8 @@ import { type GatedRequestLedger } from "./lifecycle/gated-op.js";
|
|
|
2
2
|
import type { GatedRequestRules } from "./lifecycle/gated-request.js";
|
|
3
3
|
/** The first chant with the engine-neutral state migration (#4762). */
|
|
4
4
|
export declare const STATE_MIGRATION_FLOOR = "0.124.77";
|
|
5
|
+
/** The first chant whose migration binds a root's `source` (an engine's `source` read under the locks) and answers `approval-moved`, and whose terraform lexicon plans backend moves (`planTerraformMigration`'s `backends`) and choudoufu estate migrations (`planEstateMigration`) onto it (#4806). */
|
|
6
|
+
export declare const STATE_MIGRATION_SOURCE_FLOOR = "0.124.86";
|
|
5
7
|
/** A state as a migration binds it: its version id, when the store keeps versions, and its digest, null for no state. */
|
|
6
8
|
export interface MigrationStateAt {
|
|
7
9
|
version_id?: string;
|
|
@@ -29,6 +31,14 @@ export interface MigrationRootPlan {
|
|
|
29
31
|
proof: MigrationCheck;
|
|
30
32
|
/** The plan against the real state, after the write. */
|
|
31
33
|
verify?: MigrationCheck;
|
|
34
|
+
/** Where the new state is read from, when that is not the root's own state (a backend move, #4806): the request binds it, and the write is refused when it moved. */
|
|
35
|
+
source?: MigrationSource;
|
|
36
|
+
}
|
|
37
|
+
/** A state a migration reads its new state from: where it is, its version id when its store keeps versions, and its digest. */
|
|
38
|
+
export interface MigrationSource {
|
|
39
|
+
location?: string;
|
|
40
|
+
version_id?: string;
|
|
41
|
+
digest: string;
|
|
32
42
|
}
|
|
33
43
|
/** The engine's half of a migration's write. */
|
|
34
44
|
export interface StateMigrationEngine {
|
|
@@ -36,6 +46,8 @@ export interface StateMigrationEngine {
|
|
|
36
46
|
lock(): Promise<() => Promise<void>>;
|
|
37
47
|
/** A root's state now, read under the locks. */
|
|
38
48
|
current(root: string): Promise<MigrationStateAt>;
|
|
49
|
+
/** A root's source now, read under the locks; called for each root whose plan names a `source` (#4806). */
|
|
50
|
+
source?(root: string): Promise<MigrationStateAt>;
|
|
39
51
|
/** Write every new state, in the engine's order. Throws at the first that fails. */
|
|
40
52
|
write(): Promise<void>;
|
|
41
53
|
/** After the write: the root planned against its real state, its version now, and its version before when only the write named it (a snapshot). */
|
|
@@ -70,6 +82,8 @@ export interface StateMigrationInput {
|
|
|
70
82
|
base?: string;
|
|
71
83
|
/** How long a request waits for its approval. Default 48h. */
|
|
72
84
|
expiry?: string;
|
|
85
|
+
/** Reads an earlier request's attachment by its digest, to name the roots that moved since its approval. Default: the attachment on chant/lifecycle. */
|
|
86
|
+
readAttachment?: (op: string, digest: string) => Promise<string | undefined>;
|
|
73
87
|
now?: string;
|
|
74
88
|
runId?: string;
|
|
75
89
|
commit?: string;
|
|
@@ -94,6 +108,16 @@ export type StateMigrationOutcome = {
|
|
|
94
108
|
exit: 3;
|
|
95
109
|
digest: string;
|
|
96
110
|
command: string;
|
|
111
|
+
}
|
|
112
|
+
/** It waits, and an approval of an earlier request of this migration stands: the states moved since, and `moved` names the roots whose state is not the one that request bound. Nothing was written. */
|
|
113
|
+
| {
|
|
114
|
+
status: "approval-moved";
|
|
115
|
+
exit: 4;
|
|
116
|
+
digest: string;
|
|
117
|
+
command: string;
|
|
118
|
+
approved: string;
|
|
119
|
+
approvedBy: string;
|
|
120
|
+
moved: string[];
|
|
97
121
|
} | {
|
|
98
122
|
status: "refused";
|
|
99
123
|
exit: 3;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"state-migration.d.ts","sourceRoot":"","sources":["../src/state-migration.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"state-migration.d.ts","sourceRoot":"","sources":["../src/state-migration.ts"],"names":[],"mappings":"AAwCA,OAAO,EAA6B,KAAK,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1F,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAKnE,uEAAuE;AACvE,eAAO,MAAM,qBAAqB,aAAa,CAAC;AAEhD,ySAAyS;AACzS,eAAO,MAAM,4BAA4B,aAAe,CAAC;AAEzD,yHAAyH;AACzH,MAAM,WAAW,gBAAgB;IAC/B,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,mDAAmD;AACnD,MAAM,WAAW,cAAc;IAC7B,0EAA0E;IAC1E,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,qCAAqC;IACrC,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,kEAAkE;AAClE,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,kDAAkD;IAClD,QAAQ,CAAC,EAAE,MAA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