@systemfsoftware/stryker-js-vitest-runner 8.0.0 → 8.0.1

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 (3) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/dist/main.mjs +139 -40
  3. package/package.json +10 -10
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @systemfsoftware/stryker-js-vitest-runner
2
2
 
3
+ ## 8.0.1
4
+
5
+ ### Patch Changes
6
+
7
+ - The packages now depend on `@systemfsoftware/effect-cell-types` 11.
8
+
9
+ - Every tagged error now has a one-line message built from its fields, so a failure names the file, mutant, plugin, worker or exit code involved instead of an empty message. The errors' tags, fields and encoded forms are unchanged.
10
+
3
11
  ## 8.0.0
4
12
 
5
13
  ### Major Changes
package/dist/main.mjs CHANGED
@@ -53176,7 +53176,7 @@ const orElse$1 = orElse$2;
53176
53176
  */
53177
53177
  const exhaustive = exhaustive$1;
53178
53178
  //#endregion
53179
- //#region ../../node_modules/.pnpm/@systemfsoftware+effect-cell-types@10.2.0_effect@4.0.0-rc.117/node_modules/@systemfsoftware/effect-cell-types/dist/rolldown-runtime-D7D4PA-g.mjs
53179
+ //#region ../../node_modules/.pnpm/@systemfsoftware+effect-cell-types@11.0.0_effect@4.0.0-rc.117/node_modules/@systemfsoftware/effect-cell-types/dist/rolldown-runtime-D7D4PA-g.mjs
53180
53180
  var __defProp$1 = Object.defineProperty;
