@systemfsoftware/stryker-js 10.2.0 → 12.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
- import { C as Metrics, _ as ExitClass } from "./index-tt2EziOT.mjs";
1
+ import { i as mod_d_exports$4, r as mod_d_exports$3 } from "./index-f-U3oZaJ.mjs";
2
2
  import * as S from "effect/Schema";
3
- //#region src/RunEvent.schema.d.ts
3
+ //#region src/run-event.schema.d.ts
4
4
  declare const RunPhase: S.Literals<readonly ["prepare", "instrument", "dry-run", "mutation-test"]>;
5
5
  type RunPhase = typeof RunPhase.Type;
6
6
  declare const OutputMode: S.Literals<readonly ["human", "machine"]>;
@@ -29,12 +29,12 @@ declare const RunMutantTested_base: S.Class<RunMutantTested, S.TaggedStruct<"mut
29
29
  readonly file: S.String;
30
30
  readonly location: S.Struct<{
31
31
  readonly start: S.Struct<{
32
- readonly line: S.Finite;
33
- readonly column: S.Finite;
32
+ readonly line: S.Int;
33
+ readonly column: S.Int;
34
34
  }>;
35
35
  readonly end: S.Struct<{
36
- readonly line: S.Finite;
37
- readonly column: S.Finite;
36
+ readonly line: S.Int;
37
+ readonly column: S.Int;
38
38
  }>;
39
39
  }>;
40
40
  readonly mutator: S.String;
@@ -60,12 +60,12 @@ declare const VerdictMutant: S.Struct<{
60
60
  readonly file: S.String;
61
61
  readonly location: S.Struct<{
62
62
  readonly start: S.Struct<{
63
- readonly line: S.Finite;
64
- readonly column: S.Finite;
63
+ readonly line: S.Int;
64
+ readonly column: S.Int;
65
65
  }>;
66
66
  readonly end: S.Struct<{
67
- readonly line: S.Finite;
68
- readonly column: S.Finite;
67
+ readonly line: S.Int;
68
+ readonly column: S.Int;
69
69
  }>;
70
70
  }>;
71
71
  readonly mutator: S.String;
@@ -73,7 +73,7 @@ declare const VerdictMutant: S.Struct<{
73
73
  readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
74
74
  }>;
75
75
  type VerdictMutant = typeof VerdictMutant.Type;
76
- type VerdictCounts = Metrics;
76
+ type VerdictCounts = mod_d_exports$4.Metrics;
77
77
  declare const VerdictReached_base: S.Class<VerdictReached, S.TaggedStruct<"verdict", {
78
78
  readonly schemaVersion: S.String;
79
79
  readonly runId: S.String;
@@ -94,18 +94,18 @@ declare const VerdictReached_base: S.Class<VerdictReached, S.TaggedStruct<"verdi
94
94
  readonly break: S.NullOr<S.Finite>;
95
95
  }>, never, never>;
96
96
  readonly reportFile: S.NullOr<S.String>;
97
- readonly counts: typeof Metrics;
97
+ readonly counts: typeof mod_d_exports$4.Metrics;
98
98
  readonly mutants: S.$Array<S.Struct<{
99
99
  readonly id: S.String;
100
100
  readonly file: S.String;
101
101
  readonly location: S.Struct<{
102
102
  readonly start: S.Struct<{
103
- readonly line: S.Finite;
104
- readonly column: S.Finite;
103
+ readonly line: S.Int;
104
+ readonly column: S.Int;
105
105
  }>;
106
106
  readonly end: S.Struct<{
107
- readonly line: S.Finite;
108
- readonly column: S.Finite;
107
+ readonly line: S.Int;
108
+ readonly column: S.Int;
109
109
  }>;
110
110
  }>;
111
111
  readonly mutator: S.String;
@@ -114,11 +114,81 @@ declare const VerdictReached_base: S.Class<VerdictReached, S.TaggedStruct<"verdi
114
114
  }>>;
115
115
  }>, {}>;
116
116
  declare class VerdictReached extends VerdictReached_base {}
