@systemfsoftware/stryker-js 17.0.2 → 22.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.
package/dist/index.d.mts CHANGED
@@ -1,11 +1,11 @@
1
- import { c as mod_d_exports$9, i as mod_d_exports$5$1, l as Ignorer, n as mod_d_exports$2$1, o as mod_d_exports$7$1, t as mod_d_exports$8, u as Node_2 } from "./index-y-Pg3XgT.mjs";
2
- import { a as ImmutablePrimitive, i as Immutable, n as mergeConfigs, o as Primitive } from "./merge-config-52qu-jD7.mjs";
3
- import { n as StageError } from "./Run.schema-7DBK1X32.mjs";
4
- import { $ as makeRunEventStream, A as ReporterWorkerClient, B as ProjectFile, C as PluginSource, D as TestCoverage, E as SandboxHandle, F as WorkerLauncherShape, G as git_diff_service_d_exports, H as mod_d_exports$2$11, I as WorkerSpawnParams, J as RunIdentity, K as git_diff_schema_d_exports, L as SpawnedSocketWorker, M as reporterWorkerFactory, N as spawnReporterWorker, O as REPORTER_EVENT_BATCH_BOUND, P as WorkerLauncher, Q as RunEventStream, R as make, S as PluginKind, T as WorkerPluginSource, U as Framework, V as IncrementalReportSchema, W as GitDiff, X as RunEventDrain, Y as RunIdentityShape, Z as RunEventDrainLive, _ as EvaluatorPluginDescriptor, a as StageServices, at as StrykerError, b as PluginDescriptor, c as IdGeneratorShape, ct as ConfigFileNotFoundError, d as InstrumentDone, dt as ChildProcessCrashedError, et as ResolvedModeInput, f as PrepareDone, ft as OutOfMemoryError, g as AnyWorkerPluginSource, h as AnyWorkerPluginDescriptor, ht as WorkerExit, i as RunStageServices, it as mod_d_exports$1$7, j as SpawnReporterWorkerParams, k as ReporterStage, l as MutationTestDone, lt as ConfigFileUnreadableError, m as AnyPluginDescriptor, mt as WorkerBootTimeoutError, n as RunEnvironmentShape, nt as PhaseClock, o as WiredRunLayer, ot as ConfigError, p as PrepareExecutorArgs, pt as WorkerBootError, q as RunEvents, r as EnginePorts, rt as mod_d_exports$10, s as IdGenerator, st as ConfigFileInvalidError, t as RunEnvironment, tt as ResolvedMode, u as DryRunDone, ut as ConfigFileUnsupportedError, v as EvaluatorPluginSource, w as WorkerPluginDescriptor, x as PluginDescriptorOf, y as LoadedPlugins, z as Project } from "./RunEnvironment.service-Cluh-Bxt.mjs";
1
+ import { c as mod_d_exports$9, i as mod_d_exports$5$1, l as Ignorer, n as mod_d_exports$2$1, o as mod_d_exports$7$1, t as mod_d_exports$8, u as Node } from "./index-ClWSuUog.mjs";
2
+ import { a as ImmutablePrimitive, i as Immutable, n as mergeConfigs, o as Primitive } from "./merge-config-D0F1cI43.mjs";
3
+ import { n as StageError } from "./Run.schema-CYduD68z.mjs";
4
+ import { $ as ResolvedMode, A as REPORTER_EVENT_BATCH_BOUND, B as make, C as PluginDescriptorOf, D as WorkerPluginSource, E as WorkerPluginDescriptor, F as spawnReporterWorker, G as Framework, H as ProjectFile, I as WorkerLauncher, J as EmptyDirectory, K as GitDiff, L as WorkerLauncherShape, M as ReporterWorkerClient, N as SpawnReporterWorkerParams, O as SandboxHandle, P as reporterWorkerFactory, Q as ResolvedModeInput, R as WorkerSpawnParams, S as PluginDescriptor, T as PluginSource, U as IncrementalReportSchema, V as Project, W as mod_d_exports$2$11, X as RunEventStream, Y as RunEventDrain, Z as makeRunEventStream, _ as AnyWorkerPluginDescriptor, _t as WorkerBootError, a as StageServices, at as RunIdentityShape, b as EvaluatorPluginSource, c as IdGeneratorShape, ct as mod_d_exports$1$7, d as MutationTestDone, dt as ConfigFileInvalidError, et as GitDiffError, f as DryRunDone, ft as ConfigFileNotFoundError, g as AnyPluginDescriptor, gt as OutOfMemoryError, h as PrepareExecutorArgs, ht as ChildProcessCrashedError, i as RunStageServices, it as RunIdentity, j as ReporterStage, k as TestCoverage, l as SourceParser, lt as StrykerError, m as PrepareDone, mt as ConfigFileUnsupportedError, n as RunEnvironmentShape, nt as git_diff_schema_d_exports, o as WiredRunLayer, ot as PhaseClock, p as InstrumentDone, pt as ConfigFileUnreadableError, q as git_diff_service_d_exports, r as EnginePorts, rt as RunEvents, s as IdGenerator, st as mod_d_exports$10, t as RunEnvironment, tt as StageInput, u as source_parser_service_d_exports, ut as ConfigError, v as AnyWorkerPluginSource, vt as WorkerBootTimeoutError, w as PluginKind, x as LoadedPlugins, y as EvaluatorPluginDescriptor, yt as WorkerExit, z as SpawnedSocketWorker } from "./RunEnvironment.service-D4so1HnE.mjs";
5
5
  import { Blueprint, Cell, Handle, Sandwich, Workflow } from "@systemfsoftware/effect-cell-types";
6
6
  import * as S from "effect/Schema";
7
- import * as Option from "effect/Option";
8
7
  import * as Effect from "effect/Effect";
