@systemfsoftware/stryker-js 13.1.0 → 14.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 +54 -0
- package/README.md +30 -0
- package/dist/Run.schema-DErVOVSj.d.mts +24 -0
- package/dist/Run.schema-DuaneDGd.mjs +57 -0
- package/dist/RunEnvironment.service-C8nNTyKa.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-C5FRZ4Ni.d.mts} +1680 -3070
- package/dist/index.d.mts +616 -99
- package/dist/index.mjs +1104 -26
- package/dist/main.mjs +47082 -28599
- package/dist/merge-config-DCQE_2cC.mjs +1473 -0
- package/dist/{merge-config-BVdwN_LJ.d.mts → merge-config-IXgoKiix.d.mts} +4 -4
- package/dist/promises.d.mts +3 -3
- package/dist/promises.mjs +1 -1
- package/dist/run-stages-CGUzIzPZ.mjs +20687 -0
- package/package.json +15 -14
- 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/dist/index.d.mts
CHANGED
|
@@ -1,23 +1,29 @@
|
|
|
1
|
-
import { c as mod_d_exports$
|
|
2
|
-
import { a as ImmutablePrimitive, i as Immutable, n as mergeConfigs, o as Primitive } from "./merge-config-
|
|
3
|
-
import {
|
|
4
|
-
import { $ as
|
|
1
|
+
import { c as mod_d_exports$9, i as mod_d_exports$5$1, l as Ignorer, n as mod_d_exports$2$1, o as mod_d_exports$7$1, t as mod_d_exports$8, u as Node_2 } from "./index-C5FRZ4Ni.mjs";
|
|
2
|
+
import { a as ImmutablePrimitive, i as Immutable, n as mergeConfigs, o as Primitive } from "./merge-config-IXgoKiix.mjs";
|
|
3
|
+
import { n as StageError } from "./Run.schema-DErVOVSj.mjs";
|
|
4
|
+
import { $ as makeRunEventStream, A as ReporterWorkerClient, B as ProjectFile, C as PluginSource, D as TestCoverage, E as SandboxHandle, F as WorkerLauncherShape, G as git_diff_service_d_exports, H as mod_d_exports$2$11, I as WorkerSpawnParams, J as RunIdentity, K as git_diff_schema_d_exports, L as SpawnedSocketWorker, M as reporterWorkerFactory, N as spawnReporterWorker, O as REPORTER_EVENT_BATCH_BOUND, P as WorkerLauncher, Q as RunEventStream, R as make, S as PluginKind, T as WorkerPluginSource, U as Framework, V as IncrementalReportSchema, W as GitDiff, X as RunEventDrain, Y as RunIdentityShape, Z as RunEventDrainLive, _ as EvaluatorPluginDescriptor, a as StageServices, at as StrykerError, b as PluginDescriptor, c as IdGeneratorShape, ct as ConfigFileNotFoundError, d as InstrumentDone, dt as ChildProcessCrashedError, et as ResolvedModeInput, f as PrepareDone, ft as OutOfMemoryError, g as AnyWorkerPluginSource, h as AnyWorkerPluginDescriptor, ht as WorkerExit, i as RunStageServices, it as mod_d_exports$1$7, j as SpawnReporterWorkerParams, k as ReporterStage, l as MutationTestDone, lt as ConfigFileUnreadableError, m as AnyPluginDescriptor, mt as WorkerBootTimeoutError, n as RunEnvironmentShape, nt as PhaseClock, o as WiredRunLayer, ot as ConfigError, p as PrepareExecutorArgs, pt as WorkerBootError, q as RunEvents, r as EnginePorts, rt as mod_d_exports$10, s as IdGenerator, st as ConfigFileInvalidError, t as RunEnvironment, tt as ResolvedMode, u as DryRunDone, ut as ConfigFileUnsupportedError, v as EvaluatorPluginSource, w as WorkerPluginDescriptor, x as PluginDescriptorOf, y as LoadedPlugins, z as Project } from "./RunEnvironment.service-C8nNTyKa.mjs";
|
|
5
5
|
import { Blueprint, Cell, Handle, Sandwich, Workflow } from "@systemfsoftware/effect-cell-types";
|
|
6
6
|
import * as S from "effect/Schema";
|
|
7
|
+
import * as Option from "effect/Option";
|
|
7
8
|
import * as Effect from "effect/Effect";
|
|
8
9
|
import * as Rpc from "effect/unstable/rpc/Rpc";
|
|
9
10
|
import * as RpcGroup from "effect/unstable/rpc/RpcGroup";
|
|
10
|
-
import "effect/
|
|
11
|
+
import * as Result from "effect/Result";
|
|
12
|
+
import "effect/Metric";
|
|
13
|
+
import * as Cause from "effect/Cause";
|
|
11
14
|
import * as FileSystem from "effect/FileSystem";
|
|
12
15
|
import * as Path from "effect/Path";
|
|
13
16
|
import * as Layer from "effect/Layer";
|
|
14
17
|
import "effect/Queue";
|
|
15
18
|
import * as Scope from "effect/Scope";
|
|
16
19
|
import * as RpcClient from "effect/unstable/rpc/RpcClient";
|
|
20
|
+
import "effect/DateTime";
|
|
21
|
+
import * as Stdio from "effect/Stdio";
|
|
17
22
|
import * as ChildProcessSpawner from "effect/unstable/process/ChildProcessSpawner";
|
|
18
23
|
import { RpcClientError } from "effect/unstable/rpc/RpcClientError";
|
|
19
24
|
import * as Socket from "effect/unstable/socket/Socket";
|
|
20
25
|
import { PlatformError } from "effect/PlatformError";
|
|
26
|
+
import { McpServer, Tool, Toolkit } from "effect/unstable/ai";
|
|
21
27
|
//#region src/admit-checker-answer.workflow.d.ts
|
|
22
28
|
declare const CheckerAnsweredUnrequested_base: S.Class<CheckerAnsweredUnrequested, S.TaggedStruct<"CheckerAnsweredUnrequested", {
|
|
23
29
|
readonly checkerName: S.String;
|
|
@@ -49,14 +55,14 @@ type CheckerCrash = ChildProcessCrashedError | OutOfMemoryError;
|
|
|
49
55
|
* which lets the retry combinator prove it handles every one of them.
|
|
50
56
|
*/
|
|
51
57
|
interface CheckerResourceService {
|
|
52
|
-
readonly check: (checkerName: string, mutants: readonly mod_d_exports$
|
|
53
|
-
readonly group: (checkerName: string, mutants: readonly mod_d_exports$
|
|
58
|
+
readonly check: (checkerName: string, mutants: readonly mod_d_exports$8.CheckerMutantWire[]) => Effect.Effect<Record<string, mod_d_exports$8.CheckResult>, CheckerCrash | mod_d_exports$8.CheckerFailed>;
|
|
59
|
+
readonly group: (checkerName: string, mutants: readonly mod_d_exports$8.CheckerMutantWire[]) => Effect.Effect<readonly (readonly string[])[], CheckerCrash | mod_d_exports$8.CheckerFailed>;
|
|
54
60
|
}
|
|
55
61
|
//#endregion
|
|
56
|
-
//#region src/Checker/Checker.
|
|
62
|
+
//#region src/Checker/Checker.plans.d.ts
|
|
57
63
|
declare const checkGroupedPlans: {
|
|
58
|
-
(checker: CheckerResourceService, checkerName: string, plans: readonly mod_d_exports$
|
|
59
|
-
(checkerName: string, plans: readonly mod_d_exports$
|
|
64
|
+
(checker: CheckerResourceService, checkerName: string, plans: readonly mod_d_exports$2$1.RunPlan[]): Effect.Effect<readonly (readonly [mod_d_exports$2$1.RunPlan, mod_d_exports$8.CheckResult])[], CheckerCrash | mod_d_exports$8.CheckerFailed | CheckerContractBroken>;
|
|
65
|
+
(checkerName: string, plans: readonly mod_d_exports$2$1.RunPlan[]): (checker: CheckerResourceService) => Effect.Effect<readonly (readonly [mod_d_exports$2$1.RunPlan, mod_d_exports$8.CheckResult])[], CheckerCrash | mod_d_exports$8.CheckerFailed | CheckerContractBroken>;
|
|
60
66
|
};
|
|
61
67
|
declare namespace mod_d_exports {
|
|
62
68
|
export { CheckerAnsweredUnrequested, CheckerContractBroken, CheckerCrash, CheckerResourceService, CheckerSkippedRequested, checkGroupedPlans };
|
|
@@ -126,7 +132,9 @@ declare const forkOptionsSchema: S.StructWithRest<S.Struct<{
|
|
|
126
132
|
readonly ignoreStatic: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
127
133
|
readonly incremental: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
128
134
|
readonly incrementalFile: S.withDecodingDefaultKey<S.String, never>;
|
|
135
|
+
readonly incrementalSources: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
129
136
|
readonly progressStreamFile: S.withDecodingDefaultKey<S.String, never>;
|
|
137
|
+
readonly since: S.optionalKey<S.String>;
|
|
130
138
|
readonly force: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
131
139
|
readonly fileLogLevel: S.withDecodingDefaultKey<S.Literals<readonly ["off", "fatal", "error", "warn", "info", "debug", "trace"]>, never>;
|
|
132
140
|
readonly inPlace: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
@@ -137,6 +145,11 @@ declare const forkOptionsSchema: S.StructWithRest<S.Struct<{
|
|
|
137
145
|
readonly mutator: S.withDecodingDefaultKey<S.Struct<{
|
|
138
146
|
readonly excludedMutations: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
139
147
|
readonly optInMutations: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
148
|
+
readonly mutantSetPolicy: S.withDecodingDefaultKey<S.Literals<readonly ["default", "full"]>, never>;
|
|
149
|
+
}>, never>;
|
|
150
|
+
readonly surfacing: S.withDecodingDefaultKey<S.Struct<{
|
|
151
|
+
readonly perLine: S.withDecodingDefaultKey<S.Int, never>;
|
|
152
|
+
readonly perFile: S.withDecodingDefaultKey<S.Int, never>;
|
|
140
153
|
}>, never>;
|
|
141
154
|
readonly packageManager: S.optionalKey<S.Literals<readonly ["npm", "yarn", "pnpm"]>>;
|
|
142
155
|
readonly plugins: S.withDecodingDefaultKey<S.$Array<S.declare<string, string>>, never>;
|
|
@@ -185,13 +198,14 @@ declare const forkOptionsSchema: S.StructWithRest<S.Struct<{
|
|
|
185
198
|
readonly allowEmpty: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
186
199
|
readonly ignorers: S.withDecodingDefaultKey<S.$Array<S.declare<string, string>>, never>;
|
|
187
200
|
readonly testFiles: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
201
|
+
readonly mutantIds: S.optionalKey<S.$Array<S.String>>;
|
|
188
202
|
readonly survivorsPriorReport: S.optionalKey<S.String>;
|
|
189
203
|
readonly extends: S.optionalKey<S.String>;
|
|
190
204
|
}>, readonly [S.$Record<S.String, S.Unknown>]>;
|
|
191
205
|
//#endregion
|
|
192
206
|
//#region src/config/default-options.d.ts
|
|
193
|
-
declare const createDefaultOptions: Effect.Effect<mod_d_exports$
|
|
194
|
-
declare const defaultOptions: Effect.Effect<Immutable<mod_d_exports$
|
|
207
|
+
declare const createDefaultOptions: Effect.Effect<mod_d_exports$5$1.StrykerOptions>;
|
|
208
|
+
declare const defaultOptions: Effect.Effect<Immutable<mod_d_exports$5$1.StrykerOptions>, never, never>;
|
|
195
209
|
//#endregion
|
|
196
210
|
//#region src/run/extends-step.workflow.d.ts
|
|
197
211
|
declare const ExtendsStepDecisionTypeId: unique symbol;
|
|
@@ -298,7 +312,9 @@ declare const ConfigFromFile_base: S.Class<ConfigFromFile, S.TaggedStruct<"Confi
|
|
|
298
312
|
readonly ignoreStatic: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
299
313
|
readonly incremental: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
300
314
|
readonly incrementalFile: S.withDecodingDefaultKey<S.String, never>;
|
|
315
|
+
readonly incrementalSources: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
301
316
|
readonly progressStreamFile: S.withDecodingDefaultKey<S.String, never>;
|
|
317
|
+
readonly since: S.optionalKey<S.String>;
|
|
302
318
|
readonly force: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
303
319
|
readonly fileLogLevel: S.withDecodingDefaultKey<S.Literals<readonly ["off", "fatal", "error", "warn", "info", "debug", "trace"]>, never>;
|
|
304
320
|
readonly inPlace: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
@@ -309,6 +325,11 @@ declare const ConfigFromFile_base: S.Class<ConfigFromFile, S.TaggedStruct<"Confi
|
|
|
309
325
|
readonly mutator: S.withDecodingDefaultKey<S.Struct<{
|
|
310
326
|
readonly excludedMutations: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
311
327
|
readonly optInMutations: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
328
|
+
readonly mutantSetPolicy: S.withDecodingDefaultKey<S.Literals<readonly ["default", "full"]>, never>;
|
|
329
|
+
}>, never>;
|
|
330
|
+
readonly surfacing: S.withDecodingDefaultKey<S.Struct<{
|
|
331
|
+
readonly perLine: S.withDecodingDefaultKey<S.Int, never>;
|
|
332
|
+
readonly perFile: S.withDecodingDefaultKey<S.Int, never>;
|
|
312
333
|
}>, never>;
|
|
313
334
|
readonly packageManager: S.optionalKey<S.Literals<readonly ["npm", "yarn", "pnpm"]>>;
|
|
314
335
|
readonly plugins: S.withDecodingDefaultKey<S.$Array<S.declare<string, string>>, never>;
|
|
@@ -393,7 +414,9 @@ declare const ConfigFromDefaults_base: S.Class<ConfigFromDefaults, S.TaggedStruc
|
|
|
393
414
|
readonly ignoreStatic: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
394
415
|
readonly incremental: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
395
416
|
readonly incrementalFile: S.withDecodingDefaultKey<S.String, never>;
|
|
417
|
+
readonly incrementalSources: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
396
418
|
readonly progressStreamFile: S.withDecodingDefaultKey<S.String, never>;
|
|
419
|
+
readonly since: S.optionalKey<S.String>;
|
|
397
420
|
readonly force: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
398
421
|
readonly fileLogLevel: S.withDecodingDefaultKey<S.Literals<readonly ["off", "fatal", "error", "warn", "info", "debug", "trace"]>, never>;
|
|
399
422
|
readonly inPlace: S.withDecodingDefaultKey<S.Boolean, never>;
|
|
@@ -404,6 +427,11 @@ declare const ConfigFromDefaults_base: S.Class<ConfigFromDefaults, S.TaggedStruc
|
|
|
404
427
|
readonly mutator: S.withDecodingDefaultKey<S.Struct<{
|
|
405
428
|
readonly excludedMutations: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
406
429
|
readonly optInMutations: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
430
|
+
readonly mutantSetPolicy: S.withDecodingDefaultKey<S.Literals<readonly ["default", "full"]>, never>;
|
|
431
|
+
}>, never>;
|
|
432
|
+
readonly surfacing: S.withDecodingDefaultKey<S.Struct<{
|
|
433
|
+
readonly perLine: S.withDecodingDefaultKey<S.Int, never>;
|
|
434
|
+
readonly perFile: S.withDecodingDefaultKey<S.Int, never>;
|
|
407
435
|
}>, never>;
|
|
408
436
|
readonly packageManager: S.optionalKey<S.Literals<readonly ["npm", "yarn", "pnpm"]>>;
|
|
409
437
|
readonly plugins: S.withDecodingDefaultKey<S.$Array<S.declare<string, string>>, never>;
|
|
@@ -465,21 +493,23 @@ type ValidationSchemaDocument<A = unknown> = {
|
|
|
465
493
|
readonly [key: string]: A;
|
|
466
494
|
};
|
|
467
495
|
//#endregion
|
|
468
|
-
//#region src/run/load-config.
|
|
496
|
+
//#region src/run/load-config.d.ts
|
|
469
497
|
interface ConfigInvocation {
|
|
470
498
|
readonly command: 'run' | 'merge-reports';
|
|
471
|
-
readonly mode: OutputMode;
|
|
499
|
+
readonly mode: mod_d_exports$10.OutputMode;
|
|
472
500
|
}
|
|
473
501
|
declare const forkCoreSchema: import("effect/JsonSchema").JsonSchema;
|
|
474
502
|
declare const describeErrors: (error: S.SchemaError) => readonly string[];
|
|
475
503
|
declare const readConfig: {
|
|
476
|
-
(invocation: ConfigInvocation): (cliOptions: mod_d_exports$
|
|
477
|
-
(cliOptions: mod_d_exports$
|
|
504
|
+
(invocation: ConfigInvocation): (cliOptions: mod_d_exports$5$1.PartialStrykerOptions) => Effect.Effect<mod_d_exports$5$1.StrykerOptions, ConfigReadError, FileSystem.FileSystem | Path.Path>;
|
|
505
|
+
(cliOptions: mod_d_exports$5$1.PartialStrykerOptions, invocation: ConfigInvocation): Effect.Effect<mod_d_exports$5$1.StrykerOptions, ConfigReadError, FileSystem.FileSystem | Path.Path>;
|
|
478
506
|
};
|
|
507
|
+
//#endregion
|
|
508
|
+
//#region src/run/load-config.cell.d.ts
|
|
479
509
|
declare const loadConfigCell: Sandwich.WrittenFrom<{
|
|
480
|
-
readonly cliOptions: mod_d_exports$
|
|
510
|
+
readonly cliOptions: mod_d_exports$5$1.PartialStrykerOptions;
|
|
481
511
|
readonly targetMutatePatterns: readonly string[] | undefined;
|
|
482
|
-
}, ConfigReadError, FileSystem.FileSystem | Path.Path | RunEnvironment | RunEvents,
|
|
512
|
+
}, ConfigReadError, import("effect/FileSystem").FileSystem | import("effect/Path").Path | PhaseClock | RunEnvironment | RunEvents, import("effect/Schema").Union<readonly [typeof ConfigFromFile, typeof ConfigFromDefaults]>, {
|
|
483
513
|
ConfigFromFile: ({ options }: {
|
|
484
514
|
readonly _tag: "ConfigFromFile";
|
|
485
515
|
readonly options: {
|
|
@@ -516,7 +546,9 @@ declare const loadConfigCell: Sandwich.WrittenFrom<{
|
|
|
516
546
|
readonly ignoreStatic: boolean;
|
|
517
547
|
readonly incremental: boolean;
|
|
518
548
|
readonly incrementalFile: string;
|
|
549
|
+
readonly incrementalSources: readonly string[];
|
|
519
550
|
readonly progressStreamFile: string;
|
|
551
|
+
readonly since?: string;
|
|
520
552
|
readonly force: boolean;
|
|
521
553
|
readonly fileLogLevel: "debug" | "error" | "fatal" | "info" | "off" | "trace" | "warn";
|
|
522
554
|
readonly inPlace: boolean;
|
|
@@ -527,6 +559,11 @@ declare const loadConfigCell: Sandwich.WrittenFrom<{
|
|
|
527
559
|
readonly mutator: {
|
|
528
560
|
readonly excludedMutations: readonly string[];
|
|
529
561
|
readonly optInMutations: readonly string[];
|
|
562
|
+
readonly mutantSetPolicy: "default" | "full";
|
|
563
|
+
};
|
|
564
|
+
readonly surfacing: {
|
|
565
|
+
readonly perLine: number;
|
|
566
|
+
readonly perFile: number;
|
|
530
567
|
};
|
|
531
568
|
readonly packageManager?: "npm" | "pnpm" | "yarn";
|
|
532
569
|
readonly plugins: readonly string[];
|
|
@@ -614,7 +651,9 @@ declare const loadConfigCell: Sandwich.WrittenFrom<{
|
|
|
614
651
|
readonly ignoreStatic: boolean;
|
|
615
652
|
readonly incremental: boolean;
|
|
616
653
|
readonly incrementalFile: string;
|
|
654
|
+
readonly incrementalSources: readonly string[];
|
|
617
655
|
readonly progressStreamFile: string;
|
|
656
|
+
readonly since?: string;
|
|
618
657
|
readonly force: boolean;
|
|
619
658
|
readonly fileLogLevel: "debug" | "error" | "fatal" | "info" | "off" | "trace" | "warn";
|
|
620
659
|
readonly inPlace: boolean;
|
|
@@ -625,6 +664,11 @@ declare const loadConfigCell: Sandwich.WrittenFrom<{
|
|
|
625
664
|
readonly mutator: {
|
|
626
665
|
readonly excludedMutations: readonly string[];
|
|
627
666
|
readonly optInMutations: readonly string[];
|
|
667
|
+
readonly mutantSetPolicy: "default" | "full";
|
|
668
|
+
};
|
|
669
|
+
readonly surfacing: {
|
|
670
|
+
readonly perLine: number;
|
|
671
|
+
readonly perFile: number;
|
|
628
672
|
};
|
|
629
673
|
readonly packageManager?: "npm" | "pnpm" | "yarn";
|
|
630
674
|
readonly plugins: readonly string[];
|
|
@@ -708,7 +752,9 @@ declare const loadConfigCell: Sandwich.WrittenFrom<{
|
|
|
708
752
|
readonly ignoreStatic: boolean;
|
|
709
753
|
readonly incremental: boolean;
|
|
710
754
|
readonly incrementalFile: string;
|
|
755
|
+
readonly incrementalSources: readonly string[];
|
|
711
756
|
readonly progressStreamFile: string;
|
|
757
|
+
readonly since?: string;
|
|
712
758
|
readonly force: boolean;
|
|
713
759
|
readonly fileLogLevel: "debug" | "error" | "fatal" | "info" | "off" | "trace" | "warn";
|
|
714
760
|
readonly inPlace: boolean;
|
|
@@ -719,6 +765,11 @@ declare const loadConfigCell: Sandwich.WrittenFrom<{
|
|
|
719
765
|
readonly mutator: {
|
|
720
766
|
readonly excludedMutations: readonly string[];
|
|
721
767
|
readonly optInMutations: readonly string[];
|
|
768
|
+
readonly mutantSetPolicy: "default" | "full";
|
|
769
|
+
};
|
|
770
|
+
readonly surfacing: {
|
|
771
|
+
readonly perLine: number;
|
|
772
|
+
readonly perFile: number;
|
|
722
773
|
};
|
|
723
774
|
readonly packageManager?: "npm" | "pnpm" | "yarn";
|
|
724
775
|
readonly plugins: readonly string[];
|
|
@@ -806,7 +857,9 @@ declare const loadConfigCell: Sandwich.WrittenFrom<{
|
|
|
806
857
|
readonly ignoreStatic: boolean;
|
|
807
858
|
readonly incremental: boolean;
|
|
808
859
|
readonly incrementalFile: string;
|
|
860
|
+
readonly incrementalSources: readonly string[];
|
|
809
861
|
readonly progressStreamFile: string;
|
|
862
|
+
readonly since?: string;
|
|
810
863
|
readonly force: boolean;
|
|
811
864
|
readonly fileLogLevel: "debug" | "error" | "fatal" | "info" | "off" | "trace" | "warn";
|
|
812
865
|
readonly inPlace: boolean;
|
|
@@ -817,6 +870,11 @@ declare const loadConfigCell: Sandwich.WrittenFrom<{
|
|
|
817
870
|
readonly mutator: {
|
|
818
871
|
readonly excludedMutations: readonly string[];
|
|
819
872
|
readonly optInMutations: readonly string[];
|
|
873
|
+
readonly mutantSetPolicy: "default" | "full";
|
|
874
|
+
};
|
|
875
|
+
readonly surfacing: {
|
|
876
|
+
readonly perLine: number;
|
|
877
|
+
readonly perFile: number;
|
|
820
878
|
};
|
|
821
879
|
readonly packageManager?: "npm" | "pnpm" | "yarn";
|
|
822
880
|
readonly plugins: readonly string[];
|
|
@@ -867,10 +925,12 @@ declare const loadConfigCell: Sandwich.WrittenFrom<{
|
|
|
867
925
|
ConfigOptionsRefused: ({ message }: {
|
|
868
926
|
readonly _tag: "ConfigOptionsRefused";
|
|
869
927
|
readonly message: string;
|
|
870
|
-
}) => Effect.Effect<never, ConfigError, RunEnvironment | RunEvents>;
|
|
871
|
-
CommandRejected: ({ issue }: Sandwich.CommandRejected) => Effect.Effect<never, ConfigError, RunEnvironment | RunEvents>;
|
|
928
|
+
}) => Effect.Effect<never, ConfigError, PhaseClock | RunEnvironment | RunEvents>;
|
|
929
|
+
CommandRejected: ({ issue }: Sandwich.CommandRejected) => Effect.Effect<never, ConfigError, PhaseClock | RunEnvironment | RunEvents>;
|
|
872
930
|
}>;
|
|
873
|
-
|
|
931
|
+
//#endregion
|
|
932
|
+
//#region src/run/validate-options.d.ts
|
|
933
|
+
declare const validateOptions: (<A = unknown>(schema: ValidationSchemaDocument) => (options: Record<string, A>) => Effect.Effect<mod_d_exports$5$1.StrykerOptions, ConfigError>) & (<A = unknown>(options: Record<string, A>, schema: ValidationSchemaDocument) => Effect.Effect<mod_d_exports$5$1.StrykerOptions, ConfigError>);
|
|
874
934
|
declare namespace mod_d_exports$1 {
|
|
875
935
|
export { ConfigDocumentSchema, ConfigError, ConfigFileInvalidError, ConfigFileNotFoundError, ConfigFileUnreadableError, ConfigFileUnsupportedError, ConfigInvocation, ExtendsRefusalReason, ExtendsStepDecision, ExtendsStepDocument, ExtendsStepDocumentSchema, ExtendsStepDone, ExtendsStepRead, ExtendsStepRefused, ExtendsStepResolve, ExtendsStepState, ExtendsStepStateSchema, FileMatcher, Immutable, ImmutablePrimitive, ImportedModuleSchema, MergeCommand, MergeResult, Primitive, ReadConfigCommand, ValidationSchemaDocument, createDefaultOptions, decideExtendsStep, defaultOptions, describeErrors, extendsPropertySchema, forkCoreSchema, forkOptionsSchema, importModule, initialExtendsStepState, loadConfigCell, mergeConfigs, readConfig, survivorsPriorReport, validateOptions };
|
|
876
936
|
}
|
|
@@ -879,46 +939,165 @@ declare namespace mod_d_exports$1 {
|
|
|
879
939
|
declare const nodePlatformLayer: Layer.Layer<EnginePorts>;
|
|
880
940
|
//#endregion
|
|
881
941
|
//#region src/run/host.service.d.ts
|
|
882
|
-
type StrykerRun = (options: mod_d_exports$
|
|
942
|
+
type StrykerRun = (options: mod_d_exports$5$1.PartialStrykerOptions, targetMutatePatterns?: string[]) => Effect.Effect<MutationTestDone, StageError, never>;
|
|
883
943
|
//#endregion
|
|
884
944
|
//#region src/run/run-stages.cell.d.ts
|
|
885
945
|
declare const mutationTestCell: Cell.Cell<PrepareExecutorArgs, MutationTestDone, StageError, StageServices>;
|
|
946
|
+
//#endregion
|
|
947
|
+
//#region src/run/run-stages.d.ts
|
|
886
948
|
declare const strykerCell: {
|
|
887
|
-
(options: mod_d_exports$
|
|
888
|
-
(targetMutatePatterns?: readonly string[]): (options: mod_d_exports$
|
|
949
|
+
(options: mod_d_exports$5$1.PartialStrykerOptions, targetMutatePatterns?: readonly string[]): Effect.Effect<MutationTestDone, StageError | PlatformError, EnginePorts>;
|
|
950
|
+
(targetMutatePatterns?: readonly string[]): (options: mod_d_exports$5$1.PartialStrykerOptions) => Effect.Effect<MutationTestDone, StageError | PlatformError, EnginePorts>;
|
|
889
951
|
};
|
|
890
952
|
declare namespace mod_d_exports$2 {
|
|
891
953
|
export { DryRunDone, EnginePorts, IdGenerator, IdGeneratorShape, IncrementalReportSchema, InstrumentDone, MutationTestDone, PrepareDone, PrepareExecutorArgs, Project, ProjectFile, RunEnvironment, RunEnvironmentShape, RunStageServices, SandboxHandle, StageError, StageServices, StrykerError, StrykerRun, TestCoverage, WiredRunLayer, mutationTestCell, nodePlatformLayer, strykerCell };
|
|
892
954
|
}
|
|
955
|
+
declare namespace import_closure_cell_d_exports {
|
|
956
|
+
export { ImportClosureAnalysis, ImportClosureInput, TestFileClosureDigest, analyzeImportClosure };
|
|
957
|
+
}
|
|
958
|
+
interface ImportClosureInput {
|
|
959
|
+
readonly rootDir: string;
|
|
960
|
+
readonly projectFiles: readonly string[];
|
|
961
|
+
readonly testFiles: readonly string[];
|
|
962
|
+
readonly globalInputs?: readonly string[];
|
|
963
|
+
}
|
|
964
|
+
interface TestFileClosureDigest {
|
|
965
|
+
readonly testFile: string;
|
|
966
|
+
readonly files: readonly string[];
|
|
967
|
+
readonly open: boolean;
|
|
968
|
+
readonly digest: string;
|
|
969
|
+
}
|
|
970
|
+
interface ImportClosureAnalysis {
|
|
971
|
+
readonly closures: readonly TestFileClosureDigest[];
|
|
972
|
+
readonly projectDigest: string;
|
|
973
|
+
}
|
|
974
|
+
declare const analyzeImportClosure: (input: ImportClosureInput) => Effect.Effect<ImportClosureAnalysis, PlatformError, FileSystem.FileSystem | Path.Path>;
|
|
975
|
+
//#endregion
|
|
976
|
+
//#region src/Mcp/mcp-server.cell.d.ts
|
|
977
|
+
interface McpServerOptions {
|
|
978
|
+
readonly basePath: string;
|
|
979
|
+
}
|
|
980
|
+
declare const mcpServerLayer: ({ basePath }: McpServerOptions) => Layer.Layer<McpServer.McpServer | import("effect/unstable/ai/McpSchema").McpServerClient, Cause.IllegalArgumentError, import("effect/Stdio").Stdio>;
|
|
981
|
+
//#endregion
|
|
982
|
+
//#region src/Feedback/Feedback.schema.d.ts
|
|
983
|
+
declare const FeedbackUnusable_base: S.Class<FeedbackUnusable, S.TaggedStruct<"FeedbackUnusable", {
|
|
984
|
+
readonly reason: S.String;
|
|
985
|
+
}>, import("effect/Cause").YieldableError>;
|
|
986
|
+
declare class FeedbackUnusable extends FeedbackUnusable_base {
|
|
987
|
+
get message(): string;
|
|
988
|
+
}
|
|
989
|
+
//#endregion
|
|
990
|
+
//#region src/Mcp/mcp-tools.schema.d.ts
|
|
991
|
+
declare const MutantDetail: S.Struct<{
|
|
992
|
+
readonly id: S.brand<S.String, "MutantId">;
|
|
993
|
+
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
994
|
+
readonly coveringTests: S.$Array<S.String>;
|
|
995
|
+
readonly killedBy: S.NullOr<S.String>;
|
|
996
|
+
readonly reproducer: S.String;
|
|
997
|
+
readonly diff: S.NullOr<S.String>;
|
|
998
|
+
}>;
|
|
999
|
+
type MutantDetail = typeof MutantDetail.Type;
|
|
1000
|
+
declare const MutantUnusable_base: S.Class<MutantUnusable, S.TaggedStruct<"MutantUnusable", {
|
|
1001
|
+
readonly id: S.brand<S.String, "MutantId">;
|
|
1002
|
+
}>, import("effect/Cause").YieldableError>;
|
|
1003
|
+
declare class MutantUnusable extends MutantUnusable_base {
|
|
1004
|
+
get message(): string;
|
|
1005
|
+
}
|
|
1006
|
+
declare const RerunUnusable_base: S.Class<RerunUnusable, S.TaggedStruct<"RerunUnusable", {
|
|
1007
|
+
readonly id: S.brand<S.String, "MutantId">;
|
|
1008
|
+
readonly reason: S.String;
|
|
1009
|
+
}>, import("effect/Cause").YieldableError>;
|
|
1010
|
+
declare class RerunUnusable extends RerunUnusable_base {
|
|
1011
|
+
get message(): string;
|
|
1012
|
+
}
|
|
1013
|
+
declare const ShowMutantFailure: S.Union<readonly [typeof MutantUnusable, typeof FeedbackUnusable]>;
|
|
1014
|
+
declare const RerunMutantFailure: S.Union<readonly [typeof MutantUnusable, typeof RerunUnusable]>;
|
|
1015
|
+
//#endregion
|
|
1016
|
+
//#region src/Mcp/mcp-tools.d.ts
|
|
1017
|
+
declare const mcpToolkit: Toolkit.Toolkit<{
|
|
1018
|
+
readonly list_survivors: Tool.Tool<"list_survivors", {
|
|
1019
|
+
readonly parameters: Tool.EmptyParams;
|
|
1020
|
+
readonly success: S.$Array<S.Struct<{
|
|
1021
|
+
readonly id: S.brand<S.String, "MutantId">;
|
|
1022
|
+
readonly fileName: S.String;
|
|
1023
|
+
readonly line: S.Int;
|
|
1024
|
+
}>>;
|
|
1025
|
+
readonly failure: typeof FeedbackUnusable;
|
|
1026
|
+
readonly failureMode: "error";
|
|
1027
|
+
}, FileSystem.FileSystem | Path.Path>;
|
|
1028
|
+
readonly report_usefulness: Tool.Tool<"report_usefulness", {
|
|
1029
|
+
readonly parameters: S.Struct<{
|
|
1030
|
+
readonly id: S.brand<S.String, "MutantId">;
|
|
1031
|
+
readonly judgment: S.Literals<readonly ["useful", "not-useful"]>;
|
|
1032
|
+
readonly reason: S.optional<S.NullOr<S.String>>;
|
|
1033
|
+
}>;
|
|
1034
|
+
readonly success: typeof mod_d_exports$1$7.FeedbackReported;
|
|
1035
|
+
readonly failure: typeof FeedbackUnusable;
|
|
1036
|
+
readonly failureMode: "error";
|
|
1037
|
+
}, FileSystem.FileSystem | Path.Path>;
|
|
1038
|
+
readonly rerun_mutant: Tool.Tool<"rerun_mutant", {
|
|
1039
|
+
readonly parameters: S.Struct<{
|
|
1040
|
+
readonly id: S.brand<S.String, "MutantId">;
|
|
1041
|
+
}>;
|
|
1042
|
+
readonly success: S.Struct<{
|
|
1043
|
+
readonly id: S.brand<S.String, "MutantId">;
|
|
1044
|
+
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
1045
|
+
readonly coveringTests: S.$Array<S.String>;
|
|
1046
|
+
readonly killedBy: S.NullOr<S.String>;
|
|
1047
|
+
readonly reproducer: S.String;
|
|
1048
|
+
readonly diff: S.NullOr<S.String>;
|
|
1049
|
+
}>;
|
|
1050
|
+
readonly failure: S.Union<readonly [typeof MutantUnusable, typeof RerunUnusable]>;
|
|
1051
|
+
readonly failureMode: "error";
|
|
1052
|
+
}, ChildProcessSpawner.ChildProcessSpawner | FileSystem.FileSystem | GitDiff | Path.Path | Stdio.Stdio | WorkerLauncher>;
|
|
1053
|
+
readonly show_mutant: Tool.Tool<"show_mutant", {
|
|
1054
|
+
readonly parameters: S.Struct<{
|
|
1055
|
+
readonly id: S.brand<S.String, "MutantId">;
|
|
1056
|
+
}>;
|
|
1057
|
+
readonly success: S.Struct<{
|
|
1058
|
+
readonly id: S.brand<S.String, "MutantId">;
|
|
1059
|
+
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
1060
|
+
readonly coveringTests: S.$Array<S.String>;
|
|
1061
|
+
readonly killedBy: S.NullOr<S.String>;
|
|
1062
|
+
readonly reproducer: S.String;
|
|
1063
|
+
readonly diff: S.NullOr<S.String>;
|
|
1064
|
+
}>;
|
|
1065
|
+
readonly failure: S.Union<readonly [typeof MutantUnusable, typeof FeedbackUnusable]>;
|
|
1066
|
+
readonly failureMode: "error";
|
|
1067
|
+
}, FileSystem.FileSystem | Path.Path>;
|
|
1068
|
+
}>;
|
|
1069
|
+
declare namespace mod_d_exports$3 {
|
|
1070
|
+
export { McpServerOptions, MutantDetail, MutantUnusable, RerunMutantFailure, ShowMutantFailure, mcpServerLayer, mcpToolkit };
|
|
1071
|
+
}
|
|
893
1072
|
//#endregion
|
|
894
1073
|
//#region src/TestRunner.schema.d.ts
|
|
895
|
-
type PooledTestRunnerError = mod_d_exports$
|
|
1074
|
+
type PooledTestRunnerError = mod_d_exports$9.TestRunnerFailed | ChildProcessCrashedError | OutOfMemoryError;
|
|
896
1075
|
//#endregion
|
|
897
1076
|
//#region src/pooled-test-runner.handle.d.ts
|
|
898
1077
|
declare const TypeId: unique symbol;
|
|
899
1078
|
type TypeId = typeof TypeId;
|
|
900
1079
|
declare const PooledTestRunner: Handle.Definition<typeof TypeId, {
|
|
901
|
-
readonly capabilities: Effect.Effect<mod_d_exports$
|
|
1080
|
+
readonly capabilities: Effect.Effect<mod_d_exports$9.TestRunnerCapabilities, PooledTestRunnerError>;
|
|
902
1081
|
readonly init: Effect.Effect<void, PooledTestRunnerError>;
|
|
903
|
-
readonly dryRun: (options: mod_d_exports$
|
|
904
|
-
readonly mutantRun: (options: mod_d_exports$
|
|
1082
|
+
readonly dryRun: (options: mod_d_exports$9.DryRunOptions) => Effect.Effect<mod_d_exports$9.DryRunResult, PooledTestRunnerError>;
|
|
1083
|
+
readonly mutantRun: (options: mod_d_exports$2$1.MutantRunOptions) => Effect.Effect<mod_d_exports$9.MutantRunResult, PooledTestRunnerError>;
|
|
905
1084
|
}, never, never>;
|
|
906
1085
|
type PooledTestRunner = Handle.Of<typeof PooledTestRunner>;
|
|
907
1086
|
//#endregion
|
|
908
1087
|
//#region src/command-runner.blueprint.d.ts
|
|
909
|
-
declare const isCommandRunner: (name: mod_d_exports$
|
|
1088
|
+
declare const isCommandRunner: (name: mod_d_exports$5$1.TestRunnerConfig) => name is 'command';
|
|
910
1089
|
//#endregion
|
|
911
1090
|
//#region src/TestRunner.blueprint.d.ts
|
|
912
1091
|
interface ChildProcessTestRunnerParams {
|
|
913
|
-
readonly options: mod_d_exports$
|
|
914
|
-
readonly fileDescriptions: mod_d_exports$2$
|
|
1092
|
+
readonly options: mod_d_exports$5$1.StrykerOptions;
|
|
1093
|
+
readonly fileDescriptions: mod_d_exports$2$11.FileDescriptions;
|
|
915
1094
|
readonly sandboxWorkingDirectory: string;
|
|
916
1095
|
readonly workerEntrypoint: string;
|
|
917
1096
|
readonly idGenerator: IdGeneratorShape;
|
|
918
1097
|
}
|
|
919
1098
|
interface TestRunnerBuildContext {
|
|
920
|
-
readonly options: mod_d_exports$
|
|
921
|
-
readonly fileDescriptions: mod_d_exports$2$
|
|
1099
|
+
readonly options: mod_d_exports$5$1.StrykerOptions;
|
|
1100
|
+
readonly fileDescriptions: mod_d_exports$2$11.FileDescriptions;
|
|
922
1101
|
readonly sandboxWorkingDirectory: string;
|
|
923
1102
|
readonly idGenerator: IdGeneratorShape;
|
|
924
1103
|
readonly retire: Effect.Effect<void>;
|
|
@@ -933,98 +1112,436 @@ declare const buildTestRunner: {
|
|
|
933
1112
|
//#region src/vm-runner.d.ts
|
|
934
1113
|
declare const vmRunnerName = "vm";
|
|
935
1114
|
declare const vmRunnerPluginUrl: () => string;
|
|
936
|
-
declare const isVmRunner: (name: mod_d_exports$
|
|
937
|
-
declare const vmTestRunnerConfig: () => mod_d_exports$
|
|
938
|
-
declare const testRunnerConfigOf: (configured: mod_d_exports$
|
|
939
|
-
declare namespace mod_d_exports$
|
|
1115
|
+
declare const isVmRunner: (name: mod_d_exports$5$1.TestRunnerConfig) => name is typeof vmRunnerName;
|
|
1116
|
+
declare const vmTestRunnerConfig: () => mod_d_exports$5$1.TestRunnerCustomConfig;
|
|
1117
|
+
declare const testRunnerConfigOf: (configured: mod_d_exports$5$1.TestRunnerConfig) => mod_d_exports$5$1.TestRunnerConfig;
|
|
1118
|
+
declare namespace mod_d_exports$4 {
|
|
940
1119
|
export { AnyPluginDescriptor, AnyWorkerPluginDescriptor, AnyWorkerPluginSource, EvaluatorPluginDescriptor, EvaluatorPluginSource, Framework, Ignorer, LoadedPlugins, Node_2 as Node, PluginDescriptor, PluginDescriptorOf, PluginKind, PluginSource, PooledTestRunner, PooledTestRunnerError, REPORTER_EVENT_BATCH_BOUND, ReporterStage, ReporterWorkerClient, SpawnReporterWorkerParams, TestRunnerBuildContext, WorkerPluginDescriptor, WorkerPluginSource, buildTestRunner, isCommandRunner, isVmRunner, makeChildProcessTestRunner, reporterWorkerFactory, spawnReporterWorker, testRunnerConfigOf, vmRunnerPluginUrl, vmTestRunnerConfig };
|
|
941
1120
|
}
|
|
942
1121
|
//#endregion
|
|
943
1122
|
//#region src/reporting/metrics-from-report.schema.d.ts
|
|
944
1123
|
declare const MetricsResultFromReport_base: S.Class<MetricsResultFromReport, S.Struct<{
|
|
945
1124
|
readonly name: S.String;
|
|
946
|
-
readonly metrics: typeof mod_d_exports$
|
|
947
|
-
readonly childResults: S.$Array<S.suspend<S.Codec<mod_d_exports$
|
|
948
|
-
}>, mod_d_exports$
|
|
1125
|
+
readonly metrics: typeof mod_d_exports$7$1.Metrics;
|
|
1126
|
+
readonly childResults: S.$Array<S.suspend<S.Codec<mod_d_exports$7$1.MetricsResult, mod_d_exports$7$1.MetricsResultEncoded, never, never>>>;
|
|
1127
|
+
}>, mod_d_exports$7$1.MetricsResultEncoded>;
|
|
949
1128
|
declare class MetricsResultFromReport extends MetricsResultFromReport_base {}
|
|
950
1129
|
//#endregion
|
|
951
1130
|
//#region src/reporting/metrics-from-report.d.ts
|
|
952
|
-
type Files = Readonly<Record<string, mod_d_exports$
|
|
1131
|
+
type Files = Readonly<Record<string, mod_d_exports$7$1.FileResult>>;
|
|
953
1132
|
declare const metricsResultFromFiles: (files: Files) => MetricsResultFromReport;
|
|
954
1133
|
//#endregion
|
|
1134
|
+
//#region src/reporting/static-verdict.d.ts
|
|
1135
|
+
declare const staticVerdictOf: (results: readonly mod_d_exports$2$1.RunMutantResult[]) => mod_d_exports$1$7.StaticVerdict | null;
|
|
1136
|
+
//#endregion
|
|
955
1137
|
//#region src/reporting/verdict-envelope.schema.d.ts
|
|
956
1138
|
declare const VerdictEnvelope_base: S.Class<VerdictEnvelope, S.Struct<{
|
|
957
|
-
readonly schemaVersion: S.Literal<"
|
|
1139
|
+
readonly schemaVersion: S.Literal<"2.0">;
|
|
958
1140
|
readonly runId: S.brand<S.String, "RunId">;
|
|
959
1141
|
readonly mode: S.Literals<readonly ["human", "machine"]>;
|
|
960
1142
|
readonly signal: S.Literals<readonly ["flag", "env", "tty", "agent", "tool"]>;
|
|
961
1143
|
readonly score: S.NullOr<S.Finite>;
|
|
962
|
-
readonly thresholds: S.
|
|
963
|
-
readonly high:
|
|
964
|
-
readonly low:
|
|
965
|
-
readonly break:
|
|
966
|
-
}, {
|
|
967
|
-
readonly high: number;
|
|
968
|
-
readonly low: number;
|
|
969
|
-
readonly break: number | null;
|
|
1144
|
+
readonly thresholds: S.Struct<{
|
|
1145
|
+
readonly high: S.Finite;
|
|
1146
|
+
readonly low: S.Finite;
|
|
1147
|
+
readonly break: S.NullOr<S.Finite>;
|
|
970
1148
|
}>;
|
|
971
|
-
readonly counts: typeof mod_d_exports$
|
|
1149
|
+
readonly counts: typeof mod_d_exports$7$1.Metrics;
|
|
972
1150
|
readonly reportFile: S.NullOr<S.decodeTo<S.brand<S.String, "CanonicalFileName">, S.String, never, never>>;
|
|
973
1151
|
readonly mutants: S.$Array<S.Struct<{
|
|
974
|
-
readonly id: S.
|
|
1152
|
+
readonly id: S.String;
|
|
975
1153
|
readonly file: S.String;
|
|
976
|
-
readonly location: S.
|
|
977
|
-
readonly start: {
|
|
978
|
-
readonly line:
|
|
979
|
-
readonly column:
|
|
980
|
-
}
|
|
981
|
-
readonly end: {
|
|
982
|
-
readonly line:
|
|
983
|
-
readonly column:
|
|
984
|
-
}
|
|
985
|
-
}, {
|
|
986
|
-
readonly start: {
|
|
987
|
-
readonly line: number;
|
|
988
|
-
readonly column: number;
|
|
989
|
-
};
|
|
990
|
-
readonly end: {
|
|
991
|
-
readonly line: number;
|
|
992
|
-
readonly column: number;
|
|
993
|
-
};
|
|
1154
|
+
readonly location: S.Struct<{
|
|
1155
|
+
readonly start: S.Struct<{
|
|
1156
|
+
readonly line: S.Int;
|
|
1157
|
+
readonly column: S.Int;
|
|
1158
|
+
}>;
|
|
1159
|
+
readonly end: S.Struct<{
|
|
1160
|
+
readonly line: S.Int;
|
|
1161
|
+
readonly column: S.Int;
|
|
1162
|
+
}>;
|
|
994
1163
|
}>;
|
|
995
1164
|
readonly mutator: S.String;
|
|
996
1165
|
readonly replacement: S.NullOr<S.String>;
|
|
997
1166
|
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
998
1167
|
}>>;
|
|
1168
|
+
readonly scope: S.Literals<readonly ["full", "diff"]>;
|
|
1169
|
+
readonly mutantSetPolicy: S.Literals<readonly ["default", "full"]>;
|
|
1170
|
+
readonly phaseDurations: S.NullOr<S.Struct<{
|
|
1171
|
+
readonly prepare: S.Finite;
|
|
1172
|
+
readonly instrument: S.Finite;
|
|
1173
|
+
readonly 'dry-run': S.Finite;
|
|
1174
|
+
readonly 'mutation-test': S.Finite;
|
|
1175
|
+
}>>;
|
|
1176
|
+
readonly static: S.NullOr<S.Struct<{
|
|
1177
|
+
readonly count: S.Int;
|
|
1178
|
+
readonly costMs: S.Finite;
|
|
1179
|
+
}>>;
|
|
999
1180
|
}>, {}>;
|
|
1000
1181
|
declare class VerdictEnvelope extends VerdictEnvelope_base {}
|
|
1001
1182
|
//#endregion
|
|
1002
|
-
//#region src/
|
|
1003
|
-
declare const
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
readonly
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1183
|
+
//#region src/reporting/verdict-envelope.d.ts
|
|
1184
|
+
declare const buildVerdictEnvelope: {
|
|
1185
|
+
(mode: mod_d_exports$10.OutputMode, signal: mod_d_exports$10.ModeSignal, runId: mod_d_exports$1$7.RunId, basePath: string, pathService: Path.Path, phaseDurations: Option.Option<mod_d_exports$1$7.PhaseDurations>, staticVerdict: mod_d_exports$1$7.StaticVerdict | null): (report: mod_d_exports$7$1.MutationTestResult) => VerdictEnvelope;
|
|
1186
|
+
(report: mod_d_exports$7$1.MutationTestResult, mode: mod_d_exports$10.OutputMode, signal: mod_d_exports$10.ModeSignal, runId: mod_d_exports$1$7.RunId, basePath: string, pathService: Path.Path, phaseDurations: Option.Option<mod_d_exports$1$7.PhaseDurations>, staticVerdict: mod_d_exports$1$7.StaticVerdict | null): VerdictEnvelope;
|
|
1187
|
+
};
|
|
1188
|
+
declare namespace mod_d_exports$5 {
|
|
1189
|
+
export { MetricsResultFromReport, ResolvedMode, ResolvedModeInput, RunEventDrain, RunEventDrainLive, RunEventStream, RunEvents, RunIdentity, RunIdentityShape, VerdictEnvelope, buildVerdictEnvelope, makeRunEventStream, metricsResultFromFiles, staticVerdictOf };
|
|
1190
|
+
}
|
|
1191
|
+
declare namespace msp_framing_schema_d_exports {
|
|
1192
|
+
export { CONTENT_LENGTH_HEADER, FrameAction, FramingAction, FramingBuffer, FramingBytes, FramingReader, FramingStep, HeaderPattern, HeaderlessAction, IncompleteAction, decodeUtf8, emptyFraming, encodeUtf8, frameOf, readFrames };
|
|
1193
|
+
}
|
|
1194
|
+
type HeaderPattern = RegExp;
|
|
1195
|
+
type FramingBytes = Uint8Array;
|
|
1196
|
+
declare const CONTENT_LENGTH_HEADER: HeaderPattern;
|
|
1197
|
+
declare const encodeUtf8: (text: string) => FramingBytes;
|
|
1198
|
+
declare const decodeUtf8: (bytes: FramingBytes) => string;
|
|
1199
|
+
declare const FramingBuffer: S.Struct<{
|
|
1200
|
+
readonly bytes: S.Uint8Array;
|
|
1201
|
+
}>;
|
|
1202
|
+
type FramingBuffer = typeof FramingBuffer.Type;
|
|
1203
|
+
declare const emptyFraming: FramingBuffer;
|
|
1204
|
+
declare const FramingStep: S.Struct<{
|
|
1205
|
+
readonly buffer: S.Struct<{
|
|
1206
|
+
readonly bytes: S.Uint8Array;
|
|
1207
|
+
}>;
|
|
1208
|
+
readonly frames: S.$Array<S.String>;
|
|
1209
|
+
readonly errors: S.$Array<S.String>;
|
|
1210
|
+
}>;
|
|
1211
|
+
type FramingStep = typeof FramingStep.Type;
|
|
1212
|
+
declare const IncompleteAction: S.TaggedStruct<"Incomplete", {
|
|
1213
|
+
readonly rest: S.Uint8Array;
|
|
1214
|
+
}>;
|
|
1215
|
+
declare const FrameAction: S.TaggedStruct<"Frame", {
|
|
1216
|
+
readonly rest: S.Uint8Array;
|
|
1217
|
+
readonly frame: S.String;
|
|
1218
|
+
}>;
|
|
1219
|
+
declare const HeaderlessAction: S.TaggedStruct<"Headerless", {
|
|
1220
|
+
readonly rest: S.Uint8Array;
|
|
1221
|
+
}>;
|
|
1222
|
+
type FramingAction = typeof IncompleteAction.Type | typeof FrameAction.Type | typeof HeaderlessAction.Type;
|
|
1223
|
+
type FramingReader = {
|
|
1224
|
+
(buffer: FramingBuffer, chunk: FramingBytes): FramingStep;
|
|
1225
|
+
(chunk: FramingBytes): (buffer: FramingBuffer) => FramingStep;
|
|
1226
|
+
};
|
|
1227
|
+
declare const readFrames: FramingReader;
|
|
1228
|
+
declare const frameOf: (payload: string) => FramingBytes;
|
|
1229
|
+
declare namespace msp_schema_d_exports {
|
|
1230
|
+
export { ConfigureParams, ConfigureResult, DiscoverParams, DiscoverResult, DiscoveredFile, DiscoveredFiles, DiscoveredMutant, FileRange, JsonRpcErrorObject, JsonRpcErrorResponse, JsonRpcId, JsonRpcRequest, JsonRpcResponse, JsonRpcResultResponse, JsonRpcVersion, MSP_INTERNAL_ERROR, MSP_INVALID_PARAMS, MSP_INVALID_REQUEST, MSP_METHODS, MSP_METHOD_NOT_FOUND, MSP_PARSE_ERROR, MSP_PROTOCOL_VERSION, MSP_SERVER_BUSY, MspEncoder, MspErrorCode, MspLocation, MspMethod, MspMethodTable, MspMutantResult, MspMutantStatus, MspParamDecoder, MspVersion, MutatePatterns, MutationTestParams, MutationTestResult, ReportMutationTestProgress, ServeError, decodeConfigureParams, decodeDiscoverParams, decodeJsonRpcRequest, decodeMutationTestParams, encodeJsonRpcResponse, encodeProgressNotification, restrictPatternsOf };
|
|
1231
|
+
}
|
|
1232
|
+
declare const ServeError_base: S.Class<ServeError, S.TaggedStruct<"ServeError", {
|
|
1233
|
+
readonly reason: S.String;
|
|
1234
|
+
readonly cause: S.optionalKey<S.Unknown>;
|
|
1235
|
+
}>, import("effect/Cause").YieldableError>;
|
|
1236
|
+
declare class ServeError extends ServeError_base {
|
|
1237
|
+
get message(): string;
|
|
1238
|
+
}
|
|
1239
|
+
type MspVersion = string;
|
|
1240
|
+
declare const MSP_PROTOCOL_VERSION: MspVersion;
|
|
1241
|
+
interface MspMethodTable {
|
|
1242
|
+
readonly configure: 'configure';
|
|
1243
|
+
readonly discover: 'discover';
|
|
1244
|
+
readonly mutationTest: 'mutationTest';
|
|
1245
|
+
readonly reportMutationTestProgress: 'reportMutationTestProgress';
|
|
1246
|
+
}
|
|
1247
|
+
declare const MSP_METHODS: MspMethodTable;
|
|
1248
|
+
declare const MspMethod: S.Literals<readonly ["configure", "discover", "mutationTest", "reportMutationTestProgress"]>;
|
|
1249
|
+
type MspMethod = typeof MspMethod.Type;
|
|
1250
|
+
declare const JsonRpcVersion: S.Literal<"2.0">;
|
|
1251
|
+
declare const JsonRpcId: S.Union<readonly [S.String, S.Finite, S.Null]>;
|
|
1252
|
+
type JsonRpcId = typeof JsonRpcId.Type;
|
|
1253
|
+
declare const JsonRpcRequest: S.Struct<{
|
|
1254
|
+
readonly jsonrpc: S.Literal<"2.0">;
|
|
1255
|
+
readonly id: S.optionalKey<S.Union<readonly [S.String, S.Finite, S.Null]>>;
|
|
1256
|
+
readonly method: S.String;
|
|
1257
|
+
readonly params: S.optionalKey<S.Codec<S.Json, S.Json, never, never>>;
|
|
1258
|
+
}>;
|
|
1259
|
+
type JsonRpcRequest = typeof JsonRpcRequest.Type;
|
|
1260
|
+
declare const JsonRpcErrorObject: S.Struct<{
|
|
1261
|
+
readonly code: S.Int;
|
|
1262
|
+
readonly message: S.String;
|
|
1263
|
+
readonly data: S.optionalKey<S.Codec<S.Json, S.Json, never, never>>;
|
|
1264
|
+
}>;
|
|
1265
|
+
type MspErrorCode = number;
|
|
1266
|
+
declare const MSP_PARSE_ERROR: MspErrorCode;
|
|
1267
|
+
declare const MSP_INVALID_REQUEST: MspErrorCode;
|
|
1268
|
+
declare const MSP_METHOD_NOT_FOUND: MspErrorCode;
|
|
1269
|
+
declare const MSP_INVALID_PARAMS: MspErrorCode;
|
|
1270
|
+
declare const MSP_INTERNAL_ERROR: MspErrorCode;
|
|
1271
|
+
declare const MSP_SERVER_BUSY: MspErrorCode;
|
|
1272
|
+
declare const JsonRpcErrorResponse: S.Struct<{
|
|
1273
|
+
readonly jsonrpc: S.Literal<"2.0">;
|
|
1274
|
+
readonly id: S.NullOr<S.Union<readonly [S.String, S.Finite, S.Null]>>;
|
|
1275
|
+
readonly error: S.Struct<{
|
|
1276
|
+
readonly code: S.Int;
|
|
1277
|
+
readonly message: S.String;
|
|
1278
|
+
readonly data: S.optionalKey<S.Codec<S.Json, S.Json, never, never>>;
|
|
1279
|
+
}>;
|
|
1280
|
+
}>;
|
|
1281
|
+
declare const JsonRpcResultResponse: S.Struct<{
|
|
1282
|
+
readonly jsonrpc: S.Literal<"2.0">;
|
|
1283
|
+
readonly id: S.Union<readonly [S.String, S.Finite, S.Null]>;
|
|
1284
|
+
readonly result: S.Unknown;
|
|
1285
|
+
}>;
|
|
1286
|
+
declare const JsonRpcResponse: S.Union<readonly [S.Struct<{
|
|
1287
|
+
readonly jsonrpc: S.Literal<"2.0">;
|
|
1288
|
+
readonly id: S.Union<readonly [S.String, S.Finite, S.Null]>;
|
|
1289
|
+
readonly result: S.Unknown;
|
|
1290
|
+
}>, S.Struct<{
|
|
1291
|
+
readonly jsonrpc: S.Literal<"2.0">;
|
|
1292
|
+
readonly id: S.NullOr<S.Union<readonly [S.String, S.Finite, S.Null]>>;
|
|
1293
|
+
readonly error: S.Struct<{
|
|
1294
|
+
readonly code: S.Int;
|
|
1295
|
+
readonly message: S.String;
|
|
1296
|
+
readonly data: S.optionalKey<S.Codec<S.Json, S.Json, never, never>>;
|
|
1297
|
+
}>;
|
|
1298
|
+
}>]>;
|
|
1299
|
+
type JsonRpcResponse = typeof JsonRpcResponse.Type;
|
|
1300
|
+
type MspLocation = mod_d_exports$7$1.Location;
|
|
1301
|
+
type MspMutantStatus = mod_d_exports$2$1.MutantStatus;
|
|
1302
|
+
type MspMutantResult = mod_d_exports$7$1.MutantResult;
|
|
1303
|
+
declare const FileRange: S.Struct<{
|
|
1304
|
+
readonly path: S.String;
|
|
1305
|
+
readonly range: S.optionalKey<S.StructWithRest<S.Struct<{
|
|
1306
|
+
readonly start: S.StructWithRest<S.Struct<{
|
|
1307
|
+
readonly line: S.Finite;
|
|
1308
|
+
readonly column: S.Finite;
|
|
1309
|
+
}>, readonly [S.$Record<S.String, S.Codec<S.Json, S.Json, never, never>>]>;
|
|
1310
|
+
readonly end: S.StructWithRest<S.Struct<{
|
|
1311
|
+
readonly line: S.Finite;
|
|
1312
|
+
readonly column: S.Finite;
|
|
1313
|
+
}>, readonly [S.$Record<S.String, S.Codec<S.Json, S.Json, never, never>>]>;
|
|
1314
|
+
}>, readonly [S.$Record<S.String, S.Codec<S.Json, S.Json, never, never>>]>>;
|
|
1315
|
+
}>;
|
|
1316
|
+
type FileRange = typeof FileRange.Type;
|
|
1317
|
+
declare const ConfigureParams: S.Struct<{
|
|
1318
|
+
readonly configFilePath: S.optionalKey<S.String>;
|
|
1319
|
+
}>;
|
|
1320
|
+
type ConfigureParams = typeof ConfigureParams.Type;
|
|
1321
|
+
declare const ConfigureResult: S.Struct<{
|
|
1322
|
+
readonly version: S.String;
|
|
1323
|
+
}>;
|
|
1324
|
+
type ConfigureResult = typeof ConfigureResult.Type;
|
|
1325
|
+
declare const DiscoveredMutant: S.Struct<{
|
|
1326
|
+
readonly id: S.String;
|
|
1327
|
+
readonly location: S.StructWithRest<S.Struct<{
|
|
1328
|
+
readonly start: S.StructWithRest<S.Struct<{
|
|
1329
|
+
readonly line: S.Finite;
|
|
1330
|
+
readonly column: S.Finite;
|
|
1331
|
+
}>, readonly [S.$Record<S.String, S.Codec<S.Json, S.Json, never, never>>]>;
|
|
1332
|
+
readonly end: S.StructWithRest<S.Struct<{
|
|
1333
|
+
readonly line: S.Finite;
|
|
1334
|
+
readonly column: S.Finite;
|
|
1335
|
+
}>, readonly [S.$Record<S.String, S.Codec<S.Json, S.Json, never, never>>]>;
|
|
1336
|
+
}>, readonly [S.$Record<S.String, S.Codec<S.Json, S.Json, never, never>>]>;
|
|
1337
|
+
readonly description: S.optionalKey<S.String>;
|
|
1338
|
+
readonly mutatorName: S.String;
|
|
1339
|
+
readonly replacement: S.optionalKey<S.String>;
|
|
1340
|
+
}>;
|
|
1341
|
+
type DiscoveredMutant = typeof DiscoveredMutant.Type;
|
|
1342
|
+
declare const DiscoveredFile: S.Struct<{
|
|
1343
|
+
readonly mutants: S.$Array<S.Struct<{
|
|
1344
|
+
readonly id: S.String;
|
|
1345
|
+
readonly location: S.StructWithRest<S.Struct<{
|
|
1346
|
+
readonly start: S.StructWithRest<S.Struct<{
|
|
1347
|
+
readonly line: S.Finite;
|
|
1348
|
+
readonly column: S.Finite;
|
|
1349
|
+
}>, readonly [S.$Record<S.String, S.Codec<S.Json, S.Json, never, never>>]>;
|
|
1350
|
+
readonly end: S.StructWithRest<S.Struct<{
|
|
1351
|
+
readonly line: S.Finite;
|
|
1352
|
+
readonly column: S.Finite;
|
|
1353
|
+
}>, readonly [S.$Record<S.String, S.Codec<S.Json, S.Json, never, never>>]>;
|
|
1354
|
+
}>, readonly [S.$Record<S.String, S.Codec<S.Json, S.Json, never, never>>]>;
|
|
1355
|
+
readonly description: S.optionalKey<S.String>;
|
|
1356
|
+
readonly mutatorName: S.String;
|
|
1357
|
+
readonly replacement: S.optionalKey<S.String>;
|
|
1358
|
+
}>>;
|
|
1359
|
+
}>;
|
|
1360
|
+
type DiscoveredFile = typeof DiscoveredFile.Type;
|
|
1361
|
+
declare const DiscoveredFiles: S.$Record<S.String, S.Struct<{
|
|
1362
|
+
readonly mutants: S.$Array<S.Struct<{
|
|
1363
|
+
readonly id: S.String;
|
|
1364
|
+
readonly location: S.StructWithRest<S.Struct<{
|
|
1365
|
+
readonly start: S.StructWithRest<S.Struct<{
|
|
1366
|
+
readonly line: S.Finite;
|
|
1367
|
+
readonly column: S.Finite;
|
|
1368
|
+
}>, readonly [S.$Record<S.String, S.Codec<S.Json, S.Json, never, never>>]>;
|
|
1369
|
+
readonly end: S.StructWithRest<S.Struct<{
|
|
1370
|
+
readonly line: S.Finite;
|
|
1371
|
+
readonly column: S.Finite;
|
|
1372
|
+
}>, readonly [S.$Record<S.String, S.Codec<S.Json, S.Json, never, never>>]>;
|
|
1373
|
+
}>, readonly [S.$Record<S.String, S.Codec<S.Json, S.Json, never, never>>]>;
|
|
1374
|
+
readonly description: S.optionalKey<S.String>;
|
|
1375
|
+
readonly mutatorName: S.String;
|
|
1376
|
+
readonly replacement: S.optionalKey<S.String>;
|
|
1377
|
+
}>>;
|
|
1378
|
+
}>>;
|
|
1379
|
+
type DiscoveredFiles = typeof DiscoveredFiles.Type;
|
|
1380
|
+
declare const DiscoverParams: S.Struct<{
|
|
1381
|
+
readonly files: S.optionalKey<S.$Array<S.Struct<{
|
|
1382
|
+
readonly path: S.String;
|
|
1383
|
+
readonly range: S.optionalKey<S.StructWithRest<S.Struct<{
|
|
1384
|
+
readonly start: S.StructWithRest<S.Struct<{
|
|
1385
|
+
readonly line: S.Finite;
|
|
1386
|
+
readonly column: S.Finite;
|
|
1387
|
+
}>, readonly [S.$Record<S.String, S.Codec<S.Json, S.Json, never, never>>]>;
|
|
1388
|
+
readonly end: S.StructWithRest<S.Struct<{
|
|
1389
|
+
readonly line: S.Finite;
|
|
1390
|
+
readonly column: S.Finite;
|
|
1391
|
+
}>, readonly [S.$Record<S.String, S.Codec<S.Json, S.Json, never, never>>]>;
|
|
1392
|
+
}>, readonly [S.$Record<S.String, S.Codec<S.Json, S.Json, never, never>>]>>;
|
|
1393
|
+
}>>>;
|
|
1394
|
+
}>;
|
|
1395
|
+
type DiscoverParams = typeof DiscoverParams.Type;
|
|
1396
|
+
declare const DiscoverResult: S.Struct<{
|
|
1397
|
+
readonly files: S.$Record<S.String, S.Struct<{
|
|
1398
|
+
readonly mutants: S.$Array<S.Struct<{
|
|
1399
|
+
readonly id: S.String;
|
|
1400
|
+
readonly location: S.StructWithRest<S.Struct<{
|
|
1401
|
+
readonly start: S.StructWithRest<S.Struct<{
|
|
1402
|
+
readonly line: S.Finite;
|
|
1403
|
+
readonly column: S.Finite;
|
|
1404
|
+
}>, readonly [S.$Record<S.String, S.Codec<S.Json, S.Json, never, never>>]>;
|
|
1405
|
+
readonly end: S.StructWithRest<S.Struct<{
|
|
1406
|
+
readonly line: S.Finite;
|
|
1407
|
+
readonly column: S.Finite;
|
|
1408
|
+
}>, readonly [S.$Record<S.String, S.Codec<S.Json, S.Json, never, never>>]>;
|
|
1409
|
+
}>, readonly [S.$Record<S.String, S.Codec<S.Json, S.Json, never, never>>]>;
|
|
1410
|
+
readonly description: S.optionalKey<S.String>;
|
|
1411
|
+
readonly mutatorName: S.String;
|
|
1412
|
+
readonly replacement: S.optionalKey<S.String>;
|
|
1413
|
+
}>>;
|
|
1414
|
+
}>>;
|
|
1415
|
+
}>;
|
|
1416
|
+
type DiscoverResult = typeof DiscoverResult.Type;
|
|
1417
|
+
declare const MutationTestParams: S.Struct<{
|
|
1418
|
+
readonly files: S.optionalKey<S.$Array<S.Struct<{
|
|
1419
|
+
readonly path: S.String;
|
|
1420
|
+
readonly range: S.optionalKey<S.StructWithRest<S.Struct<{
|
|
1421
|
+
readonly start: S.StructWithRest<S.Struct<{
|
|
1422
|
+
readonly line: S.Finite;
|
|
1423
|
+
readonly column: S.Finite;
|
|
1424
|
+
}>, readonly [S.$Record<S.String, S.Codec<S.Json, S.Json, never, never>>]>;
|
|
1425
|
+
readonly end: S.StructWithRest<S.Struct<{
|
|
1426
|
+
readonly line: S.Finite;
|
|
1427
|
+
readonly column: S.Finite;
|
|
1428
|
+
}>, readonly [S.$Record<S.String, S.Codec<S.Json, S.Json, never, never>>]>;
|
|
1429
|
+
}>, readonly [S.$Record<S.String, S.Codec<S.Json, S.Json, never, never>>]>>;
|
|
1430
|
+
}>>>;
|
|
1431
|
+
readonly mutants: S.optionalKey<S.$Record<S.String, S.Struct<{
|
|
1432
|
+
readonly mutants: S.$Array<S.Struct<{
|
|
1433
|
+
readonly id: S.String;
|
|
1434
|
+
readonly location: S.StructWithRest<S.Struct<{
|
|
1435
|
+
readonly start: S.StructWithRest<S.Struct<{
|
|
1436
|
+
readonly line: S.Finite;
|
|
1437
|
+
readonly column: S.Finite;
|
|
1438
|
+
}>, readonly [S.$Record<S.String, S.Codec<S.Json, S.Json, never, never>>]>;
|
|
1439
|
+
readonly end: S.StructWithRest<S.Struct<{
|
|
1440
|
+
readonly line: S.Finite;
|
|
1441
|
+
readonly column: S.Finite;
|
|
1442
|
+
}>, readonly [S.$Record<S.String, S.Codec<S.Json, S.Json, never, never>>]>;
|
|
1443
|
+
}>, readonly [S.$Record<S.String, S.Codec<S.Json, S.Json, never, never>>]>;
|
|
1444
|
+
readonly description: S.optionalKey<S.String>;
|
|
1445
|
+
readonly mutatorName: S.String;
|
|
1446
|
+
readonly replacement: S.optionalKey<S.String>;
|
|
1447
|
+
}>>;
|
|
1448
|
+
}>>>;
|
|
1449
|
+
}>;
|
|
1450
|
+
type MutationTestParams = typeof MutationTestParams.Type;
|
|
1451
|
+
declare const MutationTestResult: S.Struct<{
|
|
1452
|
+
readonly files: S.$Record<S.String, S.Struct<{
|
|
1453
|
+
readonly mutants: S.$Array<S.StructWithRest<S.Struct<{
|
|
1454
|
+
readonly coveredBy: S.optionalKey<S.$Array<S.String>>;
|
|
1455
|
+
readonly description: S.optionalKey<S.String>;
|
|
1456
|
+
readonly duration: S.optionalKey<S.Finite>;
|
|
1457
|
+
readonly id: S.String;
|
|
1458
|
+
readonly killedBy: S.optionalKey<S.$Array<S.String>>;
|
|
1459
|
+
readonly location: S.StructWithRest<S.Struct<{
|
|
1460
|
+
readonly start: S.StructWithRest<S.Struct<{
|
|
1461
|
+
readonly line: S.Finite;
|
|
1462
|
+
readonly column: S.Finite;
|
|
1463
|
+
}>, readonly [S.$Record<S.String, S.Codec<S.Json, S.Json, never, never>>]>;
|
|
1464
|
+
readonly end: S.StructWithRest<S.Struct<{
|
|
1465
|
+
readonly line: S.Finite;
|
|
1466
|
+
readonly column: S.Finite;
|
|
1467
|
+
}>, readonly [S.$Record<S.String, S.Codec<S.Json, S.Json, never, never>>]>;
|
|
1468
|
+
}>, readonly [S.$Record<S.String, S.Codec<S.Json, S.Json, never, never>>]>;
|
|
1469
|
+
readonly mutatorName: S.String;
|
|
1470
|
+
readonly replacement: S.optionalKey<S.String>;
|
|
1471
|
+
readonly static: S.optionalKey<S.Boolean>;
|
|
1472
|
+
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
1473
|
+
readonly statusReason: S.optionalKey<S.String>;
|
|
1474
|
+
readonly testsCompleted: S.optionalKey<S.Finite>;
|
|
1475
|
+
}>, readonly [S.$Record<S.String, S.Codec<S.Json, S.Json, never, never>>]>>;
|
|
1476
|
+
}>>;
|
|
1477
|
+
}>;
|
|
1478
|
+
type MutationTestResult = typeof MutationTestResult.Type;
|
|
1479
|
+
declare const ReportMutationTestProgress: S.Struct<{
|
|
1480
|
+
readonly jsonrpc: S.Literal<"2.0">;
|
|
1481
|
+
readonly method: S.Literal<"reportMutationTestProgress">;
|
|
1482
|
+
readonly params: S.Struct<{
|
|
1483
|
+
readonly files: S.$Record<S.String, S.Struct<{
|
|
1484
|
+
readonly mutants: S.$Array<S.StructWithRest<S.Struct<{
|
|
1485
|
+
readonly coveredBy: S.optionalKey<S.$Array<S.String>>;
|
|
1486
|
+
readonly description: S.optionalKey<S.String>;
|
|
1487
|
+
readonly duration: S.optionalKey<S.Finite>;
|
|
1488
|
+
readonly id: S.String;
|
|
1489
|
+
readonly killedBy: S.optionalKey<S.$Array<S.String>>;
|
|
1490
|
+
readonly location: S.StructWithRest<S.Struct<{
|
|
1491
|
+
readonly start: S.StructWithRest<S.Struct<{
|
|
1492
|
+
readonly line: S.Finite;
|
|
1493
|
+
readonly column: S.Finite;
|
|
1494
|
+
}>, readonly [S.$Record<S.String, S.Codec<S.Json, S.Json, never, never>>]>;
|
|
1495
|
+
readonly end: S.StructWithRest<S.Struct<{
|
|
1496
|
+
readonly line: S.Finite;
|
|
1497
|
+
readonly column: S.Finite;
|
|
1498
|
+
}>, readonly [S.$Record<S.String, S.Codec<S.Json, S.Json, never, never>>]>;
|
|
1499
|
+
}>, readonly [S.$Record<S.String, S.Codec<S.Json, S.Json, never, never>>]>;
|
|
1500
|
+
readonly mutatorName: S.String;
|
|
1501
|
+
readonly replacement: S.optionalKey<S.String>;
|
|
1502
|
+
readonly static: S.optionalKey<S.Boolean>;
|
|
1503
|
+
readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
|
|
1504
|
+
readonly statusReason: S.optionalKey<S.String>;
|
|
1505
|
+
readonly testsCompleted: S.optionalKey<S.Finite>;
|
|
1506
|
+
}>, readonly [S.$Record<S.String, S.Codec<S.Json, S.Json, never, never>>]>>;
|
|
1507
|
+
}>>;
|
|
1508
|
+
}>;
|
|
1509
|
+
}>;
|
|
1510
|
+
type ReportMutationTestProgress = typeof ReportMutationTestProgress.Type;
|
|
1511
|
+
type MspEncoder<A> = (value: A) => Result.Result<string, S.SchemaError>;
|
|
1512
|
+
type MspParamDecoder<A> = (params: S.Json | undefined) => Result.Result<A, S.SchemaError>;
|
|
1513
|
+
declare const encodeJsonRpcResponse: MspEncoder<JsonRpcResponse>;
|
|
1514
|
+
declare const encodeProgressNotification: MspEncoder<ReportMutationTestProgress>;
|
|
1515
|
+
declare const decodeJsonRpcRequest: MspParamDecoder<JsonRpcRequest>;
|
|
1516
|
+
declare const decodeConfigureParams: MspParamDecoder<ConfigureParams>;
|
|
1517
|
+
declare const decodeDiscoverParams: MspParamDecoder<DiscoverParams>;
|
|
1518
|
+
declare const decodeMutationTestParams: MspParamDecoder<MutationTestParams>;
|
|
1519
|
+
type MutatePatterns = ReadonlyArray<string>;
|
|
1520
|
+
/**
|
|
1521
|
+
* The `targetMutatePatterns` this engine takes for a `FileRange` list, or
|
|
1522
|
+
* `undefined` when no restriction was asked for. A trailing slash means a
|
|
1523
|
+
* directory, matching the protocol.
|
|
1524
|
+
*
|
|
1525
|
+
* The positions pass through verbatim. This engine compares a range's `end`
|
|
1526
|
+
* against a mutant location's `end`, and both of those ends are the report
|
|
1527
|
+
* schema's 1-based, exclusive end — the same coordinate space MSP defines for
|
|
1528
|
+
* `Location` — so MSP's start-inclusive, end-exclusive range needs no
|
|
1529
|
+
* arithmetic here. (StrykerJS v10 subtracts one from both columns instead,
|
|
1530
|
+
* because its own mutate ranges are exclusive at the start; copying that would
|
|
1531
|
+
* shift this engine's start by a character.)
|
|
1532
|
+
*/
|
|
1533
|
+
declare const restrictPatternsOf: (files: ReadonlyArray<FileRange> | undefined) => MutatePatterns | undefined;
|
|
1534
|
+
//#endregion
|
|
1535
|
+
//#region src/Serve/Serve.cell.d.ts
|
|
1536
|
+
interface ServeRequest {
|
|
1537
|
+
readonly channel: 'stdio' | 'socket';
|
|
1538
|
+
readonly port?: number;
|
|
1539
|
+
readonly address?: string;
|
|
1540
|
+
readonly cliOptions?: mod_d_exports$5$1.PartialStrykerOptions;
|
|
1541
|
+
}
|
|
1542
|
+
declare const serveMutationServer: (invocation: ServeRequest) => Effect.Effect<void, ServeError, EnginePorts | Scope.Scope>;
|
|
1543
|
+
declare namespace mod_d_exports$6 {
|
|
1544
|
+
export { msp_framing_schema_d_exports as Framing, msp_schema_d_exports as Protocol, ServeError, ServeRequest, serveMutationServer };
|
|
1028
1545
|
}
|
|
1029
1546
|
//#endregion
|
|
1030
1547
|
//#region src/classify-worker-exit.workflow.d.ts
|
|
@@ -1058,7 +1575,7 @@ declare const classifyWorkerExit: Workflow.MadeWorkflow<typeof ClassifyWorkerExi
|
|
|
1058
1575
|
//#region src/worker-client.blueprint.d.ts
|
|
1059
1576
|
interface WorkerClientParams<Rpcs extends Rpc.Any> {
|
|
1060
1577
|
readonly rpcs: RpcGroup.RpcGroup<Rpcs>;
|
|
1061
|
-
readonly options: mod_d_exports$
|
|
1578
|
+
readonly options: mod_d_exports$5$1.StrykerOptions;
|
|
1062
1579
|
readonly entrypoint: string;
|
|
1063
1580
|
readonly workingDirectory: string;
|
|
1064
1581
|
readonly execArgv: readonly string[];
|
|
@@ -1069,8 +1586,8 @@ declare const makeWorkerClient: <Rpcs extends Rpc.Any>(params: WorkerClientParam
|
|
|
1069
1586
|
//#endregion
|
|
1070
1587
|
//#region src/worker-protocol.blueprint.d.ts
|
|
1071
1588
|
declare const layerWorkerProtocol: (socket: Layer.Layer<Socket.Socket, Socket.SocketError>) => Layer.Layer<RpcClient.Protocol, Socket.SocketError>;
|
|
1072
|
-
declare namespace mod_d_exports$
|
|
1589
|
+
declare namespace mod_d_exports$7 {
|
|
1073
1590
|
export { ChildProcessCrashedError, ClassifyWorkerExitCommand, ClassifyWorkerExitDecision, OutOfMemoryError, SpawnedSocketWorker, WorkerBootError, WorkerBootTimeoutError, WorkerClientParams, WorkerExit, WorkerLauncher, WorkerLauncherShape, WorkerSpawnParams, classifyWorkerExit, layerWorkerProtocol, make as makeSpawnedSocketWorker, makeWorkerClient };
|
|
1074
1591
|
}
|
|
1075
1592
|
//#endregion
|
|
1076
|
-
export { mod_d_exports as Checker, mod_d_exports$1 as Configuration, mod_d_exports$2 as Engine, mod_d_exports$3 as
|
|
1593
|
+
export { mod_d_exports as Checker, mod_d_exports$1 as Configuration, mod_d_exports$2 as Engine, git_diff_service_d_exports as GitDiff, git_diff_schema_d_exports as GitDiffSchema, import_closure_cell_d_exports as ImportClosure, mod_d_exports$3 as Mcp, mod_d_exports$4 as Plugin, mod_d_exports$5 as RunEvent, mod_d_exports$6 as Serve, mod_d_exports$7 as Worker };
|