@systemfsoftware/stryker-js-cli-contract 0.1.0 → 0.3.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 CHANGED
@@ -1,5 +1,41 @@
1
1
  # @systemfsoftware/stryker-js-cli-contract
2
2
 
3
+ ## 0.3.0
4
+
5
+ ### Minor Changes
6
+
7
+ - Mutation testing is now incremental by default: `incremental` defaults to `true`, so an unchanged mutant whose covering tests are unchanged is re-used instead of re-run. `--full` (aliasing the old `--force`) re-verifies every mutant, ignoring the cache and the persisted dry run. The `verdict` stream event records `incrementalMode` (`incremental` or `full`). A run with no reusable cache falls back to a full run as before.
8
+
9
+ - The machine run-event contract (stream version 6.0) adds a required `budget` object, predicted and actual seconds, to every `verdict` line, so a consumer can observe how much of a run's time budget a change consumed.
10
+
11
+ - `ShardPlan` is a new published contract: a deterministic shard plan carrying each shard's project mutant lists, predicted seconds, and a GitHub Actions matrix. The `plan` stream event now carries a required `shardPlan` field, and the stream schema version moves to `6.0`.
12
+
13
+ - A mutation run now starts only on main CI. The `run` command, the programmatic run entry point, and every other surface that begins a mutation run refuse to start unless the process runs under GitHub Actions (`GITHUB_ACTIONS=true`); anything else — a developer machine, a fork, or another CI — exits non-zero instead of running mutants. A refused run ends the machine-readable output with a new `refused` event whose `rule` is `mutation-runs-on-main-ci`, and the machine-stream schema version is now `3.0`. Dry runs (`--dryRunOnly`), `--version`, and config and help commands are unaffected.
14
+
15
+ - The contract package now exports the shard plan schema: the versioned document a planner emits and a sharded run consumes, describing each shard's projects and the mutant ids it must run. A plan is refused when two shards share a label, because `--shard k/N` could not tell them apart.
16
+
17
+ - The machine stream declares version `6.0` and carries a new `worker` line, `{ _tag: "worker", schemaVersion, role, index, startupMs }`, emitted once per test-runner or checker process boot. A consumer that switches exhaustively over the stream's event tags must handle the new tag; the start-up cost of a reused worker is now visible instead of being folded into the first mutant's cost.
18
+
19
+ - The TypeScript checker now applies Trivial Compiler Equivalence (Papadakis et al., ICSE 2015). Each mutant of a file is emitted to JavaScript from the project's own TypeScript configuration in transpile-only mode, normalized, and compared with the original file's emit and with the mutants already emitted at the same site. A mutant whose emit equals the original's is dropped as `Ignored` with reason `equivalent-to-original: tce`; one that equals an earlier same-site mutant's is dropped with `duplicate-at-site: tce`; every mutant whose emit differs is kept, so the check never removes a mutant that changes the program. Checkers gain an `ignored` result variant carrying the suppression reason, and a run publishes the new `tce` machine-stream event with the `equivalentToOriginal` and `duplicateAtSite` counts. Verdict semantics move to version 3.
20
+
21
+ ### Patch Changes
22
+
23
+ - Updated dependencies:
24
+ - @systemfsoftware/stryker-js-plugin-interface@13.0.0
25
+
26
+ ## 0.2.0
27
+
28
+ ### Minor Changes
29
+
30
+ - Effect moves to the stable `4.0.0` release, together with the `@effect/*` packages these libraries use. The `4.0.0` release candidates are no longer supported: install `effect` `^4.0.0` next to these packages before upgrading.
31
+
32
+ The TypeScript checker and test-runner plugins bundle their own Effect runtime, so they need no change in your project.
33
+
34
+ ### Patch Changes
35
+
36
+ - Updated dependencies:
37
+ - @systemfsoftware/stryker-js-plugin-interface@12.0.0
38
+
3
39
  ## 0.1.0
4
40
 
5
41
  ### Minor Changes
package/README.md CHANGED
@@ -17,7 +17,7 @@ pnpm add @systemfsoftware/stryker-js-cli-contract
17
17
  The package groups its exports into namespaces. `RunEvent` holds the machine
18
18
  stream: the `RunEvent` union of every event kind the CLI emits, each event's
19
19
  class, the `RunEventWireLine` newline-delimited JSON codec a consumer decodes
20
- stdout with, and `StreamSchemaVersion` (`2.0`, the version the stream
20
+ stdout with, and `StreamSchemaVersion` (`6.0`, the version the stream
21
21
  declares). `OutputMode` holds the output mode and its signal (`OutputMode`,
22
22
  `ModeSignal`) as the stream header carries them. `StockCatalog` holds the stock
23
23
  mutator catalog and its name vocabulary (`StockCatalog`, `StockMutatorName`,
@@ -287,91 +287,6 @@
287
287
  "name": "stryker.load_config",
288
288
  "attributes": {}
289
289
  },
290
- {
291
- "id": "stryker.merge_reports",
292
- "name": "stryker.merge_reports",
293
- "attributes": {}
294
- },
295
- {
296
- "id": "stryker.merge_reports.collect_part_dirs",
297
- "name": "stryker.merge_reports.collect_part_dirs",
298
- "attributes": {}
299
- },
300
- {
301
- "id": "stryker.merge_reports.directory_exists",
302
- "name": "stryker.merge_reports.directory_exists",
303
- "attributes": {}
304
- },
305
- {
306
- "id": "stryker.merge_reports.encode_report",
307
- "name": "stryker.merge_reports.encode_report",
308
- "attributes": {}
309
- },
310
- {
311
- "id": "stryker.merge_reports.fail",
312
- "name": "stryker.merge_reports.fail",
313
- "attributes": {}
314
- },
315
- {
316
- "id": "stryker.merge_reports.gather",
317
- "name": "stryker.merge_reports.gather",
318
- "attributes": {}
319
- },
320
- {
321
- "id": "stryker.merge_reports.list_names",
322
- "name": "stryker.merge_reports.list_names",
323
- "attributes": {}
324
- },
325
- {
326
- "id": "stryker.merge_reports.put_file",
327
- "name": "stryker.merge_reports.put_file",
328
- "attributes": {}
329
- },
330
- {
331
- "id": "stryker.merge_reports.read_part",
332
- "name": "stryker.merge_reports.read_part",
333
- "attributes": {}
334
- },
335
- {
336
- "id": "stryker.merge_reports.read_text",
337
- "name": "stryker.merge_reports.read_text",
338
- "attributes": {}
339
- },
340
- {
341
- "id": "stryker.merge_reports.refuse_command",
342
- "name": "stryker.merge_reports.refuse_command",
343
- "attributes": {}
344
- },
345
- {
346
- "id": "stryker.merge_reports.refuse_parts",
347
- "name": "stryker.merge_reports.refuse_parts",
348
- "attributes": {}
349
- },
350
- {
351
- "id": "stryker.merge_reports.render_html",
352
- "name": "stryker.merge_reports.render_html",
353
- "attributes": {}
354
- },
355
- {
356
- "id": "stryker.merge_reports.write_absent",
357
- "name": "stryker.merge_reports.write_absent",
358
- "attributes": {}
359
- },
360
- {
361
- "id": "stryker.merge_reports.write_files",
362
- "name": "stryker.merge_reports.write_files",
363
- "attributes": {}
364
- },
365
- {
366
- "id": "stryker.merge_reports.write_html",
367
- "name": "stryker.merge_reports.write_html",
368
- "attributes": {}
369
- },
370
- {
371
- "id": "stryker.merge_reports.write_merged",
372
- "name": "stryker.merge_reports.write_merged",
373
- "attributes": {}
374
- },
375
290
  {
376
291
  "id": "stryker.mutant_run",
377
292
  "name": "stryker.mutant_run",
@@ -10,6 +10,9 @@
10
10
  {
11
11
  "$ref": "#/definitions/planEncoded"
12
12
  },
13
+ {
14
+ "$ref": "#/definitions/workerEncoded"
15
+ },
13
16
  {
14
17
  "$ref": "#/definitions/mutantTestedEncoded"
15
18
  },
@@ -28,6 +31,9 @@
28
31
  {
29
32
  "$ref": "#/definitions/reuseEncoded"
30
33
  },
34
+ {
35
+ "$ref": "#/definitions/tceEncoded"
36
+ },
31
37
  {
32
38
  "$ref": "#/definitions/mutant-detailEncoded"
33
39
  },
@@ -42,6 +48,9 @@
42
48
  },
43
49
  {
44
50
  "$ref": "#/definitions/helpEncoded"
51
+ },
52
+ {
53
+ "$ref": "#/definitions/refusedEncoded"
45
54
  }
46
55
  ],
