@systemfsoftware/stryker-js-cli 8.0.1 → 9.0.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.
@@ -1,6 +1,6 @@
1
1
  import { a as __require, n as __esmMin, o as __toCommonJS, r as __exportAll, s as __toESM, t as __commonJSMin } from "./rolldown-runtime-Dr7-SnC6.mjs";
2
- import { n as init_esm_shims, t as __dirname } from "./esm-shims-z34yX56b.mjs";
3
- //#region ../../../node_modules/.pnpm/@emnapi+wasi-threads@1.2.2/node_modules/@emnapi/wasi-threads/dist/wasi-threads.esm-bundler.js
2
+ import { n as init_esm_shims, t as __dirname } from "./main.mjs";
3
+ //#region ../../node_modules/.pnpm/@emnapi+wasi-threads@1.2.2/node_modules/@emnapi/wasi-threads/dist/wasi-threads.esm-bundler.js
4
4
  function getPostMessage(options) {
5
5
  return typeof (options === null || options === void 0 ? void 0 : options.postMessage) === "function" ? options.postMessage : typeof postMessage === "function" ? postMessage : void 0;
6
6
  }
@@ -730,7 +730,7 @@ var init_wasi_threads_esm_bundler = __esmMin((() => {
730
730
  }();
731
731
  }));
732
732
  //#endregion
733
- //#region ../../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs
733
+ //#region ../../node_modules/.pnpm/tslib@2.8.1/node_modules/tslib/tslib.es6.mjs
734
734
  function __extends(d, b) {
735
735
  if (typeof b !== "function" && b !== null) throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
736
736
  extendStatics(d, b);
@@ -761,7 +761,7 @@ var init_tslib_es6 = __esmMin((() => {
761
761
  };
762
762
  }));
763
763
  //#endregion
