@homeflare/alchemy 0.10.0 → 0.11.0
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/caddy/index.js.map +2 -2
- package/dist/launchd/index.js.map +2 -2
- package/dist/openbao/index.js +10 -8
- package/dist/openbao/index.js.map +4 -4
- package/dist/ownership/adopting.d.ts +34 -0
- package/dist/ownership/adopting.d.ts.map +1 -0
- package/dist/ownership/probe.d.ts +15 -5
- package/dist/ownership/probe.d.ts.map +1 -1
- package/dist/ownership/rows.d.ts +12 -0
- package/dist/ownership/rows.d.ts.map +1 -1
- package/dist/ownership/store-fixture.d.ts +10 -0
- package/dist/ownership/store-fixture.d.ts.map +1 -0
- package/dist/proxmox/fake-pve-lxc.d.ts +8 -0
- package/dist/proxmox/fake-pve-lxc.d.ts.map +1 -1
- package/dist/proxmox/index.js +147 -113
- package/dist/proxmox/index.js.map +8 -6
- package/dist/proxmox/lxc-adoption.d.ts +32 -0
- package/dist/proxmox/lxc-adoption.d.ts.map +1 -0
- package/dist/proxmox/lxc-harness.d.ts +12 -0
- package/dist/proxmox/lxc-harness.d.ts.map +1 -1
- package/dist/proxmox/lxc.d.ts +5 -5
- package/dist/proxmox/lxc.d.ts.map +1 -1
- package/dist/verify/cli.js +79 -29
- package/dist/verify/cli.js.map +8 -6
- package/dist/verify/fake-engine.d.ts +9 -1
- package/dist/verify/fake-engine.d.ts.map +1 -1
- package/dist/verify/index.d.ts +1 -1
- package/dist/verify/index.d.ts.map +1 -1
- package/dist/verify/index.js +67 -17
- package/dist/verify/index.js.map +8 -6
- package/dist/verify/plan-scope.d.ts +14 -0
- package/dist/verify/plan-scope.d.ts.map +1 -0
- package/dist/verify/recheck.d.ts +42 -0
- package/dist/verify/recheck.d.ts.map +1 -0
- package/dist/verify/rows.d.ts +13 -3
- package/dist/verify/rows.d.ts.map +1 -1
- package/dist/verify/spy.d.ts +12 -0
- package/dist/verify/spy.d.ts.map +1 -1
- package/dist/verify/verify.d.ts.map +1 -1
- package/docs/adopt-verify.md +13 -2
- package/docs/adopted-deploys.md +4 -2
- package/docs/ownership.md +1 -1
- package/docs/proxmox-lxc-adopt.md +83 -0
- package/docs/proxmox-lxc.md +7 -45
- package/docs/proxmox.md +2 -0
- package/package.json +1 -1
- package/src/ownership/adopting.test.ts +63 -0
- package/src/ownership/adopting.ts +46 -0
- package/src/ownership/ownership.test.ts +1 -34
- package/src/ownership/probe.ts +27 -14
- package/src/ownership/rows.ts +8 -2
- package/src/ownership/store-fixture.ts +50 -0
- package/src/proxmox/ceph-pool-adopt.test.ts +32 -0
- package/src/proxmox/fake-pve-lxc.ts +13 -1
- package/src/proxmox/lxc-adopt.test.ts +13 -20
- package/src/proxmox/lxc-adoption.ts +50 -0
- package/src/proxmox/lxc-guards.test.ts +6 -13
- package/src/proxmox/lxc-harness.ts +25 -2
- package/src/proxmox/lxc-ownership.test.ts +19 -14
- package/src/proxmox/lxc-strict-adopt.test.ts +104 -0
- package/src/proxmox/lxc.ts +16 -12
- package/src/verify/fake-engine.ts +24 -0
- package/src/verify/index.ts +1 -0
- package/src/verify/plan-scope.ts +34 -0
- package/src/verify/recheck.test.ts +56 -0
- package/src/verify/recheck.ts +71 -0
- package/src/verify/rows.ts +46 -5
- package/src/verify/spy.ts +14 -3
- package/src/verify/verify.test.ts +22 -0
- package/src/verify/verify.ts +38 -25
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The strict adoption gate for `Proxmox.Lxc`: AN ADOPTION NEVER CHANGES A GUEST (decided
|
|
3
|
+
* 2026-09-21). A guest this stack adopts — no recorded instance, or one the plan only kept because
|
|
4
|
+
* `--adopt` said so (ownership/adopting.ts) — is taken over exactly as it runs, or not at all.
|
|
5
|
+
*
|
|
6
|
+
* ⛔ ANY DIFFERENCE FAILS, AT PLAN AND AGAIN AT APPLY. Before this, a cold adoption planned `adopted`
|
|
7
|
+
* whatever it would write (alchemy beta.79 prints no property diff for it) and only LOGGED the
|
|
8
|
+
* keys; `deploy --adopt --yes` then wrote them. A `net0` pasted without the live `tag=` moved the
|
|
9
|
+
* guest off its VLAN on the deploy that was meant to change nothing. Now the plan fails naming
|
|
10
|
+
* the keys, and reconcile re-asks against a fresh read, so a hand edit between plan and deploy
|
|
11
|
+
* is refused too rather than written back.
|
|
12
|
+
* ⛔ KEYS ONLY, NEVER VALUES. The refusal names what differs and nothing it differs by: a live
|
|
13
|
+
* config can carry anything (`description` is where people paste credentials), and plan output
|
|
14
|
+
* lands in CI logs.
|
|
15
|
+
* ★ ASKED BEFORE `judge`'s OWN REFUSALS. Those name a declared value (the `pct set` to run), and
|
|
16
|
+
* for an adoption the fix is the other direction: declare what is live.
|
|
17
|
+
* ★ THE STORE IS READ ONLY WHEN SOMETHING DIFFERS. A clean adoption — the only kind that proceeds
|
|
18
|
+
* — costs nothing here.
|
|
19
|
+
*/
|
|
20
|
+
import * as Effect from 'effect/Effect';
|
|
21
|
+
import type { Owner } from '../ownership/adopt.ts';
|
|
22
|
+
import { type LxcChange } from './lxc-judge.ts';
|
|
23
|
+
import { LxcRefusedError } from './lxc-lifecycle.ts';
|
|
24
|
+
import type { LxcProps } from './lxc-props.ts';
|
|
25
|
+
/** The refusal: keys, where, and what to do — never a value. */
|
|
26
|
+
export declare const adoptionRefusal: (props: LxcProps, drift: readonly string[]) => string;
|
|
27
|
+
/**
|
|
28
|
+
* Fails with `adoptionRefusal` when `change` would write to a guest `owner`'s call adopts.
|
|
29
|
+
* `settled` for a recovered create is the same judge, of the recording row's props against `live`.
|
|
30
|
+
*/
|
|
31
|
+
export declare const refuseAdoptedDrift: (owner: Owner, props: LxcProps, live: Record<string, unknown>, change: LxcChange) => Effect.Effect<void, LxcRefusedError>;
|
|
32
|
+
//# sourceMappingURL=lxc-adoption.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"lxc-adoption.d.ts","sourceRoot":"","sources":["../../src/proxmox/lxc-adoption.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;GAkBG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AACxC,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAEnD,OAAO,EAAE,KAAK,SAAS,EAAS,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAE,eAAe,EAAE,MAAM,oBAAoB,CAAC;AACrD,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE/C,gEAAgE;AAChE,eAAO,MAAM,eAAe,UAAW,QAAQ,SAAS,SAAS,MAAM,EAAE,KAAG,MAIjE,CAAC;AAEZ;;;GAGG;AACH,eAAO,MAAM,kBAAkB,UACtB,KAAK,SACL,QAAQ,QACT,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,UACrB,SAAS,KAChB,MAAM,CAAC,MAAM,CAAC,IAAI,EAAE,eAAe,CAOlC,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as Effect from 'effect/Effect';
|
|
2
2
|
import type { PveTarget } from './credentials.ts';
|
|
3
3
|
import { type FakePve } from './fake-pve-lxc.ts';
|
|
4
|
+
import type { LxcProps } from './lxc-props.ts';
|
|
4
5
|
export declare const TARGET: PveTarget;
|
|
5
6
|
/**
|
|
6
7
|
* A PRODUCTION-SHAPED config — the same keys and the same spellings pvesh printed, PVE's defaults
|
|
@@ -10,6 +11,12 @@ export declare const TARGET: PveTarget;
|
|
|
10
11
|
* the estate's real topology — sizes, VLANs and bridges included, not only addresses.
|
|
11
12
|
*/
|
|
12
13
|
export declare const LIVE: Readonly<Record<string, unknown>>;
|
|
14
|
+
/** Where `seed` puts the production-shaped guest by default, and its `node/vmid` key. */
|
|
15
|
+
export declare const NODE = "pve1";
|
|
16
|
+
export declare const VMID = 100;
|
|
17
|
+
export declare const KEY: string;
|
|
18
|
+
/** The live config as a declaration: every key, minus what pvesh adds that is not a prop. */
|
|
19
|
+
export declare const pasted: (over?: Partial<LxcProps>) => LxcProps;
|
|
13
20
|
/** Put `config` live on the fake as `node/vmid`, with a digest as PVE would add. */
|
|
14
21
|
export declare const seed: (fake: FakePve, node: string, vmid: number, config?: Readonly<Record<string, unknown>>) => void;
|
|
15
22
|
/** What the CLI would set for one run: `adopt` is `--adopt`. */
|
|
@@ -31,4 +38,9 @@ export declare const lxcEngine: (fake: FakePve) => {
|
|
|
31
38
|
/** The stored row's status, or undefined when there is none. */
|
|
32
39
|
status: (fqn: string) => "created" | "creating" | "deleting" | "replaced" | "replacing" | "updated" | "updating" | undefined;
|
|
33
40
|
};
|
|
41
|
+
/**
|
|
42
|
+
* The engine, with the guest `seed` put at NODE/VMID adopted exactly as it runs — the only adoption
|
|
43
|
+
* that proceeds (lxc-adoption.ts) — so a test can go on to change it, as an ordinary update.
|
|
44
|
+
*/
|
|
45
|
+
export declare const adoptedAsIs: (pve: FakePve) => Promise<ReturnType<typeof lxcEngine>>;
|
|
34
46
|
//# sourceMappingURL=lxc-harness.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lxc-harness.d.ts","sourceRoot":"","sources":["../../src/proxmox/lxc-harness.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAyB,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"lxc-harness.d.ts","sourceRoot":"","sources":["../../src/proxmox/lxc-harness.ts"],"names":[],"mappings":"AAuBA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAC;AAKxC,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,kBAAkB,CAAC;AAElD,OAAO,EAAyB,KAAK,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACxE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAG/C,eAAO,MAAM,MAAM,EAA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xmox/lxc.d.ts
CHANGED
|
@@ -17,11 +17,11 @@
|
|
|
17
17
|
* ⛔ AND NOTHING HERE WRITES A VOLUME IT DID NOT ALLOCATE. A create takes `storage:GiB` only
|
|
18
18
|
* (lxc-create-form.ts), and a deploy that planned a create never writes onto a guest it finds.
|
|
19
19
|
*
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* and
|
|
23
|
-
*
|
|
24
|
-
*
|
|
20
|
+
* ⛔ AND AN ADOPTION NEVER CHANGES A GUEST (lxc-adoption.ts). A guest this stack adopts is taken
|
|
21
|
+
* over exactly as it runs: any key the declaration says otherwise FAILS the plan, by name (never
|
|
22
|
+
* by value), and reconcile asks again before it would write. Only an exact match adopts.
|
|
23
|
+
* ⚠️ AN UPDATE STILL PLANS `update` WITHOUT A PROPERTY DIFF, so `diff` LOGS the keys a deploy would
|
|
24
|
+
* write, by name, as a warning — the only place a plan says what the deploy will change.
|
|
25
25
|
*
|
|
26
26
|
* ⚠️ POWER STATE IS NOT DECLARED. `onboot` is config; start and stop are an operator's act, as for
|
|
27
27
|
* `Proxmox.Vm`. `start: 1` starts a guest once, after the create that built it, and never again.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lxc.d.ts","sourceRoot":"","sources":["../../src/proxmox/lxc.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGnC,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"lxc.d.ts","sourceRoot":"","sources":["../../src/proxmox/lxc.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAGnC,OAAO,KAAK,QAAQ,MAAM,kBAAkB,CAAC;AAkB7C,OAAO,KAAK,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAC9D,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,eAAe,CAAC;AAGrD,YAAY,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE9D,MAAM,WAAW,UAAW,SAAQ,QAAQ,CAC1C,aAAa,EACb,QAAQ,EACR,aAAa,EACb,KAAK,EACL,eAAe,CAChB;CAAG;AAEJ,8FAA8F;AAC9F,eAAO,MAAM,UAAU,6CAA0E,CAAC;AA+KlG,eAAO,MAAM,kBAAkB,gIAI5B,CAAC"}
|
package/dist/verify/cli.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
import { runMain } from "alchemy/Util/PlatformServices";
|
|
5
5
|
import * as Cause from "effect/Cause";
|
|
6
6
|
import * as Console from "effect/Console";
|
|
7
|
-
import * as
|
|
7
|
+
import * as Effect5 from "effect/Effect";
|
|
8
8
|
|
|
9
9
|
// src/verify/args.ts
|
|
10
10
|
import { parseArgs } from "node:util";
|
|
@@ -98,6 +98,11 @@ nothing to verify — every declared row already has state. --all checks those t
|
|
|
98
98
|
|
|
99
99
|
// src/verify/verify.ts
|
|
100
100
|
import * as Alchemist from "alchemy/Alchemist";
|
|
101
|
+
import * as Plan from "alchemy/Plan";
|
|
102
|
+
import { State, isActionState } from "alchemy/State";
|
|
103
|
+
import * as Effect4 from "effect/Effect";
|
|
104
|
+
|
|
105
|
+
// src/verify/plan-scope.ts
|
|
101
106
|
import {
|
|
102
107
|
ArtifactStore,
|
|
103
108
|
Artifacts,
|
|
@@ -105,10 +110,15 @@ import {
|
|
|
105
110
|
makeScopedArtifacts
|
|
106
111
|
} from "alchemy/Artifacts";
|
|
107
112
|
import { InstanceId } from "alchemy/InstanceId";
|
|
108
|
-
import * as
|
|
109
|
-
import { State, isActionState } from "alchemy/State";
|
|
110
|
-
import * as Effect2 from "effect/Effect";
|
|
113
|
+
import * as Effect from "effect/Effect";
|
|
111
114
|
import * as Option from "effect/Option";
|
|
115
|
+
var inPlanScope = (fqn, instanceId) => (effect) => Effect.gen(function* () {
|
|
116
|
+
const store = Option.getOrElse(yield* Effect.serviceOption(ArtifactStore), createArtifactStore);
|
|
117
|
+
return yield* effect.pipe(Effect.provideService(Artifacts, makeScopedArtifacts(store, fqn)), Effect.provideService(InstanceId, instanceId));
|
|
118
|
+
});
|
|
119
|
+
|
|
120
|
+
// src/verify/recheck.ts
|
|
121
|
+
import * as Effect3 from "effect/Effect";
|
|
112
122
|
|
|
113
123
|
// src/verify/rows.ts
|
|
114
124
|
import { deepEqual, isResolved } from "alchemy/Diff";
|
|
@@ -122,10 +132,22 @@ var changedFields = (declared, live) => {
|
|
|
122
132
|
};
|
|
123
133
|
var STILL_LIVE = new Set(["adopted", "noop"]);
|
|
124
134
|
var isNoop = (planned, diff, stateRow) => STILL_LIVE.has(planned) && (diff === "noop" || diff === "none" && stateRow && planned === "noop");
|
|
135
|
+
var proven = (recheck) => recheck === undefined || recheck === "noop";
|
|
136
|
+
var notes = (row) => [
|
|
137
|
+
row.read === "unowned" ? "unowned: the deploy needs --adopt or adopt(true)" : "",
|
|
138
|
+
row.recheck === "noop" ? `${row.changed.join(", ")} differ, but the diff says noop even given the live values: ` + "the family does not manage them, and the deploy leaves them alone" : ""
|
|
139
|
+
].filter((note) => note !== "").join("; ");
|
|
125
140
|
var reason = (row, ok) => {
|
|
126
141
|
if (ok)
|
|
127
|
-
return row
|
|
142
|
+
return notes(row);
|
|
128
143
|
if (isNoop(row.planned, row.diff, row.stateRow)) {
|
|
144
|
+
const live = `the live ${row.changed.join(", ")}`;
|
|
145
|
+
if (row.recheck === "failed") {
|
|
146
|
+
return `asked again with ${live} as recorded props, the provider's diff failed: not proven`;
|
|
147
|
+
}
|
|
148
|
+
if (!proven(row.recheck)) {
|
|
149
|
+
return `the provider's diff compares recorded props, not the live object: given ${live} it ` + `says ${String(row.recheck)}, and the deploy's forced reconcile writes`;
|
|
150
|
+
}
|
|
129
151
|
return `${String(row.bindings)} binding(s) change: the deploy reconciles them though the diff is noop`;
|
|
130
152
|
}
|
|
131
153
|
if (row.planned === "delete")
|
|
@@ -150,6 +172,7 @@ var reason = (row, ok) => {
|
|
|
150
172
|
};
|
|
151
173
|
var rowFor = (fqn, node, stateRow, seen) => {
|
|
152
174
|
const observed = seen.get(fqn);
|
|
175
|
+
const recheck = observed?.recheck;
|
|
153
176
|
const base = {
|
|
154
177
|
bindings: (node.bindings ?? []).filter((binding) => binding.action !== "noop").length,
|
|
155
178
|
changed: changedFields(observed?.diff?.news, observed?.read?.attributes),
|
|
@@ -157,10 +180,11 @@ var rowFor = (fqn, node, stateRow, seen) => {
|
|
|
157
180
|
fqn,
|
|
158
181
|
planned: node.action,
|
|
159
182
|
read: observed?.read?.answer ?? "not-read",
|
|
183
|
+
...recheck === undefined ? {} : { recheck },
|
|
160
184
|
stateRow,
|
|
161
185
|
type: node.resource.Type
|
|
162
186
|
};
|
|
163
|
-
const ok = isNoop(base.planned, base.diff, stateRow) && base.bindings === 0;
|
|
187
|
+
const ok = isNoop(base.planned, base.diff, stateRow) && proven(recheck) && base.bindings === 0;
|
|
164
188
|
return { ...base, ok, why: reason(base, ok) };
|
|
165
189
|
};
|
|
166
190
|
var taskRow = (fqn, task) => ({
|
|
@@ -189,7 +213,7 @@ import {
|
|
|
189
213
|
isProviderService
|
|
190
214
|
} from "alchemy/Provider";
|
|
191
215
|
import * as Context from "effect/Context";
|
|
192
|
-
import * as
|
|
216
|
+
import * as Effect2 from "effect/Effect";
|
|
193
217
|
var seenFor = (seen, fqn) => {
|
|
194
218
|
const existing = seen.get(fqn);
|
|
195
219
|
if (existing !== undefined)
|
|
@@ -199,7 +223,7 @@ var seenFor = (seen, fqn) => {
|
|
|
199
223
|
return fresh;
|
|
200
224
|
};
|
|
201
225
|
var WRITE_REFUSED = "hf-adopt-verify never writes";
|
|
202
|
-
var refuse = (type, operation) => () =>
|
|
226
|
+
var refuse = (type, operation) => () => Effect2.die(new Error(`${WRITE_REFUSED}: ${type}.${operation} was called during a verification. Alchemy's planner ` + "does not call it, so something other than Plan.make is driving these providers."));
|
|
203
227
|
var readAnswer = (attributes) => attributes === undefined ? "absent" : Unowned.is(attributes) ? "unowned" : "found";
|
|
204
228
|
var diffAnswer = (diff) => {
|
|
205
229
|
const action = diff?.action;
|
|
@@ -211,14 +235,14 @@ var spyService = (type, service, seen) => {
|
|
|
211
235
|
const modes = service.modes;
|
|
212
236
|
const watched = {
|
|
213
237
|
...service,
|
|
214
|
-
diff: (input) => (diff === undefined ?
|
|
215
|
-
seenFor(seen, input.fqn).diff = { answer: diffAnswer(answer), news: input.news };
|
|
238
|
+
diff: (input) => (diff === undefined ? Effect2.succeed(undefined) : diff(input)).pipe(Effect2.tap((answer) => Effect2.sync(() => {
|
|
239
|
+
seenFor(seen, input.fqn).diff = { answer: diffAnswer(answer), input, news: input.news };
|
|
216
240
|
}))),
|
|
217
241
|
reconcile: refuse(type, "reconcile"),
|
|
218
242
|
delete: refuse(type, "delete")
|
|
219
243
|
};
|
|
220
244
|
if (read !== undefined) {
|
|
221
|
-
watched.read = (input) => read(input).pipe(
|
|
245
|
+
watched.read = (input) => read(input).pipe(Effect2.tap((answer) => Effect2.sync(() => {
|
|
222
246
|
const attributes = answer === undefined ? undefined : stripUnowned(answer);
|
|
223
247
|
seenFor(seen, input.fqn).read = { answer: readAnswer(answer), attributes };
|
|
224
248
|
})));
|
|
@@ -227,8 +251,8 @@ var spyService = (type, service, seen) => {
|
|
|
227
251
|
watched.precreate = refuse(type, "precreate");
|
|
228
252
|
if (modes !== undefined) {
|
|
229
253
|
watched.modes = {
|
|
230
|
-
live:
|
|
231
|
-
local:
|
|
254
|
+
live: Effect2.map(modes.live, (variant) => spyService(type, variant, seen)),
|
|
255
|
+
local: Effect2.map(modes.local, (variant) => spyService(type, variant, seen))
|
|
232
256
|
};
|
|
233
257
|
}
|
|
234
258
|
return watched;
|
|
@@ -248,35 +272,61 @@ var spyContext = (context, seen) => {
|
|
|
248
272
|
return Context.makeUnsafe(services);
|
|
249
273
|
};
|
|
250
274
|
|
|
275
|
+
// src/verify/recheck.ts
|
|
276
|
+
var recheck = (fqn, node, seen) => Effect3.gen(function* () {
|
|
277
|
+
const observed = seen.get(fqn);
|
|
278
|
+
const first = observed?.diff;
|
|
279
|
+
const input = first?.input;
|
|
280
|
+
const diff = node.provider?.diff;
|
|
281
|
+
if (node.action !== "adopted" || first?.answer !== "noop" || input === undefined)
|
|
282
|
+
return;
|
|
283
|
+
const live = observed?.read?.attributes;
|
|
284
|
+
const changed = changedFields(input.news, live);
|
|
285
|
+
if (live === undefined || changed.length === 0)
|
|
286
|
+
return;
|
|
287
|
+
if (diff === undefined || node.state === undefined)
|
|
288
|
+
return;
|
|
289
|
+
const olds = {
|
|
290
|
+
...input.olds,
|
|
291
|
+
...Object.fromEntries(changed.map((key) => [key, live[key]]))
|
|
292
|
+
};
|
|
293
|
+
const asked = diff({ ...input, olds });
|
|
294
|
+
const answer = yield* asked.pipe(inPlanScope(fqn, node.state.instanceId), Effect3.map(diffAnswer), Effect3.catchCause(() => Effect3.succeed("failed")));
|
|
295
|
+
if (observed !== undefined) {
|
|
296
|
+
observed.diff = first;
|
|
297
|
+
observed.recheck = answer;
|
|
298
|
+
}
|
|
299
|
+
});
|
|
300
|
+
|
|
251
301
|
// src/verify/verify.ts
|
|
252
|
-
var readWithState = (fqn, node) =>
|
|
302
|
+
var readWithState = (fqn, node) => Effect4.gen(function* () {
|
|
253
303
|
const read = node.provider?.read;
|
|
254
304
|
if (read === undefined || node.state === undefined)
|
|
255
305
|
return;
|
|
256
|
-
const store = Option.getOrElse(yield* Effect2.serviceOption(ArtifactStore), createArtifactStore);
|
|
257
306
|
yield* read({
|
|
258
307
|
fqn,
|
|
259
308
|
id: node.resource.LogicalId,
|
|
260
309
|
instanceId: node.state.instanceId,
|
|
261
310
|
olds: node.state.props,
|
|
262
311
|
output: node.state.attr
|
|
263
|
-
}).pipe(
|
|
312
|
+
}).pipe(inPlanScope(fqn, node.state.instanceId));
|
|
264
313
|
});
|
|
265
|
-
var withState = (stack,
|
|
314
|
+
var withState = (stack, nodes) => Effect4.gen(function* () {
|
|
266
315
|
const store = yield* yield* State;
|
|
267
|
-
const found = yield*
|
|
316
|
+
const found = yield* Effect4.all(Object.entries(nodes).map(([fqn, node]) => store.get({ fqn, stack: stack.name, stage: stack.stage }).pipe(Effect4.map((row) => row === undefined || isActionState(row) || row.instanceId !== node.state?.instanceId ? [] : [fqn]))), { concurrency: 8 });
|
|
268
317
|
return new Set(found.flat());
|
|
269
318
|
});
|
|
270
319
|
var verifySession = (session, options = {}) => {
|
|
271
320
|
const seen = new Map;
|
|
272
321
|
const all2 = options.all === true;
|
|
273
322
|
const plan = Plan.make(session.stack);
|
|
274
|
-
return
|
|
323
|
+
return Effect4.gen(function* () {
|
|
275
324
|
const planned = yield* plan;
|
|
276
|
-
const stateRows = yield* withState(session.stack,
|
|
325
|
+
const stateRows = yield* withState(session.stack, planned.resources);
|
|
326
|
+
yield* Effect4.all(Object.entries(planned.resources).map(([fqn, node]) => recheck(fqn, node, seen)), { concurrency: 8 });
|
|
277
327
|
if (all2) {
|
|
278
328
|
const stateful = Object.entries(planned.resources).filter(([fqn]) => stateRows.has(fqn));
|
|
279
|
-
yield*
|
|
329
|
+
yield* Effect4.all(stateful.map(([fqn, node]) => readWithState(fqn, node).pipe(Effect4.catchCause(() => Effect4.sync(() => {
|
|
280
330
|
const entry = seen.get(fqn) ?? {};
|
|
281
331
|
entry.read = { answer: "failed", attributes: undefined };
|
|
282
332
|
seen.set(fqn, entry);
|
|
@@ -288,18 +338,18 @@ var verifySession = (session, options = {}) => {
|
|
|
288
338
|
stack: session.stack.name,
|
|
289
339
|
stage: session.stack.stage
|
|
290
340
|
};
|
|
291
|
-
}).pipe(
|
|
341
|
+
}).pipe(Effect4.provide(spyContext(session.context, seen)), Effect4.scoped);
|
|
292
342
|
};
|
|
293
|
-
var verifyStack = (target, options = {}) =>
|
|
343
|
+
var verifyStack = (target, options = {}) => Effect4.gen(function* () {
|
|
294
344
|
const session = yield* Alchemist.open(target, { adopt: true });
|
|
295
345
|
return yield* verifySession(session, options);
|
|
296
|
-
}).pipe(
|
|
346
|
+
}).pipe(Effect4.scoped, Effect4.provide(Alchemist.layer()));
|
|
297
347
|
|
|
298
348
|
// src/verify/cli.ts
|
|
299
|
-
var setExit = (code) =>
|
|
349
|
+
var setExit = (code) => Effect5.sync(() => {
|
|
300
350
|
process.exitCode = code;
|
|
301
351
|
});
|
|
302
|
-
var program =
|
|
352
|
+
var program = Effect5.gen(function* () {
|
|
303
353
|
const parsed = parseVerifyArgs(process.argv.slice(2), process.env);
|
|
304
354
|
if (parsed.kind === "help")
|
|
305
355
|
return yield* Console.log(USAGE);
|
|
@@ -312,9 +362,9 @@ ${USAGE}`);
|
|
|
312
362
|
const report = yield* verifyStack(parsed.target, parsed.options);
|
|
313
363
|
yield* Console.log(parsed.json ? JSON.stringify(report, null, 2) : formatReport(report, parsed.options.all === true));
|
|
314
364
|
yield* setExit(exitCodeOf(report));
|
|
315
|
-
}).pipe(
|
|
316
|
-
${Cause.pretty(cause)}`).pipe(
|
|
365
|
+
}).pipe(Effect5.catchCause((cause) => Console.error(`hf-adopt-verify: the plan could not be verified
|
|
366
|
+
${Cause.pretty(cause)}`).pipe(Effect5.andThen(setExit(2)))));
|
|
317
367
|
runMain(program);
|
|
318
368
|
|
|
319
|
-
//# debugId=
|
|
369
|
+
//# debugId=66D8EFB2DE677D6964756E2164756E21
|
|
320
370
|
//# sourceMappingURL=cli.js.map
|
package/dist/verify/cli.js.map
CHANGED
|
@@ -1,15 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": 3,
|
|
3
|
-
"sources": ["../src/verify/cli.ts", "../src/verify/args.ts", "../src/verify/report.ts", "../src/verify/verify.ts", "../src/verify/rows.ts", "../src/verify/spy.ts"],
|
|
3
|
+
"sources": ["../src/verify/cli.ts", "../src/verify/args.ts", "../src/verify/report.ts", "../src/verify/verify.ts", "../src/verify/plan-scope.ts", "../src/verify/recheck.ts", "../src/verify/rows.ts", "../src/verify/spy.ts"],
|
|
4
4
|
"sourcesContent": [
|
|
5
5
|
"#!/usr/bin/env node\n/**\n * `hf-adopt-verify` — the bin. Parse, verify, print, exit 0 / 1 / 2.\n *\n * ★ `runMain` IS ALCHEMY'S (alchemy/Util/PlatformServices), so this runs under bun or node the way\n * `alchemy` itself does, and exits once the report is out rather than lingering on keep-alive\n * sockets. Run it where the stack's `alchemy` runs: `bunx --bun hf-adopt-verify …` next to\n * `bun ./node_modules/alchemy/bin/cli.js plan …`, because the entrypoint it imports is\n * TypeScript.\n * ⛔ EXIT 2 IS \"COULD NOT TELL\", NEVER A PASS. A plan that fails — a provider that dies, an\n * `adopt(false)` row that is not ours, a state store it cannot read — prints the cause and exits\n * 2, so a gate reading `!= 0` stops either way.\n */\nimport { runMain } from 'alchemy/Util/PlatformServices';\nimport * as Cause from 'effect/Cause';\nimport * as Console from 'effect/Console';\nimport * as Effect from 'effect/Effect';\nimport { USAGE, parseVerifyArgs } from './args.ts';\nimport { exitCodeOf, formatReport } from './report.ts';\nimport { verifyStack } from './verify.ts';\n\nconst setExit = (code: number) =>\n Effect.sync(() => {\n process.exitCode = code;\n });\n\nconst program = Effect.gen(function* () {\n const parsed = parseVerifyArgs(process.argv.slice(2), process.env);\n if (parsed.kind === 'help') return yield* Console.log(USAGE);\n if (parsed.kind === 'error') {\n yield* Console.error(`hf-adopt-verify: ${parsed.message}\\n\\n${USAGE}`);\n return yield* setExit(2);\n }\n const report = yield* verifyStack(parsed.target, parsed.options);\n yield* Console.log(\n parsed.json\n ? JSON.stringify(report, null, 2)\n : formatReport(report, parsed.options.all === true),\n );\n yield* setExit(exitCodeOf(report));\n}).pipe(\n Effect.catchCause((cause) =>\n Console.error(`hf-adopt-verify: the plan could not be verified\\n${Cause.pretty(cause)}`).pipe(\n Effect.andThen(setExit(2)),\n ),\n ),\n);\n\nrunMain(program);\n",
|
|
6
6
|
"/**\n * `hf-adopt-verify`'s flags — the ones `alchemy plan` takes, so a stack script can swap one\n * command for the other.\n *\n * ★ `node:util` parseArgs, NOT effect's CLI module. Alchemy builds its CLI on\n * `effect/unstable/cli`, but that needs a CliConfig and a Terminal layer to parse six flags; the\n * standard library parses them with no service at all, which keeps this pure and testable.\n * ⛔ `--stage` HAS NO GUESSED DEFAULT. Alchemy falls back to `live_$USER`; a gate that silently\n * verified the wrong stage would pass for the wrong reason. It comes from the flag or from\n * `$ALCHEMY_STAGE`, or the run stops.\n */\nimport { parseArgs } from 'node:util';\nimport type { VerifyOptions, VerifyTarget } from './verify.ts';\n\nexport const USAGE = `Usage: hf-adopt-verify --stage <stage> [--config alchemy.run.ts] [options]\n\nPlans the stack with Alchemy's own planner, never writes, and reports each row\nwithout a state row: what the engine planned, the provider's read and its own\ndiff (before Alchemy forces adopted rows to update), and the declared fields\nthat differ from the live object. Exits 0 when every row is a no-op, 1 when\nany is not, 2 when it could not tell.\n\n -c, --config <file> stack entrypoint (default alchemy.run.ts)\n --stage <stage> stage to verify (default $ALCHEMY_STAGE; required)\n --profile <name> Alchemy auth profile\n --env-file <file> .env file layered under the environment\n --all report every declared row and pending deletion\n --json print the report as JSON\n -h, --help this text\n`;\n\nexport type Parsed =\n | { readonly kind: 'help' }\n | { readonly kind: 'error'; readonly message: string }\n | {\n readonly kind: 'run';\n readonly target: VerifyTarget;\n readonly options: VerifyOptions;\n readonly json: boolean;\n };\n\nconst parse = (argv: readonly string[]) =>\n parseArgs({\n args: [...argv],\n allowPositionals: false,\n options: {\n all: { type: 'boolean', default: false },\n config: { type: 'string', short: 'c', default: 'alchemy.run.ts' },\n 'env-file': { type: 'string' },\n help: { type: 'boolean', short: 'h', default: false },\n json: { type: 'boolean', default: false },\n profile: { type: 'string' },\n stage: { type: 'string' },\n },\n strict: true,\n });\n\n/** Parse argv (without the runtime and script) against the environment. Never throws. */\nexport const parseVerifyArgs = (\n argv: readonly string[],\n env: Readonly<Record<string, string | undefined>>,\n): Parsed => {\n let parsed: ReturnType<typeof parse>;\n try {\n parsed = parse(argv);\n } catch (error) {\n return { kind: 'error', message: error instanceof Error ? error.message : String(error) };\n }\n const { values } = parsed;\n if (values.help) return { kind: 'help' };\n const stage = values.stage ?? env['ALCHEMY_STAGE'];\n if (stage === undefined || stage === '') {\n return { kind: 'error', message: 'pass --stage (or set ALCHEMY_STAGE): no stage is guessed' };\n }\n const target: VerifyTarget = {\n entrypoint: values.config,\n stage,\n ...(values.profile === undefined ? {} : { profile: values.profile }),\n ...(values['env-file'] === undefined ? {} : { envFile: values['env-file'] }),\n };\n return { json: values.json, kind: 'run', options: { all: values.all }, target };\n};\n",
|
|
7
7
|
"/**\n * The verifier's answer, for a terminal and for a gate.\n *\n * ⛔ NAMES, NEVER VALUES. A row lists which declared fields differ from the live object, not what\n * either side holds: the tool runs over any stack, and a prop or an attribute can be a secret.\n * `alchemy plan --detailed` shows declared values; the family's own read shows live ones.\n */\nimport type { AdoptRow } from './rows.ts';\nimport type { AdoptReport } from './verify.ts';\n\n/** 0 when every reported row is a no-op, 1 when any is not. (2 is the CLI's: it could not tell.) */\nexport const exitCodeOf = (report: AdoptReport): 0 | 1 =>\n report.rows.every((row) => row.ok) ? 0 : 1;\n\nconst pad = (text: string, width: number) => text.padEnd(width);\n\nconst line = (row: AdoptRow, widths: { planned: number; type: number }) => {\n const head = [\n row.ok ? 'ok ' : 'FAIL',\n pad(row.planned, widths.planned),\n pad(row.diff, 8),\n pad(row.read, 9),\n pad(row.type, widths.type),\n row.fqn,\n ].join(' ');\n const changed = row.changed.length > 0 ? ` changed: ${row.changed.join(', ')}` : '';\n return row.why === '' ? `${head}${changed}` : `${head}${changed}\\n ${row.why}`;\n};\n\n/** Plain text, one row per line, with the reason under any row that is not a no-op. */\nexport const formatReport = (report: AdoptReport, all: boolean): string => {\n const scope = all ? 'every row' : 'rows without state';\n const title = `hf-adopt-verify ${report.stack}/${report.stage}: ${String(report.rows.length)} ${scope} (of ${String(report.declared)} declared)`;\n if (report.rows.length === 0) {\n return `${title}\\nnothing to verify — every declared row already has state. --all checks those too.\\n`;\n }\n const widths = {\n planned: Math.max(7, ...report.rows.map((row) => row.planned.length)),\n type: Math.max(4, ...report.rows.map((row) => row.type.length)),\n };\n const header = [' ', pad('planned', widths.planned), pad('diff', 8), pad('read', 9)]\n .concat([pad('type', widths.type), 'fqn'])\n .join(' ');\n const failed = report.rows.filter((row) => !row.ok).length;\n const verdict =\n failed === 0\n ? 'every row is a no-op: the deploy writes nothing to them'\n : `${String(failed)} row(s) are NOT a no-op: the deploy would write, create or delete`;\n return [title, '', header, ...report.rows.map((row) => line(row, widths)), '', verdict, ''].join(\n '\\n',\n );\n};\n",
|
|
8
|
-
"/**\n * Prove a deploy's adoptions are no-ops — with Alchemy's own planner, before anything is written.\n *\n * ★ THE ENGINE PLANS, THIS ONLY WATCHES. `verifySession` runs `Plan.make` — the same call\n * `alchemy plan` makes (Alchemist routes/stack.ts) — over the session's context with every\n * provider swapped for a watched copy (spy.ts). Output resolution, the state lookup, rename\n * migrations, the adoption probe and `adopt(…)` all stay the engine's; nothing here re-derives\n * them. What it adds is the provider's own `diff` answer, which Plan.ts overwrites for every\n * adopted row (`forceUpdateAfterAdoption`), and the state-row check that says which rows ARE\n * adoptions.\n *\n * ⛔ READ-ONLY BY CONSTRUCTION. The planner calls `read` and `diff`; spy.ts replaces `reconcile`,\n * `delete` and `precreate` with refusals; nothing here calls `apply`. `--all` adds one `read` per\n * row with state — still
|
|
9
|
-
"/**\n *
|
|
10
|
-
"/**\n *
|
|
8
|
+
"/**\n * Prove a deploy's adoptions are no-ops — with Alchemy's own planner, before anything is written.\n *\n * ★ THE ENGINE PLANS, THIS ONLY WATCHES. `verifySession` runs `Plan.make` — the same call\n * `alchemy plan` makes (Alchemist routes/stack.ts) — over the session's context with every\n * provider swapped for a watched copy (spy.ts). Output resolution, the state lookup, rename\n * migrations, the adoption probe and `adopt(…)` all stay the engine's; nothing here re-derives\n * them. What it adds is the provider's own `diff` answer, which Plan.ts overwrites for every\n * adopted row (`forceUpdateAfterAdoption`), and the state-row check that says which rows ARE\n * adoptions.\n *\n * ⛔ READ-ONLY BY CONSTRUCTION. The planner calls `read` and `diff`; spy.ts replaces `reconcile`,\n * `delete` and `precreate` with refusals; nothing here calls `apply`. `--all` adds one `read` per\n * row with state, and recheck.ts one more `diff` for an adopted `noop` whose read differs from\n * the declaration — both still reads by Alchemy's provider contract.\n * ⚠️ READS ARE NOT FREE FOR EVERY FAMILY. A kit PVE/PBS read mints a lease through OpenBao, which\n * creates a short-lived API token on the cluster, exactly as `alchemy plan` does.\n */\nimport * as Alchemist from 'alchemy/Alchemist';\nimport * as Plan from 'alchemy/Plan';\nimport type { ProviderService } from 'alchemy/Provider';\nimport type { CompiledStack } from 'alchemy/Stack';\nimport { State, isActionState } from 'alchemy/State';\nimport type * as Context from 'effect/Context';\nimport * as Effect from 'effect/Effect';\nimport { inPlanScope } from './plan-scope.ts';\nimport { recheck } from './recheck.ts';\nimport { type AdoptRow, type PlanView, rowsOf } from './rows.ts';\nimport { type Observations, spyContext } from './spy.ts';\n\nexport interface VerifyOptions {\n /** Report every declared row and every pending deletion, not only rows without state. */\n readonly all?: boolean;\n}\n\nexport interface AdoptReport {\n readonly stack: string;\n readonly stage: string;\n /** Resources the stack declares. */\n readonly declared: number;\n readonly rows: readonly AdoptRow[];\n}\n\n/** An imported stack and the context it plans under — what `Alchemist.open` returns. */\nexport interface VerifySession {\n readonly stack: CompiledStack<unknown, unknown>;\n readonly context: Context.Context<unknown>;\n}\n\n/** The plan-node fields `--all` needs to read a row that has state, and the recheck to replay a diff. */\ntype StatefulNode = {\n readonly action: string;\n readonly provider?: ProviderService;\n readonly resource: { readonly LogicalId: string };\n readonly state?: {\n readonly instanceId: string;\n readonly props: object;\n readonly attr: object | undefined;\n };\n};\n\n/** ⚠️ In the scope Plan.ts gives its own reads (plan-scope.ts). */\nconst readWithState = (fqn: string, node: StatefulNode) =>\n Effect.gen(function* () {\n const read = node.provider?.read;\n if (read === undefined || node.state === undefined) return;\n yield* read({\n fqn,\n id: node.resource.LogicalId,\n instanceId: node.state.instanceId,\n olds: node.state.props,\n output: node.state.attr,\n }).pipe(inPlanScope(fqn, node.state.instanceId));\n });\n\n/**\n * Which planned rows plan FROM a resource row the stage's state store holds for them.\n *\n * ⚠️ THE ROW MUST BE THE ONE THE NODE PLANS FROM, NOT MERELY A ROW AT THE SAME FQN. Alchemy lets a\n * rename hand its old id to a new resource in the same deploy (Rename.ts: `Bucket(\"Assets\")\n * .pipe(renamedFrom(\"Bucket\"))` beside a fresh `Bucket(\"Bucket\")`). The store still holds the\n * renamer's row at `Bucket`, so a check by FQN alone called the reuser stateful and the default\n * report hid its `create`. Matching the node's `state.instanceId` also sees the renamer, whose\n * row still sits at its FORMER FQN, as a row without state.\n */\nconst withState = (\n stack: CompiledStack<unknown, unknown>,\n nodes: Readonly<Record<string, StatefulNode>>,\n) =>\n Effect.gen(function* () {\n const store = yield* yield* State;\n const found = yield* Effect.all(\n Object.entries(nodes).map(([fqn, node]) =>\n store\n .get({ fqn, stack: stack.name, stage: stack.stage })\n .pipe(\n Effect.map((row) =>\n row === undefined ||\n isActionState(row) ||\n (row as { readonly instanceId?: unknown }).instanceId !== node.state?.instanceId\n ? []\n : [fqn],\n ),\n ),\n ),\n { concurrency: 8 },\n );\n return new Set(found.flat());\n });\n\n/**\n * Plan `session.stack` with watched providers and report each row without state (or, with\n * `all`, every row). Never writes.\n */\nexport const verifySession = (\n session: VerifySession,\n options: VerifyOptions = {},\n): Effect.Effect<AdoptReport, unknown> => {\n const seen: Observations = new Map();\n const all = options.all === true;\n // ⚠️ THE CAST IS AT THE ENGINE'S TYPED BOUNDARY. `Plan.make` declares only `State` and hides the\n // rest behind a ts-expect-error; the session context carries all of it, as in routes/stack.ts.\n const plan = Plan.make(session.stack) as unknown as Effect.Effect<\n PlanView & { readonly resources: Readonly<Record<string, StatefulNode>> },\n unknown\n >;\n return Effect.gen(function* () {\n const planned = yield* plan;\n const stateRows = yield* withState(session.stack, planned.resources);\n // ★ Before the rows are judged: an adopted `noop` beside a differing read is asked again.\n yield* Effect.all(\n Object.entries(planned.resources).map(([fqn, node]) => recheck(fqn, node, seen)),\n { concurrency: 8 },\n );\n if (all) {\n const stateful = Object.entries(planned.resources).filter(([fqn]) => stateRows.has(fqn));\n yield* Effect.all(\n stateful.map(([fqn, node]) =>\n readWithState(fqn, node).pipe(\n Effect.catchCause(() =>\n Effect.sync(() => {\n const entry = seen.get(fqn) ?? {};\n entry.read = { answer: 'failed', attributes: undefined };\n seen.set(fqn, entry);\n }),\n ),\n ),\n ),\n { concurrency: 8 },\n );\n }\n return {\n declared: Object.keys(planned.resources).length,\n rows: rowsOf(planned, stateRows, seen, all),\n stack: session.stack.name,\n stage: session.stack.stage,\n } satisfies AdoptReport;\n }).pipe(Effect.provide(spyContext(session.context, seen)), Effect.scoped);\n};\n\n/** Where the stack lives — the fields `alchemy plan` takes as flags. */\nexport interface VerifyTarget {\n /** The stack entrypoint, e.g. `alchemy.run.ts`. */\n readonly entrypoint: string;\n readonly stage: string;\n readonly profile?: string;\n readonly envFile?: string;\n}\n\n/**\n * Import the stack the way the Alchemy CLI does and verify it.\n *\n * ★ `adopt: true`, ALWAYS, AND IT CANNOT WRITE. Planning is side-effect free (Plan.ts keeps the\n * adopted state in memory, alchemy#793), so the flag only lets an `Unowned` row reach its\n * `diff` instead of failing the plan — the report marks it, because the real deploy then needs\n * `--adopt`. A resource declared `.pipe(adopt(false))` still fails the plan, as it would deploy.\n */\nexport const verifyStack = (\n target: VerifyTarget,\n options: VerifyOptions = {},\n): Effect.Effect<AdoptReport, unknown> =>\n Effect.gen(function* () {\n const session = yield* Alchemist.open(target, { adopt: true });\n return yield* verifySession(session, options);\n }).pipe(Effect.scoped, Effect.provide(Alchemist.layer()));\n",
|
|
9
|
+
"/**\n * The scope Plan.ts gives every provider call it makes, for the calls the verifier makes itself\n * after the plan: `--all`'s reads (verify.ts) and the recheck's diffs (recheck.ts).\n *\n * ⚠️ RE-CREATED, BECAUSE Plan.ts DOES NOT EXPORT IT (`providePlanScope`, alchemy beta.79): a scoped\n * `Artifacts` bag over the run's `ArtifactStore` (a fresh one when none is provided) and the row's\n * `InstanceId`. A kit family that consults either — the ownership helpers do — sees what it\n * would see under `alchemy plan`. Moved here from verify.ts once a second caller needed it.\n */\nimport {\n ArtifactStore,\n Artifacts,\n createArtifactStore,\n makeScopedArtifacts,\n} from 'alchemy/Artifacts';\nimport { InstanceId } from 'alchemy/InstanceId';\nimport * as Effect from 'effect/Effect';\nimport * as Option from 'effect/Option';\n\nexport const inPlanScope =\n (fqn: string, instanceId: string) =>\n <A, E, R>(\n effect: Effect.Effect<A, E, R>,\n ): Effect.Effect<A, E, Exclude<R, Artifacts | InstanceId>> =>\n Effect.gen(function* () {\n const store = Option.getOrElse(\n yield* Effect.serviceOption(ArtifactStore),\n createArtifactStore,\n );\n return yield* effect.pipe(\n Effect.provideService(Artifacts, makeScopedArtifacts(store, fqn)),\n Effect.provideService(InstanceId, instanceId),\n );\n }) as Effect.Effect<A, E, Exclude<R, Artifacts | InstanceId>>;\n",
|
|
10
|
+
"/**\n * Ask an adopted row's `diff` a second time, with the live values as its recorded props, when its\n * first `noop` sits beside a read that differs from the declaration.\n *\n * 🔴 WHY (red-teamed 2026-09-21). Plan.ts hands an adopted row's diff `olds: news`, because the\n * adopted state carries `props: news`. A diff that compares the RECORDED props with the\n * declaration therefore answers `noop` whatever the cloud holds, and the forced reconcile then\n * writes. Alchemy's own `Cloudflare.R2Bucket` diff is that shape (beta.79\n * Cloudflare/R2/Bucket.ts, `olds.domains` against `news.domains`). The verifier said `ok`,\n * exited 0, and listed the drift under `changed` on the same line. rows.ts already refused to\n * trust a MISSING diff for this reason; a diff that never looks at the live object is the same\n * blind spot one level down.\n *\n * ★ THE QUESTION IS \"WOULD YOU STILL SAY noop IF STATE HAD RECORDED WHAT THE READ FOUND?\" It is the\n * planner's own input, replayed with one change: `olds` carries the read's value for each field\n * in `changed`. A diff that reads the live object ignores `olds` and answers as before. Every kit\n * PVE/PBS family re-reads (`pveOperations.diff`), so a field its `matches` leaves out, such as\n * CephPool's autoscaled `pg_num`, still passes. A diff that compares `olds` now sees the drift.\n *\n * ⛔ ONLY `diff`, a read by Alchemy's contract, and through the WATCHED provider, so every write\n * path still answers with spy.ts's refusal. The first answer is put back afterwards: the report's\n * `diff` column stays what the planner heard.\n * ⚠️ IT CAN ONLY TURN A PASS INTO A FAIL. It runs on a row that would otherwise pass (adopted,\n * `noop`, something in `changed`), and anything but a second `noop`, a failure included, fails it.\n * ⚠️ SAME-NAMED FIELDS ONLY, like `changed`: a drift in a field whose attribute has another name is\n * invisible to both. Whether a `reconcile` PUTs identical values anyway is still up to the\n * provider (docs/adopt-verify.md, Limits).\n */\nimport type { ProviderService } from 'alchemy/Provider';\nimport * as Effect from 'effect/Effect';\nimport { inPlanScope } from './plan-scope.ts';\nimport { changedFields } from './rows.ts';\nimport { type Observations, type RecheckAnswer, diffAnswer } from './spy.ts';\n\n/** The plan-node fields a recheck needs. */\nexport interface RecheckNode {\n readonly action: string;\n readonly provider?: ProviderService;\n readonly state?: { readonly instanceId: string };\n}\n\n/** Recheck one planned row if it needs it; the answer lands in `seen` as `recheck`. */\nexport const recheck = (fqn: string, node: RecheckNode, seen: Observations): Effect.Effect<void> =>\n Effect.gen(function* () {\n const observed = seen.get(fqn);\n const first = observed?.diff;\n const input = first?.input;\n const diff = node.provider?.diff;\n if (node.action !== 'adopted' || first?.answer !== 'noop' || input === undefined) return;\n const live = observed?.read?.attributes as Record<string, unknown> | undefined;\n const changed = changedFields(input.news, live);\n if (live === undefined || changed.length === 0) return;\n if (diff === undefined || node.state === undefined) return;\n const olds = {\n ...(input.olds as object),\n ...Object.fromEntries(changed.map((key) => [key, live[key]])),\n };\n // ⚠️ THE CAST IS THE ENGINE'S BOUNDARY, as in verify.ts: the diff's requirements are the\n // session's, which verifySession provides around this call.\n const asked = diff({ ...input, olds } as typeof input) as Effect.Effect<unknown>;\n const answer: RecheckAnswer = yield* asked.pipe(\n inPlanScope(fqn, node.state.instanceId),\n Effect.map(diffAnswer),\n Effect.catchCause(() => Effect.succeed('failed' as const)),\n );\n // The watched diff recorded the replay over the planner's answer; put the planner's back.\n if (observed !== undefined) {\n observed.diff = first;\n observed.recheck = answer;\n }\n });\n",
|
|
11
|
+
"/**\n * One report row per planned resource: what the engine planned, what the provider said, and\n * whether that adds up to \"this deploy leaves the object alone\".\n *\n * ★ PURE, SO THE VERDICT IS TESTABLE WITHOUT AN ENGINE. verify.ts gathers the three inputs — the\n * plan, which FQNs have a state row, and what the watched providers answered (spy.ts) — and\n * this file only decides.\n */\nimport { deepEqual, isResolved } from 'alchemy/Diff';\nimport type { DiffAnswer, Observations, ReadAnswer, RecheckAnswer } from './spy.ts';\n\nexport interface AdoptRow {\n readonly fqn: string;\n readonly type: string;\n /**\n * Whether the row plans from a row the state store holds for it (verify.ts `withState`). An\n * adoption is a row without one.\n */\n readonly stateRow: boolean;\n /** The engine's action — what `alchemy plan` prints (`adopted`, `create`, `noop`, …). */\n readonly planned: string;\n /** What the provider's `read` answered, or `not-read` when nothing asked it. */\n readonly read: ReadAnswer;\n /** What the provider's own `diff` answered BEFORE Plan.ts forced it (spy.ts). */\n readonly diff: DiffAnswer;\n /**\n * Declared fields whose live value differs, by NAME only — values can be secrets. Compared on\n * same-named keys of the declaration and the read's attributes, so a family whose attributes\n * rename a field cannot show it here. The diff answer is the verdict; a name here beside an\n * adopted `noop` only makes recheck.ts ask that diff again.\n */\n readonly changed: readonly string[];\n /**\n * What the provider's `diff` answered when asked again with the live values of `changed` as its\n * recorded props (recheck.ts). Absent when it was not asked: only an adopted `noop` with\n * something in `changed` is.\n */\n readonly recheck?: RecheckAnswer;\n /** Bindings the engine will create, update or delete — reconcile applies them even on `noop`. */\n readonly bindings: number;\n readonly ok: boolean;\n /** Why the row is not a no-op, or a note on one that is; empty when there is nothing to say. */\n readonly why: string;\n}\n\n/** The slice of an Alchemy plan node this file reads. */\nexport interface NodeView {\n readonly action: string;\n readonly resource: { readonly Type: string };\n readonly bindings?: readonly { readonly action: string }[];\n}\n\n/** A stack task (an Alchemy action): `run`, `noop` or `delete`. It has no provider to ask. */\nexport interface TaskView {\n readonly action: string;\n readonly def: { readonly Type: string };\n}\n\n/** The slice of an Alchemy `Plan` this file reads. */\nexport interface PlanView {\n readonly resources: Readonly<Record<string, NodeView>>;\n readonly deletions: Readonly<Record<string, NodeView | undefined>>;\n readonly actions?: Readonly<Record<string, TaskView | undefined>>;\n}\n\n/** Same-named, declared, resolved fields where the live value differs. */\nexport const changedFields = (declared: unknown, live: unknown): string[] => {\n if (typeof declared !== 'object' || declared === null) return [];\n if (typeof live !== 'object' || live === null) return [];\n const actual = live as Record<string, unknown>;\n return Object.entries(declared as Record<string, unknown>)\n .filter(([key, value]) => value !== undefined && key in actual && isResolved(value))\n .filter(([key, value]) => !deepEqual(value, actual[key]))\n .map(([key]) => key)\n .sort();\n};\n\nconst STILL_LIVE = new Set(['adopted', 'noop']);\n\n/**\n * ⛔ `adopted` NEEDS THE PROVIDER'S OWN `noop`. With no diff (`none`) the engine compared the\n * declaration with the declaration — an adopted row's state carries `props: news` (Plan.ts) — so\n * its noop proves nothing. A row with state is different: there the engine compared against the\n * props it last deployed, which is the same check `alchemy plan` makes.\n */\nconst isNoop = (planned: string, diff: DiffAnswer, stateRow: boolean) =>\n STILL_LIVE.has(planned) &&\n (diff === 'noop' || (diff === 'none' && stateRow && planned === 'noop'));\n\n/**\n * ⛔ AND A `noop` MUST SURVIVE BEING ASKED WITH THE LIVE VALUES. A diff that compares recorded props\n * answers an adopted row `noop` whatever the cloud holds; recheck.ts asks it again, and only a\n * second `noop` (or no need to ask) proves anything.\n */\nconst proven = (recheck: RecheckAnswer | undefined) => recheck === undefined || recheck === 'noop';\n\n/** Notes on a row that passes: nothing to say is the common case. */\nconst notes = (row: Omit<AdoptRow, 'ok' | 'why'>): string =>\n [\n row.read === 'unowned' ? 'unowned: the deploy needs --adopt or adopt(true)' : '',\n row.recheck === 'noop'\n ? `${row.changed.join(', ')} differ, but the diff says noop even given the live values: ` +\n 'the family does not manage them, and the deploy leaves them alone'\n : '',\n ]\n .filter((note) => note !== '')\n .join('; ');\n\nconst reason = (row: Omit<AdoptRow, 'ok' | 'why'>, ok: boolean): string => {\n if (ok) return notes(row);\n if (isNoop(row.planned, row.diff, row.stateRow)) {\n const live = `the live ${row.changed.join(', ')}`;\n if (row.recheck === 'failed') {\n return `asked again with ${live} as recorded props, the provider's diff failed: not proven`;\n }\n if (!proven(row.recheck)) {\n return (\n `the provider's diff compares recorded props, not the live object: given ${live} it ` +\n `says ${String(row.recheck)}, and the deploy's forced reconcile writes`\n );\n }\n return `${String(row.bindings)} binding(s) change: the deploy reconciles them though the diff is noop`;\n }\n if (row.planned === 'delete') return 'no longer declared: the deploy deletes it';\n if (row.planned === 'orphaned') return 'no longer declared: the deploy drops its state (retain)';\n if (row.read === 'failed') return \"the verifier's own read of it failed\";\n if (row.planned === 'create') {\n if (row.stateRow) return 'an interrupted create: the deploy finishes creating it';\n return row.read === 'absent'\n ? 'the read found nothing, so the deploy CREATES it (a lane that cannot see it reads the same)'\n : 'never probed (a prop is an Output of another resource, or the provider has no read): ' +\n 'the deploy CREATES it';\n }\n if (row.diff === 'update') return \"the provider's diff says update: the deploy writes\";\n if (row.diff === 'replace') return \"the provider's diff says replace: a new one, then a delete\";\n if (row.diff === 'none') {\n return 'the provider has no diff, so the engine compared the declaration with itself';\n }\n return `the engine plans ${row.planned} although the diff says ${row.diff} (a renamed row, changed bindings or --force)`;\n};\n\nexport const rowFor = (\n fqn: string,\n node: NodeView,\n stateRow: boolean,\n seen: Observations,\n): AdoptRow => {\n const observed = seen.get(fqn);\n const recheck = observed?.recheck;\n const base = {\n bindings: (node.bindings ?? []).filter((binding) => binding.action !== 'noop').length,\n changed: changedFields(observed?.diff?.news, observed?.read?.attributes),\n diff: observed?.diff?.answer ?? 'not-run',\n fqn,\n planned: node.action,\n read: observed?.read?.answer ?? 'not-read',\n ...(recheck === undefined ? {} : { recheck }),\n stateRow,\n type: node.resource.Type,\n } satisfies Omit<AdoptRow, 'ok' | 'why'>;\n /**\n * ⚠️ A NOOP DIFF DOES NOT COVER BINDINGS. Plan.ts diffs them separately and hands every\n * non-noop binding to `reconcile`, which an adopted row reaches anyway — a Worker adopted with\n * a new binding writes although its own diff said nothing changed.\n */\n const ok = isNoop(base.planned, base.diff, stateRow) && proven(recheck) && base.bindings === 0;\n return { ...base, ok, why: reason(base, ok) };\n};\n\n/**\n * ⚠️ A TASK THAT RUNS IS A WRITE THE PROVIDERS NEVER SEE, so it is reported in both modes; a task\n * that would not run appears only with `all`.\n */\nconst taskRow = (fqn: string, task: TaskView): AdoptRow => ({\n bindings: 0,\n changed: [],\n diff: 'not-run',\n fqn,\n ok: task.action === 'noop',\n planned: task.action,\n read: 'not-read',\n stateRow: task.action !== 'run',\n type: task.def.Type,\n why: task.action === 'noop' ? '' : `a stack task: the deploy will ${task.action} it`,\n});\n\n/**\n * The rows to report. Without `all`, only rows WITHOUT a state row — the adoptions and creates a\n * deploy would perform — which is the question this tool exists for, plus any task that runs. With\n * `all`, every declared row, every pending deletion and every task.\n */\nexport const rowsOf = (\n plan: PlanView,\n stateRows: ReadonlySet<string>,\n seen: Observations,\n all: boolean,\n): AdoptRow[] => {\n const declared = Object.entries(plan.resources)\n .filter(([fqn]) => all || !stateRows.has(fqn))\n .map(([fqn, node]) => rowFor(fqn, node, stateRows.has(fqn), seen));\n const removed = all\n ? Object.entries(plan.deletions).flatMap(([fqn, node]) =>\n node === undefined ? [] : [rowFor(fqn, node, true, seen)],\n )\n : [];\n const tasks = Object.entries(plan.actions ?? {}).flatMap(([fqn, task]) =>\n task === undefined || (!all && task.action === 'noop') ? [] : [taskRow(fqn, task)],\n );\n return [...declared, ...removed, ...tasks].sort((a, b) => a.fqn.localeCompare(b.fqn));\n};\n",
|
|
12
|
+
"/**\n * The providers a stack registered, wrapped so the plan can be watched and can never write.\n *\n * ★ WHY A WRAPPER AND NOT A LOG LINE. alchemy beta.79 Plan.ts loses the provider's answer on the one\n * path that matters: after the cold-start adoption probe it sets `forceUpdateAfterAdoption` and\n * maps a `noop` diff to `update`, and the node says `adopted` either way. Nothing is logged, and\n * `alchemy plan` has no JSON output — `describePlan` carries only the forced action. The engine\n * resolves every provider from the Effect context by resource type (Provider.ts\n * `tryFindProviderRegistrationByType`), so the one honest place to hear the raw answer is the\n * provider service itself. This hands Alchemy's own `Plan.make` a context whose providers record\n * what `read` and `diff` answered, per FQN, and otherwise behave exactly as registered.\n *\n * ⛔ EVERY WRITE PATH DIES. `reconcile`, `delete` and `precreate` are replaced, not wrapped: the\n * planner never calls them, and a verifier that could reach one by accident is worse than none.\n * `read`, `diff`, `list`, `tail` and `logs` pass through — each is a read by Alchemy's contract.\n *\n * ⚠️ A MISSING `diff` IS WRAPPED AS ONE ANSWERING `undefined`, which is exactly what the planner\n * does without one (`provider?.diff?.(…)` then its own props compare), so behaviour is unchanged\n * and the report can say `none` instead of guessing. A missing `read` stays missing: adding one\n * would make the planner probe where it otherwise would not.\n */\nimport { Unowned, stripUnowned } from 'alchemy/AdoptPolicy';\nimport {\n type ProviderCollectionService,\n type ProviderService,\n isProviderCollectionService,\n isProviderService,\n} from 'alchemy/Provider';\nimport * as Context from 'effect/Context';\nimport * as Effect from 'effect/Effect';\n\nexport type ReadAnswer = 'found' | 'unowned' | 'absent' | 'failed' | 'not-read';\nexport type DiffAnswer = 'noop' | 'update' | 'replace' | 'none' | 'not-run';\n/** What the diff answered when asked again with the live values as its recorded props (recheck.ts). */\nexport type RecheckAnswer = DiffAnswer | 'failed';\n\n/** Exactly what the planner handed a provider's `diff`. */\nexport type DiffInput = Parameters<NonNullable<ProviderService['diff']>>[0];\n\n/** What one FQN's provider answered during the plan — the LAST answer of each kind. */\nexport interface Seen {\n read?: { readonly answer: ReadAnswer; readonly attributes: unknown };\n /**\n * ★ `input` IS THE WHOLE CALL, NOT ONLY `news`, so recheck.ts can ask the same question again\n * with one field changed. In memory only; the report carries field names, never values. An\n * observation built by hand without it (rows.ts's tests) is simply never rechecked.\n */\n diff?: { readonly answer: DiffAnswer; readonly news: unknown; readonly input?: DiffInput };\n recheck?: RecheckAnswer;\n}\n\n/** Keyed by FQN. Filled while the plan runs; read once it is done. */\nexport type Observations = Map<string, Seen>;\n\nconst seenFor = (seen: Observations, fqn: string): Seen => {\n const existing = seen.get(fqn);\n if (existing !== undefined) return existing;\n const fresh: Seen = {};\n seen.set(fqn, fresh);\n return fresh;\n};\n\n/** The refusal every write path answers with. Exported so a test can match it. */\nexport const WRITE_REFUSED = 'hf-adopt-verify never writes';\n\nconst refuse = (type: string, operation: string) => () =>\n Effect.die(\n new Error(\n `${WRITE_REFUSED}: ${type}.${operation} was called during a verification. Alchemy's planner ` +\n 'does not call it, so something other than Plan.make is driving these providers.',\n ),\n );\n\nconst readAnswer = (attributes: unknown): ReadAnswer =>\n attributes === undefined ? 'absent' : Unowned.is(attributes) ? 'unowned' : 'found';\n\nexport const diffAnswer = (diff: unknown): DiffAnswer => {\n const action = (diff as { action?: unknown } | undefined)?.action;\n return action === 'noop' || action === 'update' || action === 'replace' ? action : 'none';\n};\n\n/**\n * One provider service, watched. ⚠️ The spread keeps `version`, `aliases`, `mode`, `stables`,\n * `list` and the rest exactly as registered — the planner reads several of them.\n */\nexport const spyService = (type: string, service: ProviderService, seen: Observations) => {\n const read = service.read;\n const diff = service.diff;\n const modes = service.modes;\n const watched: ProviderService = {\n ...service,\n diff: (input) =>\n (diff === undefined ? Effect.succeed(undefined) : diff(input)).pipe(\n Effect.tap((answer) =>\n Effect.sync(() => {\n seenFor(seen, input.fqn).diff = { answer: diffAnswer(answer), input, news: input.news };\n }),\n ),\n ),\n reconcile: refuse(type, 'reconcile'),\n delete: refuse(type, 'delete'),\n };\n if (read !== undefined) {\n watched.read = (input) =>\n read(input).pipe(\n Effect.tap((answer) =>\n Effect.sync(() => {\n const attributes = answer === undefined ? undefined : stripUnowned(answer);\n seenFor(seen, input.fqn).read = { answer: readAnswer(answer), attributes };\n }),\n ),\n );\n }\n if (service.precreate !== undefined) watched.precreate = refuse(type, 'precreate');\n // ⚠️ A `ProviderLayer.dual` registration resolves a per-mode variant at plan time\n // (Provider.ts `providerForMode`); wrapping only the registration would miss it.\n if (modes !== undefined) {\n watched.modes = {\n live: Effect.map(modes.live, (variant) => spyService(type, variant, seen)),\n local: Effect.map(modes.local, (variant) => spyService(type, variant, seen)),\n };\n }\n return watched;\n};\n\nconst spyCollection = (\n collection: ProviderCollectionService,\n seen: Observations,\n): ProviderCollectionService => {\n const providers = Object.fromEntries(\n Object.entries(collection.providers).map(([type, service]) => [\n type,\n spyService(type, service, seen),\n ]),\n );\n return { ...collection, get: (type: string) => providers[type] as never, providers };\n};\n\n/**\n * The same context with every provider service — direct or inside a `Provider.collection` —\n * replaced by its watched copy. Everything else (the state store, the stack, credentials) is the\n * very object the session built.\n */\nexport const spyContext = <R>(\n context: Context.Context<R>,\n seen: Observations,\n): Context.Context<R> => {\n const services = new Map<string, unknown>();\n for (const [key, value] of context.mapUnsafe) {\n services.set(\n key,\n isProviderService(value)\n ? spyService(key, value, seen)\n : isProviderCollectionService(value)\n ? spyCollection(value, seen)\n : value,\n );\n }\n return Context.makeUnsafe<R>(services);\n};\n"
|
|
11
13
|
],
|
|
12
|
-
"mappings": ";;;AAaA;AACA;AACA;AACA;;;ACLA;AAGO,IAAM,QAAQ;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA2BrB,IAAM,QAAQ,CAAC,SACb,UAAU;AAAA,EACR,MAAM,CAAC,GAAG,IAAI;AAAA,EACd,kBAAkB;AAAA,EAClB,SAAS;AAAA,IACP,KAAK,EAAE,MAAM,WAAW,SAAS,MAAM;AAAA,IACvC,QAAQ,EAAE,MAAM,UAAU,OAAO,KAAK,SAAS,iBAAiB;AAAA,IAChE,YAAY,EA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AAA,EACjE,IAAI,OAAO,SAAS;AAAA,IAAQ,OAAO,OAAe,YAAI,KAAK;AAAA,EAC3D,IAAI,OAAO,SAAS,SAAS;AAAA,IAC3B,OAAe,cAAM,oBAAoB,OAAO;AAAA;AAAA,EAAc,OAAO;AAAA,IACrE,OAAO,OAAO,QAAQ,CAAC;AAAA,EACzB;AAAA,EACA,MAAM,SAAS,OAAO,YAAY,OAAO,QAAQ,OAAO,OAAO;AAAA,EAC/D,OAAe,YACb,OAAO,OACH,KAAK,UAAU,QAAQ,MAAM,CAAC,IAC9B,aAAa,QAAQ,OAAO,QAAQ,QAAQ,IAAI,CACtD;AAAA,EACA,OAAO,QAAQ,WAAW,MAAM,CAAC;AAAA,CAClC,EAAE,KACM,mBAAW,CAAC,UACT,cAAM;AAAA,EAA0D,aAAO,KAAK,GAAG,EAAE,KAChF,gBAAQ,QAAQ,CAAC,CAAC,CAC3B,CACF,CACF;AAEA,QAAQ,OAAO;",
|
|
15
|
+
"debugId": "66D8EFB2DE677D6964756E2164756E21",
|
|
14
16
|
"names": []
|
|
15
17
|
}
|
|
@@ -27,6 +27,14 @@ export declare const Thing: Alchemy.ResourceClass<Thing>;
|
|
|
27
27
|
export interface Blind extends Alchemy.Resource<'Test.Blind', ThingProps, ThingAttributes> {
|
|
28
28
|
}
|
|
29
29
|
export declare const Blind: Alchemy.ResourceClass<Blind>;
|
|
30
|
+
/**
|
|
31
|
+
* The same object with a `diff` that compares the RECORDED props with the declaration and never
|
|
32
|
+
* the live object — the shape of Alchemy's own `Cloudflare.R2Bucket` diff (beta.79
|
|
33
|
+
* Cloudflare/R2/Bucket.ts: `olds.domains` against `news.domains`). recheck.ts exists for it.
|
|
34
|
+
*/
|
|
35
|
+
export interface Recorded extends Alchemy.Resource<'Test.Recorded', ThingProps, ThingAttributes> {
|
|
36
|
+
}
|
|
37
|
+
export declare const Recorded: Alchemy.ResourceClass<Recorded>;
|
|
30
38
|
/** The fake cloud: what exists, what is someone else's, and every call made to it, in order. */
|
|
31
39
|
export interface Cloud {
|
|
32
40
|
readonly live: Map<string, string>;
|
|
@@ -37,7 +45,7 @@ export declare const cloudOf: (live?: Record<string, string>) => Cloud;
|
|
|
37
45
|
/** Every call that would change the cloud. */
|
|
38
46
|
export declare const writesOf: (cloud: Cloud) => string[];
|
|
39
47
|
/** Both fake families over `cloud` — also what tests/fixtures/verify-stack.ts registers. */
|
|
40
|
-
export declare const thingProviders: (cloud: Cloud) => Layer.Layer<Alchemy.Provider<Blind> | Alchemy.Provider<Thing>, never, never>;
|
|
48
|
+
export declare const thingProviders: (cloud: Cloud) => Layer.Layer<Alchemy.Provider<Blind> | Alchemy.Provider<Recorded> | Alchemy.Provider<Thing>, never, never>;
|
|
41
49
|
/** A stack body: resource declarations, as an `alchemy.run.ts` would write them. */
|
|
42
50
|
export type Body = Effect.Effect<unknown, unknown, unknown>;
|
|
43
51
|
export interface FakeEngine {
|