53181
53181
  var __exportAll$1 = (all, no_symbols) => {
53182
53182
  let target = {};
@@ -53188,7 +53188,7 @@ var __exportAll$1 = (all, no_symbols) => {
53188
53188
  return target;
53189
53189
  };
53190
53190
  //#endregion
53191
- //#region ../../node_modules/.pnpm/@systemfsoftware+effect-cell-types@10.2.0_effect@4.0.0-rc.117/node_modules/@systemfsoftware/effect-cell-types/dist/index.mjs
53191
+ //#region ../../node_modules/.pnpm/@systemfsoftware+effect-cell-types@11.0.0_effect@4.0.0-rc.117/node_modules/@systemfsoftware/effect-cell-types/dist/index.mjs
53192
53192
  var Blueprint_exports = /* @__PURE__ */ __exportAll$1({
53193
53193
  IndexId: () => IndexId,
53194
53194
  make: () => make$3$1
@@ -53437,7 +53437,11 @@ const make$1$1 = () => (typeId) => ({
53437
53437
  return self[SlotId];
53438
53438
  }
53439
53439
  });
53440
- var CommandRejected = class extends TaggedError()("CommandRejected", { issue: String$2 }) {};
53440
+ var CommandRejected = class extends TaggedError()("CommandRejected", { issue: String$2 }) {
53441
+ get message() {
53442
+ return this.issue;
53443
+ }
53444
+ };
53441
53445
  var Workflow_exports = /* @__PURE__ */ __exportAll$1({
53442
53446
  InstrumentationBrand: () => InstrumentationBrand,
53443
53447
  WorkflowSchemasKey: () => WorkflowSchemasKey,
@@ -53450,7 +53454,8 @@ const make$4 = (options) => {
53450
53454
  Object.assign(decide, { [WorkflowSchemasKey]: {
53451
53455
  command,
53452
53456
  decision,
53453
- error
53457
+ error,
53458
+ decideStacktrace: String((/* @__PURE__ */ new Error()).stack)
53454
53459
  } });
53455
53460
  return decide;
53456
53461
  };
@@ -53486,6 +53491,32 @@ const entriesOf = (map) => Object.entries(map);
53486
53491
  const isMapDeclaration = (value) => typeof value === "object" && value !== null;
53487
53492
  const annotateFields = (schema, command) => forEach$1(entriesOf(schema[InstrumentationBrand]), ([field, attribute]) => annotateCurrentSpan(attribute, Reflect.get(Object(command), field)), { discard: true });
53488
53493
  const tagOf$1 = (value) => String(Reflect.get(Object(value), "_tag"));
53494
+ const tagIfPresent = (value) => {
53495
+ const tag = Reflect.get(Object(value), "_tag");
53496
+ return typeof tag === "string" ? tag : void 0;
53497
+ };
53498
+ const declaredFields = (schema, command) => Object.fromEntries(entriesOf(schema[InstrumentationBrand]).map(([field]) => [field, Reflect.get(Object(command), field)]));
53499
+ const taggedMember = (command, field) => {
53500
+ const tag = tagIfPresent(Reflect.get(Object(command), field));
53501
+ return tag === void 0 ? [] : [[field, tag]];
53502
+ };
53503
+ const memberTags = (command, fields) => Object.fromEntries(Object.keys(fields).filter((field) => field !== "_tag").flatMap((field) => taggedMember(command, field)));
53504
+ const outcomeTag = (outcome) => match$4(outcome, {
53505
+ onSuccess: tagOf$1,
53506
+ onFailure: tagOf$1
53507
+ });
53508
+ const annotateCellIdentity = (name, stacktrace, decideStacktrace) => gen(function* () {
53509
+ yield* annotateCurrentSpan("cell.name", name);
53510
+ yield* annotateCurrentSpan("cell.stacktrace", stacktrace);
53511
+ yield* annotateCurrentSpan("cell.decide_stacktrace", decideStacktrace);
53512
+ });
53513
+ const annotateCommand = (schema, decoded) => gen(function* () {
53514
+ const commandTag = tagIfPresent(decoded);
53515
+ yield* commandTag === void 0 ? void_$1 : annotateCurrentSpan("cell.command_tag", commandTag);
53516
+ yield* annotateCurrentSpan("cell.member_tags", memberTags(decoded, schema.fields));
53517
+ yield* annotateCurrentSpan("cell.declared", declaredFields(schema, decoded));
53518
+ });
53519
+ const annotateCellOutcome = (outcome) => annotateCurrentSpan("cell.outcome", outcomeTag(outcome));
53489
53520
  const holdsBrand = (holder) => isMapDeclaration(Reflect.get(Object(holder), InstrumentationBrand));
53490
53521
  const hasHeldBrand = (value) => holdsBrand(Reflect.get(Object(value), "constructor"));
53491
53522
  const heldMap = (value) => hasHeldBrand(value) ? value.constructor[InstrumentationBrand] : {};
@@ -53507,14 +53538,14 @@ const recordDuration = (histogram, startNanos, resultClass) => gen(function* ()
53507
53538
  yield* update$2(withAttributes(histogram, { result_class: resultClass }), seconds);
53508
53539
  });
53509
53540
  /** Runs the shell inside the parent span, records duration on every exit, and closes the span. */
53510
- const monitoredRun = (name, histogram, core) => gen(function* () {
53541
+ const monitoredRun = (name, stacktrace, decideStacktrace, histogram, core) => gen(function* () {
53511
53542
  const settled = yield* make$12("infrastructure");
53512
53543
  const startNanos = yield* monotonicTimeNanos;
53513
53544
  const timed = onExit(core((resultClass) => set(settled, resultClass)), (exit) => gen(function* () {
53514
53545
  const resultClass = yield* get$1(settled);
53515
53546
  yield* recordDuration(histogram, startNanos, recordedClass(isSuccess(exit), resultClass));
53516
53547
  }));
53517
- return yield* withSpan(timed, name);
53548
+ return yield* withSpan(andThen$1(annotateCellIdentity(name, stacktrace, decideStacktrace), timed), name);
53518
53549
  });
53519
53550
  const boundariesFor = (options) => options === void 0 ? DEFAULT_DURATION_BOUNDARIES : options.boundaries;
53520
53551
  const histogramFor = (name, options) => histogram(`app.${name}.duration`, { boundaries: boundariesFor(options) });
@@ -53528,12 +53559,18 @@ const dispatchAll = (handlers, values, raw) => forEach$1(values, (value) => disp
53528
53559
  const isEventList = (candidate) => Array.isArray(candidate);
53529
53560
  const dispatchEncoded = (handlers, encoded, raw) => isEventList(encoded) ? dispatchAll(handlers, encoded, raw) : dispatchOne(handlers, encoded, raw);
53530
53561
  const writeValue = (name, handlers, value, raw) => withSpan(dispatchEncoded(handlers, value, raw), `${name}.write`);
53531
- const rejectedRun = (name, handlers, raw, issue, settle) => andThen$1(settle("failure"), writeValue(name, handlers, new CommandRejected({ issue }), raw));
53562
+ const rejectedRun = (name, handlers, raw, issue, settle) => gen(function* () {
53563
+ yield* settle("failure");
53564
+ yield* annotateCurrentSpan("cell.outcome", "CommandRejected");
53565
+ return yield* writeValue(name, handlers, new CommandRejected({ issue }), raw);
53566
+ });
53532
53567
  const encodeValue = (schema, value) => getOrThrow(encodeResult(schema)(value));
53533
53568
  const outcomeRun = (name, schemas, workflow, handlers, decoded, raw, settle) => gen(function* () {
53534
53569
  yield* annotateFields(schemas.command, decoded);
53570
+ yield* annotateCommand(schemas.command, decoded);
53535
53571
  const outcome = workflow(decoded);
53536
53572
  yield* annotateOutcome(name, outcome);
53573
+ yield* annotateCellOutcome(outcome);
53537
53574
  yield* settle(okOrRefusal(outcome));
53538
53575
  return yield* match$4(outcome, {
53539
53576
  onFailure: (refusal) => writeValue(name, handlers, encodeValue(schemas.error, refusal), raw),
@@ -53557,10 +53594,11 @@ const runOnce = (name, schemas, workflow, handlers, raw, settle) => match$4(deco
53557
53594
  const namedImpl = (name, options) => {
53558
53595
  const histogram = histogramFor(name, options);
53559
53596
  return (read) => {
53597
+ const stacktrace = String((/* @__PURE__ */ new Error()).stack);
53560
53598
  const decide = (workflow) => {
53561
53599
  const schemas = workflow[WorkflowSchemasKey];
53562
53600
  const write = (handlers) => {
53563
- const run = (input) => monitoredRun(name, histogram, (settle) => gen(function* () {
53601
+ const run = (input) => monitoredRun(name, stacktrace, schemas.decideStacktrace, histogram, (settle) => gen(function* () {
53564
53602
  const raw = yield* withSpan(read(input), `${name}.read`);
53565
53603
  return yield* runOnce(name, schemas, workflow, handlers, raw, settle);
53566
53604
  }));
@@ -56024,7 +56062,7 @@ const isEmptyNumber = (value$11) => value(value$11).pipe(when(0, () => true), or
56024
56062
  const isEmptyError = (error) => value(error).pipe(when(_undefined, () => true), when(_null, () => true), when(string, (text) => text.length === 0), when(number, isEmptyNumber), when(boolean, (value) => !value), orElse$1(() => false));
56025
56063
  const formatErrnoException = (error) => value(error.stack).pipe(when(hasText, (stack) => `${error.name}: ${error.code} (${error.syscall}) ${stack}`), orElse$1(() => `${error.name}: ${error.code} (${error.syscall})`));
56026
56064
  const formatError = (error) => value(error.stack).pipe(when(hasText, (stack) => `${error.name}: ${error.message}\n${stack}`), orElse$1(() => `${error.name}: ${error.message}`));
56027
- const isJsonPrimitive = (value$10) => value(value$10).pipe(when(number, () => true), when(boolean, () => true), when(bigint, () => true), orElse$1(() => false));
56065
+ const isJsonPrimitive = (value$7) => value(value$7).pipe(when(number, () => true), when(boolean, () => true), when(bigint, () => true), orElse$1(() => false));
56028
56066
  const jsonText = (error) => getOrElse(try_$2({
56029
56067
  try: () => textIfNonEmpty(JSON.stringify(error)),
56030
56068
  catch: () => void 0
@@ -56038,8 +56076,8 @@ const isNonPlaceholderText = (text) => value({
56038
56076
  }, () => true), orElse$1(() => false));
56039
56077
  const isUsableText = (value$12) => value(value$12).pipe(when(string, isNonPlaceholderText), orElse$1(() => false));
56040
56078
  const usableText = (value) => isUsableText(value) ? value : "";
56041
- const objectToStringText = (value$16) => value(fieldOf$1(value$16, "toString")).pipe(when(instanceOf(Function), (callable) => getOrElse(try_$2({
56042
- try: () => usableText(Reflect.apply(callable, value$16, [])),
56079
+ const objectToStringText = (value$15) => value(fieldOf$1(value$15, "toString")).pipe(when(instanceOf(Function), (callable) => getOrElse(try_$2({
56080
+ try: () => usableText(Reflect.apply(callable, value$15, [])),
56043
56081
  catch: () => ""
56044
56082
  }), () => "")), orElse$1(() => ""));
56045
56083
  const toStringText = (error) => isObjectOrArray(error) ? objectToStringText(error) : "";
@@ -56055,14 +56093,14 @@ function nonStringTextOf(error) {
56055
56093
  return primitiveJsonOf(error) ?? stringifyRest(error);
56056
56094
  }
56057
56095
  const errorText = (error) => value(error).pipe(when(isErrnoException, formatErrnoException), orElse$1(() => formatError(error)));
56058
- const errorNameOf = (value$9) => value(value$9).pipe(when(instanceOf(Error), (error) => textIfNonEmpty(error.name)), orElse$1(() => void 0));
56096
+ const errorNameOf = (value$6) => value(value$6).pipe(when(instanceOf(Error), (error) => textIfNonEmpty(error.name)), orElse$1(() => void 0));
56059
56097
  const tagOf = (value$23) => value(textIfNonEmpty(fieldOf$1(value$23, "_tag"))).pipe(when(hasText, (tag) => tag), orElse$1(() => errorNameOf(value$23)));
56060
56098
  const textWithNested = (own, nested) => value(own).pipe(when(hasText, (text) => appendNested(text, nested)), orElse$1(() => nested));
56061
56099
  const appendNested = (own, nested) => value(nested).pipe(when(hasText, (text) => `${own}: ${text}`), orElse$1(() => own));
56062
56100
  const errorMessage = (error) => value(error.message.length > 0).pipe(when(true, () => error.message), orElse$1(() => tagOf(error)));
56063
- const errorMessageOrTag = (value$18) => value(value$18).pipe(when(instanceOf(Error), errorMessage), orElse$1(() => tagOf(value$18)));
56064
- const messageText = (value$6) => value(textIfNonEmpty(fieldOf$1(value$6, "message"))).pipe(when(hasText, (message) => message), orElse$1(() => errorMessageOrTag(value$6)));
56065
- const ownCauseText = (value$17) => value(textIfNonEmpty(fieldOf$1(value$17, "reason"))).pipe(when(hasText, (reason) => reason), orElse$1(() => messageText(value$17)));
56101
+ const errorMessageOrTag = (value$17) => value(value$17).pipe(when(instanceOf(Error), errorMessage), orElse$1(() => tagOf(value$17)));
56102
+ const messageText = (value$5) => value(textIfNonEmpty(fieldOf$1(value$5, "message"))).pipe(when(hasText, (message) => message), orElse$1(() => errorMessageOrTag(value$5)));
56103
+ const ownCauseText = (value$16) => value(textIfNonEmpty(fieldOf$1(value$16, "reason"))).pipe(when(hasText, (reason) => reason), orElse$1(() => messageText(value$16)));
56066
56104
  const isPastDepth = (depth) => depth > 4;
56067
56105
  const isMissingCause = (cause) => cause === void 0 || cause === null;
56068
56106
  function causeText(cause, depth) {
@@ -56306,16 +56344,32 @@ var MutantsUnapplied = class extends TaggedError()("MutantsUnapplied", {
56306
56344
  placer: PlacerNameSchema,
56307
56345
  mutatorNames: ArraySchema(MutatorNameSchema),
56308
56346
  cause: Defect()
56309
- }) {};
56347
+ }) {
56348
+ get message() {
56349
+ return `Failed to apply ${this.mutatorNames.join(", ")} in ${this.fileName}`;
56350
+ }
56351
+ };
56310
56352
  var MutantNotApplied = class extends TaggedError()("MutantNotApplied", {
56311
56353
  fileName: String$2,
56312
56354
  mutatorName: MutatorNameSchema
56313
- }) {};
56314
- var NodeWithoutSpan = class extends TaggedError()("NodeWithoutSpan", { fileName: String$2 }) {};
56355
+ }) {
56356
+ get message() {
56357
+ return `Could not apply the ${this.mutatorName} mutant in ${this.fileName}`;
56358
+ }
56359
+ };
56360
+ var NodeWithoutSpan = class extends TaggedError()("NodeWithoutSpan", { fileName: String$2 }) {
56361
+ get message() {
56362
+ return `Node without a span in ${this.fileName}`;
56363
+ }
56364
+ };
56315
56365
  var MutantsUnplaced = class extends TaggedError()("MutantsUnplaced", {
56316
56366
  fileName: String$2,
56317
56367
  detail: String$2
56318
- }) {};
56368
+ }) {
56369
+ get message() {
56370
+ return `Mutants cannot be placed. This shouldn't happen! Unplaced mutants: ${this.detail}`;
56371
+ }
56372
+ };
56319
56373
  var PlacementRefused = class extends TaggedError()("PlacementRefused", { message: String$2 }) {};
56320
56374
  const LINE_TERMINATOR = /\r\n|[\n\r\u2028\u2029]/g;
56321
56375
  const lineStartsOf = (text) => [0, ...[...text.matchAll(LINE_TERMINATOR)].map((match) => match.index + match[0].length)];
@@ -57072,7 +57126,7 @@ const identifierText = (node) => match$6(fromNullishOr(node), {
57072
57126
  onNone: () => none(),
57073
57127
  onSome: (present) => value(present).pipe(when(isNamedIdentifier, (name) => some(name.name)), when(isStringLiteral$1, (literal) => literalValueText(literal.value)), orElse$1(() => none()))
57074
57128
  });
57075
- const literalValueText = (value$15) => value(value$15).pipe(when(isString, (text) => some(text)), orElse$1(() => none()));
57129
+ const literalValueText = (value$10) => value(value$10).pipe(when(isString, (text) => some(text)), orElse$1(() => none()));
57076
57130
  const moduleExportName = (name) => getOrElse$1(identifierText(name), () => "");
57077
57131
  const staticMemberName = (member) => value(member.computed).pipe(when(false, () => identifierText(member.property)), orElse$1(() => none()));
57078
57132
  const nodesOutsideFunctions = (root) => {
@@ -57096,7 +57150,7 @@ const pruneAtFunction = (path) => match$6(onlyWhen(isFunctionLike(path.node), pa
57096
57150
  });
57097
57151
  const moduleCallDataFirst = (module, property, args) => callExpression(memberExpression(module, identifier(property), false), args);
57098
57152
  const moduleCall = dual((args) => args.length >= 3, moduleCallDataFirst);
57099
- const onlyWhenDataFirst = (holds, value$8) => value(holds).pipe(when(true, () => some(value$8)), orElse$1(() => none()));
57153
+ const onlyWhenDataFirst = (holds, value$22) => value(holds).pipe(when(true, () => some(value$22)), orElse$1(() => none()));
57100
57154
  const onlyWhen = dual((args) => args.length >= 2, onlyWhenDataFirst);
57101
57155
  const holdsAny = (conditions) => conditions.some((condition) => condition);
57102
57156
  const sameNode = (first, second) => first === second;
@@ -58624,10 +58678,10 @@ const literalWithoutRegex = (node) => match$6(fromNullishOr(node.bigint), {
58624
58678
  onSome: (bigint) => bigint,
58625
58679
  onNone: () => valueLiteralText(node.value)
58626
58680
  });
58627
- const valueLiteralText = (value$5) => value(value$5).pipe(when(string, (v) => JSON.stringify(v)), orElse$1(nonStringLiteralText));
58628
- const nonStringLiteralText = (value$20) => value(value$20).pipe(when(number, (v) => String(v)), orElse$1(booleanOrBigintText));
58629
- const booleanOrBigintText = (value$7) => value(value$7).pipe(when(boolean, (v) => String(v)), orElse$1(bigintText));
58630
- const bigintText = (value$14) => value(value$14).pipe(when((candidate) => typeof candidate === "bigint", (v) => `${String(v)}n`), orElse$1(() => "null"));
58681
+ const valueLiteralText = (value$20) => value(value$20).pipe(when(string, (v) => JSON.stringify(v)), orElse$1(nonStringLiteralText));
58682
+ const nonStringLiteralText = (value$14) => value(value$14).pipe(when(number, (v) => String(v)), orElse$1(booleanOrBigintText));
58683
+ const booleanOrBigintText = (value$21) => value(value$21).pipe(when(boolean, (v) => String(v)), orElse$1(bigintText));
58684
+ const bigintText = (value$9) => value(value$9).pipe(when((candidate) => typeof candidate === "bigint", (v) => `${String(v)}n`), orElse$1(() => "null"));
58631
58685
  const flagText = (present, text) => match$1(isTruthy(present), {
58632
58686
  onTrue: () => text,
58633
58687
  onFalse: () => ""
@@ -58642,7 +58696,7 @@ const objectExpressionText = (ctx, node) => match$1(node.properties.length === 0
58642
58696
  onFalse: () => `{ ${nodeListText(ctx, node.properties, PREC.Sequence)} }`
58643
58697
  });
58644
58698
  const propertyText = (ctx, node) => value(propertyFormOf(node)).pipe(when("accessor", () => `${node.kind} ${propertyKeyText(ctx, node.key, node.computed === true, PREC.Assignment)}${functionValueTailText(ctx, node.value)}`), when("method", () => `${propertyKeyText(ctx, node.key, node.computed === true, PREC.Assignment)}${functionValueTailText(ctx, node.value)}`), when("shorthand", () => identifierNameText(node.key)), when("shorthandDefault", () => shorthandDefaultPropertyText(ctx, node)), orElse$1(() => `${propertyKeyText(ctx, node.key, node.computed === true, PREC.Assignment)}: ${printNodePrec(ctx, node.value, PREC.Assignment)}`));
58645
- const functionValueTailText = (ctx, value$13) => value(value$13).pipe(when(isFunctionNode, (fn) => functionTailText(ctx, fn)), orElse$1(() => ""));
58699
+ const functionValueTailText = (ctx, value$8) => value(value$8).pipe(when(isFunctionNode, (fn) => functionTailText(ctx, fn)), orElse$1(() => ""));
58646
58700
  const shorthandDefaultPropertyText = (ctx, node) => value(node.value).pipe(when(isAssignmentPattern, (value) => `${identifierNameText(node.key)} = ${printNodePrec(ctx, value.right, PREC.Assignment)}`), orElse$1(() => ""));
58647
58701
  const propertyKeyText = (ctx, key, computed, computedPrec) => match$1(computed, {
58648
58702
  onTrue: () => `[${dispatchNode(ctx, key, computedPrec)}]`,
@@ -58781,7 +58835,7 @@ const jsxAttributeValueClauseText = (ctx, value) => match$6(fromNullishOr(value)
58781
58835
  onSome: (nonNull) => `=${jsxAttributeValueText(ctx, nonNull)}`,
58782
58836
  onNone: () => ""
58783
58837
  });
58784
- const jsxAttributeValueText = (ctx, value$19) => value(value$19).pipe(discriminators("type")({
58838
+ const jsxAttributeValueText = (ctx, value$13) => value(value$13).pipe(discriminators("type")({
58785
58839
  Literal: (n) => literalText(n),
58786
58840
  JSXExpressionContainer: (n) => `{${sequenceNodeText(ctx, n.expression)}}`,
58787
58841
  JSXElement: (n) => sequenceNodeText(ctx, n),
@@ -58823,7 +58877,7 @@ const doWhileStatementText = (ctx, node) => `do ${statementOrBlockText(ctx, node
58823
58877
  const forStatementText = (ctx, node) => `for (${declarationOrExpressionText(ctx, node.init)}; ${optionalSequenceText(ctx, node.test)}; ${optionalSequenceText(ctx, node.update)}) ${statementOrBlockText(ctx, node.body)}`;
58824
58878
  const declarationOrExpressionText = (ctx, node) => match$6(fromNullishOr(node), {
58825
58879
  onNone: () => "",
58826
- onSome: (value$22) => value(value$22).pipe(discriminators("type")({ VariableDeclaration: (n) => variableDeclarationText(ctx, n) }), orElse$1((n) => printNodePrec(ctx, n, PREC.Sequence)))
58880
+ onSome: (value$19) => value(value$19).pipe(discriminators("type")({ VariableDeclaration: (n) => variableDeclarationText(ctx, n) }), orElse$1((n) => printNodePrec(ctx, n, PREC.Sequence)))
58827
58881
  });
58828
58882
  const optionalSequenceText = (ctx, node) => sequenceNodeText(ctx, node);
58829
58883
  const forInStatementText = (ctx, node) => `for (${value(node.left).pipe(discriminators("type")({ VariableDeclaration: (n) => variableDeclarationText(ctx, n) }), orElse$1((n) => printNodePrec(ctx, n, PREC.Sequence)))} in ${printNodePrec(ctx, node.right, PREC.Sequence)}) ${statementOrBlockText(ctx, node.body)}`;
@@ -59081,7 +59135,7 @@ const identifierName = (node) => getOrUndefined$1(map$8(filter$1(fromNullishOr(n
59081
59135
  const identifierNameText = (node) => identifierName(node) ?? "";
59082
59136
  const privateIdentifierText = (node) => match$6(fromNullishOr(node), {
59083
59137
  onNone: () => "",
59084
- onSome: (value$21) => value(value$21).pipe(discriminators("type")({ PrivateIdentifier: (n) => `#${n.name}` }), orElse$1(() => ""))
59138
+ onSome: (value$18) => value(value$18).pipe(discriminators("type")({ PrivateIdentifier: (n) => `#${n.name}` }), orElse$1(() => ""))
59085
59139
  });
59086
59140
  const precOf = type().pipe(discriminators("type")({
59087
59141
  SequenceExpression: () => PREC.Sequence,
@@ -59282,7 +59336,11 @@ var FormatOverrideUnclaimed = class extends TaggedError()("FormatOverrideUnclaim
59282
59336
  fileName: String$2,
59283
59337
  formatId: String$2,
59284
59338
  reason: String$2
59285
- }) {};
59339
+ }) {
59340
+ get message() {
59341
+ return `Cannot instrument ${this.fileName}: ${this.reason}`;
59342
+ }
59343
+ };
59286
59344
  const pinOf = (command) => fromUndefinedOr(command.formatId);
59287
59345
  const matchesCommand = (claim, command) => value(pinOf(command)).pipe(when(isSome, (pin) => claim.formatId === pin.value), orElse$1(() => claim.extensions.includes(command.extension)));
59288
59346
  const claimFor = (command) => command.claims.find((claim) => matchesCommand(claim, command));
@@ -59510,8 +59568,16 @@ var MutantKindMismatch = class extends TaggedError()("MutantKindMismatch", {
59510
59568
  mutantId: MutantId,
59511
59569
  mutatorName: MutatorNameSchema,
59512
59570
  expected: ExpectedKindSchema
59513
- }) {};
59514
- var NoPlacerClaimsNode = class extends TaggedError()("NoPlacerClaimsNode", { fileName: String$2 }) {};
59571
+ }) {
59572
+ get message() {
59573
+ return `Expected ${this.expected} for mutant ${this.mutantId} (${this.mutatorName}) in ${this.fileName}`;
59574
+ }
59575
+ };
59576
+ var NoPlacerClaimsNode = class extends TaggedError()("NoPlacerClaimsNode", { fileName: String$2 }) {
59577
+ get message() {
59578
+ return `No placer claims the node in ${this.fileName}`;
59579
+ }
59580
+ };
59515
59581
  const claimingPlacer = (facts) => value(facts).pipe(when({
59516
59582
  isExpression: true,
59517
59583
  expressionIsValid: true
@@ -59611,7 +59677,11 @@ var MutantsFullyIgnored = class extends TaggedClass()("MutantsFullyIgnored", {
59611
59677
  var MutantWithoutLocation = class extends TaggedError()("MutantWithoutLocation", {
59612
59678
  fileName: String$2,
59613
59679
  mutatorName: MutatorNameSchema
59614
- }) {};
59680
+ }) {
59681
+ get message() {
59682
+ return `Mutant without a source location: ${this.mutatorName} in ${this.fileName}`;
59683
+ }
59684
+ };
59615
59685
  const reachedLine = (located, line) => value(located.directive.scope).pipe(when(NEXT_LINE, () => located.governedLine === line), when("block", () => true), exhaustive);
59616
59686
  const namesMutator = (located, lowerMutatorName) => located.directive.mutatorNames.some((name) => [name === WILDCARD, name.toLowerCase() === lowerMutatorName].some(Boolean));
59617
59687
  const lastReachingDirective = (rule, lowerMutatorName, line) => fromNullishOr(rule.findLast((located) => [reachedLine(located, line), namesMutator(located, lowerMutatorName)].every(Boolean)));
@@ -60964,7 +61034,12 @@ var CheckerFailed = class extends TaggedError()("CheckerFailed", {
60964
61034
  cause: String$2,
60965
61035
  checkerName: String$2,
60966
61036
  mutantIds: ArraySchema(Mutant_exports.MutantId)
60967
- }) {};
61037
+ }) {
61038
+ get message() {
61039
+ const mutants = this.mutantIds.length === 0 ? "" : ` for mutants ${this.mutantIds.join(", ")}`;
61040
+ return `Checker "${this.checkerName}" failed${mutants}: ${this.cause}`;
61041
+ }
61042
+ };
60968
61043
  Service$1()("@systemfsoftware/stryker-js-plugin-interface/Checker.service/Checker");
60969
61044
  TaggedError()("EvaluatorFailed", { cause: Unknown });
60970
61045
  Service$1()("@systemfsoftware/stryker-js-plugin-interface/Evaluator.service/Evaluator");
@@ -61136,7 +61211,11 @@ var TestRunnerFailed = class extends TaggedError()("TestRunnerFailed", {
61136
61211
  "mutantRun"
61137
61212
  ]),
61138
61213
  runnerName: String$2
61139
- }) {};
61214
+ }) {
61215
+ get message() {
61216
+ return `Test runner "${this.runnerName}" failed during ${this.phase}: ${this.cause}`;
61217
+ }
61218
+ };
61140
61219
  const MutantResultSchema = Struct({
61141
61220
  id: Mutant_exports.MutantId,
61142
61221
  mutatorName: String$2,
@@ -61508,7 +61587,11 @@ var ReporterFailed = class extends TaggedError()("ReporterFailed", {
61508
61587
  cause: String$2,
61509
61588
  event: ReporterEventKind,
61510
61589
  reporterName: String$2
61511
- }) {};
61590
+ }) {
61591
+ get message() {
61592
+ return `Reporter "${this.reporterName}" failed while handling ${this.event}: ${this.cause}`;
61593
+ }
61594
+ };
61512
61595
  const TraceparentHeader = Literal("traceparent");
61513
61596
  const TracestateHeader = Literal("tracestate");
61514
61597
  const VERSION = String$2.pipe(check$1(isPattern(/^([0-9a-e][0-9a-f]|[0-9a-f][0-9a-e])$/)));
@@ -61605,12 +61688,20 @@ var BoundaryPayloadRejected = class extends TaggedError()("BoundaryPayloadReject
61605
61688
  pluginName: String$2,
61606
61689
  method: String$2,
61607
61690
  cause: String$2
61608
- }) {};
61691
+ }) {
61692
+ get message() {
61693
+ return `Plugin "${this.pluginName}" rejected the payload for ${this.method}: ${this.cause}`;
61694
+ }
61695
+ };
61609
61696
  var BoundaryUnrecognizedSignal = class extends TaggedError()("BoundaryUnrecognizedSignal", {
61610
61697
  pluginName: String$2,
61611
61698
  method: String$2,
61612
61699
  signal: String$2
61613
- }) {};
61700
+ }) {
61701
+ get message() {
61702
+ return `Plugin "${this.pluginName}" sent an unrecognized signal "${this.signal}" for ${this.method}`;
61703
+ }
61704
+ };
61614
61705
  const BoundaryErrorSchema = Union([
61615
61706
  BoundaryPayloadRejected,
61616
61707
  BoundaryUnrecognizedSignal,
@@ -61801,7 +61892,11 @@ var __exportAll = (all, no_symbols) => {
61801
61892
  //#endregion
61802
61893
  //#region ../stryker-js-plugin-runtime/dist/index.mjs
61803
61894
  init_esm$2();
61804
- var TraceContextUnavailable = class extends TaggedError()("TraceContextUnavailable", { reason: Literals(["invalid-span-context", "undecodable-parts"]) }) {};
61895
+ var TraceContextUnavailable = class extends TaggedError()("TraceContextUnavailable", { reason: Literals(["invalid-span-context", "undecodable-parts"]) }) {
61896
+ get message() {
61897
+ return value(this.reason).pipe(when("invalid-span-context", () => "Cannot read trace context: the span context is invalid"), when("undecodable-parts", () => "Cannot read trace context: the trace context parts could not be decoded"), exhaustive);
61898
+ }
61899
+ };
61805
61900
  const CURRENT_VERSION = "00";
61806
61901
  const SAMPLED_FLAG = 1;
61807
61902
  const EffectSpanShape = Struct({
@@ -62317,7 +62412,11 @@ const VitestRunnerOptionsSchema = Struct({
62317
62412
  timeoutTrapFile: optional(String$2),
62318
62413
  timeoutTrapMutantId: optional(Mutant_exports.MutantId)
62319
62414
  });
62320
- var CoverageDecodeFailed = class extends TaggedError()("CoverageDecodeFailed", { cause: Unknown }) {};
62415
+ var CoverageDecodeFailed = class extends TaggedError()("CoverageDecodeFailed", { cause: Unknown }) {
62416
+ get message() {
62417
+ return "Failed to decode coverage data";
62418
+ }
62419
+ };
62321
62420
  const ExportEntry = Union([String$2, Record(String$2, Unknown)]);
62322
62421
  const PackageManifest = StructWithRest(Struct({
62323
62422
  name: optional(String$2),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@systemfsoftware/stryker-js-vitest-runner",
3
- "version": "8.0.0",
3
+ "version": "8.0.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/systemfsoftware/stryker-js-effect.git",
@@ -37,7 +37,7 @@
37
37
  "@opentelemetry/exporter-trace-otlp-http": "^0.222.0",
38
38
  "@opentelemetry/sdk-node": "^0.222.0",
39
39
  "@opentelemetry/sdk-trace-base": "^2.2.0",
40
- "@systemfsoftware/effect-cell-types": "^10.2.0"
40
+ "@systemfsoftware/effect-cell-types": "^11.0.0"
41
41
  },
42
42
  "peerDependencies": {
43
43
  "vitest": "^5"
@@ -46,15 +46,15 @@
46
46
  "@effect/platform-node": "4.0.0-rc.117",
47
47
  "@microsoft/api-extractor": "^7",
48
48
  "@systemfsoftware/arethetypeswrong-cli": "^4.2.0",
49
- "@systemfsoftware/effect-gherkin-spec": "^5.0.0",
50
- "@systemfsoftware/oxlint-config-recommended": "^3.1.0",
49
+ "@systemfsoftware/effect-gherkin-spec": "^6.0.0",
50
+ "@systemfsoftware/oxlint-config-recommended": "^3.2.0",
51
51
  "@systemfsoftware/stryker-ignorer-effect-schema-declarations": "latest",
52
52
  "@systemfsoftware/stryker-ignorer-in-source-vitest-block": "latest",
53
53
  "@systemfsoftware/stryker-js": "latest",
54
54
  "@systemfsoftware/stryker-js-typescript-checker": "latest",
55
55
  "@systemfsoftware/stryker-js-vitest-runner": "latest",
56
56
  "@systemfsoftware/tsconfig": "^2.0.1",
57
- "@systemfsoftware/vitest": "^0.1.0",
57
+ "@systemfsoftware/vitest": "^0.2.0",
58
58
  "@types/node": "^24",
59
59
  "@vitest/browser-playwright": "^5",
60
60
  "concurrently": "^10",
@@ -64,11 +64,11 @@
64
64
  "tsdown": "^0.23.0",
65
65
  "typescript": "^7",
66
66
  "vitest": "^5",
67
- "@systemfsoftware/stryker-js-instrumenter": "^10.0.0",
68
- "@systemfsoftware/stryker-js-plugin-interface": "^10.0.0",
69
- "@systemfsoftware/stryker-js-plugin-runtime": "^6.0.3",
70
- "@systemfsoftware/vitest-config": "^0.1.0",
71
67
  "@systemfsoftware/stryker-config": "^0.1.0",
68
+ "@systemfsoftware/stryker-js-instrumenter": "^10.0.1",
69
+ "@systemfsoftware/stryker-js-plugin-interface": "^10.0.1",
70
+ "@systemfsoftware/stryker-js-plugin-runtime": "^6.0.4",
71
+ "@systemfsoftware/vitest-config": "^0.1.0",
72
72
  "@systemfsoftware/tsdown-config": "^0.1.0"
73
73
  },
74
74
  "publishConfig": {
@@ -93,7 +93,7 @@
93
93
  "@opentelemetry/sdk-trace-base": "2.11.0",
94
94
  "@opentelemetry/sdk-trace-node": "2.11.0",
95
95
  "@opentelemetry/semantic-conventions": "1.43.0",
96
- "@systemfsoftware/effect-cell-types": "10.2.0",
96
+ "@systemfsoftware/effect-cell-types": "11.0.0",
97
97
  "effect": "4.0.0-rc.117",
98
98
  "oxc-parser": "0.150.0",
99
99
  "ws": "8.21.3"