@patronage/factory-ci 1.0.0-alpha.45 → 1.0.0-alpha.47

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/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-BR5dFO9k.js";
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,7 +9,7 @@ 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: {
12
+ export declare const ALCHEMY_BASELINE: {
15
13
  readonly alchemy: "2.0.0-beta.84";
16
14
  readonly effect: "4.0.6";
17
15
  };
@@ -42,11 +40,7 @@ interface AssertAlchemyBaselineInput {
42
40
  * Reads only the `packageJson` object it is handed; it never walks the
43
41
  * filesystem.
44
42
  */
45
- declare const assertAlchemyBaseline: ({
46
- packageJson
47
- }: AssertAlchemyBaselineInput) => void;
48
- //#endregion
49
- //#region src/actions.d.ts
43
+ export declare const assertAlchemyBaseline: ({ packageJson }: AssertAlchemyBaselineInput) => void;
50
44
  /**
51
45
  * The GitHub Actions this family's workflow generators use, pinned to full
52
46
  * commit SHAs in one place (#268).
@@ -77,7 +71,7 @@ interface NodePnpmActionFamily {
77
71
  * `factoryWorkflow`; there is deliberately no implicit default. Every action
78
72
  * in this family declares `runs.using: node24` at the named release.
79
73
  */
80
- declare const NODE_PNPM_ACTION_FAMILY_NODE24: {
74
+ export declare const NODE_PNPM_ACTION_FAMILY_NODE24: {
81
75
  readonly checkout: {
82
76
  readonly tag: "v7.0.1";
83
77
  readonly uses: "actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1";
@@ -100,12 +94,10 @@ declare const NODE_PNPM_ACTION_FAMILY_NODE24: {
100
94
  * `additionalActions.uploadArtifact` explicitly — the catalog names the pin,
101
95
  * it does not inject the upload step.
102
96
  */
103
- declare const UPLOAD_ARTIFACT: {
97
+ export declare const UPLOAD_ARTIFACT: {
104
98
  readonly tag: "v4.6.2";
105
99
  readonly uses: "actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02";
106
100
  };
107
- //#endregion
108
- //#region src/candidate-lifecycle.d.ts
109
101
  /**
110
102
  * Pull-request events that can create or refresh a Factory candidate run.
111
103
  *
@@ -113,14 +105,12 @@ declare const UPLOAD_ARTIFACT: {
113
105
  * a run visible, while `factoryCandidateOrPushCondition` keeps substantive
114
106
  * jobs idle until the pull request is a candidate.
115
107
  */
116
- 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"];
117
109
  /**
118
110
  * Build a GitHub Actions job condition for candidate PRs and merge-target
119
111
  * pushes. The caller owns triggers, jobs, runners, permissions, and topology.
120
112
  */
121
- declare const factoryCandidateOrPushCondition: (candidateCondition?: string) => string;
122
- //#endregion
123
- //#region src/disposable-stage.d.ts
113
+ export declare const factoryCandidateOrPushCondition: (candidateCondition?: string) => string;
124
114
  declare const localPreviewStageBrand: unique symbol;
125
115
  type LocalPreviewStage = string & {
126
116
  readonly [localPreviewStageBrand]: true;
@@ -141,11 +131,11 @@ interface ParseLocalPreviewStageExpected {
141
131
  * Returns `null` rather than throwing when the value or expected ownership
142
132
  * does not match.
143
133
  */
144
- declare const parseLocalPreviewStage: (stage: string, expected?: ParseLocalPreviewStageExpected) => ParsedLocalPreviewStage | null;
134
+ export declare const parseLocalPreviewStage: (stage: string, expected?: ParseLocalPreviewStageExpected) => ParsedLocalPreviewStage | null;
145
135
  /**
146
136
  * Whether `stage` is disposable. Pass `pr` to also require PR ownership.
147
137
  */
148
- declare const isLocalPreviewStage: (stage: string, pr?: number) => stage is LocalPreviewStage;
138
+ export declare const isLocalPreviewStage: (stage: string, pr?: number) => stage is LocalPreviewStage;
149
139
  interface LocalPreviewStageOptions {
150
140
  /** The pull request number. */
151
141
  readonly pr: number;
@@ -160,9 +150,7 @@ interface LocalPreviewStageOptions {
160
150
  * Throws when the inputs cannot produce a valid stage, so a caller can never
161
151
  * deploy into a name the cleanup sweep will not recognise.
162
152
  */
163
- declare const localPreviewStage: (options: LocalPreviewStageOptions) => LocalPreviewStage;
164
- //#endregion
165
- //#region src/preview-proof-lifecycle.d.ts
153
+ export declare const localPreviewStage: (options: LocalPreviewStageOptions) => LocalPreviewStage;
166
154
  /**
167
155
  * Preview-proof lifecycle: admit a disposable preview, register envelope-bound
168
156
  * proof at head, and record cleanup. One `transition` path owns those state
@@ -273,16 +261,18 @@ interface PreviewProofResolveQuery {
273
261
  readonly stack?: string;
274
262
  readonly stage?: string;
275
263
  }
276
- declare const previewProofLifecycle: {
277
- readonly empty: () => PreviewProofLifecycleState;
278
- readonly recover: (state: PreviewProofLifecycleState, event: Extract<PreviewProofLifecycleEvent, {
279
- type: "cleanup";
280
- }>) => PreviewProofLifecycleState;
281
- readonly resolve: (state: PreviewProofLifecycleState, query?: PreviewProofResolveQuery) => readonly PreviewProofRegistration[];
282
- readonly transition: (state: PreviewProofLifecycleState, event: PreviewProofLifecycleEvent) => PreviewProofLifecycleState;
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;
283
275
  };
284
- //#endregion
285
- //#region src/preview-proof-inventory.d.ts
286
276
  /**
287
277
  * Hosted preview-proof inventory (#639): persist and list Factory-App
288
278
  * registrations, and record cleanup outcomes, without PR comments.
@@ -305,7 +295,7 @@ declare const previewProofLifecycle: {
305
295
  * satisfies the preview demand.
306
296
  */
307
297
  /** Check-run name that carries one registration JSON payload. Not a gate. */
308
- declare const PREVIEW_PROOF_INVENTORY_CHECK_NAME = "patronage-factory/preview-proof";
298
+ export declare const PREVIEW_PROOF_INVENTORY_CHECK_NAME = "patronage-factory/preview-proof";
309
299
  /**
310
300
  * Least privilege for a job whose `GITHUB_TOKEN` calls `list`. A
311
301
  * `permissions` block zeroes every unlisted scope, and `list` reads five
@@ -315,7 +305,7 @@ declare const PREVIEW_PROOF_INVENTORY_CHECK_NAME = "patronage-factory/preview-pr
315
305
  * that omits `pull-requests: read` fails with 403 on a same-repository PR
316
306
  * and skips every destroy matrix (#859). Give the discovery job this object.
317
307
  */
318
- declare const PREVIEW_PROOF_INVENTORY_LIST_PERMISSIONS: Readonly<{
308
+ export declare const PREVIEW_PROOF_INVENTORY_LIST_PERMISSIONS: Readonly<{
319
309
  readonly checks: "read";
320
310
  readonly contents: "read";
321
311
  readonly "pull-requests": "read";
@@ -375,6 +365,8 @@ interface PreviewProofInventoryCleanupInput {
375
365
  stack: string;
376
366
  stage: string;
377
367
  }
368
+ /** Reached by callers as `previewProofInventory.memoryStore`. */
369
+ declare const memoryStore: () => PreviewProofInventoryStore;
378
370
  /**
379
371
  * The transport gave out — a network-level rejection (EPIPE, DNS, an aborted
380
372
  * or timed-out request) or a transient HTTP status — and bounded retries did
@@ -383,27 +375,30 @@ interface PreviewProofInventoryCleanupInput {
383
375
  * string is retained: the raw transport error can hold the request and its
384
376
  * `Authorization` header, so it is deliberately discarded.
385
377
  */
386
- declare class PreviewProofTransportError extends Error {
378
+ export declare class PreviewProofTransportError extends Error {
387
379
  /** How many transport attempts were made before giving up. */
388
380
  readonly attempts: number;
389
381
  /** The last transient HTTP status, when the server answered at all. */
390
382
  readonly status?: number;
391
383
  constructor(reason: string, attempts: number, status?: number);
392
384
  }
393
- declare const previewProofInventory: {
394
- readonly githubStore: (transport: PreviewProofInventoryTransport) => PreviewProofInventoryStore;
395
- readonly list: (input: PreviewProofInventoryListInput, access: PreviewProofInventoryAccess) => Promise<readonly PreviewProofRegistration[]>;
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;
396
393
  readonly listPermissions: Readonly<{
397
394
  readonly checks: "read";
398
395
  readonly contents: "read";
399
396
  readonly "pull-requests": "read";
400
397
  }>;
401
- readonly memoryStore: () => PreviewProofInventoryStore;
402
- readonly persist: (input: PreviewProofInventoryPersistInput, access: PreviewProofInventoryAccess) => Promise<void>;
403
- readonly recordCleanup: (input: PreviewProofInventoryCleanupInput, access: PreviewProofInventoryAccess) => Promise<PreviewProofRegistration>;
398
+ readonly memoryStore: typeof memoryStore;
399
+ readonly persist: typeof persist;
400
+ readonly recordCleanup: typeof recordCleanup;
404
401
  };
405
- //#endregion
406
- //#region src/factory-workflow.d.ts
407
402
  interface WorkflowStep {
408
403
  readonly continueOnError?: boolean;
409
404
  readonly env?: Readonly<Record<string, string>>;
@@ -438,7 +433,7 @@ interface FactoryWorkflowSetupOptions {
438
433
  * them by display name or by array position/length, so renaming a step or
439
434
  * adding a new supported role never breaks role-based composition (#1076).
440
435
  */
441
- declare const SETUP_STEP_ROLES: readonly ["checkout", "setupPnpm", "setupNode", "install"];
436
+ export declare const SETUP_STEP_ROLES: readonly ["checkout", "setupPnpm", "setupNode", "install"];
442
437
  type SetupStepRole = (typeof SETUP_STEP_ROLES)[number];
443
438
  interface FactoryWorkflowOptions<Additional extends Readonly<Record<string, PinnedAction>>> {
444
439
  /**
@@ -449,7 +444,9 @@ interface FactoryWorkflowOptions<Additional extends Readonly<Record<string, Pinn
449
444
  /** Every workflow-specific action source this artifact owns. */
450
445
  readonly additionalActions?: Additional;
451
446
  readonly generated: {
452
- /** Generator path relative to the repository root. */readonly source: string; /** Exact command that regenerates the emitted workflow. */
447
+ /** Generator path relative to the repository root. */
448
+ readonly source: string;
449
+ /** Exact command that regenerates the emitted workflow. */
453
450
  readonly regenerate: string;
454
451
  };
455
452
  readonly setup?: FactoryWorkflowSetupOptions;
@@ -485,7 +482,7 @@ interface FactoryWorkflowArtifact<Additional extends Readonly<Record<string, Pin
485
482
  * head-pinned checkout with the shared pnpm/Node/install sequence), and that
486
483
  * selection survives a renamed step or an added role.
487
484
  */
488
- declare const setupStepsForRoles: (artifact: {
485
+ export declare const setupStepsForRoles: (artifact: {
489
486
  readonly setupStepsByRole: Readonly<Record<SetupStepRole, WorkflowStep>>;
490
487
  }, roles: readonly SetupStepRole[]) => readonly WorkflowStep[];
491
488
  /**
@@ -495,9 +492,7 @@ declare const setupStepsForRoles: (artifact: {
495
492
  * The caller still owns workflow topology, jobs, runners, permissions, and
496
493
  * every deployment policy decision.
497
494
  */
498
- declare const factoryWorkflow: <const Additional extends Readonly<Record<string, PinnedAction>> = Record<never, never>>(options: FactoryWorkflowOptions<Additional>) => FactoryWorkflowArtifact<Additional>;
499
- //#endregion
500
- //#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>;
501
496
  /**
502
497
  * Pinned Cursor OIDC trust predicates for the Factory App broker (#949).
503
498
  *
@@ -508,39 +503,35 @@ declare const factoryWorkflow: <const Additional extends Readonly<Record<string,
508
503
  * is pinned.
509
504
  */
510
505
  /** Cursor's OIDC issuer. Tokens minted on the agent VM carry this `iss`. */
511
- declare const FACTORY_CURSOR_OIDC_ISSUER = "https://api.cursor.com";
506
+ export declare const FACTORY_CURSOR_OIDC_ISSUER = "https://api.cursor.com";
512
507
  /** JWKS the broker uses to verify RS256 signatures. */
513
- 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";
514
509
  /**
515
510
  * Audience a Cursor-managed VM must mint with. The CLI and the broker share
516
511
  * this string; Cursor does not allowlist audiences.
517
512
  */
518
- declare const FACTORY_CURSOR_OIDC_AUDIENCE = "Factory";
513
+ export declare const FACTORY_CURSOR_OIDC_AUDIENCE = "Factory";
519
514
  /**
520
515
  * Runtime claim a Cursor-managed Cloud Agent VM always presents. Self-hosted
521
516
  * workers are not this broker's callers.
522
517
  */
523
- declare const FACTORY_CURSOR_OIDC_MANAGED_RUNTIME = "managed";
518
+ export declare const FACTORY_CURSOR_OIDC_MANAGED_RUNTIME = "managed";
524
519
  /** HQ route that exchanges a verified Cursor OIDC JWT for an App token. */
525
- declare const FACTORY_APP_BROKER_PATH = "/api/factory-app/installation-token";
520
+ export declare const FACTORY_APP_BROKER_PATH = "/api/factory-app/installation-token";
526
521
  /** Production broker origin. The CLI pins this; it is not profile-declared. */
527
- declare const FACTORY_APP_BROKER_ORIGIN = "https://hq.patronage.com";
528
- //#endregion
529
- //#region src/github-transport.d.ts
522
+ export declare const FACTORY_APP_BROKER_ORIGIN = "https://hq.patronage.com";
530
523
  /**
531
524
  * Bounded transport retries could not reach the GitHub App endpoint (#923).
532
525
  * The reason is credential-free, so it is safe to log. Re-exported from
533
526
  * `github-app-token.ts`, which owns the mint surface.
534
527
  */
535
- declare class GitHubAppTokenTransportError extends Error {
528
+ export declare class GitHubAppTokenTransportError extends Error {
536
529
  /** How many transport attempts were made before giving up. */
537
530
  readonly attempts: number;
538
531
  /** The last transient HTTP status, when the server answered at all. */
539
532
  readonly status?: number;
540
533
  constructor(reason: string, attempts: number, status?: number);
541
534
  }
542
- //#endregion
543
- //#region src/github-app-token.d.ts
544
535
  /**
545
536
  * What a consumer must know to mint: the app id, where the private key is, and
546
537
  * — when it has been recorded — which installation to mint against.
@@ -557,7 +548,7 @@ interface GithubAppCredentials {
557
548
  privateKeyPath: string;
558
549
  }
559
550
  /** Carries the HTTP status so a caller can tell a retryable failure apart. */
560
- declare class GitHubApiError extends Error {
551
+ export declare class GitHubApiError extends Error {
561
552
  readonly status: number;
562
553
  constructor(status: number, statusText: string);
563
554
  }
@@ -570,7 +561,7 @@ interface GithubAppInstallationPermissions {
570
561
  checks?: "read" | "write";
571
562
  }
572
563
  /** The Factory App broker's token: repo-scoped Checks write, nothing else. */
573
- declare const FACTORY_APP_BROKER_TOKEN_PERMISSIONS: {
564
+ export declare const FACTORY_APP_BROKER_TOKEN_PERMISSIONS: {
574
565
  readonly checks: "write";
575
566
  };
576
567
  interface GithubAppTokenOptions {
@@ -600,7 +591,7 @@ interface GithubAppTokenOptions {
600
591
  * The signature is produced from the key on disk and returned; the key
601
592
  * material itself never leaves this call.
602
593
  */
603
- declare const githubAppJwt: (credentials: GithubAppCredentials, options?: Pick<GithubAppTokenOptions, "now" | "readPrivateKey">) => string;
594
+ export declare const githubAppJwt: (credentials: GithubAppCredentials, options?: Pick<GithubAppTokenOptions, "now" | "readPrivateKey">) => string;
604
595
  /**
605
596
  * Mint an installation access token for one repository.
606
597
  *
@@ -613,7 +604,7 @@ declare const githubAppJwt: (credentials: GithubAppCredentials, options?: Pick<G
613
604
  * a same-named repository under another (#1428). Nothing is cached: the token
614
605
  * is returned to the caller and this module keeps no copy.
615
606
  */
616
- declare const mintInstallationToken: (input: {
607
+ export declare const mintInstallationToken: (input: {
617
608
  credentials: GithubAppCredentials;
618
609
  owner: string;
619
610
  /**
@@ -630,8 +621,6 @@ declare const mintInstallationToken: (input: {
630
621
  repositories?: readonly string[];
631
622
  repo: string;
632
623
  }, options?: GithubAppTokenOptions) => Promise<string>;
633
- //#endregion
634
- //#region src/proof-reuse-gate.d.ts
635
624
  /**
636
625
  * The GitHub-side **proof-reuse gate** (ADR 0022, #309, #317).
637
626
  *
@@ -650,7 +639,7 @@ declare const mintInstallationToken: (input: {
650
639
  * postable as a *commit status* by any token with write access, so only the
651
640
  * Checks API is ever consulted and only under this exact name.
652
641
  */
653
- declare const FACTORY_PROOF_GATE_CHECK_NAME = "patronage-factory/pr-verify";
642
+ export declare const FACTORY_PROOF_GATE_CHECK_NAME = "patronage-factory/pr-verify";
654
643
  /**
655
644
  * The Patronage Factory GitHub App, pinned (ADR 0022). A runner has no
656
645
  * operator user config to read the producing App identity from, and the
@@ -658,16 +647,16 @@ declare const FACTORY_PROOF_GATE_CHECK_NAME = "patronage-factory/pr-verify";
658
647
  * can point somewhere else. Neither the id nor the slug is a secret: GitHub
659
648
  * returns `app.id` on every check run it serves.
660
649
  */
661
- declare const FACTORY_PROOF_GATE_APP_ID = "4314840";
650
+ export declare const FACTORY_PROOF_GATE_APP_ID = "4314840";
662
651
  /** Step id the guard condition refers to. */
663
- declare const FACTORY_PROOF_GATE_STEP_ID = "factory-proof";
652
+ export declare const FACTORY_PROOF_GATE_STEP_ID = "factory-proof";
664
653
  /**
665
654
  * Human-visible name of the gate step as the Actions jobs API serves it. A
666
655
  * read-only run analyzer (`psf ci:analyze`, #647) matches on this name to
667
656
  * classify a run as proof-reuse versus full fallback, so it is exported from
668
657
  * exactly the module that writes it — matching on a re-typed copy would drift.
669
658
  */
670
- 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";
671
660
  /**
672
661
  * The shell the gate runs under, and it is a correctness requirement rather
673
662
  * than a preference.
@@ -690,28 +679,28 @@ declare const FACTORY_PROOF_GATE_STEP_NAME = "Check for factory proof of this he
690
679
  * are deliberate: this one states the contract, that one means a runner which
691
680
  * ignores it still gets a decision.
692
681
  */
693
- declare const FACTORY_PROOF_GATE_SHELL = "bash --noprofile --norc {0}";
682
+ export declare const FACTORY_PROOF_GATE_SHELL = "bash --noprofile --norc {0}";
694
683
  /** Output the verdict is written to. `true` — and only `true` — skips. */
695
- declare const FACTORY_PROOF_GATE_OUTPUT = "reuse-proof";
684
+ export declare const FACTORY_PROOF_GATE_OUTPUT = "reuse-proof";
696
685
  /**
697
686
  * Machine-readable refusal category. Fleet-status reads this: it is what makes
698
687
  * a reuse-collapses-to-never regression visible instead of hidden behind
699
688
  * fail-open, which by construction looks exactly like healthy full CI.
700
689
  */
701
- declare const FACTORY_PROOF_GATE_REASON_OUTPUT = "reason";
690
+ export declare const FACTORY_PROOF_GATE_REASON_OUTPUT = "reason";
702
691
  /**
703
692
  * Recorded verification mode, when the gate could read one. Diagnostic
704
693
  * metadata only — never an authorization condition (ADR 0022). A reduced-mode
705
694
  * proof that executed every command the surface requires is reusable.
706
695
  */
707
- declare const FACTORY_PROOF_GATE_MODE_OUTPUT = "mode";
696
+ export declare const FACTORY_PROOF_GATE_MODE_OUTPUT = "mode";
708
697
  /** Exact Checks API URL of the proof generation selected by the gate. */
709
- declare const FACTORY_PROOF_GATE_SOURCE_URL_OUTPUT = "source-check-url";
698
+ export declare const FACTORY_PROOF_GATE_SOURCE_URL_OUTPUT = "source-check-url";
710
699
  /**
711
700
  * Guard for every step the gate protects. Deliberately `!= 'true'` and not
712
701
  * `== 'false'`: an unset, empty, or garbled output must run the suite.
713
702
  */
714
- 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'";
715
704
  /**
716
705
  * Pull requests only — the gate's single condition (#873, default since #863,
717
706
  * the only mode since the merge-target opt-out was deleted).
@@ -727,7 +716,7 @@ declare const FACTORY_PROOF_GATE_GUARD = "steps.factory-proof.outputs.reuse-proo
727
716
  * Which branches trigger the workflow at all stays repository-owned. This
728
717
  * condition only keeps the gate from consulting proof outside a pull request.
729
718
  */
730
- declare const FACTORY_PROOF_GATE_IF = "github.event_name == 'pull_request'";
719
+ export declare const FACTORY_PROOF_GATE_IF = "github.event_name == 'pull_request'";
731
720
  /**
732
721
  * The complete refusal vocabulary: the only distinctions the gate can make
733
722
  * from its Checks API reads.
@@ -747,7 +736,7 @@ declare const FACTORY_PROOF_GATE_IF = "github.event_name == 'pull_request'";
747
736
  * another run at this head was posted
748
737
  * - `error` the gate could not reach a decision (fail open)
749
738
  */
750
- 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"];
751
740
  type FactoryProofGateReason = (typeof FACTORY_PROOF_GATE_REASONS)[number];
752
741
  /**
753
742
  * One entry of a consumer's `verification.commands` (ADR 0021). Only the two
@@ -774,7 +763,7 @@ interface ProofReuseCommand {
774
763
  * covering, so it is never silently treated as "requires nothing"; callers
775
764
  * must refuse instead.
776
765
  */
777
- declare const proofReuseRequiredCommands: (commands: readonly ProofReuseCommand[]) => readonly string[] | undefined;
766
+ export declare const proofReuseRequiredCommands: (commands: readonly ProofReuseCommand[]) => readonly string[] | undefined;
778
767
  /**
779
768
  * Resolve command identities to their `ProofReuseCommand` objects (ADR 0021).
780
769
  * Which names a surface requires is the consumer's choice; this is only the
@@ -783,7 +772,7 @@ declare const proofReuseRequiredCommands: (commands: readonly ProofReuseCommand[
783
772
  * The message says "the profile's command catalog" rather than a file name,
784
773
  * since not every consumer's catalog is `software-factory.profile.json`.
785
774
  */
786
- declare const resolveProofReuseCommands: (catalog: readonly ProofReuseCommand[], names: readonly string[], selectionLabel?: string) => readonly ProofReuseCommand[];
775
+ export declare const resolveProofReuseCommands: (catalog: readonly ProofReuseCommand[], names: readonly string[], selectionLabel?: string) => readonly ProofReuseCommand[];
787
776
  interface FactoryProofGateOptions {
788
777
  /**
789
778
  * The profile command objects this guarded surface selected. A consumer with
@@ -806,10 +795,7 @@ interface FactoryProofGateOptions {
806
795
  * `FACTORY_PROOF_GATE_SHELL` — so the script is also written to reach that
807
796
  * write under errexit, and the tests execute it both ways.
808
797
  */
809
- declare const factoryProofGateScript: ({
810
- commands,
811
- surface
812
- }: FactoryProofGateOptions) => string;
798
+ export declare const factoryProofGateScript: ({ commands, surface }: FactoryProofGateOptions) => string;
813
799
  interface FactoryProofGateStep {
814
800
  readonly continueOnError: true;
815
801
  readonly env: Readonly<{
@@ -836,15 +822,10 @@ interface FactoryProofGateStep {
836
822
  * construction: the step errors, the output is never written, the guard reads
837
823
  * empty, and every command runs.
838
824
  */
839
- declare const factoryProofGateStep: (options: FactoryProofGateOptions) => FactoryProofGateStep;
825
+ export declare const factoryProofGateStep: (options: FactoryProofGateOptions) => FactoryProofGateStep;
840
826
  interface ProofReuseCoverageInput {
841
827
  /** The same selection handed to the gate for this surface. */
842
828
  readonly commands: readonly ProofReuseCommand[];
843
- /**
844
- * @deprecated Ignored. Consumer prose cannot authorize executable coverage;
845
- * retained only so the 0.2.1 security patch remains source-compatible.
846
- */
847
- readonly equivalents?: Readonly<Record<string, string>>;
848
829
  /**
849
830
  * The command strings the consumer's workflow would skip when the gate says
850
831
  * `true`, already resolved to the leaves that actually run. Extracting them
@@ -873,14 +854,9 @@ interface ProofReuseCoverageReport {
873
854
  * as CI quietly verifying nothing. The drift is real history: #227 wired a
874
855
  * workspace member into CI while the profile never learned about it.
875
856
  */
876
- declare const proofReuseCoverage: ({
877
- commands,
878
- skipped
879
- }: ProofReuseCoverageInput) => ProofReuseCoverageReport;
857
+ export declare const proofReuseCoverage: ({ commands, skipped }: ProofReuseCoverageInput) => ProofReuseCoverageReport;
880
858
  /** `proofReuseCoverage`, as a build failure. */
881
- declare const assertProofReuseCoverage: (input: ProofReuseCoverageInput) => ProofReuseCoverageReport;
882
- //#endregion
883
- //#region src/proof-reuse-presentation.d.ts
859
+ export declare const assertProofReuseCoverage: (input: ProofReuseCoverageInput) => ProofReuseCoverageReport;
884
860
  /** Generic timing and presentation steps around the proof-reuse gate (#652). */
885
861
  declare const FACTORY_PROOF_TIMING_STEP_ID = "ci-timing";
886
862
  declare const FACTORY_PROOF_TIMING_START_STEP_NAME = "Start CI timing";
@@ -895,7 +871,7 @@ interface FactoryProofTimingStartStep {
895
871
  readonly name: typeof FACTORY_PROOF_TIMING_START_STEP_NAME;
896
872
  readonly run: string;
897
873
  }
898
- declare const factoryProofTimingStartStep: () => FactoryProofTimingStartStep;
874
+ export declare const factoryProofTimingStartStep: () => FactoryProofTimingStartStep;
899
875
  interface FactoryProofReuseSummaryStep {
900
876
  readonly continueOnError: true;
901
877
  readonly env: Readonly<Record<string, string>>;
@@ -903,14 +879,12 @@ interface FactoryProofReuseSummaryStep {
903
879
  readonly name: typeof FACTORY_PROOF_TIMING_SUMMARY_STEP_NAME;
904
880
  readonly run: string;
905
881
  }
906
- declare const factoryProofReuseSummaryStep: (options: FactoryProofReusePresentationOptions) => FactoryProofReuseSummaryStep;
907
- //#endregion
908
- //#region src/candidate-impact-workflow.d.ts
909
- declare const FACTORY_CANDIDATE_IMPACT_STEP_ID = "candidate_impact";
910
- declare const FACTORY_CANDIDATE_IMPACT_DECISION_OUTPUT = "decision";
911
- declare const FACTORY_CANDIDATE_IMPACT_BASIS_OUTPUT = "basis";
912
- declare const FACTORY_CANDIDATE_IMPACT_INERT_OUTPUT = "inert_paths";
913
- 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";
914
888
  interface FactoryCandidateImpactWorkflowOptions {
915
889
  readonly base?: string;
916
890
  readonly cli?: string;
@@ -945,11 +919,9 @@ interface FactoryCandidateImpactWorkflow {
945
919
  * base commit reachable (`fetchDepth: 0`, `ref` = the head SHA); anything
946
920
  * else refuses withdrawal and keeps every target demanded.
947
921
  */
948
- declare const factoryCandidateImpactWorkflow: (options: FactoryCandidateImpactWorkflowOptions) => FactoryCandidateImpactWorkflow;
949
- //#endregion
950
- //#region src/lifecycle-contract-lane.d.ts
951
- declare const FACTORY_LIFECYCLE_CONTRACT_JOB_ID = "factory-contracts";
952
- 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";
953
925
  interface FactoryLifecycleContractLaneOptions {
954
926
  readonly command: string;
955
927
  readonly jobId?: string;
@@ -975,9 +947,7 @@ interface FactoryLifecycleContractLane {
975
947
  * pnpm `--filter <pkg>` may precede either form. Shell operators, credential
976
948
  * env, extra flags, and direct Vitest are refused.
977
949
  */
978
- declare const factoryLifecycleContractLane: (declaration?: FactoryLifecycleContractLaneOptions) => FactoryLifecycleContractLane | undefined;
979
- //#endregion
980
- //#region src/merge-freeze-job.d.ts
950
+ export declare const factoryLifecycleContractLane: (declaration?: FactoryLifecycleContractLaneOptions) => FactoryLifecycleContractLane | undefined;
981
951
  /**
982
952
  * The merge-freeze writer job (#356, ADR 0016; #429 for the
983
953
  * merge-target namespace; #872 for this package).
@@ -1017,18 +987,18 @@ declare const factoryLifecycleContractLane: (declaration?: FactoryLifecycleContr
1017
987
  * of every authoritative verification leaf, the timeout, and any extra env.
1018
988
  */
1019
989
  /** The one check-run name every merge-freeze reader pins. */
1020
- declare const FACTORY_MERGE_FREEZE_CHECK_NAME = "patronage-factory/merge-freeze";
1021
- declare const FACTORY_MERGE_FREEZE_JOB_ID = "freeze";
1022
- 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";
1023
993
  /** Step id the token step exposes its installation token under. */
1024
- 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";
1025
995
  /**
1026
996
  * The GitHub Actions expression that folds the needed jobs' results into the
1027
997
  * one word the script branches on. It mirrors the `verify` summary job's
1028
998
  * failure condition exactly: any failed or cancelled needed job is a red
1029
999
  * merge target.
1030
1000
  */
1031
- 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' }}";
1032
1002
  /**
1033
1003
  * The literal factory merge-target namespace, as a `github.ref` predicate
1034
1004
  * (#429).
@@ -1044,7 +1014,7 @@ declare const FACTORY_MERGE_FREEZE_VERIFY_RESULT_EXPRESSION = "${{ (contains(nee
1044
1014
  * decides which events produce a run at all; this predicate decides which of
1045
1015
  * those runs may write a generation.
1046
1016
  */
1047
- declare const FACTORY_MERGE_TARGET_REF_CONDITION: string;
1017
+ export declare const FACTORY_MERGE_TARGET_REF_CONDITION: string;
1048
1018
  /**
1049
1019
  * `always()` is load-bearing: the red path is the whole point, so the job must
1050
1020
  * run when a needed verification job failed. `github.event_name == 'push'` is
@@ -1053,7 +1023,7 @@ declare const FACTORY_MERGE_TARGET_REF_CONDITION: string;
1053
1023
  * at), and a `pull_request` trigger with an `epic/**` base list would
1054
1024
  * otherwise reach this job.
1055
1025
  */
1056
- declare const FACTORY_MERGE_FREEZE_IF: string;
1026
+ export declare const FACTORY_MERGE_FREEZE_IF: string;
1057
1027
  /**
1058
1028
  * Least privilege for the writer job: no `GITHUB_TOKEN` scope at all.
1059
1029
  *
@@ -1063,7 +1033,7 @@ declare const FACTORY_MERGE_FREEZE_IF: string;
1063
1033
  * and an empty block is the honest declaration. A `checks: write` here would
1064
1034
  * hand every adopter an unused write scope (#884).
1065
1035
  */
1066
- declare const FACTORY_MERGE_FREEZE_PERMISSIONS: Readonly<{}>;
1036
+ export declare const FACTORY_MERGE_FREEZE_PERMISSIONS: Readonly<{}>;
1067
1037
  /**
1068
1038
  * The script the freeze step runs. Environment contract:
1069
1039
  * - `GH_TOKEN`: an installation token for the pinned Patronage Factory App —
@@ -1081,7 +1051,7 @@ declare const FACTORY_MERGE_FREEZE_PERMISSIONS: Readonly<{}>;
1081
1051
  * candidate must be told which branch owns the generation. A later green
1082
1052
  * generation on that branch's current tip clears it, including a rerun.
1083
1053
  */
1084
- declare const factoryMergeFreezeScript: () => string;
1054
+ export declare const factoryMergeFreezeScript: () => string;
1085
1055
  interface FactoryMergeFreezeJobOptions<TNeed> {
1086
1056
  /** The pinned `actions/create-github-app-token` the caller declared. */
1087
1057
  readonly createGithubAppToken: PinnedAction;
@@ -1114,19 +1084,17 @@ interface FactoryMergeFreezeJob<TNeed> {
1114
1084
  * always `success`, so such a job would write a green generation for a merge
1115
1085
  * target nothing verified — the exact failure the freeze exists to prevent.
1116
1086
  */
1117
- declare const factoryMergeFreezeJob: <TNeed>(options: FactoryMergeFreezeJobOptions<TNeed>) => FactoryMergeFreezeJob<TNeed>;
1118
- //#endregion
1119
- //#region src/pr-status-hud-workflow.d.ts
1120
- declare const FACTORY_PR_STATUS_HUD_JOB_ID = "status-hud";
1121
- declare const FACTORY_PR_STATUS_HUD_JOB_NAME = "Present PR status HUD";
1122
- declare const FACTORY_PR_STATUS_HUD_APP_TOKEN_STEP_ID = "factory-app-token";
1123
- 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";
1124
1092
  /**
1125
1093
  * Presentation is independent of deploy demand. Callers who `needs` the jobs
1126
1094
  * that settle HUD sources (verify, deploy) must keep this `always()` so a
1127
1095
  * skipped or withdrawn deploy still publishes Skipped rows.
1128
1096
  */
1129
- 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";
1130
1098
  interface FactoryPrStatusHudWorkflowOptions {
1131
1099
  readonly cli?: string;
1132
1100
  readonly createGithubAppToken: PinnedAction;
@@ -1136,12 +1104,12 @@ interface FactoryPrStatusHudWorkflowOptions {
1136
1104
  * is an inventory `list`, so the job needs exactly the inventory's read
1137
1105
  * permissions (#825, #859).
1138
1106
  */
1139
- declare const FACTORY_PR_STATUS_HUD_PERMISSIONS: Readonly<{
1107
+ export declare const FACTORY_PR_STATUS_HUD_PERMISSIONS: Readonly<{
1140
1108
  readonly checks: "read";
1141
1109
  readonly contents: "read";
1142
1110
  readonly "pull-requests": "read";
1143
1111
  }>;
1144
- declare const FACTORY_PR_STATUS_HUD_CONCURRENCY: Readonly<{
1112
+ export declare const FACTORY_PR_STATUS_HUD_CONCURRENCY: Readonly<{
1145
1113
  cancelInProgress: false;
1146
1114
  group: "status-hud-${{ github.repository }}-${{ github.event.pull_request.number }}";
1147
1115
  }>;
@@ -1153,11 +1121,9 @@ interface FactoryPrStatusHudWorkflow {
1153
1121
  readonly permissions: typeof FACTORY_PR_STATUS_HUD_PERMISSIONS;
1154
1122
  readonly presentSteps: readonly WorkflowStep[];
1155
1123
  }
1156
- declare const factoryPrStatusHudWorkflow: (options: FactoryPrStatusHudWorkflowOptions) => FactoryPrStatusHudWorkflow;
1157
- //#endregion
1158
- //#region src/preview-cleanup-topology.d.ts
1159
- declare const FACTORY_PREVIEW_CLEANUP_AUDIT_JOB_ID = "stage-residue-audit";
1160
- 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";
1161
1127
  interface FactoryPreviewCleanupTopologyOptions {
1162
1128
  readonly audit: {
1163
1129
  readonly command: string;
@@ -1181,7 +1147,7 @@ interface FactoryPreviewCleanupTopology {
1181
1147
  readonly auditJob: FactoryPreviewCleanupAuditJob;
1182
1148
  readonly destroyJobs: readonly FactoryPreviewCleanupDestroyJob[];
1183
1149
  }
1184
- declare const previewCleanupDestroyJobId: (stack: string) => string;
1150
+ export declare const previewCleanupDestroyJobId: (stack: string) => string;
1185
1151
  /**
1186
1152
  * Generate the factory-owned preview-cleanup topology (#764): one destroy
1187
1153
  * job identity per stack, then exactly one stage-wide residue-audit job
@@ -1189,9 +1155,7 @@ declare const previewCleanupDestroyJobId: (stack: string) => string;
1189
1155
  * threads a stack name or path filter into it. Callers own destroy steps,
1190
1156
  * what counts as residue, credentials, and runners.
1191
1157
  */
1192
- declare const factoryPreviewCleanupTopology: (options: FactoryPreviewCleanupTopologyOptions) => FactoryPreviewCleanupTopology;
1193
- //#endregion
1194
- //#region src/preview-cleanup.d.ts
1158
+ export declare const factoryPreviewCleanupTopology: (options: FactoryPreviewCleanupTopologyOptions) => FactoryPreviewCleanupTopology;
1195
1159
  /**
1196
1160
  * Closed-PR preview cleanup and the scheduled orphan sweep (#1540).
1197
1161
  *
@@ -1285,7 +1249,8 @@ interface RecordPreviewCleanupOutcomeAccess {
1285
1249
  readonly write: PreviewProofInventoryAccess;
1286
1250
  }
1287
1251
  type RecordPreviewCleanupOutcomeResult = {
1288
- /** Destroyed but never registered: inventory residue or a hosted stage. */readonly kind: "unregistered";
1252
+ /** Destroyed but never registered: inventory residue or a hosted stage. */
1253
+ readonly kind: "unregistered";
1289
1254
  } | {
1290
1255
  readonly kind: "recorded" | "recovered";
1291
1256
  readonly registration: PreviewProofRegistration;
@@ -1302,15 +1267,15 @@ interface ReadPullRequestStatesAccess {
1302
1267
  readonly token: string;
1303
1268
  }
1304
1269
  /** The GitHub-output key a stack's matrix and presence flag use. */
1305
- declare const previewCleanupStackOutputKey: (stack: string) => string;
1270
+ export declare const previewCleanupStackOutputKey: (stack: string) => string;
1306
1271
  /**
1307
1272
  * Validate a stack policy. Throws on an empty or duplicate stack list, a
1308
1273
  * stack name a shell or GitHub output could misread, an alias to an
1309
1274
  * undeclared stack, or a hosted prefix that is not `<word>-`.
1310
1275
  */
1311
- declare const assertPreviewCleanupStackPolicy: (policy: PreviewCleanupStackPolicy) => void;
1276
+ export declare const assertPreviewCleanupStackPolicy: (policy: PreviewCleanupStackPolicy) => void;
1312
1277
  /** The PR a hosted stage belongs to, or `null` when it is not one. */
1313
- declare const parseHostedPreviewStage: (stage: string, prefix: string) => number | null;
1278
+ export declare const parseHostedPreviewStage: (stage: string, prefix: string) => number | null;
1314
1279
  /**
1315
1280
  * Targets for one closed PR: its inventory registrations united with the
1316
1281
  * residue the consumer still sees for it. Only the PR's own `local-pr-<pr>-*`
@@ -1318,76 +1283,74 @@ declare const parseHostedPreviewStage: (stage: string, prefix: string) => number
1318
1283
  * wins a collision so its head SHA reaches the cleanup record. A registration
1319
1284
  * whose cleanup already passed is skipped unless the residue still lists it.
1320
1285
  */
1321
- declare const discoverPreviewCleanupTargets: (input: DiscoverPreviewCleanupTargetsInput) => readonly PreviewCleanupTarget[];
1286
+ export declare const discoverPreviewCleanupTargets: (input: DiscoverPreviewCleanupTargetsInput) => readonly PreviewCleanupTarget[];
1322
1287
  /**
1323
1288
  * The PRs whose disposable stages appear in the residue. The sweep reads
1324
1289
  * their state before it decides anything.
1325
1290
  */
1326
- declare const previewCleanupResiduePullRequests: (policy: PreviewCleanupStackPolicy, residue: readonly PreviewCleanupResidue[]) => readonly number[];
1291
+ export declare const previewCleanupResiduePullRequests: (policy: PreviewCleanupStackPolicy, residue: readonly PreviewCleanupResidue[]) => readonly number[];
1327
1292
  /**
1328
1293
  * Targets for the scheduled sweep: disposable residue whose PR GitHub
1329
1294
  * reports closed. It fails closed. A stage that does not parse as disposable,
1330
1295
  * a stack the consumer did not declare, and a PR that is open or whose state
1331
1296
  * is unknown are all retained.
1332
1297
  */
1333
- declare const discoverOrphanedPreviewCleanupTargets: (input: DiscoverOrphanedPreviewCleanupTargetsInput) => PreviewCleanupSweep;
1298
+ export declare const discoverOrphanedPreviewCleanupTargets: (input: DiscoverOrphanedPreviewCleanupTargetsInput) => PreviewCleanupSweep;
1334
1299
  /**
1335
1300
  * The `$GITHUB_OUTPUT` lines the cleanup workflow's discover job publishes:
1336
1301
  * `has_targets`, `targets`, and for each declared stack `has_<key>` and
1337
1302
  * `<key>_matrix`. A stack with no target still gets `has_<key>=false`, so
1338
1303
  * its destroy job skips instead of expanding an empty matrix.
1339
1304
  */
1340
- declare const previewCleanupGithubOutput: (policy: PreviewCleanupStackPolicy, targets: readonly PreviewCleanupTarget[]) => string;
1305
+ export declare const previewCleanupGithubOutput: (policy: PreviewCleanupStackPolicy, targets: readonly PreviewCleanupTarget[]) => string;
1341
1306
  /** Parse untrusted residue JSON: an array of `{ stack, stage }` rows. */
1342
- declare const parsePreviewCleanupResidue: (value: unknown) => readonly PreviewCleanupResidue[];
1307
+ export declare const parsePreviewCleanupResidue: (value: unknown) => readonly PreviewCleanupResidue[];
1343
1308
  /**
1344
1309
  * Parse untrusted target JSON (the discover job's `targets` output). Every
1345
1310
  * row must still be a disposable stage owned by its own PR, so a tampered
1346
1311
  * output cannot widen the audit or a record.
1347
1312
  */
1348
- declare const parsePreviewCleanupTargets: (policy: PreviewCleanupStackPolicy, value: unknown) => readonly PreviewCleanupTarget[];
1313
+ export declare const parsePreviewCleanupTargets: (policy: PreviewCleanupStackPolicy, value: unknown) => readonly PreviewCleanupTarget[];
1349
1314
  /**
1350
1315
  * The whole-stage audit after every destroy. Any residue row whose stage
1351
1316
  * is a target stage fails it, whatever stack the reader assigned the row,
1352
1317
  * because a sibling stack's leftovers are the same stage's residue.
1353
1318
  */
1354
- declare const assertPreviewCleanupTargetsAbsent: (targets: readonly PreviewCleanupTarget[], residue: readonly PreviewCleanupResidue[]) => void;
1319
+ export declare const assertPreviewCleanupTargetsAbsent: (targets: readonly PreviewCleanupTarget[], residue: readonly PreviewCleanupResidue[]) => void;
1355
1320
  /**
1356
1321
  * Record one stack destroy's outcome on the inventory registration it
1357
1322
  * cleaned up. A stage nothing registered (residue-only, or a hosted stage)
1358
1323
  * returns `unregistered` without writing. A registration whose last cleanup
1359
1324
  * failed is recovered through the same cleanup transition.
1360
1325
  */
1361
- declare const recordPreviewCleanupOutcome: (input: RecordPreviewCleanupOutcomeInput, access: RecordPreviewCleanupOutcomeAccess) => Promise<RecordPreviewCleanupOutcomeResult>;
1326
+ export declare const recordPreviewCleanupOutcome: (input: RecordPreviewCleanupOutcomeInput, access: RecordPreviewCleanupOutcomeAccess) => Promise<RecordPreviewCleanupOutcomeResult>;
1362
1327
  /**
1363
1328
  * Ask GitHub for each PR's state. A PR GitHub does not know is left out of
1364
1329
  * the map, so the sweep retains its stages.
1365
1330
  */
1366
- declare const readPullRequestStates: (input: ReadPullRequestStatesInput, access: ReadPullRequestStatesAccess) => Promise<ReadonlyMap<number, PreviewCleanupPullRequestState>>;
1367
- //#endregion
1368
- //#region src/preview-cleanup-workflow.d.ts
1369
- declare const FACTORY_PREVIEW_CLEANUP_DISCOVER_JOB_ID = "discover";
1370
- declare const FACTORY_PREVIEW_CLEANUP_DISCOVER_JOB_NAME = "Discover preview cleanup targets";
1371
- declare const FACTORY_PREVIEW_CLEANUP_DISCOVER_STEP_ID = "targets";
1372
- declare const FACTORY_PREVIEW_CLEANUP_DESTROY_STEP_ID = "destroy";
1373
- declare const FACTORY_PREVIEW_CLEANUP_APP_TOKEN_STEP_ID = "factory-app-token";
1374
- 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 * * *";
1375
1338
  /**
1376
1339
  * A closed pull request whose head lives in this repository. A fork's head
1377
1340
  * never reaches a job that holds cleanup credentials.
1378
1341
  */
1379
- 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";
1380
1343
  /**
1381
1344
  * The sweep: the schedule, which GitHub always runs on the default branch,
1382
1345
  * or a manual dispatch from the default branch.
1383
1346
  */
1384
- 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))";
1385
1348
  /**
1386
1349
  * The ref every cleanup job checks out: the default branch's trusted code,
1387
1350
  * never the closed PR's head. Empty on `schedule`, where the checkout
1388
1351
  * already defaults to the default branch.
1389
1352
  */
1390
- 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 }}";
1391
1354
  interface FactoryPreviewCleanupWorkflowOptions extends PreviewCleanupStackPolicy {
1392
1355
  readonly cli?: string;
1393
1356
  /**
@@ -1417,7 +1380,8 @@ interface FactoryPreviewCleanupWorkflowOptions extends PreviewCleanupStackPolicy
1417
1380
  readonly residueCommand: string;
1418
1381
  /** The scheduled orphan sweep. Pass `false` to generate PR-close cleanup only. */
1419
1382
  readonly sweep?: false | {
1420
- /** Defaults to `FACTORY_PREVIEW_CLEANUP_DEFAULT_SWEEP_CRON`. */readonly cron?: string;
1383
+ /** Defaults to `FACTORY_PREVIEW_CLEANUP_DEFAULT_SWEEP_CRON`. */
1384
+ readonly cron?: string;
1421
1385
  /**
1422
1386
  * Targets per sweep run. Defaults to 50. Stages are taken whole, so a
1423
1387
  * run exceeds it only when its first stage has more stacks than this.
@@ -1485,9 +1449,7 @@ interface FactoryPreviewCleanupWorkflow {
1485
1449
  * behind a production deploy flag. The caller prepends its own setup steps
1486
1450
  * (checked out at `checkoutRef`), and adds `runsOn` and credential `env`.
1487
1451
  */
1488
- declare const factoryPreviewCleanupWorkflow: (options: FactoryPreviewCleanupWorkflowOptions) => FactoryPreviewCleanupWorkflow;
1489
- //#endregion
1490
- //#region src/preview-receipt-workflow.d.ts
1452
+ export declare const factoryPreviewCleanupWorkflow: (options: FactoryPreviewCleanupWorkflowOptions) => FactoryPreviewCleanupWorkflow;
1491
1453
  interface FactoryPreviewReceiptWorkflowOptions {
1492
1454
  readonly target: string;
1493
1455
  readonly cli?: string;
@@ -1509,15 +1471,13 @@ interface FactoryPreviewReceiptWorkflow {
1509
1471
  }>;
1510
1472
  }
1511
1473
  /** Receipt transport only. The consumer owns selection, lifecycle, smoke, and freshness. */
1512
- declare const factoryPreviewReceiptWorkflow: (options: FactoryPreviewReceiptWorkflowOptions) => FactoryPreviewReceiptWorkflow;
1513
- //#endregion
1514
- //#region src/production-impact-workflow.d.ts
1515
- declare const FACTORY_PRODUCTION_IMPACT_STEP_ID = "production_impact";
1516
- declare const FACTORY_PRODUCTION_IMPACT_DECISION_OUTPUT = "decision";
1517
- declare const FACTORY_PRODUCTION_IMPACT_BASIS_OUTPUT = "basis";
1518
- 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";
1519
1479
  /** Stable GitHub-output key for one declared target. */
1520
- declare const productionImpactTargetOutput: (targetName: string) => string;
1480
+ export declare const productionImpactTargetOutput: (targetName: string) => string;
1521
1481
  interface FactoryProductionImpactWorkflowOptions {
1522
1482
  /** The checked-out candidate commit. Defaults to `github.sha`. */
1523
1483
  readonly candidate?: string;
@@ -1568,10 +1528,8 @@ interface FactoryProductionImpactWorkflow {
1568
1528
  * decision checkout needs full history (`fetchDepth: 0`) so the baseline
1569
1529
  * commit is reachable; a shallow checkout keeps every target demanded.
1570
1530
  */
1571
- declare const factoryProductionImpactWorkflow: (options: FactoryProductionImpactWorkflowOptions) => FactoryProductionImpactWorkflow;
1572
- //#endregion
1573
- //#region src/push-identity-workflow.d.ts
1574
- 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;
1575
1533
  /** Versioned document uploaded by a push-triggered verification run. */
1576
1534
  interface FactoryPushIdentityEnvelope {
1577
1535
  readonly after: string;
@@ -1600,7 +1558,7 @@ interface FactoryPushIdentityProducer {
1600
1558
  * Record and upload the exact push-event identity without changing the Verify
1601
1559
  * result when transport is unavailable. Place these steps after verification.
1602
1560
  */
1603
- declare const factoryPushIdentityProducer: (options: FactoryPushIdentityProducerOptions) => FactoryPushIdentityProducer;
1561
+ export declare const factoryPushIdentityProducer: (options: FactoryPushIdentityProducerOptions) => FactoryPushIdentityProducer;
1604
1562
  interface FactoryPushIdentityConsumer {
1605
1563
  /** Job outputs suitable for a caller-owned decision job and telemetry. */
1606
1564
  readonly outputs: Readonly<Record<"after" | "before" | "disposition" | "provenance" | "reason", string>>;
@@ -1623,13 +1581,11 @@ interface FactoryPushIdentityConsumerOptions {
1623
1581
  * the current repository. Every failure becomes a typed refusal; consumers
1624
1582
  * retain deploy policy, credentials, commands, topology, and convergence.
1625
1583
  */
1626
- declare const factoryPushIdentityConsumer: (options: FactoryPushIdentityConsumerOptions) => FactoryPushIdentityConsumer;
1627
- //#endregion
1628
- //#region src/vitest-profile.d.ts
1584
+ export declare const factoryPushIdentityConsumer: (options: FactoryPushIdentityConsumerOptions) => FactoryPushIdentityConsumer;
1629
1585
  /** Schema version of the emitted profile document. */
1630
- declare const VITEST_PROFILE_SCHEMA_VERSION = 1;
1586
+ export declare const VITEST_PROFILE_SCHEMA_VERSION = 1;
1631
1587
  /** `tool` discriminator every emitted profile carries. */
1632
- declare const VITEST_PROFILE_TOOL = "factory-ci-vitest-profile";
1588
+ export declare const VITEST_PROFILE_TOOL = "factory-ci-vitest-profile";
1633
1589
  /** Per-assertion status as Vitest's JSON reporter spells it. */
1634
1590
  type VitestTestStatus = "disabled" | "failed" | "passed" | "pending" | "skipped" | "todo";
1635
1591
  /** The subset of Vitest's `--reporter=json` document this module reads. */
@@ -1793,7 +1749,7 @@ interface VitestProfileDependencies {
1793
1749
  * A sample failed. The partial profile is already on disk; `exitCode` is the
1794
1750
  * status a caller should exit with.
1795
1751
  */
1796
- declare class VitestProfileError extends Error {
1752
+ export declare class VitestProfileError extends Error {
1797
1753
  readonly exitCode: number;
1798
1754
  constructor(message: string, exitCode: number);
1799
1755
  }
@@ -1803,7 +1759,7 @@ declare class VitestProfileError extends Error {
1803
1759
  * timeout, unwritable output) yields a sample with `reportAvailable: false`
1804
1760
  * rather than nothing at all.
1805
1761
  */
1806
- declare const normalizeVitestProfileSample: (report: VitestJsonReport | null, input: {
1762
+ export declare const normalizeVitestProfileSample: (report: VitestJsonReport | null, input: {
1807
1763
  cwd: string;
1808
1764
  durationMs: number;
1809
1765
  endedAt: Date;
@@ -1818,7 +1774,7 @@ declare const normalizeVitestProfileSample: (report: VitestJsonReport | null, in
1818
1774
  * Git failures degrade to `null` — an artifact from a tarball checkout is still
1819
1775
  * a usable measurement.
1820
1776
  */
1821
- declare const captureVitestProfileEnvironment: (options: {
1777
+ export declare const captureVitestProfileEnvironment: (options: {
1822
1778
  cwd: string;
1823
1779
  gitDirectory?: string;
1824
1780
  }) => Promise<VitestProfileEnvironment>;
@@ -1826,16 +1782,14 @@ declare const captureVitestProfileEnvironment: (options: {
1826
1782
  * Write a profile document atomically: a partial file must never be readable
1827
1783
  * as a complete measurement, and the profile is rewritten after every sample.
1828
1784
  */
1829
- declare const writeVitestProfile: (outputPath: string, profile: VitestProfile) => Promise<void>;
1785
+ export declare const writeVitestProfile: (outputPath: string, profile: VitestProfile) => Promise<void>;
1830
1786
  /**
1831
1787
  * Take `samples` serial Vitest runs at one worker count and persist the profile
1832
1788
  * after each one. Samples never overlap: concurrent runs would measure CPU and
1833
1789
  * I/O contention instead of the worker count under test. A failing sample
1834
1790
  * throws `VitestProfileError` with the partial profile already written.
1835
1791
  */
1836
- declare const runVitestProfile: (options: VitestProfileOptions, dependencies?: VitestProfileDependencies) => Promise<VitestProfile>;
1837
- //#endregion
1838
- //#region src/vitest-profile-reader.d.ts
1792
+ export declare const runVitestProfile: (options: VitestProfileOptions, dependencies?: VitestProfileDependencies) => Promise<VitestProfile>;
1839
1793
  /**
1840
1794
  * Outcome of reading one candidate document. `unrecognized` carries the first
1841
1795
  * reason the document failed — an analyzer reports it verbatim rather than
@@ -1853,9 +1807,7 @@ type VitestProfileReadResult = {
1853
1807
  * emits. Returns the typed profile on success and the first mismatch reason
1854
1808
  * otherwise — never a partially-usable value.
1855
1809
  */
1856
- declare const readVitestProfileDocument: (value: unknown) => VitestProfileReadResult;
1857
- //#endregion
1858
- //#region src/verify-runner-policy.d.ts
1810
+ export declare const readVitestProfileDocument: (value: unknown) => VitestProfileReadResult;
1859
1811
  declare const DEPOT_LABEL = "depot-ubuntu-24.04";
1860
1812
  declare const HOSTED_LABEL = "ubuntu-latest";
1861
1813
  /**
@@ -1898,11 +1850,9 @@ interface FactoryVerifyRunnerPolicyReport {
1898
1850
  readonly mismatches: readonly FactoryVerifyRunnerMismatch[];
1899
1851
  readonly forbiddenKinds: readonly string[];
1900
1852
  }
1901
- declare const factoryVerifyRunner: (decision: FactoryRunnerDecision) => FactoryVerifyRunner;
1902
- declare const verifyRunnerPolicy: (yaml: string, input: FactoryVerifyRunnerPolicyInput) => FactoryVerifyRunnerPolicyReport;
1903
- declare const assertVerifyRunnerPolicy: (yaml: string, input: FactoryVerifyRunnerPolicyInput) => FactoryVerifyRunnerPolicyReport;
1904
- //#endregion
1905
- //#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;
1906
1856
  /**
1907
1857
  * Parse-check the shell embedded in generated workflow YAML (#376).
1908
1858
  *
@@ -1941,16 +1891,15 @@ interface RunBlock {
1941
1891
  * generator's output, not arbitrary YAML. It reads both block scalars
1942
1892
  * (`run: |-`) and inline scripts.
1943
1893
  */
1944
- declare const workflowRunBlocks: (yaml: string) => RunBlock[];
1894
+ export declare const workflowRunBlocks: (yaml: string) => RunBlock[];
1945
1895
  /** Every `run:` block its interpreter refuses to parse. Empty means sound. */
1946
- declare const workflowShellParseFailures: (yaml: string) => WorkflowShellParseFailure[];
1896
+ export declare const workflowShellParseFailures: (yaml: string) => WorkflowShellParseFailure[];
1947
1897
  /**
1948
1898
  * Fail the generated-workflow lint when any embedded `run:` block is not
1949
1899
  * parseable bash. Call it on the YAML a generator is about to write, so the
1950
1900
  * defect is caught at generation rather than by the runner.
1951
1901
  */
1952
- declare const assertWorkflowShellParses: (yaml: string, options: {
1902
+ export declare const assertWorkflowShellParses: (yaml: string, options: {
1953
1903
  readonly source: string;
1954
1904
  }) => void;
1955
- //#endregion
1956
- 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 };