764
- //#region ../../../node_modules/.pnpm/@emnapi+core@1.11.2/node_modules/@emnapi/core/dist/emnapi-core.esm-bundler.js
764
+ //#region ../../node_modules/.pnpm/@emnapi+core@1.11.2/node_modules/@emnapi/core/dist/emnapi-core.esm-bundler.js
765
765
  var emnapi_core_esm_bundler_exports = /* @__PURE__ */ __exportAll({
766
766
  MessageHandler: () => MessageHandler,
767
767
  ThreadManager: () => ThreadManager,
@@ -7207,8 +7207,9 @@ var init_emnapi_core_esm_bundler = __esmMin((() => {
7207
7207
  version$1 = "1.11.2";
7208
7208
  }));
7209
7209
  //#endregion
7210
- //#region ../../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.2.2_@emnapi+core@1.11.2_@emnapi+runtime@1.11.2/node_modules/@napi-rs/wasm-runtime/dist/emnapi-plugins.cjs
7210
+ //#region ../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.2.3_@emnapi+core@1.11.2_@emnapi+runtime@1.11.2/node_modules/@napi-rs/wasm-runtime/dist/emnapi-plugins.cjs
7211
7211
  var require_emnapi_plugins = /* @__PURE__ */ __commonJSMin(((exports) => {
7212
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
7212
7213
  function asyncWork(emnapiPluginCtx) {
7213
7214
  const { emnapiCtx, emnapiNodeBinding, emnapiAsyncWorkPoolSize } = emnapiPluginCtx;
7214
7215
  var mod = (function(exports$1, emnapi_shared, emscripten_runtime) {
@@ -7227,14 +7228,21 @@ var require_emnapi_plugins = /* @__PURE__ */ __commonJSMin(((exports) => {
7227
7228
  values: [void 0],
7228
7229
  queued: /* @__PURE__ */ new Set(),
7229
7230
  pending: [],
7231
+ pendingHead: 0,
7230
7232
  init: function() {
7231
7233
  const idGen = {
7232
7234
  nextId: 1,
7233
7235
  list: [],
7236
+ listHead: 0,
7234
7237
  generate: function() {
7235
7238
  let id;
7236
- if (idGen.list.length) id = idGen.list.shift();
7237
- else {
7239
+ if (idGen.listHead < idGen.list.length) {
7240
+ id = idGen.list[idGen.listHead++];
7241
+ if (idGen.listHead === idGen.list.length) {
7242
+ idGen.list.length = 0;
7243
+ idGen.listHead = 0;
7244
+ }
7245
+ } else {
7238
7246
  id = idGen.nextId;
7239
7247
  idGen.nextId++;
7240
7248
  }
@@ -7248,6 +7256,7 @@ var require_emnapi_plugins = /* @__PURE__ */ __commonJSMin(((exports) => {
7248
7256
  emnapiAWST.values = [void 0];
7249
7257
  emnapiAWST.queued = /* @__PURE__ */ new Set();
7250
7258
  emnapiAWST.pending = [];
7259
+ emnapiAWST.pendingHead = 0;
7251
7260
  },
7252
7261
  create: function(env, resource, resourceName, execute, complete, data) {
7253
7262
  let asyncId = 0;
@@ -7299,6 +7308,10 @@ var require_emnapi_plugins = /* @__PURE__ */ __commonJSMin(((exports) => {
7299
7308
  if (work.status === 0) {
7300
7309
  work.status = 1;
7301
7310
  if (emnapiAWST.queued.size >= (Math.abs(emnapiAsyncWorkPoolSize) || 4)) {
7311
+ if (emnapiAWST.pendingHead >= 1024 && emnapiAWST.pendingHead * 2 >= emnapiAWST.pending.length) {
7312
+ emnapiAWST.pending.splice(0, emnapiAWST.pendingHead);
7313
+ emnapiAWST.pendingHead = 0;
7314
+ }
7302
7315
  emnapiAWST.pending.push(id);
7303
7316
  return;
7304
7317
  }
@@ -7314,8 +7327,12 @@ var require_emnapi_plugins = /* @__PURE__ */ __commonJSMin(((exports) => {
7314
7327
  emnapiCtx.features.setImmediate(() => {
7315
7328
  emnapiAWST.callComplete(work, 0);
7316
7329
  });
7317
- if (emnapiAWST.pending.length > 0) {
7318
- const nextWorkId = emnapiAWST.pending.shift();
7330
+ if (emnapiAWST.pendingHead < emnapiAWST.pending.length) {
7331
+ const nextWorkId = emnapiAWST.pending[emnapiAWST.pendingHead++];
7332
+ if (emnapiAWST.pendingHead === emnapiAWST.pending.length) {
7333
+ emnapiAWST.pending.length = 0;
7334
+ emnapiAWST.pendingHead = 0;
7335
+ }
7319
7336
  emnapiAWST.values[nextWorkId].status = 0;
7320
7337
  emnapiAWST.queue(nextWorkId);
7321
7338
  }
@@ -7323,12 +7340,16 @@ var require_emnapi_plugins = /* @__PURE__ */ __commonJSMin(((exports) => {
7323
7340
  }
7324
7341
  },
7325
7342
  cancel: function(id) {
7326
- const index = emnapiAWST.pending.indexOf(id);
7343
+ const index = emnapiAWST.pending.indexOf(id, emnapiAWST.pendingHead);
7327
7344
  if (index !== -1) {
7328
7345
  const work = emnapiAWST.values[id];
7329
7346
  if (work && work.status === 1) {
7330
7347
  work.status = 4;
7331
7348
  emnapiAWST.pending.splice(index, 1);
7349
+ if (emnapiAWST.pendingHead === emnapiAWST.pending.length) {
7350
+ emnapiAWST.pending.length = 0;
7351
+ emnapiAWST.pendingHead = 0;
7352
+ }
7332
7353
  emnapiCtx.features.setImmediate(() => {
7333
7354
  emnapiAWST.callComplete(work, 11);
7334
7355
  });
@@ -8654,7 +8675,7 @@ var require_emnapi_plugins = /* @__PURE__ */ __commonJSMin(((exports) => {
8654
8675
  exports.emnapiTSFNPlugin = threadsafeFunction;
8655
8676
  }));
8656
8677
  //#endregion
8657
- //#region ../../../node_modules/.pnpm/@emnapi+runtime@1.11.2/node_modules/@emnapi/runtime/dist/emnapi.esm-bundler.js
8678
+ //#region ../../node_modules/.pnpm/@emnapi+runtime@1.11.2/node_modules/@emnapi/runtime/dist/emnapi.esm-bundler.js
8658
8679
  var emnapi_esm_bundler_exports = /* @__PURE__ */ __exportAll({
8659
8680
  ConstHandle: () => ConstHandle,
8660
8681
  Context: () => Context,
@@ -9935,7 +9956,7 @@ var init_emnapi_esm_bundler = __esmMin((() => {
9935
9956
  }();
9936
9957
  }));
9937
9958
  //#endregion
9938
- //#region ../../../node_modules/.pnpm/@tybys+wasm-util@0.10.3/node_modules/@tybys/wasm-util/dist/wasm-util.esm-bundler.js
9959
+ //#region ../../node_modules/.pnpm/@tybys+wasm-util@0.10.3/node_modules/@tybys/wasm-util/dist/wasm-util.esm-bundler.js
9939
9960
  var wasm_util_esm_bundler_exports = /* @__PURE__ */ __exportAll({
9940
9961
  Asyncify: () => Asyncify,
9941
9962
  Memory: () => Memory,
@@ -12277,8 +12298,9 @@ var init_wasm_util_esm_bundler = __esmMin((() => {
12277
12298
  };
12278
12299
  }));
12279
12300
  //#endregion
12280
- //#region ../../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.2.2_@emnapi+core@1.11.2_@emnapi+runtime@1.11.2/node_modules/@napi-rs/wasm-runtime/dist/fs-proxy.cjs
12301
+ //#region ../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.2.3_@emnapi+core@1.11.2_@emnapi+runtime@1.11.2/node_modules/@napi-rs/wasm-runtime/dist/fs-proxy.cjs
12281
12302
  var require_fs_proxy = /* @__PURE__ */ __commonJSMin(((exports) => {
12303
+ Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
12282
12304
  /**
12283
12305
  * @param {unknown} value
12284
12306
  */
@@ -12515,7 +12537,7 @@ var require_fs_proxy = /* @__PURE__ */ __commonJSMin(((exports) => {
12515
12537
  exports.createOnMessage = createOnMessage;
12516
12538
  }));
12517
12539
  //#endregion
12518
- //#region ../../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.2.2_@emnapi+core@1.11.2_@emnapi+runtime@1.11.2/node_modules/@napi-rs/wasm-runtime/runtime.cjs
12540
+ //#region ../../node_modules/.pnpm/@napi-rs+wasm-runtime@1.2.3_@emnapi+core@1.11.2_@emnapi+runtime@1.11.2/node_modules/@napi-rs/wasm-runtime/runtime.cjs
12519
12541
  var require_runtime = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12520
12542
  const { MessageHandler, instantiateNapiModuleSync, instantiateNapiModule } = (init_emnapi_core_esm_bundler(), __toCommonJS(emnapi_core_esm_bundler_exports));
12521
12543
  const { emnapiAsyncWorkPlugin, emnapiTSFNPlugin } = require_emnapi_plugins();
@@ -12536,7 +12558,7 @@ var require_runtime = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12536
12558
  };
12537
12559
  }));
12538
12560
  //#endregion
12539
- //#region ../../../node_modules/.pnpm/@oxc-parser+binding-wasm32-wasi@0.140.0/node_modules/@oxc-parser/binding-wasm32-wasi/parser.wasi.cjs
12561
+ //#region ../../node_modules/.pnpm/@oxc-parser+binding-wasm32-wasi@0.140.0/node_modules/@oxc-parser/binding-wasm32-wasi/parser.wasi.cjs
12540
12562
  var require_parser_wasi = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12541
12563
  init_esm_shims();
12542
12564
  const __nodeFs = __require("node:fs");
@@ -12612,7 +12634,7 @@ var require_parser_wasi = /* @__PURE__ */ __commonJSMin(((exports, module) => {
12612
12634
  module.exports.rawTransferSupported = __napiModule.exports.rawTransferSupported;
12613
12635
  }));
12614
12636
  //#endregion
12615
- //#region ../../../node_modules/.pnpm/oxc-parser@0.140.0/node_modules/oxc-parser/src-js/wrap.js
12637
+ //#region ../../node_modules/.pnpm/oxc-parser@0.140.0/node_modules/oxc-parser/src-js/wrap.js
12616
12638
  function wrap(result) {
12617
12639
  let program, module, comments, errors;
12618
12640
  return {
@@ -12648,7 +12670,7 @@ function applyFix(program, fixPath) {
12648
12670
  } catch {}
12649
12671
  }
12650
12672
  //#endregion
12651
- //#region ../../../node_modules/.pnpm/oxc-parser@0.140.0/node_modules/oxc-parser/src-js/generated/visit/keys.js
12673
+ //#region ../../node_modules/.pnpm/oxc-parser@0.140.0/node_modules/oxc-parser/src-js/generated/visit/keys.js
12652
12674
  const { freeze } = Object;
12653
12675
  const $EMPTY = freeze([]);
12654
12676
  const DECORATORS__KEY__TYPE_ANNOTATION__VALUE = freeze([
@@ -12983,7 +13005,7 @@ var keys_default = freeze({
12983
13005
  TSUnionType: TYPES
12984
13006
  });
12985
13007
  //#endregion
12986
- //#region ../../../node_modules/.pnpm/oxc-parser@0.140.0/node_modules/oxc-parser/src-js/wasm.js
13008
+ //#region ../../node_modules/.pnpm/oxc-parser@0.140.0/node_modules/oxc-parser/src-js/wasm.js
12987
13009
  var import_parser_wasi = /* @__PURE__ */ __toESM(require_parser_wasi(), 1);
12988
13010
  async function parse(...args) {
12989
13011
  return wrap(await import_parser_wasi.parse(...args));
package/package.json CHANGED
@@ -1,53 +1,52 @@
1
1
  {
2
2
  "name": "@systemfsoftware/stryker-js-cli",
3
- "version": "8.0.1",
3
+ "version": "9.0.0",
4
4
  "repository": {
5
5
  "type": "git",
6
- "url": "git+https://github.com/systemfsoftware/systemfsoftware.git",
7
- "directory": "packages/stryker-js/stryker-js-cli"
6
+ "url": "git+https://github.com/systemfsoftware/stryker-js-effect.git",
7
+ "directory": "apps/stryker-js-cli"
8
8
  },
9
- "homepage": "https://github.com/systemfsoftware/systemfsoftware/tree/main/packages/stryker-js/stryker-js-cli#readme",
10
- "bugs": "https://github.com/systemfsoftware/systemfsoftware/issues",
9
+ "homepage": "https://github.com/systemfsoftware/stryker-js-effect",
10
+ "bugs": "https://github.com/systemfsoftware/stryker-js-effect/issues",
11
11
  "description": "The stryker command-line interface — terminal framing, run-event stream, and exit handling for the @systemfsoftware mutation engine.",
12
12
  "type": "module",
13
13
  "files": [
14
14
  "dist"
15
15
  ],
16
16
  "devDependencies": {
17
+ "@effect/opentelemetry": "4.0.0-rc.112",
17
18
  "@effect/platform-node": "4.0.0-rc.112",
18
19
  "@effect/platform-node-shared": "4.0.0-rc.112",
19
- "@noble/hashes": "2.4.0",
20
+ "@effect/tsgo": "^0.45.0",
21
+ "@noble/hashes": "^2",
22
+ "@opentelemetry/api": "^1.9.0",
23
+ "@opentelemetry/exporter-trace-otlp-http": "^0.208.0",
24
+ "@opentelemetry/sdk-trace-base": "^2.2.0",
20
25
  "@oxc-parser/binding-wasm32-wasi": "^0.140.0",
21
- "@systemfsoftware/arethetypeswrong-cli": "^4.1.0",
26
+ "@systemfsoftware/all": "^2",
27
+ "@systemfsoftware/arethetypeswrong-cli": "^4",
28
+ "@systemfsoftware/effect-cell-types": "^8",
29
+ "@systemfsoftware/effect-gherkin-spec": "^4",
30
+ "@systemfsoftware/effect-schema-law": "^2",
31
+ "@systemfsoftware/effect-schema-vite": "^2",
32
+ "@systemfsoftware/tsconfig": "^1",
22
33
  "@types/node": "^24",
23
34
  "@vitest/coverage-v8": "^4",
24
35
  "effect": "4.0.0-rc.112",
25
36
  "mutation-testing-elements": "3.7.3",
26
37
  "oxc-parser": "^0.140.0",
27
- "oxlint": "^1.77.0",
38
+ "oxlint": "^1",
28
39
  "rimraf": "^6.1.3",
29
- "testcontainers": "^12.1.0",
30
- "tsdown": "^0.22.14",
31
- "vite-tsconfig-paths": "^6.1.1",
40
+ "tsdown": "^0.23.0",
32
41
  "vitest": "^4",
33
- "@systemfsoftware/all": "^2.0.2",
34
- "@systemfsoftware/effect-gherkin-spec": "^4.0.2",
35
- "@systemfsoftware/effect-cell-types": "^8.0.0",
36
- "@systemfsoftware/effect-schema-law": "^2.1.1",
37
- "@systemfsoftware/effect-schema-vite": "^2.1.1",
38
- "@systemfsoftware/oxlint-config": "^0.1.0",
39
- "@systemfsoftware/stryker-js": "^4.0.0",
40
- "@systemfsoftware/stryker-js-engine": "^4.0.0",
41
- "@systemfsoftware/stryker-js-html-reporter": "^3.0.3",
42
- "@systemfsoftware/stryker-js-vitest-runner": "^4.0.4",
43
- "@systemfsoftware/stryker-plugins": "^3.0.3",
44
- "@systemfsoftware/stryker-test-contribution": "^2.0.3",
45
- "@systemfsoftware/stryker-js-typescript-checker": "^5.0.4",
46
- "@systemfsoftware/tsconfig": "^1.3.4",
47
- "@systemfsoftware/vitest-config": "^0.1.0"
42
+ "@systemfsoftware/stryker-js-engine": "^5.0.0",
43
+ "@systemfsoftware/stryker-js-html-reporter": "^4.0.0",
44
+ "@systemfsoftware/vitest-config": "^0.1.0",
45
+ "@systemfsoftware/stryker-js-language": "^5.0.0",
46
+ "@systemfsoftware/stryker-js-plugin-runtime": "^5.0.0"
48
47
  },
49
48
  "engines": {
50
- "node": ">=20.19.0"
49
+ "node": ">=22.18.0"
51
50
  },
52
51
  "license": "Apache-2.0",
53
52
  "publishConfig": {
@@ -60,16 +59,12 @@
60
59
  "stryker": "./dist/main.mjs"
61
60
  },
62
61
  "scripts": {
63
- "clean": "rimraf dist",
64
- "build": "tsdown",
65
- "typecheck": "tsc --noEmit --incremental",
66
62
  "attw": "attw --pack .",
67
- "test": "vitest run",
68
- "test:contract": "vitest run --config vitest.contract.config.ts",
63
+ "build": "tsdown",
64
+ "clean": "rimraf dist",
69
65
  "lint": "f=${OXLINT_FORMAT:-${AGENT:+agent}}; oxlint . --format=${f:-default}",
70
- "mutation": "node ./dist/main.mjs run",
71
- "mutation:full": "node ./dist/main.mjs run --force",
72
- "api:check": "echo 'no API report for CLI (dts: false)' && exit 0",
73
- "api:update": "echo 'no API report for CLI (dts: false)' && exit 0"
66
+ "test": "vitest run",
67
+ "typecheck": "tsc --noEmit --incremental && tsc -p tsconfig.node.json --noEmit",
68
+ "lint:tsgo": "effect-tsgo diagnostics --project tsconfig.json --format ${TSGO_FORMAT:-text}"
74
69
  }
75
70
  }