@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,561 +0,0 @@
1
- import { B as StrykerOptions, O as PartialStrykerOptions, P as ReporterFactory, R as ReporterRpcs, T as MutationTestResult, W as TestResult, at as FileDescription, bt as RunMutantResult, d as ExitClass, gt as MutateDescription, it as CoverageData, lt as Mutant, ot as FileDescriptions, r as CompleteDryRunResult } from "./index-BInJWa0x.mjs";
2
- import { r as ResolvedMode } from "./output-mode-CfGHDpi5.mjs";
3
- import { b as Ignorer, o as LoadedPlugins } from "./Plugins-DF95m9KO.mjs";
4
- import * as Effect$1 from "effect/Effect";
5
- import * as FileSystem from "effect/FileSystem";
6
- import * as Path from "effect/Path";
7
- import * as Stdio from "effect/Stdio";
8
- import { Cell } from "@systemfsoftware/effect-cell-types";
9
- import * as S from "effect/Schema";
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 { Schema } from "effect";
14
- import * as Layer from "effect/Layer";
15
- import * as Queue from "effect/Queue";
16
- import "effect/Result";
17
- import * as Cause from "effect/Cause";
18
- import { YieldableError } from "effect/Cause";
19
- import * as Scope from "effect/Scope";
20
- import * as Duration from "effect/Duration";
21
- import * as MutableHashMap from "effect/MutableHashMap";
22
- import * as MutableHashSet from "effect/MutableHashSet";
23
- import * as ChildProcessSpawner from "effect/unstable/process/ChildProcessSpawner";
24
- import * as RpcClient from "effect/unstable/rpc/RpcClient";
25
- import * as Schedule from "effect/Schedule";
26
- import { PlatformError } from "effect/PlatformError";
27
- import { RpcClientError } from "effect/unstable/rpc/RpcClientError";
28
- import * as Socket from "effect/unstable/socket/Socket";
29
- //#region src/Worker.schema.d.ts
30
- declare const ChildProcessCrashedError_base: Schema.Class<ChildProcessCrashedError, Schema.TaggedStruct<"ChildProcessCrashedError", {
31
- readonly pid: Schema.Int;
32
- readonly exit: Schema.Union<readonly [Schema.Struct<{
33
- readonly _tag: Schema.Literals<readonly ["Code"]>;
34
- readonly code: Schema.Int;
35
- }>, Schema.Struct<{
36
- readonly _tag: Schema.Literals<readonly ["Signal"]>;
37
- readonly signal: Schema.String;
38
- }>]>;
39
- readonly cause: Schema.optional<Schema.String>;
40
- }>, import("effect/Cause").YieldableError>;
41
- /**
42
- * The child process hosting a worker ended when it was not supposed to.
43
- */
44
- declare class ChildProcessCrashedError extends ChildProcessCrashedError_base {
45
- readonly exitClass: 'InternalError';
46
- }
47
- declare const OutOfMemoryError_base: Schema.Class<OutOfMemoryError, Schema.TaggedStruct<"OutOfMemoryError", {
48
- readonly pid: Schema.Int;
49
- readonly exitCode: Schema.Int;
50
- }>, import("effect/Cause").YieldableError>;
51
- declare class OutOfMemoryError extends OutOfMemoryError_base {
52
- readonly exitClass: 'RuntimeError';
53
- }
54
- declare const WorkerBootTimeoutError_base: Schema.Class<WorkerBootTimeoutError, Schema.TaggedStruct<"WorkerBootTimeoutError", {
55
- readonly pid: Schema.Int;
56
- }>, import("effect/Cause").YieldableError>;
57
- declare class WorkerBootTimeoutError extends WorkerBootTimeoutError_base {
58
- readonly exitClass: 'InternalError';
59
- }
60
- //#endregion
61
- //#region src/WorkerLauncher.d.ts
62
- declare const connectRetry: Schedule.Schedule<import("effect/Duration").Duration, unknown, never, never>;
63
- type WorkerExit = ChildProcessCrashedError | OutOfMemoryError;
64
- interface SpawnedSocketWorker {
65
- readonly pid: number;
66
- readonly clientLayer: Layer.Layer<RpcClient.Protocol, Socket.SocketError>;
67
- readonly exited: Effect$1.Effect<never, WorkerExit>;
68
- }
69
- interface WorkerSpawnParams {
70
- readonly entrypoint: string;
71
- readonly workingDirectory: string;
72
- readonly execArgv: readonly string[];
73
- readonly optionsJson: string;
74
- readonly tempDirPrefix: string;
75
- readonly env?: Readonly<Record<string, string>> | undefined;
76
- }
77
- interface WorkerLauncherShape {
78
- readonly spawn: (params: WorkerSpawnParams) => Effect$1.Effect<SpawnedSocketWorker, ChildProcessCrashedError, Scope.Scope>;
79
- }
80
- declare const WorkerLauncher_base: Context.ServiceClass<WorkerLauncher, "@systemfsoftware/stryker-js/WorkerLauncher", WorkerLauncherShape>;
81
- declare class WorkerLauncher extends WorkerLauncher_base {}
82
- type WorkerBootError = WorkerExit | WorkerBootTimeoutError;
83
- interface WorkerClientParams<Rpcs extends Rpc.Any> extends WorkerSpawnParams {
84
- readonly rpcs: RpcGroup.RpcGroup<Rpcs>;
85
- }
86
- declare const makeWorkerClient: <Rpcs extends Rpc.Any>(params: WorkerClientParams<Rpcs>) => Effect$1.Effect<RpcClient.RpcClient<Rpcs, RpcClientError>, WorkerBootError, Scope.Scope | WorkerLauncher>;
87
- //#endregion
88
- //#region src/RunEvent.schema.d.ts
89
- declare const RunPhase: S.Literals<readonly ["prepare", "instrument", "dry-run", "mutation-test"]>;
90
- type RunPhase = typeof RunPhase.Type;
91
- declare const RunStarted_base: S.Class<RunStarted, S.TaggedStruct<"stream", {
92
- readonly schemaVersion: S.String;
93
- readonly runId: S.String;
94
- readonly mode: S.Literals<readonly ["human", "machine"]>;
95
- readonly signal: S.Literals<readonly ["flag", "env", "tty", "agent", "tool"]>;
96
- }>, {}>;
97
- declare class RunStarted extends RunStarted_base {}
98
- declare const PhaseEntered_base: S.Class<PhaseEntered, S.TaggedStruct<"phase", {
99
- readonly phase: S.Literals<readonly ["prepare", "instrument", "dry-run", "mutation-test"]>;
100
- readonly elapsedMs: S.Finite;
101
- }>, {}>;
102
- declare class PhaseEntered extends PhaseEntered_base {}
103
- declare const PlanKnown_base: S.Class<PlanKnown, S.TaggedStruct<"plan", {
104
- readonly total: S.Finite;
105
- }>, {}>;
106
- declare class PlanKnown extends PlanKnown_base {}
107
- declare const RunMutantTested_base: S.Class<RunMutantTested, S.TaggedStruct<"mutant", {
108
- readonly id: S.String;
109
- readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
110
- readonly file: S.String;
111
- readonly location: S.Struct<{
112
- readonly start: S.Struct<{
113
- readonly line: S.Finite;
114
- readonly column: S.Finite;
115
- }>;
116
- readonly end: S.Struct<{
117
- readonly line: S.Finite;
118
- readonly column: S.Finite;
119
- }>;
120
- }>;
121
- readonly mutator: S.String;
122
- readonly replacement: S.NullOr<S.String>;
123
- readonly completed: S.Finite;
124
- readonly total: S.Finite;
125
- }>, {}>;
126
- declare class RunMutantTested extends RunMutantTested_base {}
127
- declare const Heartbeat_base: S.Class<Heartbeat, S.TaggedStruct<"tick", {
128
- readonly elapsedMs: S.Finite;
129
- readonly completed: S.Finite;
130
- readonly total: S.NullOr<S.Finite>;
131
- }>, {}>;
132
- declare class Heartbeat extends Heartbeat_base {}
133
- declare const VerdictReached_base: S.Class<VerdictReached, S.TaggedStruct<"verdict", {
134
- readonly schemaVersion: S.String;
135
- readonly runId: S.String;
136
- readonly mode: S.Literals<readonly ["human", "machine"]>;
137
- readonly signal: S.Literals<readonly ["flag", "env", "tty", "agent", "tool"]>;
138
- readonly score: S.NullOr<S.Finite>;
139
- readonly thresholds: S.Struct<{
140
- readonly high: S.Finite;
141
- readonly low: S.Finite;
142
- readonly break: S.NullOr<S.Finite>;
143
- }>;
144
- readonly reportFile: S.NullOr<S.String>;
145
- readonly counts: S.Struct<{
146
- readonly killed: S.Finite;
147
- readonly timeout: S.Finite;
148
- readonly survived: S.Finite;
149
- readonly noCoverage: S.Finite;
150
- readonly runtimeErrors: S.Finite;
151
- readonly compileErrors: S.Finite;
152
- readonly ignored: S.Finite;
153
- readonly pending: S.Finite;
154
- }>;
155
- readonly mutants: S.$Array<S.Struct<{
156
- readonly id: S.String;
157
- readonly file: S.String;
158
- readonly location: S.Struct<{
159
- readonly start: S.Struct<{
160
- readonly line: S.Finite;
161
- readonly column: S.Finite;
162
- }>;
163
- readonly end: S.Struct<{
164
- readonly line: S.Finite;
165
- readonly column: S.Finite;
166
- }>;
167
- }>;
168
- readonly mutator: S.String;
169
- readonly replacement: S.NullOr<S.String>;
170
- readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
171
- }>>;
172
- }>, {}>;
173
- declare class VerdictReached extends VerdictReached_base {}
174
- declare const RunFailed_base: S.Class<RunFailed, S.TaggedStruct<"error", {
175
- readonly schemaVersion: S.String;
176
- readonly code: S.Finite;
177
- readonly error: S.String;
178
- readonly remediation: S.String;
179
- }>, {}>;
180
- declare class RunFailed extends RunFailed_base {}
181
- declare const HelpRendered_base: S.Class<HelpRendered, S.TaggedStruct<"help", {
182
- readonly schemaVersion: S.String;
183
- readonly code: S.Literals<readonly [0]>;
184
- readonly help: S.String;
185
- }>, {}>;
186
- declare class HelpRendered extends HelpRendered_base {}
187
- declare const RunEvent: S.Union<readonly [typeof RunStarted, typeof PhaseEntered, typeof PlanKnown, typeof RunMutantTested, typeof Heartbeat, typeof VerdictReached, typeof RunFailed, typeof HelpRendered]>;
188
- type RunEvent = typeof RunEvent.Type;
189
- type RunTerminalEvent = VerdictReached | RunFailed | HelpRendered;
190
- //#endregion
191
- //#region src/RunEvents.d.ts
192
- declare const RunEvents_base: Context.ServiceClass<RunEvents, "@systemfsoftware/stryker-js/RunEvents", Queue.Queue<Heartbeat | HelpRendered | PhaseEntered | PlanKnown | RunFailed | RunMutantTested | RunStarted | VerdictReached, Cause.Done<void>>>;
193
- declare class RunEvents extends RunEvents_base {}
194
- interface RunIdentityShape {
195
- readonly runId: string;
196
- readonly basePath: string;
197
- }
198
- declare const RunIdentity_base: Context.ServiceClass<RunIdentity, "@systemfsoftware/stryker-js/RunEvents/RunIdentity", RunIdentityShape>;
199
- declare class RunIdentity extends RunIdentity_base {}
200
- //#endregion
201
- //#region src/Mutants.d.ts
202
- interface TestCoverage {
203
- readonly testsByMutantId: MutableHashMap.MutableHashMap<string, MutableHashSet.MutableHashSet<TestResult>>;
204
- readonly testsById: MutableHashMap.MutableHashMap<string, TestResult>;
205
- readonly staticCoverage: CoverageData | undefined;
206
- readonly hitsByMutantId: MutableHashMap.MutableHashMap<string, number>;
207
- }
208
- //#endregion
209
- //#region src/Worker.d.ts
210
- interface IdGeneratorShape {
211
- readonly next: Effect$1.Effect<number>;
212
- }
213
- declare const IdGenerator_base: Context.ServiceClass<IdGenerator, "@systemfsoftware/stryker-js/Worker/IdGenerator", IdGeneratorShape>;
214
- declare class IdGenerator extends IdGenerator_base {}
215
- declare const classifyWorkerExit: (pid: number, exitCode: number) => ChildProcessCrashedError | OutOfMemoryError;
216
- //#endregion
217
- //#region src/Config.schema.d.ts
218
- declare const ConfigDocumentSchema: S.$Record<S.String, S.Unknown>;
219
- declare const ImportedModuleSchema: S.Struct<{
220
- readonly default: S.optional<S.Unknown>;
221
- }>;
222
- declare const ConfigFileNotFoundError_base: S.Class<ConfigFileNotFoundError, S.TaggedStruct<"ConfigFileNotFoundError", {
223
- readonly file: S.String;
224
- }>, import("effect/Cause").YieldableError>;
225
- declare class ConfigFileNotFoundError extends ConfigFileNotFoundError_base {
226
- readonly exitClass: 'ConfigError';
227
- }
228
- declare const ConfigFileUnsupportedError_base: S.Class<ConfigFileUnsupportedError, S.TaggedStruct<"ConfigFileUnsupportedError", {
229
- readonly file: S.String;
230
- readonly hint: S.String;
231
- }>, import("effect/Cause").YieldableError>;
232
- declare class ConfigFileUnsupportedError extends ConfigFileUnsupportedError_base {
233
- readonly exitClass: 'ConfigError';
234
- get message(): string;
235
- }
236
- declare const ConfigFileUnreadableError_base: S.Class<ConfigFileUnreadableError, S.TaggedStruct<"ConfigFileUnreadableError", {
237
- readonly file: S.String;
238
- readonly cause: S.Unknown;
239
- }>, import("effect/Cause").YieldableError>;
240
- declare class ConfigFileUnreadableError extends ConfigFileUnreadableError_base {
241
- readonly exitClass: 'ConfigError';
242
- }
243
- declare const ConfigFileInvalidError_base: S.Class<ConfigFileInvalidError, S.TaggedStruct<"ConfigFileInvalidError", {
244
- readonly file: S.String;
245
- readonly cause: S.Unknown;
246
- }>, import("effect/Cause").YieldableError>;
247
- declare class ConfigFileInvalidError extends ConfigFileInvalidError_base {
248
- readonly exitClass: 'ConfigError';
249
- }
250
- declare const ConfigError_base: S.Class<ConfigError, S.TaggedStruct<"ConfigError", {
251
- readonly message: S.String;
252
- }>, import("effect/Cause").YieldableError>;
253
- declare class ConfigError extends ConfigError_base {
254
- readonly exitClass: 'ConfigError';
255
- }
256
- declare const ReadConfigCommand_base: S.Class<ReadConfigCommand, S.TaggedStruct<"ReadConfigCommand", {
257
- readonly cliOptions: S.$Record<S.String, S.Unknown>;
258
- readonly basePath: S.String;
259
- }>, {}>;
260
- declare class ReadConfigCommand extends ReadConfigCommand_base {}
261
- declare const MergeCommand_base: S.Class<MergeCommand, S.TaggedStruct<"MergeCommand", {
262
- readonly base: S.$Record<S.String, S.Unknown>;
263
- readonly overrides: S.$Record<S.String, S.Unknown>;
264
- }>, {}>;
265
- declare class MergeCommand extends MergeCommand_base {}
266
- declare const MergeResult_base: S.Class<MergeResult, S.TaggedStruct<"MergeResult", {
267
- readonly merged: S.$Record<S.String, S.Unknown>;
268
- }>, {}>;
269
- declare class MergeResult extends MergeResult_base {}
270
- declare const ExtendsStepDocumentSchema: S.Struct<{
271
- readonly path: S.String;
272
- readonly options: S.$Record<S.String, S.Unknown>;
273
- }>;
274
- type ExtendsStepDocument = typeof ExtendsStepDocumentSchema.Type;
275
- declare const ExtendsStepStateSchema: S.Struct<{
276
- readonly visited: S.$Array<S.String>;
277
- readonly documents: S.$Array<S.Struct<{
278
- readonly path: S.String;
279
- readonly options: S.$Record<S.String, S.Unknown>;
280
- }>>;
281
- }>;
282
- type ExtendsStepState = typeof ExtendsStepStateSchema.Type;
283
- type ExtendsRefusalReason = 'cycle' | 'non-string-extends';
284
- declare const ExtendsStepDone_base: S.Class<ExtendsStepDone, S.TaggedStruct<"done", {
285
- readonly options: S.$Record<S.String, S.Unknown>;
286
- }>, {}>;
287
- declare class ExtendsStepDone extends ExtendsStepDone_base {}
288
- declare const ExtendsStepRead_base: S.Class<ExtendsStepRead, S.TaggedStruct<"read", {
289
- readonly path: S.String;
290
- readonly state: S.Struct<{
291
- readonly visited: S.$Array<S.String>;
292
- readonly documents: S.$Array<S.Struct<{
293
- readonly path: S.String;
294
- readonly options: S.$Record<S.String, S.Unknown>;
295
- }>>;
296
- }>;
297
- }>, {}>;
298
- declare class ExtendsStepRead extends ExtendsStepRead_base {}
299
- declare const ExtendsStepResolve_base: S.Class<ExtendsStepResolve, S.TaggedStruct<"resolve", {
300
- readonly specifier: S.String;
301
- readonly state: S.Struct<{
302
- readonly visited: S.$Array<S.String>;
303
- readonly documents: S.$Array<S.Struct<{
304
- readonly path: S.String;
305
- readonly options: S.$Record<S.String, S.Unknown>;
306
- }>>;
307
- }>;
308
- }>, {}>;
309
- declare class ExtendsStepResolve extends ExtendsStepResolve_base {}
310
- declare const ExtendsStepRefused_base: S.Class<ExtendsStepRefused, S.TaggedStruct<"refused", {
311
- readonly reason: S.Literals<readonly ["cycle", "non-string-extends"]>;
312
- readonly file: S.String;
313
- }>, {}>;
314
- declare class ExtendsStepRefused extends ExtendsStepRefused_base {}
315
- type ExtendsStepDecision = ExtendsStepDone | ExtendsStepRead | ExtendsStepResolve | ExtendsStepRefused;
316
- declare const survivorsPriorReport: S.optionalKey<S.String>;
317
- declare const extendsPropertySchema: S.optionalKey<S.String>;
318
- declare const forkOptionsSchema: S.StructWithRest<S.Struct<{
319
- readonly allowConsoleColors: S.withDecodingDefaultKey<S.Boolean, never>;
320
- readonly buildCommand: S.optional<S.String>;
321
- readonly checkers: S.withDecodingDefaultKey<S.$Array<S.Struct<{
322
- readonly plugin: S.String;
323
- readonly nodeArgs: S.optional<S.$Array<S.String>>;
324
- readonly options: S.optional<S.$Record<S.String, S.Unknown>>;
325
- }>>, never>;
326
- readonly checkerNodeArgs: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
327
- readonly concurrency: S.optional<S.Union<readonly [S.Finite, S.String]>>;
328
- readonly commandRunner: S.withDecodingDefaultKey<S.StructWithRest<S.Struct<{
329
- readonly command: S.withDecodingDefaultKey<S.String, never>;
330
- }>, readonly [S.$Record<S.String, S.Unknown>]>, never>;
331
- readonly coverageAnalysis: S.withDecodingDefaultKey<S.Literals<readonly ["off", "all", "perTest"]>, never>;
332
- readonly clearTextReporter: S.withDecodingDefaultKey<S.StructWithRest<S.Struct<{
333
- readonly allowColor: S.withDecodingDefaultKey<S.Boolean, never>;
334
- readonly allowEmojis: S.withDecodingDefaultKey<S.Boolean, never>;
335
- readonly logTests: S.withDecodingDefaultKey<S.Boolean, never>;
336
- readonly maxTestsToLog: S.withDecodingDefaultKey<S.Finite, never>;
337
- readonly reportTests: S.withDecodingDefaultKey<S.Boolean, never>;
338
- readonly reportMutants: S.withDecodingDefaultKey<S.Boolean, never>;
339
- readonly reportScoreTable: S.withDecodingDefaultKey<S.Boolean, never>;
340
- readonly skipFull: S.withDecodingDefaultKey<S.Boolean, never>;
341
- }>, readonly [S.$Record<S.String, S.Unknown>]>, never>;
342
- readonly dryRunOnly: S.withDecodingDefaultKey<S.Boolean, never>;
343
- readonly ignorePatterns: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
344
- readonly ignoreStatic: S.withDecodingDefaultKey<S.Boolean, never>;
345
- readonly incremental: S.withDecodingDefaultKey<S.Boolean, never>;
346
- readonly incrementalFile: S.withDecodingDefaultKey<S.String, never>;
347
- readonly progressStreamFile: S.withDecodingDefaultKey<S.String, never>;
348
- readonly force: S.withDecodingDefaultKey<S.Boolean, never>;
349
- readonly fileLogLevel: S.withDecodingDefaultKey<S.Literals<readonly ["off", "fatal", "error", "warn", "info", "debug", "trace"]>, never>;
350
- readonly inPlace: S.withDecodingDefaultKey<S.Boolean, never>;
351
- readonly logLevel: S.withDecodingDefaultKey<S.Literals<readonly ["off", "fatal", "error", "warn", "info", "debug", "trace"]>, never>;
352
- readonly maxConcurrentTestRunners: S.withDecodingDefaultKey<S.Finite, never>;
353
- readonly maxTestRunnerReuse: S.withDecodingDefaultKey<S.Finite, never>;
354
- readonly mutate: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
355
- readonly mutator: S.withDecodingDefaultKey<S.Struct<{
356
- readonly excludedMutations: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
357
- }>, never>;
358
- readonly packageManager: S.optional<S.Literals<readonly ["npm", "yarn", "pnpm"]>>;
359
- readonly plugins: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
360
- readonly appendPlugins: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
361
- readonly reporters: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
362
- readonly htmlReporter: S.withDecodingDefaultKey<S.Struct<{
363
- readonly fileName: S.withDecodingDefaultKey<S.String, never>;
364
- }>, never>;
365
- readonly jsonReporter: S.withDecodingDefaultKey<S.Struct<{
366
- readonly fileName: S.withDecodingDefaultKey<S.String, never>;
367
- }>, never>;
368
- readonly disableTypeChecks: S.withDecodingDefaultKey<S.Union<readonly [S.Boolean, S.String]>, never>;
369
- readonly symlinkNodeModules: S.withDecodingDefaultKey<S.Boolean, never>;
370
- readonly tempDirName: S.withDecodingDefaultKey<S.String, never>;
371
- readonly cleanTempDir: S.withDecodingDefaultKey<S.Literals<readonly ["always", false, true]>, never>;
372
- readonly testRunner: S.withDecodingDefaultKey<S.Union<readonly [S.String, S.Struct<{
373
- readonly plugin: S.String;
374
- readonly nodeArgs: S.optional<S.$Array<S.String>>;
375
- readonly options: S.optional<S.$Record<S.String, S.Unknown>>;
376
- }>]>, never>;
377
- readonly testRunnerNodeArgs: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
378
- readonly thresholds: S.withDecodingDefaultKey<S.Struct<{
379
- readonly high: S.withDecodingDefaultKey<S.Finite, never>;
380
- readonly low: S.withDecodingDefaultKey<S.Finite, never>;
381
- readonly break: S.withDecodingDefaultKey<S.NullOr<S.Finite>, never>;
382
- }>, never>;
383
- readonly timeoutFactor: S.withDecodingDefaultKey<S.Finite, never>;
384
- readonly timeoutMS: S.withDecodingDefaultKey<S.Finite, never>;
385
- readonly dryRunTimeoutMinutes: S.withDecodingDefaultKey<S.Finite, never>;
386
- readonly tsconfigFile: S.withDecodingDefaultKey<S.String, never>;
387
- readonly warnings: S.withDecodingDefaultKey<S.Union<readonly [S.Boolean, S.StructWithRest<S.Struct<{
388
- readonly unknownOptions: S.withDecodingDefaultKey<S.Boolean, never>;
389
- readonly preprocessorErrors: S.withDecodingDefaultKey<S.Boolean, never>;
390
- readonly unserializableOptions: S.withDecodingDefaultKey<S.Boolean, never>;
391
- readonly slow: S.withDecodingDefaultKey<S.Boolean, never>;
392
- }>, readonly [S.$Record<S.String, S.Unknown>]>]>, never>;
393
- readonly disableBail: S.withDecodingDefaultKey<S.Boolean, never>;
394
- readonly allowEmpty: S.withDecodingDefaultKey<S.Boolean, never>;
395
- readonly ignorers: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
396
- readonly testFiles: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
397
- readonly survivorsPriorReport: S.optionalKey<S.String>;
398
- readonly extends: S.optionalKey<S.String>;
399
- }>, readonly [S.$Record<S.String, S.Unknown>]>;
400
- //#endregion
401
- //#region src/ReporterStream.d.ts
402
- declare const ReporterStageTypeId: unique symbol;
403
- /**
404
- * An attached reporter stage, opaque at the engine boundary: the published
405
- * phase types carry this handle so the attachment machinery (queues, fibers,
406
- * the state latch) never reaches an adopter's compiler. Constructed only by
407
- * `attachReporterFactories`.
408
- */
409
- interface ReporterStage {
410
- readonly [ReporterStageTypeId]: typeof ReporterStageTypeId;
411
- }
412
- declare const REPORTER_EVENT_BATCH_BOUND = 128;
413
- type ReporterWorkerClient = RpcClient.RpcClient<RpcGroup.Rpcs<typeof ReporterRpcs>, RpcClientError>;
414
- declare const reporterWorkerFactory: (client: ReporterWorkerClient) => ReporterFactory;
415
- interface SpawnReporterWorkerParams {
416
- readonly entrypoint: string;
417
- readonly projectBasePath: string;
418
- readonly execArgv: readonly string[];
419
- readonly options: StrykerOptions;
420
- readonly tempDirPrefix: string;
421
- }
422
- declare const spawnReporterWorker: (params: SpawnReporterWorkerParams) => Effect$1.Effect<ReporterWorkerClient, WorkerBootError, Scope.Scope | WorkerLauncher>;
423
- //#endregion
424
- //#region src/IncrementalReport.schema.d.ts
425
- declare const IncrementalReportSchema: S.StructWithRest<S.Struct<{
426
- readonly schemaVersion: S.String;
427
- readonly thresholds: S.Struct<{
428
- readonly high: S.Finite;
429
- readonly low: S.Finite;
430
- }>;
431
- readonly files: S.$Record<S.String, S.Struct<{
432
- readonly language: S.String;
433
- readonly source: S.String;
434
- readonly mutants: S.$Array<S.Struct<{
435
- readonly id: S.String;
436
- readonly mutatorName: S.String;
437
- readonly replacement: S.String;
438
- readonly location: S.Struct<{
439
- readonly start: S.Struct<{
440
- readonly line: S.Finite;
441
- readonly column: S.Finite;
442
- }>;
443
- readonly end: S.Struct<{
444
- readonly line: S.Finite;
445
- readonly column: S.Finite;
446
- }>;
447
- }>;
448
- readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "Timeout", "CompileError", "RuntimeError", "Ignored", "Pending"]>;
449
- readonly killedBy: S.optional<S.$Array<S.String>>;
450
- readonly coveredBy: S.optional<S.$Array<S.String>>;
451
- readonly static: S.optional<S.Boolean>;
452
- readonly statusReason: S.optional<S.String>;
453
- readonly testsCompleted: S.optional<S.Finite>;
454
- readonly description: S.optional<S.String>;
455
- readonly duration: S.optional<S.Finite>;
456
- }>>;
457
- }>>;
458
- readonly testFiles: S.optional<S.$Record<S.String, S.Struct<{
459
- readonly source: S.optional<S.String>;
460
- readonly tests: S.$Array<S.Struct<{
461
- readonly id: S.String;
462
- readonly name: S.String;
463
- readonly location: S.optional<S.Struct<{
464
- readonly start: S.Struct<{
465
- readonly line: S.Finite;
466
- readonly column: S.Finite;
467
- }>;
468
- readonly end: S.optional<S.Struct<{
469
- readonly line: S.Finite;
470
- readonly column: S.Finite;
471
- }>>;
472
- }>>;
473
- }>>;
474
- }>>>;
475
- }>, readonly [S.$Record<S.String, S.Unknown>]>;
476
- //#endregion
477
- //#region src/Project.d.ts
478
- interface ProjectFile extends FileDescription {
479
- readonly name: string;
480
- readonly mutate: MutateDescription;
481
- readonly content: string | undefined;
482
- readonly originalContent: string | undefined;
483
- }
484
- interface Project {
485
- readonly fileDescriptions: FileDescriptions;
486
- readonly incrementalReport: MutationTestResult | undefined;
487
- readonly testFiles: readonly string[];
488
- readonly files: MutableHashMap.MutableHashMap<string, ProjectFile>;
489
- readonly filesToMutate: MutableHashMap.MutableHashMap<string, ProjectFile>;
490
- }
491
- //#endregion
492
- //#region src/stryker-error.schema.d.ts
493
- declare const StrykerError_base: Schema.Class<StrykerError, Schema.TaggedStruct<"StrykerError", {
494
- readonly message: Schema.String;
495
- readonly cause: Schema.optional<Schema.Unknown>;
496
- }>, import("effect/Cause").YieldableError>;
497
- declare class StrykerError extends StrykerError_base {}
498
- //#endregion
499
- //#region src/Sandbox.d.ts
500
- interface SandboxHandle {
501
- readonly workingDirectory: string;
502
- readonly sandboxFileFor: (fileName: string) => string;
503
- readonly originalFileFor: (sandboxFileName: string) => string;
504
- }
505
- //#endregion
506
- //#region src/run/RunEnvironment.d.ts
507
- interface RunEnvironmentShape {
508
- readonly runId: string;
509
- readonly resolvedMode: ResolvedMode;
510
- readonly runStartedAt: number;
511
- readonly basePath: string;
512
- readonly builtinReporters: Readonly<Record<string, ReporterFactory>>;
513
- readonly allowConsoleColors: boolean;
514
- }
515
- declare const RunEnvironment_base: Context.ServiceClass<RunEnvironment, "@systemfsoftware/stryker-js/run/RunEnvironment", RunEnvironmentShape>;
516
- declare class RunEnvironment extends RunEnvironment_base {}
517
- //#endregion
518
- //#region src/run/prepare.cell.d.ts
519
- interface PrepareDone {
520
- readonly project: Project;
521
- readonly loadedPlugins: LoadedPlugins;
522
- readonly ignorers: readonly Ignorer[];
523
- readonly options: StrykerOptions;
524
- readonly temporaryDirectoryPath: string;
525
- readonly reporterStage: ReporterStage;
526
- }
527
- interface PrepareExecutorArgs {
528
- cliOptions: PartialStrykerOptions;
529
- targetMutatePatterns: string[] | undefined;
530
- }
531
- //#endregion
532
- //#region src/run/instrument.cell.d.ts
533
- interface InstrumentDone extends PrepareDone {
534
- readonly mutants: readonly Mutant[];
535
- readonly sandbox: SandboxHandle;
536
- readonly concurrency: {
537
- readonly testRunners: number;
538
- readonly checkers: number;
539
- };
540
- }
541
- //#endregion
542
- //#region src/run/dry-run.cell.d.ts
543
- interface DryRunDone extends InstrumentDone {
544
- readonly dryRunResult: CompleteDryRunResult;
545
- readonly testCoverage: TestCoverage;
546
- readonly timeOverhead: Duration.Duration;
547
- }
548
- //#endregion
549
- //#region src/run/StageServices.d.ts
550
- type StageServices = ChildProcessSpawner.ChildProcessSpawner | FileSystem.FileSystem | IdGenerator | Path.Path | RunEnvironment | RunEvents | Scope.Scope | Stdio.Stdio | WorkerLauncher;
551
- type EnginePorts = ChildProcessSpawner.ChildProcessSpawner | FileSystem.FileSystem | Path.Path | Stdio.Stdio | WorkerLauncher;
552
- type RunStageServices = RunEnvironment | RunEvents | IdGenerator | Scope.Scope;
553
- type WiredRunLayer = Layer.Layer<RunStageServices | EnginePorts, never, never>;
554
- //#endregion
555
- //#region src/run/mutation-test.cell.d.ts
556
- interface MutationTestDone {
557
- readonly results: readonly RunMutantResult[];
558
- readonly verdict: ExitClass | null;
559
- }
560
- //#endregion
561
- export { Heartbeat as $, ExtendsStepDecision as A, MergeCommand as B, ConfigDocumentSchema as C, ConfigFileUnreadableError as D, ConfigFileNotFoundError as E, ExtendsStepRefused as F, survivorsPriorReport as G, ReadConfigCommand as H, ExtendsStepResolve as I, classifyWorkerExit as J, IdGenerator as K, ExtendsStepState as L, ExtendsStepDocumentSchema as M, ExtendsStepDone as N, ConfigFileUnsupportedError as O, ExtendsStepRead as P, RunIdentityShape as Q, ExtendsStepStateSchema as R, spawnReporterWorker as S, ConfigFileInvalidError as T, extendsPropertySchema as U, MergeResult as V, forkOptionsSchema as W, RunEvents as X, TestCoverage as Y, RunIdentity as Z, REPORTER_EVENT_BATCH_BOUND as _, connectRetry as _t, WiredRunLayer as a, RunMutantTested as at, SpawnReporterWorkerParams as b, OutOfMemoryError as bt, PrepareDone as c, RunTerminalEvent as ct, RunEnvironmentShape as d, WorkerBootError as dt, HelpRendered as et, SandboxHandle as f, WorkerClientParams as ft, IncrementalReportSchema as g, WorkerSpawnParams as gt, ProjectFile as h, WorkerLauncherShape as ht, StageServices as i, RunFailed as it, ExtendsStepDocument as j, ExtendsRefusalReason as k, PrepareExecutorArgs as l, VerdictReached as lt, Project as m, WorkerLauncher as mt, EnginePorts as n, PlanKnown as nt, DryRunDone as o, RunPhase as ot, StrykerError as p, WorkerExit as pt, IdGeneratorShape as q, RunStageServices as r, RunEvent as rt, InstrumentDone as s, RunStarted as st, MutationTestDone as t, PhaseEntered as tt, RunEnvironment as u, SpawnedSocketWorker as ut, ReporterStage as v, makeWorkerClient as vt, ConfigError as w, reporterWorkerFactory as x, WorkerBootTimeoutError as xt, ReporterWorkerClient as y, ChildProcessCrashedError as yt, ImportedModuleSchema as z };
@@ -1,17 +0,0 @@
1
- //#region src/output-mode.d.ts
2
- /**
3
- * Mode type vocabulary shared with the CLI package. Runtime resolution
4
- * (`resolveMode`) and gate functions (`isProgressEnabled`, `isColorEnabled`)
5
- * live in the CLI; the `ResolvedMode` fields (`mode`, `signal`,
6
- * `stdoutIsTTY`) ride along in `VerdictEnvelope` (`verdict-envelope.ts`),
7
- * so the types stay where the data does.
8
- */
9
- type OutputMode = 'human' | 'machine';
10
- type ModeSignal = 'flag' | 'env' | 'tty' | 'agent' | 'tool';
11
- interface ResolvedMode {
12
- readonly mode: OutputMode;
13
- readonly signal: ModeSignal;
14
- readonly stdoutIsTTY: boolean;
15
- }
16
- //#endregion
17
- export { OutputMode as n, ResolvedMode as r, ModeSignal as t };