117
+ declare const FrameworkContributionRow: S.Struct<{
118
+ readonly name: S.String;
119
+ readonly formatId: S.String;
120
+ readonly extensions: S.$Array<S.String>;
121
+ }>;
122
+ type FrameworkContributionRow = typeof FrameworkContributionRow.Type;
123
+ declare const FrameworkModuleRow: S.Struct<{
124
+ readonly moduleName: S.String;
125
+ readonly contributions: S.$Array<S.Struct<{
126
+ readonly name: S.String;
127
+ readonly formatId: S.String;
128
+ readonly extensions: S.$Array<S.String>;
129
+ }>>;
130
+ }>;
131
+ type FrameworkModuleRow = typeof FrameworkModuleRow.Type;
132
+ declare const FormatClaimShadowingRow: S.Struct<{
133
+ readonly extension: S.String;
134
+ readonly winner: S.String;
135
+ readonly loser: S.String;
136
+ }>;
137
+ type FormatClaimShadowingRow = typeof FormatClaimShadowingRow.Type;
138
+ declare const PluginsReported_base: S.Class<PluginsReported, S.TaggedStruct<"plugins", {
139
+ readonly modules: S.$Array<S.Struct<{
140
+ readonly moduleName: S.String;
141
+ readonly contributions: S.$Array<S.Struct<{
142
+ readonly name: S.String;
143
+ readonly formatId: S.String;
144
+ readonly extensions: S.$Array<S.String>;
145
+ }>>;
146
+ }>>;
147
+ readonly shadowings: S.$Array<S.Struct<{
148
+ readonly extension: S.String;
149
+ readonly winner: S.String;
150
+ readonly loser: S.String;
151
+ }>>;
152
+ }>, {}>;
153
+ declare class PluginsReported extends PluginsReported_base {}
154
+ declare const FormatRegistryRow: S.Struct<{
155
+ readonly extension: S.String;
156
+ readonly formatId: S.String;
157
+ readonly ownerModule: S.String;
158
+ readonly language: S.String;
159
+ }>;
160
+ type FormatRegistryRow = typeof FormatRegistryRow.Type;
161
+ declare const FormatRegistryResolved_base: S.Class<FormatRegistryResolved, S.TaggedStruct<"formats", {
162
+ readonly rows: S.$Array<S.Struct<{
163
+ readonly extension: S.String;
164
+ readonly formatId: S.String;
165
+ readonly ownerModule: S.String;
166
+ readonly language: S.String;
167
+ }>>;
168
+ }>, {}>;
169
+ declare class FormatRegistryResolved extends FormatRegistryResolved_base {}
170
+ declare const SkippedFileRow: S.Struct<{
171
+ readonly file: S.String;
172
+ readonly extension: S.String;
173
+ readonly reason: S.String;
174
+ }>;
175
+ type SkippedFileRow = typeof SkippedFileRow.Type;
176
+ declare const SkippedReported_base: S.Class<SkippedReported, S.TaggedStruct<"skipped", {
177
+ readonly files: S.$Array<S.Struct<{
178
+ readonly file: S.String;
179
+ readonly extension: S.String;
180
+ readonly reason: S.String;
181
+ }>>;
182
+ }>, {}>;
183
+ declare class SkippedReported extends SkippedReported_base {}
184
+ declare const PluginFailureReason: S.Literals<readonly ["PeerMissing", "PeerVersionUnsupported", "PeerUnrecognized", "InvalidContribution", "ImportFailed"]>;
185
+ type PluginFailureReason = typeof PluginFailureReason.Type;
117
186
  declare const RunFailed_base: S.Class<RunFailed, S.TaggedStruct<"error", {
118
187
  readonly schemaVersion: S.String;
119
188
  readonly code: S.Finite;
120
189
  readonly error: S.String;
121
190
  readonly remediation: S.String;
191
+ readonly reason: S.NullOr<S.Literals<readonly ["PeerMissing", "PeerVersionUnsupported", "PeerUnrecognized", "InvalidContribution", "ImportFailed"]>>;
122
192
  }>, {}>;
123
193
  declare class RunFailed extends RunFailed_base {}
