@systemfsoftware/stryker-js 9.0.0 → 10.0.1
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 +18 -0
- package/dist/Run.schema-CgVfoOfk.mjs +8756 -0
- package/dist/Run.schema-t292QQGe.d.mts +173 -0
- package/dist/config.d.mts +2 -1
- package/dist/events.d.mts +2 -0
- package/dist/events.mjs +2 -0
- package/dist/{getMachineId-bsd-C6bLIaiv.mjs → getMachineId-bsd-DGLFi8Ia.mjs} +1 -1
- package/dist/{getMachineId-bsd-CXSiHDga.mjs → getMachineId-bsd-YZILidse.mjs} +1 -1
- package/dist/{getMachineId-darwin-DPZ0kdKD.mjs → getMachineId-darwin-B_CgClId.mjs} +1 -1
- package/dist/{getMachineId-darwin-D3cIKeqx.mjs → getMachineId-darwin-Bfwczd9V.mjs} +1 -1
- package/dist/{getMachineId-linux-Ci8OVJU0.mjs → getMachineId-linux-CPAE174r.mjs} +1 -1
- package/dist/{getMachineId-linux-CQwLSlZk.mjs → getMachineId-linux-DprzjpT3.mjs} +1 -1
- package/dist/{getMachineId-unsupported-PX0hnW6X.mjs → getMachineId-unsupported-Ce9f061A.mjs} +1 -1
- package/dist/{getMachineId-unsupported-_ExL3Avl.mjs → getMachineId-unsupported-j7fStyPQ.mjs} +1 -1
- package/dist/{getMachineId-win-D9Tb0p7w.mjs → getMachineId-win-DETv1PQd.mjs} +1 -1
- package/dist/{getMachineId-win-BCsS9pC_.mjs → getMachineId-win-ZJtT3h1l.mjs} +1 -1
- package/dist/{output-mode-CE6VNHfH.d.mts → index-D_mcApox.d.mts} +96 -103
- package/dist/index.d.mts +136 -90
- package/dist/index.mjs +3 -2
- package/dist/main.mjs +14736 -16986
- package/dist/{mutation-test.cell-BTa-up9u.d.mts → mutation-test.cell-Dp6QiuRg.d.mts} +23 -130
- package/dist/output-mode-CfGHDpi5.d.mts +17 -0
- package/dist/parser.wasm32-wasi.wasm +0 -0
- package/dist/promises.d.mts +2 -2
- package/dist/promises.mjs +1 -1
- package/dist/src-CMHnl87m.mjs +6452 -0
- package/dist/{src-js-DRK8boNV.mjs → src-js-CvBdbRpe.mjs} +129 -56
- package/dist/{wasm-Dr7kZatW.mjs → wasm-klkEDrvQ.mjs} +4545 -4335
- package/package.json +27 -23
- package/dist/src-BQuaL-fB.mjs +0 -15629
package/dist/index.d.mts
CHANGED
|
@@ -28,6 +28,7 @@ import { Schema } from 'effect';
|
|
|
28
28
|
import * as Scope from 'effect/Scope';
|
|
29
29
|
import * as Socket from 'effect/unstable/socket/Socket';
|
|
30
30
|
import * as Stdio from 'effect/Stdio';
|
|
31
|
+
import * as Stream from 'effect/Stream';
|
|
31
32
|
import { YieldableError } from 'effect/Cause';
|
|
32
33
|
|
|
33
34
|
declare interface AccessorProperty$1 extends Span$1 {
|
|
@@ -374,8 +375,8 @@ export declare type CheckerRequest = typeof CheckerRequest.Type;
|
|
|
374
375
|
* which lets the retry combinator prove it handles every one of them.
|
|
375
376
|
*/
|
|
376
377
|
export declare interface CheckerResourceService {
|
|
377
|
-
readonly check: (checkerName: string, mutants: readonly CheckerMutantWire[]) => Effect.Effect<Record<string, CheckResult>, CheckerCrash>;
|
|
378
|
-
readonly group: (checkerName: string, mutants: readonly CheckerMutantWire[]) => Effect.Effect<readonly (readonly string[])[], CheckerCrash>;
|
|
378
|
+
readonly check: (checkerName: string, mutants: readonly CheckerMutantWire[]) => Effect.Effect<Record<string, CheckResult>, CheckerCrash | CheckerFailed>;
|
|
379
|
+
readonly group: (checkerName: string, mutants: readonly CheckerMutantWire[]) => Effect.Effect<readonly (readonly string[])[], CheckerCrash | CheckerFailed>;
|
|
379
380
|
}
|
|
380
381
|
|
|
381
382
|
export declare const checkerRpcFailures: Metric.Counter<number>;
|
|
@@ -390,7 +391,7 @@ declare const CheckerSkippedRequested_base: S.Class<CheckerSkippedRequested, S.T
|
|
|
390
391
|
readonly missingIds: S.$Array<S.String>;
|
|
391
392
|
}>, YieldableError>;
|
|
392
393
|
|
|
393
|
-
export declare const checkGroupedPlans: (checker: CheckerResourceService, checkerName: string, plans: readonly RunPlan[]) => Effect.Effect<readonly (readonly [RunPlan, CheckResult])[], CheckerCrash | CheckerContractBroken>;
|
|
394
|
+
export declare const checkGroupedPlans: (checker: CheckerResourceService, checkerName: string, plans: readonly RunPlan[]) => Effect.Effect<readonly (readonly [RunPlan, CheckResult])[], CheckerCrash | CheckerFailed | CheckerContractBroken>;
|
|
394
395
|
|
|
395
396
|
export declare type CheckResult = FailedCheckResult | PassedCheckResult;
|
|
396
397
|
|
|
@@ -592,7 +593,7 @@ declare const DryRunCompleted_base: S.Class<DryRunCompleted, S.TaggedStruct<"dry
|
|
|
592
593
|
readonly capabilities: S.Struct<{
|
|
593
594
|
readonly reloadEnvironment: S.Boolean;
|
|
594
595
|
}>;
|
|
595
|
-
readonly testCount: S.
|
|
596
|
+
readonly testCount: S.Int;
|
|
596
597
|
readonly tests: S.$Array<S.Union<readonly [S.Struct<{
|
|
597
598
|
readonly id: S.String;
|
|
598
599
|
readonly name: S.String;
|
|
@@ -711,7 +712,7 @@ declare interface ExportSpecifier extends Span$1 {
|
|
|
711
712
|
parent?: Node$1;
|
|
712
713
|
}
|
|
713
714
|
|
|
714
|
-
declare type Expression$1 = BooleanLiteral$1 | NullLiteral$1 | NumericLiteral$1 | BigIntLiteral$1 | RegExpLiteral$1 | StringLiteral$1 | TemplateLiteral$1 | IdentifierReference$1 |
|
|
715
|
+
declare type Expression$1 = BooleanLiteral$1 | NullLiteral$1 | NumericLiteral$1 | BigIntLiteral$1 | RegExpLiteral$1 | StringLiteral$1 | TemplateLiteral$1 | IdentifierReference$1 | Super$1 | ArrayExpression$1 | ArrowFunctionExpression$1 | AssignmentExpression$1 | AwaitExpression | BinaryExpression$1 | CallExpression$1 | ChainExpression$1 | Class$1 | ConditionalExpression$1 | Function$1 | ImportExpression$1 | LogicalExpression$1 | NewExpression$1 | ObjectExpression$1 | ParenthesizedExpression | SequenceExpression$1 | TaggedTemplateExpression$1 | ThisExpression$1 | UnaryExpression$1 | UpdateExpression$1 | YieldExpression$1 | PrivateInExpression$1 | MetaProperty$1 | JSXElement$1 | JSXFragment$1 | TSAsExpression$1 | TSSatisfiesExpression$1 | TSTypeAssertion$1 | TSNonNullExpression$1 | TSInstantiationExpression$1 | V8IntrinsicExpression | MemberExpression$1;
|
|
715
716
|
|
|
716
717
|
declare interface ExpressionStatement$1 extends Span$1 {
|
|
717
718
|
type: "ExpressionStatement";
|
|
@@ -823,7 +824,7 @@ export declare const FileResultSchema: S.Struct<{
|
|
|
823
824
|
readonly static: S.optional<S.Boolean>;
|
|
824
825
|
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
825
826
|
readonly killedBy: S.optional<S.$Array<S.String>>;
|
|
826
|
-
readonly testsCompleted: S.optional<S.
|
|
827
|
+
readonly testsCompleted: S.optional<S.Int>;
|
|
827
828
|
readonly duration: S.optional<S.Finite>;
|
|
828
829
|
}>>;
|
|
829
830
|
}>;
|
|
@@ -900,11 +901,19 @@ export declare const forkOptionsSchema: S.StructWithRest<S.Struct<{
|
|
|
900
901
|
readonly options: S.optional<S.$Record<S.String, S.Unknown>>;
|
|
901
902
|
}>]>, never>;
|
|
902
903
|
readonly testRunnerNodeArgs: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
903
|
-
readonly thresholds: S.withDecodingDefaultKey<S.
|
|
904
|
+
readonly thresholds: S.withDecodingDefaultKey<S.decodeTo<S.declare<{
|
|
905
|
+
readonly high: number;
|
|
906
|
+
readonly low: number;
|
|
907
|
+
readonly break: number | null;
|
|
908
|
+
}, {
|
|
909
|
+
readonly high: number;
|
|
910
|
+
readonly low: number;
|
|
911
|
+
readonly break: number | null;
|
|
912
|
+
}>, S.Struct<{
|
|
904
913
|
readonly high: S.withDecodingDefaultKey<S.Finite, never>;
|
|
905
914
|
readonly low: S.withDecodingDefaultKey<S.Finite, never>;
|
|
906
915
|
readonly break: S.withDecodingDefaultKey<S.NullOr<S.Finite>, never>;
|
|
907
|
-
}>, never>;
|
|
916
|
+
}>, never, never>, never>;
|
|
908
917
|
readonly timeoutFactor: S.withDecodingDefaultKey<S.Finite, never>;
|
|
909
918
|
readonly timeoutMS: S.withDecodingDefaultKey<S.Finite, never>;
|
|
910
919
|
readonly dryRunTimeoutMinutes: S.withDecodingDefaultKey<S.Finite, never>;
|
|
@@ -930,7 +939,7 @@ declare type FormalParameter = {
|
|
|
930
939
|
declare interface FormalParameterRest extends Span$1 {
|
|
931
940
|
type: "RestElement";
|
|
932
941
|
argument: BindingPattern$1;
|
|
933
|
-
decorators?:
|
|
942
|
+
decorators?: Array<Decorator$1>;
|
|
934
943
|
optional?: boolean;
|
|
935
944
|
typeAnnotation?: TSTypeAnnotation$1 | null;
|
|
936
945
|
value?: null;
|
|
@@ -959,6 +968,8 @@ declare type ForStatementInit = VariableDeclaration$1 | Expression$1;
|
|
|
959
968
|
|
|
960
969
|
declare type ForStatementLeft = VariableDeclaration$1 | AssignmentTarget;
|
|
961
970
|
|
|
971
|
+
declare type FramedDrain = (framed: Stream.Stream<string, never, never>) => Effect.Effect<void, never, never>;
|
|
972
|
+
|
|
962
973
|
declare interface Function$1 extends Span$1 {
|
|
963
974
|
type: FunctionType;
|
|
964
975
|
id: BindingIdentifier$1 | null;
|
|
@@ -993,8 +1004,8 @@ export declare class Heartbeat extends Heartbeat_base {}
|
|
|
993
1004
|
|
|
994
1005
|
declare const Heartbeat_base: S.Class<Heartbeat, S.TaggedStruct<"tick", {
|
|
995
1006
|
readonly elapsedMs: S.Finite;
|
|
996
|
-
readonly completed: S.
|
|
997
|
-
readonly total: S.NullOr<S.
|
|
1007
|
+
readonly completed: S.Int;
|
|
1008
|
+
readonly total: S.NullOr<S.Int>;
|
|
998
1009
|
}>, {}>;
|
|
999
1010
|
|
|
1000
1011
|
export declare class HelpRendered extends HelpRendered_base {}
|
|
@@ -1375,6 +1386,8 @@ declare interface LogicalExpression$1 extends Span$1 {
|
|
|
1375
1386
|
|
|
1376
1387
|
declare type LogicalOperator = "||" | "&&" | "??";
|
|
1377
1388
|
|
|
1389
|
+
export declare const makeRunEventStream: (resolved: ResolvedModeInput) => Effect.Effect<RunEventStream, never, Stdio.Stdio | RunEventDrain>;
|
|
1390
|
+
|
|
1378
1391
|
export declare const makeRunLayer: (env: RunEnvironmentShape, events?: Queue.Queue<RunEvent, Cause.Done>) => Layer.Layer<RunStageServices, never, EnginePorts>;
|
|
1379
1392
|
|
|
1380
1393
|
export declare const makeWorkerClient: <Rpcs extends Rpc.Any>(params: WorkerClientParams<Rpcs>) => Effect.Effect<RpcClient.RpcClient<Rpcs, RpcClientError>, WorkerBootError, Scope.Scope | WorkerLauncher>;
|
|
@@ -1423,7 +1436,30 @@ declare type MethodDefinitionKind = "constructor" | "method" | "get" | "set";
|
|
|
1423
1436
|
|
|
1424
1437
|
declare type MethodDefinitionType = "MethodDefinition" | "TSAbstractMethodDefinition";
|
|
1425
1438
|
|
|
1426
|
-
export declare
|
|
1439
|
+
export declare class Metrics extends Metrics_base {
|
|
1440
|
+
get totalDetected(): number;
|
|
1441
|
+
get totalUndetected(): number;
|
|
1442
|
+
get totalCovered(): number;
|
|
1443
|
+
get totalValid(): number;
|
|
1444
|
+
get totalInvalid(): number;
|
|
1445
|
+
get totalMutants(): number;
|
|
1446
|
+
get mutationScore(): number;
|
|
1447
|
+
get mutationScoreBasedOnCoveredCode(): number;
|
|
1448
|
+
static fromMutants(mutants: readonly {
|
|
1449
|
+
readonly status: string;
|
|
1450
|
+
}[]): Metrics;
|
|
1451
|
+
}
|
|
1452
|
+
|
|
1453
|
+
declare const Metrics_base: S.Class<Metrics, S.Struct<{
|
|
1454
|
+
readonly pending: S.Int;
|
|
1455
|
+
readonly killed: S.Int;
|
|
1456
|
+
readonly timeout: S.Int;
|
|
1457
|
+
readonly survived: S.Int;
|
|
1458
|
+
readonly noCoverage: S.Int;
|
|
1459
|
+
readonly runtimeErrors: S.Int;
|
|
1460
|
+
readonly compileErrors: S.Int;
|
|
1461
|
+
readonly ignored: S.Int;
|
|
1462
|
+
}>, {}>;
|
|
1427
1463
|
|
|
1428
1464
|
export declare interface MetricsResult {
|
|
1429
1465
|
readonly name: string;
|
|
@@ -1431,24 +1467,13 @@ export declare interface MetricsResult {
|
|
|
1431
1467
|
readonly childResults: readonly MetricsResult[];
|
|
1432
1468
|
}
|
|
1433
1469
|
|
|
1434
|
-
|
|
1435
|
-
readonly
|
|
1436
|
-
readonly
|
|
1437
|
-
readonly
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
readonly compileErrors: S.Finite;
|
|
1442
|
-
readonly ignored: S.Finite;
|
|
1443
|
-
readonly totalDetected: S.Finite;
|
|
1444
|
-
readonly totalUndetected: S.Finite;
|
|
1445
|
-
readonly totalInvalid: S.Finite;
|
|
1446
|
-
readonly totalValid: S.Finite;
|
|
1447
|
-
readonly totalMutants: S.Finite;
|
|
1448
|
-
readonly totalCovered: S.Finite;
|
|
1449
|
-
readonly mutationScore: S.Finite;
|
|
1450
|
-
readonly mutationScoreBasedOnCoveredCode: S.Finite;
|
|
1451
|
-
}>;
|
|
1470
|
+
declare interface MetricsResultEncoded {
|
|
1471
|
+
readonly name: string;
|
|
1472
|
+
readonly metrics: typeof Metrics.Encoded;
|
|
1473
|
+
readonly childResults: readonly MetricsResultEncoded[];
|
|
1474
|
+
}
|
|
1475
|
+
|
|
1476
|
+
export declare const MetricsSchema: typeof Metrics;
|
|
1452
1477
|
|
|
1453
1478
|
export declare type ModeSignal = 'flag' | 'env' | 'tty' | 'agent' | 'tool';
|
|
1454
1479
|
|
|
@@ -1514,7 +1539,7 @@ export declare const MutantResultSchema: S.Struct<{
|
|
|
1514
1539
|
readonly static: S.optional<S.Boolean>;
|
|
1515
1540
|
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
1516
1541
|
readonly killedBy: S.optional<S.$Array<S.String>>;
|
|
1517
|
-
readonly testsCompleted: S.optional<S.
|
|
1542
|
+
readonly testsCompleted: S.optional<S.Int>;
|
|
1518
1543
|
readonly duration: S.optional<S.Finite>;
|
|
1519
1544
|
}>;
|
|
1520
1545
|
|
|
@@ -1551,8 +1576,8 @@ declare const MutantTested_base: S.Class<MutantTested, S.TaggedStruct<"mutantTes
|
|
|
1551
1576
|
}>;
|
|
1552
1577
|
readonly mutator: S.String;
|
|
1553
1578
|
readonly replacement: S.NullOr<S.String>;
|
|
1554
|
-
readonly completed: S.
|
|
1555
|
-
readonly total: S.
|
|
1579
|
+
readonly completed: S.Int;
|
|
1580
|
+
readonly total: S.Int;
|
|
1556
1581
|
}>, {}>;
|
|
1557
1582
|
|
|
1558
1583
|
export declare type MutateDescription = ReadonlyArray<MutationRange> | boolean;
|
|
@@ -1572,7 +1597,7 @@ export declare interface MutationTestDone {
|
|
|
1572
1597
|
export declare class MutationTestingPlanReady extends MutationTestingPlanReady_base {}
|
|
1573
1598
|
|
|
1574
1599
|
declare const MutationTestingPlanReady_base: S.Class<MutationTestingPlanReady, S.TaggedStruct<"mutationTestingPlanReady", {
|
|
1575
|
-
readonly total: S.
|
|
1600
|
+
readonly total: S.Int;
|
|
1576
1601
|
readonly plans: S.$Array<S.Struct<{
|
|
1577
1602
|
readonly mutantId: S.String;
|
|
1578
1603
|
readonly plan: S.Literals<readonly ["EarlyResult", "Run"]>;
|
|
@@ -1609,14 +1634,20 @@ declare const MutationTestReportReady_base: S.Class<MutationTestReportReady, S.T
|
|
|
1609
1634
|
readonly static: S.optional<S.Boolean>;
|
|
1610
1635
|
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
1611
1636
|
readonly killedBy: S.optional<S.$Array<S.String>>;
|
|
1612
|
-
readonly testsCompleted: S.optional<S.
|
|
1637
|
+
readonly testsCompleted: S.optional<S.Int>;
|
|
1613
1638
|
readonly duration: S.optional<S.Finite>;
|
|
1614
1639
|
}>>;
|
|
1615
1640
|
}>>;
|
|
1616
|
-
readonly thresholds: S.
|
|
1641
|
+
readonly thresholds: S.decodeTo<S.declare<{
|
|
1642
|
+
readonly high: number;
|
|
1643
|
+
readonly low: number;
|
|
1644
|
+
}, {
|
|
1645
|
+
readonly high: number;
|
|
1646
|
+
readonly low: number;
|
|
1647
|
+
}>, S.Struct<{
|
|
1617
1648
|
readonly high: S.Finite;
|
|
1618
1649
|
readonly low: S.Finite;
|
|
1619
|
-
}>;
|
|
1650
|
+
}>, never, never>;
|
|
1620
1651
|
readonly config: S.optional<S.$Record<S.String, S.Unknown>>;
|
|
1621
1652
|
readonly testFiles: S.optional<S.$Record<S.String, S.Struct<{
|
|
1622
1653
|
readonly source: S.optional<S.String>;
|
|
@@ -1646,28 +1677,7 @@ declare const MutationTestReportReady_base: S.Class<MutationTestReportReady, S.T
|
|
|
1646
1677
|
readonly dependencies: S.optional<S.$Record<S.String, S.String>>;
|
|
1647
1678
|
}>>;
|
|
1648
1679
|
}>;
|
|
1649
|
-
readonly metrics: S.
|
|
1650
|
-
readonly name: S.String;
|
|
1651
|
-
readonly metrics: S.Struct<{
|
|
1652
|
-
readonly pending: S.Finite;
|
|
1653
|
-
readonly killed: S.Finite;
|
|
1654
|
-
readonly timeout: S.Finite;
|
|
1655
|
-
readonly survived: S.Finite;
|
|
1656
|
-
readonly noCoverage: S.Finite;
|
|
1657
|
-
readonly runtimeErrors: S.Finite;
|
|
1658
|
-
readonly compileErrors: S.Finite;
|
|
1659
|
-
readonly ignored: S.Finite;
|
|
1660
|
-
readonly totalDetected: S.Finite;
|
|
1661
|
-
readonly totalUndetected: S.Finite;
|
|
1662
|
-
readonly totalInvalid: S.Finite;
|
|
1663
|
-
readonly totalValid: S.Finite;
|
|
1664
|
-
readonly totalMutants: S.Finite;
|
|
1665
|
-
readonly totalCovered: S.Finite;
|
|
1666
|
-
readonly mutationScore: S.Finite;
|
|
1667
|
-
readonly mutationScoreBasedOnCoveredCode: S.Finite;
|
|
1668
|
-
}>;
|
|
1669
|
-
readonly childResults: S.$Array<S.suspend<S.Codec<MetricsResult, MetricsResult, never, never>>>;
|
|
1670
|
-
}>;
|
|
1680
|
+
readonly metrics: S.Codec<MetricsResult, MetricsResultEncoded, never, never>;
|
|
1671
1681
|
}>, {}>;
|
|
1672
1682
|
|
|
1673
1683
|
export declare type MutationTestResult = typeof MutationTestResultSchema.Type;
|
|
@@ -1697,14 +1707,20 @@ export declare const MutationTestResultSchema: S.Struct<{
|
|
|
1697
1707
|
readonly static: S.optional<S.Boolean>;
|
|
1698
1708
|
readonly coveredBy: S.optional<S.$Array<S.String>>;
|
|
1699
1709
|
readonly killedBy: S.optional<S.$Array<S.String>>;
|
|
1700
|
-
readonly testsCompleted: S.optional<S.
|
|
1710
|
+
readonly testsCompleted: S.optional<S.Int>;
|
|
1701
1711
|
readonly duration: S.optional<S.Finite>;
|
|
1702
1712
|
}>>;
|
|
1703
1713
|
}>>;
|
|
1704
|
-
readonly thresholds: S.
|
|
1714
|
+
readonly thresholds: S.decodeTo<S.declare<{
|
|
1715
|
+
readonly high: number;
|
|
1716
|
+
readonly low: number;
|
|
1717
|
+
}, {
|
|
1718
|
+
readonly high: number;
|
|
1719
|
+
readonly low: number;
|
|
1720
|
+
}>, S.Struct<{
|
|
1705
1721
|
readonly high: S.Finite;
|
|
1706
1722
|
readonly low: S.Finite;
|
|
1707
|
-
}>;
|
|
1723
|
+
}>, never, never>;
|
|
1708
1724
|
readonly config: S.optional<S.$Record<S.String, S.Unknown>>;
|
|
1709
1725
|
readonly testFiles: S.optional<S.$Record<S.String, S.Struct<{
|
|
1710
1726
|
readonly source: S.optional<S.String>;
|
|
@@ -1847,7 +1863,7 @@ declare const PhaseEntered_base: S.Class<PhaseEntered, S.TaggedStruct<"phase", {
|
|
|
1847
1863
|
export declare class PlanKnown extends PlanKnown_base {}
|
|
1848
1864
|
|
|
1849
1865
|
declare const PlanKnown_base: S.Class<PlanKnown, S.TaggedStruct<"plan", {
|
|
1850
|
-
readonly total: S.
|
|
1866
|
+
readonly total: S.Int;
|
|
1851
1867
|
}>, {}>;
|
|
1852
1868
|
|
|
1853
1869
|
export declare type PluginDescriptor<K extends PluginKind = PluginKind> = PluginDescriptorOf<K>;
|
|
@@ -2055,6 +2071,11 @@ export declare interface ResolvedMode {
|
|
|
2055
2071
|
readonly stdoutIsTTY: boolean;
|
|
2056
2072
|
}
|
|
2057
2073
|
|
|
2074
|
+
export declare interface ResolvedModeInput {
|
|
2075
|
+
readonly mode: 'machine' | 'human';
|
|
2076
|
+
readonly signal: 'flag' | 'env' | 'tty' | 'agent' | 'tool';
|
|
2077
|
+
}
|
|
2078
|
+
|
|
2058
2079
|
export declare function resolveExitCode(pending: Iterable<ExitClass>, signal: number | null): number;
|
|
2059
2080
|
|
|
2060
2081
|
declare interface ReturnStatement$1 extends Span$1 {
|
|
@@ -2082,10 +2103,35 @@ export declare const RunEvent: S.Union<readonly [typeof RunStarted, typeof Phase
|
|
|
2082
2103
|
|
|
2083
2104
|
export declare type RunEvent = typeof RunEvent.Type;
|
|
2084
2105
|
|
|
2106
|
+
export declare class RunEventDrain extends RunEventDrain_base {}
|
|
2107
|
+
|
|
2108
|
+
declare const RunEventDrain_base: Context.ServiceClass<RunEventDrain, "@systemfsoftware/stryker-js/run-event-stream/RunEventDrain", RunEventDrainShape>;
|
|
2109
|
+
|
|
2110
|
+
export declare const RunEventDrainLive: Layer.Layer<RunEventDrain, never, Stdio.Stdio>;
|
|
2111
|
+
|
|
2112
|
+
declare interface RunEventDrainShape {
|
|
2113
|
+
readonly drainFramed: FramedDrain;
|
|
2114
|
+
readonly setProgressStreamFile: (fileName: string) => Effect.Effect<void, never, never>;
|
|
2115
|
+
}
|
|
2116
|
+
|
|
2085
2117
|
export declare class RunEvents extends RunEvents_base {}
|
|
2086
2118
|
|
|
2087
2119
|
declare const RunEvents_base: Context.ServiceClass<RunEvents, "@systemfsoftware/stryker-js/RunEvents", Queue.Queue<Heartbeat | HelpRendered | PhaseEntered | PlanKnown | RunFailed | RunMutantTested | RunStarted | VerdictReached, Cause.Done<void>>>;
|
|
2088
2120
|
|
|
2121
|
+
export declare interface RunEventStream {
|
|
2122
|
+
readonly queue: Queue.Queue<RunEvent, Cause.Done>;
|
|
2123
|
+
readonly runId: string;
|
|
2124
|
+
readonly startedAt: number;
|
|
2125
|
+
readonly isOpen: Effect.Effect<boolean, never, never>;
|
|
2126
|
+
readonly ensureOpen: (openResolved: ResolvedModeInput) => Effect.Effect<void, never, never>;
|
|
2127
|
+
readonly open: Effect.Effect<void, never, never>;
|
|
2128
|
+
readonly closeAndDrain: Effect.Effect<void, never, never>;
|
|
2129
|
+
}
|
|
2130
|
+
|
|
2131
|
+
export declare const RunEventWireLine: S.decodeTo<S.fromJsonString<S.Union<readonly [typeof RunStarted, typeof PhaseEntered, typeof PlanKnown, typeof RunMutantTested, typeof Heartbeat, typeof VerdictReached, typeof RunFailed, typeof HelpRendered]>>, S.String, never, never>;
|
|
2132
|
+
|
|
2133
|
+
export declare type RunEventWireLine = typeof RunEventWireLine.Type;
|
|
2134
|
+
|
|
2089
2135
|
export declare class RunFailed extends RunFailed_base {}
|
|
2090
2136
|
|
|
2091
2137
|
declare const RunFailed_base: S.Class<RunFailed, S.TaggedStruct<"error", {
|
|
@@ -2131,8 +2177,8 @@ declare const RunMutantTested_base: S.Class<RunMutantTested, S.TaggedStruct<"mut
|
|
|
2131
2177
|
}>;
|
|
2132
2178
|
readonly mutator: S.String;
|
|
2133
2179
|
readonly replacement: S.NullOr<S.String>;
|
|
2134
|
-
readonly completed: S.
|
|
2135
|
-
readonly total: S.
|
|
2180
|
+
readonly completed: S.Int;
|
|
2181
|
+
readonly total: S.Int;
|
|
2136
2182
|
}>, {}>;
|
|
2137
2183
|
|
|
2138
2184
|
export declare interface RunOptions {
|
|
@@ -2164,6 +2210,8 @@ declare const RunStarted_base: S.Class<RunStarted, S.TaggedStruct<"stream", {
|
|
|
2164
2210
|
|
|
2165
2211
|
export declare type RunTerminalEvent = VerdictReached | RunFailed | HelpRendered;
|
|
2166
2212
|
|
|
2213
|
+
export { S }
|
|
2214
|
+
|
|
2167
2215
|
export declare interface SandboxHandle {
|
|
2168
2216
|
readonly workingDirectory: string;
|
|
2169
2217
|
readonly sandboxFileFor: (fileName: string) => string;
|
|
@@ -2325,11 +2373,19 @@ export declare const StrykerOptionsSchema: S.StructWithRest<S.Struct<{
|
|
|
2325
2373
|
readonly options: S.optional<S.$Record<S.String, S.Unknown>>;
|
|
2326
2374
|
}>]>, never>;
|
|
2327
2375
|
readonly testRunnerNodeArgs: S.withDecodingDefaultKey<S.$Array<S.String>, never>;
|
|
2328
|
-
readonly thresholds: S.withDecodingDefaultKey<S.
|
|
2376
|
+
readonly thresholds: S.withDecodingDefaultKey<S.decodeTo<S.declare<{
|
|
2377
|
+
readonly high: number;
|
|
2378
|
+
readonly low: number;
|
|
2379
|
+
readonly break: number | null;
|
|
2380
|
+
}, {
|
|
2381
|
+
readonly high: number;
|
|
2382
|
+
readonly low: number;
|
|
2383
|
+
readonly break: number | null;
|
|
2384
|
+
}>, S.Struct<{
|
|
2329
2385
|
readonly high: S.withDecodingDefaultKey<S.Finite, never>;
|
|
2330
2386
|
readonly low: S.withDecodingDefaultKey<S.Finite, never>;
|
|
2331
2387
|
readonly break: S.withDecodingDefaultKey<S.NullOr<S.Finite>, never>;
|
|
2332
|
-
}>, never>;
|
|
2388
|
+
}>, never, never>, never>;
|
|
2333
2389
|
readonly timeoutFactor: S.withDecodingDefaultKey<S.Finite, never>;
|
|
2334
2390
|
readonly timeoutMS: S.withDecodingDefaultKey<S.Finite, never>;
|
|
2335
2391
|
readonly dryRunTimeoutMinutes: S.withDecodingDefaultKey<S.Finite, never>;
|
|
@@ -3089,16 +3145,7 @@ declare interface VariableDeclarator$1 extends Span$1 {
|
|
|
3089
3145
|
|
|
3090
3146
|
export declare const VERDICT_ENVELOPE_SCHEMA_VERSION = "1.1";
|
|
3091
3147
|
|
|
3092
|
-
export declare
|
|
3093
|
-
readonly killed: number;
|
|
3094
|
-
readonly timeout: number;
|
|
3095
|
-
readonly survived: number;
|
|
3096
|
-
readonly noCoverage: number;
|
|
3097
|
-
readonly runtimeErrors: number;
|
|
3098
|
-
readonly compileErrors: number;
|
|
3099
|
-
readonly ignored: number;
|
|
3100
|
-
readonly pending: number;
|
|
3101
|
-
}
|
|
3148
|
+
export declare type VerdictCounts = Metrics;
|
|
3102
3149
|
|
|
3103
3150
|
export declare interface VerdictEnvelope {
|
|
3104
3151
|
readonly schemaVersion: string;
|
|
@@ -3107,7 +3154,7 @@ export declare interface VerdictEnvelope {
|
|
|
3107
3154
|
readonly signal: ModeSignal;
|
|
3108
3155
|
readonly score: number | null;
|
|
3109
3156
|
readonly thresholds: VerdictThresholds;
|
|
3110
|
-
readonly counts:
|
|
3157
|
+
readonly counts: Metrics;
|
|
3111
3158
|
readonly reportFile: string | null;
|
|
3112
3159
|
readonly mutants: readonly VerdictMutant[];
|
|
3113
3160
|
}
|
|
@@ -3131,22 +3178,21 @@ declare const VerdictReached_base: S.Class<VerdictReached, S.TaggedStruct<"verdi
|
|
|
3131
3178
|
readonly mode: S.Literals<readonly ["human", "machine"]>;
|
|
3132
3179
|
readonly signal: S.Literals<readonly ["flag", "env", "tty", "agent", "tool"]>;
|
|
3133
3180
|
readonly score: S.NullOr<S.Finite>;
|
|
3134
|
-
readonly thresholds: S.
|
|
3181
|
+
readonly thresholds: S.decodeTo<S.declare<{
|
|
3182
|
+
readonly high: number;
|
|
3183
|
+
readonly low: number;
|
|
3184
|
+
readonly break: number | null;
|
|
3185
|
+
}, {
|
|
3186
|
+
readonly high: number;
|
|
3187
|
+
readonly low: number;
|
|
3188
|
+
readonly break: number | null;
|
|
3189
|
+
}>, S.Struct<{
|
|
3135
3190
|
readonly high: S.Finite;
|
|
3136
3191
|
readonly low: S.Finite;
|
|
3137
3192
|
readonly break: S.NullOr<S.Finite>;
|
|
3138
|
-
}>;
|
|
3193
|
+
}>, never, never>;
|
|
3139
3194
|
readonly reportFile: S.NullOr<S.String>;
|
|
3140
|
-
readonly counts:
|
|
3141
|
-
readonly killed: S.Finite;
|
|
3142
|
-
readonly timeout: S.Finite;
|
|
3143
|
-
readonly survived: S.Finite;
|
|
3144
|
-
readonly noCoverage: S.Finite;
|
|
3145
|
-
readonly runtimeErrors: S.Finite;
|
|
3146
|
-
readonly compileErrors: S.Finite;
|
|
3147
|
-
readonly ignored: S.Finite;
|
|
3148
|
-
readonly pending: S.Finite;
|
|
3149
|
-
}>;
|
|
3195
|
+
readonly counts: typeof Metrics;
|
|
3150
3196
|
readonly mutants: S.$Array<S.Struct<{
|
|
3151
3197
|
readonly id: S.String;
|
|
3152
3198
|
readonly file: S.String;
|
package/dist/index.mjs
CHANGED
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
import { $ as
|
|
2
|
-
|
|
1
|
+
import { $ as WorkerPluginKind, A as MetricsSchema, B as ReporterEventBatch, C as CheckerRequest, D as FileResultSchema, E as ExitClass, F as MutationTestingPlanReady, H as ReporterInitOptions, M as MutantTested, N as MutationTestReportReady, P as MutationTestResultSchema, R as ReporterAck, S as CheckerMutantWire, T as DryRunCompleted, U as ReporterRpcs, W as StrykerOptionsSchema, X as TraceContextMiddleware, _ as RunStarted, at as LocationSchema, b as CheckerFailed, c as PhaseEntered, ct as MutantStatusSchema, h as RunPhase, i as HelpRendered, j as MutantResultSchema, l as PlanKnown, lt as PositionSchema, m as RunMutantTested, n as StageError, p as RunFailed, q as TestRunnerConfigSchema, r as Heartbeat, st as MutantActivationSchema, v as VerdictReached, w as CheckerRpcs, x as CheckerGroupResult, y as CheckerCheckResult, z as ReporterDrained } from "./Run.schema-CgVfoOfk.mjs";
|
|
2
|
+
import { $ as validateOptions, A as strykerVersion, At as MergeResult, B as optionsPath, C as checkerMutantsSkipped, Ct as ExtendsStepDone, D as CheckerSkippedRequested, Dt as ExtendsStepStateSchema, E as CheckerAnsweredUnrequested, Et as ExtendsStepResolve, F as deepFreeze, Ft as toRelativeNormalizedFileName, G as decideExtendsStep, H as REPORTER_EVENT_BATCH_BOUND, I as defaultOptions, It as RunEvents, J as importModule, K as describeErrors, L as findUnserializables, Lt as RunIdentity, M as CONFIG_SYNTAX_HELP, Mt as extendsPropertySchema, N as SUPPORTED_CONFIG_FILE_NAMES, Nt as forkOptionsSchema, O as createFileMatcher, Ot as ImportedModuleSchema, P as createDefaultOptions, Pt as survivorsPriorReport, Q as readConfig, R as isModuleSpecifier, Rt as RunEventWireLine, S as checkerMutantsChecked, St as ExtendsStepDocumentSchema, T as checkerRpcFailures, Tt as ExtendsStepRefused, U as reporterWorkerFactory, V as RunEnvironment, W as spawnReporterWorker, X as loadConfigCell, Y as initialExtendsStepState, Z as mergeConfigs, _ as verdictExitClass, _t as ConfigError, a as RUN_EVENTS_QUEUE_BOUND, at as IdGenerator, b as checkGroupedPlans, bt as ConfigFileUnreadableError, c as shouldKeepTempDir, ct as OutOfMemoryError, d as buildVerdictEnvelope, dt as isVmRunner, et as buildTestRunner, f as generateRunId, ft as vmRunnerCapabilities, g as resolveExitCode, gt as ConfigDocumentSchema, h as highestExitClass, ht as StrykerError, i as makeRunEventStream, it as makeWorkerClient, j as IncrementalReportSchema, jt as ReadConfigCommand, k as matchesFile, kt as MergeCommand, l as ACTIONABLE_STATUSES, lt as WorkerBootTimeoutError, m as EXIT_CODE, mt as vmTestRunner, n as RunEventDrain, nt as WorkerLauncher, o as makeRunLayer, ot as classifyWorkerExit, p as isActionableStatus, pt as vmRunnerName, q as forkCoreSchema, r as RunEventDrainLive, rt as connectRetry, s as mutationTestCell, st as ChildProcessCrashedError, t as strykerCell, tt as isCommandRunner, u as VERDICT_ENVELOPE_SCHEMA_VERSION, ut as VmRunner, v as calculateMetrics, vt as ConfigFileInvalidError, w as checkerProcessCrashes, wt as ExtendsStepRead, x as checkerDuration, xt as ConfigFileUnsupportedError, y as countMutants, yt as ConfigFileNotFoundError, z as isWarningEnabled, zt as S } from "./src-CMHnl87m.mjs";
|
|
3
|
+
export { ACTIONABLE_STATUSES, CONFIG_SYNTAX_HELP, CheckerAnsweredUnrequested, CheckerCheckResult, CheckerFailed, CheckerGroupResult, CheckerMutantWire, CheckerRequest, CheckerRpcs, CheckerSkippedRequested, ChildProcessCrashedError, ConfigDocumentSchema, ConfigError, ConfigFileInvalidError, ConfigFileNotFoundError, ConfigFileUnreadableError, ConfigFileUnsupportedError, DryRunCompleted, EXIT_CODE, ExitClass, ExtendsStepDocumentSchema, ExtendsStepDone, ExtendsStepRead, ExtendsStepRefused, ExtendsStepResolve, ExtendsStepStateSchema, FileResultSchema, Heartbeat, HelpRendered, IdGenerator, ImportedModuleSchema, IncrementalReportSchema, LocationSchema, MergeCommand, MergeResult, MetricsSchema, MutantActivationSchema, MutantResultSchema, MutantStatusSchema, MutantTested, MutationTestReportReady, MutationTestResultSchema, MutationTestingPlanReady, OutOfMemoryError, PhaseEntered, PlanKnown, PositionSchema, REPORTER_EVENT_BATCH_BOUND, RUN_EVENTS_QUEUE_BOUND, ReadConfigCommand, ReporterAck, ReporterDrained, ReporterEventBatch, ReporterInitOptions, ReporterRpcs, RunEnvironment, RunEventDrain, RunEventDrainLive, RunEventWireLine, RunEvents, RunFailed, RunIdentity, RunMutantTested, RunPhase, RunStarted, S, SUPPORTED_CONFIG_FILE_NAMES, StageError, StrykerError, StrykerOptionsSchema, TestRunnerConfigSchema, TraceContextMiddleware, VERDICT_ENVELOPE_SCHEMA_VERSION, VerdictReached, VmRunner, WorkerBootTimeoutError, WorkerLauncher, WorkerPluginKind, buildTestRunner, buildVerdictEnvelope, calculateMetrics, checkGroupedPlans, checkerDuration, checkerMutantsChecked, checkerMutantsSkipped, checkerProcessCrashes, checkerRpcFailures, classifyWorkerExit, connectRetry, countMutants, createDefaultOptions, createFileMatcher, decideExtendsStep, deepFreeze, defaultOptions, describeErrors, extendsPropertySchema, findUnserializables, forkCoreSchema, forkOptionsSchema, generateRunId, highestExitClass, importModule, initialExtendsStepState, isActionableStatus, isCommandRunner, isModuleSpecifier, isVmRunner, isWarningEnabled, loadConfigCell, makeRunEventStream, makeRunLayer, makeWorkerClient, matchesFile, mergeConfigs, mutationTestCell, optionsPath, readConfig, reporterWorkerFactory, resolveExitCode, shouldKeepTempDir, spawnReporterWorker, strykerCell, strykerVersion, survivorsPriorReport, toRelativeNormalizedFileName, validateOptions, verdictExitClass, vmRunnerCapabilities, vmRunnerName, vmTestRunner };
|