eutaxy 0.17.2 → 0.18.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 +6 -6
- package/dist/aws.d.mts +2 -2
- package/dist/aws.mjs +2 -2
- package/dist/bin.mjs +1 -1
- package/dist/{cli-B0Gs2mhT.mjs → cli-DyA7uTBg.mjs} +13 -11
- package/dist/{cli-B0Gs2mhT.mjs.map → cli-DyA7uTBg.mjs.map} +1 -1
- package/dist/cli.d.mts.map +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/cloudflare.d.mts +22 -3
- package/dist/cloudflare.d.mts.map +1 -1
- package/dist/cloudflare.mjs +3 -3
- package/dist/{delivery-invariants-DO3j1mmD.mjs → delivery-invariants-BRwfZJrs.mjs} +2 -2
- package/dist/{delivery-invariants-DO3j1mmD.mjs.map → delivery-invariants-BRwfZJrs.mjs.map} +1 -1
- package/dist/{delivery-invariants-D7DI7i8x.d.mts → delivery-invariants-D-_GPOqE.d.mts} +2 -2
- package/dist/{delivery-invariants-D7DI7i8x.d.mts.map → delivery-invariants-D-_GPOqE.d.mts.map} +1 -1
- package/dist/{explore-CkKiOuz6.d.mts → explore-D33RP9hF.d.mts} +43 -8
- package/dist/explore-D33RP9hF.d.mts.map +1 -0
- package/dist/index.d.mts +11 -3
- package/dist/index.d.mts.map +1 -1
- package/dist/index.mjs +3 -3
- package/dist/{platform-D4hlJjm3.d.mts → platform-CawKCUru.d.mts} +69 -2
- package/dist/platform-CawKCUru.d.mts.map +1 -0
- package/dist/{src-fxWc6oGc.mjs → src-H1Q8ytEx.mjs} +50 -6
- package/dist/src-H1Q8ytEx.mjs.map +1 -0
- package/dist/{src-D_hHC_-3.mjs → src-Whn0RMSh.mjs} +406 -51
- package/dist/src-Whn0RMSh.mjs.map +1 -0
- package/dist/{workerd-DhrzU6AZ.mjs → workerd-tI8INa6v.mjs} +43 -9
- package/dist/workerd-tI8INa6v.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/explore-CkKiOuz6.d.mts.map +0 -1
- package/dist/platform-D4hlJjm3.d.mts.map +0 -1
- package/dist/src-D_hHC_-3.mjs.map +0 -1
- package/dist/src-fxWc6oGc.mjs.map +0 -1
- package/dist/workerd-DhrzU6AZ.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.18.0/docs/design.md); the phases and their gates are in
|
|
25
|
+
[docs/roadmap.md](https://github.com/Kaisenwerk/eutaxy/blob/v0.18.0/docs/roadmap.md).
|
|
26
26
|
|
|
27
27
|
## Verdicts
|
|
28
28
|
|
|
@@ -76,9 +76,9 @@ Write a scenario beside your Worker and run the check:
|
|
|
76
76
|
eutaxy check ./payments.sim.ts
|
|
77
77
|
```
|
|
78
78
|
|
|
79
|
-
[examples/payments-queue](https://github.com/Kaisenwerk/eutaxy/blob/v0.
|
|
79
|
+
[examples/payments-queue](https://github.com/Kaisenwerk/eutaxy/blob/v0.18.0/examples/payments-queue) is a complete, runnable
|
|
80
80
|
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.
|
|
81
|
+
Worker it reports `BOUNDED` for. [examples/](https://github.com/Kaisenwerk/eutaxy/blob/v0.18.0/examples) holds the others,
|
|
82
82
|
each a Worker, its scenario, the bug and the fix: a webhook with an
|
|
83
83
|
idempotency key, a lease pool object with an alarm, an Agent with a
|
|
84
84
|
schedule and WebSocket connections, two Workers over a service binding,
|
|
@@ -153,8 +153,8 @@ pnpm install
|
|
|
153
153
|
pnpm check # lint, typecheck, test
|
|
154
154
|
```
|
|
155
155
|
|
|
156
|
-
See [CONTRIBUTING.md](https://github.com/Kaisenwerk/eutaxy/blob/v0.
|
|
156
|
+
See [CONTRIBUTING.md](https://github.com/Kaisenwerk/eutaxy/blob/v0.18.0/CONTRIBUTING.md).
|
|
157
157
|
|
|
158
158
|
## License
|
|
159
159
|
|
|
160
|
-
[Apache-2.0](https://github.com/Kaisenwerk/eutaxy/blob/v0.
|
|
160
|
+
[Apache-2.0](https://github.com/Kaisenwerk/eutaxy/blob/v0.18.0/LICENSE).
|
package/dist/aws.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { n as atMostOncePerKey } from "./delivery-invariants-
|
|
1
|
+
import { M as JsonValue, S as StateQuery, T as EffectSelector, a as PlatformData, c as WorkerRef, f as AtLeastOnce, i as ExternalDecl, m as Invariant, n as Platform, o as ScenarioSpec, r as Bounds, x as RowCondition } from "./platform-CawKCUru.mjs";
|
|
2
|
+
import { n as atMostOncePerKey } from "./delivery-invariants-D-_GPOqE.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,6 @@
|
|
|
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 { A as
|
|
3
|
-
import { n as atLeastOncePerMessage$1, r as atMostOncePerKey } from "./delivery-invariants-
|
|
2
|
+
import { A as readFaults, C as patchProperty, E as validateScenario, L as invocationOf, R as redelivery, T as defaultBounds, d as note, f as runInvocation, i as rawRun, j as writeFaults, k as decisionFaults, l as decide, n as compareSides, r as proxiedSide, w as toJson$1, x as realTick, z as canonicalJson } from "./src-Whn0RMSh.mjs";
|
|
3
|
+
import { n as atLeastOncePerMessage$1, r as atMostOncePerKey } from "./delivery-invariants-BRwfZJrs.mjs";
|
|
4
4
|
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
5
|
import { Readable } from "node:stream";
|
|
6
6
|
import { platform, release } from "node:os";
|
package/dist/bin.mjs
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { _ as
|
|
1
|
+
import { z as canonicalJson } from "./src-Whn0RMSh.mjs";
|
|
2
|
+
import { _ as endpointNumber, a as renderText, f as shrinkRefutation, g as endpointBigInt, h as conforms, i as renderSpecs, l as checkSpecModule, m as evaluate, n as renderSpecReport, r as renderSpecReportJson, v as render, y as describeType } from "./src-H1Q8ytEx.mjs";
|
|
3
3
|
import { n as isSpec } from "./combinators-CLfsPfhT.mjs";
|
|
4
4
|
import { t as aggregate } from "./provers-DS44OeEm.mjs";
|
|
5
|
-
import {
|
|
5
|
+
import { J as cloudflareRegressionTest, Y as cloudflareUnsupportedTest, n as globKey, r as specKey } from "./workerd-tI8INa6v.mjs";
|
|
6
6
|
import { createRequire, registerHooks } from "node:module";
|
|
7
7
|
import { Readable } from "node:stream";
|
|
8
8
|
import { createHash, randomBytes } from "node:crypto";
|
|
@@ -7258,7 +7258,7 @@ async function runCheck(o) {
|
|
|
7258
7258
|
}
|
|
7259
7259
|
specs = await proveSpecs(dir, transport.observed ?? [], specs, named.engines, specModules);
|
|
7260
7260
|
}
|
|
7261
|
-
const regressionPath = verdict.kind === "VIOLATED" && !o.noRegression ? o.out ? resolve(o.cwd, o.out) : join(dir, `${name}.regression.test.ts`) : void 0;
|
|
7261
|
+
const regressionPath = (verdict.kind === "VIOLATED" || verdict.kind === "UNSUPPORTED" && verdict.cause === "unsupported_api" && verdict.replay !== void 0) && !o.noRegression ? o.out ? resolve(o.cwd, o.out) : join(dir, `${name}.regression.test.ts`) : void 0;
|
|
7262
7262
|
const printed = {
|
|
7263
7263
|
...transport.report,
|
|
7264
7264
|
...o.provers && o.provers.length > 0 ? { specs } : {},
|
|
@@ -7287,7 +7287,7 @@ async function runCheck(o) {
|
|
|
7287
7287
|
path: toPosix(relative(outDir, resolve(dir, String(step["entry"]))))
|
|
7288
7288
|
};
|
|
7289
7289
|
}
|
|
7290
|
-
const
|
|
7290
|
+
const testOptions = {
|
|
7291
7291
|
scenarioPath: toPosix(relative(outDir, scenarioPath)),
|
|
7292
7292
|
workerPath: toPosix(relative(outDir, resolve(dir, transport.worker.entry))),
|
|
7293
7293
|
schemaPaths,
|
|
@@ -7304,10 +7304,11 @@ async function runCheck(o) {
|
|
|
7304
7304
|
path: toPosix(relative(outDir, resolve(dir, m.module))),
|
|
7305
7305
|
functions: m.functions
|
|
7306
7306
|
})) } : {}
|
|
7307
|
-
}
|
|
7307
|
+
};
|
|
7308
|
+
const source = verdict.kind === "UNSUPPORTED" ? cloudflareUnsupportedTest(verdict, testOptions) : cloudflareRegressionTest(verdict, testOptions);
|
|
7308
7309
|
mkdirSync(outDir, { recursive: true });
|
|
7309
7310
|
writeFileSync(outPath, source);
|
|
7310
|
-
if (!o.json) o.stdout(`\
|
|
7311
|
+
if (!o.json) o.stdout(`\n${verdict.kind === "UNSUPPORTED" ? "Test replaying the run" : "Regression test"} written to ${relative(o.cwd, outPath) || outPath}\n`);
|
|
7311
7312
|
}
|
|
7312
7313
|
if (verdict.kind !== "VIOLATED" && specs.some((v) => v.kind === "REFUTED" || v.kind === "CONFLICT")) return exitCodes.VIOLATED;
|
|
7313
7314
|
return exitCodes[verdict.kind];
|
|
@@ -8681,7 +8682,7 @@ async function runReport(o) {
|
|
|
8681
8682
|
}
|
|
8682
8683
|
// packages/cli/src/version.ts
|
|
8683
8684
|
/** The published package's version, as the MCP server reports it; the release tooling keeps it in step. */
|
|
8684
|
-
const eutaxyVersion = "0.
|
|
8685
|
+
const eutaxyVersion = "0.18.0";
|
|
8685
8686
|
// packages/cli/src/mcp.ts
|
|
8686
8687
|
/**
|
|
8687
8688
|
* `eutaxy mcp`: a Model Context Protocol server over stdio, so a coding
|
|
@@ -9223,8 +9224,9 @@ check options:
|
|
|
9223
9224
|
--prover <names> also run the PROVEN rung with these engines on the scenario's specs
|
|
9224
9225
|
(comma-separated; known: lean, smt)
|
|
9225
9226
|
--json print the versioned JSON report instead of text
|
|
9226
|
-
--out <path> where to write the regression test on a violation
|
|
9227
|
-
|
|
9227
|
+
--out <path> where to write the regression test on a violation, or the
|
|
9228
|
+
test replaying the run that met something outside the model
|
|
9229
|
+
--no-regression do not write either test
|
|
9228
9230
|
--expect-violation write a regression test that asserts the violation (for corpora)
|
|
9229
9231
|
--keep keep the generated .eutaxy/ files
|
|
9230
9232
|
|
|
@@ -9442,4 +9444,4 @@ async function main(argv, io) {
|
|
|
9442
9444
|
}
|
|
9443
9445
|
export { main as t };
|
|
9444
9446
|
|
|
9445
|
-
//# sourceMappingURL=cli-
|
|
9447
|
+
//# sourceMappingURL=cli-DyA7uTBg.mjs.map
|