8
+ import * as Option from "effect/Option";
9
9
  import * as Rpc from "effect/rpc/Rpc";
10
10
  import * as RpcGroup from "effect/rpc/RpcGroup";
11
11
  import * as Result from "effect/Result";
@@ -15,16 +15,17 @@ import * as FileSystem from "effect/FileSystem";
15
15
  import * as Path from "effect/Path";
16
16
  import "effect/Stream";
17
17
  import * as Layer from "effect/Layer";
18
- import "effect/Queue";
18
+ import * as Queue from "effect/Queue";
19
19
  import * as Scope from "effect/Scope";
20
20
  import "effect/Duration";
21
21
  import * as RpcClient from "effect/rpc/RpcClient";
22
22
  import "effect/DateTime";
23
23
  import * as Stdio from "effect/Stdio";
24
+ import { PlatformError } from "effect/PlatformError";
24
25
  import * as ChildProcessSpawner from "effect/process/ChildProcessSpawner";
25
26
  import { RpcClientError } from "effect/rpc/RpcClientError";
26
27
  import * as Socket from "effect/socket/Socket";
27
- import { PlatformError } from "effect/PlatformError";
28
+ import * as Console from "effect/Console";
28
29
  import { McpServer, Tool, Toolkit } from "effect/ai";
29
30
  //#region src/admit-checker-answer.workflow.d.ts
30
31
  declare const CheckerAnsweredUnrequested_base: S.Class<CheckerAnsweredUnrequested, S.TaggedStruct<"CheckerAnsweredUnrequested", {
@@ -32,7 +33,9 @@ declare const CheckerAnsweredUnrequested_base: S.Class<CheckerAnsweredUnrequeste
32
33
  readonly phase: S.Literals<readonly ["check", "group"]>;
33
34
  readonly unrequestedIds: S.$Array<S.String>;
34
35
  readonly requestedIds: S.$Array<S.String>;
35
- }>, import("effect/Cause").YieldableError>;
36
+ }>, import("effect/Cause").YieldableError & {
37
+ readonly brand: unique symbol;
38
+ }>;
36
39
  declare class CheckerAnsweredUnrequested extends CheckerAnsweredUnrequested_base {
37
40
  get message(): string;
38
41
  }
@@ -40,11 +43,30 @@ declare const CheckerSkippedRequested_base: S.Class<CheckerSkippedRequested, S.T
40
43
  readonly checkerName: S.String;
41
44
  readonly phase: S.Literals<readonly ["check", "group"]>;
42
45
  readonly missingIds: S.$Array<S.String>;
43
- }>, import("effect/Cause").YieldableError>;
46
+ }>, import("effect/Cause").YieldableError & {
47
+ readonly brand: unique symbol;
48
+ }>;
44
49
  declare class CheckerSkippedRequested extends CheckerSkippedRequested_base {
45
50
  get message(): string;
46
51
  }
47
- type CheckerContractBroken = CheckerAnsweredUnrequested | CheckerSkippedRequested;
52
+ declare const CheckerIgnoredWithoutRule_base: S.Class<CheckerIgnoredWithoutRule, S.TaggedStruct<"CheckerIgnoredWithoutRule", {
53
+ readonly checkerName: S.String;
54
+ readonly mutantId: S.String;
55
+ readonly answered: S.String;
56
+ }>, import("effect/Cause").YieldableError & {
57
+ readonly brand: unique symbol;
58
+ }>;
59
+ declare class CheckerIgnoredWithoutRule extends CheckerIgnoredWithoutRule_base {
60
+ get message(): string;
61
+ }
62
+ type CheckerContractBroken = CheckerAnsweredUnrequested | CheckerSkippedRequested | CheckerIgnoredWithoutRule;
63
+ //#endregion
64
+ //#region src/Checker/Checker.schema.d.ts
65
+ interface CheckerPlans {
66
+ readonly checkerName: string;
67
+ readonly plans: readonly mod_d_exports$2$1.RunPlan[];
68
+ }
69
+ type CheckedPlansResult = readonly (readonly [mod_d_exports$2$1.RunPlan, mod_d_exports$8.CheckResult])[];
48
70
  //#endregion
49
71
  //#region src/Checker/Checker.handle.d.ts
50
72
  type CheckerCrash = ChildProcessCrashedError | OutOfMemoryError;
@@ -57,17 +79,19 @@ type CheckerCrash = ChildProcessCrashedError | OutOfMemoryError;
57
79
  * which lets the retry combinator prove it handles every one of them.
58
80
  */
59
81
  interface CheckerResourceService {
60
- readonly check: (checkerName: string, mutants: readonly mod_d_exports$8.CheckerMutantWire[]) => Effect.Effect<Record<string, mod_d_exports$8.CheckResult>, CheckerCrash | mod_d_exports$8.CheckerFailed>;
82
+ readonly check: (checkerName: string, mutants: readonly mod_d_exports$8.CheckerMutantWire[]) => Effect.Effect<Record<string, mod_d_exports$8.CheckAnswer>, CheckerCrash | mod_d_exports$8.CheckerFailed>;
61
83
  readonly group: (checkerName: string, mutants: readonly mod_d_exports$8.CheckerMutantWire[]) => Effect.Effect<readonly (readonly string[])[], CheckerCrash | mod_d_exports$8.CheckerFailed>;
84
+ readonly digest: (checkerName: string) => Effect.Effect<mod_d_exports$8.ProgramDigest, CheckerCrash | mod_d_exports$8.CheckerFailed>;
62
85
  }
86
+ interface CheckerRequest extends CheckerPlans {
87
+ readonly checker: CheckerResourceService;
88
+ }
89
+ type CheckerCellError = CheckerCrash | mod_d_exports$8.CheckerFailed | CheckerContractBroken;
63
90
  //#endregion
