@systemfsoftware/stryker-js 6.1.0 → 8.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,10 +1,30 @@
1
- import { $ as WorkerPluginKind, d as ExitClass } from "./index-BInJWa0x.mjs";
1
+ import { $ as TestResult, Et as RunMutantResult, L as PartialStrykerOptions, P as MutationTestResult, St as MutateDescription, U as ReporterFactory, Y as StrykerOptions, b as ExitClass, ct as WorkerPluginKind, dt as FileDescription, f as CompleteDryRunResult, ft as FileDescriptions, ht as Mutant, q as ReporterRpcs, r as ResolvedMode, ut as CoverageData } from "./output-mode-CE6VNHfH.mjs";
2
2
  import * as Effect$1 from "effect/Effect";
3
+ import * as FileSystem from "effect/FileSystem";
3
4
  import * as Path from "effect/Path";
5
+ import * as Stdio from "effect/Stdio";
6
+ import { Cell } from "@systemfsoftware/effect-cell-types";
4
7
  import * as S from "effect/Schema";
5
8
  import "effect/Option";
6
9
  import { Schema } from "effect";
10
+ import * as Context from "effect/Context";
11
+ import * as Rpc from "effect/unstable/rpc/Rpc";
12
+ import * as RpcGroup from "effect/unstable/rpc/RpcGroup";
13
+ import * as Layer from "effect/Layer";
14
+ import * as Queue from "effect/Queue";
15
+ import "effect/Result";
16
+ import * as Cause from "effect/Cause";
17
+ import * as Scope from "effect/Scope";
18
+ import * as EffectDuration from "effect/Duration";
19
+ import * as MutableHashMap from "effect/MutableHashMap";
20
+ import * as MutableHashSet from "effect/MutableHashSet";
7
21
  import * as HashMap from "effect/HashMap";
22
+ import * as ChildProcessSpawner from "effect/unstable/process/ChildProcessSpawner";
23
+ import * as RpcClient from "effect/unstable/rpc/RpcClient";
24
+ import * as Schedule from "effect/Schedule";
25
+ import { PlatformError } from "effect/PlatformError";
26
+ import { RpcClientError } from "effect/unstable/rpc/RpcClientError";
27
+ import * as Socket from "effect/unstable/socket/Socket";
8
28
  //#region src/Run.schema.d.ts
9
29
  declare const TypeId: '~stryker/mutation-run/StageError';
