@intentius/chant 0.124.62 → 0.124.64
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/handlers/approve.d.ts +26 -0
- package/dist/cli/handlers/approve.d.ts.map +1 -1
- package/dist/cli/handlers/approve.js +167 -18
- package/dist/cli/handlers/plan.d.ts +10 -0
- package/dist/cli/handlers/plan.d.ts.map +1 -0
- package/dist/cli/handlers/plan.js +71 -0
- package/dist/cli/handlers/pr.d.ts.map +1 -1
- package/dist/cli/handlers/pr.js +2 -1
- package/dist/cli/handlers/release.d.ts +11 -7
- package/dist/cli/handlers/release.d.ts.map +1 -1
- package/dist/cli/handlers/release.js +93 -20
- package/dist/cli/main.d.ts.map +1 -1
- package/dist/cli/main.js +48 -7
- package/dist/cli/mcp/workspace-tools.d.ts.map +1 -1
- package/dist/cli/mcp/workspace-tools.js +2 -1
- package/dist/cli/parse-args.d.ts.map +1 -1
- package/dist/cli/parse-args.js +43 -0
- package/dist/cli/registry.d.ts +18 -2
- package/dist/cli/registry.d.ts.map +1 -1
- package/dist/config.d.ts +50 -0
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +1 -0
- package/dist/gate-decision.d.ts +1 -1
- package/dist/gate-decision.d.ts.map +1 -1
- package/dist/gate-decision.js +4 -2
- package/dist/gate-statement.schema.json +46 -0
- package/dist/lifecycle/__fixtures__/publish-fakes.d.ts +20 -0
- package/dist/lifecycle/__fixtures__/publish-fakes.d.ts.map +1 -1
- package/dist/lifecycle/__fixtures__/publish-fakes.js +119 -3
- package/dist/lifecycle/gate-ledger.d.ts +28 -5
- package/dist/lifecycle/gate-ledger.d.ts.map +1 -1
- package/dist/lifecycle/gate-ledger.js +6 -0
- package/dist/lifecycle/gate-seal.d.ts +59 -7
- package/dist/lifecycle/gate-seal.d.ts.map +1 -1
- package/dist/lifecycle/gate-seal.js +68 -15
- package/dist/lifecycle/gate-statement.d.ts +95 -0
- package/dist/lifecycle/gate-statement.d.ts.map +1 -0
- package/dist/lifecycle/gate-statement.js +110 -0
- package/dist/lifecycle/gate-webauthn.d.ts +79 -0
- package/dist/lifecycle/gate-webauthn.d.ts.map +1 -0
- package/dist/lifecycle/gate-webauthn.js +105 -0
- package/dist/lifecycle/git.d.ts +1 -1
- package/dist/lifecycle/git.d.ts.map +1 -1
- package/dist/lifecycle/git.js +24 -19
- package/dist/lifecycle/ledger-remote.d.ts +37 -0
- package/dist/lifecycle/ledger-remote.d.ts.map +1 -0
- package/dist/lifecycle/ledger-remote.js +42 -0
- package/dist/lifecycle/plan-stale.d.ts +76 -0
- package/dist/lifecycle/plan-stale.d.ts.map +1 -0
- package/dist/lifecycle/plan-stale.js +120 -0
- package/dist/lifecycle/publish-credentials.d.ts +1 -1
- package/dist/lifecycle/publish-credentials.d.ts.map +1 -1
- package/dist/lifecycle/publish-credentials.js +2 -0
- package/dist/lifecycle/publish-declaration.d.ts +107 -0
- package/dist/lifecycle/publish-declaration.d.ts.map +1 -1
- package/dist/lifecycle/publish-declaration.js +110 -1
- package/dist/lifecycle/publish-forge.d.ts +5 -1
- package/dist/lifecycle/publish-forge.d.ts.map +1 -1
- package/dist/lifecycle/publish-forge.js +13 -4
- package/dist/lifecycle/publish-git-ssh.d.ts +82 -0
- package/dist/lifecycle/publish-git-ssh.d.ts.map +1 -0
- package/dist/lifecycle/publish-git-ssh.js +180 -0
- package/dist/lifecycle/publish-github.d.ts +69 -0
- package/dist/lifecycle/publish-github.d.ts.map +1 -0
- package/dist/lifecycle/publish-github.js +153 -0
- package/dist/lifecycle/publish-homebrew.d.ts +77 -0
- package/dist/lifecycle/publish-homebrew.d.ts.map +1 -0
- package/dist/lifecycle/publish-homebrew.js +265 -0
- package/dist/lifecycle/publish-marketplace.d.ts +85 -0
- package/dist/lifecycle/publish-marketplace.d.ts.map +1 -0
- package/dist/lifecycle/publish-marketplace.js +398 -0
- package/dist/lifecycle/publish-targets.d.ts +6 -0
- package/dist/lifecycle/publish-targets.d.ts.map +1 -1
- package/dist/lifecycle/publish-targets.js +15 -0
- package/dist/lifecycle/publish-tauri.d.ts +61 -0
- package/dist/lifecycle/publish-tauri.d.ts.map +1 -0
- package/dist/lifecycle/publish-tauri.js +181 -0
- package/dist/lifecycle/release-cut.d.ts +51 -5
- package/dist/lifecycle/release-cut.d.ts.map +1 -1
- package/dist/lifecycle/release-cut.js +165 -16
- package/dist/lifecycle/release-publish.d.ts +18 -2
- package/dist/lifecycle/release-publish.d.ts.map +1 -1
- package/dist/lifecycle/release-publish.js +5 -0
- package/dist/lifecycle/release-revocation.d.ts +4 -3
- package/dist/lifecycle/release-revocation.d.ts.map +1 -1
- package/dist/lifecycle/release-revocation.js +5 -4
- package/dist/lifecycle/release-store.d.ts +32 -0
- package/dist/lifecycle/release-store.d.ts.map +1 -1
- package/dist/lifecycle/release-store.js +11 -0
- package/dist/lifecycle/snapshot-store.d.ts.map +1 -1
- package/dist/lifecycle/snapshot-store.js +17 -9
- package/dist/lifecycle/test-passkey.d.ts +25 -0
- package/dist/lifecycle/test-passkey.d.ts.map +1 -0
- package/dist/lifecycle/test-passkey.js +39 -0
- package/dist/notify.d.ts +23 -3
- package/dist/notify.d.ts.map +1 -1
- package/dist/notify.js +8 -2
- package/dist/notify.schema.json +12 -3
- package/dist/op/gate.d.ts +1 -1
- package/dist/op/gate.d.ts.map +1 -1
- package/dist/op/gate.js +2 -1
- package/dist/pr-forge.d.ts +20 -0
- package/dist/pr-forge.d.ts.map +1 -1
- package/dist/pr-forge.js +87 -8
- package/dist/release-floors.d.ts +1 -1
- package/dist/release-floors.js +1 -1
- package/dist/wave-runtime.mjs +333 -331
- package/dist/workspace/ci-builds.d.ts +21 -0
- package/dist/workspace/ci-builds.d.ts.map +1 -1
- package/dist/workspace/ci-builds.js +14 -0
- package/dist/workspace/ci-green.d.ts +45 -2
- package/dist/workspace/ci-green.d.ts.map +1 -1
- package/dist/workspace/ci-green.js +123 -5
- package/dist/workspace/ci-quarantine-report.d.ts +80 -0
- package/dist/workspace/ci-quarantine-report.d.ts.map +1 -0
- package/dist/workspace/ci-quarantine-report.js +204 -0
- package/dist/workspace/ci-quarantine.d.ts +73 -0
- package/dist/workspace/ci-quarantine.d.ts.map +1 -0
- package/dist/workspace/ci-quarantine.js +170 -0
- package/dist/workspace/ci-serve.d.ts.map +1 -1
- package/dist/workspace/ci-serve.js +7 -4
- package/dist/workspace/class-data.d.ts +3 -1
- package/dist/workspace/class-data.d.ts.map +1 -1
- package/dist/workspace/class-data.js +4 -1
- package/dist/workspace/declaration.d.ts +45 -2
- package/dist/workspace/declaration.d.ts.map +1 -1
- package/dist/workspace/declaration.js +45 -2
- package/dist/workspace/declaration.schema.json +51 -3
- package/dist/workspace/forge-work.d.ts +76 -0
- package/dist/workspace/forge-work.d.ts.map +1 -0
- package/dist/workspace/forge-work.js +160 -0
- package/dist/workspace/identity-gate-rule.d.ts +3 -2
- package/dist/workspace/identity-gate-rule.d.ts.map +1 -1
- package/dist/workspace/identity-gate-rule.js +5 -7
- package/dist/workspace/identity.d.ts +3 -2
- package/dist/workspace/identity.d.ts.map +1 -1
- package/dist/workspace/identity.js +6 -3
- package/dist/workspace/intent-cli.d.ts +3 -2
- package/dist/workspace/intent-cli.d.ts.map +1 -1
- package/dist/workspace/intent-cli.js +26 -5
- package/dist/workspace/intent-record.d.ts +3 -0
- package/dist/workspace/intent-record.d.ts.map +1 -1
- package/dist/workspace/intent-record.schema.json +32 -0
- package/dist/workspace/intent.d.ts +9 -0
- package/dist/workspace/intent.d.ts.map +1 -1
- package/dist/workspace/intent.js +2 -0
- package/dist/workspace/intent.schema.json +32 -0
- package/dist/workspace/kind-readers.d.ts.map +1 -1
- package/dist/workspace/kind-readers.js +2 -1
- package/dist/workspace/kinds.d.ts +6 -1
- package/dist/workspace/kinds.d.ts.map +1 -1
- package/dist/workspace/kinds.js +8 -3
- package/dist/workspace/plan-stale.schema.json +286 -0
- package/dist/workspace/release-candidates.d.ts +42 -7
- package/dist/workspace/release-candidates.d.ts.map +1 -1
- package/dist/workspace/release-candidates.js +64 -23
- package/dist/workspace/release-candidates.schema.json +55 -2
- package/dist/workspace/releases.schema.json +47 -0
- package/dist/workspace/trust/policy.d.ts +10 -0
- package/dist/workspace/trust/policy.d.ts.map +1 -1
- package/dist/workspace/trust/policy.js +19 -1
- package/dist/workspace/trust/run-commits.d.ts.map +1 -1
- package/dist/workspace/trust/run-commits.js +2 -1
- package/dist/workspace/trust/seal.d.ts.map +1 -1
- package/dist/workspace/trust/seal.js +34 -3
- package/dist/workspace/trust/trust-files.d.ts.map +1 -1
- package/dist/workspace/trust/trust-files.js +6 -1
- package/package.json +2 -1
- package/src/cli/handlers/approve-external-signature.test.ts +328 -0
- package/src/cli/handlers/approve.ts +206 -18
- package/src/cli/handlers/plan.ts +74 -0
- package/src/cli/handlers/pr.ts +2 -1
- package/src/cli/handlers/release.ts +84 -20
- package/src/cli/main.ts +48 -7
- package/src/cli/mcp/workspace-tools.ts +2 -1
- package/src/cli/parse-args.ts +33 -0
- package/src/cli/registry.ts +18 -2
- package/src/config.ts +8 -0
- package/src/gate-decision-bundle.test.ts +4 -2
- package/src/gate-decision.ts +11 -2
- package/src/gate-statement.schema.json +46 -0
- package/src/lifecycle/__fixtures__/publish-fakes.ts +125 -5
- package/src/lifecycle/gate-ledger.ts +34 -5
- package/src/lifecycle/gate-seal.ts +86 -15
- package/src/lifecycle/gate-statement.ts +144 -0
- package/src/lifecycle/gate-webauthn.test.ts +77 -0
- package/src/lifecycle/gate-webauthn.ts +133 -0
- package/src/lifecycle/git.ts +23 -19
- package/src/lifecycle/ledger-remote.test.ts +183 -0
- package/src/lifecycle/ledger-remote.ts +46 -0
- package/src/lifecycle/plan-stale.test.ts +149 -0
- package/src/lifecycle/plan-stale.ts +172 -0
- package/src/lifecycle/publish-credentials.ts +2 -0
- package/src/lifecycle/publish-declaration.ts +116 -1
- package/src/lifecycle/publish-forge.ts +14 -4
- package/src/lifecycle/publish-git-ssh.ts +202 -0
- package/src/lifecycle/publish-github.ts +174 -0
- package/src/lifecycle/publish-homebrew.test.ts +358 -0
- package/src/lifecycle/publish-homebrew.ts +283 -0
- package/src/lifecycle/publish-marketplace.test.ts +406 -0
- package/src/lifecycle/publish-marketplace.ts +421 -0
- package/src/lifecycle/publish-resume.test.ts +40 -0
- package/src/lifecycle/publish-target-context.test.ts +2 -2
- package/src/lifecycle/publish-targets.test.ts +23 -0
- package/src/lifecycle/publish-targets.ts +15 -0
- package/src/lifecycle/publish-tauri.test.ts +163 -0
- package/src/lifecycle/publish-tauri.ts +198 -0
- package/src/lifecycle/release-cut-lane.test.ts +177 -0
- package/src/lifecycle/release-cut-override.test.ts +213 -0
- package/src/lifecycle/release-cut.ts +198 -17
- package/src/lifecycle/release-publish.ts +23 -3
- package/src/lifecycle/release-revocation.ts +5 -4
- package/src/lifecycle/release-store.ts +44 -0
- package/src/lifecycle/snapshot-store.ts +16 -9
- package/src/lifecycle/test-passkey.ts +55 -0
- package/src/notify-bundle.test.ts +3 -1
- package/src/notify.schema.json +12 -3
- package/src/notify.ts +20 -3
- package/src/op/gate.ts +2 -1
- package/src/override-gate-bundle.test.ts +2 -0
- package/src/pr-forge-bundle.test.ts +2 -2
- package/src/pr-forge.test.ts +38 -0
- package/src/pr-forge.ts +93 -11
- package/src/pr-requires.test.ts +9 -0
- package/src/release-floors.ts +1 -1
- package/src/stage-hooks-bundle.test.ts +2 -0
- package/src/wave-runtime-bundle.test.ts +3 -2
- package/src/workspace/ci-builds.ts +27 -0
- package/src/workspace/ci-green-stale.test.ts +193 -0
- package/src/workspace/ci-green.ts +137 -6
- package/src/workspace/ci-quarantine-report.test.ts +145 -0
- package/src/workspace/ci-quarantine-report.ts +234 -0
- package/src/workspace/ci-quarantine.test.ts +160 -0
- package/src/workspace/ci-quarantine.ts +188 -0
- package/src/workspace/ci-serve.ts +7 -4
- package/src/workspace/class-data.ts +5 -1
- package/src/workspace/declaration.schema.json +51 -3
- package/src/workspace/declaration.test.ts +1 -0
- package/src/workspace/declaration.ts +88 -5
- package/src/workspace/forge-work.test.ts +143 -0
- package/src/workspace/forge-work.ts +195 -0
- package/src/workspace/identity-gate-rule.ts +6 -8
- package/src/workspace/identity.ts +6 -3
- package/src/workspace/intent-cli.ts +24 -5
- package/src/workspace/intent-record.schema.json +32 -0
- package/src/workspace/intent-record.ts +3 -0
- package/src/workspace/intent.schema.json +32 -0
- package/src/workspace/intent.ts +9 -0
- package/src/workspace/kind-readers.ts +2 -1
- package/src/workspace/kinds.test.ts +13 -0
- package/src/workspace/kinds.ts +12 -3
- package/src/workspace/plan-stale.schema.json +286 -0
- package/src/workspace/release-candidates.schema.json +55 -2
- package/src/workspace/release-candidates.test.ts +77 -4
- package/src/workspace/release-candidates.ts +80 -23
- package/src/workspace/releases.schema.json +47 -0
- package/src/workspace/trust/gate-seal.test.ts +44 -0
- package/src/workspace/trust/policy.ts +24 -1
- package/src/workspace/trust/run-commits.ts +2 -1
- package/src/workspace/trust/seal.ts +35 -3
- package/src/workspace/trust/trust-files.test.ts +5 -0
- package/src/workspace/trust/trust-files.ts +15 -1
|
@@ -169,6 +169,10 @@ export interface CiPhase {
|
|
|
169
169
|
}
|
|
170
170
|
/** Every branch `ci.green` judges (#4325): `branches` when the declaration names several, else `branch`. */
|
|
171
171
|
export declare function greenBranches(green: Pick<CiGreen, "branch" | "branches">): string[];
|
|
172
|
+
/** `ci.green.notify`: notify's settings, and the hours the branch may go without a green commit before `ci.stale` (#4678). */
|
|
173
|
+
export type CiNotify = NotifyConfig & {
|
|
174
|
+
staleAfter?: number;
|
|
175
|
+
};
|
|
172
176
|
/** The default `ci.green.window`. */
|
|
173
177
|
export declare const DEFAULT_CI_WINDOW = "24h";
|
|
174
178
|
/** The declaration's `ci.green` block (#3573, ws-103), with its defaults. */
|
|
@@ -218,9 +222,11 @@ export interface CiGreen {
|
|
|
218
222
|
lanes?: CiLane[];
|
|
219
223
|
/**
|
|
220
224
|
* Who the tick tells (#4645): `ci.red`, `ci.culprit` and `ci.green`, sent
|
|
221
|
-
* through notify as Op waves send theirs
|
|
225
|
+
* through notify as Op waves send theirs; and who `ci quarantine report`
|
|
226
|
+
* tells `ci.quarantine-passed` (#4677). The tick also sends `ci.stale` after
|
|
227
|
+
* `staleAfter` hours without a green commit (#4678). Absent when the declaration sets none.
|
|
222
228
|
*/
|
|
223
|
-
notify?:
|
|
229
|
+
notify?: CiNotify;
|
|
224
230
|
/**
|
|
225
231
|
* The branch takes changes through GitHub's merge queue (#4644): `ci
|
|
226
232
|
* workflow` adds the `merge_group` trigger to the workflows holding a
|
|
@@ -228,7 +234,42 @@ export interface CiGreen {
|
|
|
228
234
|
* `chant-verdict` job the queue's ruleset requires. Absent when unset.
|
|
229
235
|
*/
|
|
230
236
|
mergeQueue?: true;
|
|
237
|
+
/**
|
|
238
|
+
* Known-flaky tests the phases' runners leave out (#4677), each with the
|
|
239
|
+
* issue tracking its fix and the day it comes back. Absent when the
|
|
240
|
+
* declaration names none.
|
|
241
|
+
*/
|
|
242
|
+
quarantine?: CiQuarantine;
|
|
243
|
+
pointer: string;
|
|
244
|
+
}
|
|
245
|
+
/** The default `ci.green.quarantine.maxDays` (#4677): how far out an entry's `until` may be. */
|
|
246
|
+
export declare const DEFAULT_QUARANTINE_MAX_DAYS = 14;
|
|
247
|
+
/** `ci.green.quarantine` (#4677). */
|
|
248
|
+
export interface CiQuarantine {
|
|
249
|
+
/** How many days from today an entry's `until` may be, at most. */
|
|
250
|
+
maxDays: number;
|
|
251
|
+
/** Every entry, phase by phase, in file order. */
|
|
252
|
+
entries: CiQuarantineEntry[];
|
|
253
|
+
pointer: string;
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* One quarantined test (#4677). `test` is the name the phase's runner gives
|
|
257
|
+
* it: for nextest the binary id, a space and the test's name, as nextest
|
|
258
|
+
* prints them; for Playwright the test's title, with `file` its spec's path
|
|
259
|
+
* from the project's testDir.
|
|
260
|
+
*/
|
|
261
|
+
export interface CiQuarantineEntry {
|
|
262
|
+
phase: string;
|
|
263
|
+
test: string;
|
|
264
|
+
file?: string;
|
|
265
|
+
/** The issue that tracks the fix: a number or a URL. */
|
|
266
|
+
issue: string;
|
|
267
|
+
/** The last day the test stays out, YYYY-MM-DD (UTC). */
|
|
268
|
+
until: string;
|
|
269
|
+
why: string;
|
|
231
270
|
pointer: string;
|
|
271
|
+
/** Where the entry is in the declaration's file, for messages about it. */
|
|
272
|
+
location: ErrorLocation;
|
|
232
273
|
}
|
|
233
274
|
/**
|
|
234
275
|
* One green lane (#4662): a commit that passes the lane's phases gets
|
|
@@ -797,6 +838,8 @@ export declare function parseDeclaration(text: string, file: string, reader?: st
|
|
|
797
838
|
* {@link parseDeclaration}.
|
|
798
839
|
*/
|
|
799
840
|
export declare function extensionsAt(declaration: Declaration, pointer: string): Record<string, unknown>;
|
|
841
|
+
/** A YYYY-MM-DD that names a real day, as days since 1970-01-01 UTC, or null. */
|
|
842
|
+
export declare function quarantineDay(s: string): number | null;
|
|
800
843
|
/**
|
|
801
844
|
* The rules the schema can't say about a box's services (#2880), as a
|
|
802
845
|
* message and the pointer to show, or null when they hold: each name is
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"declaration.d.ts","sourceRoot":"","sources":["../../src/workspace/declaration.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAEH,OAAO,EAAmB,KAAK,iBAAiB,EAAE,MAAM,+BAA+B,CAAC;AAExF,OAAO,EAAuB,KAAK,YAAY,EAAE,MAAM,WAAW,CAAC;AAGnE,OAAO,EAA0C,KAAK,wBAAwB,EAAE,MAAM,gBAAgB,CAAC;AAEvG,OAAO,EAAE,aAAa,EAAgC,MAAM,SAAS,CAAC;AACtE,OAAO,EAA+B,KAAK,YAAY,EAAE,MAAM,SAAS,CAAC;AAEzE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,EAAY,KAAK,aAAa,EAAE,MAAM,QAAQ,CAAC;AAGtD,OAAO,EAA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Ae,CAAC,IAAI,EAAE,aAAa,EAAE,GAAG,SAAK,EAAE,OAAO,GAAE,WAAgB,GAAG,WAAW,CAarG;AAED;;;;GAIG;AACH,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,aAAa,EAAE,KAAK,EAAE,MAAM,GAAG,MAAM,GAAG,SAAS,CAKzF;AAID,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,KAAK,CAAC;IACb,qEAAqE;IACrE,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,uEAAuE;IACvE,OAAO,EAAE,MAAM,EAAE,CAAC;CACnB;AAED;;;;;;GAMG;AACH,wBAAgB,aAAa,CAAC,WAAW,EAAE,WAAW,EAAE,IAAI,EAAE,aAAa,GAAG,aAAa,EAAE,CA8B5F;AAID;;;;;;GAMG;AACH,wBAAgB,OAAO,CACrB,WAAW,EAAE,WAAW,EACxB,MAAM,EAAE,aAAa,EAAE,EACvB,IAAI,EAAE,MAAM,GACX;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,GAAG;IAAE,KAAK,EAAE,KAAK,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,GAAG,SAAS,CAWlE;AAED;;;;;GAKG;AACH,wBAAgB,cAAc,CAAC,WAAW,EAAE,WAAW,EAAE,MAAM,EAAE,aAAa,EAAE,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAE,EAAE,CAWlH"}
|
|
@@ -85,6 +85,8 @@ export function greenBranches(green) {
|
|
|
85
85
|
}
|
|
86
86
|
/** The default `ci.green.window`. */
|
|
87
87
|
export const DEFAULT_CI_WINDOW = "24h";
|
|
88
|
+
/** The default `ci.green.quarantine.maxDays` (#4677): how far out an entry's `until` may be. */
|
|
89
|
+
export const DEFAULT_QUARANTINE_MAX_DAYS = 14;
|
|
88
90
|
/** A lane's tag prefixes (#4662): `ci/green-<lane>/` and `ci/revoked-<lane>/`. */
|
|
89
91
|
export function laneTagPrefixes(lane) {
|
|
90
92
|
return { green: `ci/green-${lane}/`, revoked: `ci/revoked-${lane}/` };
|
|
@@ -692,12 +694,53 @@ function ciOf(raw, at) {
|
|
|
692
694
|
return { name, require: [...l.require], pointer };
|
|
693
695
|
});
|
|
694
696
|
if (g.notify !== undefined) {
|
|
695
|
-
|
|
697
|
+
// staleAfter is the tick's own (#4678); the rest is notify's.
|
|
698
|
+
const object = typeof g.notify === "object" && g.notify !== null && !Array.isArray(g.notify);
|
|
699
|
+
const { staleAfter, ...config } = object ? g.notify : {};
|
|
700
|
+
const problem = notifyConfigProblem(object ? config : g.notify, "ci.green.notify");
|
|
696
701
|
if (problem)
|
|
697
702
|
throw new WorkspaceReadError("declaration-invalid", problem, at("/ci/green/notify"));
|
|
703
|
+
if (staleAfter !== undefined && !(typeof staleAfter === "number" && Number.isFinite(staleAfter) && staleAfter > 0)) {
|
|
704
|
+
throw new WorkspaceReadError("declaration-invalid", "ci.green.notify.staleAfter: a number of hours greater than 0", at("/ci/green/notify/staleAfter"));
|
|
705
|
+
}
|
|
698
706
|
}
|
|
707
|
+
const quarantine = g.quarantine !== undefined ? quarantineOf(g.quarantine, phases, at) : undefined;
|
|
699
708
|
const judged = Array.isArray(g.branch) ? g.branch : [g.branch];
|
|
700
|
-
return { green: { branch: judged[0], ...(judged.length > 1 ? { branches: [...judged] } : {}), window: g.window ?? DEFAULT_CI_WINDOW, phases, require: [...g.require], ...(g.preMerge !== undefined ? { preMerge: [...g.preMerge] } : {}), signedSince: g.signedSince ?? null, source: g.source ?? "checks", ...(lanes.length > 0 ? { lanes } : {}), ...(g.notify !== undefined ? { notify: { ...g.notify, ...(g.notify.events ? { events: [...g.notify.events] } : {}) } } : {}), ...(g.mergeQueue === true ? { mergeQueue: true } : {}), pointer: "/ci/green" }, ...workflow, reportUrl };
|
|
709
|
+
return { green: { branch: judged[0], ...(judged.length > 1 ? { branches: [...judged] } : {}), window: g.window ?? DEFAULT_CI_WINDOW, phases, require: [...g.require], ...(g.preMerge !== undefined ? { preMerge: [...g.preMerge] } : {}), signedSince: g.signedSince ?? null, source: g.source ?? "checks", ...(lanes.length > 0 ? { lanes } : {}), ...(g.notify !== undefined ? { notify: { ...g.notify, ...(g.notify.events ? { events: [...g.notify.events] } : {}) } } : {}), ...(g.mergeQueue === true ? { mergeQueue: true } : {}), ...(quarantine ? { quarantine } : {}), pointer: "/ci/green" }, ...workflow, reportUrl };
|
|
710
|
+
}
|
|
711
|
+
/** A YYYY-MM-DD that names a real day, as days since 1970-01-01 UTC, or null. */
|
|
712
|
+
export function quarantineDay(s) {
|
|
713
|
+
if (!/^\d{4}-\d{2}-\d{2}$/.test(s))
|
|
714
|
+
return null;
|
|
715
|
+
const t = Date.parse(`${s}T00:00:00Z`);
|
|
716
|
+
return Number.isNaN(t) || new Date(t).toISOString().slice(0, 10) !== s ? null : t / 86400000;
|
|
717
|
+
}
|
|
718
|
+
/**
|
|
719
|
+
* `ci.green.quarantine` (#4677), checked for what holds on any day: each
|
|
720
|
+
* phase is declared, each `until` is a real day, and no test is listed twice
|
|
721
|
+
* in a phase. Whether an entry has expired depends on the day it is read,
|
|
722
|
+
* so `chant ci quarantine check` and `filter` judge that, not the reader.
|
|
723
|
+
*/
|
|
724
|
+
function quarantineOf(raw, phases, at) {
|
|
725
|
+
const entries = [];
|
|
726
|
+
for (const [phase, list] of Object.entries(raw.phases)) {
|
|
727
|
+
const base = `/ci/green/quarantine/phases/${pointerToken(phase)}`;
|
|
728
|
+
if (!phases.some((p) => p.name === phase)) {
|
|
729
|
+
throw new WorkspaceReadError("declaration-invalid", `ci.green.quarantine.phases names the phase ${JSON.stringify(phase)}, which ci.green.phases does not declare; declared phases: ${phases.map((p) => p.name).join(", ")}`, at(base, true));
|
|
730
|
+
}
|
|
731
|
+
const seen = new Set();
|
|
732
|
+
for (const [i, e] of list.entries()) {
|
|
733
|
+
const pointer = `${base}/${i}`;
|
|
734
|
+
if (quarantineDay(e.until) === null)
|
|
735
|
+
throw new WorkspaceReadError("declaration-invalid", `ci.green.quarantine.phases.${phase}[${i}].until is not a day: ${JSON.stringify(e.until)} (YYYY-MM-DD)`, at(`${pointer}/until`));
|
|
736
|
+
const key = JSON.stringify([e.file ?? null, e.test]);
|
|
737
|
+
if (seen.has(key))
|
|
738
|
+
throw new WorkspaceReadError("declaration-invalid", `ci.green.quarantine.phases.${phase} lists ${e.file !== undefined ? `${e.file} ` : ""}${JSON.stringify(e.test)} twice`, at(pointer));
|
|
739
|
+
seen.add(key);
|
|
740
|
+
entries.push({ phase, test: e.test, ...(e.file !== undefined ? { file: e.file } : {}), issue: e.issue, until: e.until, why: e.why, pointer, location: at(pointer) });
|
|
741
|
+
}
|
|
742
|
+
}
|
|
743
|
+
return { maxDays: raw.maxDays ?? DEFAULT_QUARANTINE_MAX_DAYS, entries, pointer: "/ci/green/quarantine" };
|
|
701
744
|
}
|
|
702
745
|
function agentsOf(raw, members, at) {
|
|
703
746
|
const agents = (raw ?? []).map((a, i) => {
|
|
@@ -333,7 +333,7 @@
|
|
|
333
333
|
"properties": {
|
|
334
334
|
"template": {
|
|
335
335
|
"type": "string",
|
|
336
|
-
"pattern": "^[a-z0-9][a-z0-9-]
|
|
336
|
+
"pattern": "^[a-z0-9][a-z0-9-]*(/[a-z0-9][a-z0-9-]*)?$",
|
|
337
337
|
"description": "The declared environment a pull request's environment is derived from: pr-<number> takes its endpoint unless a pr-* entry declares one."
|
|
338
338
|
},
|
|
339
339
|
"ttl": {
|
|
@@ -1907,13 +1907,61 @@
|
|
|
1907
1907
|
},
|
|
1908
1908
|
"notify": {
|
|
1909
1909
|
"type": "object",
|
|
1910
|
-
"description": "Who chant ci tick tells (#4645), as an Op waves spec's notify: each value names an environment variable, never a URL or a key. webhook and key: a signed chant.notify/v1 webhook; slack and teams: incoming webhooks; events: which to send, of ci.red, ci.culprit and ci.
|
|
1910
|
+
"description": "Who chant ci tick tells (#4645), as an Op waves spec's notify: each value names an environment variable, never a URL or a key. webhook and key: a signed chant.notify/v1 webhook; slack and teams: incoming webhooks; events: which to send, of ci.red, ci.culprit, ci.green and ci.quarantine-passed (all of them by default). ci.red: the branch's newest decided commit is red after its one retry. ci.culprit: a bisect named the first red commit. ci.green: the branch is green again after a ci.red. ci.quarantine-passed (#4677), from chant ci quarantine report rather than the tick: a quarantined test passed in the scheduled run, sent on every such run until its entry goes. The tick's events are each sent once: the tick marks it in the commit's _ci record, so it needs chant/lifecycle, and it sends nothing when it can't write the records. Read by chant 0.124.61 and newer, so a declaration that sets it sets minReader to 0.124.61 or newer. staleAfter adds ci.stale (#4678).",
|
|
1911
1911
|
"properties": {
|
|
1912
1912
|
"webhook": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]*$" },
|
|
1913
1913
|
"key": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]*$" },
|
|
1914
1914
|
"slack": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]*$" },
|
|
1915
1915
|
"teams": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]*$" },
|
|
1916
|
-
"events": { "type": "array", "uniqueItems": true, "items": { "enum": ["ci.red", "ci.culprit", "ci.green"] } }
|
|
1916
|
+
"events": { "type": "array", "uniqueItems": true, "items": { "enum": ["ci.red", "ci.culprit", "ci.green", "ci.quarantine-passed", "ci.stale"] } },
|
|
1917
|
+
"staleAfter": {
|
|
1918
|
+
"type": "number",
|
|
1919
|
+
"exclusiveMinimum": 0,
|
|
1920
|
+
"description": "Added by #4678. Hours the branch may go without a green commit before the tick sends ci.stale: when the oldest first-parent commit above the newest green one (ci/green, not revoked; lanes don't count) was committed this long ago. It names the tip, that commit (since), the green commit (lastGreen) and the whole hours. It is sent once per red stretch, marked in _ci/branch/<branch>.json on chant/lifecycle, and the stretch ends when a newer commit is green: the tick then sends ci.green naming since, or adds since to the ci.green it sends anyway. The generated chant-ci-green.yml ticks every 15 minutes on a schedule, so this fires when nothing else runs the tick. Unset, no ci.stale. Read by chant 0.124.63 and newer, so a declaration that sets staleAfter sets minReader to 0.124.63 or newer."
|
|
1921
|
+
}
|
|
1922
|
+
},
|
|
1923
|
+
"additionalProperties": false
|
|
1924
|
+
},
|
|
1925
|
+
"quarantine": {
|
|
1926
|
+
"type": "object",
|
|
1927
|
+
"required": ["phases"],
|
|
1928
|
+
"description": "Known-flaky tests the phases' runners leave out until they are fixed (#4677). Each entry names the test, the issue that tracks the fix, the last day it stays out (until) and why. Each phase's runner gets its filter from chant ci quarantine filter --phase <name> --runner nextest|playwright|list, and chant ci quarantine check fails, as filter does, when an entry is past its until or the until is more than maxDays from today. A scheduled run of the quarantined tests alone, which no phase's patterns match, tells whether one is fixed. Read by chant 0.124.63 and newer, so a declaration that sets it sets minReader to 0.124.63 or newer.",
|
|
1929
|
+
"properties": {
|
|
1930
|
+
"maxDays": {
|
|
1931
|
+
"type": "integer",
|
|
1932
|
+
"minimum": 1,
|
|
1933
|
+
"description": "How many days from today an entry's until may be, at most. 14 when absent."
|
|
1934
|
+
},
|
|
1935
|
+
"phases": {
|
|
1936
|
+
"type": "object",
|
|
1937
|
+
"minProperties": 1,
|
|
1938
|
+
"description": "The quarantined tests by phase. Each phase must be a declared phase.",
|
|
1939
|
+
"propertyNames": {
|
|
1940
|
+
"$ref": "#/$defs/ciPhaseName"
|
|
1941
|
+
},
|
|
1942
|
+
"additionalProperties": {
|
|
1943
|
+
"type": "array",
|
|
1944
|
+
"minItems": 1,
|
|
1945
|
+
"items": {
|
|
1946
|
+
"type": "object",
|
|
1947
|
+
"required": ["test", "issue", "until", "why"],
|
|
1948
|
+
"properties": {
|
|
1949
|
+
"test": { "type": "string", "minLength": 1, "description": "The test, as its runner names it. nextest: the binary id, a space and the test's name, as nextest prints them, or the test's name alone for any binary. Playwright: the test's title, with file set." },
|
|
1950
|
+
"file": { "type": "string", "minLength": 1, "description": "The file the test is in, from the runner's test directory: for Playwright the spec's path from testDir, as Playwright prints it." },
|
|
1951
|
+
"issue": { "type": "string", "pattern": "^(#?[0-9]+|https?://\\S+)$", "description": "The issue that tracks the fix: a number or a URL." },
|
|
1952
|
+
"until": { "type": "string", "pattern": "^[0-9]{4}-[0-9]{2}-[0-9]{2}$", "description": "The last day the test stays out, YYYY-MM-DD, UTC." },
|
|
1953
|
+
"why": { "type": "string", "minLength": 1, "description": "One line: how it fails." }
|
|
1954
|
+
},
|
|
1955
|
+
"patternProperties": {
|
|
1956
|
+
"^x-": true
|
|
1957
|
+
},
|
|
1958
|
+
"additionalProperties": false
|
|
1959
|
+
}
|
|
1960
|
+
}
|
|
1961
|
+
}
|
|
1962
|
+
},
|
|
1963
|
+
"patternProperties": {
|
|
1964
|
+
"^x-": true
|
|
1917
1965
|
},
|
|
1918
1966
|
"additionalProperties": false
|
|
1919
1967
|
},
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Work items from the forge (#4649): the issues a squash-merged pull request
|
|
3
|
+
* closes.
|
|
4
|
+
*
|
|
5
|
+
* A project that squash-merges pull requests and tracks its work in forge
|
|
6
|
+
* issues writes no `Chant-Record` trailer. Its commit subjects end in
|
|
7
|
+
* `(#<n>)`, the pull request, and the pull request closes issues. Asked to
|
|
8
|
+
* (`--forge-issues`), `release candidates` and `workspace graph --intent` ask
|
|
9
|
+
* the forge which issues each pull request closes, through the forge clients
|
|
10
|
+
* of `../pr-forge.ts` ({@link PrForge.closingIssues}): one call per pull
|
|
11
|
+
* request, each answer kept for the rest of the read.
|
|
12
|
+
*
|
|
13
|
+
* The forge is the CI job's when the read runs in one ({@link detectForge}),
|
|
14
|
+
* else the one `origin` points at: github.com and hosts named for GitHub,
|
|
15
|
+
* hosts named for GitLab, and codeberg.org and hosts named for Forgejo or
|
|
16
|
+
* Gitea. The token is read in {@link FORGE_TOKEN_ORDER}, with
|
|
17
|
+
* `CHANT_FORGE_TOKEN` first, and on GitHub `gh auth token` for the host last.
|
|
18
|
+
*
|
|
19
|
+
* Nothing here fails a read. Without a forge or a token, offline, or when the
|
|
20
|
+
* forge answers an error, a pull request is `resolved: false` with the
|
|
21
|
+
* reason, and its number still stands. After a network failure, a 401 or a
|
|
22
|
+
* 403, the rest are answered with the same reason without another call.
|
|
23
|
+
*/
|
|
24
|
+
import { type ForgeFetch, type ForgeKind } from "../pr-forge.js";
|
|
25
|
+
/** What the forge says one pull request closes. */
|
|
26
|
+
export interface PullRequestCloses {
|
|
27
|
+
/** Whether the forge answered. When false, `issues` is empty and `reason` says why. */
|
|
28
|
+
resolved: boolean;
|
|
29
|
+
/** The issues of the repository the pull request closes, ascending. */
|
|
30
|
+
issues: number[];
|
|
31
|
+
/** Why the forge was not read, or null when it was. */
|
|
32
|
+
reason: string | null;
|
|
33
|
+
}
|
|
34
|
+
/** The forge a {@link ForgeWorkReader} reads, as the read found it. */
|
|
35
|
+
export interface ForgeWorkSource {
|
|
36
|
+
kind: ForgeKind;
|
|
37
|
+
host: string;
|
|
38
|
+
/** `owner/name`, or the GitLab project path. */
|
|
39
|
+
repo: string;
|
|
40
|
+
}
|
|
41
|
+
export interface ForgeWorkReader {
|
|
42
|
+
/** The forge read, or null when none could be worked out. */
|
|
43
|
+
source: ForgeWorkSource | null;
|
|
44
|
+
/** What pull request `pr` closes. Asked twice, the forge is called once. */
|
|
45
|
+
closes(pr: number): Promise<PullRequestCloses>;
|
|
46
|
+
/** {@link closes} for each of `prs`, a few at a time. */
|
|
47
|
+
closesAll(prs: Iterable<number>): Promise<Map<number, PullRequestCloses>>;
|
|
48
|
+
}
|
|
49
|
+
export interface ForgeWorkOptions {
|
|
50
|
+
/** Default `process.env`. */
|
|
51
|
+
env?: Record<string, string | undefined>;
|
|
52
|
+
fetch?: ForgeFetch;
|
|
53
|
+
/** `origin`'s URL. Default `git remote get-url origin` in `top`; null for none. */
|
|
54
|
+
remoteUrl?: string | null;
|
|
55
|
+
/** The token `gh` holds for a GitHub host, or undefined. Default `gh auth token --hostname <host>`. */
|
|
56
|
+
ghToken?: (host: string) => string | undefined;
|
|
57
|
+
/** How long one call may take. Default 15 seconds. */
|
|
58
|
+
timeoutMs?: number;
|
|
59
|
+
}
|
|
60
|
+
/** The forge kind a remote host is: github.com and hosts named for GitHub, GitLab, or Forgejo and Gitea (codeberg.org too). Null for any other. */
|
|
61
|
+
export declare function forgeKindOfHost(host: string): ForgeKind | null;
|
|
62
|
+
/** The REST base of a forge at `host`, as the clients take it. */
|
|
63
|
+
export declare function forgeApiBase(kind: ForgeKind, host: string): string;
|
|
64
|
+
/** A reader of what pull requests close, for the repository at `top`. */
|
|
65
|
+
export declare function forgeWorkReader(top: string, opts?: ForgeWorkOptions): ForgeWorkReader;
|
|
66
|
+
/**
|
|
67
|
+
* Set `closes` on each commit from what its `pullRequest` closes, asking the
|
|
68
|
+
* forge once per pull request; null for a commit with none. For
|
|
69
|
+
* `workspace graph --intent --forge-issues`, over the graph's commit nodes or
|
|
70
|
+
* a record walk's commits.
|
|
71
|
+
*/
|
|
72
|
+
export declare function setCommitCloses(commits: {
|
|
73
|
+
pullRequest: number | null;
|
|
74
|
+
closes?: PullRequestCloses | null;
|
|
75
|
+
}[], reader: ForgeWorkReader): Promise<void>;
|
|
76
|
+
//# sourceMappingURL=forge-work.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"forge-work.d.ts","sourceRoot":"","sources":["../../src/workspace/forge-work.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAKH,OAAO,EAAkF,KAAK,UAAU,EAAE,KAAK,SAAS,EAAkC,MAAM,aAAa,CAAC;AAE9K,mDAAmD;AACnD,MAAM,WAAW,iBAAiB;IAChC,uFAAuF;IACvF,QAAQ,EAAE,OAAO,CAAC;IAClB,uEAAuE;IACvE,MAAM,EAAE,MAAM,EAAE,CAAC;IACjB,uDAAuD;IACvD,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;CACvB;AAED,uEAAuE;AACvE,MAAM,WAAW,eAAe;IAC9B,IAAI,EAAE,SAAS,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,gDA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IAAI,CAAC,CAG1J"}
|
|
@@ -0,0 +1,160 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Work items from the forge (#4649): the issues a squash-merged pull request
|
|
3
|
+
* closes.
|
|
4
|
+
*
|
|
5
|
+
* A project that squash-merges pull requests and tracks its work in forge
|
|
6
|
+
* issues writes no `Chant-Record` trailer. Its commit subjects end in
|
|
7
|
+
* `(#<n>)`, the pull request, and the pull request closes issues. Asked to
|
|
8
|
+
* (`--forge-issues`), `release candidates` and `workspace graph --intent` ask
|
|
9
|
+
* the forge which issues each pull request closes, through the forge clients
|
|
10
|
+
* of `../pr-forge.ts` ({@link PrForge.closingIssues}): one call per pull
|
|
11
|
+
* request, each answer kept for the rest of the read.
|
|
12
|
+
*
|
|
13
|
+
* The forge is the CI job's when the read runs in one ({@link detectForge}),
|
|
14
|
+
* else the one `origin` points at: github.com and hosts named for GitHub,
|
|
15
|
+
* hosts named for GitLab, and codeberg.org and hosts named for Forgejo or
|
|
16
|
+
* Gitea. The token is read in {@link FORGE_TOKEN_ORDER}, with
|
|
17
|
+
* `CHANT_FORGE_TOKEN` first, and on GitHub `gh auth token` for the host last.
|
|
18
|
+
*
|
|
19
|
+
* Nothing here fails a read. Without a forge or a token, offline, or when the
|
|
20
|
+
* forge answers an error, a pull request is `resolved: false` with the
|
|
21
|
+
* reason, and its number still stands. After a network failure, a 401 or a
|
|
22
|
+
* 403, the rest are answered with the same reason without another call.
|
|
23
|
+
*/
|
|
24
|
+
import { execFileSync } from "node:child_process";
|
|
25
|
+
import { remoteRepoPath } from "../op/activities/forge-pull-request.js";
|
|
26
|
+
import { remoteHost } from "../op/activities/gh-host.js";
|
|
27
|
+
import { detectForge, FORGE_TOKEN_ORDER, ForgeApiError, forgeClient, forgeTargetFromEnv } from "../pr-forge.js";
|
|
28
|
+
/** How many pull requests are asked about at once. */
|
|
29
|
+
const CONCURRENCY = 4;
|
|
30
|
+
function gitRemote(top) {
|
|
31
|
+
try {
|
|
32
|
+
return execFileSync("git", ["remote", "get-url", "origin"], { cwd: top, encoding: "utf-8", stdio: ["ignore", "pipe", "ignore"] }).trim() || null;
|
|
33
|
+
}
|
|
34
|
+
catch {
|
|
35
|
+
return null;
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
function ghAuthToken(host) {
|
|
39
|
+
try {
|
|
40
|
+
return execFileSync("gh", ["auth", "token", "--hostname", host], { encoding: "utf-8", stdio: ["ignore", "pipe", "ignore"], timeout: 5000 }).trim() || undefined;
|
|
41
|
+
}
|
|
42
|
+
catch {
|
|
43
|
+
return undefined;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
/** The forge kind a remote host is: github.com and hosts named for GitHub, GitLab, or Forgejo and Gitea (codeberg.org too). Null for any other. */
|
|
47
|
+
export function forgeKindOfHost(host) {
|
|
48
|
+
const h = host.toLowerCase().replace(/:\d+$/, "");
|
|
49
|
+
if (h === "github.com" || /(^|[.-])github([.-]|$)/.test(h))
|
|
50
|
+
return "github";
|
|
51
|
+
if (h === "gitlab.com" || /(^|[.-])gitlab([.-]|$)/.test(h))
|
|
52
|
+
return "gitlab";
|
|
53
|
+
if (h === "codeberg.org" || /(^|[.-])(forgejo|gitea)([.-]|$)/.test(h))
|
|
54
|
+
return "forgejo";
|
|
55
|
+
return null;
|
|
56
|
+
}
|
|
57
|
+
/** The REST base of a forge at `host`, as the clients take it. */
|
|
58
|
+
export function forgeApiBase(kind, host) {
|
|
59
|
+
if (kind === "github")
|
|
60
|
+
return host === "github.com" ? "https://api.github.com" : `https://${host}/api/v3`;
|
|
61
|
+
return kind === "gitlab" ? `https://${host}/api/v4` : `https://${host}/api/v1`;
|
|
62
|
+
}
|
|
63
|
+
/** Where the issues are read from, or why they can't be. */
|
|
64
|
+
function locate(top, opts) {
|
|
65
|
+
const env = opts.env ?? process.env;
|
|
66
|
+
const job = detectForge(env);
|
|
67
|
+
if (job) {
|
|
68
|
+
try {
|
|
69
|
+
return { target: forgeTargetFromEnv(env, { kind: job }) };
|
|
70
|
+
}
|
|
71
|
+
catch (err) {
|
|
72
|
+
return { source: null, reason: err instanceof Error ? err.message : String(err) };
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
const url = opts.remoteUrl !== undefined ? opts.remoteUrl : gitRemote(top);
|
|
76
|
+
if (!url)
|
|
77
|
+
return { source: null, reason: "there is no origin remote to name the forge" };
|
|
78
|
+
const host = remoteHost(url);
|
|
79
|
+
const repo = remoteRepoPath(url);
|
|
80
|
+
const kind = host ? forgeKindOfHost(host) : null;
|
|
81
|
+
if (!host || !repo || !kind)
|
|
82
|
+
return { source: null, reason: `origin (${url}) is not on a forge chant reads issues from: GitHub, GitLab or Forgejo` };
|
|
83
|
+
const source = { kind, host, repo };
|
|
84
|
+
const names = ["CHANT_FORGE_TOKEN", ...FORGE_TOKEN_ORDER[kind]];
|
|
85
|
+
const tokenSource = names.find((n) => env[n]?.trim());
|
|
86
|
+
const token = tokenSource ? env[tokenSource].trim() : kind === "github" ? (opts.ghToken ?? ghAuthToken)(host) : undefined;
|
|
87
|
+
if (!token)
|
|
88
|
+
return { source, reason: `no token for ${host}: set ${names.join(", ")}${kind === "github" ? ", or log in with gh auth login" : ""}` };
|
|
89
|
+
return { target: { kind, apiBase: forgeApiBase(kind, host), repo, host, token, tokenSource: tokenSource ?? "gh auth token" } };
|
|
90
|
+
}
|
|
91
|
+
/** Why a failed call stops the rest: the forge can't be reached, or won't let this token read. */
|
|
92
|
+
function stopsTheRest(err) {
|
|
93
|
+
return !(err instanceof ForgeApiError) || err.status === 401 || err.status === 403;
|
|
94
|
+
}
|
|
95
|
+
/** A reader of what pull requests close, for the repository at `top`. */
|
|
96
|
+
export function forgeWorkReader(top, opts = {}) {
|
|
97
|
+
const where = locate(top, opts);
|
|
98
|
+
const cache = new Map();
|
|
99
|
+
let stopped = "reason" in where ? where.reason : null;
|
|
100
|
+
const client = "target" in where ? forgeClient(where.target, opts.fetch) : null;
|
|
101
|
+
const source = "target" in where ? { kind: where.target.kind, host: where.target.host, repo: where.target.repo } : where.source;
|
|
102
|
+
const timeoutMs = opts.timeoutMs ?? 15000;
|
|
103
|
+
const unresolved = (reason) => ({ resolved: false, issues: [], reason });
|
|
104
|
+
const ask = async (pr) => {
|
|
105
|
+
if (stopped !== null)
|
|
106
|
+
return unresolved(stopped);
|
|
107
|
+
if (!client?.closingIssues)
|
|
108
|
+
return unresolved(`the ${source?.kind ?? "forge"} client can't list the issues a pull request closes`);
|
|
109
|
+
let timer;
|
|
110
|
+
try {
|
|
111
|
+
const timeout = new Promise((_, reject) => {
|
|
112
|
+
timer = setTimeout(() => reject(new Error(`no answer in ${timeoutMs / 1000}s`)), timeoutMs);
|
|
113
|
+
});
|
|
114
|
+
const issues = await Promise.race([client.closingIssues(pr), timeout]);
|
|
115
|
+
return { resolved: true, issues, reason: null };
|
|
116
|
+
}
|
|
117
|
+
catch (err) {
|
|
118
|
+
const message = `${source?.host ?? "the forge"} could not be read: ${err instanceof Error ? err.message : String(err)}`;
|
|
119
|
+
if (stopsTheRest(err))
|
|
120
|
+
stopped = message;
|
|
121
|
+
return unresolved(message);
|
|
122
|
+
}
|
|
123
|
+
finally {
|
|
124
|
+
clearTimeout(timer);
|
|
125
|
+
}
|
|
126
|
+
};
|
|
127
|
+
const closes = (pr) => {
|
|
128
|
+
let hit = cache.get(pr);
|
|
129
|
+
if (!hit) {
|
|
130
|
+
hit = ask(pr);
|
|
131
|
+
cache.set(pr, hit);
|
|
132
|
+
}
|
|
133
|
+
return hit;
|
|
134
|
+
};
|
|
135
|
+
return {
|
|
136
|
+
source,
|
|
137
|
+
closes,
|
|
138
|
+
async closesAll(prs) {
|
|
139
|
+
const queue = [...new Set(prs)];
|
|
140
|
+
const out = new Map();
|
|
141
|
+
const worker = async () => {
|
|
142
|
+
for (let pr = queue.shift(); pr !== undefined; pr = queue.shift())
|
|
143
|
+
out.set(pr, await closes(pr));
|
|
144
|
+
};
|
|
145
|
+
await Promise.all(Array.from({ length: Math.min(CONCURRENCY, queue.length) }, worker));
|
|
146
|
+
return out;
|
|
147
|
+
},
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
/**
|
|
151
|
+
* Set `closes` on each commit from what its `pullRequest` closes, asking the
|
|
152
|
+
* forge once per pull request; null for a commit with none. For
|
|
153
|
+
* `workspace graph --intent --forge-issues`, over the graph's commit nodes or
|
|
154
|
+
* a record walk's commits.
|
|
155
|
+
*/
|
|
156
|
+
export async function setCommitCloses(commits, reader) {
|
|
157
|
+
const closed = await reader.closesAll(commits.map((c) => c.pullRequest).filter((n) => n !== null));
|
|
158
|
+
for (const c of commits)
|
|
159
|
+
c.closes = c.pullRequest !== null ? (closed.get(c.pullRequest) ?? null) : null;
|
|
160
|
+
}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* The module imports node:crypto through `./trust/gate-seal.ts` and nothing
|
|
14
14
|
* else: no zod, no ajv, no package loading, so it bundles small.
|
|
15
15
|
*/
|
|
16
|
-
import { type SealedGateApproval } from "../lifecycle/gate-seal.js";
|
|
16
|
+
import { type PasskeySigner, type SealedGateApproval } from "../lifecycle/gate-seal.js";
|
|
17
17
|
import type { Signer } from "./trust/trust-files.js";
|
|
18
18
|
/** The core classes, in the order a principal's roles are tried; `human` holds no role and is the rest. */
|
|
19
19
|
export declare const CORE_PRINCIPAL_CLASSES: readonly ["human", "agent", "runner", "service"];
|
|
@@ -35,11 +35,12 @@ export interface GateAdmissionRule {
|
|
|
35
35
|
gate: string;
|
|
36
36
|
/** The class the approver must be in, or null for any signer. */
|
|
37
37
|
class: string | null;
|
|
38
|
-
/** The signers file at base: its path, whether it exists, and its signers. */
|
|
38
|
+
/** The signers file at base: its path, whether it exists, and its signers, with the passkeys `.chant/trust.json` lists (#4646). */
|
|
39
39
|
signers: {
|
|
40
40
|
signersPath: string;
|
|
41
41
|
active: boolean;
|
|
42
42
|
signers: readonly Signer[];
|
|
43
|
+
passkeys?: readonly PasskeySigner[];
|
|
43
44
|
};
|
|
44
45
|
/** The role grants at base (`.chant/trust.json` `roles`). */
|
|
45
46
|
roles: Readonly<Record<string, readonly string[]>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity-gate-rule.d.ts","sourceRoot":"","sources":["../../src/workspace/identity-gate-rule.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,
|
|
1
|
+
{"version":3,"file":"identity-gate-rule.d.ts","sourceRoot":"","sources":["../../src/workspace/identity-gate-rule.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;GAcG;AAEH,OAAO,EAAkJ,KAAK,aAAa,EAAE,KAAK,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AACrO,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,qBAAqB,CAAC;AAElD,2GAA2G;AAC3G,eAAO,MAAM,sBAAsB,YAAI,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,SAAS,CAAU,CAAC;AACvF,MAAM,MAAM,kBAAkB,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AAEzE,MAAM,WAAW,cAAc;IAC7B,IAAI,EAAE,MAAM,CAAC;IACb,2CAA2C;IAC3C,WAAW,EAAE,MAAM,CAAC;IACpB,iGAAiG;IACjG,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,yEAAyE;IACzE,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,eAAO,MAAM,YAAY,EAAE,SAAS,cAAc,EAKjD,CAAC;AAEF,kHAAkH;AAClH,MAAM,MAAM,UAAU,GAAG,IAAI,CAAC,cAAc,EAAE,MAAM,GAAG,MAAM,CAAC,CAAC;AAE/D,oEAAoE;AACpE,MAAM,WAAW,iBAAiB;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,iEAAiE;IACjE,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,mIAAmI;IACnI,OAAO,EAAE;QAAE,WAAW,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,OAAO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M,GAAG,IAAI,CAM7F;AAED,sGAAsG;AACtG,MAAM,WAAW,qBAAqB;IACpC,mLAAmL;IACnL,MAAM,EAAE,UAAU,GAAG,UAAU,GAAG,YAAY,CAAC;IAC/C,0GAA0G;IAC1G,GAAG,EAAE,MAAM,GAAG,IAAI,CAAC;IACnB,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,oHAAoH;AACpH,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,iBAAiB,EAAE,GAAG,EAAE,gBAAgB,GAAG,qBAAqB,CAO3G"}
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
* The module imports node:crypto through `./trust/gate-seal.ts` and nothing
|
|
14
14
|
* else: no zod, no ajv, no package loading, so it bundles small.
|
|
15
15
|
*/
|
|
16
|
-
import {
|
|
16
|
+
import { checkGateSignature, gateSealPayload, namespaceAllowed, sshKeyFingerprint, sshSignatureKey, unlistedWhat, unlistedWhere, verifySshSignatureWith } from "../lifecycle/gate-seal.js";
|
|
17
17
|
/** The core classes, in the order a principal's roles are tried; `human` holds no role and is the rest. */
|
|
18
18
|
export const CORE_PRINCIPAL_CLASSES = ["human", "agent", "runner", "service"];
|
|
19
19
|
export const CORE_CLASSES = [
|
|
@@ -131,10 +131,8 @@ function sealRefusal(gate, signers, a) {
|
|
|
131
131
|
if (normalise(seal.signer) !== normalise(a.resolvedBy))
|
|
132
132
|
return `the seal on ${what} is by ${seal.signer}, and its approver is ${a.resolvedBy || "empty"}`;
|
|
133
133
|
const where = `${signers.signersPath} at base`;
|
|
134
|
-
const
|
|
135
|
-
if (
|
|
136
|
-
return
|
|
137
|
-
|
|
138
|
-
const r = verifySshSignatureWith(seal.signature, gateSealPayload(a), GATE_SEAL_NAMESPACE, keys);
|
|
139
|
-
return r.ok ? null : `the seal does not verify for ${a.resolvedBy} against ${where}: ${r.reason}`;
|
|
134
|
+
const r = checkGateSignature(signers, a.resolvedBy, seal, gateSealPayload(a));
|
|
135
|
+
if (r.ok)
|
|
136
|
+
return null;
|
|
137
|
+
return r.unlisted ? `${a.resolvedBy} has no ${unlistedWhat(seal)} in ${unlistedWhere(seal, where)}, so the seal can't count` : `the seal does not verify for ${a.resolvedBy} against ${where}: ${r.reason}`;
|
|
140
138
|
}
|
|
@@ -6,8 +6,9 @@
|
|
|
6
6
|
* it to chant's write commands (`--by`, `--actor`). chant records what it is
|
|
7
7
|
* given and says which form it is:
|
|
8
8
|
*
|
|
9
|
-
* - `signer`: a principal `.chant/allowed_signers` lists at base
|
|
10
|
-
*
|
|
9
|
+
* - `signer`: a principal `.chant/allowed_signers` lists at base, or one with
|
|
10
|
+
* a passkey in `.chant/trust.json` (#4646). A seal made with that
|
|
11
|
+
* principal's key (`--sign`) or passkey (`--signature`) attests it.
|
|
11
12
|
* - `forge`: a forge identity, `github:<login>`, `gitlab:<login>`, or
|
|
12
13
|
* `<forge>@<host>:<login>` (forgejo, gitea, or a self-hosted github or
|
|
13
14
|
* gitlab). The surface that signed the person in vouches for it; nothing
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../src/workspace/identity.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../src/workspace/identity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,KAAK,EAAE,WAAW,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EAA+B,KAAK,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AAC3F,OAAO,EAA4C,KAAK,aAAa,EAAE,MAAM,qBAAqB,CAAC;AAGnG,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAClD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,wBAAwB,CAAC;AAGjE,4CAA4C;AAC5C,eAAO,MAAM,MAAM,YAAI,QAAQ,EAAE,QAAQ,EAAE,SAAS,EAAE,OAA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