64
- //#region src/Checker/Checker.plans.d.ts
65
- declare const checkGroupedPlans: {
66
- (checker: CheckerResourceService, checkerName: string, plans: readonly mod_d_exports$2$1.RunPlan[]): Effect.Effect<readonly (readonly [mod_d_exports$2$1.RunPlan, mod_d_exports$8.CheckResult])[], CheckerCrash | mod_d_exports$8.CheckerFailed | CheckerContractBroken>;
67
- (checkerName: string, plans: readonly mod_d_exports$2$1.RunPlan[]): (checker: CheckerResourceService) => Effect.Effect<readonly (readonly [mod_d_exports$2$1.RunPlan, mod_d_exports$8.CheckResult])[], CheckerCrash | mod_d_exports$8.CheckerFailed | CheckerContractBroken>;
68
- };
91
+ //#region src/Checker/Checker.cell.d.ts
92
+ declare const checkGroupedCell: Cell.Cell<CheckerRequest, CheckedPlansResult, CheckerCellError, never>;
69
93
  declare namespace mod_d_exports {
70
- export { CheckerAnsweredUnrequested, CheckerContractBroken, CheckerCrash, CheckerResourceService, CheckerSkippedRequested, checkGroupedPlans };
94
+ export { CheckerAnsweredUnrequested, CheckerContractBroken, CheckerCrash, CheckerIgnoredWithoutRule, CheckerResourceService, CheckerSkippedRequested, checkGroupedCell };
71
95
  }
72
96
  //#endregion
73
97
  //#region src/Config.schema.d.ts
@@ -78,16 +102,22 @@ declare const ImportedModuleSchema: S.Struct<{
78
102
  declare const ReadConfigCommand_base: S.Class<ReadConfigCommand, S.TaggedStruct<"ReadConfigCommand", {
79
103
  readonly cliOptions: S.$Record<S.String, S.Unknown>;
80
104
  readonly basePath: S.String;
81
- }>, {}>;
105
+ }>, {
106
+ readonly brand: unique symbol;
107
+ }>;
82
108
  declare class ReadConfigCommand extends ReadConfigCommand_base {}
83
109
  declare const MergeCommand_base: S.Class<MergeCommand, S.TaggedStruct<"MergeCommand", {
84
110
  readonly base: S.$Record<S.String, S.Unknown>;
85
111
  readonly overrides: S.$Record<S.String, S.Unknown>;
86
- }>, {}>;
112
+ }>, {
113
+ readonly brand: unique symbol;
114
+ }>;
87
115
  declare class MergeCommand extends MergeCommand_base {}
88
116
  declare const MergeResult_base: S.Class<MergeResult, S.TaggedStruct<"MergeResult", {
89
117
  readonly merged: S.$Record<S.String, S.Unknown>;
90
- }>, {}>;
118
+ }>, {
119
+ readonly brand: unique symbol;
120
+ }>;
91
121
  declare class MergeResult extends MergeResult_base {}
92
122
  declare const ExtendsStepDocumentSchema: S.Struct<{
93
123
  readonly path: S.String;
@@ -209,12 +239,23 @@ declare const forkOptionsSchema: S.StructWithRest<S.Struct<{
209
239
  declare const createDefaultOptions: Effect.Effect<mod_d_exports$5$1.StrykerOptions>;
210
240
  declare const defaultOptions: Effect.Effect<Immutable<mod_d_exports$5$1.StrykerOptions>, never, never>;
211
241
  //#endregion
242
+ //#region src/matching.schema.d.ts
243
+ declare const FileMatcher_base: S.Class<FileMatcher, S.Struct<{
244
+ readonly pattern: S.Union<readonly [S.Boolean, S.String]>;
245
+ readonly allowHiddenFiles: S.Boolean;
246
+ }>, {
247
+ readonly brand: unique symbol;
248
+ }>;
249
+ declare class FileMatcher extends FileMatcher_base {}
250
+ //#endregion
212
251
  //#region src/run/extends-step.workflow.d.ts
213
252
  declare const ExtendsStepDecisionTypeId: unique symbol;
214
253
  type ExtendsStepDecisionTypeId = typeof ExtendsStepDecisionTypeId;
215
254
  declare const ExtendsStepDone_base: S.Class<ExtendsStepDone, S.TaggedStruct<"done", {
216
255
  readonly options: S.$Record<S.String, S.Unknown>;
217
- }>, {}>;
256
+ }>, {
257
+ readonly brand: unique symbol;
258
+ }>;
218
259
  declare class ExtendsStepDone extends ExtendsStepDone_base {
219
260
  readonly [ExtendsStepDecisionTypeId]: symbol;
220
261
  }
@@ -227,7 +268,9 @@ declare const ExtendsStepRead_base: S.Class<ExtendsStepRead, S.TaggedStruct<"rea
227
268
  readonly options: S.$Record<S.String, S.Unknown>;
228
269
  }>>;
229
270
  }>;
230
- }>, {}>;
271
+ }>, {
272
+ readonly brand: unique symbol;
273
+ }>;
231
274
  declare class ExtendsStepRead extends ExtendsStepRead_base {
232
275
  readonly [ExtendsStepDecisionTypeId]: symbol;
233
276
  }
@@ -240,14 +283,18 @@ declare const ExtendsStepResolve_base: S.Class<ExtendsStepResolve, S.TaggedStruc
240
283
  readonly options: S.$Record<S.String, S.Unknown>;
241
284
  }>>;
242
285
  }>;
243
- }>, {}>;
286
+ }>, {
287
+ readonly brand: unique symbol;
288
+ }>;
244
289
  declare class ExtendsStepResolve extends ExtendsStepResolve_base {
245
290
  readonly [ExtendsStepDecisionTypeId]: symbol;
246
291
  }
