@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,21 +1,84 @@
1
1
  import * as Effect$1 from "effect/Effect";
2
2
  import * as S from "effect/Schema";
3
3
  import * as Option from "effect/Option";
4
+ import { Schema } from "effect";
4
5
  import * as Context from "effect/Context";
5
6
  import * as Rpc from "effect/unstable/rpc/Rpc";
6
7
  import * as RpcGroup from "effect/unstable/rpc/RpcGroup";
7
8
  import * as RpcMiddleware from "effect/unstable/rpc/RpcMiddleware";
8
- import { Schema } from "effect";
9
9
  import { YieldableError } from "effect/Cause";
10
10
  import * as HashMap from "effect/HashMap";
11
11
  import { StandardSchemaV1 } from "effect/StandardSchema";
12
- //#region ../stryker-js-instrumenter/dist/Mutant-BYxuyyRL.d.mts
13
- //#region src/Location.schema.d.ts
14
- declare const PositionSchema: S.Struct<{
15
- readonly line: S.Finite;
16
- readonly column: S.Finite;
12
+ declare namespace index_d_exports$1 {
13
+ export { Coverage, CoverageData, CoveragePerTestId, ERROR_CODES, EarlyResultPlan, ErrnoException, File_2 as File, FileDescription, FileDescriptions, INSTRUMENTER_CONSTANTS, InstrumentError, InstrumentResult, InstrumenterContext, InstrumenterOptions, InstrumenterOptionsSchema, Location, LocationSchema, Mutant, MutantActivation, MutantActivationSchema, MutantCoverage, MutantEarlyResultPlan, MutantRunOptions, MutantRunOptionsSchema, MutantRunPlan, MutantStatus, MutantStatusSchema, MutantTestCoverage, MutantTestPlan, MutateDescription, MutationRange, OpenEndLocation, OpenEndLocationSchema, ParserOptions, Position, PositionSchema, RunMutantResult, RunOptions, RunOptionsFields, RunPlan, TestPlan, causeText, disableTypeChecks, errorToString, instrument, isErrnoException, isMutant, normalizeFileName };
14
+ }
15
+ declare const causeText: (cause: unknown, depth: number) => string | undefined;
16
+ declare interface Coverage {
17
+ readonly static: CoverageData;
18
+ readonly perTest: CoveragePerTestId;
19
+ }
20
+ declare type CoverageData = Record<string, number>;
21
+ declare type CoveragePerTestId = Record<string, CoverageData>;
22
+ declare const disableTypeChecks: (file: File_2) => Effect$1.Effect<File_2, InstrumentError>;
23
+ declare interface EarlyResultPlan {
24
+ readonly plan: 'EarlyResult';
25
+ readonly mutant: Mutant;
26
+ }
27
+ declare interface ErrnoException extends Error {
28
+ code?: string;
29
+ errno?: number;
30
+ path?: string;
31
+ syscall?: string;
32
+ }
33
+ declare const ERROR_CODES: Readonly<{
34
+ NoSuchFileOrDirectory: 'ENOENT';
35
+ }>;
36
+ declare function errorToString(error: unknown): string;
37
+ declare interface File_2 extends FileDescription {
38
+ name: string;
39
+ content: string;
40
+ }
41
+ declare interface FileDescription {
42
+ readonly mutate: MutateDescription;
43
+ }
44
+ declare type FileDescriptions = Record<string, FileDescription>;
45
+ declare const instrument: (files: readonly File_2[], options: InstrumenterOptions, basePath?: string) => Effect$1.Effect<InstrumentResult, InstrumentError>;
46
+ declare const INSTRUMENTER_CONSTANTS: Readonly<{
47
+ NAMESPACE: '__stryker__';
48
+ MUTATION_COVERAGE_OBJECT: 'mutantCoverage';
49
+ ACTIVE_MUTANT: 'activeMutant';
50
+ CURRENT_TEST_ID: 'currentTestId';
51
+ HIT_COUNT: 'hitCount';
52
+ HIT_LIMIT: 'hitLimit';
53
+ ACTIVE_MUTANT_ENV_VARIABLE: '__STRYKER_ACTIVE_MUTANT__';
54
+ }>;
55
+ declare interface InstrumenterContext {
56
+ activeMutant?: string;
57
+ currentTestId?: string;
58
+ mutantCoverage?: MutantCoverage;
59
+ hitCount?: number;
60
+ hitLimit?: number;
61
+ }
62
+ declare type InstrumenterOptions = typeof InstrumenterOptionsSchema.Type;
63
+ declare const InstrumenterOptionsSchema: S.Struct<{
64
+ readonly excludedMutations: S.$Array<S.String>;
65
+ readonly ignorers: S.$Array<S.Unknown>;
66
+ readonly noHeader: S.optional<S.Boolean>;
17
67
  }>;
18
- type Position = typeof PositionSchema.Type;
68
+ declare class InstrumentError extends InstrumentError_base {
69
+ get message(): string;
70
+ }
71
+ declare const InstrumentError_base: S.Class<InstrumentError, S.TaggedStruct<"InstrumentError", {
72
+ readonly message: S.String;
73
+ readonly cause: S.Defect;
74
+ }>, YieldableError>;
75
+ declare interface InstrumentResult {
76
+ files: readonly File_2[];
77
+ mutants: readonly Mutant[];
78
+ }
79
+ declare function isErrnoException(error: unknown): error is ErrnoException;
80
+ declare const isMutant: (value: unknown) => value is Mutant;
81
+ declare type Location = typeof LocationSchema.Type;
19
82
  declare const LocationSchema: S.Struct<{
20
83
  readonly start: S.Struct<{
21
84
  readonly line: S.Finite;
@@ -26,22 +89,7 @@ declare const LocationSchema: S.Struct<{
26
89
  readonly column: S.Finite;
27
90
  }>;
28
91
  }>;
29
- type Location = typeof LocationSchema.Type;
30
- declare const OpenEndLocationSchema: S.Struct<{
31
- readonly start: S.Struct<{
32
- readonly line: S.Finite;
33
- readonly column: S.Finite;
34
- }>;
35
- readonly end: S.optional<S.Struct<{
36
- readonly line: S.Finite;
37
- readonly column: S.Finite;
38
- }>>;
39
- }>;
40
- type OpenEndLocation = typeof OpenEndLocationSchema.Type;
41
- //#endregion
42
- //#region src/Mutant.schema.d.ts
43
- declare const MutantStatusSchema: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
44
- type MutantStatus = typeof MutantStatusSchema.Type;
92
+ declare class Mutant extends Mutant_base {}
45
93
  declare const Mutant_base: S.Class<Mutant, S.TaggedStruct<"Mutant", {
46
94
  readonly id: S.NonEmptyString;
47
95
  readonly fileName: S.NonEmptyString;
@@ -64,40 +112,14 @@ declare const Mutant_base: S.Class<Mutant, S.TaggedStruct<"Mutant", {
64
112
  readonly testsCompleted: S.optional<S.Finite>;
65
113
  readonly description: S.optional<S.String>;
66
114
  }>, {}>;
67
- declare class Mutant extends Mutant_base {}
68
- declare const RunOptionsFields: {
69
- timeout: S.Finite;
70
- disableBail: S.Boolean;
71
- };
115
+ declare type MutantActivation = typeof MutantActivationSchema.Type;
72
116
  declare const MutantActivationSchema: S.Literals<readonly ["runtime", "static"]>;
73
- type MutantActivation = typeof MutantActivationSchema.Type;
74
- declare const MutantRunOptionsSchema: S.Struct<{
75
- readonly timeout: S.Finite;
76
- readonly disableBail: S.Boolean;
77
- readonly activeMutant: typeof Mutant;
78
- readonly sandboxFileName: S.String;
79
- readonly mutantActivation: S.Literals<readonly ["runtime", "static"]>;
80
- readonly reloadEnvironment: S.Boolean;
81
- readonly testFilter: S.optionalKey<S.$Array<S.String>>;
82
- readonly hitLimit: S.optionalKey<S.Finite>;
83
- }>;
84
- //#endregion
85
- //#region src/Mutant.d.ts
86
- interface MutantCoverage {
117
+ declare interface MutantCoverage {
87
118
  readonly perTest: Record<string, Record<string, number>>;
88
119
  readonly static: Record<string, number>;
89
120
  }
90
- type CoverageData = Record<string, number>;
91
- type CoveragePerTestId = Record<string, CoverageData>;
92
- interface Coverage {
93
- readonly static: CoverageData;
94
- readonly perTest: CoveragePerTestId;
95
- }
96
- interface RunOptions {
97
- readonly timeout: number;
98
- readonly disableBail: boolean;
99
- }
100
- interface MutantRunOptions extends RunOptions {
121
+ declare type MutantEarlyResultPlan = EarlyResultPlan;
122
+ declare interface MutantRunOptions extends RunOptions {
101
123
  readonly testFilter?: readonly string[];
102
124
  readonly hitLimit?: number;
103
125
  readonly activeMutant: Mutant;
@@ -105,23 +127,48 @@ interface MutantRunOptions extends RunOptions {
105
127
  readonly mutantActivation: MutantActivation;
106
128
  readonly reloadEnvironment: boolean;
107
129
  }
108
- interface EarlyResultPlan {
109
- readonly plan: 'EarlyResult';
110
- readonly mutant: Mutant;
111
- }
112
- interface RunPlan {
113
- readonly plan: 'Run';
114
- readonly mutant: Mutant;
115
- readonly runOptions: MutantRunOptions;
116
- readonly netTime: number;
117
- }
118
- type TestPlan = EarlyResultPlan | RunPlan;
119
- declare const isMutant: (value: unknown) => value is Mutant;
120
- type MutantTestCoverage = Mutant & {
130
+ declare const MutantRunOptionsSchema: S.Struct<{
131
+ readonly timeout: S.Finite;
132
+ readonly disableBail: S.Boolean;
133
+ readonly activeMutant: typeof Mutant;
134
+ readonly sandboxFileName: S.String;
135
+ readonly mutantActivation: S.Literals<readonly ["runtime", "static"]>;
136
+ readonly reloadEnvironment: S.Boolean;
137
+ readonly testFilter: S.optionalKey<S.$Array<S.String>>;
138
+ readonly hitLimit: S.optionalKey<S.Finite>;
139
+ }>;
140
+ declare type MutantRunPlan = RunPlan;
141
+ declare type MutantStatus = typeof MutantStatusSchema.Type;
142
+ declare const MutantStatusSchema: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
143
+ declare type MutantTestCoverage = Mutant & {
121
144
  readonly coveredBy: ReadonlyArray<string> | undefined;
122
145
  readonly static: boolean | undefined;
123
146
  };
124
- type RunMutantResult = Mutant & {
147
+ declare type MutantTestPlan = TestPlan;
148
+ declare type MutateDescription = ReadonlyArray<MutationRange> | boolean;
149
+ declare interface MutationRange {
150
+ readonly start: Position;
151
+ readonly end: Position;
152
+ }
153
+ declare function normalizeFileName(fileName: string): string;
154
+ declare type OpenEndLocation = typeof OpenEndLocationSchema.Type;
155
+ declare const OpenEndLocationSchema: S.Struct<{
156
+ readonly start: S.Struct<{
157
+ readonly line: S.Finite;
158
+ readonly column: S.Finite;
159
+ }>;
160
+ readonly end: S.optional<S.Struct<{
161
+ readonly line: S.Finite;
162
+ readonly column: S.Finite;
163
+ }>>;
164
+ }>;
165
+ declare interface ParserOptions {}
166
+ declare type Position = typeof PositionSchema.Type;
167
+ declare const PositionSchema: S.Struct<{
168
+ readonly line: S.Finite;
169
+ readonly column: S.Finite;
170
+ }>;
171
+ declare type RunMutantResult = Mutant & {
125
172
  readonly status: MutantStatus;
126
173
  readonly statusReason?: string | undefined;
127
174
  readonly testsCompleted?: number | undefined;
@@ -129,52 +176,23 @@ type RunMutantResult = Mutant & {
129
176
  readonly coveredBy?: readonly string[] | undefined;
130
177
  readonly static?: boolean | undefined;
131
178
  };
132
- declare const INSTRUMENTER_CONSTANTS: Readonly<{
133
- NAMESPACE: '__stryker__';
134
- MUTATION_COVERAGE_OBJECT: 'mutantCoverage';
135
- ACTIVE_MUTANT: 'activeMutant';
136
- CURRENT_TEST_ID: 'currentTestId';
137
- HIT_COUNT: 'hitCount';
138
- HIT_LIMIT: 'hitLimit';
139
- ACTIVE_MUTANT_ENV_VARIABLE: '__STRYKER_ACTIVE_MUTANT__';
140
- }>;
141
- interface InstrumenterContext {
142
- activeMutant?: string;
143
- currentTestId?: string;
144
- mutantCoverage?: MutantCoverage;
145
- hitCount?: number;
146
- hitLimit?: number;
147
- }
148
- declare function normalizeFileName(fileName: string): string;
149
- interface ErrnoException extends Error {
150
- code?: string;
151
- errno?: number;
152
- path?: string;
153
- syscall?: string;
154
- }
155
- declare function isErrnoException(error: unknown): error is ErrnoException;
156
- declare function errorToString(error: unknown): string;
157
- declare const ERROR_CODES: Readonly<{
158
- NoSuchFileOrDirectory: 'ENOENT';
159
- }>;
160
- interface MutationRange {
161
- readonly start: Position;
162
- readonly end: Position;
163
- }
164
- type MutateDescription = ReadonlyArray<MutationRange> | boolean;
165
- interface FileDescription {
166
- readonly mutate: MutateDescription;
179
+ declare interface RunOptions {
180
+ readonly timeout: number;
181
+ readonly disableBail: boolean;
167
182
  }
168
- type FileDescriptions = Record<string, FileDescription>;
169
- type MutantRunPlan = RunPlan;
170
- type MutantEarlyResultPlan = EarlyResultPlan;
171
- type MutantTestPlan = TestPlan;
172
- declare const causeText: (cause: unknown, depth: number) => string | undefined;
173
- declare namespace mutants_d_exports {
174
- export { Coverage, CoverageData, CoveragePerTestId, ERROR_CODES, EarlyResultPlan, ErrnoException, FileDescription, FileDescriptions, INSTRUMENTER_CONSTANTS, InstrumenterContext, Location, LocationSchema, Mutant, MutantActivation, MutantActivationSchema, MutantCoverage, MutantEarlyResultPlan, MutantRunOptions, MutantRunOptionsSchema, MutantRunPlan, MutantStatus, MutantStatusSchema, MutantTestCoverage, MutantTestPlan, MutateDescription, MutationRange, OpenEndLocation, OpenEndLocationSchema, Position, PositionSchema, RunMutantResult, RunOptions, RunOptionsFields, RunPlan, TestPlan, causeText, errorToString, isErrnoException, isMutant, normalizeFileName };
183
+ declare const RunOptionsFields: {
184
+ timeout: S.Finite;
185
+ disableBail: S.Boolean;
186
+ };
187
+ declare interface RunPlan {
188
+ readonly plan: 'Run';
189
+ readonly mutant: Mutant;
190
+ readonly runOptions: MutantRunOptions;
191
+ readonly netTime: number;
175
192
  }
193
+ declare type TestPlan = EarlyResultPlan | RunPlan;
176
194
  declare namespace index_d_exports {
177
- export { BaseTestResult, BoundaryError, BoundaryErrorSchema, BoundaryPayloadRejected, BoundaryUnrecognizedSignal, BrandingInformation, BrandingInformationSchema, CheckResult, CheckResultSchema, CheckStatus, Checker, CheckerCheckResult, CheckerCustomConfig, CheckerCustomConfigSchema, CheckerEntryConfig, CheckerEntryConfigSchema, CheckerFailed, CheckerGroupResult, CheckerRequest, CheckerRpcs, CheckerService, CommandRunnerOptions, CommandRunnerOptionsSchema, CompleteDryRunResult, CoverageAnalysis, CoverageAnalysisMode, CoverageAnalysisMode as CoverageAnalysisModeType, CoverageAnalysisSchema, DeepOptional, Dependencies, DependenciesSchema, DryRunCompleted, DryRunOptions, DryRunOptionsSchema, DryRunResult, DryRunResultSchema, DryRunStatus, EXIT_CODE, ErrorDryRunResult, ErrorMutantRunResult, Evaluator, EvaluatorFailed, EvaluatorService, ExitClass, FailedCheckResult, FailedTestResult, FileResult, FileResultDictionary, FileResultDictionarySchema, FileResultSchema, FrameworkInformation, FrameworkInformationSchema, KilledMutantRunResult, KnownKeys, Location, LocationSchema, LogLevel, LogLevel as LogLevelType, Metrics, MetricsResult, MetricsResultSchema, MetricsSchema, MutantActivation, MutantActivationSchema, MutantCoverage, MutantCoverageSchema, MutantResult, MutantResultSchema, MutantRunOptions, MutantRunOptionsSchema, MutantRunResult, MutantRunResultSchema, MutantRunStatus, MutantStatus, MutantStatusSchema, MutantTested, MutationScoreThresholds, MutationScoreThresholdsSchema, MutationTestReportReady, MutationTestResult, MutationTestResultSchema, MutationTestingPlanReady, OnlyObject, OpenEndLocation, OpenEndLocationSchema, PackageManager, PackageManager as PackageManagerType, PartialStrykerOptions, PassedCheckResult, PluginFileUrl, Position, PositionSchema, Primitive, PropagatedTrace, PropertyPathOverloads, RENDERED_OPTION_DEFAULTS, ReportType, ReportType as ReportTypeType, ReporterAck, ReporterDrained, ReporterEvent, ReporterEventBatch, ReporterEventKind, ReporterEventSchema, ReporterEventUnion, ReporterFactory, ReporterFailed, ReporterInit, ReporterInitOptions, ReporterPlanDescriptor, ReporterPlanDescriptorSchema, ReporterPlanKind, ReporterRpcs, RunOptions, RunTiming, RunTimingSchema, SkippedTestResult, StrykerOptions, StrykerOptionsSchema, SuccessTestResult, SurvivedMutantRunResult, TRACEPARENT_HEADER, TRACESTATE_HEADER, TestDefinition, TestDefinitionSchema, TestFile, TestFileDefinitionDictionary, TestFileDefinitionDictionarySchema, TestFileSchema, TestResult, TestResultSchema, TestRunner, TestRunnerCapabilities, TestRunnerCapabilitiesSchema, TestRunnerConfig, TestRunnerConfigSchema, TestRunnerCustomConfig, TestRunnerCustomConfigSchema, TestRunnerDryRunRequest, TestRunnerFailed, TestRunnerMutantRunRequest, TestRunnerRpcs, TestRunnerService, TestStatus, Thresholds, ThresholdsSchema, TimeoutDryRunResult, TimeoutMutantRunResult, TraceContextMiddleware, TraceContextParts, TraceContextReference, TracedRpc, Traceparent, WorkerEntryUrl, WorkerPluginKind, WorkerPluginSpawn, WorkerPluginSpawnSchema, formatTraceparent, isCustomTestRunner, parseTraceparent, propertyPath, strykerCoreSchema, strykerReportBugUrl, testFilesProvided, toMutantRunResult };
195
+ export { BaseTestResult, BoundaryError, BoundaryErrorSchema, BoundaryPayloadRejected, BoundaryUnrecognizedSignal, BrandingInformation, BrandingInformationSchema, CheckResult, CheckResultSchema, CheckStatus, Checker, CheckerCheckResult, CheckerCustomConfig, CheckerCustomConfigSchema, CheckerEntryConfig, CheckerEntryConfigSchema, CheckerFailed, CheckerGroupResult, CheckerMutantWire, CheckerRequest, CheckerRpcs, CheckerService, CommandRunnerOptions, CommandRunnerOptionsSchema, CompleteDryRunResult, CoverageAnalysis, CoverageAnalysisMode, CoverageAnalysisMode as CoverageAnalysisModeType, CoverageAnalysisSchema, DeepOptional, Dependencies, DependenciesSchema, DryRunCompleted, DryRunOptions, DryRunOptionsSchema, DryRunResult, DryRunResultSchema, DryRunStatus, EXIT_CODE, ErrorDryRunResult, ErrorMutantRunResult, Evaluator, EvaluatorFailed, EvaluatorService, ExitClass, FailedCheckResult, FailedTestResult, FileResult, FileResultDictionary, FileResultDictionarySchema, FileResultSchema, FrameworkInformation, FrameworkInformationSchema, KilledMutantRunResult, KnownKeys, Location, LocationSchema, LogLevel, LogLevel as LogLevelType, Metrics, MetricsResult, MetricsResultSchema, MetricsSchema, MutantActivation, MutantActivationSchema, MutantCoverage, MutantCoverageSchema, MutantResult, MutantResultSchema, MutantRunOptions, MutantRunOptionsSchema, MutantRunResult, MutantRunResultSchema, MutantRunStatus, MutantStatus, MutantStatusSchema, MutantTested, MutationScoreThresholds, MutationScoreThresholdsSchema, MutationTestReportReady, MutationTestResult, MutationTestResultSchema, MutationTestingPlanReady, OnlyObject, OpenEndLocation, OpenEndLocationSchema, PackageManager, PackageManager as PackageManagerType, PartialStrykerOptions, PassedCheckResult, PluginFileUrl, Position, PositionSchema, Primitive, PropagatedTrace, PropertyPathOverloads, RENDERED_OPTION_DEFAULTS, ReportType, ReportType as ReportTypeType, ReporterAck, ReporterDrained, ReporterEvent, ReporterEventBatch, ReporterEventKind, ReporterEventSchema, ReporterEventUnion, ReporterFactory, ReporterFailed, ReporterInit, ReporterInitOptions, ReporterPlanDescriptor, ReporterPlanDescriptorSchema, ReporterPlanKind, ReporterRpcs, RunOptions, RunTiming, RunTimingSchema, SkippedTestResult, StrykerOptions, StrykerOptionsSchema, SuccessTestResult, SurvivedMutantRunResult, TRACEPARENT_HEADER, TRACESTATE_HEADER, TestDefinition, TestDefinitionSchema, TestFile, TestFileDefinitionDictionary, TestFileDefinitionDictionarySchema, TestFileSchema, TestResult, TestResultSchema, TestRunner, TestRunnerCapabilities, TestRunnerCapabilitiesSchema, TestRunnerConfig, TestRunnerConfigSchema, TestRunnerCustomConfig, TestRunnerCustomConfigSchema, TestRunnerDryRunRequest, TestRunnerFailed, TestRunnerMutantRunRequest, TestRunnerRpcs, TestRunnerService, TestStatus, Thresholds, ThresholdsSchema, TimeoutDryRunResult, TimeoutMutantRunResult, TraceContextMiddleware, TraceContextParts, TraceContextReference, TracedRpc, Traceparent, WorkerEntryUrl, WorkerPluginKind, WorkerPluginSpawn, WorkerPluginSpawnSchema, formatTraceparent, isCustomTestRunner, parseTraceparent, propertyPath, strykerCoreSchema, strykerReportBugUrl, testFilesProvided, toMutantRunResult };
178
196
  }
179
197
  declare interface BaseTestResult {
180
198
  readonly id: string;
@@ -229,16 +247,48 @@ declare const CheckerFailed_base: S.Class<CheckerFailed, S.TaggedStruct<"Checker
229
247
  readonly mutantIds: S.$Array<S.String>;
230
248
  }>, YieldableError>;
231
249
  declare const CheckerGroupResult: S.$Array<S.$Array<S.String>>;
250
+ declare const CheckerMutantWire: S.Struct<{
251
+ readonly id: S.NonEmptyString;
252
+ readonly fileName: S.NonEmptyString;
253
+ readonly mutatorName: S.NonEmptyString;
254
+ readonly replacement: S.String;
255
+ readonly location: S.Struct<{
256
+ readonly start: S.Struct<{
257
+ readonly line: S.Finite;
258
+ readonly column: S.Finite;
259
+ }>;
260
+ readonly end: S.Struct<{
261
+ readonly line: S.Finite;
262
+ readonly column: S.Finite;
263
+ }>;
264
+ }>;
265
+ }>;
266
+ declare type CheckerMutantWire = typeof CheckerMutantWire.Type;
232
267
  declare const CheckerRequest: S.Struct<{
233
268
  readonly checkerName: S.String;
234
- readonly mutants: S.$Array<typeof Mutant>;
269
+ readonly mutants: S.$Array<S.Struct<{
270
+ readonly id: S.NonEmptyString;
271
+ readonly fileName: S.NonEmptyString;
272
+ readonly mutatorName: S.NonEmptyString;
273
+ readonly replacement: S.String;
274
+ readonly location: S.Struct<{
275
+ readonly start: S.Struct<{
276
+ readonly line: S.Finite;
277
+ readonly column: S.Finite;
278
+ }>;
279
+ readonly end: S.Struct<{
280
+ readonly line: S.Finite;
281
+ readonly column: S.Finite;
282
+ }>;
283
+ }>;
284
+ }>>;
235
285
  }>;
236
286
  declare type CheckerRequest = typeof CheckerRequest.Type;
237
287
  declare const CheckerRpcs: RpcGroup.RpcGroup<TracedRpc<'check', typeof CheckerRequest, typeof CheckerCheckResult, typeof CheckerFailed> | TracedRpc<'group', typeof CheckerRequest, typeof CheckerGroupResult, typeof CheckerFailed>>;
238
288
  declare interface CheckerService {
239
289
  readonly init: Effect$1.Effect<void, CheckerFailed>;
240
- readonly check: (mutants: readonly Mutant[]) => Effect$1.Effect<HashMap.HashMap<string, CheckResult>, CheckerFailed>;
241
- readonly group: (mutants: readonly Mutant[]) => Effect$1.Effect<readonly (readonly string[])[], CheckerFailed>;
290
+ readonly check: (mutants: readonly CheckerMutantWire[]) => Effect$1.Effect<HashMap.HashMap<string, CheckResult>, CheckerFailed>;
291
+ readonly group: (mutants: readonly CheckerMutantWire[]) => Effect$1.Effect<readonly (readonly string[])[], CheckerFailed>;
242
292
  }
243
293
  declare type CheckResult = FailedCheckResult | PassedCheckResult;
244
294
  declare const CheckResultSchema: S.Union<readonly [S.Struct<{
@@ -1087,7 +1137,7 @@ declare const TestRunnerMutantRunRequest: S.Struct<{
1087
1137
  readonly options: S.Struct<{
1088
1138
  readonly timeout: S.Finite;
1089
1139
  readonly disableBail: S.Boolean;
1090
- readonly activeMutant: typeof Mutant;
1140
+ readonly activeMutant: Mutant;
1091
1141
  readonly sandboxFileName: S.String;
1092
1142
  readonly mutantActivation: S.Literals<readonly ["runtime", "static"]>;
1093
1143
  readonly reloadEnvironment: S.Boolean;
@@ -1145,4 +1195,20 @@ declare const WorkerPluginSpawnSchema: S.Struct<{
1145
1195
  readonly entrypoint: S.String;
1146
1196
  }>;
1147
1197
  //#endregion
1148
- export { WorkerPluginKind as $, ReporterAck as A, StrykerOptions as B, MutantTested as C, MutationTestingPlanReady as D, MutationTestResultSchema as E, ReporterFailed as F, TestRunnerCapabilities as G, SuccessTestResult as H, ReporterInit as I, TestRunnerFailed as J, TestRunnerConfig as K, ReporterInitOptions as L, ReporterEvent as M, ReporterEventBatch as N, PartialStrykerOptions as O, ReporterFactory as P, TracedRpc as Q, ReporterRpcs as R, MutantRunResult as S, RunPlan as St, MutationTestResult as T, SurvivedMutantRunResult as U, StrykerOptionsSchema as V, TestResult as W, TimeoutMutantRunResult as X, TimeoutDryRunResult as Y, TraceContextMiddleware as Z, Metrics as _, MutationRange as _t, DeepOptional as a, FileDescription as at, MutantResult as b, RunMutantResult as bt, DryRunResult as c, LocationSchema as ct, ExitClass as d, MutantActivationSchema as dt, WorkerPluginSpawn as et, FailedCheckResult as f, MutantCoverage as ft, KilledMutantRunResult as g, MutateDescription as gt, FileResultSchema as h, MutantStatusSchema as ht, CoverageAnalysis as i, CoverageData as it, ReporterDrained as j, PassedCheckResult as k, ErrorDryRunResult as l, Mutant as lt, FileResult as m, MutantStatus as mt, CheckResult as n, index_d_exports as nt, DryRunCompleted as o, FileDescriptions as ot, FailedTestResult as p, MutantRunOptions as pt, TestRunnerConfigSchema as q, CompleteDryRunResult as r, mutants_d_exports as rt, DryRunOptions as s, Location as st, BaseTestResult as t, WorkerPluginSpawnSchema as tt, ErrorMutantRunResult as u, MutantActivation as ut, MetricsResult as v, Position as vt, MutationTestReportReady as w, MutantResultSchema as x, RunOptions as xt, MetricsSchema as y, PositionSchema as yt, SkippedTestResult as z };
1198
+ //#region src/output-mode.d.ts
1199
+ /**
1200
+ * Mode type vocabulary shared with the CLI package. Runtime resolution
1201
+ * (`resolveMode`) and gate functions (`isProgressEnabled`, `isColorEnabled`)
1202
+ * live in the CLI; the `ResolvedMode` fields (`mode`, `signal`,
1203
+ * `stdoutIsTTY`) ride along in `VerdictEnvelope` (`verdict-envelope.ts`),
1204
+ * so the types stay where the data does.
1205
+ */
1206
+ type OutputMode = 'human' | 'machine';
1207
+ type ModeSignal = 'flag' | 'env' | 'tty' | 'agent' | 'tool';
1208
+ interface ResolvedMode {
1209
+ readonly mode: OutputMode;
1210
+ readonly signal: ModeSignal;
1211
+ readonly stdoutIsTTY: boolean;
1212
+ }
1213
+ //#endregion
1214
+ export { TestResult as $, MutantResultSchema as A, ReporterDrained as B, FileResult as C, MutationRange as Ct, MetricsResult as D, RunOptions as Dt, Metrics as E, RunMutantResult as Et, MutationTestResultSchema as F, ReporterInit as G, ReporterEventBatch as H, MutationTestingPlanReady as I, SkippedTestResult as J, ReporterInitOptions as K, PartialStrykerOptions as L, MutantTested as M, MutationTestReportReady as N, MetricsSchema as O, RunPlan as Ot, MutationTestResult as P, SurvivedMutantRunResult as Q, PassedCheckResult as R, FailedTestResult as S, MutateDescription as St, KilledMutantRunResult as T, PositionSchema as Tt, ReporterFactory as U, ReporterEvent as V, ReporterFailed as W, StrykerOptionsSchema as X, StrykerOptions as Y, SuccessTestResult as Z, DryRunResult as _, MutantActivationSchema as _t, CheckResult as a, TimeoutMutantRunResult as at, ExitClass as b, MutantStatus as bt, CheckerGroupResult as c, WorkerPluginKind as ct, CheckerRpcs as d, FileDescription as dt, TestRunnerCapabilities as et, CompleteDryRunResult as f, FileDescriptions as ft, DryRunOptions as g, MutantActivation as gt, DryRunCompleted as h, Mutant as ht, BaseTestResult as i, TimeoutDryRunResult as it, MutantRunResult as j, MutantResult as k, index_d_exports$1 as kt, CheckerMutantWire as l, index_d_exports as lt, DeepOptional as m, LocationSchema as mt, OutputMode as n, TestRunnerConfigSchema as nt, CheckerCheckResult as o, TraceContextMiddleware as ot, CoverageAnalysis as p, Location as pt, ReporterRpcs as q, ResolvedMode as r, TestRunnerFailed as rt, CheckerFailed as s, TracedRpc as st, ModeSignal as t, TestRunnerConfig as tt, CheckerRequest as u, CoverageData as ut, ErrorDryRunResult as v, MutantCoverage as vt, FileResultSchema as w, Position as wt, FailedCheckResult as x, MutantStatusSchema as xt, ErrorMutantRunResult as y, MutantRunOptions as yt, ReporterAck as z };
@@ -1,5 +1,5 @@
1
- import { O as PartialStrykerOptions } from "./index-BInJWa0x.mjs";
2
- import { t as MutationTestDone } from "./mutation-test.cell-Cw1ZzDnb.mjs";
1
+ import { L as PartialStrykerOptions } from "./output-mode-CE6VNHfH.mjs";
2
+ import { t as MutationTestDone } from "./mutation-test.cell-Ch-QUquW.mjs";
3
3
  //#region src/promises/index.d.ts
4
4
  export declare const run: (options: PartialStrykerOptions, targetMutatePatterns?: readonly string[]) => Promise<MutationTestDone>;
5
5
  //#endregion
package/dist/promises.mjs CHANGED
@@ -1,4 +1,4 @@
1
- import { t as strykerCell } from "./src-BoVgxGWD.mjs";
1
+ import { t as strykerCell } from "./src-WMC3thmX.mjs";
2
2
  import * as Layer from "effect/Layer";
3
3
  import * as NodeFileSystem from "@effect/platform-node-shared/NodeFileSystem";
4
4
  import * as NodePath from "@effect/platform-node-shared/NodePath";