124
194
  declare const HelpRendered_base: S.Class<HelpRendered, S.TaggedStruct<"help", {
@@ -127,7 +197,9 @@ declare const HelpRendered_base: S.Class<HelpRendered, S.TaggedStruct<"help", {
127
197
  readonly help: S.String;
128
198
  }>, {}>;
129
199
  declare class HelpRendered extends HelpRendered_base {}
130
- declare const RunEvent: S.Union<readonly [typeof RunStarted, typeof PhaseEntered, typeof PlanKnown, typeof RunMutantTested, typeof Heartbeat, typeof VerdictReached, typeof RunFailed, typeof HelpRendered]>;
200
+ declare const RunEvent: S.Union<readonly [typeof RunStarted, typeof PhaseEntered, typeof PlanKnown, typeof RunMutantTested, typeof Heartbeat, typeof PluginsReported, typeof FormatRegistryResolved, typeof SkippedReported, typeof VerdictReached, typeof RunFailed, typeof HelpRendered]> & {
201
+ QUEUE_BOUND: number;
202
+ };
131
203
  type RunEvent = typeof RunEvent.Type;
132
204
  type RunTerminalEvent = VerdictReached | RunFailed | HelpRendered;
133
205
  declare const RunDecodeError_base: S.Class<RunDecodeError, S.TaggedStruct<"RunDecodeError", {
@@ -161,7 +233,7 @@ declare const StageError_base: S.Class<StageError, S.TaggedStruct<"StageError",
161
233
  }>, import("effect/Cause").YieldableError>;
162
234
  declare class StageError extends StageError_base {
163
235
  readonly [TypeId]: "~stryker/mutation-run/StageError";
164
- get exitClass(): ExitClass;
236
+ get exitClass(): mod_d_exports$3.ExitClass;
165
237
  get message(): string;
166
238
  }
167
239
  declare const PrepareError_base: S.Class<PrepareError, S.TaggedStruct<"PrepareError", {
@@ -170,4 +242,4 @@ declare const PrepareError_base: S.Class<PrepareError, S.TaggedStruct<"PrepareEr
170
242
  }>, import("effect/Cause").YieldableError>;
171
243
  declare class PrepareError extends PrepareError_base {}
172
244
  //#endregion
173
- export { VerdictThresholds as S, RunStarted as _, ModeSignal as a, VerdictMutant as b, PhaseEntered as c, RunDecodeError as d, RunEvent as f, RunReadError as g, RunPhase as h, HelpRendered as i, PlanKnown as l, RunMutantTested as m, StageError as n, MutationRunPlan as o, RunFailed as p, Heartbeat as r, OutputMode as s, PrepareError as t, PlanMutationRunCommand as u, RunTerminalEvent as v, VerdictReached as x, VerdictCounts as y };
245
+ export { VerdictReached as A, RunReadError as C, SkippedReported as D, SkippedFileRow as E, VerdictCounts as O, RunPhase as S, RunTerminalEvent as T, PluginsReported as _, FormatRegistryRow as a, RunFailed as b, Heartbeat as c, MutationRunPlan as d, OutputMode as f, PluginFailureReason as g, PlanMutationRunCommand as h, FormatRegistryResolved as i, VerdictThresholds as j, VerdictMutant as k, HelpRendered as l, PlanKnown as m, StageError as n, FrameworkContributionRow as o, PhaseEntered as p, FormatClaimShadowingRow as r, FrameworkModuleRow as s, PrepareError as t, ModeSignal as u, RunDecodeError as v, RunStarted as w, RunMutantTested as x, RunEvent as y };
@@ -0,0 +1,464 @@
1
+ import { a as mod_d_exports$5, c as mod_d_exports$2, d as Ignorer, i as mod_d_exports$4, l as mod_d_exports$3$1, n as mod_d_exports$2$1, o as mod_d_exports$6, r as mod_d_exports$3, s as mod_d_exports$1, t as mod_d_exports, u as Framework } from "./index-f-U3oZaJ.mjs";
2
+ import { A as VerdictReached, D as SkippedReported, _ as PluginsReported, b as RunFailed, c as Heartbeat, i as FormatRegistryResolved, l as HelpRendered, m as PlanKnown, p as PhaseEntered, w as RunStarted, x as RunMutantTested, y as RunEvent } from "./Run.schema-D43Nx5kI.mjs";
3
+ import { Cell, Handle, Sandwich, Workflow } from "@systemfsoftware/effect-cell-types";
4
+ import "effect/Option";
5
+ import "effect/Result";
6
+ import * as S from "effect/Schema";
7
+ import * as Effect$1 from "effect/Effect";
8
+ import * as Context from "effect/Context";
9
+ import { Schema } from "effect";
10
+ import "effect/Exit";
11
+ import * as RpcGroup from "effect/unstable/rpc/RpcGroup";
12
+ import * as Cause from "effect/Cause";
13
+ import * as Path from "effect/Path";
14
+ import * as FileSystem from "effect/FileSystem";
15
+ import * as Stream from "effect/Stream";
16
+ import * as ChildProcessSpawner from "effect/unstable/process/ChildProcessSpawner";
17
+ import * as EffectDuration from "effect/Duration";
18
+ import * as Layer from "effect/Layer";
19
+ import * as Queue from "effect/Queue";
20
+ import * as Scope from "effect/Scope";
21
+ import * as HashMap from "effect/HashMap";
22
+ import * as MutableHashMap from "effect/MutableHashMap";
23
+ import * as RpcClient from "effect/unstable/rpc/RpcClient";
24
+ import * as Stdio from "effect/Stdio";
25
+ import * as MutableHashSet from "effect/MutableHashSet";
26
+ import { RpcClientError } from "effect/unstable/rpc/RpcClientError";
27
+ import * as Socket from "effect/unstable/socket/Socket";
28
+ import { PlatformError } from "effect/PlatformError";
29
+ import "effect/Console";
30
+ import "effect/Runtime";
31
+ //#region src/Worker.schema.d.ts
32
+ /**
33
+ * The child process hosting a worker ended when it was not supposed to.
34
+ */
35
+ declare const WorkerExitTypeId: unique symbol;
36
+ type WorkerExitTypeId = typeof WorkerExitTypeId;
37
+ declare const ChildProcessCrashedError_base: Schema.Class<ChildProcessCrashedError, Schema.TaggedStruct<"ChildProcessCrashedError", {
38
+ readonly pid: Schema.Int;
39
+ readonly exit: Schema.Union<readonly [Schema.Struct<{
40
+ readonly _tag: Schema.Literals<readonly ["Code"]>;
41
+ readonly code: Schema.Int;
42
+ }>, Schema.Struct<{
43
+ readonly _tag: Schema.Literals<readonly ["Signal"]>;
44
+ readonly signal: Schema.NonEmptyString;
45
+ }>]>;
46
+ readonly cause: Schema.optional<Schema.String>;
47
+ }>, import("effect/Cause").YieldableError>;
48
+ declare class ChildProcessCrashedError extends ChildProcessCrashedError_base {
49
+ readonly [WorkerExitTypeId]: symbol;
50
+ readonly exitClass: 'InternalError';
51
+ }
52
+ declare const OutOfMemoryError_base: Schema.Class<OutOfMemoryError, Schema.TaggedStruct<"OutOfMemoryError", {
53
+ readonly pid: Schema.Int;
54
+ readonly exitCode: Schema.Int;
55
+ }>, import("effect/Cause").YieldableError>;
56
+ declare class OutOfMemoryError extends OutOfMemoryError_base {
57
+ readonly [WorkerExitTypeId]: symbol;
58
+ readonly exitClass: 'RuntimeError';
59
+ }
60
+ type WorkerExit = ChildProcessCrashedError | OutOfMemoryError;
61
+ type WorkerBootError = WorkerExit | WorkerBootTimeoutError;
62
+ declare const WorkerBootTimeoutError_base: Schema.Class<WorkerBootTimeoutError, Schema.TaggedStruct<"WorkerBootTimeoutError", {
63
+ readonly pid: Schema.Int;
64
+ }>, import("effect/Cause").YieldableError>;
65
+ declare class WorkerBootTimeoutError extends WorkerBootTimeoutError_base {
66
+ readonly exitClass: 'InternalError';
67
+ }
68
+ //#endregion
69
+ //#region src/ConfigError.schema.d.ts
70
+ declare const ConfigFileNotFoundError_base: S.Class<ConfigFileNotFoundError, S.TaggedStruct<"ConfigFileNotFoundError", {
71
+ readonly file: S.String;
72
+ }>, import("effect/Cause").YieldableError>;
73
+ declare class ConfigFileNotFoundError extends ConfigFileNotFoundError_base {
74
+ readonly exitClass: 'ConfigError';
75
+ }
76
+ declare const ConfigFileUnsupportedError_base: S.Class<ConfigFileUnsupportedError, S.TaggedStruct<"ConfigFileUnsupportedError", {
77
+ readonly file: S.String;
78
+ readonly hint: S.String;
79
+ }>, import("effect/Cause").YieldableError>;
80
+ declare class ConfigFileUnsupportedError extends ConfigFileUnsupportedError_base {
81
+ readonly exitClass: 'ConfigError';
82
+ get message(): string;
83
+ }
84
+ declare const ConfigFileUnreadableError_base: S.Class<ConfigFileUnreadableError, S.TaggedStruct<"ConfigFileUnreadableError", {
85
+ readonly file: S.String;
86
+ readonly cause: S.Unknown;
87
+ }>, import("effect/Cause").YieldableError>;
88
+ declare class ConfigFileUnreadableError extends ConfigFileUnreadableError_base {
89
+ readonly exitClass: 'ConfigError';
90
+ }
91
+ declare const ConfigFileInvalidError_base: S.Class<ConfigFileInvalidError, S.TaggedStruct<"ConfigFileInvalidError", {
92
+ readonly file: S.String;
93
+ readonly cause: S.Unknown;
94
+ }>, import("effect/Cause").YieldableError>;
95
+ declare class ConfigFileInvalidError extends ConfigFileInvalidError_base {
96
+ readonly exitClass: 'ConfigError';
97
+ }
98
+ declare const ConfigError_base: S.Class<ConfigError, S.TaggedStruct<"ConfigError", {
99
+ readonly message: S.String;
100
+ }>, import("effect/Cause").YieldableError>;
101
+ declare class ConfigError extends ConfigError_base {
102
+ readonly exitClass: 'ConfigError';
103
+ }
104
+ //#endregion
105
+ //#region src/output-mode.schema.d.ts
106
+ /**
107
+ * Mode type vocabulary shared with the CLI package. Runtime resolution
108
+ * (`resolveMode`) and gate functions (`isProgressEnabled`, `isColorEnabled`)
109
+ * live in the CLI; the `ResolvedMode` fields (`mode`, `signal`,
110
+ * `stdoutIsTTY`) ride along in `VerdictEnvelope` (`verdict-envelope.ts`),
111
+ * so the types stay where the data does.
112
+ */
113
+ type OutputMode = 'human' | 'machine';
114
+ type ModeSignal = 'flag' | 'env' | 'tty' | 'agent' | 'tool';
115
+ interface ResolvedMode {
116
+ readonly mode: OutputMode;
117
+ readonly signal: ModeSignal;
118
+ readonly stdoutIsTTY: boolean;
119
+ }
120
+ //#endregion
121
+ //#region src/frame-run-event.workflow.d.ts
122
+ interface ResolvedModeInput {
123
+ readonly mode: 'machine' | 'human';
124
+ readonly signal: 'flag' | 'env' | 'tty' | 'agent' | 'tool';
125
+ }
126
+ //#endregion
127
+ //#region src/run-event-stream.service.d.ts
128
+ type FramedDrain = (framed: Stream.Stream<string, never, never>) => Effect$1.Effect<void, never, never>;
129
+ interface RunEventDrainShape {
130
+ readonly drainFramed: FramedDrain;
131
+ readonly setProgressStreamFile: (fileName: string) => Effect$1.Effect<void, never, never>;
132
+ }
133
+ declare const RunEventDrain_base: Context.ServiceClass<RunEventDrain, "@systemfsoftware/stryker-js/run-event-stream.service/RunEventDrain", RunEventDrainShape>;
134
+ declare class RunEventDrain extends RunEventDrain_base {
135
+ static readonly layer: Layer.Layer<RunEventDrain, never, Stdio.Stdio>;
136
+ static readonly DefaultProgressStreamFile = "reports/mutation-stream.jsonl";
137
+ static readonly fileLayer: Layer.Layer<RunEventDrain, never, Stdio.Stdio | FileSystem.FileSystem | Path.Path>;
138
+ }
139
+ declare const RunEventDrainLive: Layer.Layer<RunEventDrain, never, Stdio.Stdio>;
140
+ interface RunEventStream {
141
+ readonly queue: Queue.Queue<RunEvent, Cause.Done>;
142
+ readonly runId: string;
143
+ readonly startedAt: number;
144
+ readonly isOpen: Effect$1.Effect<boolean, never, never>;
145
+ readonly ensureOpen: (openResolved: ResolvedModeInput) => Effect$1.Effect<void, never, never>;
146
+ readonly open: Effect$1.Effect<void, never, never>;
147
+ readonly closeAndDrain: Effect$1.Effect<void, never, never>;
148
+ }
149
+ declare const makeRunEventStream: (resolved: ResolvedModeInput) => Effect$1.Effect<{
150
+ queue: Queue.Queue<FormatRegistryResolved | Heartbeat | HelpRendered | PhaseEntered | PlanKnown | PluginsReported | RunFailed | RunMutantTested | RunStarted | SkippedReported | VerdictReached, Cause.Done<void>>;
151
+ runId: string;
152
+ startedAt: number;
153
+ isOpen: Effect$1.Effect<boolean, never, never>;
154
+ ensureOpen: (openResolved: ResolvedModeInput) => Effect$1.Effect<void, never, never>;
155
+ open: Effect$1.Effect<void, never, never>;
156
+ closeAndDrain: Effect$1.Effect<void, never, never>;
157
+ }, never, RunEventDrain | Stdio.Stdio>;
158
+ //#endregion
159
+ //#region src/run-events.service.d.ts
160
+ declare const RunEvents_base: Context.ServiceClass<RunEvents, "@systemfsoftware/stryker-js/run-events.service/RunEvents", Queue.Queue<FormatRegistryResolved | Heartbeat | HelpRendered | PhaseEntered | PlanKnown | PluginsReported | RunFailed | RunMutantTested | RunStarted | SkippedReported | VerdictReached, Cause.Done<void>>>;
161
+ declare class RunEvents extends RunEvents_base {}
162
+ interface RunIdentityShape {
163
+ readonly runId: string;
164
+ readonly basePath: string;
165
+ }
166
+ declare const RunIdentity_base: Context.ServiceClass<RunIdentity, "@systemfsoftware/stryker-js/run-events.service/RunIdentity", RunIdentityShape>;
167
+ declare class RunIdentity extends RunIdentity_base {}
168
+ //#endregion
169
+ //#region src/Project.schema.d.ts
170
+ interface ProjectFile extends mod_d_exports$2.FileDescription {
171
+ readonly name: string;
172
+ readonly mutate: mod_d_exports$2.MutateDescription;
173
+ readonly content: string | undefined;
174
+ readonly originalContent: string | undefined;
175
+ }
176
+ interface Project {
177
+ readonly fileDescriptions: mod_d_exports$2.FileDescriptions;
178
+ readonly incrementalReport: mod_d_exports$4.MutationTestResult | undefined;
179
+ readonly testFiles: readonly string[];
180
+ readonly files: MutableHashMap.MutableHashMap<string, ProjectFile>;
181
+ readonly filesToMutate: MutableHashMap.MutableHashMap<string, ProjectFile>;
182
+ }
183
+ //#endregion
184
+ //#region src/project-files.service.d.ts
185
+ type ContentPair = readonly [ProjectFile, string];
186
+ type PathPair = readonly [string, string];
187
+ interface InPlaceTarget {
188
+ readonly backupDirectory: string;
189
+ readonly basePath: string;
190
+ }
191
+ interface SandboxTarget {
192
+ readonly workingDirectory: string;
193
+ readonly basePath: string;
194
+ }
195
+ interface ProjectFilesShape {
196
+ readonly read: (file: ProjectFile) => Effect$1.Effect<string, PlatformError>;
197
+ readonly readAll: (files: Iterable<ProjectFile>) => Effect$1.Effect<readonly ContentPair[], PlatformError>;
198
+ readonly readAllOriginal: (files: Iterable<ProjectFile>) => Effect$1.Effect<readonly ContentPair[], PlatformError>;
199
+ readonly writeAllInPlace: (files: Iterable<readonly [string, ProjectFile]>, target: InPlaceTarget) => Effect$1.Effect<readonly PathPair[], PlatformError>;
200
+ readonly writeAllToSandbox: (files: Iterable<readonly [string, ProjectFile]>, target: SandboxTarget) => Effect$1.Effect<readonly PathPair[], PlatformError>;
201
+ }
202
+ declare const ProjectFiles_base: Context.ServiceClass<ProjectFiles, "@systemfsoftware/stryker-js/project-files.service/ProjectFiles", ProjectFilesShape>;
203
+ declare class ProjectFiles extends ProjectFiles_base {
204
+ static readonly layer: Layer.Layer<ProjectFiles, never, FileSystem.FileSystem | Path.Path>;
205
+ }
206
+ //#endregion
207
+ //#region src/spawned-socket-worker.handle.d.ts
208
+ declare const TypeId$1: unique symbol;
209
+ type TypeId$1 = typeof TypeId$1;
210
+ interface SpawnedSocketWorkerSlot {
211
+ readonly clientLayer: Layer.Layer<RpcClient.Protocol, Socket.SocketError>;
212
+ }
213
+ declare const SpawnedSocketWorker: Handle.Definition<typeof TypeId$1, {
214
+ readonly pid: number;
215
+ readonly exited: Effect$1.Effect<never, WorkerExit>;
216
+ }, SpawnedSocketWorkerSlot, never>;
217
+ type SpawnedSocketWorker = Handle.Of<typeof SpawnedSocketWorker>;
218
+ declare const make: (worker: {
219
+ readonly pid: number;
220
+ readonly clientLayer: Layer.Layer<RpcClient.Protocol, Socket.SocketError>;
221
+ readonly exited: Effect$1.Effect<never, WorkerExit>;
222
+ }) => SpawnedSocketWorker;
223
+ //#endregion
224
+ //#region src/WorkerLauncher.service.d.ts
225
+ interface WorkerSpawnParams {
226
+ readonly entrypoint: string;
227
+ readonly workingDirectory: string;
228
+ readonly execArgv: readonly string[];
229
+ readonly optionsJson: string;
230
+ readonly tempDirPrefix: string;
231
+ readonly env?: Readonly<Record<string, string>> | undefined;
232
+ }
233
+ interface WorkerLauncherShape {
234
+ readonly spawn: (params: WorkerSpawnParams) => Effect$1.Effect<SpawnedSocketWorker, ChildProcessCrashedError, Scope.Scope>;
235
+ }
236
+ declare const WorkerLauncher_base: Context.ServiceClass<WorkerLauncher, "@systemfsoftware/stryker-js/WorkerLauncher.service/WorkerLauncher", WorkerLauncherShape>;
237
+ declare class WorkerLauncher extends WorkerLauncher_base {}
238
+ //#endregion
239
+ //#region src/reporter-stream.service.d.ts
240
+ declare const ReporterStageTypeId: unique symbol;
241
+ /**
242
+ * An attached reporter stage, opaque at the engine boundary: the published
243
+ * phase types carry this handle so the attachment machinery (queues, fibers,
244
+ * the state latch) never reaches an adopter's compiler. Constructed only by
245
+ * `attachReporterFactories`.
246
+ */
247
+ interface ReporterStage {
248
+ readonly [ReporterStageTypeId]: typeof ReporterStageTypeId;
249
+ }
250
+ declare const REPORTER_EVENT_BATCH_BOUND = 128;
251
+ type ReporterWorkerClient = RpcClient.RpcClient<RpcGroup.Rpcs<typeof mod_d_exports$3.ReporterRpcs>, RpcClientError>;
252
+ declare const reporterWorkerFactory: (client: ReporterWorkerClient) => mod_d_exports$5.ReporterFactory;
253
+ interface SpawnReporterWorkerParams {
254
+ readonly entrypoint: string;
255
+ readonly projectBasePath: string;
256
+ readonly execArgv: readonly string[];
257
+ readonly options: mod_d_exports$2$1.StrykerOptions;
258
+ readonly tempDirPrefix: string;
259
+ }
260
+ declare const spawnReporterWorker: (params: SpawnReporterWorkerParams) => Effect$1.Effect<ReporterWorkerClient, WorkerBootError, Scope.Scope | WorkerLauncher>;
261
+ //#endregion
262
+ //#region src/TestRunner.schema.d.ts
263
+ type PooledTestRunnerError = mod_d_exports$6.TestRunnerFailed | ChildProcessCrashedError | OutOfMemoryError;
264
+ //#endregion
265
+ //#region src/Worker.service.d.ts
266
+ interface IdGeneratorShape {
267
+ readonly next: Effect$1.Effect<number>;
268
+ }
269
+ declare const IdGenerator_base: Context.ServiceClass<IdGenerator, "@systemfsoftware/stryker-js/Worker.service/IdGenerator", IdGeneratorShape>;
270
+ declare class IdGenerator extends IdGenerator_base {
271
+ static readonly layer: Layer.Layer<IdGenerator, never, never>;
272
+ }
273
+ //#endregion
274
+ //#region src/test-coverage.schema.d.ts
275
+ interface TestCoverage {
276
+ readonly testsByMutantId: MutableHashMap.MutableHashMap<string, MutableHashSet.MutableHashSet<mod_d_exports$6.TestResult>>;
277
+ readonly testsById: MutableHashMap.MutableHashMap<string, mod_d_exports$6.TestResult>;
278
+ readonly staticCoverage: mod_d_exports$3$1.CoverageData | undefined;
279
+ readonly hitsByMutantId: MutableHashMap.MutableHashMap<string, number>;
280
+ }
281
+ //#endregion
282
+ //#region src/stryker-error.schema.d.ts
283
+ declare const StrykerError_base: Schema.Class<StrykerError, Schema.TaggedStruct<"StrykerError", {
284
+ readonly message: Schema.String;
285
+ readonly cause: Schema.optional<Schema.Unknown>;
286
+ }>, import("effect/Cause").YieldableError>;
287
+ declare class StrykerError extends StrykerError_base {}
288
+ //#endregion
289
+ //#region src/Sandbox.handle.d.ts
290
+ declare const TypeId: unique symbol;
291
+ type TypeId = typeof TypeId;
292
+ declare const SandboxHandle: Handle.Definition<typeof TypeId, {
293
+ readonly workingDirectory: string;
294
+ }, {
295
+ readonly fileMap: Map<string, string>;
296
+ readonly basePath: string;
297
+ readonly pathService: Path.Path;
298
+ }, never>;
299
+ type SandboxHandle = Handle.Of<typeof SandboxHandle>;
300
+ //#endregion
301
+ //#region src/Plugins.schema.d.ts
302
+ type PluginKind = mod_d_exports$3.WorkerPluginKind | 'Evaluator';
303
+ interface WorkerPluginDescriptor<K extends mod_d_exports$3.WorkerPluginKind = mod_d_exports$3.WorkerPluginKind> {
304
+ readonly kind: K;
305
+ readonly name: string;
306
+ readonly workerEntry: string;
307
+ }
308
+ interface EvaluatorPluginDescriptor {
309
+ readonly kind: 'Evaluator';
310
+ readonly name: string;
311
+ }
312
+ type AnyWorkerPluginDescriptor = { [K in mod_d_exports$3.WorkerPluginKind]: WorkerPluginDescriptor<K>; }[mod_d_exports$3.WorkerPluginKind];
313
+ type AnyPluginDescriptor = AnyWorkerPluginDescriptor | EvaluatorPluginDescriptor;
314
+ type PluginDescriptorOf<K extends PluginKind> = Extract<AnyPluginDescriptor, {
315
+ readonly kind: K;
316
+ }>;
317
+ type PluginDescriptor<K extends PluginKind = PluginKind> = PluginDescriptorOf<K>;
318
+ interface WorkerPluginSource<K extends mod_d_exports$3.WorkerPluginKind = mod_d_exports$3.WorkerPluginKind> {
319
+ readonly kind: K;
320
+ readonly name: string;
321
+ readonly modulePath: string;
322
+ readonly workerEntry: string;
323
+ }
324
+ interface EvaluatorPluginSource {
325
+ readonly kind: 'Evaluator';
326
+ readonly name: string;
327
+ readonly modulePath: string;
328
+ }
329
+ type AnyWorkerPluginSource = { [K in mod_d_exports$3.WorkerPluginKind]: WorkerPluginSource<K>; }[mod_d_exports$3.WorkerPluginKind];
330
+ type PluginSource = AnyWorkerPluginSource | EvaluatorPluginSource;
331
+ interface LoadedPlugins<A = unknown> {
332
+ readonly schemaContributions: readonly Record<string, A>[];
333
+ readonly pluginsByKind: HashMap.HashMap<PluginKind, readonly PluginDescriptor[]>;
334
+ readonly pluginModulePaths: readonly string[];
335
+ readonly pluginSources: readonly PluginSource[];
336
+ readonly ignorers: readonly Ignorer[];
337
+ readonly frameworks: readonly {
338
+ readonly moduleName: string;
339
+ readonly framework: Framework;
340
+ }[];
341
+ }
342
+ //#endregion
343
+ //#region src/reporter-output.service.d.ts
344
+ type OutputChannel = 'stdout' | 'stderr';
345
+ interface ReporterOutputShape {
346
+ readonly write: (channel: OutputChannel, chunks: readonly string[]) => Effect$1.Effect<void, PlatformError>;
347
+ }
348
+ declare const ReporterOutput_base: Context.ServiceClass<ReporterOutput, "@systemfsoftware/stryker-js/reporter-output.service/ReporterOutput", ReporterOutputShape>;
349
+ declare class ReporterOutput extends ReporterOutput_base {
350
+ static readonly layer: Layer.Layer<ReporterOutput, never, Stdio.Stdio>;
351
+ }
352
+ //#endregion
353
+ //#region src/reporter.service.d.ts
354
+ interface ReporterShape {
355
+ readonly builtin: Readonly<Record<string, mod_d_exports$5.ReporterFactory>>;
356
+ }
357
+ declare const Reporter_base: Context.ServiceClass<Reporter, "@systemfsoftware/stryker-js/reporter.service/Reporter", ReporterShape>;
358
+ declare class Reporter extends Reporter_base {
359
+ static readonly layer: Layer.Layer<Reporter, never, ReporterOutput | FileSystem.FileSystem | Path.Path>;
360
+ }
361
+ //#endregion
362
+ //#region src/run/explain-file-skip.workflow.d.ts
363
+ declare const FrameworkClaimant: S.Struct<{
364
+ readonly package: S.String;
365
+ readonly extensions: S.$Array<S.String>;
366
+ }>;
367
+ type FrameworkClaimant = S.Schema.Type<typeof FrameworkClaimant>;
368
+ //#endregion
369
+ //#region src/run/prepare.cell.d.ts
370
+ interface PrepareDone {
371
+ readonly project: Project;
372
+ readonly loadedPlugins: LoadedPlugins;
373
+ readonly ignorers: readonly Ignorer[];
374
+ readonly formatRegistry: mod_d_exports$1.FormatRegistry;
375
+ readonly options: mod_d_exports$2$1.StrykerOptions;
376
+ readonly temporaryDirectoryPath: string;
377
+ readonly reporterStage: ReporterStage;
378
+ readonly frameworkClaimants: readonly FrameworkClaimant[];
379
+ }
380
+ interface PrepareExecutorArgs {
381
+ cliOptions: mod_d_exports$2$1.PartialStrykerOptions;
382
+ targetMutatePatterns: string[] | undefined;
383
+ }
384
+ //#endregion
385
+ //#region src/run/instrument.cell.d.ts
386
+ interface InstrumentDone extends PrepareDone {
387
+ readonly mutants: readonly mod_d_exports$3$1.Mutant[];
388
+ readonly sandbox: SandboxHandle;
389
+ readonly concurrency: {
390
+ readonly testRunners: number;
391
+ readonly checkers: number;
392
+ };
393
+ }
394
+ //#endregion
395
+ //#region src/run/dry-run.cell.d.ts
396
+ interface DryRunDone extends InstrumentDone {
397
+ readonly dryRunResult: mod_d_exports$6.CompleteDryRunResult;
398
+ readonly testCoverage: TestCoverage;
399
+ readonly timeOverhead: EffectDuration.Duration;
400
+ }
401
+ //#endregion
402
+ //#region src/run/mutation-test.parts.d.ts
403
+ interface MutationTestDone {
404
+ readonly results: readonly mod_d_exports$3$1.RunMutantResult[];
405
+ readonly verdict: mod_d_exports$3.ExitClass | null;
406
+ }
407
+ //#endregion
408
+ //#region src/mutation-reporting.service.d.ts
409
+ interface MutationReportingInput {
410
+ readonly results: readonly mod_d_exports$3$1.RunMutantResult[];
411
+ readonly options: mod_d_exports$2$1.StrykerOptions;
412
+ readonly project: Project;
413
+ readonly testCoverage: TestCoverage;
414
+ readonly runId: string;
415
+ readonly resolvedMode: ResolvedMode;
416
+ readonly basePath: string;
417
+ readonly reporterStage: ReporterStage;
418
+ readonly formatRegistry: mod_d_exports$1.FormatRegistry;
419
+ }
420
+ interface MutationReportingService {
421
+ readonly reportCheckFailure: (mutant: mod_d_exports$3$1.MutantTestCoverage, result: Exclude<mod_d_exports.CheckResult, mod_d_exports.PassedCheckResult>) => Effect$1.Effect<mod_d_exports$3$1.RunMutantResult>;
422
+ readonly reportMutantRunResult: (mutant: mod_d_exports$3$1.MutantTestCoverage, result: mod_d_exports$6.MutantRunResult) => Effect$1.Effect<mod_d_exports$3$1.RunMutantResult>;
423
+ readonly reportAll: (input: MutationReportingInput) => Effect$1.Effect<MutationTestDone, PlatformError>;
424
+ readonly checkpoint: (input: MutationReportingInput) => Effect$1.Effect<void, PlatformError>;
425
+ }
426
+ declare const MutationReporting_base: Context.ServiceClass<MutationReporting, "@systemfsoftware/stryker-js/mutation-reporting.service/MutationReporting", MutationReportingService>;
427
+ declare class MutationReporting extends MutationReporting_base {
428
+ static readonly layer: Layer.Layer<MutationReporting, never, FileSystem.FileSystem | Path.Path | RunEvents | ProjectFiles>;
429
+ }
430
+ //#endregion
431
+ //#region src/run/StageServices.service.d.ts
432
+ type StageServices = ChildProcessSpawner.ChildProcessSpawner | FileSystem.FileSystem | IdGenerator | MutationReporting | Path.Path | ProjectFiles | Reporter | RunEnvironment | RunEvents | Scope.Scope | Stdio.Stdio | WorkerLauncher;
433
+ type EnginePorts = ChildProcessSpawner.ChildProcessSpawner | FileSystem.FileSystem | Path.Path | Stdio.Stdio | WorkerLauncher;
434
+ type RunStageServices = ProjectFiles | Reporter | RunEnvironment | RunEvents | IdGenerator | MutationReporting | Scope.Scope;
435
+ type WiredRunLayer = Layer.Layer<RunStageServices | EnginePorts, never, never>;
436
+ //#endregion
437
+ //#region src/run/RunEnvironment.service.d.ts
438
+ interface RunEnvironmentShape {
439
+ readonly runId: string;
440
+ readonly resolvedMode: ResolvedMode;
441
+ readonly runStartedAt: number;
442
+ readonly basePath: string;
443
+ readonly builtinReporters: Readonly<Record<string, mod_d_exports$5.ReporterFactory>>;
444
+ readonly allowConsoleColors: boolean;
445
+ }
446
+ declare const RunEnvironment_base: Context.ServiceClass<RunEnvironment, "@systemfsoftware/stryker-js/run/RunEnvironment.service/RunEnvironment", RunEnvironmentShape>;
447
+ declare class RunEnvironment extends RunEnvironment_base {
448
+ static readonly stage: {
449
+ (env: RunEnvironmentShape, events?: Queue.Queue<RunEvent, Cause.Done>): Layer.Layer<RunStageServices, never, EnginePorts>;
450
+ (events?: Queue.Queue<RunEvent, Cause.Done>): (env: RunEnvironmentShape) => Layer.Layer<RunStageServices, never, EnginePorts>;
451
+ };
452
+ static readonly forStream: {
453
+ (mode: ResolvedMode, stream: RunEventStream, host: {
454
+ readonly noColor?: string | undefined;
455
+ readonly builtinReporters: Readonly<Record<string, mod_d_exports$5.ReporterFactory>>;
456
+ }): Effect$1.Effect<RunEnvironmentShape, PlatformError, FileSystem.FileSystem>;
457
+ (stream: RunEventStream, host: {
458
+ readonly noColor?: string | undefined;
459
+ readonly builtinReporters: Readonly<Record<string, mod_d_exports$5.ReporterFactory>>;
460
+ }): (mode: ResolvedMode) => Effect$1.Effect<RunEnvironmentShape, PlatformError, FileSystem.FileSystem>;
461
+ };
462
+ }
463
+ //#endregion
464
+ export { ResolvedMode as $, REPORTER_EVENT_BATCH_BOUND as A, make as B, WorkerPluginSource as C, IdGenerator as D, TestCoverage as E, spawnReporterWorker as F, RunIdentityShape as G, ProjectFile as H, WorkerLauncher as I, RunEventStream as J, RunEventDrain as K, WorkerLauncherShape as L, ReporterWorkerClient as M, SpawnReporterWorkerParams as N, IdGeneratorShape as O, reporterWorkerFactory as P, OutputMode as Q, WorkerSpawnParams as R, WorkerPluginDescriptor as S, StrykerError as T, RunEvents as U, Project as V, RunIdentity as W, ResolvedModeInput as X, makeRunEventStream as Y, ModeSignal as Z, LoadedPlugins as _, StageServices as a, ChildProcessCrashedError as at, PluginKind as b, DryRunDone as c, WorkerBootTimeoutError as ct, PrepareExecutorArgs as d, ConfigError as et, AnyPluginDescriptor as f, EvaluatorPluginSource as g, EvaluatorPluginDescriptor as h, RunStageServices as i, ConfigFileUnsupportedError as it, ReporterStage as j, PooledTestRunnerError as k, InstrumentDone as l, WorkerExit as lt, AnyWorkerPluginSource as m, RunEnvironmentShape as n, ConfigFileNotFoundError as nt, WiredRunLayer as o, OutOfMemoryError as ot, AnyWorkerPluginDescriptor as p, RunEventDrainLive as q, EnginePorts as r, ConfigFileUnreadableError as rt, MutationTestDone as s, WorkerBootError as st, RunEnvironment as t, ConfigFileInvalidError as tt, PrepareDone as u, PluginDescriptor as v, SandboxHandle as w, PluginSource as x, PluginDescriptorOf as y, SpawnedSocketWorker as z };