247
292
  declare const ExtendsStepRefused_base: S.Class<ExtendsStepRefused, S.TaggedStruct<"refused", {
248
293
  readonly reason: S.Literals<readonly ["cycle", "non-string-extends"]>;
249
294
  readonly file: S.String;
250
- }>, {}>;
295
+ }>, {
296
+ readonly brand: unique symbol;
297
+ }>;
251
298
  declare class ExtendsStepRefused extends ExtendsStepRefused_base {
252
299
  readonly [ExtendsStepDecisionTypeId]: symbol;
253
300
  }
@@ -262,25 +309,20 @@ declare const ExtendsStepCommand_base: S.Class<ExtendsStepCommand, S.TaggedStruc
262
309
  }>;
263
310
  readonly document: S.$Record<S.String, S.Unknown>;
264
311
  readonly file: S.String;
265
- }>, {}>;
312
+ }>, {
313
+ readonly brand: unique symbol;
314
+ }>;
266
315
  declare class ExtendsStepCommand extends ExtendsStepCommand_base {
267
316
  static readonly [Workflow.InstrumentationBrand]: {};
268
317
  }
269
318
  declare const extendsStep: (command: ExtendsStepCommand) => ExtendsStepDecision;
270
319
  //#endregion
271
- //#region src/drivers/config.d.ts
320
+ //#region src/run/read-config-document.d.ts
272
321
  declare function importModule<A = unknown>(moduleName: string): Effect.Effect<A, StrykerError>;
273
322
  declare const initialExtendsStepState: ExtendsStepState;
274
323
  declare const decideExtendsStep: typeof extendsStep;
275
324
  type ConfigReadError = ConfigFileNotFoundError | ConfigFileUnreadableError | ConfigFileInvalidError | ConfigFileUnsupportedError;
276
325
  //#endregion
277
- //#region src/matching.schema.d.ts
278
- declare const FileMatcher_base: S.Class<FileMatcher, S.Struct<{
279
- readonly pattern: S.Union<readonly [S.Boolean, S.String]>;
280
- readonly allowHiddenFiles: S.Boolean;
281
- }>, {}>;
282
- declare class FileMatcher extends FileMatcher_base {}
283
- //#endregion
284
326
  //#region src/run/resolve-config.workflow.d.ts
285
327
  declare const LoadConfigDecisionTypeId: unique symbol;
286
328
  type LoadConfigDecisionTypeId = typeof LoadConfigDecisionTypeId;
@@ -381,7 +423,9 @@ declare const ConfigFromFile_base: S.Class<ConfigFromFile, S.TaggedStruct<"Confi
381
423
  readonly ignorers: S.withDecodingDefaultKey<S.$Array<S.declare<string, string>>, never>;
382
424
  readonly testFiles: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
383
425
  }>, readonly [S.$Record<S.String, S.Unknown>]>>;
384
- }>, {}>;
426
+ }>, {
427
+ readonly brand: unique symbol;
428
+ }>;
385
429
  declare class ConfigFromFile extends ConfigFromFile_base {
386
430
  readonly [LoadConfigDecisionTypeId]: symbol;
387
431
  static readonly [Workflow.InstrumentationBrand]: {};
@@ -483,7 +527,9 @@ declare const ConfigFromDefaults_base: S.Class<ConfigFromDefaults, S.TaggedStruc
483
527
  readonly ignorers: S.withDecodingDefaultKey<S.$Array<S.declare<string, string>>, never>;
484
528
  readonly testFiles: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
485
529
  }>, readonly [S.$Record<S.String, S.Unknown>]>>;
