eutaxy 0.12.0 → 0.14.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.
Files changed (31) hide show
  1. package/README.md +11 -8
  2. package/dist/aws.mjs +5 -5
  3. package/dist/bin.mjs +1 -2
  4. package/dist/bin.mjs.map +1 -1
  5. package/dist/{checksum-DJbbDJA0.mjs → checksum-75EliDEr.mjs} +5 -5
  6. package/dist/{checksum-DJbbDJA0.mjs.map → checksum-75EliDEr.mjs.map} +1 -1
  7. package/dist/{src-DIG0_CjU.mjs → cli-BppjMaqL.mjs} +690 -4113
  8. package/dist/cli-BppjMaqL.mjs.map +1 -0
  9. package/dist/cli.mjs +1 -2
  10. package/dist/cloudflare.d.mts +245 -84
  11. package/dist/cloudflare.d.mts.map +1 -1
  12. package/dist/cloudflare.mjs +3 -3
  13. package/dist/{delivery-invariants-Br29H7Rg.mjs → delivery-invariants-_T9ZMwOJ.mjs} +2 -2
  14. package/dist/{delivery-invariants-Br29H7Rg.mjs.map → delivery-invariants-_T9ZMwOJ.mjs.map} +1 -1
  15. package/dist/{event-streams-eH6Jim9p.mjs → event-streams-lXGVdHFn.mjs} +2 -2
  16. package/dist/{event-streams-eH6Jim9p.mjs.map → event-streams-lXGVdHFn.mjs.map} +1 -1
  17. package/dist/index.mjs +3 -2
  18. package/dist/index.mjs.map +1 -1
  19. package/dist/provers-DS44OeEm.mjs +83 -0
  20. package/dist/provers-DS44OeEm.mjs.map +1 -0
  21. package/dist/{src-CWVQEhTr.mjs → src-ClXnIi6O.mjs} +3 -83
  22. package/dist/src-ClXnIi6O.mjs.map +1 -0
  23. package/dist/{src-DGh7w877.mjs → src-DPCF2XGv.mjs} +103 -16
  24. package/dist/src-DPCF2XGv.mjs.map +1 -0
  25. package/dist/workerd-DVJ8eCLI.mjs +5200 -0
  26. package/dist/workerd-DVJ8eCLI.mjs.map +1 -0
  27. package/package.json +1 -1
  28. package/dist/cli-BFTyLLRF.mjs +0 -2
  29. package/dist/src-CWVQEhTr.mjs.map +0 -1
  30. package/dist/src-DGh7w877.mjs.map +0 -1
  31. package/dist/src-DIG0_CjU.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.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).