47
56
  "definitions": {
@@ -57,7 +66,7 @@
57
66
  "schemaVersion": {
58
67
  "type": "string",
59
68
  "enum": [
60
- "2.0"
69
+ "6.0"
61
70
  ]
62
71
  },
63
72
  "runId": {
@@ -133,11 +142,154 @@
133
142
  "total": {
134
143
  "type": "integer",
135
144
  "minimum": 0
145
+ },
146
+ "shardPlan": {
147
+ "anyOf": [
148
+ {
149
+ "type": "object",
150
+ "properties": {
151
+ "version": {
152
+ "type": "number",
153
+ "enum": [
154
+ 1
155
+ ]
156
+ },
157
+ "targetSeconds": {
158
+ "type": "number"
159
+ },
160
+ "shards": {
161
+ "type": "array",
162
+ "items": {
163
+ "type": "object",
164
+ "properties": {
165
+ "index": {
166
+ "type": "integer"
167
+ },
168
+ "count": {
169
+ "type": "integer"
170
+ },
171
+ "predictedSeconds": {
172
+ "type": "number"
173
+ },
174
+ "projects": {
175
+ "type": "array",
176
+ "items": {
177
+ "type": "object",
178
+ "properties": {
179
+ "project": {
180
+ "type": "string"
181
+ },
182
+ "mutants": {
183
+ "type": "array",
184
+ "items": {
185
+ "type": "string"
186
+ }
187
+ }
188
+ },
189
+ "required": [
190
+ "project",
191
+ "mutants"
192
+ ],
193
+ "additionalProperties": true
194
+ }
195
+ }
196
+ },
197
+ "required": [
198
+ "index",
199
+ "count",
200
+ "predictedSeconds",
201
+ "projects"
202
+ ],
203
+ "additionalProperties": true
204
+ }
205
+ },
206
+ "matrix": {
207
+ "type": "object",
208
+ "properties": {
209
+ "include": {
210
+ "type": "array",
211
+ "items": {
212
+ "type": "object",
213
+ "properties": {
214
+ "shard": {
215
+ "type": "string"
216
+ },
217
+ "predictedSeconds": {
218
+ "type": "number"
219
+ }
220
+ },
221
+ "required": [
222
+ "shard",
223
+ "predictedSeconds"
224
+ ],
225
+ "additionalProperties": true
226
+ }
227
+ }
228
+ },
229
+ "required": [
230
+ "include"
231
+ ],
232
+ "additionalProperties": true
233
+ }
234
+ },
235
+ "required": [
236
+ "version",
237
+ "targetSeconds",
238
+ "shards",
239
+ "matrix"
240
+ ],
241
+ "additionalProperties": true
242
+ },
243
+ {
244
+ "type": "null"
245
+ }
246
+ ]
136
247
  }
137
248
  },
138
249
  "required": [
139
250
  "_tag",
140
- "total"
251
+ "total",
252
+ "shardPlan"
253
+ ],
254
+ "additionalProperties": true
255
+ },
256
+ "workerEncoded": {
257
+ "type": "object",
258
+ "properties": {
259
+ "_tag": {
260
+ "type": "string",
261
+ "enum": [
262
+ "worker"
263
+ ]
264
+ },
265
+ "schemaVersion": {
266
+ "type": "string",
267
+ "enum": [
268
+ "6.0"
269
+ ]
270
+ },
271
+ "role": {
272
+ "type": "string",
273
+ "enum": [
274
+ "testRunner",
275
+ "checker"
276
+ ]
277
+ },
278
+ "index": {
279
+ "type": "integer",
280
+ "minimum": 0
281
+ },
282
+ "startupMs": {
283
+ "type": "number",
284
+ "minimum": 0
285
+ }
286
+ },
287
+ "required": [
288
+ "_tag",
289
+ "schemaVersion",
290
+ "role",
291
+ "index",
292
+ "startupMs"
141
293
  ],
142
294
  "additionalProperties": true
143
295
  },
@@ -562,6 +714,31 @@
562
714
  ],
563
715
  "additionalProperties": true
564
716
  },
