eutaxy 0.8.0 → 0.9.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 -9
- package/dist/bin.mjs +2 -2
- package/dist/cli-DpeAhtU5.mjs +2 -0
- package/dist/cli.mjs +2 -2
- package/dist/cloudflare.mjs +1 -1
- package/dist/index.d.mts +2 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/src-BZtuuu_j.mjs.map +1 -1
- package/dist/{src-B9L96rZW.mjs → src-BzZU6eGF.mjs} +1744 -2734
- package/dist/src-BzZU6eGF.mjs.map +1 -0
- package/package.json +3 -4
- package/dist/cli-BT7zv5TL.mjs +0 -2
- package/dist/src-B9L96rZW.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -20,8 +20,8 @@ named; `refines` checks that the Worker carries out the core's decisions
|
|
|
20
20
|
on state that was still current.
|
|
21
21
|
|
|
22
22
|
**Status: 0.7, early.** The design is in
|
|
23
|
-
[docs/design.md](https://github.com/Kaisenwerk/eutaxy/blob/v0.
|
|
24
|
-
[docs/roadmap.md](https://github.com/Kaisenwerk/eutaxy/blob/v0.
|
|
23
|
+
[docs/design.md](https://github.com/Kaisenwerk/eutaxy/blob/v0.9.0/docs/design.md); the phases and their gates are in
|
|
24
|
+
[docs/roadmap.md](https://github.com/Kaisenwerk/eutaxy/blob/v0.9.0/docs/roadmap.md).
|
|
25
25
|
|
|
26
26
|
## Verdicts
|
|
27
27
|
|
|
@@ -43,8 +43,7 @@ Nothing is ever reported as verified when it was only explored or sampled:
|
|
|
43
43
|
|
|
44
44
|
```
|
|
45
45
|
packages/ spec, core, engine, cloudflare, aws, prover, prover-lean,
|
|
46
|
-
prover-smt,
|
|
47
|
-
eutaxy
|
|
46
|
+
prover-smt, report, cli, eutaxy
|
|
48
47
|
docs/ design and roadmap
|
|
49
48
|
```
|
|
50
49
|
|
|
@@ -55,10 +54,12 @@ declares exactly that, and pnpm links nothing else.
|
|
|
55
54
|
## Installing
|
|
56
55
|
|
|
57
56
|
```sh
|
|
58
|
-
pnpm add -D eutaxy vitest @cloudflare/vitest-plugin
|
|
57
|
+
pnpm add -D eutaxy vitest @cloudflare/vitest-plugin typescript@7.1.0-beta
|
|
59
58
|
```
|
|
60
59
|
|
|
61
|
-
Requires Node 24
|
|
60
|
+
Requires Node 24 and TypeScript 7.1 (the beta until it is released): the
|
|
61
|
+
spec reader asks your compiler for the types of your functions. Published
|
|
62
|
+
as `eutaxy` on npm. A `--prover` engine also
|
|
62
63
|
needs its pinned toolchain on the machine: Lean through
|
|
63
64
|
[elan](https://elan.lean-lang.org) for `lean`, Z3 5.3.2 on the PATH for
|
|
64
65
|
`smt`. Without it that engine's properties are `UNKNOWN` (unavailable),
|
|
@@ -72,7 +73,7 @@ Write a scenario beside your Worker and run the check:
|
|
|
72
73
|
eutaxy check ./payments.sim.ts
|
|
73
74
|
```
|
|
74
75
|
|
|
75
|
-
[examples/payments-queue](https://github.com/Kaisenwerk/eutaxy/blob/v0.
|
|
76
|
+
[examples/payments-queue](https://github.com/Kaisenwerk/eutaxy/blob/v0.9.0/examples/payments-queue) is a complete, runnable
|
|
76
77
|
version of this: a queue consumer with a bug the check finds, and the fixed
|
|
77
78
|
Worker it reports `BOUNDED` for.
|
|
78
79
|
|
|
@@ -135,8 +136,8 @@ pnpm install
|
|
|
135
136
|
pnpm check # lint, typecheck, test
|
|
136
137
|
```
|
|
137
138
|
|
|
138
|
-
See [CONTRIBUTING.md](https://github.com/Kaisenwerk/eutaxy/blob/v0.
|
|
139
|
+
See [CONTRIBUTING.md](https://github.com/Kaisenwerk/eutaxy/blob/v0.9.0/CONTRIBUTING.md).
|
|
139
140
|
|
|
140
141
|
## License
|
|
141
142
|
|
|
142
|
-
[Apache-2.0](https://github.com/Kaisenwerk/eutaxy/blob/v0.
|
|
143
|
+
[Apache-2.0](https://github.com/Kaisenwerk/eutaxy/blob/v0.9.0/LICENSE).
|
package/dist/bin.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { N as main } from "./src-
|
|
3
|
-
import "./cli-
|
|
2
|
+
import { N as main } from "./src-BzZU6eGF.mjs";
|
|
3
|
+
import "./cli-DpeAhtU5.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);
|
package/dist/cli.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export { N as main } from "./src-
|
|
2
|
-
import "./cli-
|
|
1
|
+
export { N as main } from "./src-BzZU6eGF.mjs";
|
|
2
|
+
import "./cli-DpeAhtU5.mjs";
|
package/dist/cloudflare.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { r as atMostOncePerKey, t as atLeastOnce } from "./delivery-invariants-hmhwh_qD.mjs";
|
|
2
|
-
import { A as snapshotD1, C as r2Rows, D as workflow, E as unique, M as expectHolds, O as workflowRows, P as cloudflareRegressionTest, S as r2Op, T as refines, _ as httpResponse, a as d1Param, b as queueAck, c as d1Schema, d as durableObject, f as durableObjectRows, g as http, h as fetchCall, i as atLeastOncePerMessage, j as check, k as workflowStep, l as d1Write, m as external, n as runDifferential, o as d1Read, p as everyRow, r as createCloudflarePlatform, s as d1Rows, t as checkInWorkerd, u as defineScenario, v as implies, w as references, x as r2Bucket, y as queue } from "./src-
|
|
2
|
+
import { A as snapshotD1, C as r2Rows, D as workflow, E as unique, M as expectHolds, O as workflowRows, P as cloudflareRegressionTest, S as r2Op, T as refines, _ as httpResponse, a as d1Param, b as queueAck, c as d1Schema, d as durableObject, f as durableObjectRows, g as http, h as fetchCall, i as atLeastOncePerMessage, j as check, k as workflowStep, l as d1Write, m as external, n as runDifferential, o as d1Read, p as everyRow, r as createCloudflarePlatform, s as d1Rows, t as checkInWorkerd, u as defineScenario, v as implies, w as references, x as r2Bucket, y as queue } from "./src-BzZU6eGF.mjs";
|
|
3
3
|
export { atLeastOnce, atLeastOncePerMessage, atMostOncePerKey, check, checkInWorkerd, cloudflareRegressionTest, createCloudflarePlatform, d1Param, d1Read, d1Rows, d1Schema, d1Write, defineScenario, durableObject, durableObjectRows, everyRow, expectHolds, external, fetchCall, http, httpResponse, implies, queue, queueAck, r2Bucket, r2Op, r2Rows, references, refines, runDifferential, snapshotD1, unique, workflow, workflowRows, workflowStep };
|
package/dist/index.d.mts
CHANGED
|
@@ -166,6 +166,8 @@ interface ProveInput {
|
|
|
166
166
|
readonly specs: ModuleSpecs;
|
|
167
167
|
/** The functions to prove; every one with specs when omitted. */
|
|
168
168
|
readonly functions?: readonly string[];
|
|
169
|
+
/** The module's path, under which its imports resolve; without it the module stands alone. */
|
|
170
|
+
readonly modulePath?: string;
|
|
169
171
|
/** The spec file's path, for an engine that replays a counterexample through the spec itself. */
|
|
170
172
|
readonly specPath?: string;
|
|
171
173
|
readonly timeoutMs?: number;
|
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;;UAGM,gBAAgB;WACtB;;WAEA;;WAEA;;;UAIM,eAAe;WACrB;;WAEA;;WAEA;;WAEA;;WAEA;;;UAIM;;WAEN;aAA6B;aAAuB;;;WAEpD;;WAEA;;UAGM,gBAAgB;WACtB;;WAEA;;WAEA;aAAoB;aAAuB;;WAC3C,gBAAgB;;;UAIV,eAAe;WACrB;WACA;aAAmB;aAAuB;;;WAE1C;;WAEA;;;UAIM,iBAAiB;WACvB;WACA;aAAmB;aAAuB;;WAC1C;aACE;aACA;aACA,iBAAiB;;;KAIlB;UAEK,oBAAoB;WAC1B;WACA,OAAO;WACP;;KAGC,cAAc,UAAU,SAAS,SAAS,UAAU,WAAW;;wBAG3D,oBAAoB,GAAG;UCzBtB;WACN;WACA,IAAI;WACJ,UAAU;;WAEV;aAA2B;;;WAE3B,MAAM,OAAO;;WAEb;;wBAGK,YAAY,OAAO,eAAe;UCvDjC;;WAEN;;WAEA;;UAGM,oBAAoB;WAC1B;WACA,IAAI;WACJ,UAAU;;WAEV,MAAM,OAAO;;wBAGR,WAAW,OAAO,cAAc;UC1B/B;;WAEN,SAAS;;WAET;;;wBAIK,WAAW,OAAO,cAAc,UAAS,gBAAqB;UCL7D;WACN;WACA;;KAGC;WACG;WAAyB,QAAQ;WAAmB;;WAEpD;WACA,QAAQ;WACR,iBAAiB;WACjB;;WAGA;WACA;WACA;;UAGE;WACN;;WAEA;WACA,SAAS;;UAGH;WACN,kBAAkB;;WAElB,qBAAqB;;UAGf;;WAEN;;WAEA,OAAO;;WAEP;;WAEA;WACA;;UAGM;WACN;;EAET,aAAa;aAAmB;;aAA+B;;EAC/D,MAAM,OAAO,aAAa,QAAQ;;;UAInB;WACN;WACA,QAAQ;;;;;;;;;;;wBAYH,UACd,gBACA,mBAAmB,eACnB,kBAAkB,iBACjB;;;;;;;;;;;;;;
|
|
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;;UAGM,gBAAgB;WACtB;;WAEA;;WAEA;;;UAIM,eAAe;WACrB;;WAEA;;WAEA;;WAEA;;WAEA;;;UAIM;;WAEN;aAA6B;aAAuB;;;WAEpD;;WAEA;;UAGM,gBAAgB;WACtB;;WAEA;;WAEA;aAAoB;aAAuB;;WAC3C,gBAAgB;;;UA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