@systemfsoftware/stryker-js-vitest-runner 10.1.0 → 10.1.2

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/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # @systemfsoftware/stryker-js-vitest-runner
2
2
 
3
+ ## 10.1.2
4
+
5
+ Bundles the plugin interface whose reporter counts and durations are bounded, so a reporter sum can no longer overflow to Infinity.
6
+
7
+ ## 10.1.1
8
+
9
+ The workspace dogfoods @systemfsoftware/stryker-js 23.0.0 and the TypeScript checker 10.0.0, and every package resolves one @systemfsoftware/effect-cell-types (12.1.4). The TypeScript checker and the vitest runner bundle 12.1.4 in place of 12.0.0, and stryker-js and the checker bundle @jsr/std__jsonc 1.0.3 in place of 1.0.2. Every package that takes @systemfsoftware/effect-cell-types from the catalog publishes the range ^12.1.4 in place of ^12.0.0.
10
+
3
11
  ## 10.1.0
4
12
 
5
13
  The runner's worker resolves `vitest` from the sandbox it runs in, so a runner installed outside the project, such as the flake's `stryker` package, runs the project's own vitest. It used to resolve vitest from its own install location and failed with `ERR_MODULE_NOT_FOUND` when nothing installed vitest beside it.
package/dist/worker.mjs CHANGED
@@ -53083,7 +53083,7 @@ const Mutant = TaggedStruct("Mutant", {
53083
53083
  statusReason: optional(String$2),
53084
53084
  coveredBy: String$2.pipe(ArraySchema, optional),
53085
53085
  static: optional(Boolean$3),
53086
- testsCompleted: optional(Finite),
53086
+ testsCompleted: optional(Natural),
53087
53087
  description: optional(String$2),
53088
53088
  subsumption: optional(Subsumption),
53089
53089
  probeEligibility: ProbeEligibility.pipe(withConstructorDefault(succeed$4(NOT_DECIDED)), withDecodingDefaultKey(succeed$4(NOT_DECIDED)))
@@ -53806,7 +53806,7 @@ const MutantResult = StructWithRest(Struct({
53806
53806
  "description": "Result of the mutation."
53807
53807
  }),
53808
53808
  "statusReason": optionalKey(String$2.annotate({ "description": "The reason that this mutant has this status. In the case of a killed mutant, this should be filled with the failure message(s) of the failing tests. In case of an error mutant, this should be filled with the error message." })),
53809
- "testsCompleted": optionalKey(Finite.annotate({ "description": "The number of tests actually completed in order to test this mutant. Can differ from \"coveredBy\" because of bailing a mutant test run after first failing test." }).check(isFinite().annotate({ "expected": "a finite number" })))
53809
+ "testsCompleted": optionalKey(Finite.annotate({ "description": "The number of tests actually completed in order to test this mutant. Can differ from \"coveredBy\" because of bailing a mutant test run after first failing test." }).check(isInt().annotate({ "expected": "an integer" })).check(isGreaterThanOrEqualTo(0).annotate({ "expected": "a value greater than or equal to 0" })).check(isLessThanOrEqualTo(9007199254740991).annotate({ "expected": "a value less than or equal to 9007199254740991" })))
53810
53810
  }), [Record$1(String$2, Json.annotate({ "expected": "JSON value" }))]).annotate({
53811
53811
  "title": "MutantResult",
53812
53812
  "description": "Single mutation.",
@@ -53996,14 +53996,15 @@ var TestRunnerFailed = class extends TaggedError()("TestRunnerFailed", {
53996
53996
  return `Test runner "${this.runnerName}" failed during ${this.phase}: ${this.cause}`;
53997
53997
  }
53998
53998
  };
53999
+ const DurationMs = Finite.pipe(check$1(isGreaterThanOrEqualTo(0), isLessThanOrEqualTo(Number.MAX_SAFE_INTEGER)));
53999
54000
  const RunTimingSchema = Struct({
54000
- net: NonNegativeFinite,
54001
- overhead: NonNegativeFinite
54001
+ net: DurationMs,
54002
+ overhead: DurationMs
54002
54003
  });
54003
54004
  const ReporterPlanDescriptorSchema = Struct({
54004
54005
  mutantId: MutantId,
54005
54006
  plan: Literals(["EarlyResult", "Run"]),
54006
- netTime: NonNegativeFinite,
54007
+ netTime: DurationMs,
54007
54008
  reloadEnvironment: Boolean$3
54008
54009
  });
54009
54010
  var DryRunCompleted = class extends TaggedClass()("dryRunCompleted", {
@@ -54877,6 +54878,7 @@ const SpanName = String$2.check(isPattern(/^[A-Za-z][A-Za-z0-9_-]*(?:\.[A-Za-z][
54877
54878
  const SpanAttributeKey = String$2.check(isPattern(/^[A-Za-z][A-Za-z0-9_.-]*$/u, { expected: "an attribute key starting with a letter, such as \"stryker.checker.name\"" })).pipe(brand("SpanAttributeKey"));
54878
54879
  const SpanAttributeText = String$2;
54879
54880
  const SpanAttributeCount = Finite;
54881
+ const SpanAttributeCountWhenRecorded = optionalKey(SpanAttributeCount);
54880
54882
  const SpanRunStatus = Literals([
54881
54883
  "success",
54882
54884
  "failure",
@@ -54884,6 +54886,24 @@ const SpanRunStatus = Literals([
54884
54886
  "aborted",
54885
54887
  "skipped"
54886
54888
  ]);
54889
+ const CompilerCheckAttributes = {
54890
+ "typescript.snapshot_updates.count": SpanAttributeCountWhenRecorded,
54891
+ "typescript.resplices.count": SpanAttributeCountWhenRecorded,
54892
+ "typescript.importer_shortcut.count": SpanAttributeCountWhenRecorded,
54893
+ "typescript.importer_shortcut.fallback.original.outside-function-body.count": SpanAttributeCountWhenRecorded,
54894
+ "typescript.importer_shortcut.fallback.original.body-dependent-signature.count": SpanAttributeCountWhenRecorded,
54895
+ "typescript.importer_shortcut.fallback.original.not-typescript-module.count": SpanAttributeCountWhenRecorded,
54896
+ "typescript.importer_shortcut.fallback.original.module-reference.count": SpanAttributeCountWhenRecorded,
54897
+ "typescript.importer_shortcut.fallback.original.syntax-error.count": SpanAttributeCountWhenRecorded,
54898
+ "typescript.importer_shortcut.fallback.original.shared-file.count": SpanAttributeCountWhenRecorded,
54899
+ "typescript.importer_shortcut.fallback.mutated.outside-function-body.count": SpanAttributeCountWhenRecorded,
54900
+ "typescript.importer_shortcut.fallback.mutated.body-dependent-signature.count": SpanAttributeCountWhenRecorded,
54901
+ "typescript.importer_shortcut.fallback.mutated.not-typescript-module.count": SpanAttributeCountWhenRecorded,
54902
+ "typescript.importer_shortcut.fallback.mutated.module-reference.count": SpanAttributeCountWhenRecorded,
54903
+ "typescript.importer_shortcut.fallback.mutated.syntax-error.count": SpanAttributeCountWhenRecorded,
54904
+ "typescript.importer_shortcut.fallback.mutated.shared-file.count": SpanAttributeCountWhenRecorded,
54905
+ "typescript.importer_shortcut.fallback.unread.count": SpanAttributeCountWhenRecorded
54906
+ };
54887
54907
  const SpanDocument = Struct({
54888
54908
  id: SpanName,
54889
54909
  name: SpanName,
@@ -55048,7 +55068,7 @@ const Spans = {
55048
55068
  },
55049
55069
  htmlReportWrite: {
55050
55070
  name: "html_report.write",
55051
- attributes: {}
55071
+ attributes: { "stryker.html_report.file_name": SpanAttributeText }
55052
55072
  },
55053
55073
  htmlReportWriteBundleFromDisk: {
55054
55074
  name: "html_report.write_bundle_from_disk",
@@ -55672,7 +55692,7 @@ const Spans = {
55672
55692
  },
55673
55693
  typescriptCheckerCompilerCheck: {
55674
55694
  name: "typescript-checker.compiler.check",
55675
- attributes: {}
55695
+ attributes: CompilerCheckAttributes
55676
55696
  },
55677
55697
  typescriptCheckerCompilerClose: {
55678
55698
  name: "typescript-checker.compiler.close",
@@ -55850,7 +55870,7 @@ Literals([
55850
55870
  "FinalizerEscape"
55851
55871
  ]);
55852
55872
  //#endregion
55853
- //#region ../../node_modules/.pnpm/@systemfsoftware+effect-cell-types@12.0.0_effect@4.1.2/node_modules/@systemfsoftware/effect-cell-types/dist/rolldown-runtime-D7D4PA-g.mjs
55873
+ //#region ../../node_modules/.pnpm/@systemfsoftware+effect-cell-types@12.2.0_effect@4.1.2/node_modules/@systemfsoftware/effect-cell-types/dist/rolldown-runtime-D7D4PA-g.mjs
55854
55874
  var __defProp$1 = Object.defineProperty;
55855
55875
  var __exportAll$1 = (all, no_symbols) => {
55856
55876
  let target = {};
@@ -55862,7 +55882,7 @@ var __exportAll$1 = (all, no_symbols) => {
55862
55882
  return target;
55863
55883
  };
55864
55884
  //#endregion
55865
- //#region ../../node_modules/.pnpm/@systemfsoftware+effect-cell-types@12.0.0_effect@4.1.2/node_modules/@systemfsoftware/effect-cell-types/dist/index.mjs
55885
+ //#region ../../node_modules/.pnpm/@systemfsoftware+effect-cell-types@12.2.0_effect@4.1.2/node_modules/@systemfsoftware/effect-cell-types/dist/index.mjs
55866
55886
  var Blueprint_exports = /* @__PURE__ */ __exportAll$1({
55867
55887
  IndexId: () => IndexId,
55868
55888
  make: () => make$3$1
@@ -56136,7 +56156,8 @@ const make$5 = (options) => {
56136
56156
  var Sandwich_exports = /* @__PURE__ */ __exportAll$1({
56137
56157
  CommandRejected: () => CommandRejected,
56138
56158
  DEFAULT_DURATION_BOUNDARIES: () => DEFAULT_DURATION_BOUNDARIES,
56139
- named: () => named
56159
+ named: () => named,
56160
+ writer: () => writer
56140
56161
  });
56141
56162
  /**
56142
56163
  * The duration buckets a named cell records into by default, in seconds. These are the
@@ -56182,7 +56203,7 @@ const outcomeTag = (outcome) => match$4(outcome, {
56182
56203
  const annotateCellIdentity = (name, stacktrace, decideStacktrace) => gen(function* () {
56183
56204
  yield* annotateCurrentSpan("cell.name", name);
56184
56205
  yield* annotateCurrentSpan("cell.stacktrace", stacktrace);
56185
- yield* annotateCurrentSpan("cell.decide_stacktrace", decideStacktrace);
56206
+ yield* decideStacktrace === void 0 ? void_$1 : annotateCurrentSpan("cell.decide_stacktrace", decideStacktrace);
56186
56207
  });
56187
56208
  const annotateCommand = (schema, decoded) => gen(function* () {
56188
56209
  const commandTag = tagIfPresent(decoded);
@@ -56306,6 +56327,61 @@ const namedImpl = (name, options) => {
56306
56327
  * span is created, so an operational cell emits its trace because it was constructed.
56307
56328
  */
56308
56329
  const named = dual((args) => typeof args[0] === "string", namedImpl);
56330
+ const writerImpl = (name, options) => {
56331
+ const histogram = histogramFor(name, options);
56332
+ return (read) => {
56333
+ const stacktrace = String((/* @__PURE__ */ new Error()).stack);
56334
+ const decode = (command) => {
56335
+ const write = (handlers) => {
56336
+ const onDecoded = handlers.Decoded;
56337
+ const decodedRun = (decoded, raw, settle) => gen(function* () {
56338
+ yield* annotateFields(command, decoded);
56339
+ yield* annotateCommand(command, decoded);
56340
+ yield* settle("success");
56341
+ return yield* withSpan(onDecoded(decoded, raw), `${name}.write`);
56342
+ });
56343
+ const run = (input) => monitoredRun(name, stacktrace, void 0, histogram, (settle) => gen(function* () {
56344
+ const raw = yield* withSpan(read(input), `${name}.read`);
56345
+ return yield* match$4(decodeUnknownResult(command)(raw), {
56346
+ onFailure: (issue) => rejectedRun(name, handlers, raw, issue.message, settle),
56347
+ onSuccess: (decoded) => decodedRun(decoded, raw, settle)
56348
+ });
56349
+ }));
56350
+ return {
56351
+ [CellTypeId]: CellTypeId,
56352
+ run,
56353
+ phases: Object.freeze([
56354
+ "read",
56355
+ "decode",
56356
+ "write"
56357
+ ]),
56358
+ ...Prototype$1
56359
+ };
56360
+ };
56361
+ return {
56362
+ "sentence: must write after decode": true,
56363
+ write
56364
+ };
56365
+ };
56366
+ return {
56367
+ "sentence: must decode after read": true,
56368
+ decode
56369
+ };
56370
+ };
56371
+ };
56372
+ /**
56373
+ * Starts a cell that reads and writes and decides nothing, at a static operation name. Use it
56374
+ * where no domain outcome is chosen: a reporter or sink that lays out what it read. A branch
56375
+ * that only picks how something looks belongs in the plain formatter `Decoded` calls; a branch
56376
+ * that picks a domain outcome means the operation is a decision, built with {@link named}.
56377
+ *
56378
+ * The chain is `writer(name, options?)(read).decode(Command).write({ Decoded, CommandRejected })`,
56379
+ * one call per phase: `read` gathers the command's `Encoded` form, the library decodes it with
56380
+ * `Command`, and the matching handler writes. The span, the command's declared attributes, the duration histogram
56381
+ * and its `result_class` are the same as {@link named}'s; there is no decide span and no
56382
+ * decision attribute.
56383
+ */
56384
+ const writer = dual((args) => typeof args[0] === "string", writerImpl);
56309
56385
  //#endregion
56310
56386
  //#region ../stryker-js-plugin-runtime/dist/index.mjs
56311
56387
  init_esm$2();
@@ -56395,15 +56471,15 @@ const serverMiddleware = (effect, options) => {
56395
56471
  };
56396
56472
  const layerTraceContextServer = succeed$5(Trace_exports.TraceContextMiddleware, serverMiddleware);
56397
56473
  dual(3, (spanName, attributes, effect) => flatMap$3(context(), (context) => match$6(remoteSpanOf(context), {
56398
- onNone: () => useSpan(spanName, { attributes }, () => effect),
56399
- onSome: (linked) => useSpan(spanName, {
56474
+ onNone: () => withSpan(effect, spanName, { attributes }),
56475
+ onSome: (linked) => withSpan(effect, spanName, {
56400
56476
  attributes,
56401
56477
  root: true,
56402
56478
  links: [{
56403
56479
  span: linked,
56404
56480
  attributes: {}
56405
56481
  }]
56406
- }, () => effect)
56482
+ })
56407
56483
  })));
56408
56484
  const jsonEscapesKey = (key) => JSON.stringify(key) !== `"${key}"`;
56409
56485
  const isJsonArray = (value) => Array.isArray(value);
@@ -59607,7 +59683,7 @@ function nonStringTextOf(error) {
59607
59683
  }
59608
59684
  const errorText = (error) => value(error).pipe(when(isErrnoException, formatErrnoException), orElse$1(() => formatError(error)));
59609
59685
  const errorNameOf = (value$9) => value(value$9).pipe(when(instanceOf(Error), (error) => textIfNonEmpty(error.name)), orElse$1(() => void 0));
59610
- const tagOf = (value$7) => value(textIfNonEmpty(fieldOf$1(value$7, "_tag"))).pipe(when(hasText, (tag) => tag), orElse$1(() => errorNameOf(value$7)));
59686
+ const tagOf = (value$6) => value(textIfNonEmpty(fieldOf$1(value$6, "_tag"))).pipe(when(hasText, (tag) => tag), orElse$1(() => errorNameOf(value$6)));
59611
59687
  const textWithNested = (own, nested) => value(own).pipe(when(hasText, (text) => appendNested(text, nested)), orElse$1(() => nested));
59612
59688
  const appendNested = (own, nested) => value(nested).pipe(when(hasText, (text) => `${own}: ${text}`), orElse$1(() => own));
59613
59689
  const errorMessage = (error) => value(error.message.length > 0).pipe(when(true, () => error.message), orElse$1(() => tagOf(error)));
@@ -63038,19 +63114,15 @@ var FormatAssigned = class extends TaggedClass()("FormatAssigned", {
63038
63114
  };
63039
63115
  var FormatSkipped = class extends TaggedClass()("FormatSkipped", {
63040
63116
  fileName: String$2,
63041
- extension: String$2,
63042
- reason: String$2
63117
+ extension: String$2
63043
63118
  }) {
63044
63119
  [FormatResolutionTypeId] = FormatResolutionTypeId;
63045
63120
  };
63046
- var FormatOverrideUnclaimed = class extends TaggedError()("FormatOverrideUnclaimed", {
63121
+ var FormatOverrideUnclaimed = class extends TaggedClass()("FormatOverrideUnclaimed", {
63047
63122
  fileName: String$2,
63048
- formatId: String$2,
63049
- reason: String$2
63123
+ formatId: String$2
63050
63124
  }) {
63051
- get message() {
63052
- return `Cannot instrument ${this.fileName}: ${this.reason}`;
63053
- }
63125
+ [FormatResolutionTypeId] = FormatResolutionTypeId;
63054
63126
  };
63055
63127
  const pinOf = (command) => fromUndefinedOr(command.formatId);
63056
63128
  const matchesCommand = (claim, command) => value(pinOf(command)).pipe(when(isSome, (pin) => claim.formatId === pin.value), orElse$1(() => claim.extensions.includes(command.extension)));
@@ -63063,13 +63135,11 @@ const assignedFrom = (claim, command) => FormatAssigned.make({
63063
63135
  });
63064
63136
  const skippedFrom = (command) => FormatSkipped.make({
63065
63137
  fileName: command.fileName,
63066
- extension: command.extension,
63067
- reason: `No installed format claims "${command.extension}". Install the framework plugin that claims this file type to instrument it.`
63138
+ extension: command.extension
63068
63139
  });
63069
63140
  const overrideUnclaimedFrom = (command, formatId) => FormatOverrideUnclaimed.make({
63070
63141
  fileName: command.fileName,
63071
- formatId,
63072
- reason: `No installed format carries the id "${formatId}" pinned for this file.`
63142
+ formatId
63073
63143
  });
63074
63144
  const ClaimSelected = TaggedStruct("ClaimSelected", { claim: FormatClaimSchema });
63075
63145
  const PinUnclaimed = TaggedStruct("PinUnclaimed", { formatId: String$2 });
@@ -63088,9 +63158,13 @@ const selectionFor = (command) => match$6(fromUndefinedOr(claimFor(command)), {
63088
63158
  });
63089
63159
  const resolveFormat = Workflow_exports.make({
63090
63160
  command: FormatResolutionCommand,
63091
- decision: Union([FormatAssigned, FormatSkipped]),
63092
- error: FormatOverrideUnclaimed,
63093
- decide: (command) => value(selectionFor(command)).pipe(tag("ClaimSelected", ({ claim }) => succeed$9(assignedFrom(claim, command))), tag("PinUnclaimed", ({ formatId }) => fail$8(overrideUnclaimedFrom(command, formatId))), tag("ExtensionUnclaimed", () => succeed$9(skippedFrom(command))), exhaustive)
63161
+ decision: Union([
63162
+ FormatAssigned,
63163
+ FormatSkipped,
63164
+ FormatOverrideUnclaimed
63165
+ ]),
63166
+ error: Never,
63167
+ decide: (command) => value(selectionFor(command)).pipe(tag("ClaimSelected", ({ claim }) => succeed$9(assignedFrom(claim, command))), tag("PinUnclaimed", ({ formatId }) => succeed$9(overrideUnclaimedFrom(command, formatId))), tag("ExtensionUnclaimed", () => succeed$9(skippedFrom(command))), exhaustive)
63094
63168
  });
63095
63169
  const AridRuleId = Literals([
63096
63170
  "arid-logging",
@@ -63535,21 +63609,12 @@ var MutantKept = class extends TaggedClass()("MutantKept", {}) {
63535
63609
  [MutantSetOutcomeTypeId] = MutantSetOutcomeTypeId;
63536
63610
  };
63537
63611
  const MutantSetDecision = ArraySchema(Union([MutantSuppressed, MutantKept]));
63538
- const canonicalForm = (text) => stripOuterParentheses(text.trim());
63539
- const stripOuterParentheses = (text) => value(wrapsWhole(text)).pipe(when(true, () => stripOuterParentheses(text.slice(1, -1).trim())), orElse$1(() => text));
63540
- const parenDepthDelta = (character) => value(character).pipe(when("(", () => 1), when(")", () => -1), orElse$1(() => 0));
63541
- const depthsAfter = (text) => text.split("").reduce((depths, character) => [...depths, getOrElse$1(last(depths), () => 0) + parenDepthDelta(character)], []);
63542
- const wrapsWhole = (text) => {
63543
- const depths = depthsAfter(text);
63544
- return [
63545
- text.startsWith("("),
63546
- text.endsWith(")"),
63547
- depths.length > 0,
63548
- depths.slice(0, -1).every((depth) => depth >= 1),
63549
- getOrElse$1(last(depths), () => 0) === 0
63550
- ].every(Boolean);
63551
- };
63552
- const defaultOnly = (policy, value$6) => value(policy).pipe(when("full", () => none()), when("default", value$6), exhaustive);
63612
+ /**
63613
+ * The code a candidate plants, as the instrumenter's printer wrote it from the node the placers plant. Two candidates
63614
+ * plant the same code exactly when these texts are equal, so the policy compares text and reparses nothing.
63615
+ */
63616
+ const canonicalForm = (text) => text.trim();
63617
+ const defaultOnly = (policy, value$7) => value(policy).pipe(when("full", () => none()), when("default", value$7), exhaustive);
63553
63618
  const printedAs = (code) => canonicalForm(code);
63554
63619
  const printsSomething = (code) => printedAs(code).length > 0;
63555
63620
  const samePrintedCode = (left, right) => [printsSomething(left), printedAs(left) === printedAs(right)].every(Boolean);
@@ -64270,6 +64335,7 @@ const mutablesFor = (frame, location, context) => {
64270
64335
  const ignorerAnswer = getOrUndefined$1(ignorerAnswerFor(frame.node, ancestors, context.ignorers));
64271
64336
  const aridReason = getOrUndefined$1(aridReasonOf(frame, context.mutantSetPolicy, context.aridImportTable));
64272
64337
  const originalCode = printNode(frame.node);
64338
+ const plantedOriginal = printNode(unwrapParenthesizedExpression(frame.node));
64273
64339
  return replacements.map(({ mutatorName, replacement }) => {
64274
64340
  const replacementCode = printNode(replacement);
64275
64341
  const tuple = {
@@ -64292,8 +64358,8 @@ const mutablesFor = (frame, location, context) => {
64292
64358
  ignorerAnswer,
64293
64359
  ...aridReason === void 0 ? {} : { aridReason },
64294
64360
  mutantSet: {
64295
- originalCode,
64296
- replacementCode
64361
+ originalCode: plantedOriginal,
64362
+ replacementCode: printNode(unwrapParenthesizedExpression(replacement))
64297
64363
  },
64298
64364
  subsumption: subsumptionReplacementOf(mutatorName, replacement)
64299
64365
  }
@@ -64694,20 +64760,22 @@ const parsedOutcomeFor = (registry, file, assigned) => match$6(registry.entryFor
64694
64760
  }
64695
64761
  }))
64696
64762
  });
64763
+ const skipReasonOf = (skipped) => `No installed format claims "${skipped.extension}". Install the framework plugin that claims this file type to instrument it.`;
64764
+ const overrideUnclaimedTextOf = (unclaimed) => `Cannot instrument ${unclaimed.fileName}: No installed format carries the id "${unclaimed.formatId}" pinned for this file.`;
64697
64765
  const skippedOutcomeFor = (file, skipped) => ({
64698
64766
  kind: "skipped",
64699
64767
  record: InstrumentFileSkip.make({
64700
64768
  file: file.name,
64701
64769
  extension: skipped.extension,
64702
- reason: skipped.reason
64770
+ reason: skipReasonOf(skipped)
64703
64771
  })
64704
64772
  });
64705
64773
  const unclaimedOverrideError = (file) => InstrumentError.make({
64706
64774
  message: `No installed format owns ${file.name}`,
64707
64775
  cause: /* @__PURE__ */ new Error(`Unresolvable format pin for ${file.name}`)
64708
64776
  });
64709
- const outcomeFor = (registry, file, decision) => value(decision).pipe(when(is(FormatAssigned), (assigned) => parsedOutcomeFor(registry, file, assigned)), when(is(FormatSkipped), (skipped) => succeed$4(skippedOutcomeFor(file, skipped))), exhaustive);
64710
- const fileOutcome = (request) => value(resolveFile(request.registry, request.file.name)).pipe(when(isSuccess$1, (resolved) => outcomeFor(request.registry, request.file, resolved.success)), orElse$1(() => fail$4(unclaimedOverrideError(request.file))));
64777
+ const outcomeFor = (registry, file, decision) => value(decision).pipe(when(is(FormatAssigned), (assigned) => parsedOutcomeFor(registry, file, assigned)), when(is(FormatSkipped), (skipped) => succeed$4(skippedOutcomeFor(file, skipped))), when(is(FormatOverrideUnclaimed), () => fail$4(unclaimedOverrideError(file))), exhaustive);
64778
+ const fileOutcome = (request) => flatMap$3(fromResult(resolveFile(request.registry, request.file.name)), (decision) => outcomeFor(request.registry, request.file, decision));
64711
64779
  const isParsedOutcome = (outcome) => outcome.kind === "parsed";
64712
64780
  const skipsOf = (outcome) => outcome.kind === "skipped" ? [outcome.record] : [];
64713
64781
  const transformInto = (request) => transform(request.ast, request.collector, {
@@ -64865,7 +64933,10 @@ const disableTypeChecksCell = Sandwich_exports.named(SpanTaxonomy_exports.Spans.
64865
64933
  formatId: assigned.formatId
64866
64934
  }),
64867
64935
  FormatSkipped: (_skipped, raw) => succeed$4(raw.file),
64868
- FormatOverrideUnclaimed: (failure) => fail$4(FormatOverrideUnclaimed.make(failure)),
64936
+ FormatOverrideUnclaimed: (unclaimed, raw) => fail$4(InstrumentError.make({
64937
+ message: `No installed format owns ${raw.file.name}`,
64938
+ cause: new Error(overrideUnclaimedTextOf(unclaimed))
64939
+ })),
64869
64940
  CommandRejected: ({ issue }) => fail$4(InstrumentError.make({
64870
64941
  message: issue,
64871
64942
  cause: new Error(issue)
@@ -64968,9 +65039,6 @@ const disableTypeChecksDataFirst = (file, registry = coreFormatRegistry) => disa
64968
65039
  }).pipe(map$3((disabled) => ({
64969
65040
  ...file,
64970
65041
  content: disabled.content
64971
- })), mapError$1((cause) => is(InstrumentError)(cause) ? cause : InstrumentError.make({
64972
- message: `No installed format owns ${file.name}`,
64973
- cause
64974
65042
  })));
64975
65043
  const disableTypeChecks = dual((args) => hasProperty(args[0], "content"), disableTypeChecksDataFirst);
64976
65044
  var Instrument_exports = /* @__PURE__ */ __exportAll({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@systemfsoftware/stryker-js-vitest-runner",
3
- "version": "10.1.0",
3
+ "version": "10.1.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/systemfsoftware/stryker-js-effect.git",
@@ -38,7 +38,7 @@
38
38
  "@opentelemetry/exporter-trace-otlp-http": "^0.222.0",
39
39
  "@opentelemetry/sdk-node": "^0.222.0",
40
40
  "@opentelemetry/sdk-trace-base": "^2.2.0",
41
- "@systemfsoftware/effect-cell-types": "^12.0.0"
41
+ "@systemfsoftware/effect-cell-types": "^12.2.0"
42
42
  },
43
43
  "peerDependencies": {
44
44
  "vitest": "^5"
@@ -50,15 +50,15 @@
50
50
  "@systemfsoftware/effect-gherkin-spec": "^7.0.0",
51
51
  "@systemfsoftware/oxlint-config-recommended": "^4.0.0",
52
52
  "@systemfsoftware/stryker-config": "^0.1.0",
53
- "@systemfsoftware/stryker-ignorer-effect-schema-declarations": "file:../../.deps/stryker-ignorer-effect-schema-declarations.tgz",
54
- "@systemfsoftware/stryker-ignorer-in-source-vitest-block": "file:../../.deps/stryker-ignorer-in-source-vitest-block.tgz",
55
- "@systemfsoftware/stryker-js": "file:../../.deps/stryker-js.tgz",
56
- "@systemfsoftware/stryker-js-cli-contract": "^2.0.0",
57
- "@systemfsoftware/stryker-js-instrumenter": "^15.0.0",
58
- "@systemfsoftware/stryker-js-plugin-interface": "^18.0.0",
59
- "@systemfsoftware/stryker-js-plugin-runtime": "^8.0.1",
60
- "@systemfsoftware/stryker-js-typescript-checker": "file:../../.deps/stryker-js-typescript-checker.tgz",
61
- "@systemfsoftware/stryker-js-vitest-runner": "file:../../.deps/stryker-js-vitest-runner.tgz",
53
+ "@systemfsoftware/stryker-ignorer-effect-schema-declarations": "^0.3.1",
54
+ "@systemfsoftware/stryker-ignorer-in-source-vitest-block": "^0.1.3",
55
+ "@systemfsoftware/stryker-js": "^23.0.0",
56
+ "@systemfsoftware/stryker-js-cli-contract": "^3.1.1",
57
+ "@systemfsoftware/stryker-js-instrumenter": "^16.0.3",
58
+ "@systemfsoftware/stryker-js-plugin-interface": "^20.0.0",
59
+ "@systemfsoftware/stryker-js-plugin-runtime": "^9.0.3",
60
+ "@systemfsoftware/stryker-js-typescript-checker": "^10.0.0",
61
+ "@systemfsoftware/stryker-js-vitest-runner": "^10.1.0",
62
62
  "@systemfsoftware/tsconfig": "^2.0.1",
63
63
  "@systemfsoftware/tsdown-config": "^0.1.0",
64
64
  "@systemfsoftware/vitest": "^2.0.0",
@@ -66,7 +66,7 @@
66
66
  "@types/node": "^24",
67
67
  "@vitest/browser-playwright": "^5",
68
68
  "concurrently": "^10",
69
- "effect": "^4.1.0",
69
+ "effect": "^4.1.2",
70
70
  "oxlint": "~1.90.0",
71
71
  "rimraf": "^6.1.3",
72
72
  "tsdown": "^0.23.0",
@@ -97,7 +97,7 @@
97
97
  "@opentelemetry/sdk-trace-base": "2.11.0",
98
98
  "@opentelemetry/sdk-trace-node": "2.11.0",
99
99
  "@opentelemetry/semantic-conventions": "1.43.0",
100
- "@systemfsoftware/effect-cell-types": "12.0.0",
100
+ "@systemfsoftware/effect-cell-types": "12.2.0",
101
101
  "effect": "4.1.2",
102
102
  "oxc-parser": "0.150.0"
103
103
  },