eutaxy 0.18.0 → 0.19.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 +15 -12
- package/dist/aws.d.mts +2 -2
- package/dist/aws.mjs +3 -2
- package/dist/aws.mjs.map +1 -1
- package/dist/bin.mjs +1 -1
- package/dist/check-zkHLdWyf.mjs +1281 -0
- package/dist/check-zkHLdWyf.mjs.map +1 -0
- package/dist/cli-CNAKqV9R.mjs +297 -0
- package/dist/cli-CNAKqV9R.mjs.map +1 -0
- package/dist/cli.d.mts.map +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/cloudflare.d.mts +37 -5
- package/dist/cloudflare.d.mts.map +1 -1
- package/dist/cloudflare.mjs +6417 -3
- package/dist/cloudflare.mjs.map +1 -0
- package/dist/{delivery-invariants-BRwfZJrs.mjs → delivery-invariants-BJDck0K8.mjs} +2 -2
- package/dist/{delivery-invariants-BRwfZJrs.mjs.map → delivery-invariants-BJDck0K8.mjs.map} +1 -1
- package/dist/{delivery-invariants-D-_GPOqE.d.mts → delivery-invariants-C3GXJIbg.d.mts} +2 -2
- package/dist/{delivery-invariants-D-_GPOqE.d.mts.map → delivery-invariants-C3GXJIbg.d.mts.map} +1 -1
- package/dist/draft-DEUDffHa.mjs +467 -0
- package/dist/draft-DEUDffHa.mjs.map +1 -0
- package/dist/{src-H1Q8ytEx.mjs → generate-TBJM3-2P.mjs} +3 -618
- package/dist/generate-TBJM3-2P.mjs.map +1 -0
- package/dist/index.d.mts +36 -36
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +6 -3
- package/dist/index.mjs.map +1 -1
- package/dist/install-DkzpGA5D.mjs +611 -0
- package/dist/install-DkzpGA5D.mjs.map +1 -0
- package/dist/{explore-D33RP9hF.d.mts → ir-KpC2epGn.d.mts} +70 -70
- package/dist/ir-KpC2epGn.d.mts.map +1 -0
- package/dist/keys-xtanNmuR.mjs +111 -0
- package/dist/keys-xtanNmuR.mjs.map +1 -0
- package/dist/mcp-B64Ko6y7.mjs +539 -0
- package/dist/mcp-B64Ko6y7.mjs.map +1 -0
- package/dist/{platform-CawKCUru.d.mts → platform-Cs9V9t2k.d.mts} +25 -11
- package/dist/platform-Cs9V9t2k.d.mts.map +1 -0
- package/dist/pool-CXN4CwGY.mjs +61 -0
- package/dist/pool-CXN4CwGY.mjs.map +1 -0
- package/dist/{provers-DS44OeEm.mjs → provers-D8VaY_OM.mjs} +18 -2
- package/dist/provers-D8VaY_OM.mjs.map +1 -0
- package/dist/reader-B9FSoEYW.mjs +1 -0
- package/dist/reader-Cz6_bLf6.mjs +3774 -0
- package/dist/reader-Cz6_bLf6.mjs.map +1 -0
- package/dist/report-_Vzavqg0.mjs +310 -0
- package/dist/report-_Vzavqg0.mjs.map +1 -0
- package/dist/src-B2DpVbMN.mjs +2 -0
- package/dist/src-BFGTvuA_.mjs +1235 -0
- package/dist/src-BFGTvuA_.mjs.map +1 -0
- package/dist/src-BtLZPRyG.mjs +120 -0
- package/dist/src-BtLZPRyG.mjs.map +1 -0
- package/dist/src-CB8DcvsK.mjs +1 -0
- package/dist/src-COuquJvI.mjs +269 -0
- package/dist/src-COuquJvI.mjs.map +1 -0
- package/dist/src-Chn-m_r1.mjs +1082 -0
- package/dist/src-Chn-m_r1.mjs.map +1 -0
- package/dist/src-DwYD3QQJ.mjs +346 -0
- package/dist/src-DwYD3QQJ.mjs.map +1 -0
- package/dist/{src-Whn0RMSh.mjs → src-Dx4QvrQb.mjs} +559 -517
- package/dist/src-Dx4QvrQb.mjs.map +1 -0
- package/dist/toolchain-DWfymxAJ.mjs +80 -0
- package/dist/toolchain-DWfymxAJ.mjs.map +1 -0
- package/dist/verdict-evEM5Gxx.mjs +12 -0
- package/dist/verdict-evEM5Gxx.mjs.map +1 -0
- package/package.json +4 -1
- package/dist/cli-DyA7uTBg.mjs +0 -9447
- package/dist/cli-DyA7uTBg.mjs.map +0 -1
- package/dist/explore-D33RP9hF.d.mts.map +0 -1
- package/dist/platform-CawKCUru.d.mts.map +0 -1
- package/dist/provers-DS44OeEm.mjs.map +0 -1
- package/dist/src-H1Q8ytEx.mjs.map +0 -1
- package/dist/src-Whn0RMSh.mjs.map +0 -1
- package/dist/workerd-tI8INa6v.mjs +0 -6334
- package/dist/workerd-tI8INa6v.mjs.map +0 -1
package/README.md
CHANGED
|
@@ -21,8 +21,8 @@ on state that was still current.
|
|
|
21
21
|
|
|
22
22
|
**Status: early.** The documentation is at
|
|
23
23
|
[eutaxy.dev](https://eutaxy.dev). The design is in
|
|
24
|
-
[docs/design.md](https://github.com/Kaisenwerk/eutaxy/blob/v0.
|
|
25
|
-
[docs/roadmap.md](https://github.com/Kaisenwerk/eutaxy/blob/v0.
|
|
24
|
+
[docs/design.md](https://github.com/Kaisenwerk/eutaxy/blob/v0.19.0/docs/design.md); the phases and their gates are in
|
|
25
|
+
[docs/roadmap.md](https://github.com/Kaisenwerk/eutaxy/blob/v0.19.0/docs/roadmap.md).
|
|
26
26
|
|
|
27
27
|
## Verdicts
|
|
28
28
|
|
|
@@ -55,14 +55,17 @@ declares exactly that, and pnpm links nothing else.
|
|
|
55
55
|
## Installing
|
|
56
56
|
|
|
57
57
|
```sh
|
|
58
|
-
pnpm add -D eutaxy vitest @cloudflare/vitest-plugin
|
|
58
|
+
pnpm add -D eutaxy vitest @cloudflare/vitest-plugin
|
|
59
|
+
# with specs or proofs, the TypeScript compiler too:
|
|
60
|
+
pnpm add -D typescript@7.1.0-beta
|
|
59
61
|
```
|
|
60
62
|
|
|
61
|
-
Requires Node 24 and TypeScript 7.1 (the beta until
|
|
62
|
-
spec reader asks your compiler for the types of your
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
63
|
+
Requires Node 24. Specs and proofs also need TypeScript 7.1 (the beta until
|
|
64
|
+
it is released): the spec reader asks your compiler for the types of your
|
|
65
|
+
functions. A project that only checks scenarios needs no TypeScript
|
|
66
|
+
installed: `eutaxy/cloudflare` loads without the compiler, and so does
|
|
67
|
+
`eutaxy check` while the scenario's directory holds no spec file.
|
|
68
|
+
Published as `eutaxy` on npm. A `--prover` engine also
|
|
66
69
|
needs its pinned toolchain on the machine, which one command installs:
|
|
67
70
|
`npx eutaxy prover install lean`, or `… smt` for Z3 (checksum-verified,
|
|
68
71
|
into Eutaxy's cache; a toolchain installed by hand serves too). Without it
|
|
@@ -76,9 +79,9 @@ Write a scenario beside your Worker and run the check:
|
|
|
76
79
|
eutaxy check ./payments.sim.ts
|
|
77
80
|
```
|
|
78
81
|
|
|
79
|
-
[examples/payments-queue](https://github.com/Kaisenwerk/eutaxy/blob/v0.
|
|
82
|
+
[examples/payments-queue](https://github.com/Kaisenwerk/eutaxy/blob/v0.19.0/examples/payments-queue) is a complete, runnable
|
|
80
83
|
version of this: a queue consumer with a bug the check finds, and the fixed
|
|
81
|
-
Worker it reports `BOUNDED` for. [examples/](https://github.com/Kaisenwerk/eutaxy/blob/v0.
|
|
84
|
+
Worker it reports `BOUNDED` for. [examples/](https://github.com/Kaisenwerk/eutaxy/blob/v0.19.0/examples) holds the others,
|
|
82
85
|
each a Worker, its scenario, the bug and the fix: a webhook with an
|
|
83
86
|
idempotency key, a lease pool object with an alarm, an Agent with a
|
|
84
87
|
schedule and WebSocket connections, two Workers over a service binding,
|
|
@@ -153,8 +156,8 @@ pnpm install
|
|
|
153
156
|
pnpm check # lint, typecheck, test
|
|
154
157
|
```
|
|
155
158
|
|
|
156
|
-
See [CONTRIBUTING.md](https://github.com/Kaisenwerk/eutaxy/blob/v0.
|
|
159
|
+
See [CONTRIBUTING.md](https://github.com/Kaisenwerk/eutaxy/blob/v0.19.0/CONTRIBUTING.md).
|
|
157
160
|
|
|
158
161
|
## License
|
|
159
162
|
|
|
160
|
-
[Apache-2.0](https://github.com/Kaisenwerk/eutaxy/blob/v0.
|
|
163
|
+
[Apache-2.0](https://github.com/Kaisenwerk/eutaxy/blob/v0.19.0/LICENSE).
|
package/dist/aws.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { M as JsonValue,
|
|
2
|
-
import { n as atMostOncePerKey } from "./delivery-invariants-
|
|
1
|
+
import { M as JsonValue, T as EffectSelector, a as PlatformData, b as RowCondition, c as WorkerRef, f as AtLeastOnce, i as ExternalDecl, m as Invariant, n as Platform, o as ScenarioSpec, r as Bounds, x as StateQuery } from "./platform-Cs9V9t2k.mjs";
|
|
2
|
+
import { n as atMostOncePerKey } from "./delivery-invariants-C3GXJIbg.mjs";
|
|
3
3
|
import { Readable } from "node:stream";
|
|
4
4
|
import { Agent, AgentOptions } from "node:http";
|
|
5
5
|
import { Agent as Agent$1, AgentOptions as AgentOptions$1 } from "node:https";
|
package/dist/aws.mjs
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { a as __toCommonJS, i as __require, n as __esmMin, o as __toESM, r as __exportAll, t as __commonJSMin } from "./rolldown-runtime-C1I3wEg2.mjs";
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
2
|
+
import { o as canonicalJson } from "./src-BtLZPRyG.mjs";
|
|
3
|
+
import { A as readFaults, C as patchProperty, E as validateScenario, F as redelivery, P as invocationOf, T as defaultBounds, c as rawRun, d as note, f as runInvocation, j as writeFaults, k as decisionFaults, l as decide, o as compareSides, s as proxiedSide, w as toJson$1, x as realTick } from "./src-Dx4QvrQb.mjs";
|
|
4
|
+
import { n as atLeastOncePerMessage$1, r as atMostOncePerKey } from "./delivery-invariants-BJDck0K8.mjs";
|
|
4
5
|
import { $ as booleanSelector, $t as ServiceException, A as BinaryDecisionDiagram, An as isValidHostLabel, B as NODE_REGION_CONFIG_FILE_OPTIONS, C as isIpAddress, Ct as dateToUtcString, Dt as parseRfc7231DateTime, E as EndpointError, En as normalizeProvider$1, Et as parseRfc3339DateTimeWithOffset, F as init_config$1, Fn as hasOwn, G as NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, H as REGION_ENV_NAME, Ht as NoOpLogger, It as fromBase64, Jt as resolveDefaultRuntimeConfig, Kt as getDefaultExtensionConfiguration, L as resolveDefaultsModeConfig, Ln as getSmithyContext, N as resolveParams, Nn as HttpRequest, Nt as toBase64, O as EndpointCache, On as isValidHostname, Ot as expectUnion, P as config_exports, Pt as fromUtf8, Qt as loadConfigsForDefaultMode, Rt as client_exports$1, Sn as parseUrl, Tt as parseEpochTimestamp, U as REGION_INI_NAME, V as NODE_REGION_CONFIG_OPTIONS, Vt as makeBuilder, Wt as getValueFromTextNode, X as loadConfig, Yt as emitWarningIfUnsupportedVersion$1, Z as SelectorType, _ as resolveEndpointConfig, _t as _parseRfc7231DateTime, b as decideEndpoint, bn as init_transport, bt as quoteHeader, c as generateIdempotencyToken, cn as TypeRegistry, ct as NumericValue, d as v4, en as decorateServiceException, ft as splitHeader, g as init_endpoints, gn as deref, gt as _parseRfc3339DateTimeWithOffset, h as getEndpointPlugin, ht as _parseEpochTimestamp, in as Command, jn as HttpResponse, jt as toUtf8, l as init_serde, m as endpoints_exports, mn as getSchemaSerdePlugin, mt as splitEvery, n as init_checksum, nn as createAggregatedClient, on as init_schema, p as sdkStreamMixin, pn as translateTraits, q as NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, r as Sha256Node, rt as calculateBodyLength, s as Uint8ArrayBlobAdapter, sn as schema_exports, t as checksum_exports, tt as ProviderError, u as serde_exports, un as NormalizedSchema, ut as nv, vn as Client$1, w as customEndpointFunctions, wn as parseQueryString, xt as LazyJsonString, y as resolveEndpoint, z as resolveRegionConfig, zn as require_dist_cjs$20, zt as init_client$1 } from "./checksum-75EliDEr.mjs";
|
|
5
6
|
import { Readable } from "node:stream";
|
|
6
7
|
import { platform, release } from "node:os";
|