24
+ [docs/design.md](https://github.com/Kaisenwerk/eutaxy/blob/v0.14.0/docs/design.md); the phases and their gates are in
25
+ [docs/roadmap.md](https://github.com/Kaisenwerk/eutaxy/blob/v0.14.0/docs/roadmap.md).
26
26
 
27
27
  ## Verdicts
28
28
 
@@ -59,8 +59,10 @@ pnpm add -D eutaxy vitest @cloudflare/vitest-plugin typescript@7.1.0-beta
59
59
  ```
60
60
 
61
61
  Requires Node 24 and TypeScript 7.1 (the beta until it is released): the
62
- spec reader asks your compiler for the types of your functions. Published
63
- as `eutaxy` on npm. A `--prover` engine also
62
+ spec reader asks your compiler for the types of your functions. Inside
63
+ Vitest, `eutaxy/cloudflare` loads without the compiler, so a project on an
64
+ older TypeScript runs scenarios with the 7.1 beta as Eutaxy's own dev
65
+ dependency. Published as `eutaxy` on npm. A `--prover` engine also
64
66
  needs its pinned toolchain on the machine, which one command installs:
65
67
  `npx eutaxy prover install lean`, or `… smt` for Z3 (checksum-verified,
66
68
  into Eutaxy's cache; a toolchain installed by hand serves too). Without it
@@ -74,12 +76,13 @@ Write a scenario beside your Worker and run the check:
74
76
  eutaxy check ./payments.sim.ts
75
77
  ```
76
78
 
77
- [examples/payments-queue](https://github.com/Kaisenwerk/eutaxy/blob/v0.12.0/examples/payments-queue) is a complete, runnable
79
+ [examples/payments-queue](https://github.com/Kaisenwerk/eutaxy/blob/v0.14.0/examples/payments-queue) is a complete, runnable
78
80
  version of this: a queue consumer with a bug the check finds, and the fixed
79
81
  Worker it reports `BOUNDED` for.
80
82
 
81
83
  A scenario drives the Worker through its `queue()` handler, with
82
- `http(...)` through its `fetch()` handler, or with `rpc(...)` through the
84
+ `http(...)` through its `fetch()` handler, with `websocket(...)` over
85
+ connections a Durable Object accepts, or with `rpc(...)` through the
83
86
  methods of its `WorkerEntrypoint`; for the last two the caller's retry policy
84
87
  (a webhook provider resending until it gets a 2xx, a calling Worker resending
85
88
  a call that threw) decides redelivery. With
@@ -146,8 +149,8 @@ pnpm install
146
149
  pnpm check # lint, typecheck, test
147
150
  ```
148
151
 
149
- See [CONTRIBUTING.md](https://github.com/Kaisenwerk/eutaxy/blob/v0.12.0/CONTRIBUTING.md).
152
+ See [CONTRIBUTING.md](https://github.com/Kaisenwerk/eutaxy/blob/v0.14.0/CONTRIBUTING.md).
150
153
 
151
154
  ## License
152
155
 
153
- [Apache-2.0](https://github.com/Kaisenwerk/eutaxy/blob/v0.12.0/LICENSE).
156
+ [Apache-2.0](https://github.com/Kaisenwerk/eutaxy/blob/v0.14.0/LICENSE).
package/dist/aws.mjs CHANGED
@@ -1,9 +1,9 @@
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 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
- 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-DJbbDJA0.mjs";
5
- import { platform, release } from "node:os";
2
+ import { A as readFaults, C as patchProperty, E as validateScenario, L as canonicalJson, T as defaultBounds, b as realTick, i as proxiedSide, j as writeFaults, k as decisionFaults, l as runInvocation, n as DifferentialStuck, p as installScriptedFetch, r as compareSides, u as CrashSignal, w as toJson$1, x as settleOn, y as patchGlobals } from "./src-DPCF2XGv.mjs";
3
+ import { a as redelivery, i as invocationOf, n as atLeastOncePerMessage$1, r as atMostOncePerKey } from "./delivery-invariants-_T9ZMwOJ.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-75EliDEr.mjs";
6
5
  import { Readable } from "node:stream";
6
+ import { platform, release } from "node:os";
7
7
  import { env, versions } from "node:process";
8
8
  // node_modules/.pnpm/@aws-sdk+core@3.978.5/node_modules/@aws-sdk/core/dist-es/submodules/account-id-endpoint/AccountIdEndpointModeConstants.js
9
9
  function validateAccountIdEndpointMode(value) {
@@ -301,7 +301,7 @@ var init_HttpProtocol = __esmMin((() => {
301
301
  });
302
302
  }
303
303
  async loadEventStreamCapability() {
304
- const { EventStreamSerde, eventStreamSerdeProvider } = await import("./event-streams-eH6Jim9p.mjs");
304
+ const { EventStreamSerde, eventStreamSerdeProvider } = await import("./event-streams-lXGVdHFn.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,5 @@
1
1
  #!/usr/bin/env node
2
- import { R as main } from "./src-DIG0_CjU.mjs";
3
- import "./cli-BFTyLLRF.mjs";
2
+ import { t as main } from "./cli-BppjMaqL.mjs";
4
3
  // packages/eutaxy/src/bin.ts
5
4
  process.stdout.on("error", (err) => {
6
5
  if (err.code === "EPIPE") process.exit(process.exitCode ?? 0);
package/dist/bin.mjs.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"bin.mjs","names":[],"sources":["../src/bin.ts"],"sourcesContent":["// The eutaxy command entry: in development through bin/eutaxy.mjs, when published as dist/bin.js.\nimport { main } from \"./cli.ts\";\n\n// A closed pipe (e.g. `eutaxy check ... | head`) is not an error worth a stack trace.\nprocess.stdout.on(\"error\", (err: NodeJS.ErrnoException) => {\n if (err.code === \"EPIPE\") process.exit(process.exitCode ?? 0);\n throw err;\n});\n\nconst code = await main(process.argv.slice(2), {\n cwd: process.cwd(),\n stdout: (t) => process.stdout.write(t),\n stderr: (t) => process.stderr.write(t),\n});\nprocess.exitCode = code;\n"],"mappings":";;;;AAIA,QAAQ,OAAO,GAAG,UAAU,QAA+B;CACzD,IAAI,IAAI,SAAS,SAAS,QAAQ,KAAK,QAAQ,YAAY,CAAC;CAC5D,MAAM;AACR,CAAC;AAED,MAAM,OAAO,MAAM,KAAK,QAAQ,KAAK,MAAM,CAAC,GAAG;CAC7C,KAAK,QAAQ,IAAI;CACjB,SAAS,MAAM,QAAQ,OAAO,MAAM,CAAC;CACrC,SAAS,MAAM,QAAQ,OAAO,MAAM,CAAC;AACvC,CAAC;AACD,QAAQ,WAAW"}
1
+ {"version":3,"file":"bin.mjs","names":[],"sources":["../src/bin.ts"],"sourcesContent":["// The eutaxy command entry: in development through bin/eutaxy.mjs, when published as dist/bin.js.\nimport { main } from \"./cli.ts\";\n\n// A closed pipe (e.g. `eutaxy check ... | head`) is not an error worth a stack trace.\nprocess.stdout.on(\"error\", (err: NodeJS.ErrnoException) => {\n if (err.code === \"EPIPE\") process.exit(process.exitCode ?? 0);\n throw err;\n});\n\nconst code = await main(process.argv.slice(2), {\n cwd: process.cwd(),\n stdout: (t) => process.stdout.write(t),\n stderr: (t) => process.stderr.write(t),\n});\nprocess.exitCode = code;\n"],"mappings":";;;AAIA,QAAQ,OAAO,GAAG,UAAU,QAA+B;CACzD,IAAI,IAAI,SAAS,SAAS,QAAQ,KAAK,QAAQ,YAAY,CAAC;CAC5D,MAAM;AACR,CAAC;AAED,MAAM,OAAO,MAAM,KAAK,QAAQ,KAAK,MAAM,CAAC,GAAG;CAC7C,KAAK,QAAQ,IAAI;CACjB,SAAS,MAAM,QAAQ,OAAO,MAAM,CAAC;CACrC,SAAS,MAAM,QAAQ,OAAO,MAAM,CAAC;AACvC,CAAC;AACD,QAAQ,WAAW"}
@@ -1,11 +1,11 @@
1
1
  import { n as __esmMin, r as __exportAll, t as __commonJSMin } from "./rolldown-runtime-C1I3wEg2.mjs";
2
+ import { PassThrough, Readable, Writable } from "node:stream";
3
+ import { createHash, createHmac, getRandomValues } from "node:crypto";
2
4
  import { ReadStream, createReadStream, fstatSync, lstatSync } from "node:fs";
3
- import { join, sep } from "node:path";
4
5
  import { homedir } from "node:os";
5
- import { createHash, createHmac, getRandomValues } from "node:crypto";
6
- import { PassThrough, Readable, Writable } from "node:stream";
7
- import * as zlib from "node:zlib";
6
+ import { join, sep } from "node:path";
8
7
  import { readFile } from "node:fs/promises";
8
+ import * as zlib from "node:zlib";
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-DJbbDJA0.mjs.map
6049
+ //# sourceMappingURL=checksum-75EliDEr.mjs.map