@systemfsoftware/stryker-js 13.1.0 → 15.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +62 -0
- package/README.md +30 -0
- package/dist/Run.schema-B1HZugu9.d.mts +24 -0
- package/dist/Run.schema-DuaneDGd.mjs +57 -0
- package/dist/RunEnvironment.service-B1bsWOQ9.d.mts +2927 -0
- package/dist/config.d.mts +4 -4
- package/dist/config.mjs +1 -1
- package/dist/events.d.mts +2 -2
- package/dist/events.mjs +2 -2
- package/dist/{index-Ptvmn934.d.mts → index-Cf9G6kA8.d.mts} +1683 -3073
- package/dist/index.d.mts +622 -105
- package/dist/index.mjs +1104 -26
- package/dist/main.mjs +53956 -34882
- package/dist/{merge-config-BVdwN_LJ.d.mts → merge-config-BdQdK3PM.d.mts} +4 -4
- package/dist/merge-config-zsGl1aWc.mjs +1473 -0
- package/dist/promises.d.mts +3 -3
- package/dist/promises.mjs +1 -1
- package/dist/run-stages-aBT_QAfO.mjs +20687 -0
- package/package.json +17 -17
- package/dist/Run.schema-BwLLAYqu.d.mts +0 -325
- package/dist/Run.schema-Cv2_Kup0.mjs +0 -272
- package/dist/RunEnvironment.service-rkMZ8nm1.d.mts +0 -530
- package/dist/dist-CQ7r4AaH.mjs +0 -8142
- package/dist/merge-config-DZHwEkGY.mjs +0 -63
- package/dist/run-stages.cell-rdoY0cVH.mjs +0 -8857
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@systemfsoftware/stryker-js",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "15.0.0",
|
|
4
4
|
"repository": {
|
|
5
5
|
"type": "git",
|
|
6
6
|
"url": "git+https://github.com/systemfsoftware/stryker-js-effect.git",
|
|
@@ -23,20 +23,20 @@
|
|
|
23
23
|
"node": ">=24.13.1"
|
|
24
24
|
},
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@effect/opentelemetry": "4.0.0
|
|
27
|
-
"@effect/platform-node": "4.0.0
|
|
28
|
-
"@effect/platform-node-shared": "4.0.0
|
|
26
|
+
"@effect/opentelemetry": "^4.0.0",
|
|
27
|
+
"@effect/platform-node": "^4.0.0",
|
|
28
|
+
"@effect/platform-node-shared": "^4.0.0",
|
|
29
29
|
"@noble/hashes": "^2",
|
|
30
30
|
"@opentelemetry/api": "^1.9.0",
|
|
31
31
|
"@opentelemetry/exporter-metrics-otlp-http": "^0.222.0",
|
|
32
32
|
"@opentelemetry/exporter-trace-otlp-http": "^0.222.0",
|
|
33
33
|
"@opentelemetry/sdk-metrics": "^2.11.0",
|
|
34
34
|
"@opentelemetry/sdk-trace-base": "^2.2.0",
|
|
35
|
-
"@systemfsoftware/effect-cell-types": "^
|
|
36
|
-
"@systemfsoftware/stryker-js-vm-runner": "npm:@systemfsoftware/stryker-js-vitest-runner@^8.0.
|
|
35
|
+
"@systemfsoftware/effect-cell-types": "^12.0.0",
|
|
36
|
+
"@systemfsoftware/stryker-js-vm-runner": "npm:@systemfsoftware/stryker-js-vitest-runner@^8.0.3"
|
|
37
37
|
},
|
|
38
38
|
"peerDependencies": {
|
|
39
|
-
"effect": "4.0.0
|
|
39
|
+
"effect": "^4.0.0"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@effect/tsgo": "^0.45.0",
|
|
@@ -44,18 +44,17 @@
|
|
|
44
44
|
"@oxc-parser/binding-wasm32-wasi": "^0.150.0",
|
|
45
45
|
"@std/jsonc": "npm:@jsr/std__jsonc@^1",
|
|
46
46
|
"@systemfsoftware/arethetypeswrong-cli": "^4.2.0",
|
|
47
|
-
"@systemfsoftware/differential-spec": "^0.
|
|
48
|
-
"@systemfsoftware/effect-gherkin-spec": "^
|
|
49
|
-
"@systemfsoftware/effect-schema-law": "^
|
|
50
|
-
"@systemfsoftware/
|
|
51
|
-
"@systemfsoftware/oxlint-config-recommended": "^3.2.0",
|
|
47
|
+
"@systemfsoftware/differential-spec": "^1.0.0",
|
|
48
|
+
"@systemfsoftware/effect-gherkin-spec": "^7.0.0",
|
|
49
|
+
"@systemfsoftware/effect-schema-law": "^5.0.0",
|
|
50
|
+
"@systemfsoftware/oxlint-config-recommended": "^4.0.0",
|
|
52
51
|
"@systemfsoftware/stryker-ignorer-effect-schema-declarations": "latest",
|
|
53
52
|
"@systemfsoftware/stryker-ignorer-in-source-vitest-block": "latest",
|
|
54
53
|
"@systemfsoftware/stryker-js": "latest",
|
|
55
54
|
"@systemfsoftware/stryker-js-typescript-checker": "latest",
|
|
56
55
|
"@systemfsoftware/stryker-js-vitest-runner": "latest",
|
|
57
56
|
"@systemfsoftware/tsconfig": "^2.0.1",
|
|
58
|
-
"@systemfsoftware/vitest": "^0.
|
|
57
|
+
"@systemfsoftware/vitest": "^1.0.0",
|
|
59
58
|
"@types/node": "^24",
|
|
60
59
|
"@vitest/browser-playwright": "^5",
|
|
61
60
|
"@vitest/coverage-v8": "^5",
|
|
@@ -73,11 +72,12 @@
|
|
|
73
72
|
"vitest": "^5",
|
|
74
73
|
"@systemfsoftware/stryker-framework-interface": "^0.0.0",
|
|
75
74
|
"@systemfsoftware/stryker-ignorer-interface": "^0.1.1",
|
|
76
|
-
"@systemfsoftware/stryker-js-html-reporter": "^5.0.4",
|
|
77
75
|
"@systemfsoftware/stryker-config": "^0.1.0",
|
|
78
|
-
"@systemfsoftware/stryker-js-
|
|
79
|
-
"@systemfsoftware/stryker-js-
|
|
80
|
-
"@systemfsoftware/stryker-js-
|
|
76
|
+
"@systemfsoftware/stryker-js-cli-contract": "^0.2.0",
|
|
77
|
+
"@systemfsoftware/stryker-js-instrumenter": "^12.0.0",
|
|
78
|
+
"@systemfsoftware/stryker-js-html-reporter": "^6.0.0",
|
|
79
|
+
"@systemfsoftware/stryker-js-plugin-interface": "^12.0.0",
|
|
80
|
+
"@systemfsoftware/stryker-js-plugin-runtime": "^7.0.0",
|
|
81
81
|
"@systemfsoftware/tsdown-config": "^0.1.0",
|
|
82
82
|
"@systemfsoftware/vitest-config": "^0.1.0"
|
|
83
83
|
},
|
|
@@ -1,325 +0,0 @@
|
|
|
1
|
-
import { a as mod_d_exports$5, i as mod_d_exports$4, r as mod_d_exports$3 } from "./index-Ptvmn934.mjs";
|
|
2
|
-
import * as S from "effect/Schema";
|
|
3
|
-
import { Schema } from "effect";
|
|
4
|
-
//#region src/run-event.schema.d.ts
|
|
5
|
-
declare const RunPhase: S.Literals<readonly ["prepare", "instrument", "dry-run", "mutation-test"]>;
|
|
6
|
-
type RunPhase = typeof RunPhase.Type;
|
|
7
|
-
declare const RunId: S.brand<S.String, "RunId">;
|
|
8
|
-
type RunId = typeof RunId.Type;
|
|
9
|
-
declare const RunStarted_base: S.Class<RunStarted, S.TaggedStruct<"stream", {
|
|
10
|
-
readonly schemaVersion: S.Literal<"1.1">;
|
|
11
|
-
readonly runId: S.brand<S.String, "RunId">;
|
|
12
|
-
readonly mode: S.Literals<readonly ["human", "machine"]>;
|
|
13
|
-
readonly signal: S.Literals<readonly ["flag", "env", "tty", "agent", "tool"]>;
|
|
14
|
-
}>, {}>;
|
|
15
|
-
declare class RunStarted extends RunStarted_base {}
|
|
16
|
-
declare const PhaseEntered_base: S.Class<PhaseEntered, S.TaggedStruct<"phase", {
|
|
17
|
-
readonly phase: S.Literals<readonly ["prepare", "instrument", "dry-run", "mutation-test"]>;
|
|
18
|
-
readonly elapsedMs: S.Finite;
|
|
19
|
-
}>, {}>;
|
|
20
|
-
declare class PhaseEntered extends PhaseEntered_base {}
|
|
21
|
-
declare const PlanKnown_base: S.Class<PlanKnown, S.TaggedStruct<"plan", {
|
|
22
|
-
readonly total: S.Int;
|
|
23
|
-
}>, {}>;
|
|
24
|
-
declare class PlanKnown extends PlanKnown_base {}
|
|
25
|
-
/**
|
|
26
|
-
* The machine-stream line a tested mutant is published as. Its wire shape is a
|
|
27
|
-
* published contract: the `mutant` tag and the `file`/`mutator` keys must not
|
|
28
|
-
* change. The domain event it carries is `Reporter.MutantTested`, so the line is
|
|
29
|
-
* a codec at the boundary rather than a second declaration of the same event.
|
|
30
|
-
*/
|
|
31
|
-
interface RunMutantTested extends mod_d_exports$5.MutantTested {}
|
|
32
|
-
declare const MutantTestedWireSchema: S.TaggedStruct<"mutant", {
|
|
33
|
-
readonly id: S.String;
|
|
34
|
-
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
35
|
-
readonly file: S.String;
|
|
36
|
-
readonly location: S.declare<{
|
|
37
|
-
readonly start: {
|
|
38
|
-
readonly line: number;
|
|
39
|
-
readonly column: number;
|
|
40
|
-
};
|
|
41
|
-
readonly end: {
|
|
42
|
-
readonly line: number;
|
|
43
|
-
readonly column: number;
|
|
44
|
-
};
|
|
45
|
-
}, {
|
|
46
|
-
readonly start: {
|
|
47
|
-
readonly line: number;
|
|
48
|
-
readonly column: number;
|
|
49
|
-
};
|
|
50
|
-
readonly end: {
|
|
51
|
-
readonly line: number;
|
|
52
|
-
readonly column: number;
|
|
53
|
-
};
|
|
54
|
-
}>;
|
|
55
|
-
readonly mutator: S.String;
|
|
56
|
-
readonly replacement: S.NullOr<S.String>;
|
|
57
|
-
readonly completed: S.Int;
|
|
58
|
-
readonly total: S.Int;
|
|
59
|
-
}>;
|
|
60
|
-
declare const RunMutantTested: S.Codec<RunMutantTested, S.Schema.Type<typeof MutantTestedWireSchema>>;
|
|
61
|
-
declare const Heartbeat_base: S.Class<Heartbeat, S.TaggedStruct<"tick", {
|
|
62
|
-
readonly elapsedMs: S.Finite;
|
|
63
|
-
readonly completed: S.Int;
|
|
64
|
-
readonly total: S.NullOr<S.Int>;
|
|
65
|
-
}>, {}>;
|
|
66
|
-
declare class Heartbeat extends Heartbeat_base {}
|
|
67
|
-
declare const VerdictMutant: S.Struct<{
|
|
68
|
-
readonly id: S.brand<S.String, "MutantId">;
|
|
69
|
-
readonly file: S.String;
|
|
70
|
-
readonly location: S.declare<{
|
|
71
|
-
readonly start: {
|
|
72
|
-
readonly line: number;
|
|
73
|
-
readonly column: number;
|
|
74
|
-
};
|
|
75
|
-
readonly end: {
|
|
76
|
-
readonly line: number;
|
|
77
|
-
readonly column: number;
|
|
78
|
-
};
|
|
79
|
-
}, {
|
|
80
|
-
readonly start: {
|
|
81
|
-
readonly line: number;
|
|
82
|
-
readonly column: number;
|
|
83
|
-
};
|
|
84
|
-
readonly end: {
|
|
85
|
-
readonly line: number;
|
|
86
|
-
readonly column: number;
|
|
87
|
-
};
|
|
88
|
-
}>;
|
|
89
|
-
readonly mutator: S.String;
|
|
90
|
-
readonly replacement: S.NullOr<S.String>;
|
|
91
|
-
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
92
|
-
}>;
|
|
93
|
-
type VerdictMutant = typeof VerdictMutant.Type;
|
|
94
|
-
type VerdictCounts = mod_d_exports$4.Metrics;
|
|
95
|
-
declare const VerdictReached_base: S.Class<VerdictReached, S.TaggedStruct<"verdict", {
|
|
96
|
-
readonly schemaVersion: S.Literal<"1.1">;
|
|
97
|
-
readonly runId: S.brand<S.String, "RunId">;
|
|
98
|
-
readonly mode: S.Literals<readonly ["human", "machine"]>;
|
|
99
|
-
readonly signal: S.Literals<readonly ["flag", "env", "tty", "agent", "tool"]>;
|
|
100
|
-
readonly score: S.NullOr<S.Finite>;
|
|
101
|
-
readonly thresholds: S.declare<{
|
|
102
|
-
readonly high: number;
|
|
103
|
-
readonly low: number;
|
|
104
|
-
readonly break: number | null;
|
|
105
|
-
}, {
|
|
106
|
-
readonly high: number;
|
|
107
|
-
readonly low: number;
|
|
108
|
-
readonly break: number | null;
|
|
109
|
-
}>;
|
|
110
|
-
readonly reportFile: S.NullOr<S.String>;
|
|
111
|
-
readonly counts: typeof mod_d_exports$4.Metrics;
|
|
112
|
-
readonly mutants: S.$Array<S.Struct<{
|
|
113
|
-
readonly id: S.brand<S.String, "MutantId">;
|
|
114
|
-
readonly file: S.String;
|
|
115
|
-
readonly location: S.declare<{
|
|
116
|
-
readonly start: {
|
|
117
|
-
readonly line: number;
|
|
118
|
-
readonly column: number;
|
|
119
|
-
};
|
|
120
|
-
readonly end: {
|
|
121
|
-
readonly line: number;
|
|
122
|
-
readonly column: number;
|
|
123
|
-
};
|
|
124
|
-
}, {
|
|
125
|
-
readonly start: {
|
|
126
|
-
readonly line: number;
|
|
127
|
-
readonly column: number;
|
|
128
|
-
};
|
|
129
|
-
readonly end: {
|
|
130
|
-
readonly line: number;
|
|
131
|
-
readonly column: number;
|
|
132
|
-
};
|
|
133
|
-
}>;
|
|
134
|
-
readonly mutator: S.String;
|
|
135
|
-
readonly replacement: S.NullOr<S.String>;
|
|
136
|
-
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
137
|
-
}>>;
|
|
138
|
-
}>, {}>;
|
|
139
|
-
declare class VerdictReached extends VerdictReached_base {}
|
|
140
|
-
declare const FrameworkContributionRow: S.Struct<{
|
|
141
|
-
readonly name: S.String;
|
|
142
|
-
readonly formatId: S.String;
|
|
143
|
-
readonly extensions: S.$Array<S.String>;
|
|
144
|
-
}>;
|
|
145
|
-
type FrameworkContributionRow = typeof FrameworkContributionRow.Type;
|
|
146
|
-
declare const FrameworkModuleRow: S.Struct<{
|
|
147
|
-
readonly moduleName: S.String;
|
|
148
|
-
readonly contributions: S.$Array<S.Struct<{
|
|
149
|
-
readonly name: S.String;
|
|
150
|
-
readonly formatId: S.String;
|
|
151
|
-
readonly extensions: S.$Array<S.String>;
|
|
152
|
-
}>>;
|
|
153
|
-
}>;
|
|
154
|
-
type FrameworkModuleRow = typeof FrameworkModuleRow.Type;
|
|
155
|
-
declare const FormatClaimShadowingRow: S.Struct<{
|
|
156
|
-
readonly extension: S.String;
|
|
157
|
-
readonly winner: S.String;
|
|
158
|
-
readonly loser: S.String;
|
|
159
|
-
}>;
|
|
160
|
-
type FormatClaimShadowingRow = typeof FormatClaimShadowingRow.Type;
|
|
161
|
-
declare const PluginsReported_base: S.Class<PluginsReported, S.TaggedStruct<"plugins", {
|
|
162
|
-
readonly modules: S.$Array<S.Struct<{
|
|
163
|
-
readonly moduleName: S.String;
|
|
164
|
-
readonly contributions: S.$Array<S.Struct<{
|
|
165
|
-
readonly name: S.String;
|
|
166
|
-
readonly formatId: S.String;
|
|
167
|
-
readonly extensions: S.$Array<S.String>;
|
|
168
|
-
}>>;
|
|
169
|
-
}>>;
|
|
170
|
-
readonly shadowings: S.$Array<S.Struct<{
|
|
171
|
-
readonly extension: S.String;
|
|
172
|
-
readonly winner: S.String;
|
|
173
|
-
readonly loser: S.String;
|
|
174
|
-
}>>;
|
|
175
|
-
}>, {}>;
|
|
176
|
-
declare class PluginsReported extends PluginsReported_base {}
|
|
177
|
-
declare const FormatRegistryRow: S.Struct<{
|
|
178
|
-
readonly extension: S.String;
|
|
179
|
-
readonly formatId: S.String;
|
|
180
|
-
readonly ownerModule: S.String;
|
|
181
|
-
readonly language: S.String;
|
|
182
|
-
}>;
|
|
183
|
-
type FormatRegistryRow = typeof FormatRegistryRow.Type;
|
|
184
|
-
declare const FormatRegistryResolved_base: S.Class<FormatRegistryResolved, S.TaggedStruct<"formats", {
|
|
185
|
-
readonly rows: S.$Array<S.Struct<{
|
|
186
|
-
readonly extension: S.String;
|
|
187
|
-
readonly formatId: S.String;
|
|
188
|
-
readonly ownerModule: S.String;
|
|
189
|
-
readonly language: S.String;
|
|
190
|
-
}>>;
|
|
191
|
-
}>, {}>;
|
|
192
|
-
declare class FormatRegistryResolved extends FormatRegistryResolved_base {}
|
|
193
|
-
declare const SkippedFileRow: S.Struct<{
|
|
194
|
-
readonly file: S.String;
|
|
195
|
-
readonly extension: S.String;
|
|
196
|
-
readonly reason: S.String;
|
|
197
|
-
}>;
|
|
198
|
-
type SkippedFileRow = typeof SkippedFileRow.Type;
|
|
199
|
-
declare const SkippedReported_base: S.Class<SkippedReported, S.TaggedStruct<"skipped", {
|
|
200
|
-
readonly files: S.$Array<S.Struct<{
|
|
201
|
-
readonly file: S.String;
|
|
202
|
-
readonly extension: S.String;
|
|
203
|
-
readonly reason: S.String;
|
|
204
|
-
}>>;
|
|
205
|
-
}>, {}>;
|
|
206
|
-
declare class SkippedReported extends SkippedReported_base {}
|
|
207
|
-
declare const RunFailed_base: S.Class<RunFailed, S.TaggedStruct<"error", {
|
|
208
|
-
readonly schemaVersion: S.Literal<"1.1">;
|
|
209
|
-
readonly code: S.Int;
|
|
210
|
-
readonly error: S.String;
|
|
211
|
-
readonly remediation: S.String;
|
|
212
|
-
readonly reason: S.NullOr<S.Union<readonly [S.TaggedStruct<"PeerMissing", {
|
|
213
|
-
readonly peer: S.String;
|
|
214
|
-
}>, S.TaggedStruct<"PeerVersionUnsupported", {
|
|
215
|
-
readonly peer: S.String;
|
|
216
|
-
readonly detail: S.String;
|
|
217
|
-
}>, S.TaggedStruct<"PeerUnrecognized", {
|
|
218
|
-
readonly peer: S.String;
|
|
219
|
-
}>, S.TaggedStruct<"InvalidContribution", {
|
|
220
|
-
readonly detail: S.String;
|
|
221
|
-
}>, S.TaggedStruct<"ImportFailed", {
|
|
222
|
-
readonly cause: S.Unknown;
|
|
223
|
-
}>]>>;
|
|
224
|
-
}>, {}>;
|
|
225
|
-
declare class RunFailed extends RunFailed_base {}
|
|
226
|
-
declare const HelpRendered_base: S.Class<HelpRendered, S.TaggedStruct<"help", {
|
|
227
|
-
readonly schemaVersion: S.Literal<"1.1">;
|
|
228
|
-
readonly code: S.Literals<readonly [0]>;
|
|
229
|
-
readonly help: S.String;
|
|
230
|
-
}>, {}>;
|
|
231
|
-
declare class HelpRendered extends HelpRendered_base {}
|
|
232
|
-
declare const RunEvent: S.Union<readonly [typeof RunStarted, typeof PhaseEntered, typeof PlanKnown, S.Codec<RunMutantTested, {
|
|
233
|
-
readonly _tag: "mutant";
|
|
234
|
-
readonly id: string;
|
|
235
|
-
readonly status: "CompileError" | "Ignored" | "Killed" | "NoCoverage" | "Pending" | "RuntimeError" | "Survived" | "Timeout";
|
|
236
|
-
readonly file: string;
|
|
237
|
-
readonly location: {
|
|
238
|
-
readonly start: {
|
|
239
|
-
readonly line: number;
|
|
240
|
-
readonly column: number;
|
|
241
|
-
};
|
|
242
|
-
readonly end: {
|
|
243
|
-
readonly line: number;
|
|
244
|
-
readonly column: number;
|
|
245
|
-
};
|
|
246
|
-
};
|
|
247
|
-
readonly mutator: string;
|
|
248
|
-
readonly replacement: string | null;
|
|
249
|
-
readonly completed: number;
|
|
250
|
-
readonly total: number;
|
|
251
|
-
}, never, never>, typeof Heartbeat, typeof PluginsReported, typeof FormatRegistryResolved, typeof SkippedReported, typeof VerdictReached, typeof RunFailed, typeof HelpRendered]> & {
|
|
252
|
-
QUEUE_BOUND: number;
|
|
253
|
-
};
|
|
254
|
-
type RunEvent = typeof RunEvent.Type;
|
|
255
|
-
type RunTerminalEvent = VerdictReached | RunFailed | HelpRendered;
|
|
256
|
-
declare const RunDecodeError_base: S.Class<RunDecodeError, S.TaggedStruct<"RunDecodeError", {
|
|
257
|
-
readonly message: S.String;
|
|
258
|
-
}>, import("effect/Cause").YieldableError>;
|
|
259
|
-
declare class RunDecodeError extends RunDecodeError_base {}
|
|
260
|
-
declare const RunReadError_base: S.Class<RunReadError, S.TaggedStruct<"RunReadError", {
|
|
261
|
-
readonly message: S.String;
|
|
262
|
-
}>, import("effect/Cause").YieldableError>;
|
|
263
|
-
declare class RunReadError extends RunReadError_base {}
|
|
264
|
-
declare const PlanMutationRunCommand_base: S.Class<PlanMutationRunCommand, S.TaggedStruct<"PlanMutationRunCommand", {
|
|
265
|
-
readonly configMutatePatterns: S.$Array<S.String>;
|
|
266
|
-
readonly configMutatorNames: S.$Array<S.String>;
|
|
267
|
-
readonly targetMutatePatterns: S.$Array<S.String>;
|
|
268
|
-
readonly availableMutators: S.$Array<S.String>;
|
|
269
|
-
}>, {}>;
|
|
270
|
-
declare class PlanMutationRunCommand extends PlanMutationRunCommand_base {}
|
|
271
|
-
declare const MutationRunPlan_base: S.Class<MutationRunPlan, S.TaggedStruct<"MutationRunPlan", {
|
|
272
|
-
readonly mutatePatterns: S.$Array<S.String>;
|
|
273
|
-
readonly mutatorNames: S.$Array<S.String>;
|
|
274
|
-
}>, {}>;
|
|
275
|
-
declare class MutationRunPlan extends MutationRunPlan_base {}
|
|
276
|
-
//#endregion
|
|
277
|
-
//#region src/output-mode.schema.d.ts
|
|
278
|
-
declare const OutputMode: S.Literals<readonly ["human", "machine"]>;
|
|
279
|
-
type OutputMode = typeof OutputMode.Type;
|
|
280
|
-
declare const ModeSignal: S.Literals<readonly ["flag", "env", "tty", "agent", "tool"]>;
|
|
281
|
-
type ModeSignal = typeof ModeSignal.Type;
|
|
282
|
-
declare const ResolvedMode: S.Struct<{
|
|
283
|
-
readonly mode: S.Literals<readonly ["human", "machine"]>;
|
|
284
|
-
readonly signal: S.Literals<readonly ["flag", "env", "tty", "agent", "tool"]>;
|
|
285
|
-
readonly stdoutIsTTY: S.Boolean;
|
|
286
|
-
}>;
|
|
287
|
-
type ResolvedMode = typeof ResolvedMode.Type;
|
|
288
|
-
//#endregion
|
|
289
|
-
//#region src/PluginsError.schema.d.ts
|
|
290
|
-
declare const PluginLoadFailureReason: Schema.Union<readonly [Schema.TaggedStruct<"PeerMissing", {
|
|
291
|
-
readonly peer: Schema.String;
|
|
292
|
-
}>, Schema.TaggedStruct<"PeerVersionUnsupported", {
|
|
293
|
-
readonly peer: Schema.String;
|
|
294
|
-
readonly detail: Schema.String;
|
|
295
|
-
}>, Schema.TaggedStruct<"PeerUnrecognized", {
|
|
296
|
-
readonly peer: Schema.String;
|
|
297
|
-
}>, Schema.TaggedStruct<"InvalidContribution", {
|
|
298
|
-
readonly detail: Schema.String;
|
|
299
|
-
}>, Schema.TaggedStruct<"ImportFailed", {
|
|
300
|
-
readonly cause: Schema.Unknown;
|
|
301
|
-
}>]>;
|
|
302
|
-
type PluginLoadFailureReason = typeof PluginLoadFailureReason.Type;
|
|
303
|
-
//#endregion
|
|
304
|
-
//#region src/Run.schema.d.ts
|
|
305
|
-
declare const TypeId: '~stryker/mutation-run/StageError';
|
|
306
|
-
declare const StageError_base: S.Class<StageError, S.TaggedStruct<"StageError", {
|
|
307
|
-
readonly stage: S.Literals<readonly ["prepare", "instrument", "dryRun", "dryRunNoTests", "mutationTest"]>;
|
|
308
|
-
readonly reason: S.String;
|
|
309
|
-
readonly cause: S.optional<S.Defect>;
|
|
310
|
-
readonly command: S.optional<S.String>;
|
|
311
|
-
}>, import("effect/Cause").YieldableError>;
|
|
312
|
-
declare class StageError extends StageError_base {
|
|
313
|
-
readonly [TypeId]: "~stryker/mutation-run/StageError";
|
|
314
|
-
get exitClass(): mod_d_exports$3.ExitClass;
|
|
315
|
-
get message(): string;
|
|
316
|
-
}
|
|
317
|
-
declare const PrepareError_base: S.Class<PrepareError, S.TaggedStruct<"PrepareError", {
|
|
318
|
-
readonly stage: S.Literal<"prepare">;
|
|
319
|
-
readonly reason: S.String;
|
|
320
|
-
}>, import("effect/Cause").YieldableError>;
|
|
321
|
-
declare class PrepareError extends PrepareError_base {
|
|
322
|
-
get message(): string;
|
|
323
|
-
}
|
|
324
|
-
//#endregion
|
|
325
|
-
export { VerdictCounts as A, RunMutantTested as C, RunTerminalEvent as D, RunStarted as E, VerdictReached as M, SkippedFileRow as O, RunId as S, RunReadError as T, PlanMutationRunCommand as _, OutputMode as a, RunEvent as b, FormatRegistryResolved as c, FrameworkModuleRow as d, Heartbeat as f, PlanKnown as g, PhaseEntered as h, ModeSignal as i, VerdictMutant as j, SkippedReported as k, FormatRegistryRow as l, MutationRunPlan as m, StageError as n, ResolvedMode as o, HelpRendered as p, PluginLoadFailureReason as r, FormatClaimShadowingRow as s, PrepareError as t, FrameworkContributionRow as u, PluginsReported as v, RunPhase as w, RunFailed as x, RunDecodeError as y };
|
|
@@ -1,272 +0,0 @@
|
|
|
1
|
-
import { a as Reporter_exports, d as Mutant_exports, i as Report_exports, r as Plugin_exports } from "./dist-CQ7r4AaH.mjs";
|
|
2
|
-
import * as Match$1 from "effect/Match";
|
|
3
|
-
import * as S from "effect/Schema";
|
|
4
|
-
import { Schema, SchemaGetter } from "effect";
|
|
5
|
-
//#region src/output-mode.schema.ts
|
|
6
|
-
const OutputMode = S.Literals(["human", "machine"]);
|
|
7
|
-
const ModeSignal = S.Literals([
|
|
8
|
-
"flag",
|
|
9
|
-
"env",
|
|
10
|
-
"tty",
|
|
11
|
-
"agent",
|
|
12
|
-
"tool"
|
|
13
|
-
]);
|
|
14
|
-
S.Struct({
|
|
15
|
-
mode: OutputMode,
|
|
16
|
-
signal: ModeSignal,
|
|
17
|
-
stdoutIsTTY: S.Boolean
|
|
18
|
-
});
|
|
19
|
-
//#endregion
|
|
20
|
-
//#region src/PluginsError.schema.ts
|
|
21
|
-
var PluginNotFoundError = class extends Schema.TaggedError()("PluginNotFoundError", { descriptor: Schema.String }) {
|
|
22
|
-
exitClass = "ConfigError";
|
|
23
|
-
get message() {
|
|
24
|
-
return `Plugin "${this.descriptor}" was not found`;
|
|
25
|
-
}
|
|
26
|
-
};
|
|
27
|
-
const PluginLoadFailureReason = Schema.Union([
|
|
28
|
-
Schema.TaggedStruct("PeerMissing", { peer: Schema.String }),
|
|
29
|
-
Schema.TaggedStruct("PeerVersionUnsupported", {
|
|
30
|
-
peer: Schema.String,
|
|
31
|
-
detail: Schema.String
|
|
32
|
-
}),
|
|
33
|
-
Schema.TaggedStruct("PeerUnrecognized", { peer: Schema.String }),
|
|
34
|
-
Schema.TaggedStruct("InvalidContribution", { detail: Schema.String }),
|
|
35
|
-
Schema.TaggedStruct("ImportFailed", { cause: Schema.Unknown })
|
|
36
|
-
]);
|
|
37
|
-
const PeerFailureTag = Schema.Literals([
|
|
38
|
-
"PeerMissing",
|
|
39
|
-
"PeerVersionUnsupported",
|
|
40
|
-
"PeerUnrecognized"
|
|
41
|
-
]);
|
|
42
|
-
const FAILURE_EXIT_CLASS = {
|
|
43
|
-
PeerMissing: "ConfigError",
|
|
44
|
-
PeerVersionUnsupported: "ConfigError",
|
|
45
|
-
PeerUnrecognized: "ConfigError",
|
|
46
|
-
InvalidContribution: "ConfigError",
|
|
47
|
-
ImportFailed: "InternalError"
|
|
48
|
-
};
|
|
49
|
-
var PluginLoadRefusedError = class extends Schema.TaggedError()("PluginLoadRefusedError", {
|
|
50
|
-
descriptor: Schema.String,
|
|
51
|
-
reason: PluginLoadFailureReason
|
|
52
|
-
}) {
|
|
53
|
-
get exitClass() {
|
|
54
|
-
return FAILURE_EXIT_CLASS[this.reason._tag];
|
|
55
|
-
}
|
|
56
|
-
get message() {
|
|
57
|
-
return `Failed to load plugin "${this.descriptor}" (${this.reason._tag})`;
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
//#endregion
|
|
61
|
-
//#region src/reporting/stream-version.schema.ts
|
|
62
|
-
const StreamSchemaVersion = S.Literal("1.1");
|
|
63
|
-
//#endregion
|
|
64
|
-
//#region src/run-event.schema.ts
|
|
65
|
-
const RunPhase = S.Literals([
|
|
66
|
-
"prepare",
|
|
67
|
-
"instrument",
|
|
68
|
-
"dry-run",
|
|
69
|
-
"mutation-test"
|
|
70
|
-
]);
|
|
71
|
-
const RunId = S.String.pipe(S.check(S.isPattern(/^[0-9A-HJKMNP-TV-Z]{26}$/)), S.brand("RunId"));
|
|
72
|
-
var RunStarted = class extends S.TaggedClass()("stream", {
|
|
73
|
-
schemaVersion: StreamSchemaVersion,
|
|
74
|
-
runId: RunId,
|
|
75
|
-
mode: OutputMode,
|
|
76
|
-
signal: ModeSignal
|
|
77
|
-
}) {};
|
|
78
|
-
var PhaseEntered = class extends S.TaggedClass()("phase", {
|
|
79
|
-
phase: RunPhase,
|
|
80
|
-
elapsedMs: Report_exports.NonNegativeFinite
|
|
81
|
-
}) {};
|
|
82
|
-
var PlanKnown = class extends S.TaggedClass()("plan", { total: Report_exports.NonNegativeInt }) {};
|
|
83
|
-
const RunMutantTested = S.TaggedStruct("mutant", {
|
|
84
|
-
id: S.String,
|
|
85
|
-
status: Mutant_exports.MutantStatusSchema,
|
|
86
|
-
file: S.String,
|
|
87
|
-
location: Mutant_exports.Location,
|
|
88
|
-
mutator: S.String,
|
|
89
|
-
replacement: S.NullOr(S.String),
|
|
90
|
-
completed: Report_exports.NonNegativeInt,
|
|
91
|
-
total: Report_exports.NonNegativeInt
|
|
92
|
-
}).pipe(S.decodeTo(Reporter_exports.MutantTested, {
|
|
93
|
-
decode: SchemaGetter.transform((line) => ({
|
|
94
|
-
_tag: "mutantTested",
|
|
95
|
-
id: line.id,
|
|
96
|
-
status: line.status,
|
|
97
|
-
fileName: line.file,
|
|
98
|
-
location: line.location,
|
|
99
|
-
mutatorName: line.mutator,
|
|
100
|
-
replacement: line.replacement,
|
|
101
|
-
completed: line.completed,
|
|
102
|
-
total: line.total
|
|
103
|
-
})),
|
|
104
|
-
encode: SchemaGetter.transform((tested) => ({
|
|
105
|
-
_tag: "mutant",
|
|
106
|
-
id: tested.id,
|
|
107
|
-
status: tested.status,
|
|
108
|
-
file: tested.fileName,
|
|
109
|
-
location: tested.location,
|
|
110
|
-
mutator: tested.mutatorName,
|
|
111
|
-
replacement: tested.replacement,
|
|
112
|
-
completed: tested.completed,
|
|
113
|
-
total: tested.total
|
|
114
|
-
}))
|
|
115
|
-
}));
|
|
116
|
-
var Heartbeat = class extends S.TaggedClass()("tick", {
|
|
117
|
-
elapsedMs: Report_exports.NonNegativeFinite,
|
|
118
|
-
completed: Report_exports.NonNegativeInt,
|
|
119
|
-
total: S.NullOr(Report_exports.NonNegativeInt)
|
|
120
|
-
}) {};
|
|
121
|
-
const VerdictMutant = S.Struct({
|
|
122
|
-
id: Mutant_exports.MutantId,
|
|
123
|
-
file: S.String,
|
|
124
|
-
location: Mutant_exports.Location,
|
|
125
|
-
mutator: S.String,
|
|
126
|
-
replacement: S.NullOr(S.String),
|
|
127
|
-
status: Mutant_exports.MutantStatusSchema
|
|
128
|
-
});
|
|
129
|
-
var VerdictReached = class extends S.TaggedClass()("verdict", {
|
|
130
|
-
schemaVersion: StreamSchemaVersion,
|
|
131
|
-
runId: RunId,
|
|
132
|
-
mode: OutputMode,
|
|
133
|
-
signal: ModeSignal,
|
|
134
|
-
score: S.NullOr(Report_exports.Percentage),
|
|
135
|
-
thresholds: Report_exports.ThresholdsSchema,
|
|
136
|
-
reportFile: S.NullOr(S.String),
|
|
137
|
-
counts: Report_exports.Metrics,
|
|
138
|
-
mutants: S.Array(VerdictMutant)
|
|
139
|
-
}) {};
|
|
140
|
-
const FrameworkContributionRow = S.Struct({
|
|
141
|
-
name: S.String,
|
|
142
|
-
formatId: S.String,
|
|
143
|
-
extensions: S.Array(S.String)
|
|
144
|
-
});
|
|
145
|
-
const FrameworkModuleRow = S.Struct({
|
|
146
|
-
moduleName: S.String,
|
|
147
|
-
contributions: S.Array(FrameworkContributionRow)
|
|
148
|
-
});
|
|
149
|
-
const FormatClaimShadowingRow = S.Struct({
|
|
150
|
-
extension: S.String,
|
|
151
|
-
winner: S.String,
|
|
152
|
-
loser: S.String
|
|
153
|
-
});
|
|
154
|
-
var PluginsReported = class extends S.TaggedClass()("plugins", {
|
|
155
|
-
modules: S.Array(FrameworkModuleRow),
|
|
156
|
-
shadowings: S.Array(FormatClaimShadowingRow)
|
|
157
|
-
}) {};
|
|
158
|
-
const FormatRegistryRow = S.Struct({
|
|
159
|
-
extension: S.String,
|
|
160
|
-
formatId: S.String,
|
|
161
|
-
ownerModule: S.String,
|
|
162
|
-
language: S.String
|
|
163
|
-
});
|
|
164
|
-
var FormatRegistryResolved = class extends S.TaggedClass()("formats", { rows: S.Array(FormatRegistryRow) }) {};
|
|
165
|
-
const SkippedFileRow = S.Struct({
|
|
166
|
-
file: S.String,
|
|
167
|
-
extension: S.String,
|
|
168
|
-
reason: S.String
|
|
169
|
-
});
|
|
170
|
-
var SkippedReported = class extends S.TaggedClass()("skipped", { files: S.Array(SkippedFileRow) }) {};
|
|
171
|
-
var RunFailed = class extends S.TaggedClass()("error", {
|
|
172
|
-
schemaVersion: StreamSchemaVersion,
|
|
173
|
-
code: Plugin_exports.ExitCode,
|
|
174
|
-
error: S.String,
|
|
175
|
-
remediation: S.String,
|
|
176
|
-
reason: S.NullOr(PluginLoadFailureReason)
|
|
177
|
-
}) {};
|
|
178
|
-
var HelpRendered = class extends S.TaggedClass()("help", {
|
|
179
|
-
schemaVersion: StreamSchemaVersion,
|
|
180
|
-
code: S.Literals([0]),
|
|
181
|
-
help: S.String
|
|
182
|
-
}) {};
|
|
183
|
-
const RunEvent = Object.assign(S.Union([
|
|
184
|
-
RunStarted,
|
|
185
|
-
PhaseEntered,
|
|
186
|
-
PlanKnown,
|
|
187
|
-
RunMutantTested,
|
|
188
|
-
Heartbeat,
|
|
189
|
-
PluginsReported,
|
|
190
|
-
FormatRegistryResolved,
|
|
191
|
-
SkippedReported,
|
|
192
|
-
VerdictReached,
|
|
193
|
-
RunFailed,
|
|
194
|
-
HelpRendered
|
|
195
|
-
]), { QUEUE_BOUND: 256 });
|
|
196
|
-
S.TaggedClass()("RunCommand", {
|
|
197
|
-
cliOptionsJson: S.String,
|
|
198
|
-
targetMutatePatterns: S.Array(S.String)
|
|
199
|
-
});
|
|
200
|
-
S.TaggedClass()("RunOutput", {
|
|
201
|
-
verdictJson: S.String,
|
|
202
|
-
exitCode: Plugin_exports.ExitCode
|
|
203
|
-
});
|
|
204
|
-
var RunDecodeError = class extends S.TaggedError()("RunDecodeError", { message: S.String }) {};
|
|
205
|
-
var RunReadError = class extends S.TaggedError()("RunReadError", { message: S.String }) {};
|
|
206
|
-
S.TaggedError()("RunWriteError", { message: S.String });
|
|
207
|
-
var PlanMutationRunCommand = class extends S.TaggedClass()("PlanMutationRunCommand", {
|
|
208
|
-
configMutatePatterns: S.Array(S.String),
|
|
209
|
-
configMutatorNames: S.Array(S.String),
|
|
210
|
-
targetMutatePatterns: S.Array(S.String),
|
|
211
|
-
availableMutators: S.Array(S.String)
|
|
212
|
-
}) {};
|
|
213
|
-
var MutationRunPlan = class extends S.TaggedClass()("MutationRunPlan", {
|
|
214
|
-
mutatePatterns: S.Array(S.String),
|
|
215
|
-
mutatorNames: S.Array(S.String)
|
|
216
|
-
}) {};
|
|
217
|
-
//#endregion
|
|
218
|
-
//#region src/Run.schema.ts
|
|
219
|
-
const TypeId = "~stryker/mutation-run/StageError";
|
|
220
|
-
var StageError = class extends S.TaggedError(TypeId)("StageError", {
|
|
221
|
-
stage: S.Literals([
|
|
222
|
-
"prepare",
|
|
223
|
-
"instrument",
|
|
224
|
-
"dryRun",
|
|
225
|
-
"dryRunNoTests",
|
|
226
|
-
"mutationTest"
|
|
227
|
-
]),
|
|
228
|
-
reason: S.String,
|
|
229
|
-
cause: S.optional(S.Defect()),
|
|
230
|
-
command: S.optional(S.String)
|
|
231
|
-
}) {
|
|
232
|
-
[TypeId] = TypeId;
|
|
233
|
-
get exitClass() {
|
|
234
|
-
return STAGE_PRESENTATION[this.stage].exitClass;
|
|
235
|
-
}
|
|
236
|
-
get message() {
|
|
237
|
-
const failure = `${STAGE_PRESENTATION[this.stage].label} failed: ${this.reason}`;
|
|
238
|
-
return Match$1.value(this.command).pipe(Match$1.when(Match$1.nonEmptyString, (present) => `${failure} (command: ${present})`), Match$1.orElse(() => failure));
|
|
239
|
-
}
|
|
240
|
-
};
|
|
241
|
-
const STAGE_PRESENTATION = {
|
|
242
|
-
prepare: {
|
|
243
|
-
label: "Prepare",
|
|
244
|
-
exitClass: "ConfigError"
|
|
245
|
-
},
|
|
246
|
-
instrument: {
|
|
247
|
-
label: "Instrument",
|
|
248
|
-
exitClass: "RuntimeError"
|
|
249
|
-
},
|
|
250
|
-
dryRun: {
|
|
251
|
-
label: "Dry run",
|
|
252
|
-
exitClass: "RuntimeError"
|
|
253
|
-
},
|
|
254
|
-
dryRunNoTests: {
|
|
255
|
-
label: "Dry run",
|
|
256
|
-
exitClass: "ConfigError"
|
|
257
|
-
},
|
|
258
|
-
mutationTest: {
|
|
259
|
-
label: "Mutation testing",
|
|
260
|
-
exitClass: "RuntimeError"
|
|
261
|
-
}
|
|
262
|
-
};
|
|
263
|
-
var PrepareError = class extends S.TaggedError()("PrepareError", {
|
|
264
|
-
stage: S.Literal("prepare"),
|
|
265
|
-
reason: S.String
|
|
266
|
-
}) {
|
|
267
|
-
get message() {
|
|
268
|
-
return this.reason;
|
|
269
|
-
}
|
|
270
|
-
};
|
|
271
|
-
//#endregion
|
|
272
|
-
export { PluginLoadRefusedError as A, SkippedFileRow as C, StreamSchemaVersion as D, VerdictReached as E, ModeSignal as M, OutputMode as N, PeerFailureTag as O, RunStarted as S, VerdictMutant as T, RunFailed as _, FormatRegistryRow as a, RunPhase as b, Heartbeat as c, PhaseEntered as d, PlanKnown as f, RunEvent as g, RunDecodeError as h, FormatRegistryResolved as i, PluginNotFoundError as j, PluginLoadFailureReason as k, HelpRendered as l, PluginsReported as m, StageError as n, FrameworkContributionRow as o, PlanMutationRunCommand as p, FormatClaimShadowingRow as r, FrameworkModuleRow as s, PrepareError as t, MutationRunPlan as u, RunId as v, SkippedReported as w, RunReadError as x, RunMutantTested as y };
|