eutaxy 0.10.0 → 0.12.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 +17 -10
- package/dist/aws.mjs +2 -2
- package/dist/bin.mjs +2 -2
- package/dist/{checksum-DHr5qb3Y.mjs → checksum-DJbbDJA0.mjs} +3 -3
- package/dist/{checksum-DHr5qb3Y.mjs.map → checksum-DJbbDJA0.mjs.map} +1 -1
- package/dist/cli-BFTyLLRF.mjs +2 -0
- package/dist/cli.d.mts.map +1 -1
- package/dist/cli.mjs +2 -2
- package/dist/cloudflare.mjs +1 -1
- package/dist/{event-streams-i8OGzuFN.mjs → event-streams-eH6Jim9p.mjs} +2 -2
- package/dist/{event-streams-i8OGzuFN.mjs.map → event-streams-eH6Jim9p.mjs.map} +1 -1
- package/dist/index.d.mts +14 -0
- package/dist/index.d.mts.map +1 -1
- package/dist/src-CWVQEhTr.mjs.map +1 -1
- package/dist/{src-MX90l1IH.mjs → src-DIG0_CjU.mjs} +1380 -48
- package/dist/src-DIG0_CjU.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/cli-Di86EM3f.mjs +0 -2
- package/dist/src-MX90l1IH.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.12.0/docs/design.md); the phases and their gates are in
|
|
25
|
+
[docs/roadmap.md](https://github.com/Kaisenwerk/eutaxy/blob/v0.12.0/docs/roadmap.md).
|
|
26
26
|
|
|
27
27
|
## Verdicts
|
|
28
28
|
|
|
@@ -61,10 +61,10 @@ pnpm add -D eutaxy vitest @cloudflare/vitest-plugin typescript@7.1.0-beta
|
|
|
61
61
|
Requires Node 24 and TypeScript 7.1 (the beta until it is released): the
|
|
62
62
|
spec reader asks your compiler for the types of your functions. Published
|
|
63
63
|
as `eutaxy` on npm. A `--prover` engine also
|
|
64
|
-
needs its pinned toolchain on the machine
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
64
|
+
needs its pinned toolchain on the machine, which one command installs:
|
|
65
|
+
`npx eutaxy prover install lean`, or `… smt` for Z3 (checksum-verified,
|
|
66
|
+
into Eutaxy's cache; a toolchain installed by hand serves too). Without it
|
|
67
|
+
that engine's properties are `UNKNOWN` (unavailable), with the command.
|
|
68
68
|
|
|
69
69
|
## Checking a Worker
|
|
70
70
|
|
|
@@ -74,7 +74,7 @@ Write a scenario beside your Worker and run the check:
|
|
|
74
74
|
eutaxy check ./payments.sim.ts
|
|
75
75
|
```
|
|
76
76
|
|
|
77
|
-
[examples/payments-queue](https://github.com/Kaisenwerk/eutaxy/blob/v0.
|
|
77
|
+
[examples/payments-queue](https://github.com/Kaisenwerk/eutaxy/blob/v0.12.0/examples/payments-queue) is a complete, runnable
|
|
78
78
|
version of this: a queue consumer with a bug the check finds, and the fixed
|
|
79
79
|
Worker it reports `BOUNDED` for.
|
|
80
80
|
|
|
@@ -128,7 +128,14 @@ with a count (or `--json`). No scenario runs, so nothing is `CHECKED`, and
|
|
|
128
128
|
the modules are loaded in Node, so one that only loads inside workerd stays
|
|
129
129
|
`UNKNOWN` until an engine reads it; so does a module whose properties do
|
|
130
130
|
not finish within 60 seconds. It exits 1 for a `REFUTED` or `CONFLICT`
|
|
131
|
-
spec and 0 otherwise.
|
|
131
|
+
spec and 0 otherwise. `--goals` writes the properties the Lean engine
|
|
132
|
+
could not prove beside each spec file as a proof file with every proof
|
|
133
|
+
open, for a proof to be supplied.
|
|
134
|
+
|
|
135
|
+
A coding agent runs all of this through one tool: `eutaxy mcp` serves the
|
|
136
|
+
Model Context Protocol over stdio, with `check`, `report`, `goals`,
|
|
137
|
+
`prove` and `prover_status`, each returning the JSON report. Verdicts
|
|
138
|
+
depend only on files in the repository; nothing in Eutaxy calls a model.
|
|
132
139
|
|
|
133
140
|
## Developing
|
|
134
141
|
|
|
@@ -139,8 +146,8 @@ pnpm install
|
|
|
139
146
|
pnpm check # lint, typecheck, test
|
|
140
147
|
```
|
|
141
148
|
|
|
142
|
-
See [CONTRIBUTING.md](https://github.com/Kaisenwerk/eutaxy/blob/v0.
|
|
149
|
+
See [CONTRIBUTING.md](https://github.com/Kaisenwerk/eutaxy/blob/v0.12.0/CONTRIBUTING.md).
|
|
143
150
|
|
|
144
151
|
## License
|
|
145
152
|
|
|
146
|
-
[Apache-2.0](https://github.com/Kaisenwerk/eutaxy/blob/v0.
|
|
153
|
+
[Apache-2.0](https://github.com/Kaisenwerk/eutaxy/blob/v0.12.0/LICENSE).
|
package/dist/aws.mjs
CHANGED
|
@@ -1,7 +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
2
|
import { A as writeFaults, C as toJson$1, I as canonicalJson, O as decisionFaults, S as patchProperty, T as validateScenario, b as settleOn, c as runInvocation, f as installScriptedFetch, i as proxiedSide, k as readFaults, l as CrashSignal, n as DifferentialStuck, r as compareSides, v as patchGlobals, w as defaultBounds, y as realTick } from "./src-DGh7w877.mjs";
|
|
3
3
|
import { a as redelivery, i as invocationOf, n as atLeastOncePerMessage$1, r as atMostOncePerKey } from "./delivery-invariants-Br29H7Rg.mjs";
|
|
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-
|
|
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-DJbbDJA0.mjs";
|
|
5
5
|
import { platform, release } from "node:os";
|
|
6
6
|
import { Readable } from "node:stream";
|
|
7
7
|
import { env, versions } from "node:process";
|
|
@@ -301,7 +301,7 @@ var init_HttpProtocol = __esmMin((() => {
|
|
|
301
301
|
});
|
|
302
302
|
}
|
|
303
303
|
async loadEventStreamCapability() {
|
|
304
|
-
const { EventStreamSerde, eventStreamSerdeProvider } = await import("./event-streams-
|
|
304
|
+
const { EventStreamSerde, eventStreamSerdeProvider } = await import("./event-streams-eH6Jim9p.mjs");
|
|
305
305
|
return new EventStreamSerde({
|
|
306
306
|
marshaller: this.resolveEventStreamMarshaller(eventStreamSerdeProvider),
|
|
307
307
|
serializer: this.serializer,
|
package/dist/bin.mjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
|
-
import { R as main } from "./src-
|
|
3
|
-
import "./cli-
|
|
2
|
+
import { R as main } from "./src-DIG0_CjU.mjs";
|
|
3
|
+
import "./cli-BFTyLLRF.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);
|
|
@@ -2,10 +2,10 @@ import { n as __esmMin, r as __exportAll, t as __commonJSMin } from "./rolldown-
|
|
|
2
2
|
import { ReadStream, createReadStream, fstatSync, lstatSync } from "node:fs";
|
|
3
3
|
import { join, sep } from "node:path";
|
|
4
4
|
import { homedir } from "node:os";
|
|
5
|
-
import { PassThrough, Readable, Writable } from "node:stream";
|
|
6
5
|
import { createHash, createHmac, getRandomValues } from "node:crypto";
|
|
7
|
-
import {
|
|
6
|
+
import { PassThrough, Readable, Writable } from "node:stream";
|
|
8
7
|
import * as zlib from "node:zlib";
|
|
8
|
+
import { readFile } from "node:fs/promises";
|
|
9
9
|
// node_modules/.pnpm/@smithy+core@3.36.2/node_modules/@smithy/core/dist-es/submodules/client/middleware-stack/MiddlewareStack.js
|
|
10
10
|
var getAllAliases, getMiddlewareNameWithAliases, constructStack, stepWeights, priorityWeights;
|
|
11
11
|
var init_MiddlewareStack = __esmMin((() => {
|
|
@@ -6046,4 +6046,4 @@ var init_checksum = __esmMin((() => {
|
|
|
6046
6046
|
}));
|
|
6047
6047
|
export { booleanSelector as $, ServiceException as $t, BinaryDecisionDiagram as A, isValidHostLabel as An, init_toUtf8 as At, NODE_REGION_CONFIG_FILE_OPTIONS as B, init_client_command_builder as Bt, isIpAddress as C, init_parseQueryString as Cn, dateToUtcString as Ct, init_EndpointError as D, init_isValidHostname as Dn, parseRfc7231DateTime as Dt, EndpointError as E, normalizeProvider as En, parseRfc3339DateTimeWithOffset as Et, init_config as F, hasOwn as Fn, init_fromUtf8 as Ft, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS as G, init_get_value_from_text_node as Gt, REGION_ENV_NAME as H, NoOpLogger as Ht, init_resolveDefaultsModeConfig as I, init_hasOwn as In, fromBase64 as It, init_NodeUseDualstackEndpointConfigOptions as J, resolveDefaultRuntimeConfig as Jt, init_NodeUseFipsEndpointConfigOptions as K, getDefaultExtensionConfiguration as Kt, resolveDefaultsModeConfig as L, getSmithyContext as Ln, init_fromBase64 as Lt, init_getEndpointFromInstructions as M, init_httpResponse as Mn, init_toBase64 as Mt, resolveParams as N, HttpRequest as Nn, toBase64$1 as Nt, EndpointCache as O, isValidHostname as On, expectUnion as Ot, config_exports as P, init_httpRequest as Pn, fromUtf8$1 as Pt, init_types$1 as Q, loadConfigsForDefaultMode as Qt, init_resolveRegionConfig as R, init_getSmithyContext as Rn, client_exports as Rt, init_isIpAddress as S, parseUrl as Sn, init_lazy_json as St, init_customEndpointFunctions as T, init_normalizeProvider as Tn, parseEpochTimestamp as Tt, REGION_INI_NAME as U, init_NoOpLogger as Ut, NODE_REGION_CONFIG_OPTIONS as V, makeBuilder as Vt, init_config$1 as W, getValueFromTextNode as Wt, loadConfig as X, init_emitWarningIfUnsupportedVersion as Xt, init_configLoader as Y, emitWarningIfUnsupportedVersion as Yt, SelectorType as Z, init_defaults_mode as Zt, resolveEndpointConfig as _, init_deref as _n, _parseRfc7231DateTime as _t, Crc32Node as a, init_command as an, fromHex as at, decideEndpoint as b, init_transport as bn, quoteHeader as bt, generateIdempotencyToken as c, TypeRegistry as cn, NumericValue as ct, v4 as d, init_NormalizedSchema as dn, init_split_header as dt, decorateServiceException as en, init_booleanSelector as et, init_sdk_stream_mixin as f, init_translateTraits as fn, splitHeader as ft, init_endpoints as g, deref as gn, _parseRfc3339DateTimeWithOffset as gt, getEndpointPlugin as h, init_getSchemaSerdePlugin as hn, _parseEpochTimestamp as ht, init_Sha256Node as i, Command as in, init_calculateBodyLength as it, init_BinaryDecisionDiagram as j, HttpResponse as jn, toUtf8$1 as jt, init_EndpointCache as k, init_isValidHostLabel as kn, init_parse_utils as kt, init_serde as l, init_TypeRegistry as ln, init_NumericValue as lt, endpoints_exports as m, getSchemaSerdePlugin as mn, splitEvery as mt, init_checksum as n, createAggregatedClient as nn, init_ProviderError as nt, init_Crc32Node as o, init_schema as on, init_hex_encoding as ot, sdkStreamMixin as p, translateTraits as pn, init_split_every as pt, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS as q, init_defaultExtensionConfiguration as qt, Sha256Node as r, init_create_aggregated_client as rn, calculateBodyLength as rt, Uint8ArrayBlobAdapter as s, schema_exports as sn, toHex as st, checksum_exports as t, init_exceptions as tn, ProviderError as tt, serde_exports as u, NormalizedSchema as un, nv as ut, init_resolveEndpoint as v, Client as vn, init_schema_date_utils as vt, customEndpointFunctions as w, parseQueryString as wn, init_date_utils as wt, init_decideEndpoint as x, init_parseUrl as xn, LazyJsonString as xt, resolveEndpoint as y, init_client$1 as yn, init_quote_header as yt, resolveRegionConfig as z, require_dist_cjs as zn, init_client as zt };
|
|
6048
6048
|
|
|
6049
|
-
//# sourceMappingURL=checksum-
|
|
6049
|
+
//# sourceMappingURL=checksum-DJbbDJA0.mjs.map
|