@systemfsoftware/stryker-js-instrumenter 9.0.0 → 10.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/dist/index.d.mts CHANGED
@@ -1,9 +1,9 @@
1
1
  import * as Option from "effect/Option";
2
- import "effect/Result";
2
+ import * as Result from "effect/Result";
3
3
  import * as S from "effect/Schema";
4
4
  import * as Effect from "effect/Effect";
5
- import { Workflow } from "@systemfsoftware/effect-cell-types";
6
- import "effect/Pipeable";
5
+ import { Handle, Workflow } from "@systemfsoftware/effect-cell-types";
6
+ import * as Arr from "effect/Array";
7
7
  import { EmbeddedDocument, FormatId, Framework, FrameworkContext } from "@systemfsoftware/stryker-framework-interface";
8
8
  import "oxc-parser";
9
9
  import "@oxc-project/types";
@@ -11,16 +11,12 @@ import "@oxc-project/types";
11
11
  declare const ErrorText_base: S.Class<ErrorText, S.Struct<{
12
12
  readonly text: S.NonEmptyString;
13
13
  }>, {}>;
14
- declare class ErrorText extends ErrorText_base {
15
- static fromCause: <A>(cause: A) => Option.Option<ErrorText>;
16
- }
14
+ declare class ErrorText extends ErrorText_base {}
17
15
  type ErrorTextValue = ErrorText;
18
16
  declare const CauseText_base: S.Class<CauseText, S.Struct<{
19
17
  readonly text: S.NonEmptyString;
20
18
  }>, {}>;
21
- declare class CauseText extends CauseText_base {
22
- static fromCause: <A>(cause: A) => Option.Option<CauseText>;
23
- }
19
+ declare class CauseText extends CauseText_base {}
24
20
  type CauseTextValue = CauseText;