486
- }>, {}>;
530
+ }>, {
531
+ readonly brand: unique symbol;
532
+ }>;
487
533
  declare class ConfigFromDefaults extends ConfigFromDefaults_base {
488
534
  readonly [LoadConfigDecisionTypeId]: symbol;
489
535
  static readonly [Workflow.InstrumentationBrand]: {};
@@ -508,9 +554,8 @@ declare const readConfig: {
508
554
  };
509
555
  //#endregion
510
556
  //#region src/run/load-config.cell.d.ts
511
- declare const loadConfigCell: Sandwich.WrittenFrom<{
557
+ declare const loadConfigCell: Sandwich.WrittenFrom<StageInput & {
512
558
  readonly cliOptions: mod_d_exports$5$1.PartialStrykerOptions;
513
- readonly targetMutatePatterns: readonly string[] | undefined;
514
559
  }, ConfigReadError, import("effect/FileSystem").FileSystem | import("effect/Path").Path | PhaseClock | RunEnvironment | RunEvents, import("effect/Schema").Union<readonly [typeof ConfigFromFile, typeof ConfigFromDefaults]>, {
515
560
  ConfigFromFile: ({ options }: {
516
561
  readonly _tag: "ConfigFromFile";
@@ -617,6 +662,23 @@ declare const loadConfigCell: Sandwich.WrittenFrom<{
617
662
  };
618
663
  fileFound: boolean;
619
664
  targetMutatePatterns: readonly string[] | undefined;
665
+ plannedDiff: {
666
+ readonly _tag: "WholeProject";
667
+ } | {
668
+ readonly _tag: "ChangedSince";
669
+ readonly diff: {
670
+ readonly ref: string;
671
+ readonly base: string;
672
+ readonly head: string;
673
+ readonly hunks: readonly {
674
+ readonly file: string;
675
+ readonly startLine: number;
676
+ readonly lineCount: number;
677
+ }[];
678
+ readonly untrackedFiles: readonly string[];
679
+ };
680
+ } | undefined;
681
+ plannedMutantsFile: string | undefined;
620
682
  basePath: string;
621
683
  }) => Effect.Effect<{
622
684
  options: {
@@ -716,6 +778,23 @@ declare const loadConfigCell: Sandwich.WrittenFrom<{
716
778
  readonly testFiles: readonly string[];
717
779
  };
718
780
  targetMutatePatterns: readonly string[] | undefined;
781
+ plannedDiff: {
782
+ readonly _tag: "WholeProject";
783
+ } | {
784
+ readonly _tag: "ChangedSince";
785
+ readonly diff: {
786
+ readonly ref: string;
787
+ readonly base: string;
788
+ readonly head: string;
789
+ readonly hunks: readonly {
790
+ readonly file: string;
791
+ readonly startLine: number;
792
+ readonly lineCount: number;
793
+ }[];
794
+ readonly untrackedFiles: readonly string[];
795
+ };
796
+ } | undefined;
797
+ plannedMutantsFile: string | undefined;
719
798
  basePath: string;
720
799
  }, never, never>;
721
800
  ConfigFromDefaults: ({ options }: {
@@ -823,6 +902,23 @@ declare const loadConfigCell: Sandwich.WrittenFrom<{
823
902
  };
824
903
  fileFound: boolean;
825
904
  targetMutatePatterns: readonly string[] | undefined;
905
+ plannedDiff: {
906
+ readonly _tag: "WholeProject";
907
+ } | {
908
+ readonly _tag: "ChangedSince";
909
+ readonly diff: {
910
+ readonly ref: string;
911
+ readonly base: string;
912
+ readonly head: string;
913
+ readonly hunks: readonly {
914
+ readonly file: string;
915
+ readonly startLine: number;
916
+ readonly lineCount: number;
917
+ }[];
918
+ readonly untrackedFiles: readonly string[];
919
+ };
920
+ } | undefined;
921
+ plannedMutantsFile: string | undefined;
826
922
  basePath: string;
827
923
  }) => Effect.Effect<{
828
924
  options: {
@@ -922,6 +1018,23 @@ declare const loadConfigCell: Sandwich.WrittenFrom<{
922
1018
  readonly testFiles: readonly string[];
923
1019
  };
924
1020
  targetMutatePatterns: readonly string[] | undefined;
1021
+ plannedDiff: {
1022
+ readonly _tag: "WholeProject";
1023
+ } | {
1024
+ readonly _tag: "ChangedSince";
1025
+ readonly diff: {
1026
+ readonly ref: string;
1027
+ readonly base: string;
1028
+ readonly head: string;
1029
+ readonly hunks: readonly {
1030
+ readonly file: string;
1031
+ readonly startLine: number;
1032
+ readonly lineCount: number;
1033
+ }[];
1034
+ readonly untrackedFiles: readonly string[];
1035
+ };
1036
+ } | undefined;
1037
+ plannedMutantsFile: string | undefined;
925
1038
  basePath: string;
926
1039
  }, never, never>;
927
1040
  ConfigOptionsRefused: ({ message }: {
@@ -937,12 +1050,51 @@ declare namespace mod_d_exports$1 {
937
1050
  export { ConfigDocumentSchema, ConfigError, ConfigFileInvalidError, ConfigFileNotFoundError, ConfigFileUnreadableError, ConfigFileUnsupportedError, ConfigInvocation, ExtendsRefusalReason, ExtendsStepDecision, ExtendsStepDocument, ExtendsStepDocumentSchema, ExtendsStepDone, ExtendsStepRead, ExtendsStepRefused, ExtendsStepResolve, ExtendsStepState, ExtendsStepStateSchema, FileMatcher, Immutable, ImmutablePrimitive, ImportedModuleSchema, MergeCommand, MergeResult, Primitive, ReadConfigCommand, ValidationSchemaDocument, createDefaultOptions, decideExtendsStep, defaultOptions, describeErrors, extendsPropertySchema, forkCoreSchema, forkOptionsSchema, importModule, initialExtendsStepState, loadConfigCell, mergeConfigs, readConfig, survivorsPriorReport, validateOptions };
938
1051
  }
939
1052
  //#endregion
940
- //#region src/drivers/node.d.ts
1053
+ //#region src/node-platform.d.ts
941
1054
  declare const nodePlatformLayer: Layer.Layer<EnginePorts>;
942
1055
  //#endregion
1056
+ //#region src/plan-request.schema.d.ts
1057
+ declare const PlanShardsRefused_base: S.Class<PlanShardsRefused, S.TaggedStruct<"PlanShardsRefused", {
1058
+ readonly detail: S.String;
1059
+ }>, import("effect/Cause").YieldableError & {
1060
+ readonly brand: unique symbol;
1061
+ }>;
1062
+ declare class PlanShardsRefused extends PlanShardsRefused_base {
1063
+ readonly exitClass = "ConfigError";
1064
+ readonly next = "Pass --target-seconds above 0 and --max-shards of 1 or more, and name each project directory once in --projects.";
1065
+ get reason(): string;
1066
+ get message(): string;
1067
+ }
1068
+ //#endregion
943
1069
  //#region src/run/host.service.d.ts
1070
+ interface HostServices {
1071
+ readonly env: RunEnvironmentShape;
1072
+ readonly events: Queue.Queue<mod_d_exports$1$7.RunEvent, Cause.Done>;
1073
+ }
944
1074
  type StrykerRun = (options: mod_d_exports$5$1.PartialStrykerOptions, targetMutatePatterns?: string[]) => Effect.Effect<MutationTestDone, StageError, never>;
945
1075
  //#endregion
1076
+ //#region src/plan-request.cell.d.ts
1077
+ interface PlanShardsRequest {
1078
+ readonly targetSeconds: number;
1079
+ readonly maxShards?: number | undefined;
1080
+ readonly projects?: ReadonlyArray<string> | undefined;
1081
+ readonly out?: string | undefined;
1082
+ readonly full: boolean;
1083
+ readonly since?: string | undefined;
1084
+ }
1085
+ interface PlanChannel {
1086
+ readonly environment: {
1087
+ readonly basePath: string;
1088
+ readonly host: HostServices;
1089
+ readonly console: Console.Console;
1090
+ };
1091
+ }
1092
+ interface PlanRequestInput {
1093
+ readonly request: PlanShardsRequest;
1094
+ readonly channel: PlanChannel;
1095
+ }
1096
+ declare const planRequest: ({ request, channel }: PlanRequestInput) => Effect.Effect<void, GitDiffError | PlanShardsRefused, EnginePorts>;
1097
+ //#endregion
946
1098
  //#region src/run/run-stages.cell.d.ts
947
1099
  declare const mutationTestCell: Cell.Cell<PrepareExecutorArgs, MutationTestDone, StageError, StageServices>;
948
1100
  //#endregion
@@ -952,7 +1104,7 @@ declare const strykerCell: {
952
1104
  (targetMutatePatterns?: readonly string[]): (options: mod_d_exports$5$1.PartialStrykerOptions) => Effect.Effect<MutationTestDone, StageError | PlatformError, EnginePorts>;
953
1105
  };
954
1106
  declare namespace mod_d_exports$2 {
955
- export { DryRunDone, EnginePorts, IdGenerator, IdGeneratorShape, IncrementalReportSchema, InstrumentDone, MutationTestDone, PrepareDone, PrepareExecutorArgs, Project, ProjectFile, RunEnvironment, RunEnvironmentShape, RunStageServices, SandboxHandle, StageError, StageServices, StrykerError, StrykerRun, TestCoverage, WiredRunLayer, mutationTestCell, nodePlatformLayer, strykerCell };
1107
+ export { DryRunDone, EnginePorts, IdGenerator, IdGeneratorShape, IncrementalReportSchema, InstrumentDone, MutationTestDone, PlanChannel, PlanRequestInput, PlanShardsRefused, PlanShardsRequest, PrepareDone, PrepareExecutorArgs, Project, ProjectFile, RunEnvironment, RunEnvironmentShape, RunStageServices, SandboxHandle, StageError, StageServices, StrykerError, StrykerRun, TestCoverage, WiredRunLayer, mutationTestCell, nodePlatformLayer, planRequest, strykerCell };
956
1108
  }
957
1109
  declare namespace import_closure_cell_d_exports {
958
1110
  export { ImportClosureAnalysis, ImportClosureInput, TestFileClosureDigest, analyzeImportClosure };
@@ -962,6 +1114,7 @@ interface ImportClosureInput {
962
1114
  readonly projectFiles: readonly string[];
963
1115
  readonly testFiles: readonly string[];
964
1116
  readonly globalInputs?: readonly string[];
1117
+ readonly observedModules?: Readonly<Record<string, readonly string[]>>;
965
1118
  }
966
1119
  interface TestFileClosureDigest {
967
1120
  readonly testFile: string;
@@ -973,18 +1126,20 @@ interface ImportClosureAnalysis {
973
1126
  readonly closures: readonly TestFileClosureDigest[];
974
1127
  readonly projectDigest: string;
975
1128
  }
976
- declare const analyzeImportClosure: (input: ImportClosureInput) => Effect.Effect<ImportClosureAnalysis, PlatformError, FileSystem.FileSystem | Path.Path>;
1129
+ declare const analyzeImportClosure: (input: ImportClosureInput) => Effect.Effect<ImportClosureAnalysis, PlatformError, FileSystem.FileSystem | Path.Path | SourceParser>;
977
1130
  //#endregion
978
1131
  //#region src/Mcp/mcp-server.cell.d.ts
979
1132
  interface McpServerOptions {
980
1133
  readonly basePath: string;
981
1134
  }
982
- declare const mcpServerLayer: ({ basePath }: McpServerOptions) => Layer.Layer<McpServer.McpServer | import("effect/ai/McpSchema").McpServerClient, Cause.IllegalArgumentError, import("effect/Stdio").Stdio>;
1135
+ declare const mcpServerLayer: ({ basePath }: McpServerOptions) => Layer.Layer<McpServer.McpRequest<"Requires", import("effect/ai/McpSchema").McpServerClient> | McpServer.McpRequest<"Requires", import("effect/Scope").Scope> | McpServer.McpServer, Cause.IllegalArgumentError, EnginePorts>;
983
1136
  //#endregion
984
1137
  //#region src/Feedback/Feedback.schema.d.ts
985
1138
  declare const FeedbackUnusable_base: S.Class<FeedbackUnusable, S.TaggedStruct<"FeedbackUnusable", {
986
1139
  readonly reason: S.String;
987
- }>, import("effect/Cause").YieldableError>;
1140
+ }>, import("effect/Cause").YieldableError & {
1141
+ readonly brand: unique symbol;
1142
+ }>;
988
1143
  declare class FeedbackUnusable extends FeedbackUnusable_base {
989
1144
  get message(): string;
990
1145
  }
@@ -1001,14 +1156,18 @@ declare const MutantDetail: S.Struct<{
1001
1156
  type MutantDetail = typeof MutantDetail.Type;
1002
1157
  declare const MutantUnusable_base: S.Class<MutantUnusable, S.TaggedStruct<"MutantUnusable", {
1003
1158
  readonly id: S.brand<S.String, "MutantId">;
1004
- }>, import("effect/Cause").YieldableError>;
1159
+ }>, import("effect/Cause").YieldableError & {
1160
+ readonly brand: unique symbol;
1161
+ }>;
1005
1162
  declare class MutantUnusable extends MutantUnusable_base {
1006
1163
  get message(): string;
1007
1164
  }
1008
1165
  declare const RerunUnusable_base: S.Class<RerunUnusable, S.TaggedStruct<"RerunUnusable", {
1009
1166
  readonly id: S.brand<S.String, "MutantId">;
1010
1167
  readonly reason: S.String;
1011
- }>, import("effect/Cause").YieldableError>;
1168
+ }>, import("effect/Cause").YieldableError & {
1169
+ readonly brand: unique symbol;
1170
+ }>;
1012
1171
  declare class RerunUnusable extends RerunUnusable_base {
1013
1172
  get message(): string;
1014
1173
  }
@@ -1051,7 +1210,7 @@ declare const mcpToolkit: Toolkit.Toolkit<{
1051
1210
  }>;
1052
1211
  readonly failure: S.Union<readonly [typeof MutantUnusable, typeof RerunUnusable]>;
1053
1212
  readonly failureMode: "error";
1054
- }, ChildProcessSpawner.ChildProcessSpawner | FileSystem.FileSystem | GitDiff | Path.Path | Stdio.Stdio | WorkerLauncher>;
1213
+ }, ChildProcessSpawner.ChildProcessSpawner | EmptyDirectory | FileSystem.FileSystem | GitDiff | Path.Path | SourceParser | Stdio.Stdio | WorkerLauncher>;
1055
1214
  readonly show_mutant: Tool.Tool<"show_mutant", {
1056
1215
  readonly parameters: S.Struct<{
1057
1216
  readonly id: S.brand<S.String, "MutantId">;
@@ -1118,7 +1277,7 @@ declare const isVmRunner: (name: mod_d_exports$5$1.TestRunnerConfig) => name is
1118
1277
  declare const vmTestRunnerConfig: () => mod_d_exports$5$1.TestRunnerCustomConfig;
1119
1278
  declare const testRunnerConfigOf: (configured: mod_d_exports$5$1.TestRunnerConfig) => mod_d_exports$5$1.TestRunnerConfig;
1120
1279
  declare namespace mod_d_exports$4 {
1121
- export { AnyPluginDescriptor, AnyWorkerPluginDescriptor, AnyWorkerPluginSource, EvaluatorPluginDescriptor, EvaluatorPluginSource, Framework, Ignorer, LoadedPlugins, Node_2 as Node, PluginDescriptor, PluginDescriptorOf, PluginKind, PluginSource, PooledTestRunner, PooledTestRunnerError, REPORTER_EVENT_BATCH_BOUND, ReporterStage, ReporterWorkerClient, SpawnReporterWorkerParams, TestRunnerBuildContext, WorkerPluginDescriptor, WorkerPluginSource, buildTestRunner, isCommandRunner, isVmRunner, makeChildProcessTestRunner, reporterWorkerFactory, spawnReporterWorker, testRunnerConfigOf, vmRunnerPluginUrl, vmTestRunnerConfig };
1280
+ export { AnyPluginDescriptor, AnyWorkerPluginDescriptor, AnyWorkerPluginSource, EvaluatorPluginDescriptor, EvaluatorPluginSource, Framework, Ignorer, LoadedPlugins, Node, PluginDescriptor, PluginDescriptorOf, PluginKind, PluginSource, PooledTestRunner, PooledTestRunnerError, REPORTER_EVENT_BATCH_BOUND, ReporterStage, ReporterWorkerClient, SpawnReporterWorkerParams, TestRunnerBuildContext, WorkerPluginDescriptor, WorkerPluginSource, buildTestRunner, isCommandRunner, isVmRunner, makeChildProcessTestRunner, reporterWorkerFactory, spawnReporterWorker, testRunnerConfigOf, vmRunnerPluginUrl, vmTestRunnerConfig };
1122
1281
  }
1123
1282
  //#endregion
1124
1283
  //#region src/reporting/metrics-from-report.schema.d.ts
@@ -1138,7 +1297,7 @@ declare const staticVerdictOf: (results: readonly mod_d_exports$2$1.RunMutantRes
1138
1297
  //#endregion
1139
1298
  //#region src/reporting/verdict-envelope.schema.d.ts
1140
1299
  declare const VerdictEnvelope_base: S.Class<VerdictEnvelope, S.Struct<{
1141
- readonly schemaVersion: S.Literal<"6.0">;
1300
+ readonly schemaVersion: S.Literal<"10.0">;
1142
1301
  readonly runId: S.brand<S.String, "RunId">;
1143
1302
  readonly mode: S.Literals<readonly ["human", "machine"]>;
1144
1303
  readonly signal: S.Literals<readonly ["flag", "env", "tty", "agent", "tool"]>;
@@ -1175,6 +1334,12 @@ declare const VerdictEnvelope_base: S.Class<VerdictEnvelope, S.Struct<{
1175
1334
  readonly instrument: S.Finite;
1176
1335
  readonly 'dry-run': S.Finite;
1177
1336
  readonly 'mutation-test': S.Finite;
1337
+ readonly check: S.withDecodingDefaultKey<S.Union<readonly [S.TaggedStruct<"measured", {
1338
+ readonly ms: S.Finite;
1339
+ }>, S.TaggedStruct<"not-run", {}>, S.TaggedStruct<"not-recorded", {}>]>, never>;
1340
+ readonly reporting: S.withDecodingDefaultKey<S.Union<readonly [S.TaggedStruct<"measured", {
1341
+ readonly ms: S.Finite;
1342
+ }>, S.TaggedStruct<"not-recorded", {}>]>, never>;
1178
1343
  }>>;
1179
1344
  readonly static: S.NullOr<S.Struct<{
1180
1345
  readonly count: S.Int;
@@ -1184,7 +1349,9 @@ declare const VerdictEnvelope_base: S.Class<VerdictEnvelope, S.Struct<{
1184
1349
  readonly predictedSeconds: S.Finite;
1185
1350
  readonly actualSeconds: S.Finite;
1186
1351
  }>;
1187
- }>, {}>;
1352
+ }>, {
1353
+ readonly brand: unique symbol;
1354
+ }>;
1188
1355
  declare class VerdictEnvelope extends VerdictEnvelope_base {}
1189
1356
  //#endregion
1190
1357
  //#region src/reporting/verdict-envelope.d.ts
@@ -1193,7 +1360,7 @@ declare const buildVerdictEnvelope: {
1193
1360
  (report: mod_d_exports$7$1.MutationTestResult, mode: mod_d_exports$10.OutputMode, signal: mod_d_exports$10.ModeSignal, runId: mod_d_exports$1$7.RunId, basePath: string, pathService: Path.Path, phaseDurations: Option.Option<mod_d_exports$1$7.PhaseDurations>, staticVerdict: mod_d_exports$1$7.StaticVerdict | null): VerdictEnvelope;
1194
1361
  };
1195
1362
  declare namespace mod_d_exports$5 {
1196
- export { MetricsResultFromReport, ResolvedMode, ResolvedModeInput, RunEventDrain, RunEventDrainLive, RunEventStream, RunEvents, RunIdentity, RunIdentityShape, VerdictEnvelope, buildVerdictEnvelope, makeRunEventStream, metricsResultFromFiles, staticVerdictOf };
1363
+ export { MetricsResultFromReport, ResolvedMode, ResolvedModeInput, RunEventDrain, RunEventStream, RunEvents, RunIdentity, RunIdentityShape, VerdictEnvelope, buildVerdictEnvelope, makeRunEventStream, metricsResultFromFiles, staticVerdictOf };
1197
1364
  }
1198
1365
  declare namespace msp_framing_schema_d_exports {
1199
1366
  export { CONTENT_LENGTH_HEADER, FrameAction, FramingAction, FramingBuffer, FramingBytes, FramingReader, FramingStep, HeaderPattern, HeaderlessAction, IncompleteAction, decodeUtf8, emptyFraming, encodeUtf8, frameOf, readFrames };
@@ -1239,7 +1406,9 @@ declare namespace msp_schema_d_exports {
1239
1406
  declare const ServeError_base: S.Class<ServeError, S.TaggedStruct<"ServeError", {
1240
1407
  readonly reason: S.String;
1241
1408
  readonly cause: S.optionalKey<S.Unknown>;
1242
- }>, import("effect/Cause").YieldableError>;
1409
+ }>, import("effect/Cause").YieldableError & {
1410
+ readonly brand: unique symbol;
1411
+ }>;
1243
1412
  declare class ServeError extends ServeError_base {
1244
1413
  get message(): string;
1245
1414
  }
@@ -1557,21 +1726,27 @@ type WorkerExitTypeId = typeof WorkerExitTypeId;
1557
1726
  declare const ClassifyWorkerExitCommand_base: S.Class<ClassifyWorkerExitCommand, S.TaggedStruct<"ClassifyWorkerExitCommand", {
1558
1727
  readonly pid: S.Int;
1559
1728
  readonly exitCode: S.Int;
1560
- }>, {}>;
1729
+ }>, {
1730
+ readonly brand: unique symbol;
1731
+ }>;
1561
1732
  declare class ClassifyWorkerExitCommand extends ClassifyWorkerExitCommand_base {
1562
1733
  static readonly [Workflow.InstrumentationBrand]: {};
1563
1734
  }
1564
1735
  declare const WorkerOutOfMemory_base: S.Class<WorkerOutOfMemory, S.TaggedStruct<"WorkerOutOfMemory", {
1565
1736
  readonly pid: S.Int;
1566
1737
  readonly exitCode: S.Int;
1567
- }>, {}>;
1738
+ }>, {
1739
+ readonly brand: unique symbol;
1740
+ }>;
1568
1741
  declare class WorkerOutOfMemory extends WorkerOutOfMemory_base {
1569
1742
  readonly [WorkerExitTypeId]: symbol;
1570
1743
  }
1571
1744
  declare const WorkerCrashed_base: S.Class<WorkerCrashed, S.TaggedStruct<"WorkerCrashed", {
1572
1745
  readonly pid: S.Int;
1573
1746
  readonly exitCode: S.Int;
1574
- }>, {}>;
1747
+ }>, {
1748
+ readonly brand: unique symbol;
1749
+ }>;
1575
1750
  declare class WorkerCrashed extends WorkerCrashed_base {
1576
1751
  readonly [WorkerExitTypeId]: symbol;
1577
1752
  }
@@ -1597,4 +1772,4 @@ declare namespace mod_d_exports$7 {
1597
1772
  export { ChildProcessCrashedError, ClassifyWorkerExitCommand, ClassifyWorkerExitDecision, OutOfMemoryError, SpawnedSocketWorker, WorkerBootError, WorkerBootTimeoutError, WorkerClientParams, WorkerExit, WorkerLauncher, WorkerLauncherShape, WorkerSpawnParams, classifyWorkerExit, layerWorkerProtocol, make as makeSpawnedSocketWorker, makeWorkerClient };
1598
1773
  }
1599
1774
  //#endregion
1600
- export { mod_d_exports as Checker, mod_d_exports$1 as Configuration, mod_d_exports$2 as Engine, git_diff_service_d_exports as GitDiff, git_diff_schema_d_exports as GitDiffSchema, import_closure_cell_d_exports as ImportClosure, mod_d_exports$3 as Mcp, mod_d_exports$4 as Plugin, mod_d_exports$5 as RunEvent, mod_d_exports$6 as Serve, mod_d_exports$7 as Worker };
1775
+ export { mod_d_exports as Checker, mod_d_exports$1 as Configuration, mod_d_exports$2 as Engine, git_diff_service_d_exports as GitDiff, git_diff_schema_d_exports as GitDiffSchema, import_closure_cell_d_exports as ImportClosure, mod_d_exports$3 as Mcp, mod_d_exports$4 as Plugin, mod_d_exports$5 as RunEvent, mod_d_exports$6 as Serve, source_parser_service_d_exports as SourceParser, mod_d_exports$7 as Worker };