10
30
  declare const StageError_base: S.Class<StageError, S.TaggedStruct<"StageError", {
@@ -19,6 +39,194 @@ declare class StageError extends StageError_base {
19
39
  get message(): string;
20
40
  }
21
41
  //#endregion
42
+ //#region src/Worker.schema.d.ts
43
+ declare const ChildProcessCrashedError_base: Schema.Class<ChildProcessCrashedError, Schema.TaggedStruct<"ChildProcessCrashedError", {
44
+ readonly pid: Schema.Int;
45
+ readonly exit: Schema.Union<readonly [Schema.Struct<{
46
+ readonly _tag: Schema.Literals<readonly ["Code"]>;
47
+ readonly code: Schema.Int;
48
+ }>, Schema.Struct<{
49
+ readonly _tag: Schema.Literals<readonly ["Signal"]>;
50
+ readonly signal: Schema.String;
51
+ }>]>;
52
+ readonly cause: Schema.optional<Schema.String>;
53
+ }>, import("effect/Cause").YieldableError>;
54
+ /**
55
+ * The child process hosting a worker ended when it was not supposed to.
56
+ */
57
+ declare class ChildProcessCrashedError extends ChildProcessCrashedError_base {
58
+ readonly exitClass: 'InternalError';
59
+ }
60
+ declare const OutOfMemoryError_base: Schema.Class<OutOfMemoryError, Schema.TaggedStruct<"OutOfMemoryError", {
61
+ readonly pid: Schema.Int;
62
+ readonly exitCode: Schema.Int;
63
+ }>, import("effect/Cause").YieldableError>;
64
+ declare class OutOfMemoryError extends OutOfMemoryError_base {
65
+ readonly exitClass: 'RuntimeError';
66
+ }
67
+ declare const WorkerBootTimeoutError_base: Schema.Class<WorkerBootTimeoutError, Schema.TaggedStruct<"WorkerBootTimeoutError", {
68
+ readonly pid: Schema.Int;
69
+ }>, import("effect/Cause").YieldableError>;
70
+ declare class WorkerBootTimeoutError extends WorkerBootTimeoutError_base {
71
+ readonly exitClass: 'InternalError';
72
+ }
73
+ //#endregion
74
+ //#region src/WorkerLauncher.d.ts
75
+ declare const connectRetry: Schedule.Schedule<import("effect/Duration").Duration, unknown, never, never>;
76
+ type WorkerExit = ChildProcessCrashedError | OutOfMemoryError;
77
+ interface SpawnedSocketWorker {
78
+ readonly pid: number;
79
+ readonly clientLayer: Layer.Layer<RpcClient.Protocol, Socket.SocketError>;
80
+ readonly exited: Effect$1.Effect<never, WorkerExit>;
81
+ }
82
+ interface WorkerSpawnParams {
83
+ readonly entrypoint: string;
84
+ readonly workingDirectory: string;
85
+ readonly execArgv: readonly string[];
86
+ readonly optionsJson: string;
87
+ readonly tempDirPrefix: string;
88
+ readonly env?: Readonly<Record<string, string>> | undefined;
89
+ }
90
+ interface WorkerLauncherShape {
91
+ readonly spawn: (params: WorkerSpawnParams) => Effect$1.Effect<SpawnedSocketWorker, ChildProcessCrashedError, Scope.Scope>;
92
+ }
93
+ declare const WorkerLauncher_base: Context.ServiceClass<WorkerLauncher, "@systemfsoftware/stryker-js/WorkerLauncher", WorkerLauncherShape>;
94
+ declare class WorkerLauncher extends WorkerLauncher_base {}
95
+ type WorkerBootError = WorkerExit | WorkerBootTimeoutError;
96
+ interface WorkerClientParams<Rpcs extends Rpc.Any> extends WorkerSpawnParams {
97
+ readonly rpcs: RpcGroup.RpcGroup<Rpcs>;
98
+ }
99
+ declare const makeWorkerClient: <Rpcs extends Rpc.Any>(params: WorkerClientParams<Rpcs>) => Effect$1.Effect<RpcClient.RpcClient<Rpcs, RpcClientError>, WorkerBootError, Scope.Scope | WorkerLauncher>;
100
+ //#endregion
101
+ //#region src/RunEvent.schema.d.ts
102
+ declare const RunPhase: S.Literals<readonly ["prepare", "instrument", "dry-run", "mutation-test"]>;
103
+ type RunPhase = typeof RunPhase.Type;
104
+ declare const RunStarted_base: S.Class<RunStarted, S.TaggedStruct<"stream", {
105
+ readonly schemaVersion: S.String;
106
+ readonly runId: S.String;
107
+ readonly mode: S.Literals<readonly ["human", "machine"]>;
108
+ readonly signal: S.Literals<readonly ["flag", "env", "tty", "agent", "tool"]>;
109
+ }>, {}>;
110
+ declare class RunStarted extends RunStarted_base {}
111
+ declare const PhaseEntered_base: S.Class<PhaseEntered, S.TaggedStruct<"phase", {
112
+ readonly phase: S.Literals<readonly ["prepare", "instrument", "dry-run", "mutation-test"]>;
113
+ readonly elapsedMs: S.Finite;
114
+ }>, {}>;
115
+ declare class PhaseEntered extends PhaseEntered_base {}
116
+ declare const PlanKnown_base: S.Class<PlanKnown, S.TaggedStruct<"plan", {
117
+ readonly total: S.Finite;
118
+ }>, {}>;
119
+ declare class PlanKnown extends PlanKnown_base {}
120
+ declare const RunMutantTested_base: S.Class<RunMutantTested, S.TaggedStruct<"mutant", {
121
+ readonly id: S.String;
122
+ readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
123
+ readonly file: S.String;
124
+ readonly location: S.Struct<{
125
+ readonly start: S.Struct<{
126
+ readonly line: S.Finite;
127
+ readonly column: S.Finite;
128
+ }>;
129
+ readonly end: S.Struct<{
130
+ readonly line: S.Finite;
131
+ readonly column: S.Finite;
132
+ }>;
133
+ }>;
134
+ readonly mutator: S.String;
135
+ readonly replacement: S.NullOr<S.String>;
136
+ readonly completed: S.Finite;
137
+ readonly total: S.Finite;
138
+ }>, {}>;
139
+ declare class RunMutantTested extends RunMutantTested_base {}
140
+ declare const Heartbeat_base: S.Class<Heartbeat, S.TaggedStruct<"tick", {
141
+ readonly elapsedMs: S.Finite;
142
+ readonly completed: S.Finite;
143
+ readonly total: S.NullOr<S.Finite>;
144
+ }>, {}>;
145
+ declare class Heartbeat extends Heartbeat_base {}
146
+ declare const VerdictReached_base: S.Class<VerdictReached, S.TaggedStruct<"verdict", {
147
+ readonly schemaVersion: S.String;
148
+ readonly runId: S.String;
149
+ readonly mode: S.Literals<readonly ["human", "machine"]>;
150
+ readonly signal: S.Literals<readonly ["flag", "env", "tty", "agent", "tool"]>;
151
+ readonly score: S.NullOr<S.Finite>;
152
+ readonly thresholds: S.Struct<{
153
+ readonly high: S.Finite;
154
+ readonly low: S.Finite;
155
+ readonly break: S.NullOr<S.Finite>;
156
+ }>;
157
+ readonly reportFile: S.NullOr<S.String>;
158
+ readonly counts: S.Struct<{
159
+ readonly killed: S.Finite;
160
+ readonly timeout: S.Finite;
161
+ readonly survived: S.Finite;
162
+ readonly noCoverage: S.Finite;
163
+ readonly runtimeErrors: S.Finite;
164
+ readonly compileErrors: S.Finite;
165
+ readonly ignored: S.Finite;
166
+ readonly pending: S.Finite;
167
+ }>;
168
+ readonly mutants: S.$Array<S.Struct<{
169
+ readonly id: S.String;
170
+ readonly file: S.String;
171
+ readonly location: S.Struct<{
172
+ readonly start: S.Struct<{
173
+ readonly line: S.Finite;
174
+ readonly column: S.Finite;
175
+ }>;
176
+ readonly end: S.Struct<{
177
+ readonly line: S.Finite;
178
+ readonly column: S.Finite;
179
+ }>;
180
+ }>;
181
+ readonly mutator: S.String;
182
+ readonly replacement: S.NullOr<S.String>;
183
+ readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
184
+ }>>;
185
+ }>, {}>;
186
+ declare class VerdictReached extends VerdictReached_base {}
187
+ declare const RunFailed_base: S.Class<RunFailed, S.TaggedStruct<"error", {
188
+ readonly schemaVersion: S.String;
189
+ readonly code: S.Finite;
190
+ readonly error: S.String;
191
+ readonly remediation: S.String;
192
+ }>, {}>;
193
+ declare class RunFailed extends RunFailed_base {}
194
+ declare const HelpRendered_base: S.Class<HelpRendered, S.TaggedStruct<"help", {
195
+ readonly schemaVersion: S.String;
196
+ readonly code: S.Literals<readonly [0]>;
197
+ readonly help: S.String;
198
+ }>, {}>;
199
+ declare class HelpRendered extends HelpRendered_base {}
200
+ declare const RunEvent: S.Union<readonly [typeof RunStarted, typeof PhaseEntered, typeof PlanKnown, typeof RunMutantTested, typeof Heartbeat, typeof VerdictReached, typeof RunFailed, typeof HelpRendered]>;
201
+ type RunEvent = typeof RunEvent.Type;
202
+ type RunTerminalEvent = VerdictReached | RunFailed | HelpRendered;
203
+ //#endregion
204
+ //#region src/RunEvents.d.ts
205
+ declare const RunEvents_base: Context.ServiceClass<RunEvents, "@systemfsoftware/stryker-js/RunEvents", Queue.Queue<Heartbeat | HelpRendered | PhaseEntered | PlanKnown | RunFailed | RunMutantTested | RunStarted | VerdictReached, Cause.Done<void>>>;
206
+ declare class RunEvents extends RunEvents_base {}
207
+ interface RunIdentityShape {
208
+ readonly runId: string;
209
+ readonly basePath: string;
210
+ }
211
+ declare const RunIdentity_base: Context.ServiceClass<RunIdentity, "@systemfsoftware/stryker-js/RunEvents/RunIdentity", RunIdentityShape>;
212
+ declare class RunIdentity extends RunIdentity_base {}
213
+ //#endregion
214
+ //#region src/Mutants.d.ts
215
+ interface TestCoverage {
216
+ readonly testsByMutantId: MutableHashMap.MutableHashMap<string, MutableHashSet.MutableHashSet<TestResult>>;
217
+ readonly testsById: MutableHashMap.MutableHashMap<string, TestResult>;
218
+ readonly staticCoverage: CoverageData | undefined;
219
+ readonly hitsByMutantId: MutableHashMap.MutableHashMap<string, number>;
220
+ }
221
+ //#endregion
222
+ //#region src/Worker.d.ts
223
+ interface IdGeneratorShape {
224
+ readonly next: Effect$1.Effect<number>;
225
+ }
226
+ declare const IdGenerator_base: Context.ServiceClass<IdGenerator, "@systemfsoftware/stryker-js/Worker/IdGenerator", IdGeneratorShape>;
227
+ declare class IdGenerator extends IdGenerator_base {}
228
+ declare const classifyWorkerExit: (pid: number, exitCode: number) => ChildProcessCrashedError | OutOfMemoryError;
229
+ //#endregion
22
230
  //#region ../ignorers/interface/dist/index.d.ts
23
231
  declare interface AccessorProperty$1 extends Span$1 {
24
232
  type: AccessorPropertyType;
@@ -1324,21 +1532,6 @@ declare interface YieldExpression$1 extends Span$1 {
1324
1532
  parent?: Node$1;
1325
1533
  }
1326
1534
  //#endregion
1327
- //#region src/Plugins.schema.d.ts
1328
- declare const PluginNotFoundError_base: Schema.Class<PluginNotFoundError, Schema.TaggedStruct<"PluginNotFoundError", {
1329
- readonly descriptor: Schema.String;
1330
- }>, import("effect/Cause").YieldableError>;
1331
- declare class PluginNotFoundError extends PluginNotFoundError_base {
1332
- readonly exitClass: 'ConfigError';
1333
- }
1334
- declare const PluginLoadFailedError_base: Schema.Class<PluginLoadFailedError, Schema.TaggedStruct<"PluginLoadFailedError", {
1335
- readonly descriptor: Schema.String;
1336
- readonly cause: Schema.Unknown;
1337
- }>, import("effect/Cause").YieldableError>;
1338
- declare class PluginLoadFailedError extends PluginLoadFailedError_base {
1339
- readonly exitClass: 'InternalError';
1340
- }
1341
- //#endregion
1342
1535
  //#region src/Plugins.d.ts
1343
1536
  type PluginKind = WorkerPluginKind | 'Evaluator';
1344
1537
  interface WorkerPluginDescriptor<K extends WorkerPluginKind = WorkerPluginKind> {
@@ -1369,23 +1562,6 @@ interface EvaluatorPluginSource {
1369
1562
  }
1370
1563
  type AnyWorkerPluginSource = { [K in WorkerPluginKind]: WorkerPluginSource<K>; }[WorkerPluginKind];
1371
1564
  type PluginSource = AnyWorkerPluginSource | EvaluatorPluginSource;
1372
- interface PluginLoaderEntryLike {
1373
- readonly moduleName: string;
1374
- readonly plugins: readonly PluginDescriptor[] | undefined;
1375
- readonly schemaContribution: Record<string, unknown> | undefined;
1376
- }
1377
- interface PluginLoadPlan {
1378
- readonly schemaContributions: readonly Record<string, unknown>[];
1379
- readonly pluginsByKind: HashMap.HashMap<PluginKind, readonly PluginDescriptor[]>;
1380
- readonly pluginModulePaths: readonly string[];
1381
- readonly pluginSources: readonly PluginSource[];
1382
- readonly shadowings: readonly {
1383
- readonly kind: PluginKind;
1384
- readonly name: string;
1385
- readonly shadowedIndex: number;
1386
- readonly winnerIndex: number;
1387
- }[];
1388
- }
1389
1565
  interface LoadedPlugins {
1390
1566
  readonly schemaContributions: readonly Record<string, unknown>[];
1391
1567
  readonly pluginsByKind: HashMap.HashMap<PluginKind, readonly PluginDescriptor[]>;
@@ -1393,8 +1569,349 @@ interface LoadedPlugins {
1393
1569
  readonly pluginSources: readonly PluginSource[];
1394
1570
  readonly ignorers: readonly Ignorer[];
1395
1571
  }
1396
- declare function loadPlugins(pluginDescriptors: readonly string[]): Effect$1.Effect<LoadedPlugins, PluginLoadFailedError, Path.Path>;
1397
- declare function create<K extends PluginKind>(pluginsByKind: HashMap.HashMap<PluginKind, readonly AnyPluginDescriptor[]>, kind: K, name: string): Effect$1.Effect<PluginDescriptorOf<K>, PluginNotFoundError>;
1398
- declare function createAll<K extends PluginKind>(pluginsByKind: HashMap.HashMap<PluginKind, readonly AnyPluginDescriptor[]>, kind: K): Effect$1.Effect<readonly PluginDescriptorOf<K>[]>;
1399
1572
  //#endregion
1400
- export { loadPlugins as _, EvaluatorPluginSource as a, Ignorer as b, PluginDescriptorOf as c, PluginLoaderEntryLike as d, PluginSource as f, createAll as g, create as h, EvaluatorPluginDescriptor as i, PluginKind as l, WorkerPluginSource as m, AnyWorkerPluginDescriptor as n, LoadedPlugins as o, WorkerPluginDescriptor as p, AnyWorkerPluginSource as r, PluginDescriptor as s, AnyPluginDescriptor as t, PluginLoadPlan as u, PluginLoadFailedError as v, StageError as x, PluginNotFoundError as y };
1573
+ //#region src/Config.schema.d.ts
1574
+ declare const ConfigDocumentSchema: S.$Record<S.String, S.Unknown>;
1575
+ declare const ImportedModuleSchema: S.Struct<{
1576
+ readonly default: S.optional<S.Unknown>;
1577
+ }>;
1578
+ declare const ConfigFileNotFoundError_base: S.Class<ConfigFileNotFoundError, S.TaggedStruct<"ConfigFileNotFoundError", {
1579
+ readonly file: S.String;
1580
+ }>, import("effect/Cause").YieldableError>;
1581
+ declare class ConfigFileNotFoundError extends ConfigFileNotFoundError_base {
1582
+ readonly exitClass: 'ConfigError';
1583
+ }
1584
+ declare const ConfigFileUnsupportedError_base: S.Class<ConfigFileUnsupportedError, S.TaggedStruct<"ConfigFileUnsupportedError", {
1585
+ readonly file: S.String;
1586
+ readonly hint: S.String;
1587
+ }>, import("effect/Cause").YieldableError>;
1588
+ declare class ConfigFileUnsupportedError extends ConfigFileUnsupportedError_base {
1589
+ readonly exitClass: 'ConfigError';
1590
+ get message(): string;
1591
+ }
1592
+ declare const ConfigFileUnreadableError_base: S.Class<ConfigFileUnreadableError, S.TaggedStruct<"ConfigFileUnreadableError", {
1593
+ readonly file: S.String;
1594
+ readonly cause: S.Unknown;
1595
+ }>, import("effect/Cause").YieldableError>;
1596
+ declare class ConfigFileUnreadableError extends ConfigFileUnreadableError_base {
1597
+ readonly exitClass: 'ConfigError';
1598
+ }
1599
+ declare const ConfigFileInvalidError_base: S.Class<ConfigFileInvalidError, S.TaggedStruct<"ConfigFileInvalidError", {
1600
+ readonly file: S.String;
1601
+ readonly cause: S.Unknown;
1602
+ }>, import("effect/Cause").YieldableError>;
1603
+ declare class ConfigFileInvalidError extends ConfigFileInvalidError_base {
1604
+ readonly exitClass: 'ConfigError';
1605
+ }
1606
+ declare const ConfigError_base: S.Class<ConfigError, S.TaggedStruct<"ConfigError", {
1607
+ readonly message: S.String;
1608
+ }>, import("effect/Cause").YieldableError>;
1609
+ declare class ConfigError extends ConfigError_base {
1610
+ readonly exitClass: 'ConfigError';
1611
+ }
1612
+ declare const ReadConfigCommand_base: S.Class<ReadConfigCommand, S.TaggedStruct<"ReadConfigCommand", {
1613
+ readonly cliOptions: S.$Record<S.String, S.Unknown>;
1614
+ readonly basePath: S.String;
1615
+ }>, {}>;
1616
+ declare class ReadConfigCommand extends ReadConfigCommand_base {}
1617
+ declare const MergeCommand_base: S.Class<MergeCommand, S.TaggedStruct<"MergeCommand", {
1618
+ readonly base: S.$Record<S.String, S.Unknown>;
1619
+ readonly overrides: S.$Record<S.String, S.Unknown>;
1620
+ }>, {}>;
1621
+ declare class MergeCommand extends MergeCommand_base {}
1622
+ declare const MergeResult_base: S.Class<MergeResult, S.TaggedStruct<"MergeResult", {
1623
+ readonly merged: S.$Record<S.String, S.Unknown>;
1624
+ }>, {}>;
1625
+ declare class MergeResult extends MergeResult_base {}
1626
+ declare const ExtendsStepDocumentSchema: S.Struct<{
1627
+ readonly path: S.String;
1628
+ readonly options: S.$Record<S.String, S.Unknown>;
1629
+ }>;
1630
+ type ExtendsStepDocument = typeof ExtendsStepDocumentSchema.Type;
1631
+ declare const ExtendsStepStateSchema: S.Struct<{
1632
+ readonly visited: S.$Array<S.String>;
1633
+ readonly documents: S.$Array<S.Struct<{
1634
+ readonly path: S.String;
1635
+ readonly options: S.$Record<S.String, S.Unknown>;
1636
+ }>>;
1637
+ }>;
1638
+ type ExtendsStepState = typeof ExtendsStepStateSchema.Type;
1639
+ type ExtendsRefusalReason = 'cycle' | 'non-string-extends';
1640
+ declare const ExtendsStepDone_base: S.Class<ExtendsStepDone, S.TaggedStruct<"done", {
1641
+ readonly options: S.$Record<S.String, S.Unknown>;
1642
+ }>, {}>;
1643
+ declare class ExtendsStepDone extends ExtendsStepDone_base {}
1644
+ declare const ExtendsStepRead_base: S.Class<ExtendsStepRead, S.TaggedStruct<"read", {
1645
+ readonly path: S.String;
1646
+ readonly state: S.Struct<{
1647
+ readonly visited: S.$Array<S.String>;
1648
+ readonly documents: S.$Array<S.Struct<{
1649
+ readonly path: S.String;
1650
+ readonly options: S.$Record<S.String, S.Unknown>;
1651
+ }>>;
1652
+ }>;
1653
+ }>, {}>;
1654
+ declare class ExtendsStepRead extends ExtendsStepRead_base {}
1655
+ declare const ExtendsStepResolve_base: S.Class<ExtendsStepResolve, S.TaggedStruct<"resolve", {
1656
+ readonly specifier: S.String;
1657
+ readonly state: S.Struct<{
1658
+ readonly visited: S.$Array<S.String>;
1659
+ readonly documents: S.$Array<S.Struct<{
1660
+ readonly path: S.String;
1661
+ readonly options: S.$Record<S.String, S.Unknown>;
1662
+ }>>;
1663
+ }>;
1664
+ }>, {}>;
1665
+ declare class ExtendsStepResolve extends ExtendsStepResolve_base {}
1666
+ declare const ExtendsStepRefused_base: S.Class<ExtendsStepRefused, S.TaggedStruct<"refused", {
1667
+ readonly reason: S.Literals<readonly ["cycle", "non-string-extends"]>;
1668
+ readonly file: S.String;
1669
+ }>, {}>;
1670
+ declare class ExtendsStepRefused extends ExtendsStepRefused_base {}
1671
+ type ExtendsStepDecision = ExtendsStepDone | ExtendsStepRead | ExtendsStepResolve | ExtendsStepRefused;
1672
+ declare const survivorsPriorReport: S.optionalKey<S.String>;
1673
+ declare const extendsPropertySchema: S.optionalKey<S.String>;
1674
+ declare const forkOptionsSchema: S.StructWithRest<S.Struct<{
1675
+ readonly allowConsoleColors: S.withDecodingDefaultKey<S.Boolean, never>;
1676
+ readonly buildCommand: S.optional<S.String>;
1677
+ readonly checkers: S.withDecodingDefaultKey<S.$Array<S.Struct<{
1678
+ readonly plugin: S.String;
1679
+ readonly nodeArgs: S.optional<S.$Array<S.String>>;
1680
+ readonly options: S.optional<S.$Record<S.String, S.Unknown>>;
1681
+ }>>, never>;
1682
+ readonly checkerNodeArgs: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
1683
+ readonly concurrency: S.optional<S.Union<readonly [S.Finite, S.String]>>;
1684
+ readonly commandRunner: S.withDecodingDefaultKey<S.StructWithRest<S.Struct<{
1685
+ readonly command: S.withDecodingDefaultKey<S.String, never>;
1686
+ }>, readonly [S.$Record<S.String, S.Unknown>]>, never>;
1687
+ readonly coverageAnalysis: S.withDecodingDefaultKey<S.Literals<readonly ["off", "all", "perTest"]>, never>;
1688
+ readonly clearTextReporter: S.withDecodingDefaultKey<S.StructWithRest<S.Struct<{
1689
+ readonly allowColor: S.withDecodingDefaultKey<S.Boolean, never>;
1690
+ readonly allowEmojis: S.withDecodingDefaultKey<S.Boolean, never>;
1691
+ readonly logTests: S.withDecodingDefaultKey<S.Boolean, never>;
1692
+ readonly maxTestsToLog: S.withDecodingDefaultKey<S.Finite, never>;
1693
+ readonly reportTests: S.withDecodingDefaultKey<S.Boolean, never>;
1694
+ readonly reportMutants: S.withDecodingDefaultKey<S.Boolean, never>;
1695
+ readonly reportScoreTable: S.withDecodingDefaultKey<S.Boolean, never>;
1696
+ readonly skipFull: S.withDecodingDefaultKey<S.Boolean, never>;
1697
+ }>, readonly [S.$Record<S.String, S.Unknown>]>, never>;
1698
+ readonly dryRunOnly: S.withDecodingDefaultKey<S.Boolean, never>;
1699
+ readonly ignorePatterns: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
1700
+ readonly ignoreStatic: S.withDecodingDefaultKey<S.Boolean, never>;
1701
+ readonly incremental: S.withDecodingDefaultKey<S.Boolean, never>;
1702
+ readonly incrementalFile: S.withDecodingDefaultKey<S.String, never>;
1703
+ readonly progressStreamFile: S.withDecodingDefaultKey<S.String, never>;
1704
+ readonly force: S.withDecodingDefaultKey<S.Boolean, never>;
1705
+ readonly fileLogLevel: S.withDecodingDefaultKey<S.Literals<readonly ["off", "fatal", "error", "warn", "info", "debug", "trace"]>, never>;
1706
+ readonly inPlace: S.withDecodingDefaultKey<S.Boolean, never>;
1707
+ readonly logLevel: S.withDecodingDefaultKey<S.Literals<readonly ["off", "fatal", "error", "warn", "info", "debug", "trace"]>, never>;
1708
+ readonly maxConcurrentTestRunners: S.withDecodingDefaultKey<S.Finite, never>;
1709
+ readonly maxTestRunnerReuse: S.withDecodingDefaultKey<S.Finite, never>;
1710
+ readonly mutate: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
1711
+ readonly mutator: S.withDecodingDefaultKey<S.Struct<{
1712
+ readonly excludedMutations: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
1713
+ }>, never>;
1714
+ readonly packageManager: S.optional<S.Literals<readonly ["npm", "yarn", "pnpm"]>>;
1715
+ readonly plugins: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
1716
+ readonly appendPlugins: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
1717
+ readonly reporters: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
1718
+ readonly htmlReporter: S.withDecodingDefaultKey<S.Struct<{
1719
+ readonly fileName: S.withDecodingDefaultKey<S.String, never>;
1720
+ }>, never>;
1721
+ readonly jsonReporter: S.withDecodingDefaultKey<S.Struct<{
1722
+ readonly fileName: S.withDecodingDefaultKey<S.String, never>;
1723
+ }>, never>;
1724
+ readonly disableTypeChecks: S.withDecodingDefaultKey<S.Union<readonly [S.Boolean, S.String]>, never>;
1725
+ readonly symlinkNodeModules: S.withDecodingDefaultKey<S.Boolean, never>;
1726
+ readonly tempDirName: S.withDecodingDefaultKey<S.String, never>;
1727
+ readonly cleanTempDir: S.withDecodingDefaultKey<S.Literals<readonly ["always", false, true]>, never>;
1728
+ readonly testRunner: S.withDecodingDefaultKey<S.Union<readonly [S.String, S.Struct<{
1729
+ readonly plugin: S.String;
1730
+ readonly nodeArgs: S.optional<S.$Array<S.String>>;
1731
+ readonly options: S.optional<S.$Record<S.String, S.Unknown>>;
1732
+ }>]>, never>;
1733
+ readonly testRunnerNodeArgs: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
1734
+ readonly thresholds: S.withDecodingDefaultKey<S.Struct<{
1735
+ readonly high: S.withDecodingDefaultKey<S.Finite, never>;
1736
+ readonly low: S.withDecodingDefaultKey<S.Finite, never>;
1737
+ readonly break: S.withDecodingDefaultKey<S.NullOr<S.Finite>, never>;
1738
+ }>, never>;
1739
+ readonly timeoutFactor: S.withDecodingDefaultKey<S.Finite, never>;
1740
+ readonly timeoutMS: S.withDecodingDefaultKey<S.Finite, never>;
1741
+ readonly dryRunTimeoutMinutes: S.withDecodingDefaultKey<S.Finite, never>;
1742
+ readonly tsconfigFile: S.withDecodingDefaultKey<S.String, never>;
1743
+ readonly warnings: S.withDecodingDefaultKey<S.Union<readonly [S.Boolean, S.StructWithRest<S.Struct<{
1744
+ readonly unknownOptions: S.withDecodingDefaultKey<S.Boolean, never>;
1745
+ readonly preprocessorErrors: S.withDecodingDefaultKey<S.Boolean, never>;
1746
+ readonly unserializableOptions: S.withDecodingDefaultKey<S.Boolean, never>;
1747
+ readonly slow: S.withDecodingDefaultKey<S.Boolean, never>;
1748
+ }>, readonly [S.$Record<S.String, S.Unknown>]>]>, never>;
1749
+ readonly disableBail: S.withDecodingDefaultKey<S.Boolean, never>;
1750
+ readonly allowEmpty: S.withDecodingDefaultKey<S.Boolean, never>;
1751
+ readonly ignorers: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
1752
+ readonly testFiles: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
1753
+ readonly survivorsPriorReport: S.optionalKey<S.String>;
1754
+ readonly extends: S.optionalKey<S.String>;
1755
+ }>, readonly [S.$Record<S.String, S.Unknown>]>;
1756
+ //#endregion
1757
+ //#region src/ReporterStream.d.ts
1758
+ declare const ReporterStageTypeId: unique symbol;
1759
+ /**
1760
+ * An attached reporter stage, opaque at the engine boundary: the published
1761
+ * phase types carry this handle so the attachment machinery (queues, fibers,
1762
+ * the state latch) never reaches an adopter's compiler. Constructed only by
1763
+ * `attachReporterFactories`.
1764
+ */
1765
+ interface ReporterStage {
1766
+ readonly [ReporterStageTypeId]: typeof ReporterStageTypeId;
1767
+ }
1768
+ declare const REPORTER_EVENT_BATCH_BOUND = 128;
1769
+ type ReporterWorkerClient = RpcClient.RpcClient<RpcGroup.Rpcs<typeof ReporterRpcs>, RpcClientError>;
1770
+ declare const reporterWorkerFactory: (client: ReporterWorkerClient) => ReporterFactory;
1771
+ interface SpawnReporterWorkerParams {
1772
+ readonly entrypoint: string;
1773
+ readonly projectBasePath: string;
1774
+ readonly execArgv: readonly string[];
1775
+ readonly options: StrykerOptions;
1776
+ readonly tempDirPrefix: string;
1777
+ }
1778
+ declare const spawnReporterWorker: (params: SpawnReporterWorkerParams) => Effect$1.Effect<ReporterWorkerClient, WorkerBootError, Scope.Scope | WorkerLauncher>;
1779
+ //#endregion
1780
+ //#region src/IncrementalReport.schema.d.ts
1781
+ declare const IncrementalReportSchema: S.StructWithRest<S.Struct<{
1782
+ readonly schemaVersion: S.String;
1783
+ readonly thresholds: S.Struct<{
1784
+ readonly high: S.Finite;
1785
+ readonly low: S.Finite;
1786
+ }>;
1787
+ readonly files: S.$Record<S.String, S.Struct<{
1788
+ readonly language: S.String;
1789
+ readonly source: S.String;
1790
+ readonly mutants: S.$Array<S.Struct<{
1791
+ readonly id: S.String;
1792
+ readonly mutatorName: S.String;
1793
+ readonly replacement: S.String;
1794
+ readonly location: S.Struct<{
1795
+ readonly start: S.Struct<{
1796
+ readonly line: S.Finite;
1797
+ readonly column: S.Finite;
1798
+ }>;
1799
+ readonly end: S.Struct<{
1800
+ readonly line: S.Finite;
1801
+ readonly column: S.Finite;
1802
+ }>;
1803
+ }>;
1804
+ readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "Timeout", "CompileError", "RuntimeError", "Ignored", "Pending"]>;
1805
+ readonly killedBy: S.optional<S.$Array<S.String>>;
1806
+ readonly coveredBy: S.optional<S.$Array<S.String>>;
1807
+ readonly static: S.optional<S.Boolean>;
1808
+ readonly statusReason: S.optional<S.String>;
1809
+ readonly testsCompleted: S.optional<S.Finite>;
1810
+ readonly description: S.optional<S.String>;
1811
+ readonly duration: S.optional<S.Finite>;
1812
+ }>>;
1813
+ }>>;
1814
+ readonly testFiles: S.optional<S.$Record<S.String, S.Struct<{
1815
+ readonly source: S.optional<S.String>;
1816
+ readonly tests: S.$Array<S.Struct<{
1817
+ readonly id: S.String;
1818
+ readonly name: S.String;
1819
+ readonly location: S.optional<S.Struct<{
1820
+ readonly start: S.Struct<{
1821
+ readonly line: S.Finite;
1822
+ readonly column: S.Finite;
1823
+ }>;
1824
+ readonly end: S.optional<S.Struct<{
1825
+ readonly line: S.Finite;
1826
+ readonly column: S.Finite;
1827
+ }>>;
1828
+ }>>;
1829
+ }>>;
1830
+ }>>>;
1831
+ }>, readonly [S.$Record<S.String, S.Unknown>]>;
1832
+ //#endregion
1833
+ //#region src/Project.d.ts
1834
+ interface ProjectFile extends FileDescription {
1835
+ readonly name: string;
1836
+ readonly mutate: MutateDescription;
1837
+ readonly content: string | undefined;
1838
+ readonly originalContent: string | undefined;
1839
+ }
1840
+ interface Project {
1841
+ readonly fileDescriptions: FileDescriptions;
1842
+ readonly incrementalReport: MutationTestResult | undefined;
1843
+ readonly testFiles: readonly string[];
1844
+ readonly files: MutableHashMap.MutableHashMap<string, ProjectFile>;
1845
+ readonly filesToMutate: MutableHashMap.MutableHashMap<string, ProjectFile>;
1846
+ }
1847
+ //#endregion
1848
+ //#region src/stryker-error.schema.d.ts
1849
+ declare const StrykerError_base: Schema.Class<StrykerError, Schema.TaggedStruct<"StrykerError", {
1850
+ readonly message: Schema.String;
1851
+ readonly cause: Schema.optional<Schema.Unknown>;
1852
+ }>, import("effect/Cause").YieldableError>;
1853
+ declare class StrykerError extends StrykerError_base {}
1854
+ //#endregion
1855
+ //#region src/Sandbox.d.ts
1856
+ interface SandboxHandle {
1857
+ readonly workingDirectory: string;
1858
+ readonly sandboxFileFor: (fileName: string) => string;
1859
+ readonly originalFileFor: (sandboxFileName: string) => string;
1860
+ }
1861
+ //#endregion
1862
+ //#region src/run/RunEnvironment.d.ts
1863
+ interface RunEnvironmentShape {
1864
+ readonly runId: string;
1865
+ readonly resolvedMode: ResolvedMode;
1866
+ readonly runStartedAt: number;
1867
+ readonly basePath: string;
1868
+ readonly builtinReporters: Readonly<Record<string, ReporterFactory>>;
1869
+ readonly allowConsoleColors: boolean;
1870
+ }
1871
+ declare const RunEnvironment_base: Context.ServiceClass<RunEnvironment, "@systemfsoftware/stryker-js/run/RunEnvironment", RunEnvironmentShape>;
1872
+ declare class RunEnvironment extends RunEnvironment_base {}
1873
+ //#endregion
1874
+ //#region src/run/prepare.cell.d.ts
1875
+ interface PrepareDone {
1876
+ readonly project: Project;
1877
+ readonly loadedPlugins: LoadedPlugins;
1878
+ readonly ignorers: readonly Ignorer[];
1879
+ readonly options: StrykerOptions;
1880
+ readonly temporaryDirectoryPath: string;
1881
+ readonly reporterStage: ReporterStage;
1882
+ }
1883
+ interface PrepareExecutorArgs {
1884
+ cliOptions: PartialStrykerOptions;
1885
+ targetMutatePatterns: string[] | undefined;
1886
+ }
1887
+ //#endregion
1888
+ //#region src/run/instrument.cell.d.ts
1889
+ interface InstrumentDone extends PrepareDone {
1890
+ readonly mutants: readonly Mutant[];
1891
+ readonly sandbox: SandboxHandle;
1892
+ readonly concurrency: {
1893
+ readonly testRunners: number;
1894
+ readonly checkers: number;
1895
+ };
1896
+ }
1897
+ //#endregion
1898
+ //#region src/run/dry-run.cell.d.ts
1899
+ interface DryRunDone extends InstrumentDone {
1900
+ readonly dryRunResult: CompleteDryRunResult;
1901
+ readonly testCoverage: TestCoverage;
1902
+ readonly timeOverhead: EffectDuration.Duration;
1903
+ }
1904
+ //#endregion
1905
+ //#region src/run/StageServices.d.ts
1906
+ type StageServices = ChildProcessSpawner.ChildProcessSpawner | FileSystem.FileSystem | IdGenerator | Path.Path | RunEnvironment | RunEvents | Scope.Scope | Stdio.Stdio | WorkerLauncher;
1907
+ type EnginePorts = ChildProcessSpawner.ChildProcessSpawner | FileSystem.FileSystem | Path.Path | Stdio.Stdio | WorkerLauncher;
1908
+ type RunStageServices = RunEnvironment | RunEvents | IdGenerator | Scope.Scope;
1909
+ type WiredRunLayer = Layer.Layer<RunStageServices | EnginePorts, never, never>;
1910
+ //#endregion
1911
+ //#region src/run/mutation-test.cell.d.ts
1912
+ interface MutationTestDone {
1913
+ readonly results: readonly RunMutantResult[];
1914
+ readonly verdict: ExitClass | null;
1915
+ }
1916
+ //#endregion
1917
+ export { PluginDescriptorOf as $, ExtendsStepDecision as A, connectRetry as At, MergeCommand as B, ConfigDocumentSchema as C, SpawnedSocketWorker as Ct, ConfigFileUnreadableError as D, WorkerLauncher as Dt, ConfigFileNotFoundError as E, WorkerExit as Et, ExtendsStepRefused as F, StageError as Ft, survivorsPriorReport as G, ReadConfigCommand as H, ExtendsStepResolve as I, AnyWorkerPluginSource as J, AnyPluginDescriptor as K, ExtendsStepState as L, ExtendsStepDocumentSchema as M, ChildProcessCrashedError as Mt, ExtendsStepDone as N, OutOfMemoryError as Nt, ConfigFileUnsupportedError as O, WorkerLauncherShape as Ot, ExtendsStepRead as P, WorkerBootTimeoutError as Pt, PluginDescriptor as Q, ExtendsStepStateSchema as R, spawnReporterWorker as S, VerdictReached as St, ConfigFileInvalidError as T, WorkerClientParams as Tt, extendsPropertySchema as U, MergeResult as V, forkOptionsSchema as W, EvaluatorPluginSource as X, EvaluatorPluginDescriptor as Y, LoadedPlugins as Z, REPORTER_EVENT_BATCH_BOUND as _, RunFailed as _t, WiredRunLayer as a, IdGenerator as at, SpawnReporterWorkerParams as b, RunStarted as bt, PrepareDone as c, TestCoverage as ct, RunEnvironmentShape as d, RunIdentityShape as dt, PluginKind as et, SandboxHandle as f, Heartbeat as ft, IncrementalReportSchema as g, RunEvent as gt, ProjectFile as h, PlanKnown as ht, StageServices as i, Ignorer as it, ExtendsStepDocument as j, makeWorkerClient as jt, ExtendsRefusalReason as k, WorkerSpawnParams as kt, PrepareExecutorArgs as l, RunEvents as lt, Project as m, PhaseEntered as mt, EnginePorts as n, WorkerPluginDescriptor as nt, DryRunDone as o, IdGeneratorShape as ot, StrykerError as p, HelpRendered as pt, AnyWorkerPluginDescriptor as q, RunStageServices as r, WorkerPluginSource as rt, InstrumentDone as s, classifyWorkerExit as st, MutationTestDone as t, PluginSource as tt, RunEnvironment as u, RunIdentity as ut, ReporterStage as v, RunMutantTested as vt, ConfigError as w, WorkerBootError as wt, reporterWorkerFactory as x, RunTerminalEvent as xt, ReporterWorkerClient as y, RunPhase as yt, ImportedModuleSchema as z };