717
+ "tceEncoded": {
718
+ "type": "object",
719
+ "properties": {
720
+ "_tag": {
721
+ "type": "string",
722
+ "enum": [
723
+ "tce"
724
+ ]
725
+ },
726
+ "equivalentToOriginal": {
727
+ "type": "integer",
728
+ "minimum": 0
729
+ },
730
+ "duplicateAtSite": {
731
+ "type": "integer",
732
+ "minimum": 0
733
+ }
734
+ },
735
+ "required": [
736
+ "_tag",
737
+ "equivalentToOriginal",
738
+ "duplicateAtSite"
739
+ ],
740
+ "additionalProperties": true
741
+ },
565
742
  "mutant-detailEncoded": {
566
743
  "type": "object",
567
744
  "properties": {
@@ -724,7 +901,7 @@
724
901
  "schemaVersion": {
725
902
  "type": "string",
726
903
  "enum": [
727
- "2.0"
904
+ "6.0"
728
905
  ]
729
906
  },
730
907
  "runId": {
@@ -915,6 +1092,13 @@
915
1092
  "full"
916
1093
  ]
917
1094
  },
1095
+ "incrementalMode": {
1096
+ "type": "string",
1097
+ "enum": [
1098
+ "incremental",
1099
+ "full"
1100
+ ]
1101
+ },
918
1102
  "phaseDurations": {
919
1103
  "anyOf": [
920
1104
  {
@@ -974,6 +1158,24 @@
974
1158
  "type": "null"
975
1159
  }
976
1160
  ]
1161
+ },
1162
+ "budget": {
1163
+ "type": "object",
1164
+ "properties": {
1165
+ "predictedSeconds": {
1166
+ "type": "number",
1167
+ "minimum": 0
1168
+ },
1169
+ "actualSeconds": {
1170
+ "type": "number",
1171
+ "minimum": 0
1172
+ }
1173
+ },
1174
+ "required": [
1175
+ "predictedSeconds",
1176
+ "actualSeconds"
1177
+ ],
1178
+ "additionalProperties": true
977
1179
  }
978
1180
  },
979
1181
  "required": [
@@ -990,7 +1192,8 @@
990
1192
  "scope",
991
1193
  "mutantSetPolicy",
992
1194
  "phaseDurations",
993
- "static"
1195
+ "static",
1196
+ "budget"
994
1197
  ],
995
1198
  "additionalProperties": true
996
1199
  },
@@ -1006,7 +1209,7 @@
1006
1209
  "schemaVersion": {
1007
1210
  "type": "string",
1008
1211
  "enum": [
1009
- "2.0"
1212
+ "6.0"
1010
1213
  ]
1011
1214
  },
1012
1215
  "code": {
@@ -1151,7 +1354,7 @@
1151
1354
  "schemaVersion": {
1152
1355
  "type": "string",
1153
1356
  "enum": [
1154
- "2.0"
1357
+ "6.0"
1155
1358
  ]
1156
1359
  },
1157
1360
  "code": {
@@ -1175,6 +1378,39 @@
1175
1378
  "help"
1176
1379
  ],
1177
1380
  "additionalProperties": true
1381
+ },
1382
+ "refusedEncoded": {
1383
+ "type": "object",
1384
+ "properties": {
1385
+ "_tag": {
1386
+ "type": "string",
1387
+ "enum": [
1388
+ "refused"
1389
+ ]
1390
+ },
1391
+ "schemaVersion": {
1392
+ "type": "string",
1393
+ "enum": [
1394
+ "6.0"
1395
+ ]
1396
+ },
1397
+ "rule": {
1398
+ "type": "string",
1399
+ "enum": [
1400
+ "mutation-runs-on-main-ci"
1401
+ ]
1402
+ },
1403
+ "message": {
1404
+ "type": "string"
1405
+ }
1406
+ },
1407
+ "required": [
1408
+ "_tag",
1409
+ "schemaVersion",
1410
+ "rule",
1411
+ "message"
1412
+ ],
1413
+ "additionalProperties": true
1178
1414
  }
1179
1415
  }
1180
1416
  }
package/dist/index.d.mts CHANGED
@@ -31,7 +31,7 @@ type RunPhase = typeof RunPhase.Type;
31
31
  declare const RunId: S.brand<S.String, "RunId">;
32
32
  type RunId = typeof RunId.Type;