25
21
  interface ErrnoException extends Error {
26
22
  code?: string;
@@ -28,8 +24,12 @@ interface ErrnoException extends Error {
28
24
  path?: string;
29
25
  syscall?: string;
30
26
  }
27
+ //#endregion
28
+ //#region src/error-text.d.ts
29
+ declare const errorTextOf: <A = unknown>(cause: A) => Option.Option<ErrorText>;
30
+ declare const causeTextOf: <A = unknown>(cause: A) => Option.Option<CauseText>;
31
31
  declare namespace mod_d_exports {
32
- export { CauseText, CauseTextValue, ErrnoException, ErrorText, ErrorTextValue };
32
+ export { CauseText, CauseTextValue, ErrnoException, ErrorText, ErrorTextValue, causeTextOf, errorTextOf };
33
33
  }
34
34
  //#endregion
35
35
  //#region ../ignorers/interface/dist/index.d.ts
@@ -1339,54 +1339,73 @@ declare interface YieldExpression$1 extends Span$1 {
1339
1339
  }
1340
1340
  //#endregion
1341
1341
  //#region src/Location.schema.d.ts
1342
- /**
1343
- * File coordinates in the mutation-testing-report-schema contract: both line
1344
- * and column are 1-based. The first line of a file is line 1, and the first
1345
- * character of a line is column 1. Slicing a source line by one of these
1346
- * positions uses `line - 1` for the line index and `column - 1` for the
1347
- * character offset.
1348
- */
1349
- declare const PositionSchema: S.Struct<{
1342
+ declare const Offset: S.Int;
1343
+ type Offset = typeof Offset.Type;
1344
+ /** A 1-based line: the first line of a file is line 1. */
1345
+ declare const Line: S.Int;
1346
+ type Line = typeof Line.Type;
1347
+ /** A 1-based column: the first character of a line is column 1. */
1348
+ declare const Column: S.Int;
1349
+ type Column = typeof Column.Type;
1350
+ declare const Position: S.Struct<{
1350
1351
  readonly line: S.Int;
1351
1352
  readonly column: S.Int;
1352
1353
  }>;
1353
- type Position = typeof PositionSchema.Type;
1354
- declare const LocationSchema: S.Struct<{
1355
- readonly start: S.Struct<{
1356
- readonly line: S.Int;
1357
- readonly column: S.Int;
1358
- }>;
1359
- readonly end: S.Struct<{
1360
- readonly line: S.Int;
1361
- readonly column: S.Int;
1362
- }>;
1354
+ type Position = typeof Position.Type;
1355
+ declare const Location: S.declare<{
1356
+ readonly start: {
1357
+ readonly line: number;
1358
+ readonly column: number;
1359
+ };
1360
+ readonly end: {
1361
+ readonly line: number;
1362
+ readonly column: number;
1363
+ };
1364
+ }, {
1365
+ readonly start: {
1366
+ readonly line: number;
1367
+ readonly column: number;
1368
+ };
1369
+ readonly end: {
1370
+ readonly line: number;
1371
+ readonly column: number;
1372
+ };
1363
1373
  }>;
1364
- type Location = typeof LocationSchema.Type;
1365
- declare const OpenEndLocationSchema: S.Struct<{
1366
- readonly start: S.Struct<{
1367
- readonly line: S.Int;
1368
- readonly column: S.Int;
1369
- }>;
1370
- readonly end: S.optional<S.Struct<{
1371
- readonly line: S.Int;
1372
- readonly column: S.Int;
1373
- }>>;
1374
+ type Location = typeof Location.Type;
1375
+ declare const OpenEndLocation: S.declare<{
1376
+ readonly start: {
1377
+ readonly line: number;
1378
+ readonly column: number;
1379
+ };
1380
+ readonly end?: {
1381
+ readonly line: number;
1382
+ readonly column: number;
1383
+ } | undefined;
1384
+ }, {
1385
+ readonly start: {
1386
+ readonly line: number;
1387
+ readonly column: number;
1388
+ };
1389
+ readonly end?: {
1390
+ readonly line: number;
1391
+ readonly column: number;
1392
+ } | undefined;
1374
1393
  }>;
1375
- type OpenEndLocation = typeof OpenEndLocationSchema.Type;
1376
- /**
1377
- * A mutant's `location` already speaks the report contract (1-based line and
1378
- * column), so the report's location is that location unchanged.
1379
- */
1380
- declare const ReportLocationFromMutant: S.Struct<{
1381
- readonly start: S.Struct<{
1382
- readonly line: S.Int;
1383
- readonly column: S.Int;
1384
- }>;
1385
- readonly end: S.Struct<{
1386
- readonly line: S.Int;
1387
- readonly column: S.Int;
1388
- }>;
1394
+ type OpenEndLocation = typeof OpenEndLocation.Type;
1395
+ declare const Span: S.declare<{
1396
+ readonly start: number;
1397
+ readonly end: number;
1398
+ }, {
1399
+ readonly start: number;
1400
+ readonly end: number;
1401
+ }>;
1402
+ type Span = typeof Span.Type;
1403
+ declare const ScriptOrigin: S.Struct<{
1404
+ readonly line: S.Int;
1405
+ readonly columnShift: S.Int;
1389
1406
  }>;
1407
+ type ScriptOrigin = typeof ScriptOrigin.Type;
1408
+ type LineStarts = Arr.NonEmptyReadonlyArray<Offset>;
1390
1409
  //#endregion
1391
1410
  //#region src/Syntax.schema.d.ts
1392
1411
  declare const AstFormat: S.Literals<readonly ["js", "ts", "tsx"]>;
@@ -1404,7 +1423,7 @@ interface BaseAst {
1404
1423
  originFileName: string;
1405
1424
  rawContent: string;
1406
1425
  root: Program;
1407
- offset?: Position;
1426
+ offset?: ScriptOrigin;
1408
1427
  }
1409
1428
  interface EmbeddedAst {
1410
1429
  format: 'embedded';
@@ -1437,29 +1456,189 @@ interface TsxAst extends BaseAst {
1437
1456
  type ScriptAst = JSAst | TSAst | TsxAst;
1438
1457
  type Ast = JSAst | TSAst | TsxAst | EmbeddedAst;
1439
1458
  //#endregion
1459
+ //#region src/Instrument.schema.d.ts
1460
+ declare const InstrumentError_base: S.Class<InstrumentError, S.TaggedStruct<"InstrumentError", {
1461
+ readonly message: S.String;
1462
+ readonly cause: S.Defect;
1463
+ }>, import("effect/Cause").YieldableError>;
1464
+ declare class InstrumentError extends InstrumentError_base {
1465
+ get message(): string;
1466
+ }
1467
+ declare const MutateDescriptionSchema: S.Union<readonly [S.Boolean, S.$Array<S.declare<{
1468
+ readonly start: {
1469
+ readonly line: number;
1470
+ readonly column: number;
1471
+ };
1472
+ readonly end: {
1473
+ readonly line: number;
1474
+ readonly column: number;
1475
+ };
1476
+ }, {
1477
+ readonly start: {
1478
+ readonly line: number;
1479
+ readonly column: number;
1480
+ };
1481
+ readonly end: {
1482
+ readonly line: number;
1483
+ readonly column: number;
1484
+ };
1485
+ }>>]>;
1486
+ type MutateDescription = typeof MutateDescriptionSchema.Type;
1487
+ interface FileDescription {
1488
+ readonly mutate: MutateDescription;
1489
+ }
1490
+ type FileDescriptions = Record<string, FileDescription>;
1491
+ declare const InstrumenterOptionsSchema: S.Struct<{
1492
+ readonly excludedMutations: S.$Array<S.String>;
1493
+ readonly ignorers: S.$Array<S.Unknown>;
1494
+ readonly noHeader: S.optional<S.Boolean>;
1495
+ readonly optInMutations: S.optional<S.$Array<S.String>>;
1496
+ }>;
1497
+ type InstrumenterOptions = typeof InstrumenterOptionsSchema.Type;
1498
+ declare const InstrumentFileSkip_base: S.Class<InstrumentFileSkip, S.TaggedStruct<"InstrumentFileSkip", {
1499
+ readonly file: S.String;
1500
+ readonly extension: S.String;
1501
+ readonly reason: S.String;
1502
+ }>, {}>;
1503
+ declare class InstrumentFileSkip extends InstrumentFileSkip_base {}
1504
+ declare const InstrumentResult_base: S.Class<InstrumentResult$1, S.TaggedStruct<"InstrumentResult", {
1505
+ readonly files: S.$Array<S.Struct<{
1506
+ readonly name: S.decodeTo<S.brand<S.String, "CanonicalFileName">, S.String, never, never>;
1507
+ readonly content: S.String;
1508
+ readonly mutate: S.Union<readonly [S.Boolean, S.$Array<S.declare<{
1509
+ readonly start: {
1510
+ readonly line: number;
1511
+ readonly column: number;
1512
+ };
1513
+ readonly end: {
1514
+ readonly line: number;
1515
+ readonly column: number;
1516
+ };
1517
+ }, {
1518
+ readonly start: {
1519
+ readonly line: number;
1520
+ readonly column: number;
1521
+ };
1522
+ readonly end: {
1523
+ readonly line: number;
1524
+ readonly column: number;
1525
+ };
1526
+ }>>]>;
1527
+ }>>;
1528
+ readonly mutants: S.$Array<S.Struct<{
1529
+ readonly _tag: S.tag<"Mutant">;
1530
+ readonly id: S.brand<S.String, "MutantId">;
1531
+ readonly fileName: S.decodeTo<S.brand<S.String, "CanonicalFileName">, S.String, never, never>;
1532
+ readonly mutatorName: S.brand<S.NonEmptyString, "MutatorName">;
1533
+ readonly replacement: S.String;
1534
+ readonly location: S.declare<{
1535
+ readonly start: {
1536
+ readonly line: number;
1537
+ readonly column: number;
1538
+ };
1539
+ readonly end: {
1540
+ readonly line: number;
1541
+ readonly column: number;
1542
+ };
1543
+ }, {
1544
+ readonly start: {
1545
+ readonly line: number;
1546
+ readonly column: number;
1547
+ };
1548
+ readonly end: {
1549
+ readonly line: number;
1550
+ readonly column: number;
1551
+ };
1552
+ }>;
1553
+ readonly status: S.optional<S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>>;
1554
+ readonly statusReason: S.optional<S.String>;
1555
+ readonly coveredBy: S.optional<S.$Array<S.String>>;
1556
+ readonly static: S.optional<S.Boolean>;
1557
+ readonly testsCompleted: S.optional<S.Finite>;
1558
+ readonly description: S.optional<S.String>;
1559
+ }>>;
1560
+ readonly skipped: S.$Array<typeof InstrumentFileSkip>;
1561
+ }>, {}>;
1562
+ declare class InstrumentResult$1 extends InstrumentResult_base {}
1563
+ //#endregion
1564
+ //#region src/Parser.schema.d.ts
1565
+ declare const ParseFailed_base: S.Class<ParseFailed, S.TaggedStruct<"ParseFailed", {
1566
+ readonly fileName: S.String;
1567
+ readonly message: S.String;
1568
+ readonly location: S.Struct<{
1569
+ readonly line: S.Int;
1570
+ readonly column: S.Int;
1571
+ }>;
1572
+ readonly cause: S.Defect;
1573
+ }>, import("effect/Cause").YieldableError>;
1574
+ declare class ParseFailed extends ParseFailed_base {
1575
+ get message(): string;
1576
+ }
1577
+ //#endregion
1578
+ //#region src/Parser.service.d.ts
1579
+ interface ParserOptions {}
1580
+ interface ParserContext {
1581
+ parse: (code: string, fileName: string, scriptFormat: ScriptFormat) => Effect.Effect<ScriptAst, ParseFailed>;
1582
+ }
1583
+ //#endregion
1584
+ //#region src/print/PrintFailed.schema.d.ts
1585
+ declare const PrintFailed_base: S.Class<PrintFailed, S.TaggedStruct<"PrintFailed", {
1586
+ readonly message: S.String;
1587
+ }>, import("effect/Cause").YieldableError>;
1588
+ declare class PrintFailed extends PrintFailed_base {}
1589
+ //#endregion
1590
+ //#region src/Printer.d.ts
1591
+ interface PrinterContext {
1592
+ print: (file: Ast, context: PrinterContext) => Result.Result<string, PrintFailed>;
1593
+ }
1594
+ //#endregion
1440
1595
  //#region src/Mutant.schema.d.ts
1441
1596
  declare const MutantStatusSchema: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
1442
1597
  type MutantStatus = typeof MutantStatusSchema.Type;
1443
- declare const MutantId: S.brand<S.NonEmptyString, "MutantId">;
1598
+ declare const SurvivorStatusSchema: S.Literals<readonly ["Survived", "NoCoverage"]>;
1599
+ type SurvivorStatus = typeof SurvivorStatusSchema.Type;
1600
+ declare const RememberedStatusSchema: S.Literals<readonly ["Survived", "Killed", "Timeout", "NoCoverage", "Ignored"]>;
1601
+ type RememberedStatus = typeof RememberedStatusSchema.Type;
1602
+ declare const EphemeralStatusSchema: S.Literals<readonly ["CompileError", "RuntimeError", "Pending"]>;
1603
+ type EphemeralStatus = typeof EphemeralStatusSchema.Type;
1604
+ declare const ActionableStatusSchema: S.Literals<readonly ["Survived", "NoCoverage", "Timeout", "RuntimeError"]>;
1605
+ type ActionableStatus = typeof ActionableStatusSchema.Type;
1606
+ declare const MutantId: S.brand<S.String, "MutantId">;
1444
1607
  type MutantId = typeof MutantId.Type;
1445
1608
  declare const MutatorName: S.brand<S.NonEmptyString, "MutatorName">;
1446
1609
  type MutatorName = typeof MutatorName.Type;
1447
1610
  declare const CanonicalFileName: S.decodeTo<S.brand<S.String, "CanonicalFileName">, S.String, never, never>;
1448
1611
  type CanonicalFileName = typeof CanonicalFileName.Type;
1449
- declare const Mutant_base: S.Class<Mutant$1, S.TaggedStruct<"Mutant", {
1450
- readonly id: S.brand<S.NonEmptyString, "MutantId">;
1612
+ /**
1613
+ * A mutant's file location in the mutation-testing-report-schema contract:
1614
+ * 1-based line and 1-based column, the same base the JSON report and the
1615
+ * machine stream emit. Every producer on the instrument path (node spans,
1616
+ * embedded-region shifts) targets this base; no downstream layer converts.
1617
+ */
1618
+ declare const Mutant$1: S.Struct<{
1619
+ readonly _tag: S.tag<"Mutant">;
1620
+ readonly id: S.brand<S.String, "MutantId">;
1451
1621
  readonly fileName: S.decodeTo<S.brand<S.String, "CanonicalFileName">, S.String, never, never>;
1452
1622
  readonly mutatorName: S.brand<S.NonEmptyString, "MutatorName">;
1453
1623
  readonly replacement: S.String;
1454
- readonly location: S.Struct<{
1455
- readonly start: S.Struct<{
1456
- readonly line: S.Int;
1457
- readonly column: S.Int;
1458
- }>;
1459
- readonly end: S.Struct<{
1460
- readonly line: S.Int;
1461
- readonly column: S.Int;
1462
- }>;
1624
+ readonly location: S.declare<{
1625
+ readonly start: {
1626
+ readonly line: number;
1627
+ readonly column: number;
1628
+ };
1629
+ readonly end: {
1630
+ readonly line: number;
1631
+ readonly column: number;
1632
+ };
1633
+ }, {
1634
+ readonly start: {
1635
+ readonly line: number;
1636
+ readonly column: number;
1637
+ };
1638
+ readonly end: {
1639
+ readonly line: number;
1640
+ readonly column: number;
1641
+ };
1463
1642
  }>;
1464
1643
  readonly status: S.optional<S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>>;
1465
1644
  readonly statusReason: S.optional<S.String>;
@@ -1467,15 +1646,40 @@ declare const Mutant_base: S.Class<Mutant$1, S.TaggedStruct<"Mutant", {
1467
1646
  readonly static: S.optional<S.Boolean>;
1468
1647
  readonly testsCompleted: S.optional<S.Finite>;
1469
1648
  readonly description: S.optional<S.String>;
1470
- }>, {}>;
1471
- /**
1472
- * A mutant's file location in the mutation-testing-report-schema contract:
1473
- * 1-based line and 1-based column, the same base the JSON report and the
1474
- * machine stream emit. Every producer on the instrument path (node spans,
1475
- * embedded-region shifts) targets this base; no downstream layer converts.
1476
- */
1477
- declare class Mutant$1 extends Mutant_base {}
1478
- declare const MutantFromUnknown: S.compose<typeof Mutant$1, S.Unknown>;
1649
+ }>;
1650
+ type Mutant$1 = typeof Mutant$1.Type;
1651
+ declare const MutantFromUnknown: S.compose<S.Struct<{
1652
+ readonly _tag: S.tag<"Mutant">;
1653
+ readonly id: S.brand<S.String, "MutantId">;
1654
+ readonly fileName: S.decodeTo<S.brand<S.String, "CanonicalFileName">, S.String, never, never>;
1655
+ readonly mutatorName: S.brand<S.NonEmptyString, "MutatorName">;
1656
+ readonly replacement: S.String;
1657
+ readonly location: S.declare<{
1658
+ readonly start: {
1659
+ readonly line: number;
1660
+ readonly column: number;
1661
+ };
1662
+ readonly end: {
1663
+ readonly line: number;
1664
+ readonly column: number;
1665
+ };
1666
+ }, {
1667
+ readonly start: {
1668
+ readonly line: number;
1669
+ readonly column: number;
1670
+ };
1671
+ readonly end: {
1672
+ readonly line: number;
1673
+ readonly column: number;
1674
+ };
1675
+ }>;
1676
+ readonly status: S.optional<S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>>;
1677
+ readonly statusReason: S.optional<S.String>;
1678
+ readonly coveredBy: S.optional<S.$Array<S.String>>;
1679
+ readonly static: S.optional<S.Boolean>;
1680
+ readonly testsCompleted: S.optional<S.Finite>;
1681
+ readonly description: S.optional<S.String>;
1682
+ }>, S.Unknown>;
1479
1683
  type MutantFromUnknown = typeof MutantFromUnknown.Type;
1480
1684
  declare const RunOptionsFields: {
1481
1685
  timeout: S.Finite;
@@ -1483,10 +1687,42 @@ declare const RunOptionsFields: {
1483
1687
  };
1484
1688
  declare const MutantActivationSchema: S.Literals<readonly ["runtime", "static"]>;
1485
1689
  type MutantActivation = typeof MutantActivationSchema.Type;
1690
+ declare const HitCount: S.Int;
1486
1691
  declare const MutantRunOptionsSchema: S.Struct<{
1487
1692
  readonly timeout: S.Finite;
1488
1693
  readonly disableBail: S.Boolean;
1489
- readonly activeMutant: typeof Mutant$1;
1694
+ readonly activeMutant: S.Struct<{
1695
+ readonly _tag: S.tag<"Mutant">;
1696
+ readonly id: S.brand<S.String, "MutantId">;
1697
+ readonly fileName: S.decodeTo<S.brand<S.String, "CanonicalFileName">, S.String, never, never>;
1698
+ readonly mutatorName: S.brand<S.NonEmptyString, "MutatorName">;
1699
+ readonly replacement: S.String;
1700
+ readonly location: S.declare<{
1701
+ readonly start: {
1702
+ readonly line: number;
1703
+ readonly column: number;
1704
+ };
1705
+ readonly end: {
1706
+ readonly line: number;
1707
+ readonly column: number;
1708
+ };
1709
+ }, {
1710
+ readonly start: {
1711
+ readonly line: number;
1712
+ readonly column: number;
1713
+ };
1714
+ readonly end: {
1715
+ readonly line: number;
1716
+ readonly column: number;
1717
+ };
1718
+ }>;
1719
+ readonly status: S.optional<S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>>;
1720
+ readonly statusReason: S.optional<S.String>;
1721
+ readonly coveredBy: S.optional<S.$Array<S.String>>;
1722
+ readonly static: S.optional<S.Boolean>;
1723
+ readonly testsCompleted: S.optional<S.Finite>;
1724
+ readonly description: S.optional<S.String>;
1725
+ }>;
1490
1726
  readonly sandboxFileName: S.String;
1491
1727
  readonly mutantActivation: S.Literals<readonly ["runtime", "static"]>;
1492
1728
  readonly reloadEnvironment: S.Boolean;
@@ -1494,8 +1730,8 @@ declare const MutantRunOptionsSchema: S.Struct<{
1494
1730
  readonly hitLimit: S.optionalKey<S.Int>;
1495
1731
  }>;
1496
1732
  declare const MutantCoverageSchema: S.Struct<{
1497
- readonly perTest: S.$Record<S.String, S.$Record<S.String, S.Int>>;
1498
- readonly static: S.$Record<S.String, S.Int>;
1733
+ readonly perTest: S.$Record<S.String, S.$Record<S.brand<S.String, "MutantId">, S.Int>>;
1734
+ readonly static: S.$Record<S.brand<S.String, "MutantId">, S.Int>;
1499
1735
  }>;
1500
1736
  type MutantCoverage = typeof MutantCoverageSchema.Type;
1501
1737
  type CoverageData = Record<string, number>;
@@ -1543,11 +1779,11 @@ declare const InstrumenterContext_base: S.Class<InstrumenterContext, S.Struct<{
1543
1779
  readonly activeMutant: S.optional<S.String>;
1544
1780
  readonly currentTestId: S.optional<S.String>;
1545
1781
  readonly mutantCoverage: S.optional<S.Struct<{
1546
- readonly perTest: S.$Record<S.String, S.$Record<S.String, S.Int>>;
1547
- readonly static: S.$Record<S.String, S.Int>;
1782
+ readonly perTest: S.$Record<S.String, S.$Record<S.brand<S.String, "MutantId">, S.Int>>;
1783
+ readonly static: S.$Record<S.brand<S.String, "MutantId">, S.Int>;
1548
1784
  }>>;
1549
- readonly hitCount: S.optional<S.Finite>;
1550
- readonly hitLimit: S.optional<S.Finite>;
1785
+ readonly hitCount: S.optional<S.Int>;
1786
+ readonly hitLimit: S.optional<S.Int>;
1551
1787
  }>, {}>;
1552
1788
  declare class InstrumenterContext extends InstrumenterContext_base {
1553
1789
  static readonly NAMESPACE = "__stryker__";
@@ -1562,92 +1798,6 @@ type MutantRunPlan = RunPlan;
1562
1798
  type MutantEarlyResultPlan = EarlyResultPlan;
1563
1799
  type MutantTestPlan = TestPlan;
1564
1800
  //#endregion
1565
- //#region src/Instrument.schema.d.ts
1566
- declare const InstrumentError_base: S.Class<InstrumentError, S.TaggedStruct<"InstrumentError", {
1567
- readonly message: S.String;
1568
- readonly cause: S.Defect;
1569
- }>, import("effect/Cause").YieldableError>;
1570
- declare class InstrumentError extends InstrumentError_base {
1571
- get message(): string;
1572
- }
1573
- declare const MutateDescriptionSchema: S.Union<readonly [S.Boolean, S.$Array<S.Struct<{
1574
- readonly start: S.Struct<{
1575
- readonly line: S.Int;
1576
- readonly column: S.Int;
1577
- }>;
1578
- readonly end: S.Struct<{
1579
- readonly line: S.Int;
1580
- readonly column: S.Int;
1581
- }>;
1582
- }>>]>;
1583
- type MutateDescription = typeof MutateDescriptionSchema.Type;
1584
- interface MutationRange {
1585
- readonly start: Position;
1586
- readonly end: Position;
1587
- }
1588
- interface FileDescription {
1589
- readonly mutate: MutateDescription;
1590
- }
1591
- type FileDescriptions = Record<string, FileDescription>;
1592
- declare const InstrumenterOptionsSchema: S.Struct<{
1593
- readonly excludedMutations: S.$Array<S.String>;
1594
- readonly ignorers: S.$Array<S.Unknown>;
1595
- readonly noHeader: S.optional<S.Boolean>;
1596
- readonly optInMutations: S.optional<S.$Array<S.String>>;
1597
- }>;
1598
- type InstrumenterOptions = typeof InstrumenterOptionsSchema.Type;
1599
- declare const InstrumentFileSkip_base: S.Class<InstrumentFileSkip, S.TaggedStruct<"InstrumentFileSkip", {
1600
- readonly file: S.String;
1601
- readonly extension: S.String;
1602
- readonly reason: S.String;
1603
- }>, {}>;
1604
- declare class InstrumentFileSkip extends InstrumentFileSkip_base {}
1605
- declare const InstrumentResult_base: S.Class<InstrumentResult$1, S.TaggedStruct<"InstrumentResult", {
1606
- readonly files: S.$Array<S.Struct<{
1607
- readonly name: S.String;
1608
- readonly content: S.String;
1609
- readonly mutate: S.Union<readonly [S.Boolean, S.$Array<S.Struct<{
1610
- readonly start: S.Struct<{
1611
- readonly line: S.Int;
1612
- readonly column: S.Int;
1613
- }>;
1614
- readonly end: S.Struct<{
1615
- readonly line: S.Int;
1616
- readonly column: S.Int;
1617
- }>;
1618
- }>>]>;
1619
- }>>;
1620
- readonly mutants: S.$Array<typeof Mutant$1>;
1621
- readonly skipped: S.$Array<typeof InstrumentFileSkip>;
1622
- }>, {}>;
1623
- declare class InstrumentResult$1 extends InstrumentResult_base {}
1624
- //#endregion
1625
- //#region src/Parser.schema.d.ts
1626
- declare const ParseFailed_base: S.Class<ParseFailed, S.TaggedStruct<"ParseFailed", {
1627
- readonly fileName: S.String;
1628
- readonly message: S.String;
1629
- readonly location: S.Struct<{
1630
- readonly line: S.Finite;
1631
- readonly column: S.Finite;
1632
- }>;
1633
- readonly cause: S.Defect;
1634
- }>, import("effect/Cause").YieldableError>;
1635
- declare class ParseFailed extends ParseFailed_base {
1636
- get message(): string;
1637
- }
1638
- //#endregion
1639
- //#region src/Parser.service.d.ts
1640
- interface ParserOptions {}
1641
- interface ParserContext {
1642
- parse: (code: string, fileName: string, scriptFormat: ScriptFormat) => Effect.Effect<ScriptAst, ParseFailed>;
1643
- }
1644
- //#endregion
1645
- //#region src/Printer.handle.d.ts
1646
- type Printer<T extends Ast = Ast> = (file: T, context: PrinterContext) => string;
1647
- interface PrinterContext {
1648
- print: Printer<Ast>;
1649
- }
1650
- //#endregion
1651
1801
  //#region src/Mutator.service.d.ts
1652
1802
  interface Mutable {
1653
1803
  mutatorName: string;
@@ -1655,7 +1805,7 @@ interface Mutable {
1655
1805
  replacement: Node_2;
1656
1806
  }
1657
1807
  interface Mutant extends Mutable {
1658
- readonly id: string;
1808
+ readonly id: MutantId;
1659
1809
  readonly fileName: string;
1660
1810
  readonly original: Node_2;
1661
1811
  readonly location: Location;
@@ -1718,7 +1868,7 @@ interface FormatRegistry {
1718
1868
  readonly entryForExtension: (extension: string) => Option.Option<FormatEntry>;
1719
1869
  }
1720
1870
  //#endregion
1721
- //#region src/Format.handle.d.ts
1871
+ //#region src/Format.d.ts
1722
1872
  declare const extensionOf: (fileName: string) => string;
1723
1873
  declare const registerEntries: {
1724
1874
  (registry: FormatRegistry, additions: readonly FormatEntry[]): FormatRegistry;
@@ -1726,7 +1876,7 @@ declare const registerEntries: {
1726
1876
  };
1727
1877
  declare const coreFormatRegistry: FormatRegistry;
1728
1878
  //#endregion
1729
- //#region src/FrameworkEntry.handle.d.ts
1879
+ //#region src/FrameworkEntry.d.ts
1730
1880
  declare const frameworkEntryOf: {
1731
1881
  (moduleName: string, framework: Framework): EmbeddedFormatEntry;
1732
1882
  (framework: Framework): (moduleName: string) => EmbeddedFormatEntry;
@@ -1754,10 +1904,29 @@ declare const disableTypeChecks: {
1754
1904
  (registry?: FormatRegistry): (file: File) => Effect.Effect<File, InstrumentError>;
1755
1905
  };
1756
1906
  declare namespace mod_d_exports$2 {
1757
- export { File, FileDescription, FileDescriptions, InstrumentError, InstrumentFileSkip, InstrumentResult, InstrumenterOptions, MutateDescription, MutationRange, ParserOptions, disableTypeChecks, instrument };
1907
+ export { File, FileDescription, FileDescriptions, InstrumentError, InstrumentFileSkip, InstrumentResult, InstrumenterOptions, MutateDescription, ParserOptions, disableTypeChecks, instrument };
1758
1908
  }
1909
+ //#endregion
1910
+ //#region src/Location.d.ts
1911
+ export declare const lineStartsOf: (text: string) => LineStarts;
1912
+ export declare const positionAt: {
1913
+ (lineStarts: LineStarts, offset: Offset): Position;
1914
+ (offset: Offset): (lineStarts: LineStarts) => Position;
1915
+ };
1916
+ export declare const locationOf: {
1917
+ (lineStarts: LineStarts, span: Span): Location;
1918
+ (span: Span): (lineStarts: LineStarts) => Location;
1919
+ };
1920
+ export declare const originAt: {
1921
+ (lineStarts: LineStarts, offset: Offset): ScriptOrigin;
1922
+ (offset: Offset): (lineStarts: LineStarts) => ScriptOrigin;
1923
+ };
1924
+ export declare const offsetAt: {
1925
+ (lineStarts: LineStarts, position: Position): Option.Option<Offset>;
1926
+ (position: Position): (lineStarts: LineStarts) => Option.Option<Offset>;
1927
+ };
1759
1928
  declare namespace mod_d_exports$3 {
1760
- export { CanonicalFileName, CanonicalFileName as CanonicalFileNameValue, Coverage, CoverageData, CoveragePerTestId, EarlyResultPlan, InstrumenterContext, Location, LocationSchema, Mutant$1 as Mutant, MutantActivation, MutantActivationSchema, MutantCoverage, MutantCoverageSchema, MutantEarlyResultPlan, MutantFromUnknown, MutantFromUnknown as MutantFromUnknownValue, MutantId, MutantId as MutantIdValue, MutantRunOptions, MutantRunOptionsSchema, MutantRunPlan, MutantStatus, MutantStatusSchema, MutantTestCoverage, MutantTestPlan, MutatorName, MutatorName as MutatorNameValue, OpenEndLocation, OpenEndLocationSchema, Position, PositionSchema, ReportLocationFromMutant, RunMutantResult, RunOptions, RunOptionsFields, RunPlan, TestPlan };
1929
+ export { ActionableStatus, ActionableStatusSchema, CanonicalFileName, CanonicalFileName as CanonicalFileNameValue, Column, Coverage, CoverageData, CoveragePerTestId, EarlyResultPlan, EphemeralStatus, EphemeralStatusSchema, HitCount, InstrumenterContext, Line, LineStarts, Location, Mutant$1 as Mutant, MutantActivation, MutantActivationSchema, MutantCoverage, MutantCoverageSchema, MutantEarlyResultPlan, MutantFromUnknown, MutantFromUnknown as MutantFromUnknownValue, MutantId, MutantId as MutantIdValue, MutantRunOptions, MutantRunOptionsSchema, MutantRunPlan, MutantStatus, MutantStatusSchema, MutantTestCoverage, MutantTestPlan, MutatorName, MutatorName as MutatorNameValue, Offset, OpenEndLocation, Position, RememberedStatus, RememberedStatusSchema, RunMutantResult, RunOptions, RunOptionsFields, RunPlan, ScriptOrigin, Span, SurvivorStatus, SurvivorStatusSchema, TestPlan };
1761
1930
  }
1762
1931
  //#endregion
1763
1932
  export { mod_d_exports as ErrorText, mod_d_exports$1 as Format, mod_d_exports$2 as Instrument, mod_d_exports$3 as Mutant };