eutaxy 0.16.1 → 0.17.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-KACykdzJ.mjs → cli-dK6w25AU.mjs} +13 -9
- package/dist/{cli-KACykdzJ.mjs.map → cli-dK6w25AU.mjs.map} +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/cloudflare.d.mts +14 -3
- package/dist/cloudflare.d.mts.map +1 -1
- package/dist/cloudflare.mjs +2 -2
- package/dist/{delivery-invariants-BfRnb9yR.mjs → delivery-invariants-BXCuv43L.mjs} +2 -2
- package/dist/{delivery-invariants-BfRnb9yR.mjs.map → delivery-invariants-BXCuv43L.mjs.map} +1 -1
- package/dist/{delivery-invariants-B8ZZnCZg.d.mts → delivery-invariants-D7DI7i8x.d.mts} +2 -2
- package/dist/{delivery-invariants-B8ZZnCZg.d.mts.map → delivery-invariants-D7DI7i8x.d.mts.map} +1 -1
- package/dist/{explore-DlwIUowm.d.mts → explore-Ci-xVeKU.d.mts} +2 -2
- package/dist/{explore-DlwIUowm.d.mts.map → explore-Ci-xVeKU.d.mts.map} +1 -1
- package/dist/index.d.mts +2 -2
- package/dist/index.mjs +2 -2
- package/dist/{platform-DPJTjpSr.d.mts → platform-D4hlJjm3.d.mts} +26 -1
- package/dist/{platform-DPJTjpSr.d.mts.map → platform-D4hlJjm3.d.mts.map} +1 -1
- package/dist/{src-dkn6Illb.mjs → src-BiX530QY.mjs} +179 -18
- package/dist/src-BiX530QY.mjs.map +1 -0
- package/dist/{src-DWRaG5aV.mjs → src-DVqL5Rk_.mjs} +2 -2
- package/dist/{src-DWRaG5aV.mjs.map → src-DVqL5Rk_.mjs.map} +1 -1
- package/dist/{workerd-9Tt0BV-3.mjs → workerd-b1sqOnVc.mjs} +3751 -3277
- package/dist/workerd-b1sqOnVc.mjs.map +1 -0
- package/package.json +1 -1
- package/dist/src-dkn6Illb.mjs.map +0 -1
- package/dist/workerd-9Tt0BV-3.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.17.0/docs/design.md); the phases and their gates are in
|
|
25
|
+
[docs/roadmap.md](https://github.com/Kaisenwerk/eutaxy/blob/v0.17.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.17.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.17.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.17.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.17.0/LICENSE).
|
package/dist/aws.d.mts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { C as EffectSelector, a as PlatformData, b as StateQuery, c as WorkerRef, f as Invariant, i as ExternalDecl, k as JsonValue, n as Platform, o as ScenarioSpec, r as Bounds, u as AtLeastOnce, y as RowCondition } from "./platform-
|
|
2
|
-
import { n as atMostOncePerKey } from "./delivery-invariants-
|
|
1
|
+
import { C as EffectSelector, a as PlatformData, b as StateQuery, c as WorkerRef, f as Invariant, i as ExternalDecl, k as JsonValue, n as Platform, o as ScenarioSpec, r as Bounds, u as AtLeastOnce, y as RowCondition } from "./platform-D4hlJjm3.mjs";
|
|
2
|
+
import { n as atMostOncePerKey } from "./delivery-invariants-D7DI7i8x.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 writeFaults, C as toJson$1, I as invocationOf, L as redelivery, O as decisionFaults, R as canonicalJson, S as patchProperty, T as validateScenario, b as realTick, c as decide, d as runInvocation, i as rawRun, k as readFaults, n as compareSides, r as proxiedSide, u as note, w as defaultBounds } from "./src-
|
|
3
|
-
import { n as atLeastOncePerMessage$1, r as atMostOncePerKey } from "./delivery-invariants-
|
|
2
|
+
import { A as writeFaults, C as toJson$1, I as invocationOf, L as redelivery, O as decisionFaults, R as canonicalJson, S as patchProperty, T as validateScenario, b as realTick, c as decide, d as runInvocation, i as rawRun, k as readFaults, n as compareSides, r as proxiedSide, u as note, w as defaultBounds } from "./src-BiX530QY.mjs";
|
|
3
|
+
import { n as atLeastOncePerMessage$1, r as atMostOncePerKey } from "./delivery-invariants-BXCuv43L.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 { R as canonicalJson } from "./src-
|
|
2
|
-
import { _ as render, a as renderText, c as checkSpecModule, d as shrinkRefutation, g as endpointNumber, h as endpointBigInt, i as renderSpecs, m as conforms, n as renderSpecReport, p as evaluate, r as renderSpecReportJson, v as describeType } from "./src-
|
|
1
|
+
import { R as canonicalJson } from "./src-BiX530QY.mjs";
|
|
2
|
+
import { _ as render, a as renderText, c as checkSpecModule, d as shrinkRefutation, g as endpointNumber, h as endpointBigInt, i as renderSpecs, m as conforms, n as renderSpecReport, p as evaluate, r as renderSpecReportJson, v as describeType } from "./src-DVqL5Rk_.mjs";
|
|
3
3
|
import { n as isSpec } from "./combinators-CLfsPfhT.mjs";
|
|
4
4
|
import { t as aggregate } from "./provers-DS44OeEm.mjs";
|
|
5
|
-
import { G as cloudflareRegressionTest, n as globKey, r as specKey } from "./workerd-
|
|
5
|
+
import { G as cloudflareRegressionTest, n as globKey, r as specKey } from "./workerd-b1sqOnVc.mjs";
|
|
6
6
|
import { createRequire, registerHooks } from "node:module";
|
|
7
7
|
import { Readable } from "node:stream";
|
|
8
8
|
import { createHash, randomBytes } from "node:crypto";
|
|
@@ -6640,7 +6640,7 @@ function checkTestSource(g) {
|
|
|
6640
6640
|
const sqlImportLines = sqlImports.map((f, i) => `import sql_${i} from ${JSON.stringify(`${f.importPath}?raw`)};\n`);
|
|
6641
6641
|
const workerImportLine = g.workerImport === void 0 ? "" : `import * as workerModule from ${JSON.stringify(g.workerImport)};\n`;
|
|
6642
6642
|
const workerOption = g.workerImport === void 0 ? "" : ", worker: workerModule";
|
|
6643
|
-
const calleesOption = callees.length === 0 ? "" : `, callees: { ${callees.map((c, i) => `${JSON.stringify(c.binding)}: { name: ${JSON.stringify(c.name)}, exports: callee_${i}${c.entrypoint === void 0 ? "" : `, entrypoint: ${JSON.stringify(c.entrypoint)}`}${c.props === void 0 ? "" : `, props: ${JSON.stringify(c.props)}`} }`).join(", ")} }`;
|
|
6643
|
+
const calleesOption = callees.length === 0 ? "" : `, callees: { ${callees.map((c, i) => `${JSON.stringify(c.binding)}: { name: ${JSON.stringify(c.name)}, exports: callee_${i}${c.entrypoint === void 0 ? "" : `, entrypoint: ${JSON.stringify(c.entrypoint)}`}${c.props === void 0 ? "" : `, props: ${JSON.stringify(c.props)}`}${c.self ? ", self: true" : ""} }`).join(", ")} }`;
|
|
6644
6644
|
const extraSql = sqlImports.length === 0 ? "" : `, extraSql: { ${sqlImports.map((f, i) => `${JSON.stringify(f.key)}: sql_${i}`).join(", ")} }`;
|
|
6645
6645
|
const aliases = g.aliases === void 0 || Object.keys(g.aliases).length === 0 ? "" : `, aliases: ${JSON.stringify(g.aliases)}`;
|
|
6646
6646
|
return `// Generated by eutaxy check; deleted after the run.
|
|
@@ -6914,8 +6914,11 @@ async function runCheck(o) {
|
|
|
6914
6914
|
o.stderr(`could not read the scenario's callees: ${String(err)}\n`);
|
|
6915
6915
|
return exitCodes.error;
|
|
6916
6916
|
}
|
|
6917
|
-
for (const c of callees) if (c.notAdded.length > 0) o.stderr(`callee ${describeCallee(c, dir)}: not added to the test's isolate: ${c.notAdded.join(", ")}\n`);
|
|
6918
6917
|
const callerResources = readCallerResources(wrangler);
|
|
6918
|
+
const isSelf = (c) => callerResources?.name !== void 0 && c.name === callerResources.name;
|
|
6919
|
+
const allCallees = callees;
|
|
6920
|
+
callees = allCallees.filter((c) => !isSelf(c));
|
|
6921
|
+
for (const c of callees) if (c.notAdded.length > 0) o.stderr(`callee ${describeCallee(c, dir)}: not added to the test's isolate: ${c.notAdded.join(", ")}\n`);
|
|
6919
6922
|
const isolate = isolateOf(callees, callees.length > 0 ? callerResources : void 0);
|
|
6920
6923
|
const callerServices = (callerResources?.services ?? []).map((s) => s.binding).filter((b) => b);
|
|
6921
6924
|
for (const reason of isolate.notAdded) o.stderr(`not added to the test's isolate: ${reason}\n`);
|
|
@@ -6940,11 +6943,12 @@ async function runCheck(o) {
|
|
|
6940
6943
|
...o.exhaustive ? { exhaustive: true } : {},
|
|
6941
6944
|
scenarioImport: `../${basename(scenarioPath)}`,
|
|
6942
6945
|
...loaded && outside(loaded.worker.entry) ? { workerImport: toPosix(relative(workDir, resolve(dir, loaded.worker.entry))) } : {},
|
|
6943
|
-
...
|
|
6946
|
+
...allCallees.length === 0 ? {} : { callees: allCallees.map((c) => ({
|
|
6944
6947
|
binding: c.binding,
|
|
6945
6948
|
name: c.name,
|
|
6946
6949
|
importPath: toPosix(relative(workDir, c.entry)),
|
|
6947
|
-
...bindingCarries(callerResources, c.binding, callees)
|
|
6950
|
+
...bindingCarries(callerResources, c.binding, callees),
|
|
6951
|
+
...isSelf(c) ? { self: true } : {}
|
|
6948
6952
|
})) },
|
|
6949
6953
|
...sqlImports.length === 0 ? {} : { sqlImports },
|
|
6950
6954
|
...Object.keys(isolate.aliases).length === 0 ? {} : { aliases: isolate.aliases }
|
|
@@ -8322,7 +8326,7 @@ async function runReport(o) {
|
|
|
8322
8326
|
}
|
|
8323
8327
|
// packages/cli/src/version.ts
|
|
8324
8328
|
/** The published package's version, as the MCP server reports it; the release tooling keeps it in step. */
|
|
8325
|
-
const eutaxyVersion = "0.
|
|
8329
|
+
const eutaxyVersion = "0.17.0";
|
|
8326
8330
|
// packages/cli/src/mcp.ts
|
|
8327
8331
|
/**
|
|
8328
8332
|
* `eutaxy mcp`: a Model Context Protocol server over stdio, so a coding
|
|
@@ -9080,4 +9084,4 @@ async function main(argv, io) {
|
|
|
9080
9084
|
}
|
|
9081
9085
|
export { main as t };
|
|
9082
9086
|
|
|
9083
|
-
//# sourceMappingURL=cli-
|
|
9087
|
+
//# sourceMappingURL=cli-dK6w25AU.mjs.map
|