33
33
  declare const RunStarted_base: S.Class<RunStarted, S.TaggedStruct<"stream", {
34
- readonly schemaVersion: S.Literal<"2.0">;
34
+ readonly schemaVersion: S.Literal<"6.0">;
35
35
  readonly runId: S.brand<S.String, "RunId">;
36
36
  readonly mode: S.Literals<readonly ["human", "machine"]>;
37
37
  readonly signal: S.Literals<readonly ["flag", "env", "tty", "agent", "tool"]>;
@@ -44,8 +44,36 @@ declare const PhaseEntered_base: S.Class<PhaseEntered, S.TaggedStruct<"phase", {
44
44
  declare class PhaseEntered extends PhaseEntered_base {}
45
45
  declare const PlanKnown_base: S.Class<PlanKnown, S.TaggedStruct<"plan", {
46
46
  readonly total: S.Int;
47
+ readonly shardPlan: S.NullOr<S.Struct<{
48
+ readonly version: S.Literal<1>;
49
+ readonly targetSeconds: S.Finite;
50
+ readonly shards: S.$Array<S.Struct<{
51
+ readonly index: S.Int;
52
+ readonly count: S.Int;
53
+ readonly predictedSeconds: S.Finite;
54
+ readonly projects: S.$Array<S.Struct<{
55
+ readonly project: S.String;
56
+ readonly mutants: S.$Array<S.String>;
57
+ }>>;
58
+ }>>;
59
+ readonly matrix: S.Struct<{
60
+ readonly include: S.$Array<S.Struct<{
61
+ readonly shard: S.String;
62
+ readonly predictedSeconds: S.Finite;
63
+ }>>;
64
+ }>;
65
+ }>>;
47
66
  }>, {}>;
48
67
  declare class PlanKnown extends PlanKnown_base {}
68
+ declare const WorkerRole: S.Literals<readonly ["testRunner", "checker"]>;
69
+ type WorkerRole = typeof WorkerRole.Type;
70
+ declare const WorkerReported_base: S.Class<WorkerReported, S.TaggedStruct<"worker", {
71
+ readonly schemaVersion: S.Literal<"6.0">;
72
+ readonly role: S.Literals<readonly ["testRunner", "checker"]>;
73
+ readonly index: S.Int;
74
+ readonly startupMs: S.Finite;
75
+ }>, {}>;
76
+ declare class WorkerReported extends WorkerReported_base {}
49
77
  declare const MutantCost: S.Struct<{
50
78
  readonly fixedOverheadMs: S.Finite;
51
79
  readonly testBodyMs: S.Finite;
@@ -196,6 +224,8 @@ declare const RunScope: S.Literals<readonly ["full", "diff"]>;
196
224
  type RunScope = typeof RunScope.Type;
197
225
  declare const MutantSetPolicy: S.Literals<readonly ["default", "full"]>;
198
226
  type MutantSetPolicy = typeof MutantSetPolicy.Type;
227
+ declare const IncrementalMode: S.Literals<readonly ["incremental", "full"]>;
228
+ type IncrementalMode = typeof IncrementalMode.Type;
199
229
  declare const PhaseDurations: S.Struct<{
200
230
  readonly prepare: S.Finite;
201
231
  readonly instrument: S.Finite;
@@ -208,8 +238,13 @@ declare const StaticVerdict: S.Struct<{
208
238
  readonly costMs: S.Finite;
209
239
  }>;
210
240
  type StaticVerdict = typeof StaticVerdict.Type;
241
+ declare const Budget: S.Struct<{
242
+ readonly predictedSeconds: S.Finite;
243
+ readonly actualSeconds: S.Finite;
244
+ }>;
245
+ type Budget = typeof Budget.Type;
211
246
  declare const VerdictReached_base: S.Class<VerdictReached, S.TaggedStruct<"verdict", {
212
- readonly schemaVersion: S.Literal<"2.0">;
247
+ readonly schemaVersion: S.Literal<"6.0">;
213
248
  readonly runId: S.brand<S.String, "RunId">;
214
249
  readonly mode: S.Literals<readonly ["human", "machine"]>;
215
250
  readonly signal: S.Literals<readonly ["flag", "env", "tty", "agent", "tool"]>;
@@ -240,6 +275,7 @@ declare const VerdictReached_base: S.Class<VerdictReached, S.TaggedStruct<"verdi
240
275
  }>>;
241
276
  readonly scope: S.Literals<readonly ["full", "diff"]>;
242
277
  readonly mutantSetPolicy: S.Literals<readonly ["default", "full"]>;
278
+ readonly incrementalMode: S.optionalKey<S.Literals<readonly ["incremental", "full"]>>;
243
279
  readonly phaseDurations: S.NullOr<S.Struct<{
244
280
  readonly prepare: S.Finite;
245
281
  readonly instrument: S.Finite;
@@ -250,6 +286,10 @@ declare const VerdictReached_base: S.Class<VerdictReached, S.TaggedStruct<"verdi
250
286
  readonly count: S.Int;
251
287
  readonly costMs: S.Finite;
252
288
  }>>;
289
+ readonly budget: S.Struct<{
290
+ readonly predictedSeconds: S.Finite;
291
+ readonly actualSeconds: S.Finite;
292
+ }>;
253
293
  }>, {}>;
254
294
  declare class VerdictReached extends VerdictReached_base {}
255
295
  declare const FrameworkContributionRow: S.Struct<{
@@ -343,6 +383,11 @@ declare const ReuseReported_base: S.Class<ReuseReported, S.TaggedStruct<"reuse",
343
383
  }>;
344
384
  }>, {}>;
345
385
  declare class ReuseReported extends ReuseReported_base {}
386
+ declare const TceReported_base: S.Class<TceReported, S.TaggedStruct<"tce", {
387
+ readonly equivalentToOriginal: S.Int;
388
+ readonly duplicateAtSite: S.Int;
389
+ }>, {}>;
390
+ declare class TceReported extends TceReported_base {}
346
391
  declare const MutantDetailReported_base: S.Class<MutantDetailReported, S.TaggedStruct<"mutant-detail", {
347
392
  readonly id: S.brand<S.String, "MutantId">;
348
393
  readonly status: S.Literals<readonly ["Killed", "Survived", "NoCoverage", "CompileError", "RuntimeError", "Timeout", "Ignored", "Pending"]>;
@@ -360,7 +405,7 @@ declare const FeedbackReported_base: S.Class<FeedbackReported, S.TaggedStruct<"f
360
405
  }>, {}>;
361
406
  declare class FeedbackReported extends FeedbackReported_base {}
362
407
  declare const RunFailed_base: S.Class<RunFailed, S.TaggedStruct<"error", {
363
- readonly schemaVersion: S.Literal<"2.0">;
408
+ readonly schemaVersion: S.Literal<"6.0">;
364
409
  readonly code: S.Int;
365
410
  readonly error: S.String;
366
411
  readonly remediation: S.String;
@@ -379,12 +424,20 @@ declare const RunFailed_base: S.Class<RunFailed, S.TaggedStruct<"error", {
379
424
  }>, {}>;
380
425
  declare class RunFailed extends RunFailed_base {}
381
426
  declare const HelpRendered_base: S.Class<HelpRendered, S.TaggedStruct<"help", {
382
- readonly schemaVersion: S.Literal<"2.0">;
427
+ readonly schemaVersion: S.Literal<"6.0">;
383
428
  readonly code: S.Literals<readonly [0]>;
384
429
  readonly help: S.String;
385
430
  }>, {}>;
386
431
  declare class HelpRendered extends HelpRendered_base {}
387
- declare const RunEvent: S.Union<readonly [typeof RunStarted, typeof PhaseEntered, typeof PlanKnown, S.Codec<RunMutantTestedEvent, {
432
+ declare const RefusalRule: S.Literal<"mutation-runs-on-main-ci">;
433
+ type RefusalRule = typeof RefusalRule.Type;
434
+ declare const Refused_base: S.Class<Refused, S.TaggedStruct<"refused", {
435
+ readonly schemaVersion: S.Literal<"6.0">;
436
+ readonly rule: S.Literal<"mutation-runs-on-main-ci">;
437
+ readonly message: S.String;
438
+ }>, {}>;
439
+ declare class Refused extends Refused_base {}
440
+ declare const RunEvent: S.Union<readonly [typeof RunStarted, typeof PhaseEntered, typeof PlanKnown, typeof WorkerReported, S.Codec<RunMutantTestedEvent, {
388
441
  readonly _tag: "mutant";
389
442
  readonly id: string;
390
443
  readonly status: "CompileError" | "Ignored" | "Killed" | "NoCoverage" | "Pending" | "RuntimeError" | "Survived" | "Timeout";
@@ -410,14 +463,14 @@ declare const RunEvent: S.Union<readonly [typeof RunStarted, typeof PhaseEntered
410
463
  readonly testsExecuted: number;
411
464
  readonly shared: boolean;
412
465
  } | null;
413
- }, never, never>, typeof Heartbeat, typeof PluginsReported, typeof FormatRegistryResolved, typeof SkippedReported, typeof ReuseReported, typeof MutantDetailReported, typeof FeedbackReported, typeof VerdictReached, typeof RunFailed, typeof HelpRendered]> & {
466
+ }, never, never>, typeof Heartbeat, typeof PluginsReported, typeof FormatRegistryResolved, typeof SkippedReported, typeof ReuseReported, typeof TceReported, typeof MutantDetailReported, typeof FeedbackReported, typeof VerdictReached, typeof RunFailed, typeof HelpRendered, typeof Refused]> & {
414
467
  QUEUE_BOUND: number;
415
468
  };
416
469
  type RunEvent = typeof RunEvent.Type;
417
- type RunTerminalEvent = VerdictReached | RunFailed | HelpRendered;
470
+ type RunTerminalEvent = VerdictReached | RunFailed | HelpRendered | Refused;
418
471
  //#endregion
419
472
  //#region src/run-event-wire.schema.d.ts
420
- declare const RunEventWireLine: S.decodeTo<S.fromJsonString<S.Union<readonly [typeof RunStarted, typeof PhaseEntered, typeof PlanKnown, S.Codec<RunMutantTestedEvent, {
473
+ declare const RunEventWireLine: S.decodeTo<S.fromJsonString<S.Union<readonly [typeof RunStarted, typeof PhaseEntered, typeof PlanKnown, typeof WorkerReported, S.Codec<RunMutantTestedEvent, {
421
474
  readonly _tag: "mutant";
422
475
  readonly id: string;
423
476
  readonly status: "CompileError" | "Ignored" | "Killed" | "NoCoverage" | "Pending" | "RuntimeError" | "Survived" | "Timeout";
@@ -443,18 +496,54 @@ declare const RunEventWireLine: S.decodeTo<S.fromJsonString<S.Union<readonly [ty
443
496
  readonly testsExecuted: number;
444
497
  readonly shared: boolean;
445
498
  } | null;
446
- }, never, never>, typeof Heartbeat, typeof PluginsReported, typeof FormatRegistryResolved, typeof SkippedReported, typeof ReuseReported, typeof MutantDetailReported, typeof FeedbackReported, typeof VerdictReached, typeof RunFailed, typeof HelpRendered]> & {
499
+ }, never, never>, typeof Heartbeat, typeof PluginsReported, typeof FormatRegistryResolved, typeof SkippedReported, typeof ReuseReported, typeof TceReported, typeof MutantDetailReported, typeof FeedbackReported, typeof VerdictReached, typeof RunFailed, typeof HelpRendered, typeof Refused]> & {
447
500
  QUEUE_BOUND: number;
448
501
  }>, S.String, never, never>;
449
502
  type RunEventWireLine = typeof RunEventWireLine.Type;
450
503
  //#endregion
451
504
  //#region src/stream-version.schema.d.ts
452
- declare const StreamSchemaVersion: S.Literal<"2.0">;
505
+ declare const StreamSchemaVersion: S.Literal<"6.0">;
453
506
  type StreamSchemaVersion = typeof StreamSchemaVersion.Type;
454
507
  declare namespace mod_d_exports$1 {
455
- export { FeedbackJudgment, FeedbackReported, FormatClaimShadowingRow, FormatRegistryResolved, FormatRegistryRow, FrameworkContributionRow, FrameworkModuleRow, Heartbeat, HelpRendered, MutantCost, MutantDetailReported, MutantSetPolicy, PhaseDurations, PhaseEntered, PlanKnown, PluginLoadFailureReason, PluginsReported, ReuseRefusals, ReuseReported, RunEvent, RunEventWireLine, RunFailed, RunId, RunMutantTested, RunMutantTestedEvent, RunPhase, RunScope, RunStarted, RunTerminalEvent, SkippedFileRow, SkippedReported, StaticVerdict, StreamSchemaVersion, VerdictCounts, VerdictLocation, VerdictMutant, VerdictReached, VerdictThresholds };
508
+ export { Budget, FeedbackJudgment, FeedbackReported, FormatClaimShadowingRow, FormatRegistryResolved, FormatRegistryRow, FrameworkContributionRow, FrameworkModuleRow, Heartbeat, HelpRendered, IncrementalMode, MutantCost, MutantDetailReported, MutantSetPolicy, PhaseDurations, PhaseEntered, PlanKnown, PluginLoadFailureReason, PluginsReported, RefusalRule, Refused, ReuseRefusals, ReuseReported, RunEvent, RunEventWireLine, RunFailed, RunId, RunMutantTested, RunMutantTestedEvent, RunPhase, RunScope, RunStarted, RunTerminalEvent, SkippedFileRow, SkippedReported, StaticVerdict, StreamSchemaVersion, TceReported, VerdictCounts, VerdictLocation, VerdictMutant, VerdictReached, VerdictThresholds, WorkerReported, WorkerRole };
456
509
  }
457
510
  //#endregion
511
+ //#region src/shard-plan.schema.d.ts
512
+ export declare const ShardPlanVersion: S.Literal<1>;
513
+ export declare const ShardProject: S.Struct<{
514
+ readonly project: S.String;
515
+ readonly mutants: S.$Array<S.String>;
516
+ }>;
517
+ export declare const Shard: S.Struct<{
518
+ readonly index: S.Int;
519
+ readonly count: S.Int;
520
+ readonly predictedSeconds: S.Finite;
521
+ readonly projects: S.$Array<S.Struct<{
522
+ readonly project: S.String;
523
+ readonly mutants: S.$Array<S.String>;
524
+ }>>;
525
+ }>;
526
+ export declare const ShardPlan: S.Struct<{
527
+ readonly version: S.Literal<1>;
528
+ readonly targetSeconds: S.Finite;
529
+ readonly shards: S.$Array<S.Struct<{
530
+ readonly index: S.Int;
531
+ readonly count: S.Int;
532
+ readonly predictedSeconds: S.Finite;
533
+ readonly projects: S.$Array<S.Struct<{
534
+ readonly project: S.String;
535
+ readonly mutants: S.$Array<S.String>;
536
+ }>>;
537
+ }>>;
538
+ readonly matrix: S.Struct<{
539
+ readonly include: S.$Array<S.Struct<{
540
+ readonly shard: S.String;
541
+ readonly predictedSeconds: S.Finite;
542
+ }>>;
543
+ }>;
544
+ }>;
545
+ export type ShardPlan = typeof ShardPlan.Type;
546
+ //#endregion
458
547
  //#region src/SpanTaxonomy.schema.d.ts
459
548
  declare const SpanName: S.brand<S.String, "SpanName">;
460
549
  type SpanName = typeof SpanName.Type;
@@ -706,74 +795,6 @@ declare const Spans: {
706
795
  readonly name: 'stryker.load_config';
707
796
  readonly attributes: {};
708
797
  };
709
- readonly mergeReports: {
710
- readonly name: 'stryker.merge_reports';
711
- readonly attributes: {};
712
- };
713
- readonly mergeReportsCollectPartDirs: {
714
- readonly name: 'stryker.merge_reports.collect_part_dirs';
715
- readonly attributes: {};
716
- };
717
- readonly mergeReportsDirectoryExists: {
718
- readonly name: 'stryker.merge_reports.directory_exists';
719
- readonly attributes: {};
720
- };
721
- readonly mergeReportsEncodeReport: {
722
- readonly name: 'stryker.merge_reports.encode_report';
723
- readonly attributes: {};
724
- };
725
- readonly mergeReportsFail: {
726
- readonly name: 'stryker.merge_reports.fail';
727
- readonly attributes: {};
728
- };
729
- readonly mergeReportsGather: {
730
- readonly name: 'stryker.merge_reports.gather';
731
- readonly attributes: {};
732
- };
733
- readonly mergeReportsListNames: {
734
- readonly name: 'stryker.merge_reports.list_names';
735
- readonly attributes: {};
736
- };
737
- readonly mergeReportsPutFile: {
738
- readonly name: 'stryker.merge_reports.put_file';
739
- readonly attributes: {};
740
- };
741
- readonly mergeReportsReadPart: {
742
- readonly name: 'stryker.merge_reports.read_part';
743
- readonly attributes: {};
744
- };
745
- readonly mergeReportsReadText: {
746
- readonly name: 'stryker.merge_reports.read_text';
747
- readonly attributes: {};
748
- };
749
- readonly mergeReportsRefuseCommand: {
750
- readonly name: 'stryker.merge_reports.refuse_command';
751
- readonly attributes: {};
752
- };
753
- readonly mergeReportsRefuseParts: {
754
- readonly name: 'stryker.merge_reports.refuse_parts';
755
- readonly attributes: {};
756
- };
757
- readonly mergeReportsRenderHtml: {
758
- readonly name: 'stryker.merge_reports.render_html';
759
- readonly attributes: {};
760
- };
761
- readonly mergeReportsWriteAbsent: {
762
- readonly name: 'stryker.merge_reports.write_absent';
763
- readonly attributes: {};
764
- };
765
- readonly mergeReportsWriteFiles: {
766
- readonly name: 'stryker.merge_reports.write_files';
767
- readonly attributes: {};
768
- };
769
- readonly mergeReportsWriteHtml: {
770
- readonly name: 'stryker.merge_reports.write_html';
771
- readonly attributes: {};
772
- };
773
- readonly mergeReportsWriteMerged: {
774
- readonly name: 'stryker.merge_reports.write_merged';
775
- readonly attributes: {};
776
- };
777
798
  readonly mutantRun: {
778
799
  readonly name: 'stryker.mutant_run';
779
800
  readonly attributes: {};
package/dist/index.mjs CHANGED
@@ -31,8 +31,35 @@ const PluginLoadFailureReason = Schema.Union([
31
31
  Schema.TaggedStruct("ImportFailed", { cause: Schema.Unknown })
32
32
  ]);
33
33
  //#endregion
34
+ //#region src/shard-plan.schema.ts
35
+ const ShardPlanVersion = S.Literal(1);
36
+ const ShardProject = S.Struct({
37
+ project: S.String,
38
+ mutants: S.Array(S.String)
39
+ });
40
+ const Shard = S.Struct({
41
+ index: S.Int,
42
+ count: S.Int,
43
+ predictedSeconds: S.Finite,
44
+ projects: S.Array(ShardProject)
45
+ });
46
+ const labelOf = (shard) => `${shard.index}/${shard.count}`;
47
+ const shardLabelsAreUnique = S.makeFilter((shards) => {
48
+ const duplicated = Mutant.duplicatedValue(shards.map(labelOf));
49
+ return duplicated === void 0 ? void 0 : `shard plan shards share the label "${duplicated}"`;
50
+ }, { arbitraryConstraint: { uniqueBy: labelOf } });
51
+ const ShardPlan = S.Struct({
52
+ version: ShardPlanVersion,
53
+ targetSeconds: S.Finite,
54
+ shards: S.Array(Shard).check(shardLabelsAreUnique),
55
+ matrix: S.Struct({ include: S.Array(S.Struct({
56
+ shard: S.String,
57
+ predictedSeconds: S.Finite
58
+ })) })
59
+ });
60
+ //#endregion
34
61
  //#region src/stream-version.schema.ts
35
- const StreamSchemaVersion = S.Literal("2.0");
62
+ const StreamSchemaVersion = S.Literal("6.0");
36
63
  //#endregion
37
64
  //#region src/run-event.schema.ts
38
65
  const RunPhase = S.Literals([
@@ -41,7 +68,7 @@ const RunPhase = S.Literals([
41
68
  "dry-run",
42
69
  "mutation-test"
43
70
  ]);
44
- const RunId = S.String.pipe(S.check(S.isPattern(/^[0-9A-HJKMNP-TV-Z]{26}$/)), S.brand("RunId"));
71
+ const RunId = S.String.pipe(S.check(S.isPattern(/^[0-9A-HJKMNP-TV-Z]{26}$/u)), S.brand("RunId"));
45
72
  var RunStarted = class extends S.TaggedClass()("stream", {
46
73
  schemaVersion: StreamSchemaVersion,
47
74
  runId: RunId,
@@ -52,7 +79,17 @@ var PhaseEntered = class extends S.TaggedClass()("phase", {
52
79
  phase: RunPhase,
53
80
  elapsedMs: Report.NonNegativeFinite
54
81
  }) {};
55
- var PlanKnown = class extends S.TaggedClass()("plan", { total: Report.NonNegativeInt }) {};
82
+ var PlanKnown = class extends S.TaggedClass()("plan", {
83
+ total: Report.NonNegativeInt,
84
+ shardPlan: S.NullOr(ShardPlan)
85
+ }) {};
86
+ const WorkerRole = S.Literals(["testRunner", "checker"]);
87
+ var WorkerReported = class extends S.TaggedClass()("worker", {
88
+ schemaVersion: StreamSchemaVersion,
89
+ role: WorkerRole,
90
+ index: Report.NonNegativeInt,
91
+ startupMs: Report.NonNegativeFinite
92
+ }) {};
56
93
  const MutantCost = S.Struct({
57
94
  fixedOverheadMs: Report.NonNegativeFinite,
58
95
  testBodyMs: Report.NonNegativeFinite,
@@ -139,6 +176,7 @@ const VerdictMutant = S.Struct({
139
176
  });
140
177
  const RunScope = S.Literals(["full", "diff"]);
141
178
  const MutantSetPolicy = S.Literals(["default", "full"]);
179
+ const IncrementalMode = S.Literals(["incremental", "full"]);
142
180
  const PhaseDurations = S.Struct({
143
181
  prepare: Report.NonNegativeFinite,
144
182
  instrument: Report.NonNegativeFinite,
@@ -149,6 +187,10 @@ const StaticVerdict = S.Struct({
149
187
  count: Report.NonNegativeInt,
150
188
  costMs: Report.NonNegativeFinite
151
189
  });
190
+ const Budget = S.Struct({
191
+ predictedSeconds: Report.NonNegativeFinite,
192
+ actualSeconds: Report.NonNegativeFinite
193
+ });
152
194
  var VerdictReached = class extends S.TaggedClass()("verdict", {
153
195
  schemaVersion: StreamSchemaVersion,
154
196
  runId: RunId,
@@ -161,8 +203,10 @@ var VerdictReached = class extends S.TaggedClass()("verdict", {
161
203
  mutants: S.Array(VerdictMutant),
162
204
  scope: RunScope,
163
205
  mutantSetPolicy: MutantSetPolicy,
206
+ incrementalMode: S.optionalKey(IncrementalMode),
164
207
  phaseDurations: S.NullOr(PhaseDurations),
165
- static: S.NullOr(StaticVerdict)
208
+ static: S.NullOr(StaticVerdict),
209
+ budget: Budget
166
210
  }) {};
167
211
  const FrameworkContributionRow = S.Struct({
168
212
  name: S.String,
@@ -209,6 +253,10 @@ var ReuseReported = class extends S.TaggedClass()("reuse", {
209
253
  ran: Report.NonNegativeInt,
210
254
  refused: ReuseRefusals
211
255
  }) {};
256
+ var TceReported = class extends S.TaggedClass()("tce", {
257
+ equivalentToOriginal: Report.NonNegativeInt,
258
+ duplicateAtSite: Report.NonNegativeInt
259
+ }) {};
212
260
  var MutantDetailReported = class extends S.TaggedClass()("mutant-detail", {
213
261
  id: Mutant.MutantId,
214
262
  status: Mutant.MutantStatusSchema,
@@ -234,21 +282,30 @@ var HelpRendered = class extends S.TaggedClass()("help", {
234
282
  code: S.Literals([0]),
235
283
  help: S.String
236
284
  }) {};
285
+ const RefusalRule = S.Literal("mutation-runs-on-main-ci");
286
+ var Refused = class extends S.TaggedClass()("refused", {
287
+ schemaVersion: StreamSchemaVersion,
288
+ rule: RefusalRule,
289
+ message: S.String
290
+ }) {};
237
291
  const RunEvent = Object.assign(S.Union([
238
292
  RunStarted,
239
293
  PhaseEntered,
240
294
  PlanKnown,
295
+ WorkerReported,
241
296
  RunMutantTested,
242
297
  Heartbeat,
243
298
  PluginsReported,
244
299
  FormatRegistryResolved,
245
300
  SkippedReported,
246
301
  ReuseReported,
302
+ TceReported,
247
303
  MutantDetailReported,
248
304
  FeedbackReported,
249
305
  VerdictReached,
250
306
  RunFailed,
251
- HelpRendered
307
+ HelpRendered,
308
+ Refused
252
309
  ]), { QUEUE_BOUND: 256 });
253
310
  //#endregion
254
311
  //#region src/run-event-wire.schema.ts
@@ -259,6 +316,7 @@ const RunEventWireLine = S.String.pipe(S.decodeTo(S.fromJsonString(RunEvent), {
259
316
  //#endregion
260
317
  //#region src/RunEvent/mod.ts
261
318
  var RunEvent_exports = /* @__PURE__ */ __exportAll({
319
+ Budget: () => Budget,
262
320
  FeedbackJudgment: () => FeedbackJudgment,
263
321
  FeedbackReported: () => FeedbackReported,
264
322
  FormatClaimShadowingRow: () => FormatClaimShadowingRow,
@@ -268,6 +326,7 @@ var RunEvent_exports = /* @__PURE__ */ __exportAll({
268
326
  FrameworkModuleRow: () => FrameworkModuleRow,
269
327
  Heartbeat: () => Heartbeat,
270
328
  HelpRendered: () => HelpRendered,
329
+ IncrementalMode: () => IncrementalMode,
271
330
  MutantCost: () => MutantCost,
272
331
  MutantDetailReported: () => MutantDetailReported,
273
332
  MutantSetPolicy: () => MutantSetPolicy,
@@ -276,6 +335,8 @@ var RunEvent_exports = /* @__PURE__ */ __exportAll({
276
335
  PlanKnown: () => PlanKnown,
277
336
  PluginLoadFailureReason: () => PluginLoadFailureReason,
278
337
  PluginsReported: () => PluginsReported,
338
+ RefusalRule: () => RefusalRule,
339
+ Refused: () => Refused,
279
340
  ReuseRefusals: () => ReuseRefusals,
280
341
  ReuseReported: () => ReuseReported,
281
342
  RunEvent: () => RunEvent,
@@ -291,15 +352,18 @@ var RunEvent_exports = /* @__PURE__ */ __exportAll({
291
352
  SkippedReported: () => SkippedReported,
292
353
  StaticVerdict: () => StaticVerdict,
293
354
  StreamSchemaVersion: () => StreamSchemaVersion,
355
+ TceReported: () => TceReported,
294
356
  VerdictLocation: () => VerdictLocation,
295
357
  VerdictMutant: () => VerdictMutant,
296
358
  VerdictReached: () => VerdictReached,
297
- VerdictThresholds: () => VerdictThresholds
359
+ VerdictThresholds: () => VerdictThresholds,
360
+ WorkerReported: () => WorkerReported,
361
+ WorkerRole: () => WorkerRole
298
362
  });
299
363
  //#endregion
300
364
  //#region src/SpanTaxonomy.schema.ts
301
- const SpanName = S.String.check(S.isPattern(/^[A-Za-z][A-Za-z0-9_-]*(?:\.[A-Za-z][A-Za-z0-9_-]*)*$/, { expected: "a dot-separated span name whose segments start with a letter, such as \"stryker.checker.check\"" })).pipe(S.brand("SpanName"));
302
- const SpanAttributeKey = S.String.check(S.isPattern(/^[A-Za-z][A-Za-z0-9_.-]*$/, { expected: "an attribute key starting with a letter, such as \"stryker.checker.name\"" })).pipe(S.brand("SpanAttributeKey"));
365
+ const SpanName = S.String.check(S.isPattern(/^[A-Za-z][A-Za-z0-9_-]*(?:\.[A-Za-z][A-Za-z0-9_-]*)*$/u, { expected: "a dot-separated span name whose segments start with a letter, such as \"stryker.checker.check\"" })).pipe(S.brand("SpanName"));
366
+ const SpanAttributeKey = S.String.check(S.isPattern(/^[A-Za-z][A-Za-z0-9_.-]*$/u, { expected: "an attribute key starting with a letter, such as \"stryker.checker.name\"" })).pipe(S.brand("SpanAttributeKey"));
303
367
  const SpanAttributeText = S.String;
304
368
  const SpanAttributeCount = S.Finite;
305
369
  const SpanRunStatus = S.Literals([
@@ -545,74 +609,6 @@ const Spans = {
545
609
  name: "stryker.load_config",
546
610
  attributes: {}
547
611
  },
548
- mergeReports: {
549
- name: "stryker.merge_reports",
550
- attributes: {}
551
- },
552
- mergeReportsCollectPartDirs: {
553
- name: "stryker.merge_reports.collect_part_dirs",
554
- attributes: {}
555
- },
556
- mergeReportsDirectoryExists: {
557
- name: "stryker.merge_reports.directory_exists",
558
- attributes: {}
559
- },
560
- mergeReportsEncodeReport: {
561
- name: "stryker.merge_reports.encode_report",
562
- attributes: {}
563
- },
564
- mergeReportsFail: {
565
- name: "stryker.merge_reports.fail",
566
- attributes: {}
567
- },
568
- mergeReportsGather: {
569
- name: "stryker.merge_reports.gather",
570
- attributes: {}
571
- },
572
- mergeReportsListNames: {
573
- name: "stryker.merge_reports.list_names",
574
- attributes: {}
575
- },
576
- mergeReportsPutFile: {
577
- name: "stryker.merge_reports.put_file",
578
- attributes: {}
579
- },
580
- mergeReportsReadPart: {
581
- name: "stryker.merge_reports.read_part",
582
- attributes: {}
583
- },
584
- mergeReportsReadText: {
585
- name: "stryker.merge_reports.read_text",
586
- attributes: {}
587
- },
588
- mergeReportsRefuseCommand: {
589
- name: "stryker.merge_reports.refuse_command",
590
- attributes: {}
591
- },
592
- mergeReportsRefuseParts: {
593
- name: "stryker.merge_reports.refuse_parts",
594
- attributes: {}
595
- },
596
- mergeReportsRenderHtml: {
597
- name: "stryker.merge_reports.render_html",
598
- attributes: {}
599
- },
600
- mergeReportsWriteAbsent: {
601
- name: "stryker.merge_reports.write_absent",
602
- attributes: {}
603
- },
604
- mergeReportsWriteFiles: {
605
- name: "stryker.merge_reports.write_files",
606
- attributes: {}
607
- },
608
- mergeReportsWriteHtml: {
609
- name: "stryker.merge_reports.write_html",
610
- attributes: {}
611
- },
612
- mergeReportsWriteMerged: {
613
- name: "stryker.merge_reports.write_merged",
614
- attributes: {}
615
- },
616
612
  mutantRun: {
617
613
  name: "stryker.mutant_run",
618
614
  attributes: {}
@@ -1706,4 +1702,4 @@ var StockCatalog_exports = /* @__PURE__ */ __exportAll({
1706
1702
  StockOptInName: () => StockOptInName
1707
1703
  });
1708
1704
  //#endregion
1709
- export { OutputMode_exports as OutputMode, RunEvent_exports as RunEvent, SpanTaxonomy_exports as SpanTaxonomy, StockCatalog_exports as StockCatalog };
1705
+ export { OutputMode_exports as OutputMode, RunEvent_exports as RunEvent, Shard, ShardPlan, ShardPlanVersion, ShardProject, SpanTaxonomy_exports as SpanTaxonomy, StockCatalog_exports as StockCatalog };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@systemfsoftware/stryker-js-cli-contract",
3
- "version": "0.1.0",
3
+ "version": "0.3.0",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/systemfsoftware/stryker-js-effect.git",
@@ -19,22 +19,19 @@
19
19
  "node": ">=20.0.0"
20
20
  },
21
21
  "dependencies": {
22
- "effect": "4.0.0-rc.117",
23
- "@systemfsoftware/stryker-js-plugin-interface": "^11.1.0"
22
+ "effect": "^4.0.0",
23
+ "@systemfsoftware/stryker-js-plugin-interface": "^13.0.0"
24
24
  },
25
25
  "devDependencies": {
26
- "@effect/platform-node-shared": "4.0.0-rc.117",
27
- "@effect/tsgo": "^0.45.0",
26
+ "@effect/platform-node-shared": "^4.0.0",
27
+ "@effect/tsgo": "^0.47.2",
28
28
  "@microsoft/api-extractor": "^7",
29
29
  "@systemfsoftware/arethetypeswrong-cli": "^4.2.0",
30
- "@systemfsoftware/differential-spec": "^0.6.1",
31
- "@systemfsoftware/effect-gherkin-spec": "^6.0.1",
32
- "@systemfsoftware/effect-schema-law": "^4.0.1",
33
- "@systemfsoftware/effect-schema-vite": "^2.3.0",
34
- "@systemfsoftware/oxlint-config-recommended": "^3.4.0",
30
+ "@systemfsoftware/effect-gherkin-spec": "^7.0.0",
31
+ "@systemfsoftware/effect-schema-law": "^5.0.0",
32
+ "@systemfsoftware/oxlint-config-recommended": "^4.0.0",
35
33
  "@systemfsoftware/tsconfig": "^2.0.1",
36
- "@systemfsoftware/vitest": "^0.3.0",
37
- "fast-check": "^4",
34
+ "@systemfsoftware/vitest": "^1.0.0",
38
35
  "@types/node": "^24",
39
36
  "oxlint": "^1",
40
37
  "oxlint-tsgolint": "^7",
@@ -43,8 +40,8 @@
43
40
  "tsx": "^4.23.14",
44
41
  "typescript": "^7",
45
42
  "vitest": "^5",
46
- "@systemfsoftware/tsdown-config": "^0.1.0",
47
- "@systemfsoftware/vitest-config": "^0.1.0"
43
+ "@systemfsoftware/vitest-config": "^0.1.0",
44
+ "@systemfsoftware/tsdown-config": "^0.1.0"
48
45
  },
49
46
  "publishConfig": {
50
47
  "access": "public",
@@ -56,9 +53,15 @@
56
53
  "default": "./dist/index.mjs"
57
54
  },
58
55
  "./package.json": "./package.json",
59
- "./contract/stream.schema.json": "./contract/stream.schema.json",
60
- "./contract/stock-catalog.json": "./contract/stock-catalog.json",
61
- "./contract/span-taxonomy.json": "./contract/span-taxonomy.json"
56
+ "./contract/stream.schema.json": {
57
+ "default": "./contract/stream.schema.json"
58
+ },
59
+ "./contract/stock-catalog.json": {
60
+ "default": "./contract/stock-catalog.json"
61
+ },
62
+ "./contract/span-taxonomy.json": {
63
+ "default": "./contract/span-taxonomy.json"
64
+ }
62
65
  },
63
66
  "scripts": {
64
67
  "clean": "rimraf dist",