eutaxy 0.14.0 → 0.15.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/README.md +10 -6
- package/dist/aws.d.mts +28 -2
- package/dist/aws.d.mts.map +1 -1
- package/dist/aws.mjs +13 -2
- package/dist/aws.mjs.map +1 -1
- package/dist/bin.mjs +1 -1
- package/dist/{cli-BppjMaqL.mjs → cli-CzGCMudc.mjs} +637 -55
- package/dist/cli-CzGCMudc.mjs.map +1 -0
- package/dist/cli.d.mts.map +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/cloudflare.d.mts +79 -8
- package/dist/cloudflare.d.mts.map +1 -1
- package/dist/cloudflare.mjs +2 -2
- package/dist/{combinators-Bsd9HKtw.d.mts → combinators-BecOKcmi.d.mts} +7 -1
- package/dist/combinators-BecOKcmi.d.mts.map +1 -0
- package/dist/{combinators-CVjxodAJ.mjs → combinators-CLfsPfhT.mjs} +6 -1
- package/dist/combinators-CLfsPfhT.mjs.map +1 -0
- package/dist/{delivery-invariants-_T9ZMwOJ.mjs → delivery-invariants-BCtvzAfW.mjs} +7 -2
- package/dist/delivery-invariants-BCtvzAfW.mjs.map +1 -0
- package/dist/delivery-invariants-DzMy3iPs.d.mts +10 -0
- package/dist/delivery-invariants-DzMy3iPs.d.mts.map +1 -0
- package/dist/{explore-B7aR_5Hy.d.mts → explore-B52m-wmk.d.mts} +13 -2
- package/dist/explore-B52m-wmk.d.mts.map +1 -0
- package/dist/index.d.mts +25 -3
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +2 -2
- package/dist/index.mjs.map +1 -1
- package/dist/{platform-CCz48WF9.d.mts → platform-Ba1Kvdza.d.mts} +18 -1
- package/dist/platform-Ba1Kvdza.d.mts.map +1 -0
- package/dist/provers-DS44OeEm.mjs.map +1 -1
- package/dist/spec.d.mts +1 -1
- package/dist/spec.mjs +1 -1
- package/dist/{src-ClXnIi6O.mjs → src-nwQA9Xwr.mjs} +9 -3
- package/dist/src-nwQA9Xwr.mjs.map +1 -0
- package/dist/{src-DPCF2XGv.mjs → src-ud5wEfnx.mjs} +9 -1
- package/dist/src-ud5wEfnx.mjs.map +1 -0
- package/dist/{workerd-DVJ8eCLI.mjs → workerd-Be43_PZo.mjs} +160 -39
- package/dist/workerd-Be43_PZo.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/cli-BppjMaqL.mjs.map +0 -1
- package/dist/combinators-Bsd9HKtw.d.mts.map +0 -1
- package/dist/combinators-CVjxodAJ.mjs.map +0 -1
- package/dist/delivery-invariants-DZOBkCMR.d.mts +0 -5
- package/dist/delivery-invariants-DZOBkCMR.d.mts.map +0 -1
- package/dist/delivery-invariants-_T9ZMwOJ.mjs.map +0 -1
- package/dist/explore-B7aR_5Hy.d.mts.map +0 -1
- package/dist/platform-CCz48WF9.d.mts.map +0 -1
- package/dist/src-ClXnIi6O.mjs.map +0 -1
- package/dist/src-DPCF2XGv.mjs.map +0 -1
- package/dist/workerd-DVJ8eCLI.mjs.map +0 -1
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,UA8DiB;WACN;WACA,SAAS;WACT,SAAS;;wBAGE,KAAK,yBAAyB,IAAI,KAAK"}
|
package/dist/cli.mjs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export { t as main } from "./cli-
|
|
1
|
+
export { t as main } from "./cli-CzGCMudc.mjs";
|
package/dist/cloudflare.d.mts
CHANGED
|
@@ -1,13 +1,17 @@
|
|
|
1
|
-
import { C as EffectSelector, S as Refines, _ as Implies, a as PlatformData, b as StateQuery, c as WorkerRef, f as Invariant, g as EveryRow, i as ExternalDecl, k as JsonValue, n as Platform, o as ScenarioSpec, r as Bounds, s as ScriptedResponse, u as AtLeastOnce, v as References, x as Unique, y as RowCondition } from "./platform-
|
|
2
|
-
import { n as atMostOncePerKey, t as atLeastOnce } from "./delivery-invariants-
|
|
3
|
-
import { c as ModuleSpecs, g as Violated, m as ScenarioVerdict, t as ExploreOptions } from "./explore-
|
|
1
|
+
import { C as EffectSelector, S as Refines, _ as Implies, a as PlatformData, b as StateQuery, c as WorkerRef, f as Invariant, g as EveryRow, i as ExternalDecl, k as JsonValue, n as Platform, o as ScenarioSpec, r as Bounds, s as ScriptedResponse, u as AtLeastOnce, v as References, x as Unique, y as RowCondition } from "./platform-Ba1Kvdza.mjs";
|
|
2
|
+
import { n as atMostOncePerKey, t as atLeastOnce } from "./delivery-invariants-DzMy3iPs.mjs";
|
|
3
|
+
import { c as ModuleSpecs, g as Violated, m as ScenarioVerdict, t as ExploreOptions } from "./explore-B52m-wmk.mjs";
|
|
4
|
+
/**
|
|
5
|
+
* What `cloudflareRegressionTest` needs to write the test: import paths of the scenario, the Worker and its
|
|
6
|
+
* schema files, relative to the emitted file, and what the platform was given when the check ran.
|
|
7
|
+
*/
|
|
4
8
|
interface CloudflareRegressionOptions {
|
|
5
9
|
/** Import path of the scenario module, relative to the emitted file. */
|
|
6
10
|
readonly scenarioPath: string;
|
|
7
11
|
/** Import path of the Worker module. */
|
|
8
12
|
readonly workerPath: string;
|
|
9
|
-
/** D1 binding name to schema file path, imported with `?raw`. */
|
|
10
|
-
readonly schemaPaths: Readonly<Record<string, string>>;
|
|
13
|
+
/** D1 binding name to its schema file path, or its files in setup order (joined), imported with `?raw`. */
|
|
14
|
+
readonly schemaPaths: Readonly<Record<string, string | readonly string[]>>;
|
|
11
15
|
/**
|
|
12
16
|
* The time budget the check ran with, when it replaced the scenario's: the
|
|
13
17
|
* replay gets the same, so I/O that finished within it does not time out.
|
|
@@ -116,12 +120,21 @@ interface HttpDrive extends PlatformData {
|
|
|
116
120
|
readonly delaysMs?: readonly number[];
|
|
117
121
|
readonly deadlineMs?: number;
|
|
118
122
|
}
|
|
123
|
+
/**
|
|
124
|
+
* How the HTTP drive's caller resends a request it got no acceptable answer for: up to `retries` times
|
|
125
|
+
* (default 3), on a status `retryOn` rejects (default any non-2xx), after `delaysMs` of virtual time, and
|
|
126
|
+
* not waiting past `deadlineMs`.
|
|
127
|
+
*/
|
|
119
128
|
interface HttpCallerOptions {
|
|
120
129
|
readonly retries?: number;
|
|
121
130
|
readonly retryOn?: "non-2xx" | "5xx";
|
|
122
131
|
readonly delaysMs?: readonly number[];
|
|
123
132
|
readonly deadlineMs?: number;
|
|
124
133
|
}
|
|
134
|
+
/**
|
|
135
|
+
* Drive the Worker's `fetch()` handler with these requests, each resent as `options` say. A request's
|
|
136
|
+
* method defaults to POST with a body and GET without; its id to `req-<n>`, by position.
|
|
137
|
+
*/
|
|
125
138
|
export declare function http(requests: readonly HttpRequestInput[], options?: HttpCallerOptions): HttpDrive;
|
|
126
139
|
/** One message the scenario sends on a connection: text, or a JSON value sent as its text (plain data, as drives are). */
|
|
127
140
|
type WebSocketMessageSpec = {
|
|
@@ -146,10 +159,12 @@ interface WebSocketDrive extends PlatformData {
|
|
|
146
159
|
readonly kind: "websocket";
|
|
147
160
|
readonly connections: readonly WebSocketConnectionSpec[];
|
|
148
161
|
}
|
|
162
|
+
/** One message to send on a connection: its data (a JSON value is sent as its text) and an optional id. */
|
|
149
163
|
interface WebSocketMessageInput {
|
|
150
164
|
readonly id?: string;
|
|
151
165
|
readonly data: JsonValue;
|
|
152
166
|
}
|
|
167
|
+
/** One connection to open: the path of its upgrade request, its headers and the messages to send on it. */
|
|
153
168
|
interface WebSocketConnectionInput {
|
|
154
169
|
/** Defaults to its position: `conn-1`, `conn-2`, … */
|
|
155
170
|
readonly id?: string;
|
|
@@ -158,6 +173,10 @@ interface WebSocketConnectionInput {
|
|
|
158
173
|
/** Message ids default to `<connection>:1`, `<connection>:2`, … */
|
|
159
174
|
readonly messages?: readonly WebSocketMessageInput[];
|
|
160
175
|
}
|
|
176
|
+
/**
|
|
177
|
+
* Drive the Worker over these WebSocket connections: each opened through its `fetch()` and handed to a
|
|
178
|
+
* Durable Object, its messages delivered in order to the object's `webSocketMessage` handler.
|
|
179
|
+
*/
|
|
161
180
|
export declare function websocket(connections: readonly WebSocketConnectionInput[]): WebSocketDrive;
|
|
162
181
|
/** One RPC call; `id` defaults to its position, `args` to none. */
|
|
163
182
|
interface RpcCallInput {
|
|
@@ -189,12 +208,17 @@ interface RpcDrive extends PlatformData {
|
|
|
189
208
|
readonly delaysMs?: readonly number[];
|
|
190
209
|
readonly deadlineMs?: number;
|
|
191
210
|
}
|
|
211
|
+
/**
|
|
212
|
+
* The RPC drive's entrypoint (a named export; default the default export) and how its caller resends a call
|
|
213
|
+
* that threw or got no answer: `retries` (default 0), `delaysMs` and `deadlineMs`, as for `http`.
|
|
214
|
+
*/
|
|
192
215
|
interface RpcCallerOptions {
|
|
193
216
|
readonly entrypoint?: string;
|
|
194
217
|
readonly retries?: number;
|
|
195
218
|
readonly delaysMs?: readonly number[];
|
|
196
219
|
readonly deadlineMs?: number;
|
|
197
220
|
}
|
|
221
|
+
/** Drive a `WorkerEntrypoint` of the Worker with these method calls; a call's id defaults to `call-<n>`. */
|
|
198
222
|
export declare function rpc(calls: readonly RpcCallInput[], options?: RpcCallerOptions): RpcDrive;
|
|
199
223
|
/** One tick of a Cron Trigger: its id and the virtual time it fires, which the handler sees as `scheduledTime`. */
|
|
200
224
|
type CronTickSpec = {
|
|
@@ -215,11 +239,16 @@ interface CronDrive extends PlatformData {
|
|
|
215
239
|
readonly ticks: readonly CronTickSpec[];
|
|
216
240
|
readonly retries: number;
|
|
217
241
|
}
|
|
242
|
+
/** How many ticks of the expression to drive, and how many times a tick whose handler failed is re-run. */
|
|
218
243
|
interface CronOptions {
|
|
219
244
|
/** How many ticks to drive, from the first match on (default 1). */
|
|
220
245
|
readonly ticks?: number;
|
|
221
246
|
readonly retries?: number;
|
|
222
247
|
}
|
|
248
|
+
/**
|
|
249
|
+
* Drive the Worker's `scheduled()` handler with the ticks of a Cron Trigger expression, in Cloudflare's
|
|
250
|
+
* dialect: one tick by default, re-run 0 times by default.
|
|
251
|
+
*/
|
|
223
252
|
export declare function cron(expression: string, options?: CronOptions): CronDrive;
|
|
224
253
|
/** The drives a Cloudflare scenario can have. */
|
|
225
254
|
type Drive = QueueDrive | HttpDrive | RpcDrive | CronDrive | WebSocketDrive;
|
|
@@ -264,6 +293,11 @@ type DurableObjectSqlSeed = {
|
|
|
264
293
|
type SqlRow = {
|
|
265
294
|
readonly [column: string]: JsonValue;
|
|
266
295
|
};
|
|
296
|
+
/**
|
|
297
|
+
* A Durable Object namespace the scenario uses: cleared before each run, the named objects seeded with
|
|
298
|
+
* key-value entries (and with `sql`, a SQLite-backed object's tables and rows), and its storage snapshotted
|
|
299
|
+
* after the run. `alarmsPerObject` caps an object's alarm firings per run (default 3).
|
|
300
|
+
*/
|
|
267
301
|
export declare function durableObject(binding: string, objects?: {
|
|
268
302
|
readonly [name: string]: {
|
|
269
303
|
readonly [key: string]: JsonValue;
|
|
@@ -280,6 +314,7 @@ interface R2Setup extends PlatformData {
|
|
|
280
314
|
readonly binding: string;
|
|
281
315
|
readonly objects: Readonly<Record<string, R2Seed>>;
|
|
282
316
|
}
|
|
317
|
+
/** An R2 bucket the scenario uses: emptied before each run, then seeded with these objects by key. */
|
|
283
318
|
export declare function r2Bucket(binding: string, objects?: Readonly<Record<string, R2Seed>>): R2Setup;
|
|
284
319
|
/**
|
|
285
320
|
* Selects an R2 bucket's operations that completed, a `put` by default; a
|
|
@@ -302,6 +337,10 @@ interface WorkflowSetup extends PlatformData {
|
|
|
302
337
|
/** The Workflow's `name` in the wrangler config, which instances see as `event.workflowName`. */
|
|
303
338
|
readonly name?: string;
|
|
304
339
|
}
|
|
340
|
+
/**
|
|
341
|
+
* A Workflow binding and the class its instances run, an export of the Worker module; `name` is the
|
|
342
|
+
* Workflow's name in the wrangler config, which instances read as `event.workflowName`.
|
|
343
|
+
*/
|
|
305
344
|
export declare function workflow(binding: string, className: string, options?: {
|
|
306
345
|
readonly name?: string;
|
|
307
346
|
}): WorkflowSetup;
|
|
@@ -338,6 +377,10 @@ interface ServiceSetup extends PlatformData {
|
|
|
338
377
|
};
|
|
339
378
|
readonly fetch?: readonly ServiceResponse[];
|
|
340
379
|
}
|
|
380
|
+
/**
|
|
381
|
+
* Script the Worker behind a service binding: its RPC methods answer from `methods` and its `fetch()` from
|
|
382
|
+
* `fetch`, and the real binding is never called. See `ServiceSetup`.
|
|
383
|
+
*/
|
|
341
384
|
export declare function service(binding: string, options?: {
|
|
342
385
|
readonly methods?: {
|
|
343
386
|
readonly [method: string]: ScriptedReply;
|
|
@@ -364,6 +407,10 @@ interface CalleeSetup extends PlatformData {
|
|
|
364
407
|
/** The named export the binding reaches; the default export otherwise. */
|
|
365
408
|
readonly entrypoint?: string;
|
|
366
409
|
}
|
|
410
|
+
/**
|
|
411
|
+
* Run the Worker behind a service binding for real, named by its module and its wrangler config, relative
|
|
412
|
+
* to the scenario; `entrypoint` names the export the binding reaches. See `CalleeSetup`.
|
|
413
|
+
*/
|
|
367
414
|
export declare function callee(binding: string, worker: {
|
|
368
415
|
readonly entry: string;
|
|
369
416
|
readonly config: string;
|
|
@@ -386,6 +433,10 @@ export declare function durableObjectRows(binding: string, object: string, where
|
|
|
386
433
|
* invariants. The snapshot names it `<object>/<table>`.
|
|
387
434
|
*/
|
|
388
435
|
export declare function durableObjectTable(binding: string, object: string, table: string, where?: readonly RowCondition[]): StateQuery;
|
|
436
|
+
/**
|
|
437
|
+
* The input to `defineScenario`: the Worker, the drive, the setup steps, the externals it fetches, the
|
|
438
|
+
* invariants, the bounds (merged with the defaults) and the core modules whose specs run.
|
|
439
|
+
*/
|
|
389
440
|
interface CloudflareScenarioInput {
|
|
390
441
|
readonly name: string;
|
|
391
442
|
readonly worker: WorkerRef;
|
|
@@ -401,7 +452,12 @@ interface CloudflareScenarioInput {
|
|
|
401
452
|
/** Modules of pure core functions with spec files beside them, relative to the scenario (see ScenarioSpec.specs). */
|
|
402
453
|
readonly specs?: readonly string[];
|
|
403
454
|
}
|
|
455
|
+
/** Drive the Worker's `queue()` handler with these messages from the named queue; an id defaults to `msg-<n>`. */
|
|
404
456
|
export declare function queue(name: string, messages: readonly QueueMessage[]): QueueDrive;
|
|
457
|
+
/**
|
|
458
|
+
* A D1 binding the scenario uses: its tables dropped before each run and the schema file applied, relative
|
|
459
|
+
* to the scenario. Several steps on one binding apply their files in order, a migration per file.
|
|
460
|
+
*/
|
|
405
461
|
export declare function d1Schema(binding: string, schemaFile: string): D1Setup;
|
|
406
462
|
/**
|
|
407
463
|
* Effect conventions for D1 (what the proxies record):
|
|
@@ -525,13 +581,18 @@ interface WorkerHandler {
|
|
|
525
581
|
}
|
|
526
582
|
/** A `WorkerEntrypoint` subclass: the Worker's default export when it exposes RPC methods. Its env is its own. */
|
|
527
583
|
type WorkerEntrypointClass = abstract new (ctx: ExecutionContext, env: never) => object;
|
|
584
|
+
/**
|
|
585
|
+
* What `createCloudflarePlatform` needs: the env and the Worker's default export, the schema per D1
|
|
586
|
+
* binding, and for the bindings that need them the test helpers, the module's exports, the callees and
|
|
587
|
+
* the aliases.
|
|
588
|
+
*/
|
|
528
589
|
interface CloudflarePlatformOptions {
|
|
529
590
|
/** The bindings from `cloudflare:workers`. */
|
|
530
591
|
readonly env: object;
|
|
531
592
|
/**
|
|
532
|
-
* The Worker's default export: the handler object, or
|
|
533
|
-
* `WorkerEntrypoint` class
|
|
534
|
-
*
|
|
593
|
+
* The Worker's default export: the handler object, or a
|
|
594
|
+
* `WorkerEntrypoint` class, whose `fetch()`, `queue()` and `scheduled()`
|
|
595
|
+
* are its handlers and whose other methods the `rpc` drive calls.
|
|
535
596
|
*/
|
|
536
597
|
readonly handler: WorkerHandler | WorkerEntrypointClass;
|
|
537
598
|
/** Schema SQL per D1 binding named in the scenario's setup. */
|
|
@@ -564,6 +625,11 @@ interface CloudflarePlatformOptions {
|
|
|
564
625
|
*/
|
|
565
626
|
readonly aliases?: Readonly<Record<string, string>>;
|
|
566
627
|
}
|
|
628
|
+
/**
|
|
629
|
+
* The Cloudflare platform for `check`, run inside workerd under the Cloudflare Vitest plugin: the scenario's
|
|
630
|
+
* drive delivered to the Worker's handlers, its bindings proxied so every call is an effect that faults can
|
|
631
|
+
* hit, and the setup's resources reset before each run and snapshotted after it.
|
|
632
|
+
*/
|
|
567
633
|
export declare function createCloudflarePlatform(options: CloudflarePlatformOptions): Platform;
|
|
568
634
|
/** A type, not an interface, so it is JSON data the comparison takes as it is. */
|
|
569
635
|
type AttemptRecord = {
|
|
@@ -585,6 +651,7 @@ interface Side {
|
|
|
585
651
|
};
|
|
586
652
|
};
|
|
587
653
|
}
|
|
654
|
+
/** What `runDifferential` found: each side's attempts and end state, and where they differ. */
|
|
588
655
|
interface DifferentialResult {
|
|
589
656
|
/** True only when both sides agree and the proxied run touched nothing unmodelled. */
|
|
590
657
|
readonly equal: boolean;
|
|
@@ -640,6 +707,10 @@ interface SpecEntry {
|
|
|
640
707
|
}
|
|
641
708
|
/** Vite globs, keyed as `import.meta.glob` keys them from `.eutaxy/` (see `globKey`). */
|
|
642
709
|
type ModuleGlob = Readonly<Record<string, () => Promise<unknown>>>;
|
|
710
|
+
/**
|
|
711
|
+
* What the generated check test passes to `checkInWorkerd`: the scenario, the bindings and test helpers,
|
|
712
|
+
* the modules and SQL files beside the scenario, the callees, and the exploration options.
|
|
713
|
+
*/
|
|
643
714
|
interface WorkerdCheckInput {
|
|
644
715
|
/** The scenario module's default export. */
|
|
645
716
|
readonly scenario: ScenarioSpec;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"cloudflare.d.mts","names":[],"sources":["../../cli/src/regression.ts","../../cloudflare/src/d1.ts","../../cloudflare/src/r2.ts","../../cloudflare/src/scenario.ts","../../cloudflare/src/callees.ts","../../cloudflare/src/check.ts","../../cloudflare/src/durable-objects.ts","../../cloudflare/src/platform.ts","../../cloudflare/src/differential.ts","../../cli/src/workerd.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"cloudflare.d.mts","names":[],"sources":["../../cli/src/regression.ts","../../cloudflare/src/d1.ts","../../cloudflare/src/r2.ts","../../cloudflare/src/scenario.ts","../../cloudflare/src/callees.ts","../../cloudflare/src/check.ts","../../cloudflare/src/durable-objects.ts","../../cloudflare/src/platform.ts","../../cloudflare/src/differential.ts","../../cli/src/workerd.ts"],"mappings":";;;;;;;UAOiB;;WAEN;;WAEA;;WAEA,aAAa,SAAS;;;;;WAKtB;;WAEA;;WAEA;;;;;WAKA;;WAEA;;;;;;WAMA,UAAU,SACjB;aAGa;aACA;aACA;aACA,QAAQ,SAAS;;;;;;WAQvB;;WAEA,UAAU,SAAS;WACnB;WACA;;WAEA;aACE;aACA;;;;wBA0BG,yBACd,SAAS,UACT,SAAS;;wBC0NW,WACpB,MAAM,aACL;YAAoB,yBAAyB;;;KChEpC;WAGG;WACA,iBAAiB,SAAS;WAC1B,eAAe,SAAS;;;UCpNtB;WACN;WACA,MAAM;;;UAIA,mBAAmB;WACzB;WACA;WACA;aAA8B;aAAqB,MAAM;;;;UAInD;WACN;WACA;WACA;WACA;cAAsB;;;WAEtB,OAAO;;;KAIN;WACD;WACA;WACA;WACA;cAAqB;;;WAErB,OAAO;;;;;;;;;;;;UAaD,kBAAkB;WACxB;WACA,mBAAmB;WACnB;WACA;WACA;WACA;;;;;;;UAQM;WACN;WACA;WACA;WACA;;;;;;wBAOK,KACd,mBAAmB,oBACnB,UAAS,oBACR;;KAkBS;WACD;WACA,MAAM;;;KAIL;WACD;WACA;WACA,SAAS,SAAS;WAClB,mBAAmB;;;;;;;;;UAUb,uBAAuB;WAC7B;WACA,sBAAsB;;;UAIhB;WACN;WACA,MAAM;;;UAIA;;WAEN;WACA;WACA,UAAU,SAAS;;WAEnB,oBAAoB;;;;;;wBAOf,UAAU,sBAAsB,6BAA6B;;UAmB5D;WACN;WACA;WACA,gBAAgB;;;KAIf;WACD;WACA;WACA,eAAe;;;;;;;;;;;;UAaT,iBAAiB;W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are.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { r as atMostOncePerKey, t as atLeastOnce } from "./delivery-invariants-
|
|
2
|
-
import { A as r2Bucket, B as webSocketReceived, C as external, D as implies, E as httpResponse, F as rpc, G as cloudflareRegressionTest, H as workflow, I as rpcResponse, L as service, M as r2Rows, N as references, O as queue, P as refines, R as serviceCall, S as everyRow, T as http, U as workflowRows, V as websocket, W as workflowStep, _ as d1Write, a as createCloudflarePlatform, b as durableObjectRows, c as expectHolds, d as callee, f as cron, g as d1Schema, h as d1Rows, i as runDifferential, j as r2Op, k as queueAck, l as calleeEnv, m as d1Read, o as snapshotD1, p as d1Param, s as check, t as checkInWorkerd, u as atLeastOncePerMessage, v as defineScenario, w as fetchCall, x as durableObjectTable, y as durableObject, z as unique } from "./workerd-
|
|
1
|
+
import { r as atMostOncePerKey, t as atLeastOnce } from "./delivery-invariants-BCtvzAfW.mjs";
|
|
2
|
+
import { A as r2Bucket, B as webSocketReceived, C as external, D as implies, E as httpResponse, F as rpc, G as cloudflareRegressionTest, H as workflow, I as rpcResponse, L as service, M as r2Rows, N as references, O as queue, P as refines, R as serviceCall, S as everyRow, T as http, U as workflowRows, V as websocket, W as workflowStep, _ as d1Write, a as createCloudflarePlatform, b as durableObjectRows, c as expectHolds, d as callee, f as cron, g as d1Schema, h as d1Rows, i as runDifferential, j as r2Op, k as queueAck, l as calleeEnv, m as d1Read, o as snapshotD1, p as d1Param, s as check, t as checkInWorkerd, u as atLeastOncePerMessage, v as defineScenario, w as fetchCall, x as durableObjectTable, y as durableObject, z as unique } from "./workerd-Be43_PZo.mjs";
|
|
3
3
|
export { atLeastOnce, atLeastOncePerMessage, atMostOncePerKey, callee, calleeEnv, check, checkInWorkerd, cloudflareRegressionTest, createCloudflarePlatform, cron, d1Param, d1Read, d1Rows, d1Schema, d1Write, defineScenario, durableObject, durableObjectRows, durableObjectTable, everyRow, expectHolds, external, fetchCall, http, httpResponse, implies, queue, queueAck, r2Bucket, r2Op, r2Rows, references, refines, rpc, rpcResponse, runDifferential, service, serviceCall, snapshotD1, unique, webSocketReceived, websocket, workflow, workflowRows, workflowStep };
|
|
@@ -29,14 +29,20 @@ interface Total<F extends Fn> {
|
|
|
29
29
|
readonly kind: "total";
|
|
30
30
|
readonly fn: F;
|
|
31
31
|
}
|
|
32
|
+
/** A spec file's export: a `forall` claim or a `total` claim. */
|
|
32
33
|
type Spec = Forall<Fn> | Total<Fn>;
|
|
34
|
+
/**
|
|
35
|
+
* Claim that `ensures` holds for every input of `fn` where `when` holds; `sample` narrows only the inputs
|
|
36
|
+
* the `TESTED` rung draws. See `Forall`.
|
|
37
|
+
*/
|
|
33
38
|
declare function forall<F extends Fn>(fn: F, property: {
|
|
34
39
|
readonly sample?: (...args: Parameters<F>) => boolean;
|
|
35
40
|
readonly when?: (...args: Parameters<F>) => boolean;
|
|
36
41
|
readonly ensures: (...args: Parameters<F>) => boolean;
|
|
37
42
|
}): Forall<F>;
|
|
43
|
+
/** Claim that `fn` terminates on every input of its parameter types; only an engine can establish it. */
|
|
38
44
|
declare function total<F extends Fn>(fn: F): Total<F>;
|
|
39
45
|
/** Whether a spec file's export is one of the two spec shapes. */
|
|
40
46
|
declare function isSpec(value: unknown): value is Spec;
|
|
41
47
|
export { forall as a, Total as i, Forall as n, isSpec as o, Spec as r, total as s, Fn as t };
|
|
42
|
-
//# sourceMappingURL=combinators-
|
|
48
|
+
//# sourceMappingURL=combinators-BecOKcmi.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"combinators-BecOKcmi.d.mts","names":[],"sources":["../../spec/src/combinators.ts"],"mappings":";;;;;;;;;KAUY,SAAS;;;;;;;;;;UAWJ,OAAO,UAAU;WACvB;WACA,IAAI;WACJ,aAAa,MAAM,WAAW;WAC9B,WAAW,MAAM,WAAW;WAC5B,aAAa,MAAM,WAAW;;;UAIxB,MAAM,UAAU;WACtB;WACA,IAAI;;;KAIH,OAAO,OAAO,MAAM,MAAM;;;;;iBAMtB,OAAO,UAAU,IAC/B,IAAI,GACJ;WACW,aAAa,MAAM,WAAW;WAC9B,WAAW,MAAM,WAAW;WAC5B,aAAa,MAAM,WAAW;IAExC,OAAO;;iBAWM,MAAM,UAAU,IAAI,IAAI,IAAI,MAAM;;iBAKlC,OAAO,iBAAiB,SAAS"}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
1
|
// packages/spec/src/combinators.ts
|
|
2
|
+
/**
|
|
3
|
+
* Claim that `ensures` holds for every input of `fn` where `when` holds; `sample` narrows only the inputs
|
|
4
|
+
* the `TESTED` rung draws. See `Forall`.
|
|
5
|
+
*/
|
|
2
6
|
function forall(fn, property) {
|
|
3
7
|
return {
|
|
4
8
|
kind: "forall",
|
|
@@ -8,6 +12,7 @@ function forall(fn, property) {
|
|
|
8
12
|
ensures: property.ensures
|
|
9
13
|
};
|
|
10
14
|
}
|
|
15
|
+
/** Claim that `fn` terminates on every input of its parameter types; only an engine can establish it. */
|
|
11
16
|
function total(fn) {
|
|
12
17
|
return {
|
|
13
18
|
kind: "total",
|
|
@@ -24,4 +29,4 @@ function isSpec(value) {
|
|
|
24
29
|
}
|
|
25
30
|
export { isSpec as n, total as r, forall as t };
|
|
26
31
|
|
|
27
|
-
//# sourceMappingURL=combinators-
|
|
32
|
+
//# sourceMappingURL=combinators-CLfsPfhT.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"combinators-CLfsPfhT.mjs","names":[],"sources":["../../spec/src/combinators.ts"],"sourcesContent":["/**\n * What a spec file writes: `forall(f, { sample, when, ensures })` and `total(f)`.\n * Both return plain data holding the function itself, so the user's\n * compiler types the arrows' parameters as `f`'s and a spec that does not\n * match its function does not compile. Nothing here runs a check: the\n * simulator's rungs evaluate the arrows on inputs, and the engines read\n * the spec file's text.\n */\n\n/** Any function; `never[]` so that every parameter list is accepted. */\nexport type Fn = (...args: never[]) => unknown;\n\n/**\n * A universally quantified claim: for every input of `fn`'s parameter\n * types where `when` holds, `ensures` holds. `ensures` is evaluated only\n * where `when` does, so a guard such as `c !== null` protects what follows.\n * `sample` is not part of the claim: it limits the inputs the `TESTED`\n * rung draws (to keep each evaluation small, say), and the verdict says\n * so; inputs the simulator passed are checked whatever it says, and an\n * engine proves the claim for every input.\n */\nexport interface Forall<F extends Fn> {\n readonly kind: \"forall\";\n readonly fn: F;\n readonly sample?: (...args: Parameters<F>) => boolean;\n readonly when?: (...args: Parameters<F>) => boolean;\n readonly ensures: (...args: Parameters<F>) => boolean;\n}\n\n/** The claim that `fn` terminates on every input of its parameter types. */\nexport interface Total<F extends Fn> {\n readonly kind: \"total\";\n readonly fn: F;\n}\n\n/** A spec file's export: a `forall` claim or a `total` claim. */\nexport type Spec = Forall<Fn> | Total<Fn>;\n\n/**\n * Claim that `ensures` holds for every input of `fn` where `when` holds; `sample` narrows only the inputs\n * the `TESTED` rung draws. See `Forall`.\n */\nexport function forall<F extends Fn>(\n fn: F,\n property: {\n readonly sample?: (...args: Parameters<F>) => boolean;\n readonly when?: (...args: Parameters<F>) => boolean;\n readonly ensures: (...args: Parameters<F>) => boolean;\n },\n): Forall<F> {\n return {\n kind: \"forall\",\n fn,\n ...(property.sample === undefined ? {} : { sample: property.sample }),\n ...(property.when === undefined ? {} : { when: property.when }),\n ensures: property.ensures,\n };\n}\n\n/** Claim that `fn` terminates on every input of its parameter types; only an engine can establish it. */\nexport function total<F extends Fn>(fn: F): Total<F> {\n return { kind: \"total\", fn };\n}\n\n/** Whether a spec file's export is one of the two spec shapes. */\nexport function isSpec(value: unknown): value is Spec {\n if (typeof value !== \"object\" || value === null) return false;\n const v = value as {\n kind?: unknown;\n fn?: unknown;\n ensures?: unknown;\n when?: unknown;\n sample?: unknown;\n };\n if (typeof v.fn !== \"function\") return false;\n if (v.kind === \"total\") return true;\n return (\n v.kind === \"forall\" &&\n typeof v.ensures === \"function\" &&\n (v.when === undefined || typeof v.when === \"function\") &&\n (v.sample === undefined || typeof v.sample === \"function\")\n );\n}\n"],"mappings":";;;;;AA0CA,SAAgB,OACd,IACA,UAKW;CACX,OAAO;EACL,MAAM;EACN;EACA,GAAI,SAAS,WAAW,KAAA,IAAY,CAAC,IAAI,EAAE,QAAQ,SAAS,OAAO;EACnE,GAAI,SAAS,SAAS,KAAA,IAAY,CAAC,IAAI,EAAE,MAAM,SAAS,KAAK;EAC7D,SAAS,SAAS;CACpB;AACF;;AAGA,SAAgB,MAAoB,IAAiB;CACnD,OAAO;EAAE,MAAM;EAAS;CAAG;AAC7B;;AAGA,SAAgB,OAAO,OAA+B;CACpD,IAAI,OAAO,UAAU,YAAY,UAAU,MAAM,OAAO;CACxD,MAAM,IAAI;CAOV,IAAI,OAAO,EAAE,OAAO,YAAY,OAAO;CACvC,IAAI,EAAE,SAAS,SAAS,OAAO;CAC/B,OACE,EAAE,SAAS,YACX,OAAO,EAAE,YAAY,eACpB,EAAE,SAAS,KAAA,KAAa,OAAO,EAAE,SAAS,gBAC1C,EAAE,WAAW,KAAA,KAAa,OAAO,EAAE,WAAW;AAEnD"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { I as getPath } from "./src-
|
|
1
|
+
import { I as getPath } from "./src-ud5wEfnx.mjs";
|
|
2
2
|
// packages/core/src/delivery.ts
|
|
3
3
|
/** The invocation one attempt of an event runs as: `<event>#<attempt>`, so a schedule's faults stay keyed when other events are removed. */
|
|
4
4
|
function invocationOf(event) {
|
|
@@ -23,6 +23,10 @@ function redelivery(event, limit, bounds) {
|
|
|
23
23
|
};
|
|
24
24
|
}
|
|
25
25
|
// packages/core/src/delivery-invariants.ts
|
|
26
|
+
/**
|
|
27
|
+
* No two selected effects share the value at `key` (a dot path into the effect's payload): nothing
|
|
28
|
+
* happened twice for one key, a payment recorded twice, a message sent twice.
|
|
29
|
+
*/
|
|
26
30
|
function atMostOncePerKey(name, effect, key) {
|
|
27
31
|
return {
|
|
28
32
|
kind: "atMostOncePerKey",
|
|
@@ -31,6 +35,7 @@ function atMostOncePerKey(name, effect, key) {
|
|
|
31
35
|
key
|
|
32
36
|
};
|
|
33
37
|
}
|
|
38
|
+
/** Every value in `expected` appears at least once as `key` in a selected effect: nothing was lost. */
|
|
34
39
|
function atLeastOnce(name, effect, key, expected) {
|
|
35
40
|
return {
|
|
36
41
|
kind: "atLeastOnce",
|
|
@@ -59,4 +64,4 @@ function atLeastOncePerMessage(name, events, effect, key, bodyKey) {
|
|
|
59
64
|
}
|
|
60
65
|
export { redelivery as a, invocationOf as i, atLeastOncePerMessage as n, atMostOncePerKey as r, atLeastOnce as t };
|
|
61
66
|
|
|
62
|
-
//# sourceMappingURL=delivery-invariants-
|
|
67
|
+
//# sourceMappingURL=delivery-invariants-BCtvzAfW.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delivery-invariants-BCtvzAfW.mjs","names":[],"sources":["../../core/src/delivery.ts","../../core/src/delivery-invariants.ts"],"sourcesContent":["/**\n * The delivery conventions every platform shares, and the differential\n * runner's raw sides with them: how an attempt names its invocation, and\n * the redelivery rule, which applies the same reading of a platform's limit\n * without any of its proxy code.\n */\n\nimport type { EventRef } from \"./platform.ts\";\nimport type { Bounds } from \"./scenario.ts\";\n\n/** The invocation one attempt of an event runs as: `<event>#<attempt>`, so a schedule's faults stay keyed when other events are removed. */\nexport function invocationOf(event: EventRef): string {\n return `${event.id}#${event.attempt}`;\n}\n\n/**\n * The next attempt of an event that was not handled (a message not\n * acknowledged or deleted, a request its caller resends, an alarm that\n * failed), or null when it is dropped (dead-lettered, given up on). It is\n * delivered again while both the platform's own limit on redeliveries\n * (Queues' `max_retries`, the caller's `retries`, SQS's `maxReceiveCount`\n * less the first delivery, an alarm's six retries) and the scenario's\n * `maxRedeliveries` leave room; the redeliveries so far are `attempt - 1`.\n * Pure.\n */\nexport function redelivery(\n event: EventRef,\n limit: number,\n bounds: Pick<Bounds, \"maxRedeliveries\">,\n): EventRef | null {\n const redeliveries = event.attempt - 1;\n if (redeliveries >= limit || redeliveries >= bounds.maxRedeliveries) return null;\n return { ...event, attempt: event.attempt + 1 };\n}\n","/**\n * Constructors for the delivery invariants every platform's scenarios use:\n * nothing delivered twice, nothing lost. Platforms wrap them to take their\n * own drive shapes.\n */\n\nimport type { JsonValue } from \"./canonical-json.ts\";\nimport type { AtLeastOnce, AtMostOncePerKey } from \"./invariants.ts\";\nimport { type EffectSelector, getPath } from \"./selectors.ts\";\n\n/**\n * No two selected effects share the value at `key` (a dot path into the effect's payload): nothing\n * happened twice for one key, a payment recorded twice, a message sent twice.\n */\nexport function atMostOncePerKey(\n name: string,\n effect: EffectSelector,\n key: string,\n): AtMostOncePerKey {\n return { kind: \"atMostOncePerKey\", name, effect, key };\n}\n\n/** Every value in `expected` appears at least once as `key` in a selected effect: nothing was lost. */\nexport function atLeastOnce(\n name: string,\n effect: EffectSelector,\n key: string,\n expected: readonly JsonValue[],\n): AtLeastOnce {\n return { kind: \"atLeastOnce\", name, effect, key, expected };\n}\n\n/**\n * Every event's `bodyKey` value must appear at least once as `key` in a\n * selected effect. The expected keys are re-derived from the bodies that\n * remain when shrinking removes events.\n */\nexport function atLeastOncePerMessage(\n name: string,\n events: readonly { readonly id: string; readonly body: JsonValue }[],\n effect: EffectSelector,\n key: string,\n bodyKey: string,\n): AtLeastOnce {\n const expected: JsonValue[] = [];\n for (const e of events) {\n const v = getPath(e.body, bodyKey);\n if (v === undefined)\n throw new Error(`event ${e.id} has no ${JSON.stringify(bodyKey)} in its body`);\n expected.push(v);\n }\n return { ...atLeastOnce(name, effect, key, expected), perMessage: { bodyKey } };\n}\n"],"mappings":";;;AAWA,SAAgB,aAAa,OAAyB;CACpD,OAAO,GAAG,MAAM,GAAG,GAAG,MAAM;AAC9B;;;;;;;;;;;AAYA,SAAgB,WACd,OACA,OACA,QACiB;CACjB,MAAM,eAAe,MAAM,UAAU;CACrC,IAAI,gBAAgB,SAAS,gBAAgB,OAAO,iBAAiB,OAAO;CAC5E,OAAO;EAAE,GAAG;EAAO,SAAS,MAAM,UAAU;CAAE;AAChD;;;;;;ACnBA,SAAgB,iBACd,MACA,QACA,KACkB;CAClB,OAAO;EAAE,MAAM;EAAoB;EAAM;EAAQ;CAAI;AACvD;;AAGA,SAAgB,YACd,MACA,QACA,KACA,UACa;CACb,OAAO;EAAE,MAAM;EAAe;EAAM;EAAQ;EAAK;CAAS;AAC5D;;;;;;AAOA,SAAgB,sBACd,MACA,QACA,QACA,KACA,SACa;CACb,MAAM,WAAwB,CAAC;CAC/B,KAAK,MAAM,KAAK,QAAQ;EACtB,MAAM,IAAI,QAAQ,EAAE,MAAM,OAAO;EACjC,IAAI,MAAM,KAAA,GACR,MAAM,IAAI,MAAM,SAAS,EAAE,GAAG,UAAU,KAAK,UAAU,OAAO,EAAE,aAAa;EAC/E,SAAS,KAAK,CAAC;CACjB;CACA,OAAO;EAAE,GAAG,YAAY,MAAM,QAAQ,KAAK,QAAQ;EAAG,YAAY,EAAE,QAAQ;CAAE;AAChF"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { C as EffectSelector, d as AtMostOncePerKey, k as JsonValue, u as AtLeastOnce } from "./platform-Ba1Kvdza.mjs";
|
|
2
|
+
/**
|
|
3
|
+
* No two selected effects share the value at `key` (a dot path into the effect's payload): nothing
|
|
4
|
+
* happened twice for one key, a payment recorded twice, a message sent twice.
|
|
5
|
+
*/
|
|
6
|
+
declare function atMostOncePerKey(name: string, effect: EffectSelector, key: string): AtMostOncePerKey;
|
|
7
|
+
/** Every value in `expected` appears at least once as `key` in a selected effect: nothing was lost. */
|
|
8
|
+
declare function atLeastOnce(name: string, effect: EffectSelector, key: string, expected: readonly JsonValue[]): AtLeastOnce;
|
|
9
|
+
export { atMostOncePerKey as n, atLeastOnce as t };
|
|
10
|
+
//# sourceMappingURL=delivery-invariants-DzMy3iPs.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"delivery-invariants-DzMy3iPs.d.mts","names":[],"sources":["../../core/src/delivery-invariants.ts"],"mappings":";;;;;iBAcgB,iBACd,cACA,QAAQ,gBACR,cACC;;iBAKa,YACd,cACA,QAAQ,gBACR,aACA,mBAAmB,cAClB"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
import { O as Schedule, n as Platform, o as ScenarioSpec, p as Violation, r as Bounds, w as EffectLog } from "./platform-
|
|
1
|
+
import { O as Schedule, n as Platform, o as ScenarioSpec, p as Violation, r as Bounds, w as EffectLog } from "./platform-Ba1Kvdza.mjs";
|
|
2
|
+
/** How far exploration got: runs, effect points, faults injected and time taken, and coverage when exhaustive. */
|
|
2
3
|
interface BoundsReached {
|
|
3
4
|
readonly runs: number;
|
|
4
5
|
readonly effectPoints: number;
|
|
@@ -27,6 +28,7 @@ interface Shrunk {
|
|
|
27
28
|
readonly eventsRemoved: number;
|
|
28
29
|
readonly runs: number;
|
|
29
30
|
}
|
|
31
|
+
/** An invariant broke: the violation, the shrunk schedule that reproduces it and its trace. */
|
|
30
32
|
interface Violated extends VerdictBase {
|
|
31
33
|
readonly kind: "VIOLATED";
|
|
32
34
|
readonly violation: Violation;
|
|
@@ -37,16 +39,19 @@ interface Violated extends VerdictBase {
|
|
|
37
39
|
readonly keptEvents: readonly string[];
|
|
38
40
|
readonly shrunk: Shrunk;
|
|
39
41
|
}
|
|
42
|
+
/** No violation within the stated bounds; not a proof. */
|
|
40
43
|
interface Bounded extends VerdictBase {
|
|
41
44
|
readonly kind: "BOUNDED";
|
|
42
45
|
readonly bounds: Bounds;
|
|
43
46
|
}
|
|
44
47
|
type UnsupportedCause = "unsupported_api" | "not_replayable" | "module_state_leak" | "unsupported_bounds";
|
|
48
|
+
/** The run did something the simulation cannot control or replay, so no claim is made: the cause and the reason. */
|
|
45
49
|
interface Unsupported extends VerdictBase {
|
|
46
50
|
readonly kind: "UNSUPPORTED";
|
|
47
51
|
readonly cause: UnsupportedCause;
|
|
48
52
|
readonly reason: string;
|
|
49
53
|
}
|
|
54
|
+
/** A scenario's verdict: `VIOLATED`, `BOUNDED` or `UNSUPPORTED`. */
|
|
50
55
|
type ScenarioVerdict = Violated | Bounded | Unsupported;
|
|
51
56
|
/** One line per verdict, for error messages; full rendering lives in `report`. */
|
|
52
57
|
declare function describeVerdict(v: ScenarioVerdict): string;
|
|
@@ -186,6 +191,7 @@ interface ModuleSpecs {
|
|
|
186
191
|
readonly functions: readonly FunctionSpec[];
|
|
187
192
|
readonly errors: readonly SpecError[];
|
|
188
193
|
}
|
|
194
|
+
/** How `explore` searches: the seed, a cap on runs, the time budget, the share of runs with faults, and exhaustive mode. */
|
|
189
195
|
interface ExploreOptions {
|
|
190
196
|
readonly seed: number | string;
|
|
191
197
|
/** Hard cap on runs, in addition to the scenario's time budget. */
|
|
@@ -228,6 +234,11 @@ interface ExploreOptions {
|
|
|
228
234
|
}
|
|
229
235
|
/** Re-run a recorded schedule exactly. */
|
|
230
236
|
declare function replay(spec: ScenarioSpec, platform: Platform, schedule: Schedule): Promise<EffectLog>;
|
|
237
|
+
/**
|
|
238
|
+
* Explore a scenario on a platform: run it under schedules drawn from the seed (or every schedule within
|
|
239
|
+
* the bounds, when exhaustive), shrink the first violation found, and return the verdict. At most 100 runs
|
|
240
|
+
* unless `maxRuns` says otherwise.
|
|
241
|
+
*/
|
|
231
242
|
declare function explore(scenario: ScenarioSpec, platform: Platform, options: ExploreOptions): Promise<ScenarioVerdict>;
|
|
232
243
|
export { describeVerdict as _, Binder as a, ModuleSpecs as c, SpecType as d, Bounded as f, Violated as g, Unsupported as h, Arrow as i, Property as l, ScenarioVerdict as m, explore as n, FunctionSpec as o, BoundsReached as p, replay as r, Hint as s, ExploreOptions as t, SpecError as u };
|
|
233
|
-
//# sourceMappingURL=explore-
|
|
244
|
+
//# sourceMappingURL=explore-B52m-wmk.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"explore-B52m-wmk.d.mts","names":[],"sources":["../../core/src/verdict.ts","../../spec/src/ir.ts","../../engine/src/explore.ts"],"mappings":";;UAQiB;WACN;WACA;WACA;WACA;;;;;;;WAOA;aACE;aACA;aACA;;;UAIH;WACC;WACA;WACA,SAAS;WACT;;UAGM;WACN;WACA;WACA;;;UAIM,iBAAiB;WACvB;WACA,WAAW;;WAEX,OAAO;WACP,UAAU;;WAEV;WACA,QAAQ;;;UAIF,gBAAgB;WACtB;WACA,QAAQ;;KAGP;;UAOK,oBAAoB;WAC1B;WACA,OAAO;WACP;;;KAIC,kBAAkB,WAAW,UAAU;;iBAGnC,gBAAgB,GAAG;;;;;;;;;;;KC/DvB;WACG;;WACA;;WACA;;WACA;;WACA;WAA0B;;WAC1B;;WACA;;WAEA;;WAEA;WACA,iBAAiB;;WAEjB;WAAwB,kBAAkB;;;;WAE1C;WAAwB,SAAS;;WACjC;WAA0B;;UAExB;WACN;WACA,MAAM;;;UAIA;WACN;WACA;;;;;;;UAQM;WACN;WACA,QAAQ;WACR,QAAQ;WACR;aAAmB;aAA0B;;;;UAIvC;;WAEN;WACA,MAAM;;;UAIA;WACN;WACA,MAAM;WACN,OAAO;;;UAID;;WAEN;;WAEA;WACA;;WAEA;;;;;;;UAQM;;WAEN;WACA;;WAEA,kBAAkB;;WAElB,SAAS;WACT,OAAO;WACP,UAAU;;;;;WAKV;aAA6B;aAAwB;;;WAErD;;WAEA;;;UAIM;WACN;WACA,iBAAiB;WACjB,qBAAqB;;WAErB;;WAEA;;;UAIM;WACN;WACA;WACA;;;UAIM;WACN,oBAAoB;WACpB,iBAAiB;;;UChGX;WACN;;WAEA;;;;;;;;WAQA;;;;;;;WAOA;;WAEA;;WAEA;;;;;;WAMA;;;;;;;;WAQA;aAAkC;;;;iBAsKvB,OACpB,MAAM,cACN,UAAU,UACV,UAAU,WACT,QAAQ;;;;;;iBASW,QACpB,UAAU,cACV,UAAU,UACV,SAAS,iBACR,QAAQ"}
|
package/dist/index.d.mts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { C as EffectSelector, D as FaultKind, E as FaultDecision, O as Schedule, S as Refines, T as EffectRecord, _ as Implies, b as StateQuery, d as AtMostOncePerKey, f as Invariant, g as EveryRow, h as checkInvariants, l as validateScenario, m as checkInvariant, n as Platform, o as ScenarioSpec, p as Violation, r as Bounds, t as EventRef, u as AtLeastOnce, w as EffectLog, x as Unique, y as RowCondition } from "./platform-
|
|
2
|
-
import { _ as describeVerdict, a as Binder, c as ModuleSpecs, d as SpecType, f as Bounded, g as Violated, h as Unsupported, i as Arrow, l as Property, m as ScenarioVerdict, n as explore, o as FunctionSpec, p as BoundsReached, r as replay, s as Hint, t as ExploreOptions, u as SpecError } from "./explore-
|
|
3
|
-
import { n as Forall, t as Fn } from "./combinators-
|
|
1
|
+
import { C as EffectSelector, D as FaultKind, E as FaultDecision, O as Schedule, S as Refines, T as EffectRecord, _ as Implies, b as StateQuery, d as AtMostOncePerKey, f as Invariant, g as EveryRow, h as checkInvariants, l as validateScenario, m as checkInvariant, n as Platform, o as ScenarioSpec, p as Violation, r as Bounds, t as EventRef, u as AtLeastOnce, w as EffectLog, x as Unique, y as RowCondition } from "./platform-Ba1Kvdza.mjs";
|
|
2
|
+
import { _ as describeVerdict, a as Binder, c as ModuleSpecs, d as SpecType, f as Bounded, g as Violated, h as Unsupported, i as Arrow, l as Property, m as ScenarioVerdict, n as explore, o as FunctionSpec, p as BoundsReached, r as replay, s as Hint, t as ExploreOptions, u as SpecError } from "./explore-B52m-wmk.mjs";
|
|
3
|
+
import { n as Forall, t as Fn } from "./combinators-BecOKcmi.mjs";
|
|
4
4
|
/**
|
|
5
5
|
* Spec verdicts: what is known about one property of one pure function.
|
|
6
6
|
* Kept apart from scenario verdicts in every report. The ladder runs
|
|
@@ -18,6 +18,7 @@ interface SpecVerdictBase {
|
|
|
18
18
|
readonly text: string;
|
|
19
19
|
readonly assumptions: readonly string[];
|
|
20
20
|
}
|
|
21
|
+
/** The property held on every distinct input the simulator passed the function during the scenario's runs. */
|
|
21
22
|
interface Checked extends SpecVerdictBase {
|
|
22
23
|
readonly kind: "CHECKED";
|
|
23
24
|
/** Distinct inputs the property was evaluated on. */
|
|
@@ -49,6 +50,7 @@ interface Counterexample {
|
|
|
49
50
|
/** Set when evaluating the property threw instead of returning false. */
|
|
50
51
|
readonly error?: string;
|
|
51
52
|
}
|
|
53
|
+
/** A counterexample breaks the property, found by the simulator's inputs, generated ones, or an engine. */
|
|
52
54
|
interface Refuted extends SpecVerdictBase {
|
|
53
55
|
readonly kind: "REFUTED";
|
|
54
56
|
/** The rung that found the counterexample: a rung of the simulator, or an engine by name. */
|
|
@@ -86,11 +88,13 @@ interface Conflict extends SpecVerdictBase {
|
|
|
86
88
|
};
|
|
87
89
|
}
|
|
88
90
|
type SpecUnknownCause = "gave_up" | "unsupported" | "unavailable";
|
|
91
|
+
/** Nothing is known about the property: the engine gave up, the construct is not supported, or no engine was available. */
|
|
89
92
|
interface SpecUnknown extends SpecVerdictBase {
|
|
90
93
|
readonly kind: "UNKNOWN";
|
|
91
94
|
readonly cause: SpecUnknownCause;
|
|
92
95
|
readonly reason: string;
|
|
93
96
|
}
|
|
97
|
+
/** What is known about one property of one pure function, from the highest rung that reached it. */
|
|
94
98
|
type SpecVerdict = Checked | Tested | Proven | Refuted | Conflict | SpecUnknown;
|
|
95
99
|
/** One line per spec verdict, for error messages; full rendering lives in `report`. */
|
|
96
100
|
export declare function describeSpecVerdict(v: SpecVerdict): string;
|
|
@@ -107,7 +111,9 @@ interface CheckedInput {
|
|
|
107
111
|
/** Why the function's calls could not be observed, when they could not. */
|
|
108
112
|
readonly unobservable?: string;
|
|
109
113
|
}
|
|
114
|
+
/** The `CHECKED` rung: evaluate the property on every distinct input the simulator passed the function. */
|
|
110
115
|
export declare function checkedRung(input: CheckedInput): SpecVerdict;
|
|
116
|
+
/** The `TESTED` rung's seed, and how many distinct generated inputs a property must hold on (default 100). */
|
|
111
117
|
interface TestedOptions {
|
|
112
118
|
/** The check's seed; each property derives its own stream from it and its name. */
|
|
113
119
|
readonly seed: string;
|
|
@@ -121,7 +127,9 @@ interface TestedInput extends TestedOptions {
|
|
|
121
127
|
/** The spec file's export, or undefined when it could not be loaded. */
|
|
122
128
|
readonly spec: Forall<Fn> | undefined;
|
|
123
129
|
}
|
|
130
|
+
/** The `TESTED` rung: evaluate the property on inputs generated from its binders' domains, drawn from the seed. */
|
|
124
131
|
export declare function testedRung(input: TestedInput): SpecVerdict;
|
|
132
|
+
/** How far `specLadder` climbs: the `TESTED` rung's options (or none), and whether a scenario ran for `CHECKED`. */
|
|
125
133
|
interface LadderOptions {
|
|
126
134
|
/** Run the `TESTED` rung with these options; `false` stops the ladder at `CHECKED`. */
|
|
127
135
|
readonly tested?: TestedOptions | false;
|
|
@@ -130,10 +138,12 @@ interface LadderOptions {
|
|
|
130
138
|
}
|
|
131
139
|
/** One property through the ladder's rungs. */
|
|
132
140
|
export declare function specLadder(input: CheckedInput, options?: LadderOptions): SpecVerdict;
|
|
141
|
+
/** A proof engine's name and version, as verdicts record it. */
|
|
133
142
|
interface EngineId {
|
|
134
143
|
readonly name: string;
|
|
135
144
|
readonly version: string;
|
|
136
145
|
}
|
|
146
|
+
/** What an engine said about one property: proven, refuted (with a counterexample when it has one), or unknown and why. */
|
|
137
147
|
type ProofOutcome = {
|
|
138
148
|
readonly kind: "PROVEN";
|
|
139
149
|
readonly engine: EngineId;
|
|
@@ -148,6 +158,7 @@ type ProofOutcome = {
|
|
|
148
158
|
readonly cause: "gave_up" | "unsupported" | "unavailable";
|
|
149
159
|
readonly reason: string;
|
|
150
160
|
};
|
|
161
|
+
/** An engine's outcome for one property of one function. */
|
|
151
162
|
interface PropertyProof {
|
|
152
163
|
readonly function: string;
|
|
153
164
|
/** The property's export name in the spec file. */
|
|
@@ -163,6 +174,7 @@ interface OpenGoal {
|
|
|
163
174
|
/** Why the engine gave up: its own words, first line. */
|
|
164
175
|
readonly reason: string;
|
|
165
176
|
}
|
|
177
|
+
/** An engine's answer for one module: an outcome per property, the specs that did not read, and the open goals. */
|
|
166
178
|
interface ModuleProofs {
|
|
167
179
|
readonly results: readonly PropertyProof[];
|
|
168
180
|
/** Specs that did not read: properties asked for and never checked. */
|
|
@@ -173,6 +185,7 @@ interface ModuleProofs {
|
|
|
173
185
|
*/
|
|
174
186
|
readonly goals?: readonly OpenGoal[];
|
|
175
187
|
}
|
|
188
|
+
/** What an engine is given: the module's source and specs, the functions to prove, and where they live. */
|
|
176
189
|
interface ProveInput {
|
|
177
190
|
/** The module's source text. */
|
|
178
191
|
readonly source: string;
|
|
@@ -186,6 +199,7 @@ interface ProveInput {
|
|
|
186
199
|
readonly specPath?: string;
|
|
187
200
|
readonly timeoutMs?: number;
|
|
188
201
|
}
|
|
202
|
+
/** A proof engine: whether it can run here, and proving a module's properties. */
|
|
189
203
|
interface Prover {
|
|
190
204
|
readonly name: string;
|
|
191
205
|
/** Whether the engine can run here, or why not. */
|
|
@@ -224,12 +238,14 @@ export declare function aggregate(module: string, verdicts: readonly SpecVerdict
|
|
|
224
238
|
* configurable properties (Vite, so Vitest and the Cloudflare plugin); a
|
|
225
239
|
* native ESM namespace is frozen, and the function is reported unobservable.
|
|
226
240
|
*/
|
|
241
|
+
/** One call of an observed core function from outside its module: the function, its arguments, whether it threw. */
|
|
227
242
|
interface ObservedCall {
|
|
228
243
|
readonly function: string;
|
|
229
244
|
/** The arguments as passed; primitives exactly, objects by reference. */
|
|
230
245
|
readonly args: readonly unknown[];
|
|
231
246
|
readonly threw: boolean;
|
|
232
247
|
}
|
|
248
|
+
/** The calls an `observeCore` has recorded, the functions it could not observe, and how to undo it. */
|
|
233
249
|
interface CoreObserver {
|
|
234
250
|
readonly calls: readonly ObservedCall[];
|
|
235
251
|
/** Functions that could not be observed, with why. */
|
|
@@ -239,9 +255,11 @@ interface CoreObserver {
|
|
|
239
255
|
/** Put the original exports back. Safe to call twice. */
|
|
240
256
|
restore(): void;
|
|
241
257
|
}
|
|
258
|
+
/** Observe the named exports of a module's namespace while runs are installed; see the module comment. */
|
|
242
259
|
export declare function observeCore(namespace: object, functions: readonly string[]): CoreObserver;
|
|
243
260
|
/** The scenario restricted to the kept events, with per-message invariants re-derived. */
|
|
244
261
|
export declare function restrictSpec(platform: Platform, spec: ScenarioSpec, keepIds: readonly string[]): ScenarioSpec;
|
|
262
|
+
/** What the emitted test imports, the expressions for its platform and scenario, and what it expects. */
|
|
245
263
|
interface RegressionTestOptions {
|
|
246
264
|
/** Import lines for the scenario, the platform's dependencies, and anything the platform expression needs. */
|
|
247
265
|
readonly imports: readonly string[];
|
|
@@ -262,6 +280,10 @@ interface RegressionTestOptions {
|
|
|
262
280
|
readonly functions: readonly string[];
|
|
263
281
|
}[];
|
|
264
282
|
}
|
|
283
|
+
/**
|
|
284
|
+
* A Vitest test file that replays a violation's shrunk schedule: by default it fails while the bug is
|
|
285
|
+
* there and passes once it is fixed.
|
|
286
|
+
*/
|
|
265
287
|
export declare function emitRegressionTest(verdict: Violated, options: RegressionTestOptions): string;
|
|
266
288
|
/**
|
|
267
289
|
* The JSON report: one object, canonical, with a schema version at the top.
|
package/dist/index.d.mts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","names":[],"sources":["../../core/src/spec-verdict.ts","../../prover/src/checked.ts","../../prover/src/tested.ts","../../prover/src/ladder.ts","../../prover/src/provers.ts","../../engine/src/observe.ts","../../engine/src/shrink.ts","../../report/src/regression.ts","../../report/src/render.ts"],"mappings":";;;;;;;;;;UAQU;;WAEC;WACA;;WAEA;;WAEA;WACA
|
|
1
|
+
{"version":3,"file":"index.d.mts","names":[],"sources":["../../core/src/spec-verdict.ts","../../prover/src/checked.ts","../../prover/src/tested.ts","../../prover/src/ladder.ts","../../prover/src/provers.ts","../../engine/src/observe.ts","../../engine/src/shrink.ts","../../report/src/regression.ts","../../report/src/render.ts"],"mappings":";;;;;;;;;;UAQU;;WAEC;WACA;;WAEA;;WAEA;WACA;;;UAIM,gBAAgB;WACtB;;WAEA;;WAEA;;;UAIM,eAAe;WACrB;;WAEA;;WAEA;;WAEA;;WAEA;;;UAIM;;W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,UACV,MAAM,cACN,6BACC;;UC5Bc;;WAEN;;WAEA;;WAEA;;WAEA;WACA;;;;;;WAMA;aACE;aACA;;;;;;;wBAQG,mBAAmB,SAAS,UAAU,SAAS;;;;;wBCpB/C,WAAW,SAAS,iBAAiB,iBAAgB;;wBAarD,YAAY,gBAAgB;;wBA6G5B,YAAY,KAAK,WAAW;;wBAuB5B,WAAW,SAAS"}
|
package/dist/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { D as checkInvariant, E as validateScenario, O as checkInvariants, a as explore, o as replay, s as restrictSpec, t as observeCore } from "./src-
|
|
2
|
-
import { a as renderText, f as checkedRung, i as renderSpecs, l as specLadder, o as renderTrace, s as emitRegressionTest, t as renderJson, u as testedRung, y as describeVerdict } from "./src-
|
|
1
|
+
import { D as checkInvariant, E as validateScenario, O as checkInvariants, a as explore, o as replay, s as restrictSpec, t as observeCore } from "./src-ud5wEfnx.mjs";
|
|
2
|
+
import { a as renderText, f as checkedRung, i as renderSpecs, l as specLadder, o as renderTrace, s as emitRegressionTest, t as renderJson, u as testedRung, y as describeVerdict } from "./src-nwQA9Xwr.mjs";
|
|
3
3
|
import { t as aggregate } from "./provers-DS44OeEm.mjs";
|
|
4
4
|
// packages/core/src/spec-verdict.ts
|
|
5
5
|
/** One line per spec verdict, for error messages; full rendering lives in `report`. */
|