eutaxy 0.5.0 → 0.5.1
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 +1 -1
- package/dist/aws.d.mts +7 -5
- package/dist/aws.d.mts.map +1 -1
- package/dist/aws.mjs +41 -135
- package/dist/aws.mjs.map +1 -1
- package/dist/bin.mjs +2 -2
- package/dist/checked-CGpA2-F0.d.mts +285 -0
- package/dist/checked-CGpA2-F0.d.mts.map +1 -0
- package/dist/cli-IJrKkeYS.mjs +2 -0
- package/dist/cli.d.mts.map +1 -1
- package/dist/cli.mjs +2 -2
- package/dist/cloudflare.d.mts +158 -54
- package/dist/cloudflare.d.mts.map +1 -1
- package/dist/cloudflare.mjs +3 -1815
- package/dist/delivery-invariants-BraYqcYN.d.mts +5 -0
- package/dist/delivery-invariants-BraYqcYN.d.mts.map +1 -0
- package/dist/delivery-invariants-Cuxdna28.mjs +39 -0
- package/dist/delivery-invariants-Cuxdna28.mjs.map +1 -0
- package/dist/index.d.mts +22 -189
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +17 -197
- package/dist/index.mjs.map +1 -1
- package/dist/{platform-eVgCMbX0.d.mts → platform-DfMwknw1.d.mts} +94 -73
- package/dist/platform-DfMwknw1.d.mts.map +1 -0
- package/dist/{src-C19_yfMM.mjs → src-Bqc9Eyb1.mjs} +961 -543
- package/dist/src-Bqc9Eyb1.mjs.map +1 -0
- package/dist/src-DKb-fkdb.mjs +3399 -0
- package/dist/src-DKb-fkdb.mjs.map +1 -0
- package/dist/{src-CgfGiH25.mjs → src-Dxl9ZlKn.mjs} +223 -17
- package/dist/src-Dxl9ZlKn.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/cli-NqY61bpo.mjs +0 -2
- package/dist/cloudflare.mjs.map +0 -1
- package/dist/explore-BHYvAZKN.d.mts +0 -84
- package/dist/explore-BHYvAZKN.d.mts.map +0 -1
- package/dist/platform-eVgCMbX0.d.mts.map +0 -1
- package/dist/src-BD3jkjgG.mjs +0 -477
- package/dist/src-BD3jkjgG.mjs.map +0 -1
- package/dist/src-C19_yfMM.mjs.map +0 -1
- package/dist/src-CgfGiH25.mjs.map +0 -1
- package/dist/src-s6uYyC0B.mjs +0 -89
- package/dist/src-s6uYyC0B.mjs.map +0 -1
- package/dist/verdict-evEM5Gxx.mjs +0 -12
- package/dist/verdict-evEM5Gxx.mjs.map +0 -1
package/dist/bin.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import {
|
|
3
|
-
import "./cli-
|
|
2
|
+
import { N as main } from "./src-DKb-fkdb.mjs";
|
|
3
|
+
import "./cli-IJrKkeYS.mjs";
|
|
4
4
|
// packages/eutaxy/src/bin.ts
|
|
5
5
|
process.stdout.on("error", (err) => {
|
|
6
6
|
if (err.code === "EPIPE") process.exit(process.exitCode ?? 0);
|
|
@@ -0,0 +1,285 @@
|
|
|
1
|
+
import { D as EffectLog, f as Schedule, g as Violation, n as Platform, o as ScenarioSpec, r as Bounds } from "./platform-DfMwknw1.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* Spec verdicts: what is known about one property of one pure function.
|
|
4
|
+
* Kept apart from scenario verdicts in every report. The ladder starts at
|
|
5
|
+
* `CHECKED` (held on every input the simulator passed); `TESTED` and
|
|
6
|
+
* `PROVEN` come with the provers.
|
|
7
|
+
*/
|
|
8
|
+
interface SpecVerdictBase {
|
|
9
|
+
/** The module, as the scenario names it. */
|
|
10
|
+
readonly module: string;
|
|
11
|
+
readonly function: string;
|
|
12
|
+
/** The `@ensures` name, or `@total` / `@throws` for those markers. */
|
|
13
|
+
readonly property: string;
|
|
14
|
+
/** The property as written. */
|
|
15
|
+
readonly text: string;
|
|
16
|
+
readonly assumptions: readonly string[];
|
|
17
|
+
}
|
|
18
|
+
interface Checked extends SpecVerdictBase {
|
|
19
|
+
readonly kind: "CHECKED";
|
|
20
|
+
/** Distinct inputs the property was evaluated on. */
|
|
21
|
+
readonly inputs: number;
|
|
22
|
+
/** Distinct inputs outside the claim: a precondition failed, or a value fell outside its binder's domain. */
|
|
23
|
+
readonly discarded: number;
|
|
24
|
+
}
|
|
25
|
+
/** One assignment that breaks the property, as JavaScript literals, and the call it came from. */
|
|
26
|
+
interface Counterexample {
|
|
27
|
+
/** In the property's binder order. */
|
|
28
|
+
readonly binders: readonly {
|
|
29
|
+
readonly name: string;
|
|
30
|
+
readonly value: string;
|
|
31
|
+
}[];
|
|
32
|
+
readonly call: string;
|
|
33
|
+
/** Set when evaluating the property threw instead of returning false. */
|
|
34
|
+
readonly error?: string;
|
|
35
|
+
}
|
|
36
|
+
interface Refuted extends SpecVerdictBase {
|
|
37
|
+
readonly kind: "REFUTED";
|
|
38
|
+
readonly rung: "CHECKED";
|
|
39
|
+
readonly counterexample: Counterexample;
|
|
40
|
+
}
|
|
41
|
+
type SpecUnknownCause = "gave_up" | "unsupported" | "unavailable";
|
|
42
|
+
interface SpecUnknown extends SpecVerdictBase {
|
|
43
|
+
readonly kind: "UNKNOWN";
|
|
44
|
+
readonly cause: SpecUnknownCause;
|
|
45
|
+
readonly reason: string;
|
|
46
|
+
}
|
|
47
|
+
type SpecVerdict = Checked | Refuted | SpecUnknown;
|
|
48
|
+
/** One line per spec verdict, for error messages; full rendering lives in `report`. */
|
|
49
|
+
declare function describeSpecVerdict(v: SpecVerdict): string;
|
|
50
|
+
interface BoundsReached {
|
|
51
|
+
readonly runs: number;
|
|
52
|
+
readonly effectPoints: number;
|
|
53
|
+
readonly faultsInjected: number;
|
|
54
|
+
readonly elapsedMs: number;
|
|
55
|
+
/**
|
|
56
|
+
* Present when exploration was exhaustive: how many distinct schedules ran
|
|
57
|
+
* (runs that only repeated an order the reduction had covered are not
|
|
58
|
+
* counted), and whether every schedule within the bounds was reached
|
|
59
|
+
* before the budget ran out.
|
|
60
|
+
*/
|
|
61
|
+
readonly exhaustive?: {
|
|
62
|
+
readonly complete: boolean;
|
|
63
|
+
readonly schedules: number;
|
|
64
|
+
readonly reduction: boolean;
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
interface VerdictBase {
|
|
68
|
+
readonly scenario: string;
|
|
69
|
+
readonly seed: number | string;
|
|
70
|
+
readonly reached: BoundsReached;
|
|
71
|
+
readonly assumptions: readonly string[];
|
|
72
|
+
}
|
|
73
|
+
interface Shrunk {
|
|
74
|
+
readonly faultsRemoved: number;
|
|
75
|
+
readonly eventsRemoved: number;
|
|
76
|
+
readonly runs: number;
|
|
77
|
+
}
|
|
78
|
+
interface Violated extends VerdictBase {
|
|
79
|
+
readonly kind: "VIOLATED";
|
|
80
|
+
readonly violation: Violation;
|
|
81
|
+
/** The replayed, shrunk trace that breaks the invariant. */
|
|
82
|
+
readonly trace: EffectLog;
|
|
83
|
+
readonly schedule: Schedule;
|
|
84
|
+
/** Ids of the drive's events that remain after shrinking. */
|
|
85
|
+
readonly keptEvents: readonly string[];
|
|
86
|
+
readonly shrunk: Shrunk;
|
|
87
|
+
}
|
|
88
|
+
interface Bounded extends VerdictBase {
|
|
89
|
+
readonly kind: "BOUNDED";
|
|
90
|
+
readonly bounds: Bounds;
|
|
91
|
+
}
|
|
92
|
+
type UnsupportedCause = "unsupported_api" | "not_replayable" | "module_state_leak" | "unsupported_bounds";
|
|
93
|
+
interface Unsupported extends VerdictBase {
|
|
94
|
+
readonly kind: "UNSUPPORTED";
|
|
95
|
+
readonly cause: UnsupportedCause;
|
|
96
|
+
readonly reason: string;
|
|
97
|
+
}
|
|
98
|
+
type ScenarioVerdict = Violated | Bounded | Unsupported;
|
|
99
|
+
/** One line per verdict, for error messages; full rendering lives in `report`. */
|
|
100
|
+
declare function describeVerdict(v: ScenarioVerdict): string;
|
|
101
|
+
interface ExploreOptions {
|
|
102
|
+
readonly seed: number | string;
|
|
103
|
+
/** Hard cap on runs, in addition to the scenario's time budget. */
|
|
104
|
+
readonly maxRuns?: number;
|
|
105
|
+
/**
|
|
106
|
+
* Replaces the scenario's `budgetMs` for this exploration: the real time
|
|
107
|
+
* exploring and shrinking may take, and the real time one effect's I/O
|
|
108
|
+
* may take before it counts as hung. With a generous budget and
|
|
109
|
+
* `maxRuns`, the run cap ends exploration, so a seed decides the verdict
|
|
110
|
+
* on any machine.
|
|
111
|
+
*/
|
|
112
|
+
readonly budgetMs?: number;
|
|
113
|
+
/**
|
|
114
|
+
* The share of seeded runs after the first (which injects none) that
|
|
115
|
+
* inject faults (see `planFaults`). Default 0.9: the runs without faults
|
|
116
|
+
* also check the scenario as it runs without them, and measure how many
|
|
117
|
+
* eligible points a run without faults has, which can vary with the seed.
|
|
118
|
+
*/
|
|
119
|
+
readonly faultProbability?: number;
|
|
120
|
+
/** Clock for the time budget; injectable for tests. */
|
|
121
|
+
readonly now?: () => number;
|
|
122
|
+
/** Hard cap on replay runs spent shrinking a violation. */
|
|
123
|
+
readonly maxShrinkRuns?: number;
|
|
124
|
+
/**
|
|
125
|
+
* How many of the first exploration runs to replay in reverse order
|
|
126
|
+
* before reporting BOUNDED, to detect module-level state leaking between
|
|
127
|
+
* runs. 0 disables the pass.
|
|
128
|
+
*/
|
|
129
|
+
readonly leakCheckRuns?: number;
|
|
130
|
+
/**
|
|
131
|
+
* Explore every schedule within the bounds, each once, instead of drawing
|
|
132
|
+
* schedules from the seed: every fault (or none) at every effect point
|
|
133
|
+
* that may still take one, and every order of turns. With `reduction`
|
|
134
|
+
* (the default), turns of different invocations on different targets
|
|
135
|
+
* commute and only one order of them is run.
|
|
136
|
+
*/
|
|
137
|
+
readonly exhaustive?: boolean | {
|
|
138
|
+
readonly reduction?: boolean;
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
/** Re-run a recorded schedule exactly. */
|
|
142
|
+
declare function replay(spec: ScenarioSpec, platform: Platform, schedule: Schedule): Promise<EffectLog>;
|
|
143
|
+
declare function explore(scenario: ScenarioSpec, platform: Platform, options: ExploreOptions): Promise<ScenarioVerdict>;
|
|
144
|
+
/**
|
|
145
|
+
* SpecIR: function specs as plain data. The surface syntax is Lemma
|
|
146
|
+
* (https://github.com/jessealama/lemma-lang, grammar.ebnf and
|
|
147
|
+
* semantics.md); the IR is Eutaxy's own, so engines and the simulator read
|
|
148
|
+
* one shape whatever the annotation looked like. Leaves are opaque
|
|
149
|
+
* TypeScript expressions, kept as written.
|
|
150
|
+
*/
|
|
151
|
+
/** Lemma's binder domains. */
|
|
152
|
+
type Domain = "int" | "nat" | "number" | "boolean" | "string" | "bigint";
|
|
153
|
+
/**
|
|
154
|
+
* One end of an interval: a numeric literal as written (sign included), or
|
|
155
|
+
* `∞` / `-∞` for either infinity. `[` and `]` include the endpoint.
|
|
156
|
+
*/
|
|
157
|
+
interface Endpoint {
|
|
158
|
+
readonly value: string;
|
|
159
|
+
readonly inclusive: boolean;
|
|
160
|
+
}
|
|
161
|
+
/** A binder's constraint: an interval for numeric domains, a whole-string regex for `string`. */
|
|
162
|
+
type Guard = {
|
|
163
|
+
readonly kind: "interval";
|
|
164
|
+
readonly lower: Endpoint;
|
|
165
|
+
readonly upper: Endpoint;
|
|
166
|
+
} | {
|
|
167
|
+
readonly kind: "regex";
|
|
168
|
+
readonly pattern: string;
|
|
169
|
+
readonly flags: string;
|
|
170
|
+
};
|
|
171
|
+
interface Binder {
|
|
172
|
+
readonly name: string;
|
|
173
|
+
readonly domain: Domain;
|
|
174
|
+
readonly guard?: Guard;
|
|
175
|
+
}
|
|
176
|
+
/**
|
|
177
|
+
* A formula over boolean atoms. Atoms and equation sides are TypeScript
|
|
178
|
+
* expressions, verbatim. `and` and `or` are n-ary (both are associative);
|
|
179
|
+
* `implies` keeps Lemma's chain: every segment but the last is an
|
|
180
|
+
* antecedent. An implication at a property's root is not a formula node but
|
|
181
|
+
* the property's preconditions (`Property.requires`).
|
|
182
|
+
*/
|
|
183
|
+
type Formula = {
|
|
184
|
+
readonly kind: "atom";
|
|
185
|
+
readonly text: string;
|
|
186
|
+
} | {
|
|
187
|
+
readonly kind: "equation";
|
|
188
|
+
readonly left: string;
|
|
189
|
+
readonly right: string;
|
|
190
|
+
/** `≢` rather than `≡`. */
|
|
191
|
+
readonly negated: boolean;
|
|
192
|
+
} | {
|
|
193
|
+
readonly kind: "not";
|
|
194
|
+
readonly operand: Formula;
|
|
195
|
+
} | {
|
|
196
|
+
readonly kind: "and" | "or";
|
|
197
|
+
readonly operands: readonly Formula[];
|
|
198
|
+
} | {
|
|
199
|
+
readonly kind: "implies";
|
|
200
|
+
readonly antecedents: readonly Formula[];
|
|
201
|
+
readonly consequent: Formula;
|
|
202
|
+
} | {
|
|
203
|
+
readonly kind: "iff";
|
|
204
|
+
readonly left: Formula;
|
|
205
|
+
readonly right: Formula;
|
|
206
|
+
};
|
|
207
|
+
/**
|
|
208
|
+
* A universally quantified claim: for every assignment of the binders from
|
|
209
|
+
* their (guarded) domains where every precondition holds, `claim` holds.
|
|
210
|
+
* Assignments failing a precondition are outside the claim.
|
|
211
|
+
*/
|
|
212
|
+
interface Property {
|
|
213
|
+
readonly binders: readonly Binder[];
|
|
214
|
+
readonly requires: readonly Formula[];
|
|
215
|
+
readonly claim: Formula;
|
|
216
|
+
}
|
|
217
|
+
/** An `@ensures{name}` annotation. */
|
|
218
|
+
interface NamedProperty {
|
|
219
|
+
readonly name: string;
|
|
220
|
+
readonly property: Property;
|
|
221
|
+
/** The annotation's property text, as written. */
|
|
222
|
+
readonly text: string;
|
|
223
|
+
}
|
|
224
|
+
/** The specs on one exported function. */
|
|
225
|
+
interface FunctionSpec {
|
|
226
|
+
readonly name: string;
|
|
227
|
+
/** Parameter names in order; null for a destructured or rest parameter. */
|
|
228
|
+
readonly params: readonly (string | null)[];
|
|
229
|
+
readonly ensures: readonly NamedProperty[];
|
|
230
|
+
/** `@total`: the function terminates on every input. */
|
|
231
|
+
readonly total: boolean;
|
|
232
|
+
/** `@throws`: the function throws (Lemma has not fixed its semantics yet). */
|
|
233
|
+
readonly throws: boolean;
|
|
234
|
+
/** 1-based line of the declaration. */
|
|
235
|
+
readonly line: number;
|
|
236
|
+
}
|
|
237
|
+
/** A problem with an annotation, located in the module. */
|
|
238
|
+
interface SpecError {
|
|
239
|
+
readonly line: number;
|
|
240
|
+
readonly message: string;
|
|
241
|
+
}
|
|
242
|
+
/** Every spec in one module, the names it exports, and the annotations that did not parse. */
|
|
243
|
+
interface ModuleSpecs {
|
|
244
|
+
readonly functions: readonly FunctionSpec[];
|
|
245
|
+
readonly exports: readonly string[];
|
|
246
|
+
readonly errors: readonly SpecError[];
|
|
247
|
+
}
|
|
248
|
+
/** The outcome a predicate returns for one assignment. */
|
|
249
|
+
type PredicateOutcome = "held" | "discarded" | "refuted";
|
|
250
|
+
/** What generated predicates call when free names did not resolve. */
|
|
251
|
+
declare function lemmaUnresolved(names: readonly string[]): never;
|
|
252
|
+
/** The atom check generated predicates call: its argument when it is a boolean. */
|
|
253
|
+
declare function lemmaBool(value: unknown): boolean;
|
|
254
|
+
interface CheckedInput {
|
|
255
|
+
readonly module: string;
|
|
256
|
+
readonly fn: FunctionSpec;
|
|
257
|
+
readonly property: NamedProperty;
|
|
258
|
+
/** The calls the simulator made, with their arguments. */
|
|
259
|
+
readonly calls: readonly {
|
|
260
|
+
readonly args: readonly unknown[];
|
|
261
|
+
}[];
|
|
262
|
+
/** The compiled predicate over the binders, or undefined when it could not be built. */
|
|
263
|
+
readonly predicate: ((...binders: never[]) => PredicateOutcome) | undefined;
|
|
264
|
+
/** Why the function's calls could not be observed, when they could not. */
|
|
265
|
+
readonly unobservable?: string;
|
|
266
|
+
}
|
|
267
|
+
declare function checkedRung(input: CheckedInput): SpecVerdict;
|
|
268
|
+
/** Compiled predicates of a module, by function and property name. */
|
|
269
|
+
interface ModulePredicates {
|
|
270
|
+
readonly [fn: string]: {
|
|
271
|
+
readonly [property: string]: (...binders: never[]) => PredicateOutcome;
|
|
272
|
+
};
|
|
273
|
+
}
|
|
274
|
+
/** Every spec verdict for one module, from what was observed of its calls. */
|
|
275
|
+
declare function checkSpecModule(module: string, specs: ModuleSpecs, predicates: ModulePredicates, observed: {
|
|
276
|
+
readonly calls: readonly {
|
|
277
|
+
readonly function: string;
|
|
278
|
+
readonly args: readonly unknown[];
|
|
279
|
+
}[];
|
|
280
|
+
readonly unobservable: {
|
|
281
|
+
readonly [fn: string]: string;
|
|
282
|
+
};
|
|
283
|
+
}): SpecVerdict[];
|
|
284
|
+
export { Checked as C, SpecVerdict as D, SpecUnknown as E, describeSpecVerdict as O, describeVerdict as S, Refuted as T, Bounded as _, lemmaUnresolved as a, Unsupported as b, Formula as c, ModuleSpecs as d, NamedProperty as f, replay as g, explore as h, lemmaBool as i, FunctionSpec as l, ExploreOptions as m, checkSpecModule as n, Binder as o, Property as p, checkedRung as r, Domain as s, ModulePredicates as t, Guard as u, BoundsReached as v, Counterexample as w, Violated as x, ScenarioVerdict as y };
|
|
285
|
+
//# sourceMappingURL=checked-CGpA2-F0.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"checked-CGpA2-F0.d.mts","names":[],"sources":["../../core/src/spec-verdict.ts","../../core/src/verdict.ts","../../engine/src/explore.ts","../../spec/src/ir.ts","../../spec/src/predicate.ts","../../prover/src/checked.ts"],"mappings":";;;;;;;UAOU;;WAEC;WACA;;WAEA;;WAEA;WACA;;UAGM,gBAAgB;WACtB;;WAEA;;WAEA;;;UAIM;;WAEN;aAA6B;aAAuB;;WACpD;;WAEA;;UAGM,gBAAgB;WACtB;WACA;WACA,gBAAgB;;KAGf;UAEK,oBAAoB;WAC1B;WACA,OAAO;WACP;;KAGC,cAAc,UAAU,UAAU;;iBAG9B,oBAAoB,GAAG;UC7CtB;WACN;WACA;WACA;WACA;;;;;;;WAOA;aACE;aACA;aACA;;;UAIH;WACC;WACA;WACA,SAAS;WACT;;UAGM;WACN;WACA;WACA;;UAGM,iBAAiB;WACvB;WACA,WAAW;;WAEX,OAAO;WACP,UAAU;;WAEV;WACA,QAAQ;;UAGF,gBAAgB;WACtB;WACA,QAAQ;;KAGP;UAMK,oBAAoB;WAC1B;WACA,OAAO;WACP;;KAGC,kBAAkB,WAAW,UAAU;;iBAGnC,gBAAgB,GAAG;UC1ClB;WACN;;WAEA;;;;;;;;WAQA;;;;;;;WAOA;;WAEA;;WAEA;;;;;;WAMA;;;;;;;;WAQA;aAAkC;;;;iBAqKvB,OACpB,MAAM,cACN,UAAU,UACV,UAAU,WACT,QAAQ;iBAIW,QACpB,UAAU,cACV,UAAU,UACV,SAAS,iBACR,QAAQ;;;;;;;;;KCvOC;;;;;UAQK;WACN;WACA;;;KAIC;WACG;WAA2B,OAAO;WAAmB,OAAO;;WAC5D;WAAwB;WAA0B;;UAEhD;WACN;WACA,QAAQ;WACR,QAAQ;;;;;;;;;KAUP;WACG;WAAuB;;WAEvB;WACA;WACA;;WAEA;;WAEA;WAAsB,SAAS;;WAC/B;WAA6B,mBAAmB;;WAEhD;WACA,sBAAsB;WACtB,YAAY;;WAEZ;WAAsB,MAAM;WAAkB,OAAO;;;;;;;UAOnD;WACN,kBAAkB;WAClB,mBAAmB;WACnB,OAAO;;;UAID;WACN;WACA,UAAU;;WAEV;;;UAIM;WACN;;WAEA;WACA,kBAAkB;;WAElB;;WAEA;;WAEA;;;UAIM;WACN;WACA;;;UAIM;WACN,oBAAoB;WACpB;WACA,iBAAiB;;;KCxFhB;;iBCcI,gBAAgB;;iBAOhB,UAAU;UAqET;WACN;WACA,IAAI;WACJ,UAAU;;WAEV;aAA2B;;;WAE3B,gBAAgB,qBAAqB;;WAErC;;iBAGK,YAAY,OAAO,eAAe;;UA2HjC;YACL;cAAyB,uBAAuB,qBAAqB;;;;iBAIjE,gBACd,gBACA,OAAO,aACP,YAAY,kBACZ;WACW;aAA2B;aAA2B;;WACtD;cAA0B;;IAEpC"}
|
package/dist/cli.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cli.d.mts","names":[],"sources":["../../cli/src/main.ts"],"mappings":"A,
|
|
1
|
+
{"version":3,"file":"cli.d.mts","names":[],"sources":["../../cli/src/main.ts"],"mappings":"A,UAuBiB;WACN;WACA,SAAS;WACT,SAAS;;wBAGE,KAAK,yBAAyB,IAAI,KAAK"}
|
package/dist/cli.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export {
|
|
2
|
-
import "./cli-
|
|
1
|
+
export { N as main } from "./src-DKb-fkdb.mjs";
|
|
2
|
+
import "./cli-IJrKkeYS.mjs";
|
package/dist/cloudflare.d.mts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { C as StateQuery, E as EffectSelector, S as RowCondition, T as Refines, a as PlatformData, b as Implies, c as WorkerRef, h as Invariant, i as ExternalDecl, k as JsonValue, n as Platform, o as ScenarioSpec, p as AtLeastOnce, r as Bounds, s as ScriptedResponse, w as Unique, x as References, y as EveryRow } from "./platform-DfMwknw1.mjs";
|
|
2
|
+
import { n as atMostOncePerKey, t as atLeastOnce } from "./delivery-invariants-BraYqcYN.mjs";
|
|
3
|
+
import { a as lemmaUnresolved, d as ModuleSpecs, i as lemmaBool, m as ExploreOptions, t as ModulePredicates, x as Violated, y as ScenarioVerdict } from "./checked-CGpA2-F0.mjs";
|
|
3
4
|
interface CloudflareRegressionOptions {
|
|
4
5
|
/** Import path of the scenario module, relative to the emitted file. */
|
|
5
6
|
readonly scenarioPath: string;
|
|
@@ -7,10 +8,17 @@ interface CloudflareRegressionOptions {
|
|
|
7
8
|
readonly workerPath: string;
|
|
8
9
|
/** D1 binding name to schema file path, imported with `?raw`. */
|
|
9
10
|
readonly schemaPaths: Readonly<Record<string, string>>;
|
|
11
|
+
/**
|
|
12
|
+
* The time budget the check ran with, when it replaced the scenario's: the
|
|
13
|
+
* replay gets the same, so I/O that finished within it does not time out.
|
|
14
|
+
*/
|
|
15
|
+
readonly budgetMs?: number;
|
|
10
16
|
/** The platform's retry limit, when the scenario was checked with a non-default one. */
|
|
11
17
|
readonly maxRetries?: number;
|
|
12
18
|
/** The scenario sets up Durable Objects: pass the Cloudflare test helpers to the platform. */
|
|
13
19
|
readonly durableObjects?: boolean;
|
|
20
|
+
/** The scenario sets up Workflows: pass the Worker module's exports, where their classes are. */
|
|
21
|
+
readonly workflows?: boolean;
|
|
14
22
|
readonly expect?: "holds" | "violates";
|
|
15
23
|
readonly engineModule?: string;
|
|
16
24
|
/** Core modules to observe during the replay (import path, functions), for `refines`. */
|
|
@@ -39,6 +47,70 @@ interface DurableObjectTestHelpers {
|
|
|
39
47
|
readonly evictDurableObject: unknown;
|
|
40
48
|
readonly listDurableObjectIds: unknown;
|
|
41
49
|
}
|
|
50
|
+
/** The Worker's default export, as far as the platform drives it. */
|
|
51
|
+
interface WorkerHandler {
|
|
52
|
+
queue?(batch: MessageBatch<unknown>, env: unknown, ctx: ExecutionContext): void | Promise<void>;
|
|
53
|
+
fetch?(request: Request, env: unknown, ctx: ExecutionContext): Response | Promise<Response>;
|
|
54
|
+
}
|
|
55
|
+
/** @deprecated The former name of `WorkerHandler`; removed in 0.6.0. */
|
|
56
|
+
type QueueHandler = WorkerHandler;
|
|
57
|
+
interface CloudflarePlatformOptions {
|
|
58
|
+
/** The bindings from `cloudflare:workers`. */
|
|
59
|
+
readonly env: object;
|
|
60
|
+
/** The Worker's default export. */
|
|
61
|
+
readonly handler: WorkerHandler;
|
|
62
|
+
/** Schema SQL per D1 binding named in the scenario's setup. */
|
|
63
|
+
readonly schemas: Readonly<Record<string, string>>;
|
|
64
|
+
/** Cloudflare's default when the consumer does not set max_retries. */
|
|
65
|
+
readonly maxRetries?: number;
|
|
66
|
+
/**
|
|
67
|
+
* The Cloudflare Vitest plugin's test helpers (`import * as helpers from
|
|
68
|
+
* "cloudflare:test"`), needed for Durable Object bindings: Eutaxy resets,
|
|
69
|
+
* seeds and snapshots the real objects through them.
|
|
70
|
+
*/
|
|
71
|
+
readonly durableObjects?: DurableObjectTestHelpers;
|
|
72
|
+
/**
|
|
73
|
+
* The Worker module's exports (`import * as worker from "./worker.ts"`),
|
|
74
|
+
* where the classes `workflow` setup steps name are found.
|
|
75
|
+
*/
|
|
76
|
+
readonly exports?: Readonly<Record<string, unknown>>;
|
|
77
|
+
}
|
|
78
|
+
export declare function createCloudflarePlatform(options: CloudflarePlatformOptions): Platform;
|
|
79
|
+
/** A type, not an interface, so it is JSON data the comparison takes as it is. */
|
|
80
|
+
type AttemptRecord = {
|
|
81
|
+
readonly event: string;
|
|
82
|
+
readonly attempt: number;
|
|
83
|
+
readonly status: "completed" | "errored";
|
|
84
|
+
/** Queue drive: the acknowledgement that took effect. */
|
|
85
|
+
readonly decision: "ack" | "retry" | null;
|
|
86
|
+
/** HTTP drive: the response status the caller saw (500 for an uncaught exception). */
|
|
87
|
+
readonly response?: number;
|
|
88
|
+
};
|
|
89
|
+
interface Side {
|
|
90
|
+
readonly attempts: readonly AttemptRecord[];
|
|
91
|
+
readonly state: {
|
|
92
|
+
readonly [binding: string]: {
|
|
93
|
+
readonly [table: string]: readonly JsonValue[];
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
}
|
|
97
|
+
interface DifferentialResult {
|
|
98
|
+
/** True only when both sides agree and the proxied run touched nothing unmodelled. */
|
|
99
|
+
readonly equal: boolean;
|
|
100
|
+
readonly eutaxy: Side;
|
|
101
|
+
readonly raw: Side;
|
|
102
|
+
readonly differences: readonly string[];
|
|
103
|
+
/** What the proxied run could not control; non-empty means the comparison proves nothing. */
|
|
104
|
+
readonly unsupported: readonly string[];
|
|
105
|
+
}
|
|
106
|
+
/** Run both sides and compare. The Eutaxy side runs first; both start from the schema. */
|
|
107
|
+
export declare function runDifferential(spec: ScenarioSpec, options: CloudflarePlatformOptions): Promise<DifferentialResult>;
|
|
108
|
+
/** An object a setup seeds: its text, or its text with metadata. */
|
|
109
|
+
type R2Seed = string | {
|
|
110
|
+
readonly value: string;
|
|
111
|
+
readonly customMetadata?: Readonly<Record<string, string>>;
|
|
112
|
+
readonly httpMetadata?: Readonly<Record<string, string>>;
|
|
113
|
+
};
|
|
42
114
|
/** One queue message to deliver; `id` defaults to its position. */
|
|
43
115
|
interface QueueMessage {
|
|
44
116
|
readonly id?: string;
|
|
@@ -132,6 +204,41 @@ export declare function durableObject(binding: string, objects?: {
|
|
|
132
204
|
}, options?: {
|
|
133
205
|
readonly alarmsPerObject?: number;
|
|
134
206
|
}): DurableObjectSetup;
|
|
207
|
+
/** An R2 bucket the scenario uses: emptied, then seeded with these objects, before each run. */
|
|
208
|
+
interface R2Setup extends PlatformData {
|
|
209
|
+
readonly kind: "r2";
|
|
210
|
+
readonly binding: string;
|
|
211
|
+
readonly objects: Readonly<Record<string, R2Seed>>;
|
|
212
|
+
}
|
|
213
|
+
export declare function r2Bucket(binding: string, objects?: Readonly<Record<string, R2Seed>>): R2Setup;
|
|
214
|
+
/**
|
|
215
|
+
* Selects an R2 bucket's operations that completed, a `put` by default; a
|
|
216
|
+
* put whose `onlyIf` failed stored nothing and is not selected, as a D1
|
|
217
|
+
* write that changed no row is not.
|
|
218
|
+
*/
|
|
219
|
+
export declare function r2Op(binding: string, op?: "put" | "delete" | "get" | "head" | "list"): EffectSelector;
|
|
220
|
+
/** A bucket's objects at the end of the run as rows `{ key, size, etag, customMetadata, httpMetadata, text? }`. */
|
|
221
|
+
export declare function r2Rows(binding: string, where?: readonly RowCondition[]): StateQuery;
|
|
222
|
+
/**
|
|
223
|
+
* Every row the query returns is named by some row of `in` (its `column`
|
|
224
|
+
* equals the row's value at `path`), as with a foreign key.
|
|
225
|
+
*/
|
|
226
|
+
export declare function references(name: string, query: StateQuery, path: string, inQuery: StateQuery, column: string): References;
|
|
227
|
+
/** A Workflow binding, and the class (an export of the Worker module) its instances run. */
|
|
228
|
+
interface WorkflowSetup extends PlatformData {
|
|
229
|
+
readonly kind: "workflow";
|
|
230
|
+
readonly binding: string;
|
|
231
|
+
readonly className: string;
|
|
232
|
+
/** The Workflow's `name` in the wrangler config, which instances see as `event.workflowName`. */
|
|
233
|
+
readonly name?: string;
|
|
234
|
+
}
|
|
235
|
+
export declare function workflow(binding: string, className: string, options?: {
|
|
236
|
+
readonly name?: string;
|
|
237
|
+
}): WorkflowSetup;
|
|
238
|
+
/** Selects a Workflow's step attempts, optionally of one step; a failed attempt's result carries its error. */
|
|
239
|
+
export declare function workflowStep(binding: string, step?: string): EffectSelector;
|
|
240
|
+
/** A Workflow's instances at the end of the run as rows `{ id, status, params, output?, error? }`. */
|
|
241
|
+
export declare function workflowRows(binding: string, where?: readonly RowCondition[]): StateQuery;
|
|
135
242
|
/**
|
|
136
243
|
* The storage of one object (by the name its id was made from) as rows
|
|
137
244
|
* `{ key, value }`, for state invariants.
|
|
@@ -145,7 +252,7 @@ interface CloudflareScenarioInput {
|
|
|
145
252
|
readonly queue: string;
|
|
146
253
|
readonly messages: readonly QueueMessage[];
|
|
147
254
|
};
|
|
148
|
-
readonly setup?: readonly (D1Setup | DurableObjectSetup)[];
|
|
255
|
+
readonly setup?: readonly (D1Setup | DurableObjectSetup | R2Setup | WorkflowSetup)[];
|
|
149
256
|
readonly externals?: readonly ExternalDecl[];
|
|
150
257
|
readonly invariants: readonly Invariant[];
|
|
151
258
|
readonly bounds?: Partial<Bounds>;
|
|
@@ -174,8 +281,6 @@ export declare function d1Param(index: number): string;
|
|
|
174
281
|
* `specs`, which is what records its calls.
|
|
175
282
|
*/
|
|
176
283
|
export declare function refines(name: string, decision: string, effect: EffectSelector, options?: Pick<Refines, "follows" | "state">): Refines;
|
|
177
|
-
export declare function atMostOncePerKey(name: string, effect: EffectSelector, key: string): AtMostOncePerKey;
|
|
178
|
-
export declare function atLeastOnce(name: string, effect: EffectSelector, key: string, expected: readonly JsonValue[]): AtLeastOnce;
|
|
179
284
|
/**
|
|
180
285
|
* Every message's (or request's) `bodyKey` value must appear at least once
|
|
181
286
|
* as `key` in a selected effect: nothing the drive delivered may be lost.
|
|
@@ -216,57 +321,56 @@ export declare function external(name: string, host: string, options?: {
|
|
|
216
321
|
export declare function fetchCall(externalName: string, method?: string): EffectSelector;
|
|
217
322
|
/** Build and validate a scenario spec; throws with every problem listed. */
|
|
218
323
|
export declare function defineScenario(input: CloudflareScenarioInput): ScenarioSpec;
|
|
219
|
-
/**
|
|
220
|
-
interface
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
readonly
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
* "cloudflare:test"`), needed for Durable Object bindings: Eutaxy resets,
|
|
238
|
-
* seeds and snapshots the real objects through them.
|
|
239
|
-
*/
|
|
240
|
-
readonly durableObjects?: DurableObjectTestHelpers;
|
|
324
|
+
/** What the generated test stores in its task meta. */
|
|
325
|
+
interface CheckTransport {
|
|
326
|
+
readonly report: unknown;
|
|
327
|
+
/** Set instead of a report when a module the scenario's `specs` names has no usable annotations. */
|
|
328
|
+
readonly specErrors?: readonly SpecError[];
|
|
329
|
+
readonly worker: {
|
|
330
|
+
readonly entry: string;
|
|
331
|
+
readonly config: string;
|
|
332
|
+
};
|
|
333
|
+
readonly setup: readonly {
|
|
334
|
+
readonly kind: string;
|
|
335
|
+
readonly [key: string]: unknown;
|
|
336
|
+
}[];
|
|
337
|
+
/** The core modules observed (as the scenario's specs name them) and the functions on each. */
|
|
338
|
+
readonly observed?: readonly {
|
|
339
|
+
readonly module: string;
|
|
340
|
+
readonly functions: readonly string[];
|
|
341
|
+
}[];
|
|
241
342
|
}
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
readonly
|
|
245
|
-
readonly
|
|
246
|
-
readonly status: "completed" | "errored";
|
|
247
|
-
/** Queue drive: the acknowledgement that took effect. */
|
|
248
|
-
readonly decision: "ack" | "retry" | null;
|
|
249
|
-
/** HTTP drive: the response status the caller saw (500 for an uncaught exception). */
|
|
250
|
-
readonly response?: number;
|
|
343
|
+
interface SpecError {
|
|
344
|
+
readonly module: string;
|
|
345
|
+
readonly line: number;
|
|
346
|
+
readonly message: string;
|
|
251
347
|
}
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
readonly
|
|
255
|
-
|
|
256
|
-
readonly [table: string]: readonly JsonValue[];
|
|
257
|
-
};
|
|
258
|
-
};
|
|
348
|
+
/** A generated spec module: the module's extracted specs and its compiled predicates. */
|
|
349
|
+
interface SpecEntry {
|
|
350
|
+
readonly specs: ModuleSpecs;
|
|
351
|
+
readonly predicates: (namespace: object, bool: typeof lemmaBool, unresolved: typeof lemmaUnresolved) => ModulePredicates;
|
|
259
352
|
}
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
readonly
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
353
|
+
/** Vite globs, keyed as `import.meta.glob` keys them from `.eutaxy/` (see `globKey`). */
|
|
354
|
+
type ModuleGlob = Readonly<Record<string, () => Promise<unknown>>>;
|
|
355
|
+
interface WorkerdCheckInput {
|
|
356
|
+
/** The scenario module's default export. */
|
|
357
|
+
readonly scenario: ScenarioSpec;
|
|
358
|
+
/** `env` from `cloudflare:workers`. */
|
|
359
|
+
readonly env: object;
|
|
360
|
+
/** The `cloudflare:test` module, for Durable Objects. */
|
|
361
|
+
readonly durableObjects: DurableObjectTestHelpers;
|
|
362
|
+
/** The raw text of the `.sql` files next to the scenario. */
|
|
363
|
+
readonly sqlFiles: Readonly<Record<string, string>>;
|
|
364
|
+
/** The TypeScript modules next to the scenario (the Worker and the spec modules among them). */
|
|
365
|
+
readonly modules: ModuleGlob;
|
|
366
|
+
/** The generated `specs.ts` loaders, by module key. */
|
|
367
|
+
readonly specLoaders: Readonly<Record<string, () => Promise<SpecEntry>>>;
|
|
368
|
+
readonly seed: string;
|
|
369
|
+
readonly maxRuns?: number;
|
|
370
|
+
readonly budgetMs?: number;
|
|
371
|
+
readonly exhaustive?: boolean;
|
|
268
372
|
}
|
|
269
|
-
/** Run
|
|
270
|
-
export declare function
|
|
271
|
-
export type
|
|
373
|
+
/** Run the scenario's check, with its specs observed, and return what the CLI reads back. */
|
|
374
|
+
export declare function checkInWorkerd(input: WorkerdCheckInput): Promise<CheckTransport>;
|
|
375
|
+
export { type CheckTransport, type CloudflarePlatformOptions, type CloudflareRegressionOptions, type CloudflareScenarioInput, type D1Setup, type DifferentialResult, type DurableObjectSetup, type DurableObjectTestHelpers, type HttpCallerOptions, type HttpDrive, type HttpRequestInput, type HttpRequestSpec, type QueueDrive, type QueueHandler, type QueueMessage, type R2Setup, type SpecEntry, type WorkerHandler, type WorkerdCheckInput, type WorkflowSetup, atLeastOnce, atMostOncePerKey };
|
|
272
376
|
//# sourceMappingURL=cloudflare.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloudflare.d.mts","names":[],"sources":["../../cli/src/regression.ts","../../cloudflare/src/check.ts","../../cloudflare/src/d1.ts","../../cloudflare/src/durable-objects.ts","../../cloudflare/src/
|
|
1
|
+
{"version":3,"file":"cloudflare.d.mts","names":[],"sources":["../../cli/src/regression.ts","../../cloudflare/src/check.ts","../../cloudflare/src/d1.ts","../../cloudflare/src/durable-objects.ts","../../cloudflare/src/platform.ts","../../cloudflare/src/differential.ts","../../cloudflare/src/r2.ts","../../cloudflare/src/scenario.ts","../../cli/src/workerd.ts"],"mappings":";;;UAGiB;;WAEN;;WAEA;;WAEA,aAAa,SAAS;;;;;WAKtB;;WAEA;;WAEA;;WAEA;WACA;WACA;;WAEA;aACE;aACA;;;;wBAKG,yBACd,SAAS,UACT,SAAS;;wBCxBK,MACd,MAAM,cACN,UAAU,UACV,UAAS,iBACR,QAAQ;;wBAKW,YACpB,MAAM,cACN,UAAU,UACV,UAAU,iBACT;;wBC2OmB,WACpB,MAAM,aACL;YAAoB,yBAAyB;;;;;;;UCxO/B;WACN;WACA;WACA;;;UCoBM;EACf,OAAO,OAAO,uBAAuB,cAAc,KAAK,0BAA0B;EAClF,OAAO,SAAS,SAAS,cAAc,KAAK,mBAAmB,WAAW,QAAQ;;;KAI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