@patronage/factory-ci 1.0.0-alpha.42 → 1.0.0-alpha.43

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 CHANGED
@@ -752,7 +752,7 @@ const graph = await evaluateStack({
752
752
 
753
753
  `evaluateStack` runs a stack program at one stage and returns the graph Alchemy would plan, with no state store and no network. It wraps Alchemy's `Plan.make`: the program registers its resources under a `Stack` service, then the plan builds under `inMemoryState()` at the requested `Stage`. Every provider answers its `read` and `list` probes with "absent", so the cold-adoption probe `Plan.make` makes for a resource with resolved props and no prior state never leaves the process. A stage the program returns from early (paitronage's `placeholder` stage) evaluates to an empty graph.
754
754
 
755
- `program` is the effect the consumer hands `Alchemy.Stack`, not the `Alchemy.Stack(...)` value. The value captures the consumer's real `providers` and `state` layers, and at Alchemy 2.0.0-beta.81 building `Cloudflare.providers()` is not inert (`ProfileStoreLive` inside `CloudflareApiLive` writes `~/.alchemy/profiles/default`, and the layer needs the `AuthProviders` service), so evaluating the value cannot stay free of side effects. Export the program next to the stack:
755
+ `program` is the effect the consumer hands `Alchemy.Stack`, not the `Alchemy.Stack(...)` value. The value captures the consumer's real `providers` and `state` layers, and at Alchemy 2.0.0-beta.83 building `Cloudflare.providers()` is not inert (`ProfileStoreLive` inside `CloudflareApiLive` writes `~/.alchemy/profiles/default`, and the layer needs the `AuthProviders` service), so evaluating the value cannot stay free of side effects. Export the program next to the stack:
756
756
 
757
757
  ```ts
758
758
  export const program = Effect.gen(function* () {
@@ -763,7 +763,7 @@ export default Alchemy.Stack("hq", { providers, state }, program);
763
763
 
764
764
  Pass `providers` when the program depends on hand-written provider layers. Every provider that layer registers keeps its identity (`stables`, `aliases`, `diff`) and loses its probes; an unregistered resource type still evaluates. Each graph resource carries the `LogicalId`, `Type`, and raw `Props` of its plan node, so a prop may hold an unresolved Alchemy output. `upstreamByProp` names, per top-level prop, the logical ids that prop's value references, which is the only way to read a cross-resource reference out of raw props: an output is a function, so the prop that holds it says nothing on its own. A prop that references nothing carries no key. The references are kept per prop and never pooled into one list, so a caller asking which resources one prop names is never answered with an id a different prop mentioned. Each binding row comes from Alchemy's Worker binding channel: `worker` is the host's logical id, `name` and `type` are the strings Alchemy emits (`d1`, `kv_namespace`, `secrets_store_secret`, and so on), and `target` is the logical id of the resource the row references, when it references one.
765
765
 
766
- The caller's `providers` layer is **built** before its probes are stubbed: `evaluateStack` wraps that layer, and Alchemy's own lookup resolves each provider out of it before `read` and `list` are replaced. So any side effect a layer performs at construction — a credential read, a network call, a file write — is the caller's, and happens. This is why `Cloudflare.providers()` must not be passed: at beta.81 its `CloudflareApiLive` still creates `~/.alchemy/profiles/default` and requires `AuthProviders` when it builds, before there is anything to stub. Beta.77 also resolved credentials there (`Credentials.fromAuthProvider`); beta.81 defers that to first use. The no-network guarantee covers evaluation, not layer construction: pass only layers whose construction is inert.
766
+ The caller's `providers` layer is **built** before its probes are stubbed: `evaluateStack` wraps that layer, and Alchemy's own lookup resolves each provider out of it before `read` and `list` are replaced. So any side effect a layer performs at construction — a credential read, a network call, a file write — is the caller's, and happens. This is why `Cloudflare.providers()` must not be passed: at beta.83 its `CloudflareApiLive` still creates `~/.alchemy/profiles/default` and requires `AuthProviders` when it builds, before there is anything to stub. Beta.77 also resolved credentials there (`Credentials.fromAuthProvider`); beta.81 deferred that to first use and beta.83 still does. The no-network guarantee covers evaluation, not layer construction: pass only layers whose construction is inert.
767
767
 
768
768
  The helper decides nothing about the graph. Invariants over it are separate exports; `assertUrlImpliesAuth` below is the first.
769
769
 
@@ -799,7 +799,7 @@ The factory's own security review prompt carries the same rule in prose, so a re
799
799
  import { ALCHEMY_BASELINE, assertAlchemyBaseline } from "@patronage/factory-ci";
800
800
  ```
801
801
 
802
- `ALCHEMY_BASELINE` is the exact `alchemy` and `effect` pair the fleet moves together on: `{ alchemy: "2.0.0-beta.81", effect: "4.0.1" }`. It is a plain constant on the root entry — it imports neither package — so any consumer can read it without installing the `./alchemy` subpath's peers.
802
+ `ALCHEMY_BASELINE` is the exact `alchemy` and `effect` pair the fleet moves together on: `{ alchemy: "2.0.0-beta.83", effect: "4.0.1" }`. It is a plain constant on the root entry — it imports neither package — so any consumer can read it without installing the `./alchemy` subpath's peers.
803
803
 
804
804
  `assertAlchemyBaseline({ packageJson })` is a consumer contract helper: it fails when the consumer's own `dependencies` or `devDependencies` pin `alchemy` or `effect` to anything other than the baseline, and it fails when only one of the pair is present. Alchemy peers on Effect, so an unpinned auto-installed Effect can drift outside the baseline while a lone `alchemy` pin would otherwise pass. Both packages remaining absent is not drift — they are optional peers of the subpath, so a consumer that never imports it, such as this package's own CLI, carries neither and passes. The pin is exact, not a range: the fleet is pre-1.0 and moves together, so a range would let one project drift silently ahead of or behind the rest. `assertAlchemyBaseline` reads only the object it is handed; it never walks the filesystem or reads a lockfile. Call it from a consumer's own contract test, passing that consumer's parsed `package.json`.
805
805
 
@@ -1,3 +1,3 @@
1
1
  {
2
- "fingerprint": "5fb898a6c12742fa0bce46740c73196710cd687d4cc29e4874f91067083ef1e3"
2
+ "fingerprint": "db0b0ab439b903ddf7d9e80fd834ea7f491074af67af4bd09781786001e898bd"
3
3
  }
@@ -744,7 +744,7 @@ declare const isAlchemyLifecycleError: (error: unknown) => error is AlchemyLifec
744
744
  * The renderer logs every line through Effect's pretty console logger, so a
745
745
  * line arrives as `[HH:MM:SS.mmm] INFO (#1): <line>`, and coloured when the
746
746
  * child inherits `FORCE_COLOR`. Both wrappers are stripped before a line is
747
- * read. The captured output under `tests/fixtures/plan-output/beta-81/` is
747
+ * read. The captured output under `tests/fixtures/plan-output/beta-83/` is
748
748
  * the evidence for every shape this file reads.
749
749
  *
750
750
  * The adapter fails on anything it does not recognise: no summary, two
@@ -1,4 +1,4 @@
1
- import { i as isLocalPreviewStage, n as executeAlchemyEntry, r as resolveAlchemyChildCwd, s as ALCHEMY_BASELINE } from "../execute-alchemy-entry-B0lBN-YZ.js";
1
+ import { i as isLocalPreviewStage, n as executeAlchemyEntry, r as resolveAlchemyChildCwd, s as ALCHEMY_BASELINE } from "../execute-alchemy-entry-C2ZhsNTN.js";
2
2
  import { createRequire } from "node:module";
3
3
  import path from "node:path";
4
4
  import { createHash } from "node:crypto";
@@ -585,7 +585,7 @@ const assertDestroyLeftNothing = async ({ stack, stage, stateReader }) => {
585
585
  * The renderer logs every line through Effect's pretty console logger, so a
586
586
  * line arrives as `[HH:MM:SS.mmm] INFO (#1): <line>`, and coloured when the
587
587
  * child inherits `FORCE_COLOR`. Both wrappers are stripped before a line is
588
- * read. The captured output under `tests/fixtures/plan-output/beta-81/` is
588
+ * read. The captured output under `tests/fixtures/plan-output/beta-83/` is
589
589
  * the evidence for every shape this file reads.
590
590
  *
591
591
  * The adapter fails on anything it does not recognise: no summary, two
@@ -12,7 +12,7 @@ import { spawnSync } from "node:child_process";
12
12
  * `effect`, so it ships from the root entry, not the `./alchemy` subpath.
13
13
  */
14
14
  const ALCHEMY_BASELINE = {
15
- alchemy: "2.0.0-beta.81",
15
+ alchemy: "2.0.0-beta.83",
16
16
  effect: "4.0.1"
17
17
  };
18
18
  const BASELINE_PACKAGE_NAMES = Object.keys(ALCHEMY_BASELINE);
package/dist/index.d.ts CHANGED
@@ -12,7 +12,7 @@ import { StdioOptions } from "node:child_process";
12
12
  * `effect`, so it ships from the root entry, not the `./alchemy` subpath.
13
13
  */
14
14
  declare const ALCHEMY_BASELINE: {
15
- readonly alchemy: "2.0.0-beta.81";
15
+ readonly alchemy: "2.0.0-beta.83";
16
16
  readonly effect: "4.0.1";
17
17
  };
18
18
  /**
package/dist/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { t as bundleAlchemyEntry } from "./bundle-alchemy-entry-CT5hCphA.js";
2
- import { a as localPreviewStage, c as assertAlchemyBaseline, i as isLocalPreviewStage, n as executeAlchemyEntry, o as parseLocalPreviewStage, s as ALCHEMY_BASELINE, t as EXECUTE_ALCHEMY_ENTRY_MAX_BUFFER } from "./execute-alchemy-entry-B0lBN-YZ.js";
2
+ import { a as localPreviewStage, c as assertAlchemyBaseline, i as isLocalPreviewStage, n as executeAlchemyEntry, o as parseLocalPreviewStage, s as ALCHEMY_BASELINE, t as EXECUTE_ALCHEMY_ENTRY_MAX_BUFFER } from "./execute-alchemy-entry-C2ZhsNTN.js";
3
3
  import { createRequire } from "node:module";
4
4
  import { mkdir, readFile, rename, writeFile } from "node:fs/promises";
5
5
  import path from "node:path";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@patronage/factory-ci",
3
- "version": "1.0.0-alpha.42",
3
+ "version": "1.0.0-alpha.43",
4
4
  "description": "Deep CI and deploy building blocks for Patronage factory projects: workflow source artifacts, hosted diff classification, Alchemy entry execution, and disposable-stage semantics",
5
5
  "keywords": [
6
6
  "alchemy",
@@ -40,7 +40,7 @@
40
40
  "devDependencies": {
41
41
  "@types/node": "24.13.3",
42
42
  "@vitest/coverage-v8": "4.1.10",
43
- "alchemy": "2.0.0-beta.81",
43
+ "alchemy": "2.0.0-beta.83",
44
44
  "effect": "4.0.1",
45
45
  "knip": "6.27.0",
46
46
  "oxfmt": "0.59.0",
@@ -15,7 +15,7 @@
15
15
  * The renderer logs every line through Effect's pretty console logger, so a
16
16
  * line arrives as `[HH:MM:SS.mmm] INFO (#1): <line>`, and coloured when the
17
17
  * child inherits `FORCE_COLOR`. Both wrappers are stripped before a line is
18
- * read. The captured output under `tests/fixtures/plan-output/beta-81/` is
18
+ * read. The captured output under `tests/fixtures/plan-output/beta-83/` is
19
19
  * the evidence for every shape this file reads.
20
20
  *
21
21
  * The adapter fails on anything it does not recognise: no summary, two
@@ -8,7 +8,7 @@
8
8
  * `effect`, so it ships from the root entry, not the `./alchemy` subpath.
9
9
  */
10
10
  export const ALCHEMY_BASELINE = {
11
- alchemy: "2.0.0-beta.81",
11
+ alchemy: "2.0.0-beta.83",
12
12
  effect: "4.0.1",
13
13
  } as const;
14
14