@patronage/factory-ci 1.0.0-alpha.44 → 1.0.0-alpha.46
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/README.md +10 -8
- package/dist/.build-fingerprint.json +1 -1
- package/dist/alchemy/index.d.ts +100 -134
- package/dist/alchemy/index.js +65 -76
- package/dist/{bundle-alchemy-entry-CT5hCphA.js → bundle-alchemy-entry-Ba1Ebp91.js} +15 -15
- package/dist/{execute-alchemy-entry-C2ZhsNTN.js → execute-alchemy-entry-CxQrjSg8.js} +18 -15
- package/dist/{execute-alchemy-entry-B397GSk5.d.ts → execute-alchemy-entry-D75saOiE.d.ts} +9 -14
- package/dist/index.d.ts +175 -257
- package/dist/index.js +59 -127
- package/package.json +15 -14
- package/src/actions.ts +0 -7
- package/src/alchemy/child-diagnostics.ts +1 -2
- package/src/alchemy/credential-preflight.ts +0 -9
- package/src/alchemy/destroy-postcondition.ts +1 -5
- package/src/alchemy/first-deploy-authorization.ts +1 -4
- package/src/alchemy/lifecycle.ts +88 -33
- package/src/alchemy/local-emulation.ts +4 -3
- package/src/alchemy/plan-effects.ts +1 -1
- package/src/alchemy/stage-policy.ts +3 -5
- package/src/alchemy/url-implies-auth.ts +1 -5
- package/src/alchemy-baseline.ts +27 -7
- package/src/bundle-alchemy-entry.ts +21 -13
- package/src/disposable-stage.ts +2 -3
- package/src/github-app-token.ts +3 -9
- package/src/proof-reuse-gate.ts +16 -56
- package/src/proof-reuse-presentation.ts +0 -3
- package/src/push-identity-workflow.ts +1 -5
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import { a as BundleAlchemyEntryOptions, i as executeAlchemyEntry, n as ExecuteAlchemyEntryOptions, o as bundleAlchemyEntry, r as ExecuteAlchemyEntryResult, t as EXECUTE_ALCHEMY_ENTRY_MAX_BUFFER } from "./execute-alchemy-entry-
|
|
1
|
+
import { a as BundleAlchemyEntryOptions, i as executeAlchemyEntry, n as ExecuteAlchemyEntryOptions, o as bundleAlchemyEntry, r as ExecuteAlchemyEntryResult, t as EXECUTE_ALCHEMY_ENTRY_MAX_BUFFER } from "./execute-alchemy-entry-D75saOiE.js";
|
|
2
2
|
import { StdioOptions } from "node:child_process";
|
|
3
|
-
|
|
4
|
-
//#region src/alchemy-baseline.d.ts
|
|
5
3
|
/**
|
|
6
4
|
* The Alchemy fleet baseline (#985, #993). Every factory project that
|
|
7
5
|
* imports `@patronage/factory-ci/alchemy` pins `alchemy` and `effect` to
|
|
@@ -11,9 +9,9 @@ import { StdioOptions } from "node:child_process";
|
|
|
11
9
|
* This module is a plain constant: it imports neither `alchemy` nor
|
|
12
10
|
* `effect`, so it ships from the root entry, not the `./alchemy` subpath.
|
|
13
11
|
*/
|
|
14
|
-
declare const ALCHEMY_BASELINE: {
|
|
15
|
-
readonly alchemy: "2.0.0-beta.
|
|
16
|
-
readonly effect: "4.0.
|
|
12
|
+
export declare const ALCHEMY_BASELINE: {
|
|
13
|
+
readonly alchemy: "2.0.0-beta.84";
|
|
14
|
+
readonly effect: "4.0.6";
|
|
17
15
|
};
|
|
18
16
|
/**
|
|
19
17
|
* The slice of a consumer's `package.json` that carries the pins this
|
|
@@ -30,7 +28,9 @@ interface AssertAlchemyBaselineInput {
|
|
|
30
28
|
}
|
|
31
29
|
/**
|
|
32
30
|
* Fails when the consumer's `alchemy` or `effect` pin differs from
|
|
33
|
-
* {@link ALCHEMY_BASELINE},
|
|
31
|
+
* {@link ALCHEMY_BASELINE}, when the pair is incomplete (a pinned Alchemy
|
|
32
|
+
* provider package such as `@alchemy.run/cloudflare` demands both), or when a
|
|
33
|
+
* pinned provider package is not at the baseline `alchemy` version.
|
|
34
34
|
* Alchemy peers on Effect, so an unpinned auto-installed Effect can drift
|
|
35
35
|
* outside the baseline while a lone `alchemy` pin would otherwise pass.
|
|
36
36
|
* Both packages remaining absent is not drift — they are optional peers of
|
|
@@ -40,22 +40,11 @@ interface AssertAlchemyBaselineInput {
|
|
|
40
40
|
* Reads only the `packageJson` object it is handed; it never walks the
|
|
41
41
|
* filesystem.
|
|
42
42
|
*/
|
|
43
|
-
declare const assertAlchemyBaseline: ({
|
|
44
|
-
packageJson
|
|
45
|
-
}: AssertAlchemyBaselineInput) => void;
|
|
46
|
-
//#endregion
|
|
47
|
-
//#region src/actions.d.ts
|
|
43
|
+
export declare const assertAlchemyBaseline: ({ packageJson }: AssertAlchemyBaselineInput) => void;
|
|
48
44
|
/**
|
|
49
45
|
* The GitHub Actions this family's workflow generators use, pinned to full
|
|
50
46
|
* commit SHAs in one place (#268).
|
|
51
47
|
*
|
|
52
|
-
* Every repository pinned the same *tags* and got different *commits*: this
|
|
53
|
-
* repository's `verify.yml` carried `actions/checkout@11d5960a` while
|
|
54
|
-
* `hq-deploy.yml` and all of paitronage carried `34e11487`, because gagen
|
|
55
|
-
* resolves a floating `@v4` at generation time and the files were generated
|
|
56
|
-
* months apart. Naming the SHA here is what makes that class of drift
|
|
57
|
-
* impossible: regenerating a workflow can no longer move a pin.
|
|
58
|
-
*
|
|
59
48
|
* `uses` is a bare `owner/repo@<sha>` string, safe to hand straight to a
|
|
60
49
|
* gagen step. The tag lives in its own field rather than as a `# v7.0.1`
|
|
61
50
|
* suffix on `uses`, because a `#` inside a YAML scalar forces quoting and
|
|
@@ -82,7 +71,7 @@ interface NodePnpmActionFamily {
|
|
|
82
71
|
* `factoryWorkflow`; there is deliberately no implicit default. Every action
|
|
83
72
|
* in this family declares `runs.using: node24` at the named release.
|
|
84
73
|
*/
|
|
85
|
-
declare const NODE_PNPM_ACTION_FAMILY_NODE24: {
|
|
74
|
+
export declare const NODE_PNPM_ACTION_FAMILY_NODE24: {
|
|
86
75
|
readonly checkout: {
|
|
87
76
|
readonly tag: "v7.0.1";
|
|
88
77
|
readonly uses: "actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1";
|
|
@@ -105,12 +94,10 @@ declare const NODE_PNPM_ACTION_FAMILY_NODE24: {
|
|
|
105
94
|
* `additionalActions.uploadArtifact` explicitly — the catalog names the pin,
|
|
106
95
|
* it does not inject the upload step.
|
|
107
96
|
*/
|
|
108
|
-
declare const UPLOAD_ARTIFACT: {
|
|
97
|
+
export declare const UPLOAD_ARTIFACT: {
|
|
109
98
|
readonly tag: "v4.6.2";
|
|
110
99
|
readonly uses: "actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02";
|
|
111
100
|
};
|
|
112
|
-
//#endregion
|
|
113
|
-
//#region src/candidate-lifecycle.d.ts
|
|
114
101
|
/**
|
|
115
102
|
* Pull-request events that can create or refresh a Factory candidate run.
|
|
116
103
|
*
|
|
@@ -118,14 +105,12 @@ declare const UPLOAD_ARTIFACT: {
|
|
|
118
105
|
* a run visible, while `factoryCandidateOrPushCondition` keeps substantive
|
|
119
106
|
* jobs idle until the pull request is a candidate.
|
|
120
107
|
*/
|
|
121
|
-
declare const FACTORY_CANDIDATE_PULL_REQUEST_TYPES: readonly ["opened", "synchronize", "reopened", "ready_for_review"];
|
|
108
|
+
export declare const FACTORY_CANDIDATE_PULL_REQUEST_TYPES: readonly ["opened", "synchronize", "reopened", "ready_for_review"];
|
|
122
109
|
/**
|
|
123
110
|
* Build a GitHub Actions job condition for candidate PRs and merge-target
|
|
124
111
|
* pushes. The caller owns triggers, jobs, runners, permissions, and topology.
|
|
125
112
|
*/
|
|
126
|
-
declare const factoryCandidateOrPushCondition: (candidateCondition?: string) => string;
|
|
127
|
-
//#endregion
|
|
128
|
-
//#region src/disposable-stage.d.ts
|
|
113
|
+
export declare const factoryCandidateOrPushCondition: (candidateCondition?: string) => string;
|
|
129
114
|
declare const localPreviewStageBrand: unique symbol;
|
|
130
115
|
type LocalPreviewStage = string & {
|
|
131
116
|
readonly [localPreviewStageBrand]: true;
|
|
@@ -146,11 +131,11 @@ interface ParseLocalPreviewStageExpected {
|
|
|
146
131
|
* Returns `null` rather than throwing when the value or expected ownership
|
|
147
132
|
* does not match.
|
|
148
133
|
*/
|
|
149
|
-
declare const parseLocalPreviewStage: (stage: string, expected?: ParseLocalPreviewStageExpected) => ParsedLocalPreviewStage | null;
|
|
134
|
+
export declare const parseLocalPreviewStage: (stage: string, expected?: ParseLocalPreviewStageExpected) => ParsedLocalPreviewStage | null;
|
|
150
135
|
/**
|
|
151
136
|
* Whether `stage` is disposable. Pass `pr` to also require PR ownership.
|
|
152
137
|
*/
|
|
153
|
-
declare const isLocalPreviewStage: (stage: string, pr?: number) => stage is LocalPreviewStage;
|
|
138
|
+
export declare const isLocalPreviewStage: (stage: string, pr?: number) => stage is LocalPreviewStage;
|
|
154
139
|
interface LocalPreviewStageOptions {
|
|
155
140
|
/** The pull request number. */
|
|
156
141
|
readonly pr: number;
|
|
@@ -165,9 +150,7 @@ interface LocalPreviewStageOptions {
|
|
|
165
150
|
* Throws when the inputs cannot produce a valid stage, so a caller can never
|
|
166
151
|
* deploy into a name the cleanup sweep will not recognise.
|
|
167
152
|
*/
|
|
168
|
-
declare const localPreviewStage: (options: LocalPreviewStageOptions) => LocalPreviewStage;
|
|
169
|
-
//#endregion
|
|
170
|
-
//#region src/preview-proof-lifecycle.d.ts
|
|
153
|
+
export declare const localPreviewStage: (options: LocalPreviewStageOptions) => LocalPreviewStage;
|
|
171
154
|
/**
|
|
172
155
|
* Preview-proof lifecycle: admit a disposable preview, register envelope-bound
|
|
173
156
|
* proof at head, and record cleanup. One `transition` path owns those state
|
|
@@ -278,16 +261,18 @@ interface PreviewProofResolveQuery {
|
|
|
278
261
|
readonly stack?: string;
|
|
279
262
|
readonly stage?: string;
|
|
280
263
|
}
|
|
281
|
-
declare const
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
264
|
+
declare const empty: () => PreviewProofLifecycleState;
|
|
265
|
+
declare const resolve: (state: PreviewProofLifecycleState, query?: PreviewProofResolveQuery) => readonly PreviewProofRegistration[];
|
|
266
|
+
declare const transition: (state: PreviewProofLifecycleState, event: PreviewProofLifecycleEvent) => PreviewProofLifecycleState;
|
|
267
|
+
declare const recover: (state: PreviewProofLifecycleState, event: Extract<PreviewProofLifecycleEvent, {
|
|
268
|
+
type: "cleanup";
|
|
269
|
+
}>) => PreviewProofLifecycleState;
|
|
270
|
+
export declare const previewProofLifecycle: {
|
|
271
|
+
readonly empty: typeof empty;
|
|
272
|
+
readonly recover: typeof recover;
|
|
273
|
+
readonly resolve: typeof resolve;
|
|
274
|
+
readonly transition: typeof transition;
|
|
288
275
|
};
|
|
289
|
-
//#endregion
|
|
290
|
-
//#region src/preview-proof-inventory.d.ts
|
|
291
276
|
/**
|
|
292
277
|
* Hosted preview-proof inventory (#639): persist and list Factory-App
|
|
293
278
|
* registrations, and record cleanup outcomes, without PR comments.
|
|
@@ -310,7 +295,7 @@ declare const previewProofLifecycle: {
|
|
|
310
295
|
* satisfies the preview demand.
|
|
311
296
|
*/
|
|
312
297
|
/** Check-run name that carries one registration JSON payload. Not a gate. */
|
|
313
|
-
declare const PREVIEW_PROOF_INVENTORY_CHECK_NAME = "patronage-factory/preview-proof";
|
|
298
|
+
export declare const PREVIEW_PROOF_INVENTORY_CHECK_NAME = "patronage-factory/preview-proof";
|
|
314
299
|
/**
|
|
315
300
|
* Least privilege for a job whose `GITHUB_TOKEN` calls `list`. A
|
|
316
301
|
* `permissions` block zeroes every unlisted scope, and `list` reads five
|
|
@@ -320,7 +305,7 @@ declare const PREVIEW_PROOF_INVENTORY_CHECK_NAME = "patronage-factory/preview-pr
|
|
|
320
305
|
* that omits `pull-requests: read` fails with 403 on a same-repository PR
|
|
321
306
|
* and skips every destroy matrix (#859). Give the discovery job this object.
|
|
322
307
|
*/
|
|
323
|
-
declare const PREVIEW_PROOF_INVENTORY_LIST_PERMISSIONS: Readonly<{
|
|
308
|
+
export declare const PREVIEW_PROOF_INVENTORY_LIST_PERMISSIONS: Readonly<{
|
|
324
309
|
readonly checks: "read";
|
|
325
310
|
readonly contents: "read";
|
|
326
311
|
readonly "pull-requests": "read";
|
|
@@ -380,6 +365,8 @@ interface PreviewProofInventoryCleanupInput {
|
|
|
380
365
|
stack: string;
|
|
381
366
|
stage: string;
|
|
382
367
|
}
|
|
368
|
+
/** Reached by callers as `previewProofInventory.memoryStore`. */
|
|
369
|
+
declare const memoryStore: () => PreviewProofInventoryStore;
|
|
383
370
|
/**
|
|
384
371
|
* The transport gave out — a network-level rejection (EPIPE, DNS, an aborted
|
|
385
372
|
* or timed-out request) or a transient HTTP status — and bounded retries did
|
|
@@ -388,27 +375,30 @@ interface PreviewProofInventoryCleanupInput {
|
|
|
388
375
|
* string is retained: the raw transport error can hold the request and its
|
|
389
376
|
* `Authorization` header, so it is deliberately discarded.
|
|
390
377
|
*/
|
|
391
|
-
declare class PreviewProofTransportError extends Error {
|
|
378
|
+
export declare class PreviewProofTransportError extends Error {
|
|
392
379
|
/** How many transport attempts were made before giving up. */
|
|
393
380
|
readonly attempts: number;
|
|
394
381
|
/** The last transient HTTP status, when the server answered at all. */
|
|
395
382
|
readonly status?: number;
|
|
396
383
|
constructor(reason: string, attempts: number, status?: number);
|
|
397
384
|
}
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
385
|
+
/** Reached by callers as `previewProofInventory.githubStore`. */
|
|
386
|
+
declare const githubStore: (transport: PreviewProofInventoryTransport) => PreviewProofInventoryStore;
|
|
387
|
+
declare const list: (input: PreviewProofInventoryListInput, access: PreviewProofInventoryAccess) => Promise<readonly PreviewProofRegistration[]>;
|
|
388
|
+
declare const persist: (input: PreviewProofInventoryPersistInput, access: PreviewProofInventoryAccess) => Promise<void>;
|
|
389
|
+
declare const recordCleanup: (input: PreviewProofInventoryCleanupInput, access: PreviewProofInventoryAccess) => Promise<PreviewProofRegistration>;
|
|
390
|
+
export declare const previewProofInventory: {
|
|
391
|
+
readonly githubStore: typeof githubStore;
|
|
392
|
+
readonly list: typeof list;
|
|
401
393
|
readonly listPermissions: Readonly<{
|
|
402
394
|
readonly checks: "read";
|
|
403
395
|
readonly contents: "read";
|
|
404
396
|
readonly "pull-requests": "read";
|
|
405
397
|
}>;
|
|
406
|
-
readonly memoryStore:
|
|
407
|
-
readonly persist:
|
|
408
|
-
readonly recordCleanup:
|
|
398
|
+
readonly memoryStore: typeof memoryStore;
|
|
399
|
+
readonly persist: typeof persist;
|
|
400
|
+
readonly recordCleanup: typeof recordCleanup;
|
|
409
401
|
};
|
|
410
|
-
//#endregion
|
|
411
|
-
//#region src/factory-workflow.d.ts
|
|
412
402
|
interface WorkflowStep {
|
|
413
403
|
readonly continueOnError?: boolean;
|
|
414
404
|
readonly env?: Readonly<Record<string, string>>;
|
|
@@ -443,7 +433,7 @@ interface FactoryWorkflowSetupOptions {
|
|
|
443
433
|
* them by display name or by array position/length, so renaming a step or
|
|
444
434
|
* adding a new supported role never breaks role-based composition (#1076).
|
|
445
435
|
*/
|
|
446
|
-
declare const SETUP_STEP_ROLES: readonly ["checkout", "setupPnpm", "setupNode", "install"];
|
|
436
|
+
export declare const SETUP_STEP_ROLES: readonly ["checkout", "setupPnpm", "setupNode", "install"];
|
|
447
437
|
type SetupStepRole = (typeof SETUP_STEP_ROLES)[number];
|
|
448
438
|
interface FactoryWorkflowOptions<Additional extends Readonly<Record<string, PinnedAction>>> {
|
|
449
439
|
/**
|
|
@@ -454,7 +444,9 @@ interface FactoryWorkflowOptions<Additional extends Readonly<Record<string, Pinn
|
|
|
454
444
|
/** Every workflow-specific action source this artifact owns. */
|
|
455
445
|
readonly additionalActions?: Additional;
|
|
456
446
|
readonly generated: {
|
|
457
|
-
/** Generator path relative to the repository root. */
|
|
447
|
+
/** Generator path relative to the repository root. */
|
|
448
|
+
readonly source: string;
|
|
449
|
+
/** Exact command that regenerates the emitted workflow. */
|
|
458
450
|
readonly regenerate: string;
|
|
459
451
|
};
|
|
460
452
|
readonly setup?: FactoryWorkflowSetupOptions;
|
|
@@ -490,7 +482,7 @@ interface FactoryWorkflowArtifact<Additional extends Readonly<Record<string, Pin
|
|
|
490
482
|
* head-pinned checkout with the shared pnpm/Node/install sequence), and that
|
|
491
483
|
* selection survives a renamed step or an added role.
|
|
492
484
|
*/
|
|
493
|
-
declare const setupStepsForRoles: (artifact: {
|
|
485
|
+
export declare const setupStepsForRoles: (artifact: {
|
|
494
486
|
readonly setupStepsByRole: Readonly<Record<SetupStepRole, WorkflowStep>>;
|
|
495
487
|
}, roles: readonly SetupStepRole[]) => readonly WorkflowStep[];
|
|
496
488
|
/**
|
|
@@ -500,9 +492,7 @@ declare const setupStepsForRoles: (artifact: {
|
|
|
500
492
|
* The caller still owns workflow topology, jobs, runners, permissions, and
|
|
501
493
|
* every deployment policy decision.
|
|
502
494
|
*/
|
|
503
|
-
declare const factoryWorkflow: <const Additional extends Readonly<Record<string, PinnedAction>> = Record<never, never>>(options: FactoryWorkflowOptions<Additional>) => FactoryWorkflowArtifact<Additional>;
|
|
504
|
-
//#endregion
|
|
505
|
-
//#region src/cursor-oidc.d.ts
|
|
495
|
+
export declare const factoryWorkflow: <const Additional extends Readonly<Record<string, PinnedAction>> = Record<never, never>>(options: FactoryWorkflowOptions<Additional>) => FactoryWorkflowArtifact<Additional>;
|
|
506
496
|
/**
|
|
507
497
|
* Pinned Cursor OIDC trust predicates for the Factory App broker (#949).
|
|
508
498
|
*
|
|
@@ -513,39 +503,35 @@ declare const factoryWorkflow: <const Additional extends Readonly<Record<string,
|
|
|
513
503
|
* is pinned.
|
|
514
504
|
*/
|
|
515
505
|
/** Cursor's OIDC issuer. Tokens minted on the agent VM carry this `iss`. */
|
|
516
|
-
declare const FACTORY_CURSOR_OIDC_ISSUER = "https://api.cursor.com";
|
|
506
|
+
export declare const FACTORY_CURSOR_OIDC_ISSUER = "https://api.cursor.com";
|
|
517
507
|
/** JWKS the broker uses to verify RS256 signatures. */
|
|
518
|
-
declare const FACTORY_CURSOR_OIDC_JWKS_URL = "https://api.cursor.com/keys";
|
|
508
|
+
export declare const FACTORY_CURSOR_OIDC_JWKS_URL = "https://api.cursor.com/keys";
|
|
519
509
|
/**
|
|
520
510
|
* Audience a Cursor-managed VM must mint with. The CLI and the broker share
|
|
521
511
|
* this string; Cursor does not allowlist audiences.
|
|
522
512
|
*/
|
|
523
|
-
declare const FACTORY_CURSOR_OIDC_AUDIENCE = "Factory";
|
|
513
|
+
export declare const FACTORY_CURSOR_OIDC_AUDIENCE = "Factory";
|
|
524
514
|
/**
|
|
525
515
|
* Runtime claim a Cursor-managed Cloud Agent VM always presents. Self-hosted
|
|
526
516
|
* workers are not this broker's callers.
|
|
527
517
|
*/
|
|
528
|
-
declare const FACTORY_CURSOR_OIDC_MANAGED_RUNTIME = "managed";
|
|
518
|
+
export declare const FACTORY_CURSOR_OIDC_MANAGED_RUNTIME = "managed";
|
|
529
519
|
/** HQ route that exchanges a verified Cursor OIDC JWT for an App token. */
|
|
530
|
-
declare const FACTORY_APP_BROKER_PATH = "/api/factory-app/installation-token";
|
|
520
|
+
export declare const FACTORY_APP_BROKER_PATH = "/api/factory-app/installation-token";
|
|
531
521
|
/** Production broker origin. The CLI pins this; it is not profile-declared. */
|
|
532
|
-
declare const FACTORY_APP_BROKER_ORIGIN = "https://hq.patronage.com";
|
|
533
|
-
//#endregion
|
|
534
|
-
//#region src/github-transport.d.ts
|
|
522
|
+
export declare const FACTORY_APP_BROKER_ORIGIN = "https://hq.patronage.com";
|
|
535
523
|
/**
|
|
536
524
|
* Bounded transport retries could not reach the GitHub App endpoint (#923).
|
|
537
525
|
* The reason is credential-free, so it is safe to log. Re-exported from
|
|
538
526
|
* `github-app-token.ts`, which owns the mint surface.
|
|
539
527
|
*/
|
|
540
|
-
declare class GitHubAppTokenTransportError extends Error {
|
|
528
|
+
export declare class GitHubAppTokenTransportError extends Error {
|
|
541
529
|
/** How many transport attempts were made before giving up. */
|
|
542
530
|
readonly attempts: number;
|
|
543
531
|
/** The last transient HTTP status, when the server answered at all. */
|
|
544
532
|
readonly status?: number;
|
|
545
533
|
constructor(reason: string, attempts: number, status?: number);
|
|
546
534
|
}
|
|
547
|
-
//#endregion
|
|
548
|
-
//#region src/github-app-token.d.ts
|
|
549
535
|
/**
|
|
550
536
|
* What a consumer must know to mint: the app id, where the private key is, and
|
|
551
537
|
* — when it has been recorded — which installation to mint against.
|
|
@@ -562,7 +548,7 @@ interface GithubAppCredentials {
|
|
|
562
548
|
privateKeyPath: string;
|
|
563
549
|
}
|
|
564
550
|
/** Carries the HTTP status so a caller can tell a retryable failure apart. */
|
|
565
|
-
declare class GitHubApiError extends Error {
|
|
551
|
+
export declare class GitHubApiError extends Error {
|
|
566
552
|
readonly status: number;
|
|
567
553
|
constructor(status: number, statusText: string);
|
|
568
554
|
}
|
|
@@ -575,7 +561,7 @@ interface GithubAppInstallationPermissions {
|
|
|
575
561
|
checks?: "read" | "write";
|
|
576
562
|
}
|
|
577
563
|
/** The Factory App broker's token: repo-scoped Checks write, nothing else. */
|
|
578
|
-
declare const FACTORY_APP_BROKER_TOKEN_PERMISSIONS: {
|
|
564
|
+
export declare const FACTORY_APP_BROKER_TOKEN_PERMISSIONS: {
|
|
579
565
|
readonly checks: "write";
|
|
580
566
|
};
|
|
581
567
|
interface GithubAppTokenOptions {
|
|
@@ -605,7 +591,7 @@ interface GithubAppTokenOptions {
|
|
|
605
591
|
* The signature is produced from the key on disk and returned; the key
|
|
606
592
|
* material itself never leaves this call.
|
|
607
593
|
*/
|
|
608
|
-
declare const githubAppJwt: (credentials: GithubAppCredentials, options?: Pick<GithubAppTokenOptions, "now" | "readPrivateKey">) => string;
|
|
594
|
+
export declare const githubAppJwt: (credentials: GithubAppCredentials, options?: Pick<GithubAppTokenOptions, "now" | "readPrivateKey">) => string;
|
|
609
595
|
/**
|
|
610
596
|
* Mint an installation access token for one repository.
|
|
611
597
|
*
|
|
@@ -618,7 +604,7 @@ declare const githubAppJwt: (credentials: GithubAppCredentials, options?: Pick<G
|
|
|
618
604
|
* a same-named repository under another (#1428). Nothing is cached: the token
|
|
619
605
|
* is returned to the caller and this module keeps no copy.
|
|
620
606
|
*/
|
|
621
|
-
declare const mintInstallationToken: (input: {
|
|
607
|
+
export declare const mintInstallationToken: (input: {
|
|
622
608
|
credentials: GithubAppCredentials;
|
|
623
609
|
owner: string;
|
|
624
610
|
/**
|
|
@@ -635,8 +621,6 @@ declare const mintInstallationToken: (input: {
|
|
|
635
621
|
repositories?: readonly string[];
|
|
636
622
|
repo: string;
|
|
637
623
|
}, options?: GithubAppTokenOptions) => Promise<string>;
|
|
638
|
-
//#endregion
|
|
639
|
-
//#region src/proof-reuse-gate.d.ts
|
|
640
624
|
/**
|
|
641
625
|
* The GitHub-side **proof-reuse gate** (ADR 0022, #309, #317).
|
|
642
626
|
*
|
|
@@ -644,11 +628,7 @@ declare const mintInstallationToken: (input: {
|
|
|
644
628
|
* reuse the local verification the factory already published for *this exact
|
|
645
629
|
* head*? It asks that only on a pull request, so every default-branch push
|
|
646
630
|
* executes the full hosted suite (#863). Refusing runs hosted CI; it never
|
|
647
|
-
* fails the candidate.
|
|
648
|
-
* repositories had independently grown their own answer to that question and
|
|
649
|
-
* had already drifted apart, so the answer lives here once, with the App
|
|
650
|
-
* identity, check name, step identity, output names, guard, and every trust
|
|
651
|
-
* predicate fixed rather than consumer-configurable.
|
|
631
|
+
* fails the candidate.
|
|
652
632
|
*
|
|
653
633
|
* What a consumer chooses is only *what its guarded surface requires*: the
|
|
654
634
|
* plain profile command objects that surface selects. Everything else below is
|
|
@@ -659,7 +639,7 @@ declare const mintInstallationToken: (input: {
|
|
|
659
639
|
* postable as a *commit status* by any token with write access, so only the
|
|
660
640
|
* Checks API is ever consulted and only under this exact name.
|
|
661
641
|
*/
|
|
662
|
-
declare const FACTORY_PROOF_GATE_CHECK_NAME = "patronage-factory/pr-verify";
|
|
642
|
+
export declare const FACTORY_PROOF_GATE_CHECK_NAME = "patronage-factory/pr-verify";
|
|
663
643
|
/**
|
|
664
644
|
* The Patronage Factory GitHub App, pinned (ADR 0022). A runner has no
|
|
665
645
|
* operator user config to read the producing App identity from, and the
|
|
@@ -667,16 +647,16 @@ declare const FACTORY_PROOF_GATE_CHECK_NAME = "patronage-factory/pr-verify";
|
|
|
667
647
|
* can point somewhere else. Neither the id nor the slug is a secret: GitHub
|
|
668
648
|
* returns `app.id` on every check run it serves.
|
|
669
649
|
*/
|
|
670
|
-
declare const FACTORY_PROOF_GATE_APP_ID = "4314840";
|
|
650
|
+
export declare const FACTORY_PROOF_GATE_APP_ID = "4314840";
|
|
671
651
|
/** Step id the guard condition refers to. */
|
|
672
|
-
declare const FACTORY_PROOF_GATE_STEP_ID = "factory-proof";
|
|
652
|
+
export declare const FACTORY_PROOF_GATE_STEP_ID = "factory-proof";
|
|
673
653
|
/**
|
|
674
654
|
* Human-visible name of the gate step as the Actions jobs API serves it. A
|
|
675
655
|
* read-only run analyzer (`psf ci:analyze`, #647) matches on this name to
|
|
676
656
|
* classify a run as proof-reuse versus full fallback, so it is exported from
|
|
677
657
|
* exactly the module that writes it — matching on a re-typed copy would drift.
|
|
678
658
|
*/
|
|
679
|
-
declare const FACTORY_PROOF_GATE_STEP_NAME = "Check for factory proof of this head";
|
|
659
|
+
export declare const FACTORY_PROOF_GATE_STEP_NAME = "Check for factory proof of this head";
|
|
680
660
|
/**
|
|
681
661
|
* The shell the gate runs under, and it is a correctness requirement rather
|
|
682
662
|
* than a preference.
|
|
@@ -699,28 +679,28 @@ declare const FACTORY_PROOF_GATE_STEP_NAME = "Check for factory proof of this he
|
|
|
699
679
|
* are deliberate: this one states the contract, that one means a runner which
|
|
700
680
|
* ignores it still gets a decision.
|
|
701
681
|
*/
|
|
702
|
-
declare const FACTORY_PROOF_GATE_SHELL = "bash --noprofile --norc {0}";
|
|
682
|
+
export declare const FACTORY_PROOF_GATE_SHELL = "bash --noprofile --norc {0}";
|
|
703
683
|
/** Output the verdict is written to. `true` — and only `true` — skips. */
|
|
704
|
-
declare const FACTORY_PROOF_GATE_OUTPUT = "reuse-proof";
|
|
684
|
+
export declare const FACTORY_PROOF_GATE_OUTPUT = "reuse-proof";
|
|
705
685
|
/**
|
|
706
686
|
* Machine-readable refusal category. Fleet-status reads this: it is what makes
|
|
707
687
|
* a reuse-collapses-to-never regression visible instead of hidden behind
|
|
708
688
|
* fail-open, which by construction looks exactly like healthy full CI.
|
|
709
689
|
*/
|
|
710
|
-
declare const FACTORY_PROOF_GATE_REASON_OUTPUT = "reason";
|
|
690
|
+
export declare const FACTORY_PROOF_GATE_REASON_OUTPUT = "reason";
|
|
711
691
|
/**
|
|
712
692
|
* Recorded verification mode, when the gate could read one. Diagnostic
|
|
713
693
|
* metadata only — never an authorization condition (ADR 0022). A reduced-mode
|
|
714
694
|
* proof that executed every command the surface requires is reusable.
|
|
715
695
|
*/
|
|
716
|
-
declare const FACTORY_PROOF_GATE_MODE_OUTPUT = "mode";
|
|
696
|
+
export declare const FACTORY_PROOF_GATE_MODE_OUTPUT = "mode";
|
|
717
697
|
/** Exact Checks API URL of the proof generation selected by the gate. */
|
|
718
|
-
declare const FACTORY_PROOF_GATE_SOURCE_URL_OUTPUT = "source-check-url";
|
|
698
|
+
export declare const FACTORY_PROOF_GATE_SOURCE_URL_OUTPUT = "source-check-url";
|
|
719
699
|
/**
|
|
720
700
|
* Guard for every step the gate protects. Deliberately `!= 'true'` and not
|
|
721
701
|
* `== 'false'`: an unset, empty, or garbled output must run the suite.
|
|
722
702
|
*/
|
|
723
|
-
declare const FACTORY_PROOF_GATE_GUARD = "steps.factory-proof.outputs.reuse-proof != 'true'";
|
|
703
|
+
export declare const FACTORY_PROOF_GATE_GUARD = "steps.factory-proof.outputs.reuse-proof != 'true'";
|
|
724
704
|
/**
|
|
725
705
|
* Pull requests only — the gate's single condition (#873, default since #863,
|
|
726
706
|
* the only mode since the merge-target opt-out was deleted).
|
|
@@ -736,10 +716,10 @@ declare const FACTORY_PROOF_GATE_GUARD = "steps.factory-proof.outputs.reuse-proo
|
|
|
736
716
|
* Which branches trigger the workflow at all stays repository-owned. This
|
|
737
717
|
* condition only keeps the gate from consulting proof outside a pull request.
|
|
738
718
|
*/
|
|
739
|
-
declare const FACTORY_PROOF_GATE_IF = "github.event_name == 'pull_request'";
|
|
719
|
+
export declare const FACTORY_PROOF_GATE_IF = "github.event_name == 'pull_request'";
|
|
740
720
|
/**
|
|
741
|
-
* The complete refusal vocabulary
|
|
742
|
-
*
|
|
721
|
+
* The complete refusal vocabulary: the only distinctions the gate can make
|
|
722
|
+
* from its Checks API reads.
|
|
743
723
|
*
|
|
744
724
|
* - `proven` a covering, passing, unambiguous proof for this exact head
|
|
745
725
|
* - `none` no App-verified factory check run at this commit
|
|
@@ -750,16 +730,13 @@ declare const FACTORY_PROOF_GATE_IF = "github.event_name == 'pull_request'";
|
|
|
750
730
|
* cover every required command
|
|
751
731
|
* - `ambiguous` two different generations share the newest instant, the
|
|
752
732
|
* newest repeats another run's verdict with no proof time to
|
|
753
|
-
* tell them apart, a run's start time cannot be ranked,
|
|
754
|
-
* newest pass
|
|
755
|
-
*
|
|
733
|
+
* tell them apart, a run's start time cannot be ranked, the
|
|
734
|
+
* newest pass records no verification start beside another run
|
|
735
|
+
* at this head (#1514), or the newest pass started before
|
|
736
|
+
* another run at this head was posted
|
|
756
737
|
* - `error` the gate could not reach a decision (fail open)
|
|
757
|
-
*
|
|
758
|
-
* There is no `reduced`: mode stopped being an authorization condition in
|
|
759
|
-
* ADR 0022, so a narrower run that still executed every required command is
|
|
760
|
-
* indistinguishable from a full one *for this surface*, which is the point.
|
|
761
738
|
*/
|
|
762
|
-
declare const FACTORY_PROOF_GATE_REASONS: readonly ["proven", "none", "pending", "failed", "unreadable", "incomplete", "ambiguous", "error"];
|
|
739
|
+
export declare const FACTORY_PROOF_GATE_REASONS: readonly ["proven", "none", "pending", "failed", "unreadable", "incomplete", "ambiguous", "error"];
|
|
763
740
|
type FactoryProofGateReason = (typeof FACTORY_PROOF_GATE_REASONS)[number];
|
|
764
741
|
/**
|
|
765
742
|
* One entry of a consumer's `verification.commands` (ADR 0021). Only the two
|
|
@@ -786,35 +763,16 @@ interface ProofReuseCommand {
|
|
|
786
763
|
* covering, so it is never silently treated as "requires nothing"; callers
|
|
787
764
|
* must refuse instead.
|
|
788
765
|
*/
|
|
789
|
-
declare const proofReuseRequiredCommands: (commands: readonly ProofReuseCommand[]) => readonly string[] | undefined;
|
|
766
|
+
export declare const proofReuseRequiredCommands: (commands: readonly ProofReuseCommand[]) => readonly string[] | undefined;
|
|
790
767
|
/**
|
|
791
|
-
* Resolve command
|
|
792
|
-
*
|
|
793
|
-
*
|
|
794
|
-
*
|
|
795
|
-
*
|
|
796
|
-
*
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
* catalog, and refuse to silently shrink the required set when a name has no
|
|
800
|
-
* entry. That lookup is what this function is: the mechanic, not the
|
|
801
|
-
* selection.
|
|
802
|
-
*
|
|
803
|
-
* Throwing at generation time (rather than returning `undefined` or an empty
|
|
804
|
-
* array) is deliberate: a name with no catalog entry is a mistake in the
|
|
805
|
-
* generator source, not a runtime condition a consumer should have to check
|
|
806
|
-
* for, and a required set that quietly loses an entry is exactly what makes a
|
|
807
|
-
* passing proof trivially "covering".
|
|
808
|
-
*
|
|
809
|
-
* `selectionLabel` names the failure, nothing else: it is not part of the
|
|
810
|
-
* selection this function resolves, only prose a consumer supplies for its
|
|
811
|
-
* own thrown error (e.g. HQ's surface name, "core" or "docs"). The message
|
|
812
|
-
* deliberately says "the profile's command catalog" rather than naming
|
|
813
|
-
* `software-factory.profile.json`: a fleet-generic library must not assume
|
|
814
|
-
* every consumer's catalog is that exact file, so this wording differs
|
|
815
|
-
* on purpose from the HQ-local message it replaced.
|
|
816
|
-
*/
|
|
817
|
-
declare const resolveProofReuseCommands: (catalog: readonly ProofReuseCommand[], names: readonly string[], selectionLabel?: string) => readonly ProofReuseCommand[];
|
|
768
|
+
* Resolve command identities to their `ProofReuseCommand` objects (ADR 0021).
|
|
769
|
+
* Which names a surface requires is the consumer's choice; this is only the
|
|
770
|
+
* lookup. A name with no catalog entry throws at generation time, because a
|
|
771
|
+
* required set that quietly loses an entry makes any passing proof covering.
|
|
772
|
+
* The message says "the profile's command catalog" rather than a file name,
|
|
773
|
+
* since not every consumer's catalog is `software-factory.profile.json`.
|
|
774
|
+
*/
|
|
775
|
+
export declare const resolveProofReuseCommands: (catalog: readonly ProofReuseCommand[], names: readonly string[], selectionLabel?: string) => readonly ProofReuseCommand[];
|
|
818
776
|
interface FactoryProofGateOptions {
|
|
819
777
|
/**
|
|
820
778
|
* The profile command objects this guarded surface selected. A consumer with
|
|
@@ -837,10 +795,7 @@ interface FactoryProofGateOptions {
|
|
|
837
795
|
* `FACTORY_PROOF_GATE_SHELL` — so the script is also written to reach that
|
|
838
796
|
* write under errexit, and the tests execute it both ways.
|
|
839
797
|
*/
|
|
840
|
-
declare const factoryProofGateScript: ({
|
|
841
|
-
commands,
|
|
842
|
-
surface
|
|
843
|
-
}: FactoryProofGateOptions) => string;
|
|
798
|
+
export declare const factoryProofGateScript: ({ commands, surface }: FactoryProofGateOptions) => string;
|
|
844
799
|
interface FactoryProofGateStep {
|
|
845
800
|
readonly continueOnError: true;
|
|
846
801
|
readonly env: Readonly<{
|
|
@@ -867,15 +822,10 @@ interface FactoryProofGateStep {
|
|
|
867
822
|
* construction: the step errors, the output is never written, the guard reads
|
|
868
823
|
* empty, and every command runs.
|
|
869
824
|
*/
|
|
870
|
-
declare const factoryProofGateStep: (options: FactoryProofGateOptions) => FactoryProofGateStep;
|
|
825
|
+
export declare const factoryProofGateStep: (options: FactoryProofGateOptions) => FactoryProofGateStep;
|
|
871
826
|
interface ProofReuseCoverageInput {
|
|
872
827
|
/** The same selection handed to the gate for this surface. */
|
|
873
828
|
readonly commands: readonly ProofReuseCommand[];
|
|
874
|
-
/**
|
|
875
|
-
* @deprecated Ignored. Consumer prose cannot authorize executable coverage;
|
|
876
|
-
* retained only so the 0.2.1 security patch remains source-compatible.
|
|
877
|
-
*/
|
|
878
|
-
readonly equivalents?: Readonly<Record<string, string>>;
|
|
879
829
|
/**
|
|
880
830
|
* The command strings the consumer's workflow would skip when the gate says
|
|
881
831
|
* `true`, already resolved to the leaves that actually run. Extracting them
|
|
@@ -904,14 +854,9 @@ interface ProofReuseCoverageReport {
|
|
|
904
854
|
* as CI quietly verifying nothing. The drift is real history: #227 wired a
|
|
905
855
|
* workspace member into CI while the profile never learned about it.
|
|
906
856
|
*/
|
|
907
|
-
declare const proofReuseCoverage: ({
|
|
908
|
-
commands,
|
|
909
|
-
skipped
|
|
910
|
-
}: ProofReuseCoverageInput) => ProofReuseCoverageReport;
|
|
857
|
+
export declare const proofReuseCoverage: ({ commands, skipped }: ProofReuseCoverageInput) => ProofReuseCoverageReport;
|
|
911
858
|
/** `proofReuseCoverage`, as a build failure. */
|
|
912
|
-
declare const assertProofReuseCoverage: (input: ProofReuseCoverageInput) => ProofReuseCoverageReport;
|
|
913
|
-
//#endregion
|
|
914
|
-
//#region src/proof-reuse-presentation.d.ts
|
|
859
|
+
export declare const assertProofReuseCoverage: (input: ProofReuseCoverageInput) => ProofReuseCoverageReport;
|
|
915
860
|
/** Generic timing and presentation steps around the proof-reuse gate (#652). */
|
|
916
861
|
declare const FACTORY_PROOF_TIMING_STEP_ID = "ci-timing";
|
|
917
862
|
declare const FACTORY_PROOF_TIMING_START_STEP_NAME = "Start CI timing";
|
|
@@ -926,7 +871,7 @@ interface FactoryProofTimingStartStep {
|
|
|
926
871
|
readonly name: typeof FACTORY_PROOF_TIMING_START_STEP_NAME;
|
|
927
872
|
readonly run: string;
|
|
928
873
|
}
|
|
929
|
-
declare const factoryProofTimingStartStep: () => FactoryProofTimingStartStep;
|
|
874
|
+
export declare const factoryProofTimingStartStep: () => FactoryProofTimingStartStep;
|
|
930
875
|
interface FactoryProofReuseSummaryStep {
|
|
931
876
|
readonly continueOnError: true;
|
|
932
877
|
readonly env: Readonly<Record<string, string>>;
|
|
@@ -934,14 +879,12 @@ interface FactoryProofReuseSummaryStep {
|
|
|
934
879
|
readonly name: typeof FACTORY_PROOF_TIMING_SUMMARY_STEP_NAME;
|
|
935
880
|
readonly run: string;
|
|
936
881
|
}
|
|
937
|
-
declare const factoryProofReuseSummaryStep: (options: FactoryProofReusePresentationOptions) => FactoryProofReuseSummaryStep;
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
declare const
|
|
941
|
-
declare const
|
|
942
|
-
declare const
|
|
943
|
-
declare const FACTORY_CANDIDATE_IMPACT_INERT_OUTPUT = "inert_paths";
|
|
944
|
-
declare const FACTORY_CANDIDATE_IMPACT_UNSUBSCRIBED_OUTPUT = "unsubscribed_paths";
|
|
882
|
+
export declare const factoryProofReuseSummaryStep: (options: FactoryProofReusePresentationOptions) => FactoryProofReuseSummaryStep;
|
|
883
|
+
export declare const FACTORY_CANDIDATE_IMPACT_STEP_ID = "candidate_impact";
|
|
884
|
+
export declare const FACTORY_CANDIDATE_IMPACT_DECISION_OUTPUT = "decision";
|
|
885
|
+
export declare const FACTORY_CANDIDATE_IMPACT_BASIS_OUTPUT = "basis";
|
|
886
|
+
export declare const FACTORY_CANDIDATE_IMPACT_INERT_OUTPUT = "inert_paths";
|
|
887
|
+
export declare const FACTORY_CANDIDATE_IMPACT_UNSUBSCRIBED_OUTPUT = "unsubscribed_paths";
|
|
945
888
|
interface FactoryCandidateImpactWorkflowOptions {
|
|
946
889
|
readonly base?: string;
|
|
947
890
|
readonly cli?: string;
|
|
@@ -976,11 +919,9 @@ interface FactoryCandidateImpactWorkflow {
|
|
|
976
919
|
* base commit reachable (`fetchDepth: 0`, `ref` = the head SHA); anything
|
|
977
920
|
* else refuses withdrawal and keeps every target demanded.
|
|
978
921
|
*/
|
|
979
|
-
declare const factoryCandidateImpactWorkflow: (options: FactoryCandidateImpactWorkflowOptions) => FactoryCandidateImpactWorkflow;
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
declare const FACTORY_LIFECYCLE_CONTRACT_JOB_ID = "factory-contracts";
|
|
983
|
-
declare const FACTORY_LIFECYCLE_CONTRACT_JOB_NAME = "Factory / Alchemy Contracts";
|
|
922
|
+
export declare const factoryCandidateImpactWorkflow: (options: FactoryCandidateImpactWorkflowOptions) => FactoryCandidateImpactWorkflow;
|
|
923
|
+
export declare const FACTORY_LIFECYCLE_CONTRACT_JOB_ID = "factory-contracts";
|
|
924
|
+
export declare const FACTORY_LIFECYCLE_CONTRACT_JOB_NAME = "Factory / Alchemy Contracts";
|
|
984
925
|
interface FactoryLifecycleContractLaneOptions {
|
|
985
926
|
readonly command: string;
|
|
986
927
|
readonly jobId?: string;
|
|
@@ -1006,9 +947,7 @@ interface FactoryLifecycleContractLane {
|
|
|
1006
947
|
* pnpm `--filter <pkg>` may precede either form. Shell operators, credential
|
|
1007
948
|
* env, extra flags, and direct Vitest are refused.
|
|
1008
949
|
*/
|
|
1009
|
-
declare const factoryLifecycleContractLane: (declaration?: FactoryLifecycleContractLaneOptions) => FactoryLifecycleContractLane | undefined;
|
|
1010
|
-
//#endregion
|
|
1011
|
-
//#region src/merge-freeze-job.d.ts
|
|
950
|
+
export declare const factoryLifecycleContractLane: (declaration?: FactoryLifecycleContractLaneOptions) => FactoryLifecycleContractLane | undefined;
|
|
1012
951
|
/**
|
|
1013
952
|
* The merge-freeze writer job (#356, ADR 0016; #429 for the
|
|
1014
953
|
* merge-target namespace; #872 for this package).
|
|
@@ -1048,18 +987,18 @@ declare const factoryLifecycleContractLane: (declaration?: FactoryLifecycleContr
|
|
|
1048
987
|
* of every authoritative verification leaf, the timeout, and any extra env.
|
|
1049
988
|
*/
|
|
1050
989
|
/** The one check-run name every merge-freeze reader pins. */
|
|
1051
|
-
declare const FACTORY_MERGE_FREEZE_CHECK_NAME = "patronage-factory/merge-freeze";
|
|
1052
|
-
declare const FACTORY_MERGE_FREEZE_JOB_ID = "freeze";
|
|
1053
|
-
declare const FACTORY_MERGE_FREEZE_JOB_NAME = "Report the merge freeze";
|
|
990
|
+
export declare const FACTORY_MERGE_FREEZE_CHECK_NAME = "patronage-factory/merge-freeze";
|
|
991
|
+
export declare const FACTORY_MERGE_FREEZE_JOB_ID = "freeze";
|
|
992
|
+
export declare const FACTORY_MERGE_FREEZE_JOB_NAME = "Report the merge freeze";
|
|
1054
993
|
/** Step id the token step exposes its installation token under. */
|
|
1055
|
-
declare const FACTORY_MERGE_FREEZE_APP_TOKEN_STEP_ID = "factory-app-token";
|
|
994
|
+
export declare const FACTORY_MERGE_FREEZE_APP_TOKEN_STEP_ID = "factory-app-token";
|
|
1056
995
|
/**
|
|
1057
996
|
* The GitHub Actions expression that folds the needed jobs' results into the
|
|
1058
997
|
* one word the script branches on. It mirrors the `verify` summary job's
|
|
1059
998
|
* failure condition exactly: any failed or cancelled needed job is a red
|
|
1060
999
|
* merge target.
|
|
1061
1000
|
*/
|
|
1062
|
-
declare const FACTORY_MERGE_FREEZE_VERIFY_RESULT_EXPRESSION = "${{ (contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')) && 'failure' || 'success' }}";
|
|
1001
|
+
export declare const FACTORY_MERGE_FREEZE_VERIFY_RESULT_EXPRESSION = "${{ (contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')) && 'failure' || 'success' }}";
|
|
1063
1002
|
/**
|
|
1064
1003
|
* The literal factory merge-target namespace, as a `github.ref` predicate
|
|
1065
1004
|
* (#429).
|
|
@@ -1075,7 +1014,7 @@ declare const FACTORY_MERGE_FREEZE_VERIFY_RESULT_EXPRESSION = "${{ (contains(nee
|
|
|
1075
1014
|
* decides which events produce a run at all; this predicate decides which of
|
|
1076
1015
|
* those runs may write a generation.
|
|
1077
1016
|
*/
|
|
1078
|
-
declare const FACTORY_MERGE_TARGET_REF_CONDITION: string;
|
|
1017
|
+
export declare const FACTORY_MERGE_TARGET_REF_CONDITION: string;
|
|
1079
1018
|
/**
|
|
1080
1019
|
* `always()` is load-bearing: the red path is the whole point, so the job must
|
|
1081
1020
|
* run when a needed verification job failed. `github.event_name == 'push'` is
|
|
@@ -1084,7 +1023,7 @@ declare const FACTORY_MERGE_TARGET_REF_CONDITION: string;
|
|
|
1084
1023
|
* at), and a `pull_request` trigger with an `epic/**` base list would
|
|
1085
1024
|
* otherwise reach this job.
|
|
1086
1025
|
*/
|
|
1087
|
-
declare const FACTORY_MERGE_FREEZE_IF: string;
|
|
1026
|
+
export declare const FACTORY_MERGE_FREEZE_IF: string;
|
|
1088
1027
|
/**
|
|
1089
1028
|
* Least privilege for the writer job: no `GITHUB_TOKEN` scope at all.
|
|
1090
1029
|
*
|
|
@@ -1094,7 +1033,7 @@ declare const FACTORY_MERGE_FREEZE_IF: string;
|
|
|
1094
1033
|
* and an empty block is the honest declaration. A `checks: write` here would
|
|
1095
1034
|
* hand every adopter an unused write scope (#884).
|
|
1096
1035
|
*/
|
|
1097
|
-
declare const FACTORY_MERGE_FREEZE_PERMISSIONS: Readonly<{}>;
|
|
1036
|
+
export declare const FACTORY_MERGE_FREEZE_PERMISSIONS: Readonly<{}>;
|
|
1098
1037
|
/**
|
|
1099
1038
|
* The script the freeze step runs. Environment contract:
|
|
1100
1039
|
* - `GH_TOKEN`: an installation token for the pinned Patronage Factory App —
|
|
@@ -1112,7 +1051,7 @@ declare const FACTORY_MERGE_FREEZE_PERMISSIONS: Readonly<{}>;
|
|
|
1112
1051
|
* candidate must be told which branch owns the generation. A later green
|
|
1113
1052
|
* generation on that branch's current tip clears it, including a rerun.
|
|
1114
1053
|
*/
|
|
1115
|
-
declare const factoryMergeFreezeScript: () => string;
|
|
1054
|
+
export declare const factoryMergeFreezeScript: () => string;
|
|
1116
1055
|
interface FactoryMergeFreezeJobOptions<TNeed> {
|
|
1117
1056
|
/** The pinned `actions/create-github-app-token` the caller declared. */
|
|
1118
1057
|
readonly createGithubAppToken: PinnedAction;
|
|
@@ -1145,19 +1084,17 @@ interface FactoryMergeFreezeJob<TNeed> {
|
|
|
1145
1084
|
* always `success`, so such a job would write a green generation for a merge
|
|
1146
1085
|
* target nothing verified — the exact failure the freeze exists to prevent.
|
|
1147
1086
|
*/
|
|
1148
|
-
declare const factoryMergeFreezeJob: <TNeed>(options: FactoryMergeFreezeJobOptions<TNeed>) => FactoryMergeFreezeJob<TNeed>;
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
declare const
|
|
1152
|
-
declare const
|
|
1153
|
-
declare const FACTORY_PR_STATUS_HUD_APP_TOKEN_STEP_ID = "factory-app-token";
|
|
1154
|
-
declare const FACTORY_PR_STATUS_HUD_PLAN_PATH = ".factory-memory/preview-plan.json";
|
|
1087
|
+
export declare const factoryMergeFreezeJob: <TNeed>(options: FactoryMergeFreezeJobOptions<TNeed>) => FactoryMergeFreezeJob<TNeed>;
|
|
1088
|
+
export declare const FACTORY_PR_STATUS_HUD_JOB_ID = "status-hud";
|
|
1089
|
+
export declare const FACTORY_PR_STATUS_HUD_JOB_NAME = "Present PR status HUD";
|
|
1090
|
+
export declare const FACTORY_PR_STATUS_HUD_APP_TOKEN_STEP_ID = "factory-app-token";
|
|
1091
|
+
export declare const FACTORY_PR_STATUS_HUD_PLAN_PATH = ".factory-memory/preview-plan.json";
|
|
1155
1092
|
/**
|
|
1156
1093
|
* Presentation is independent of deploy demand. Callers who `needs` the jobs
|
|
1157
1094
|
* that settle HUD sources (verify, deploy) must keep this `always()` so a
|
|
1158
1095
|
* skipped or withdrawn deploy still publishes Skipped rows.
|
|
1159
1096
|
*/
|
|
1160
|
-
declare const FACTORY_PR_STATUS_HUD_IF = "always() && github.event_name == 'pull_request' && github.event.pull_request.draft != true";
|
|
1097
|
+
export declare const FACTORY_PR_STATUS_HUD_IF = "always() && github.event_name == 'pull_request' && github.event.pull_request.draft != true";
|
|
1161
1098
|
interface FactoryPrStatusHudWorkflowOptions {
|
|
1162
1099
|
readonly cli?: string;
|
|
1163
1100
|
readonly createGithubAppToken: PinnedAction;
|
|
@@ -1167,12 +1104,12 @@ interface FactoryPrStatusHudWorkflowOptions {
|
|
|
1167
1104
|
* is an inventory `list`, so the job needs exactly the inventory's read
|
|
1168
1105
|
* permissions (#825, #859).
|
|
1169
1106
|
*/
|
|
1170
|
-
declare const FACTORY_PR_STATUS_HUD_PERMISSIONS: Readonly<{
|
|
1107
|
+
export declare const FACTORY_PR_STATUS_HUD_PERMISSIONS: Readonly<{
|
|
1171
1108
|
readonly checks: "read";
|
|
1172
1109
|
readonly contents: "read";
|
|
1173
1110
|
readonly "pull-requests": "read";
|
|
1174
1111
|
}>;
|
|
1175
|
-
declare const FACTORY_PR_STATUS_HUD_CONCURRENCY: Readonly<{
|
|
1112
|
+
export declare const FACTORY_PR_STATUS_HUD_CONCURRENCY: Readonly<{
|
|
1176
1113
|
cancelInProgress: false;
|
|
1177
1114
|
group: "status-hud-${{ github.repository }}-${{ github.event.pull_request.number }}";
|
|
1178
1115
|
}>;
|
|
@@ -1184,11 +1121,9 @@ interface FactoryPrStatusHudWorkflow {
|
|
|
1184
1121
|
readonly permissions: typeof FACTORY_PR_STATUS_HUD_PERMISSIONS;
|
|
1185
1122
|
readonly presentSteps: readonly WorkflowStep[];
|
|
1186
1123
|
}
|
|
1187
|
-
declare const factoryPrStatusHudWorkflow: (options: FactoryPrStatusHudWorkflowOptions) => FactoryPrStatusHudWorkflow;
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
declare const FACTORY_PREVIEW_CLEANUP_AUDIT_JOB_ID = "stage-residue-audit";
|
|
1191
|
-
declare const FACTORY_PREVIEW_CLEANUP_AUDIT_JOB_NAME = "Stage residue audit";
|
|
1124
|
+
export declare const factoryPrStatusHudWorkflow: (options: FactoryPrStatusHudWorkflowOptions) => FactoryPrStatusHudWorkflow;
|
|
1125
|
+
export declare const FACTORY_PREVIEW_CLEANUP_AUDIT_JOB_ID = "stage-residue-audit";
|
|
1126
|
+
export declare const FACTORY_PREVIEW_CLEANUP_AUDIT_JOB_NAME = "Stage residue audit";
|
|
1192
1127
|
interface FactoryPreviewCleanupTopologyOptions {
|
|
1193
1128
|
readonly audit: {
|
|
1194
1129
|
readonly command: string;
|
|
@@ -1212,7 +1147,7 @@ interface FactoryPreviewCleanupTopology {
|
|
|
1212
1147
|
readonly auditJob: FactoryPreviewCleanupAuditJob;
|
|
1213
1148
|
readonly destroyJobs: readonly FactoryPreviewCleanupDestroyJob[];
|
|
1214
1149
|
}
|
|
1215
|
-
declare const previewCleanupDestroyJobId: (stack: string) => string;
|
|
1150
|
+
export declare const previewCleanupDestroyJobId: (stack: string) => string;
|
|
1216
1151
|
/**
|
|
1217
1152
|
* Generate the factory-owned preview-cleanup topology (#764): one destroy
|
|
1218
1153
|
* job identity per stack, then exactly one stage-wide residue-audit job
|
|
@@ -1220,9 +1155,7 @@ declare const previewCleanupDestroyJobId: (stack: string) => string;
|
|
|
1220
1155
|
* threads a stack name or path filter into it. Callers own destroy steps,
|
|
1221
1156
|
* what counts as residue, credentials, and runners.
|
|
1222
1157
|
*/
|
|
1223
|
-
declare const factoryPreviewCleanupTopology: (options: FactoryPreviewCleanupTopologyOptions) => FactoryPreviewCleanupTopology;
|
|
1224
|
-
//#endregion
|
|
1225
|
-
//#region src/preview-cleanup.d.ts
|
|
1158
|
+
export declare const factoryPreviewCleanupTopology: (options: FactoryPreviewCleanupTopologyOptions) => FactoryPreviewCleanupTopology;
|
|
1226
1159
|
/**
|
|
1227
1160
|
* Closed-PR preview cleanup and the scheduled orphan sweep (#1540).
|
|
1228
1161
|
*
|
|
@@ -1316,7 +1249,8 @@ interface RecordPreviewCleanupOutcomeAccess {
|
|
|
1316
1249
|
readonly write: PreviewProofInventoryAccess;
|
|
1317
1250
|
}
|
|
1318
1251
|
type RecordPreviewCleanupOutcomeResult = {
|
|
1319
|
-
/** Destroyed but never registered: inventory residue or a hosted stage. */
|
|
1252
|
+
/** Destroyed but never registered: inventory residue or a hosted stage. */
|
|
1253
|
+
readonly kind: "unregistered";
|
|
1320
1254
|
} | {
|
|
1321
1255
|
readonly kind: "recorded" | "recovered";
|
|
1322
1256
|
readonly registration: PreviewProofRegistration;
|
|
@@ -1333,15 +1267,15 @@ interface ReadPullRequestStatesAccess {
|
|
|
1333
1267
|
readonly token: string;
|
|
1334
1268
|
}
|
|
1335
1269
|
/** The GitHub-output key a stack's matrix and presence flag use. */
|
|
1336
|
-
declare const previewCleanupStackOutputKey: (stack: string) => string;
|
|
1270
|
+
export declare const previewCleanupStackOutputKey: (stack: string) => string;
|
|
1337
1271
|
/**
|
|
1338
1272
|
* Validate a stack policy. Throws on an empty or duplicate stack list, a
|
|
1339
1273
|
* stack name a shell or GitHub output could misread, an alias to an
|
|
1340
1274
|
* undeclared stack, or a hosted prefix that is not `<word>-`.
|
|
1341
1275
|
*/
|
|
1342
|
-
declare const assertPreviewCleanupStackPolicy: (policy: PreviewCleanupStackPolicy) => void;
|
|
1276
|
+
export declare const assertPreviewCleanupStackPolicy: (policy: PreviewCleanupStackPolicy) => void;
|
|
1343
1277
|
/** The PR a hosted stage belongs to, or `null` when it is not one. */
|
|
1344
|
-
declare const parseHostedPreviewStage: (stage: string, prefix: string) => number | null;
|
|
1278
|
+
export declare const parseHostedPreviewStage: (stage: string, prefix: string) => number | null;
|
|
1345
1279
|
/**
|
|
1346
1280
|
* Targets for one closed PR: its inventory registrations united with the
|
|
1347
1281
|
* residue the consumer still sees for it. Only the PR's own `local-pr-<pr>-*`
|
|
@@ -1349,76 +1283,74 @@ declare const parseHostedPreviewStage: (stage: string, prefix: string) => number
|
|
|
1349
1283
|
* wins a collision so its head SHA reaches the cleanup record. A registration
|
|
1350
1284
|
* whose cleanup already passed is skipped unless the residue still lists it.
|
|
1351
1285
|
*/
|
|
1352
|
-
declare const discoverPreviewCleanupTargets: (input: DiscoverPreviewCleanupTargetsInput) => readonly PreviewCleanupTarget[];
|
|
1286
|
+
export declare const discoverPreviewCleanupTargets: (input: DiscoverPreviewCleanupTargetsInput) => readonly PreviewCleanupTarget[];
|
|
1353
1287
|
/**
|
|
1354
1288
|
* The PRs whose disposable stages appear in the residue. The sweep reads
|
|
1355
1289
|
* their state before it decides anything.
|
|
1356
1290
|
*/
|
|
1357
|
-
declare const previewCleanupResiduePullRequests: (policy: PreviewCleanupStackPolicy, residue: readonly PreviewCleanupResidue[]) => readonly number[];
|
|
1291
|
+
export declare const previewCleanupResiduePullRequests: (policy: PreviewCleanupStackPolicy, residue: readonly PreviewCleanupResidue[]) => readonly number[];
|
|
1358
1292
|
/**
|
|
1359
1293
|
* Targets for the scheduled sweep: disposable residue whose PR GitHub
|
|
1360
1294
|
* reports closed. It fails closed. A stage that does not parse as disposable,
|
|
1361
1295
|
* a stack the consumer did not declare, and a PR that is open or whose state
|
|
1362
1296
|
* is unknown are all retained.
|
|
1363
1297
|
*/
|
|
1364
|
-
declare const discoverOrphanedPreviewCleanupTargets: (input: DiscoverOrphanedPreviewCleanupTargetsInput) => PreviewCleanupSweep;
|
|
1298
|
+
export declare const discoverOrphanedPreviewCleanupTargets: (input: DiscoverOrphanedPreviewCleanupTargetsInput) => PreviewCleanupSweep;
|
|
1365
1299
|
/**
|
|
1366
1300
|
* The `$GITHUB_OUTPUT` lines the cleanup workflow's discover job publishes:
|
|
1367
1301
|
* `has_targets`, `targets`, and for each declared stack `has_<key>` and
|
|
1368
1302
|
* `<key>_matrix`. A stack with no target still gets `has_<key>=false`, so
|
|
1369
1303
|
* its destroy job skips instead of expanding an empty matrix.
|
|
1370
1304
|
*/
|
|
1371
|
-
declare const previewCleanupGithubOutput: (policy: PreviewCleanupStackPolicy, targets: readonly PreviewCleanupTarget[]) => string;
|
|
1305
|
+
export declare const previewCleanupGithubOutput: (policy: PreviewCleanupStackPolicy, targets: readonly PreviewCleanupTarget[]) => string;
|
|
1372
1306
|
/** Parse untrusted residue JSON: an array of `{ stack, stage }` rows. */
|
|
1373
|
-
declare const parsePreviewCleanupResidue: (value: unknown) => readonly PreviewCleanupResidue[];
|
|
1307
|
+
export declare const parsePreviewCleanupResidue: (value: unknown) => readonly PreviewCleanupResidue[];
|
|
1374
1308
|
/**
|
|
1375
1309
|
* Parse untrusted target JSON (the discover job's `targets` output). Every
|
|
1376
1310
|
* row must still be a disposable stage owned by its own PR, so a tampered
|
|
1377
1311
|
* output cannot widen the audit or a record.
|
|
1378
1312
|
*/
|
|
1379
|
-
declare const parsePreviewCleanupTargets: (policy: PreviewCleanupStackPolicy, value: unknown) => readonly PreviewCleanupTarget[];
|
|
1313
|
+
export declare const parsePreviewCleanupTargets: (policy: PreviewCleanupStackPolicy, value: unknown) => readonly PreviewCleanupTarget[];
|
|
1380
1314
|
/**
|
|
1381
1315
|
* The whole-stage audit after every destroy. Any residue row whose stage
|
|
1382
1316
|
* is a target stage fails it, whatever stack the reader assigned the row,
|
|
1383
1317
|
* because a sibling stack's leftovers are the same stage's residue.
|
|
1384
1318
|
*/
|
|
1385
|
-
declare const assertPreviewCleanupTargetsAbsent: (targets: readonly PreviewCleanupTarget[], residue: readonly PreviewCleanupResidue[]) => void;
|
|
1319
|
+
export declare const assertPreviewCleanupTargetsAbsent: (targets: readonly PreviewCleanupTarget[], residue: readonly PreviewCleanupResidue[]) => void;
|
|
1386
1320
|
/**
|
|
1387
1321
|
* Record one stack destroy's outcome on the inventory registration it
|
|
1388
1322
|
* cleaned up. A stage nothing registered (residue-only, or a hosted stage)
|
|
1389
1323
|
* returns `unregistered` without writing. A registration whose last cleanup
|
|
1390
1324
|
* failed is recovered through the same cleanup transition.
|
|
1391
1325
|
*/
|
|
1392
|
-
declare const recordPreviewCleanupOutcome: (input: RecordPreviewCleanupOutcomeInput, access: RecordPreviewCleanupOutcomeAccess) => Promise<RecordPreviewCleanupOutcomeResult>;
|
|
1326
|
+
export declare const recordPreviewCleanupOutcome: (input: RecordPreviewCleanupOutcomeInput, access: RecordPreviewCleanupOutcomeAccess) => Promise<RecordPreviewCleanupOutcomeResult>;
|
|
1393
1327
|
/**
|
|
1394
1328
|
* Ask GitHub for each PR's state. A PR GitHub does not know is left out of
|
|
1395
1329
|
* the map, so the sweep retains its stages.
|
|
1396
1330
|
*/
|
|
1397
|
-
declare const readPullRequestStates: (input: ReadPullRequestStatesInput, access: ReadPullRequestStatesAccess) => Promise<ReadonlyMap<number, PreviewCleanupPullRequestState>>;
|
|
1398
|
-
|
|
1399
|
-
|
|
1400
|
-
declare const
|
|
1401
|
-
declare const
|
|
1402
|
-
declare const
|
|
1403
|
-
declare const
|
|
1404
|
-
declare const FACTORY_PREVIEW_CLEANUP_APP_TOKEN_STEP_ID = "factory-app-token";
|
|
1405
|
-
declare const FACTORY_PREVIEW_CLEANUP_DEFAULT_SWEEP_CRON = "23 6 * * *";
|
|
1331
|
+
export declare const readPullRequestStates: (input: ReadPullRequestStatesInput, access: ReadPullRequestStatesAccess) => Promise<ReadonlyMap<number, PreviewCleanupPullRequestState>>;
|
|
1332
|
+
export declare const FACTORY_PREVIEW_CLEANUP_DISCOVER_JOB_ID = "discover";
|
|
1333
|
+
export declare const FACTORY_PREVIEW_CLEANUP_DISCOVER_JOB_NAME = "Discover preview cleanup targets";
|
|
1334
|
+
export declare const FACTORY_PREVIEW_CLEANUP_DISCOVER_STEP_ID = "targets";
|
|
1335
|
+
export declare const FACTORY_PREVIEW_CLEANUP_DESTROY_STEP_ID = "destroy";
|
|
1336
|
+
export declare const FACTORY_PREVIEW_CLEANUP_APP_TOKEN_STEP_ID = "factory-app-token";
|
|
1337
|
+
export declare const FACTORY_PREVIEW_CLEANUP_DEFAULT_SWEEP_CRON = "23 6 * * *";
|
|
1406
1338
|
/**
|
|
1407
1339
|
* A closed pull request whose head lives in this repository. A fork's head
|
|
1408
1340
|
* never reaches a job that holds cleanup credentials.
|
|
1409
1341
|
*/
|
|
1410
|
-
declare const FACTORY_PREVIEW_CLEANUP_PR_CLOSED_CONDITION = "github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.head.repo.full_name == github.repository";
|
|
1342
|
+
export declare const FACTORY_PREVIEW_CLEANUP_PR_CLOSED_CONDITION = "github.event_name == 'pull_request_target' && github.event.action == 'closed' && github.event.pull_request.head.repo.full_name == github.repository";
|
|
1411
1343
|
/**
|
|
1412
1344
|
* The sweep: the schedule, which GitHub always runs on the default branch,
|
|
1413
1345
|
* or a manual dispatch from the default branch.
|
|
1414
1346
|
*/
|
|
1415
|
-
declare const FACTORY_PREVIEW_CLEANUP_SWEEP_CONDITION = "github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch))";
|
|
1347
|
+
export declare const FACTORY_PREVIEW_CLEANUP_SWEEP_CONDITION = "github.event_name == 'schedule' || (github.event_name == 'workflow_dispatch' && github.ref == format('refs/heads/{0}', github.event.repository.default_branch))";
|
|
1416
1348
|
/**
|
|
1417
1349
|
* The ref every cleanup job checks out: the default branch's trusted code,
|
|
1418
1350
|
* never the closed PR's head. Empty on `schedule`, where the checkout
|
|
1419
1351
|
* already defaults to the default branch.
|
|
1420
1352
|
*/
|
|
1421
|
-
declare const FACTORY_PREVIEW_CLEANUP_CHECKOUT_REF = "${{ github.event.repository.default_branch }}";
|
|
1353
|
+
export declare const FACTORY_PREVIEW_CLEANUP_CHECKOUT_REF = "${{ github.event.repository.default_branch }}";
|
|
1422
1354
|
interface FactoryPreviewCleanupWorkflowOptions extends PreviewCleanupStackPolicy {
|
|
1423
1355
|
readonly cli?: string;
|
|
1424
1356
|
/**
|
|
@@ -1448,7 +1380,8 @@ interface FactoryPreviewCleanupWorkflowOptions extends PreviewCleanupStackPolicy
|
|
|
1448
1380
|
readonly residueCommand: string;
|
|
1449
1381
|
/** The scheduled orphan sweep. Pass `false` to generate PR-close cleanup only. */
|
|
1450
1382
|
readonly sweep?: false | {
|
|
1451
|
-
/** Defaults to `FACTORY_PREVIEW_CLEANUP_DEFAULT_SWEEP_CRON`. */
|
|
1383
|
+
/** Defaults to `FACTORY_PREVIEW_CLEANUP_DEFAULT_SWEEP_CRON`. */
|
|
1384
|
+
readonly cron?: string;
|
|
1452
1385
|
/**
|
|
1453
1386
|
* Targets per sweep run. Defaults to 50. Stages are taken whole, so a
|
|
1454
1387
|
* run exceeds it only when its first stage has more stacks than this.
|
|
@@ -1516,9 +1449,7 @@ interface FactoryPreviewCleanupWorkflow {
|
|
|
1516
1449
|
* behind a production deploy flag. The caller prepends its own setup steps
|
|
1517
1450
|
* (checked out at `checkoutRef`), and adds `runsOn` and credential `env`.
|
|
1518
1451
|
*/
|
|
1519
|
-
declare const factoryPreviewCleanupWorkflow: (options: FactoryPreviewCleanupWorkflowOptions) => FactoryPreviewCleanupWorkflow;
|
|
1520
|
-
//#endregion
|
|
1521
|
-
//#region src/preview-receipt-workflow.d.ts
|
|
1452
|
+
export declare const factoryPreviewCleanupWorkflow: (options: FactoryPreviewCleanupWorkflowOptions) => FactoryPreviewCleanupWorkflow;
|
|
1522
1453
|
interface FactoryPreviewReceiptWorkflowOptions {
|
|
1523
1454
|
readonly target: string;
|
|
1524
1455
|
readonly cli?: string;
|
|
@@ -1540,15 +1471,13 @@ interface FactoryPreviewReceiptWorkflow {
|
|
|
1540
1471
|
}>;
|
|
1541
1472
|
}
|
|
1542
1473
|
/** Receipt transport only. The consumer owns selection, lifecycle, smoke, and freshness. */
|
|
1543
|
-
declare const factoryPreviewReceiptWorkflow: (options: FactoryPreviewReceiptWorkflowOptions) => FactoryPreviewReceiptWorkflow;
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
declare const
|
|
1547
|
-
declare const
|
|
1548
|
-
declare const FACTORY_PRODUCTION_IMPACT_BASIS_OUTPUT = "basis";
|
|
1549
|
-
declare const FACTORY_PRODUCTION_IMPACT_UNSUBSCRIBED_OUTPUT = "unsubscribed_paths";
|
|
1474
|
+
export declare const factoryPreviewReceiptWorkflow: (options: FactoryPreviewReceiptWorkflowOptions) => FactoryPreviewReceiptWorkflow;
|
|
1475
|
+
export declare const FACTORY_PRODUCTION_IMPACT_STEP_ID = "production_impact";
|
|
1476
|
+
export declare const FACTORY_PRODUCTION_IMPACT_DECISION_OUTPUT = "decision";
|
|
1477
|
+
export declare const FACTORY_PRODUCTION_IMPACT_BASIS_OUTPUT = "basis";
|
|
1478
|
+
export declare const FACTORY_PRODUCTION_IMPACT_UNSUBSCRIBED_OUTPUT = "unsubscribed_paths";
|
|
1550
1479
|
/** Stable GitHub-output key for one declared target. */
|
|
1551
|
-
declare const productionImpactTargetOutput: (targetName: string) => string;
|
|
1480
|
+
export declare const productionImpactTargetOutput: (targetName: string) => string;
|
|
1552
1481
|
interface FactoryProductionImpactWorkflowOptions {
|
|
1553
1482
|
/** The checked-out candidate commit. Defaults to `github.sha`. */
|
|
1554
1483
|
readonly candidate?: string;
|
|
@@ -1599,10 +1528,8 @@ interface FactoryProductionImpactWorkflow {
|
|
|
1599
1528
|
* decision checkout needs full history (`fetchDepth: 0`) so the baseline
|
|
1600
1529
|
* commit is reachable; a shallow checkout keeps every target demanded.
|
|
1601
1530
|
*/
|
|
1602
|
-
declare const factoryProductionImpactWorkflow: (options: FactoryProductionImpactWorkflowOptions) => FactoryProductionImpactWorkflow;
|
|
1603
|
-
|
|
1604
|
-
//#region src/push-identity-workflow.d.ts
|
|
1605
|
-
declare const FACTORY_PUSH_IDENTITY_SCHEMA_VERSION = 1;
|
|
1531
|
+
export declare const factoryProductionImpactWorkflow: (options: FactoryProductionImpactWorkflowOptions) => FactoryProductionImpactWorkflow;
|
|
1532
|
+
export declare const FACTORY_PUSH_IDENTITY_SCHEMA_VERSION = 1;
|
|
1606
1533
|
/** Versioned document uploaded by a push-triggered verification run. */
|
|
1607
1534
|
interface FactoryPushIdentityEnvelope {
|
|
1608
1535
|
readonly after: string;
|
|
@@ -1631,7 +1558,7 @@ interface FactoryPushIdentityProducer {
|
|
|
1631
1558
|
* Record and upload the exact push-event identity without changing the Verify
|
|
1632
1559
|
* result when transport is unavailable. Place these steps after verification.
|
|
1633
1560
|
*/
|
|
1634
|
-
declare const factoryPushIdentityProducer: (options: FactoryPushIdentityProducerOptions) => FactoryPushIdentityProducer;
|
|
1561
|
+
export declare const factoryPushIdentityProducer: (options: FactoryPushIdentityProducerOptions) => FactoryPushIdentityProducer;
|
|
1635
1562
|
interface FactoryPushIdentityConsumer {
|
|
1636
1563
|
/** Job outputs suitable for a caller-owned decision job and telemetry. */
|
|
1637
1564
|
readonly outputs: Readonly<Record<"after" | "before" | "disposition" | "provenance" | "reason", string>>;
|
|
@@ -1654,13 +1581,11 @@ interface FactoryPushIdentityConsumerOptions {
|
|
|
1654
1581
|
* the current repository. Every failure becomes a typed refusal; consumers
|
|
1655
1582
|
* retain deploy policy, credentials, commands, topology, and convergence.
|
|
1656
1583
|
*/
|
|
1657
|
-
declare const factoryPushIdentityConsumer: (options: FactoryPushIdentityConsumerOptions) => FactoryPushIdentityConsumer;
|
|
1658
|
-
//#endregion
|
|
1659
|
-
//#region src/vitest-profile.d.ts
|
|
1584
|
+
export declare const factoryPushIdentityConsumer: (options: FactoryPushIdentityConsumerOptions) => FactoryPushIdentityConsumer;
|
|
1660
1585
|
/** Schema version of the emitted profile document. */
|
|
1661
|
-
declare const VITEST_PROFILE_SCHEMA_VERSION = 1;
|
|
1586
|
+
export declare const VITEST_PROFILE_SCHEMA_VERSION = 1;
|
|
1662
1587
|
/** `tool` discriminator every emitted profile carries. */
|
|
1663
|
-
declare const VITEST_PROFILE_TOOL = "factory-ci-vitest-profile";
|
|
1588
|
+
export declare const VITEST_PROFILE_TOOL = "factory-ci-vitest-profile";
|
|
1664
1589
|
/** Per-assertion status as Vitest's JSON reporter spells it. */
|
|
1665
1590
|
type VitestTestStatus = "disabled" | "failed" | "passed" | "pending" | "skipped" | "todo";
|
|
1666
1591
|
/** The subset of Vitest's `--reporter=json` document this module reads. */
|
|
@@ -1824,7 +1749,7 @@ interface VitestProfileDependencies {
|
|
|
1824
1749
|
* A sample failed. The partial profile is already on disk; `exitCode` is the
|
|
1825
1750
|
* status a caller should exit with.
|
|
1826
1751
|
*/
|
|
1827
|
-
declare class VitestProfileError extends Error {
|
|
1752
|
+
export declare class VitestProfileError extends Error {
|
|
1828
1753
|
readonly exitCode: number;
|
|
1829
1754
|
constructor(message: string, exitCode: number);
|
|
1830
1755
|
}
|
|
@@ -1834,7 +1759,7 @@ declare class VitestProfileError extends Error {
|
|
|
1834
1759
|
* timeout, unwritable output) yields a sample with `reportAvailable: false`
|
|
1835
1760
|
* rather than nothing at all.
|
|
1836
1761
|
*/
|
|
1837
|
-
declare const normalizeVitestProfileSample: (report: VitestJsonReport | null, input: {
|
|
1762
|
+
export declare const normalizeVitestProfileSample: (report: VitestJsonReport | null, input: {
|
|
1838
1763
|
cwd: string;
|
|
1839
1764
|
durationMs: number;
|
|
1840
1765
|
endedAt: Date;
|
|
@@ -1849,7 +1774,7 @@ declare const normalizeVitestProfileSample: (report: VitestJsonReport | null, in
|
|
|
1849
1774
|
* Git failures degrade to `null` — an artifact from a tarball checkout is still
|
|
1850
1775
|
* a usable measurement.
|
|
1851
1776
|
*/
|
|
1852
|
-
declare const captureVitestProfileEnvironment: (options: {
|
|
1777
|
+
export declare const captureVitestProfileEnvironment: (options: {
|
|
1853
1778
|
cwd: string;
|
|
1854
1779
|
gitDirectory?: string;
|
|
1855
1780
|
}) => Promise<VitestProfileEnvironment>;
|
|
@@ -1857,16 +1782,14 @@ declare const captureVitestProfileEnvironment: (options: {
|
|
|
1857
1782
|
* Write a profile document atomically: a partial file must never be readable
|
|
1858
1783
|
* as a complete measurement, and the profile is rewritten after every sample.
|
|
1859
1784
|
*/
|
|
1860
|
-
declare const writeVitestProfile: (outputPath: string, profile: VitestProfile) => Promise<void>;
|
|
1785
|
+
export declare const writeVitestProfile: (outputPath: string, profile: VitestProfile) => Promise<void>;
|
|
1861
1786
|
/**
|
|
1862
1787
|
* Take `samples` serial Vitest runs at one worker count and persist the profile
|
|
1863
1788
|
* after each one. Samples never overlap: concurrent runs would measure CPU and
|
|
1864
1789
|
* I/O contention instead of the worker count under test. A failing sample
|
|
1865
1790
|
* throws `VitestProfileError` with the partial profile already written.
|
|
1866
1791
|
*/
|
|
1867
|
-
declare const runVitestProfile: (options: VitestProfileOptions, dependencies?: VitestProfileDependencies) => Promise<VitestProfile>;
|
|
1868
|
-
//#endregion
|
|
1869
|
-
//#region src/vitest-profile-reader.d.ts
|
|
1792
|
+
export declare const runVitestProfile: (options: VitestProfileOptions, dependencies?: VitestProfileDependencies) => Promise<VitestProfile>;
|
|
1870
1793
|
/**
|
|
1871
1794
|
* Outcome of reading one candidate document. `unrecognized` carries the first
|
|
1872
1795
|
* reason the document failed — an analyzer reports it verbatim rather than
|
|
@@ -1884,9 +1807,7 @@ type VitestProfileReadResult = {
|
|
|
1884
1807
|
* emits. Returns the typed profile on success and the first mismatch reason
|
|
1885
1808
|
* otherwise — never a partially-usable value.
|
|
1886
1809
|
*/
|
|
1887
|
-
declare const readVitestProfileDocument: (value: unknown) => VitestProfileReadResult;
|
|
1888
|
-
//#endregion
|
|
1889
|
-
//#region src/verify-runner-policy.d.ts
|
|
1810
|
+
export declare const readVitestProfileDocument: (value: unknown) => VitestProfileReadResult;
|
|
1890
1811
|
declare const DEPOT_LABEL = "depot-ubuntu-24.04";
|
|
1891
1812
|
declare const HOSTED_LABEL = "ubuntu-latest";
|
|
1892
1813
|
/**
|
|
@@ -1929,11 +1850,9 @@ interface FactoryVerifyRunnerPolicyReport {
|
|
|
1929
1850
|
readonly mismatches: readonly FactoryVerifyRunnerMismatch[];
|
|
1930
1851
|
readonly forbiddenKinds: readonly string[];
|
|
1931
1852
|
}
|
|
1932
|
-
declare const factoryVerifyRunner: (decision: FactoryRunnerDecision) => FactoryVerifyRunner;
|
|
1933
|
-
declare const verifyRunnerPolicy: (yaml: string, input: FactoryVerifyRunnerPolicyInput) => FactoryVerifyRunnerPolicyReport;
|
|
1934
|
-
declare const assertVerifyRunnerPolicy: (yaml: string, input: FactoryVerifyRunnerPolicyInput) => FactoryVerifyRunnerPolicyReport;
|
|
1935
|
-
//#endregion
|
|
1936
|
-
//#region src/workflow-shell-lint.d.ts
|
|
1853
|
+
export declare const factoryVerifyRunner: (decision: FactoryRunnerDecision) => FactoryVerifyRunner;
|
|
1854
|
+
export declare const verifyRunnerPolicy: (yaml: string, input: FactoryVerifyRunnerPolicyInput) => FactoryVerifyRunnerPolicyReport;
|
|
1855
|
+
export declare const assertVerifyRunnerPolicy: (yaml: string, input: FactoryVerifyRunnerPolicyInput) => FactoryVerifyRunnerPolicyReport;
|
|
1937
1856
|
/**
|
|
1938
1857
|
* Parse-check the shell embedded in generated workflow YAML (#376).
|
|
1939
1858
|
*
|
|
@@ -1972,16 +1891,15 @@ interface RunBlock {
|
|
|
1972
1891
|
* generator's output, not arbitrary YAML. It reads both block scalars
|
|
1973
1892
|
* (`run: |-`) and inline scripts.
|
|
1974
1893
|
*/
|
|
1975
|
-
declare const workflowRunBlocks: (yaml: string) => RunBlock[];
|
|
1894
|
+
export declare const workflowRunBlocks: (yaml: string) => RunBlock[];
|
|
1976
1895
|
/** Every `run:` block its interpreter refuses to parse. Empty means sound. */
|
|
1977
|
-
declare const workflowShellParseFailures: (yaml: string) => WorkflowShellParseFailure[];
|
|
1896
|
+
export declare const workflowShellParseFailures: (yaml: string) => WorkflowShellParseFailure[];
|
|
1978
1897
|
/**
|
|
1979
1898
|
* Fail the generated-workflow lint when any embedded `run:` block is not
|
|
1980
1899
|
* parseable bash. Call it on the YAML a generator is about to write, so the
|
|
1981
1900
|
* defect is caught at generation rather than by the runner.
|
|
1982
1901
|
*/
|
|
1983
|
-
declare const assertWorkflowShellParses: (yaml: string, options: {
|
|
1902
|
+
export declare const assertWorkflowShellParses: (yaml: string, options: {
|
|
1984
1903
|
readonly source: string;
|
|
1985
1904
|
}) => void;
|
|
1986
|
-
|
|
1987
|
-
export { ALCHEMY_BASELINE, type AlchemyBaselinePackageJson, type AssertAlchemyBaselineInput, type BundleAlchemyEntryOptions, type CheckoutStepOptions, type DiscoverOrphanedPreviewCleanupTargetsInput, type DiscoverPreviewCleanupTargetsInput, EXECUTE_ALCHEMY_ENTRY_MAX_BUFFER, type ExecuteAlchemyEntryOptions, type ExecuteAlchemyEntryResult, FACTORY_APP_BROKER_ORIGIN, FACTORY_APP_BROKER_PATH, FACTORY_APP_BROKER_TOKEN_PERMISSIONS, FACTORY_CANDIDATE_IMPACT_BASIS_OUTPUT, FACTORY_CANDIDATE_IMPACT_DECISION_OUTPUT, FACTORY_CANDIDATE_IMPACT_INERT_OUTPUT, FACTORY_CANDIDATE_IMPACT_STEP_ID, FACTORY_CANDIDATE_IMPACT_UNSUBSCRIBED_OUTPUT, FACTORY_CANDIDATE_PULL_REQUEST_TYPES, FACTORY_CURSOR_OIDC_AUDIENCE, FACTORY_CURSOR_OIDC_ISSUER, FACTORY_CURSOR_OIDC_JWKS_URL, FACTORY_CURSOR_OIDC_MANAGED_RUNTIME, FACTORY_LIFECYCLE_CONTRACT_JOB_ID, FACTORY_LIFECYCLE_CONTRACT_JOB_NAME, FACTORY_MERGE_FREEZE_APP_TOKEN_STEP_ID, FACTORY_MERGE_FREEZE_CHECK_NAME, FACTORY_MERGE_FREEZE_IF, FACTORY_MERGE_FREEZE_JOB_ID, FACTORY_MERGE_FREEZE_JOB_NAME, FACTORY_MERGE_FREEZE_PERMISSIONS, FACTORY_MERGE_FREEZE_VERIFY_RESULT_EXPRESSION, FACTORY_MERGE_TARGET_REF_CONDITION, FACTORY_PREVIEW_CLEANUP_APP_TOKEN_STEP_ID, FACTORY_PREVIEW_CLEANUP_AUDIT_JOB_ID, FACTORY_PREVIEW_CLEANUP_AUDIT_JOB_NAME, FACTORY_PREVIEW_CLEANUP_CHECKOUT_REF, FACTORY_PREVIEW_CLEANUP_DEFAULT_SWEEP_CRON, FACTORY_PREVIEW_CLEANUP_DESTROY_STEP_ID, FACTORY_PREVIEW_CLEANUP_DISCOVER_JOB_ID, FACTORY_PREVIEW_CLEANUP_DISCOVER_JOB_NAME, FACTORY_PREVIEW_CLEANUP_DISCOVER_STEP_ID, FACTORY_PREVIEW_CLEANUP_PR_CLOSED_CONDITION, FACTORY_PREVIEW_CLEANUP_SWEEP_CONDITION, FACTORY_PRODUCTION_IMPACT_BASIS_OUTPUT, FACTORY_PRODUCTION_IMPACT_DECISION_OUTPUT, FACTORY_PRODUCTION_IMPACT_STEP_ID, FACTORY_PRODUCTION_IMPACT_UNSUBSCRIBED_OUTPUT, FACTORY_PROOF_GATE_APP_ID, FACTORY_PROOF_GATE_CHECK_NAME, FACTORY_PROOF_GATE_GUARD, FACTORY_PROOF_GATE_IF, FACTORY_PROOF_GATE_MODE_OUTPUT, FACTORY_PROOF_GATE_OUTPUT, FACTORY_PROOF_GATE_REASONS, FACTORY_PROOF_GATE_REASON_OUTPUT, FACTORY_PROOF_GATE_SHELL, FACTORY_PROOF_GATE_SOURCE_URL_OUTPUT, FACTORY_PROOF_GATE_STEP_ID, FACTORY_PROOF_GATE_STEP_NAME, FACTORY_PR_STATUS_HUD_APP_TOKEN_STEP_ID, FACTORY_PR_STATUS_HUD_CONCURRENCY, FACTORY_PR_STATUS_HUD_IF, FACTORY_PR_STATUS_HUD_JOB_ID, FACTORY_PR_STATUS_HUD_JOB_NAME, FACTORY_PR_STATUS_HUD_PERMISSIONS, FACTORY_PR_STATUS_HUD_PLAN_PATH, FACTORY_PUSH_IDENTITY_SCHEMA_VERSION, type FactoryCandidateImpactWorkflow, type FactoryCandidateImpactWorkflowOptions, type FactoryLifecycleContractLane, type FactoryLifecycleContractLaneOptions, type FactoryMergeFreezeJob, type FactoryMergeFreezeJobOptions, type FactoryPrStatusHudWorkflow, type FactoryPrStatusHudWorkflowOptions, type FactoryPreviewCleanupAuditJob, type FactoryPreviewCleanupDestroyJob, type FactoryPreviewCleanupTopology, type FactoryPreviewCleanupTopologyOptions, type FactoryPreviewCleanupWorkflow, type FactoryPreviewCleanupWorkflowAuditJob, type FactoryPreviewCleanupWorkflowDestroyJob, type FactoryPreviewCleanupWorkflowDiscoverJob, type FactoryPreviewCleanupWorkflowJob, type FactoryPreviewCleanupWorkflowOptions, type FactoryPreviewReceiptWorkflow, type FactoryPreviewReceiptWorkflowOptions, type FactoryProductionImpactWorkflow, type FactoryProductionImpactWorkflowOptions, type FactoryProofGateOptions, type FactoryProofGateReason, type FactoryProofGateStep, type FactoryProofReusePresentationOptions, type FactoryProofReuseSummaryStep, type FactoryProofTimingStartStep, type FactoryPushIdentityConsumer, type FactoryPushIdentityConsumerOptions, type FactoryPushIdentityDisposition, type FactoryPushIdentityEnvelope, type FactoryPushIdentityProducer, type FactoryPushIdentityProducerOptions, type FactoryRunnerDecision, type FactoryRunnerHome, type FactoryRunnerKind, type FactoryRunnerOverride, type FactoryVerifyRunner, type FactoryVerifyRunnerMismatch, type FactoryVerifyRunnerPolicyInput, type FactoryVerifyRunnerPolicyReport, type FactoryVerifyRunnerTable, type FactoryWorkflowArtifact, type FactoryWorkflowOptions, type FactoryWorkflowSetupOptions, GitHubApiError, GitHubAppTokenTransportError, type GithubAppCredentials, type GithubAppInstallationPermissions, type GithubAppTokenOptions, type InstallStepOptions, type LocalPreviewStage, type LocalPreviewStageOptions, NODE_PNPM_ACTION_FAMILY_NODE24, type NodePnpmActionFamily, PREVIEW_PROOF_INVENTORY_CHECK_NAME, PREVIEW_PROOF_INVENTORY_LIST_PERMISSIONS, type ParseLocalPreviewStageExpected, type ParsedLocalPreviewStage, type PinnedAction, type PreviewCleanupPullRequestState, type PreviewCleanupResidue, type PreviewCleanupStackPolicy, type PreviewCleanupSweep, type PreviewCleanupTarget, type PreviewProofCandidate, type PreviewProofCleanupOutcome, type PreviewProofCleanupStatus, type PreviewProofEnvelopeEvidence, type PreviewProofInventoryAccess, type PreviewProofInventoryCleanupInput, type PreviewProofInventoryListInput, type PreviewProofInventoryPersistInput, type PreviewProofInventoryStore, type PreviewProofInventoryTransport, type PreviewProofLifecycleEvent, type PreviewProofLifecycleState, type PreviewProofRegistration, type PreviewProofResolveQuery, PreviewProofTransportError, type ProofReuseCommand, type ProofReuseCoverageInput, type ProofReuseCoverageReport, type ReadPullRequestStatesAccess, type ReadPullRequestStatesInput, type RecordPreviewCleanupOutcomeAccess, type RecordPreviewCleanupOutcomeInput, type RecordPreviewCleanupOutcomeResult, SETUP_STEP_ROLES, type SetupNodeStepOptions, type SetupStepRole, UPLOAD_ARTIFACT, VITEST_PROFILE_SCHEMA_VERSION, VITEST_PROFILE_TOOL, type VitestJsonReport, type VitestProfile, type VitestProfileDependencies, type VitestProfileDurationSummary, type VitestProfileEnvironment, VitestProfileError, type VitestProfileOptions, type VitestProfileReadResult, type VitestProfileSample, type VitestProfileSampleExecution, type VitestTestStatus, type WorkflowShellParseFailure, type WorkflowStep, assertAlchemyBaseline, assertPreviewCleanupStackPolicy, assertPreviewCleanupTargetsAbsent, assertProofReuseCoverage, assertVerifyRunnerPolicy, assertWorkflowShellParses, bundleAlchemyEntry, captureVitestProfileEnvironment, discoverOrphanedPreviewCleanupTargets, discoverPreviewCleanupTargets, executeAlchemyEntry, factoryCandidateImpactWorkflow, factoryCandidateOrPushCondition, factoryLifecycleContractLane, factoryMergeFreezeJob, factoryMergeFreezeScript, factoryPrStatusHudWorkflow, factoryPreviewCleanupTopology, factoryPreviewCleanupWorkflow, factoryPreviewReceiptWorkflow, factoryProductionImpactWorkflow, factoryProofGateScript, factoryProofGateStep, factoryProofReuseSummaryStep, factoryProofTimingStartStep, factoryPushIdentityConsumer, factoryPushIdentityProducer, factoryVerifyRunner, factoryWorkflow, githubAppJwt, isLocalPreviewStage, localPreviewStage, mintInstallationToken, normalizeVitestProfileSample, parseHostedPreviewStage, parseLocalPreviewStage, parsePreviewCleanupResidue, parsePreviewCleanupTargets, previewCleanupDestroyJobId, previewCleanupGithubOutput, previewCleanupResiduePullRequests, previewCleanupStackOutputKey, previewProofInventory, previewProofLifecycle, productionImpactTargetOutput, proofReuseCoverage, proofReuseRequiredCommands, readPullRequestStates, readVitestProfileDocument, recordPreviewCleanupOutcome, resolveProofReuseCommands, runVitestProfile, setupStepsForRoles, verifyRunnerPolicy, workflowRunBlocks, workflowShellParseFailures, writeVitestProfile };
|
|
1905
|
+
export { type AlchemyBaselinePackageJson, type AssertAlchemyBaselineInput, type BundleAlchemyEntryOptions, type CheckoutStepOptions, type DiscoverOrphanedPreviewCleanupTargetsInput, type DiscoverPreviewCleanupTargetsInput, EXECUTE_ALCHEMY_ENTRY_MAX_BUFFER, type ExecuteAlchemyEntryOptions, type ExecuteAlchemyEntryResult, type FactoryCandidateImpactWorkflow, type FactoryCandidateImpactWorkflowOptions, type FactoryLifecycleContractLane, type FactoryLifecycleContractLaneOptions, type FactoryMergeFreezeJob, type FactoryMergeFreezeJobOptions, type FactoryPrStatusHudWorkflow, type FactoryPrStatusHudWorkflowOptions, type FactoryPreviewCleanupAuditJob, type FactoryPreviewCleanupDestroyJob, type FactoryPreviewCleanupTopology, type FactoryPreviewCleanupTopologyOptions, type FactoryPreviewCleanupWorkflow, type FactoryPreviewCleanupWorkflowAuditJob, type FactoryPreviewCleanupWorkflowDestroyJob, type FactoryPreviewCleanupWorkflowDiscoverJob, type FactoryPreviewCleanupWorkflowJob, type FactoryPreviewCleanupWorkflowOptions, type FactoryPreviewReceiptWorkflow, type FactoryPreviewReceiptWorkflowOptions, type FactoryProductionImpactWorkflow, type FactoryProductionImpactWorkflowOptions, type FactoryProofGateOptions, type FactoryProofGateReason, type FactoryProofGateStep, type FactoryProofReusePresentationOptions, type FactoryProofReuseSummaryStep, type FactoryProofTimingStartStep, type FactoryPushIdentityConsumer, type FactoryPushIdentityConsumerOptions, type FactoryPushIdentityDisposition, type FactoryPushIdentityEnvelope, type FactoryPushIdentityProducer, type FactoryPushIdentityProducerOptions, type FactoryRunnerDecision, type FactoryRunnerHome, type FactoryRunnerKind, type FactoryRunnerOverride, type FactoryVerifyRunner, type FactoryVerifyRunnerMismatch, type FactoryVerifyRunnerPolicyInput, type FactoryVerifyRunnerPolicyReport, type FactoryVerifyRunnerTable, type FactoryWorkflowArtifact, type FactoryWorkflowOptions, type FactoryWorkflowSetupOptions, type GithubAppCredentials, type GithubAppInstallationPermissions, type GithubAppTokenOptions, type InstallStepOptions, type LocalPreviewStage, type LocalPreviewStageOptions, type NodePnpmActionFamily, type ParseLocalPreviewStageExpected, type ParsedLocalPreviewStage, type PinnedAction, type PreviewCleanupPullRequestState, type PreviewCleanupResidue, type PreviewCleanupStackPolicy, type PreviewCleanupSweep, type PreviewCleanupTarget, type PreviewProofCandidate, type PreviewProofCleanupOutcome, type PreviewProofCleanupStatus, type PreviewProofEnvelopeEvidence, type PreviewProofInventoryAccess, type PreviewProofInventoryCleanupInput, type PreviewProofInventoryListInput, type PreviewProofInventoryPersistInput, type PreviewProofInventoryStore, type PreviewProofInventoryTransport, type PreviewProofLifecycleEvent, type PreviewProofLifecycleState, type PreviewProofRegistration, type PreviewProofResolveQuery, type ProofReuseCommand, type ProofReuseCoverageInput, type ProofReuseCoverageReport, type ReadPullRequestStatesAccess, type ReadPullRequestStatesInput, type RecordPreviewCleanupOutcomeAccess, type RecordPreviewCleanupOutcomeInput, type RecordPreviewCleanupOutcomeResult, type SetupNodeStepOptions, type SetupStepRole, type VitestJsonReport, type VitestProfile, type VitestProfileDependencies, type VitestProfileDurationSummary, type VitestProfileEnvironment, type VitestProfileOptions, type VitestProfileReadResult, type VitestProfileSample, type VitestProfileSampleExecution, type VitestTestStatus, type WorkflowShellParseFailure, type WorkflowStep, bundleAlchemyEntry, executeAlchemyEntry };
|