@toolproof-core/genesis 1.0.56 → 1.0.58

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.
Files changed (27) hide show
  1. package/dist/generated-src/declarations/resourceTypes.json +12 -3
  2. package/dist/generated-src/lookups/constants.d.ts +10 -24
  3. package/dist/generated-src/lookups/constants.js +10 -24
  4. package/dist/generated-src/schemas/schemas.json +57 -181
  5. package/dist/generated-src/schemas/standalone/Resource.json +2 -17
  6. package/dist/generated-src/schemas/standalone/Strategy.json +101 -215
  7. package/dist/generated-src/schemas/standalone/StrategyTrace.json +56 -97
  8. package/dist/generated-src/schemas/standalone/Suite.json +1 -2
  9. package/dist/generated-src/schemas/standalone/Tool.json +1 -2
  10. package/dist/generated-src/schemas/zod/Resource.js +1 -3
  11. package/dist/generated-src/schemas/zod/Strategy.d.ts +0 -6
  12. package/dist/generated-src/schemas/zod/Strategy.js +7 -27
  13. package/dist/generated-src/schemas/zod/StrategyTrace.d.ts +0 -6
  14. package/dist/generated-src/schemas/zod/StrategyTrace.js +16 -28
  15. package/dist/generated-src/timestampedResources/booleans.json +2 -2
  16. package/dist/generated-src/timestampedResources/naturals.json +11 -11
  17. package/dist/generated-src/timestampedResources/resourceTypes.json +22 -13
  18. package/dist/generated-src/timestampedResources/tools.json +15 -15
  19. package/dist/generated-src/types/types.d.ts +36 -119
  20. package/dist/src/index.d.ts +1 -1
  21. package/dist/src/utils/standaloneZodSchemas.js +6 -6
  22. package/dist/src/utils/timestampedResources.d.ts +1 -1
  23. package/dist/src/utils/timestampedResources.js +1 -1
  24. package/dist/src/utils/typeGenerationPostProcess.js +7 -37
  25. package/dist/src/utils/zodCodegen.d.ts +1 -1
  26. package/dist/src/utils/zodCodegen.js +7 -7
  27. package/package.json +1 -1
@@ -3,7 +3,7 @@
3
3
  "id": "RESOURCE-NATURAL:0",
4
4
  "resourceTypeHandle": "TYPE-Natural",
5
5
  "provenance": {
6
- "resourceProvenanceKind": "genesis"
6
+ "provenanceKind": "genesis"
7
7
  },
8
8
  "timestamp": "2025-11-30T00:00:00.000Z",
9
9
  "projection": 0
@@ -12,7 +12,7 @@
12
12
  "id": "RESOURCE-NATURAL:1",
13
13
  "resourceTypeHandle": "TYPE-Natural",
14
14
  "provenance": {
15
- "resourceProvenanceKind": "genesis"
15
+ "provenanceKind": "genesis"
16
16
  },
17
17
  "timestamp": "2025-11-30T00:00:00.000Z",
18
18
  "projection": 1
@@ -21,7 +21,7 @@
21
21
  "id": "RESOURCE-NATURAL:2",
22
22
  "resourceTypeHandle": "TYPE-Natural",
23
23
  "provenance": {
24
- "resourceProvenanceKind": "genesis"
24
+ "provenanceKind": "genesis"
25
25
  },
26
26
  "timestamp": "2025-11-30T00:00:00.000Z",
27
27
  "projection": 2
@@ -30,7 +30,7 @@
30
30
  "id": "RESOURCE-NATURAL:3",
31
31
  "resourceTypeHandle": "TYPE-Natural",
32
32
  "provenance": {
33
- "resourceProvenanceKind": "genesis"
33
+ "provenanceKind": "genesis"
34
34
  },
35
35
  "timestamp": "2025-11-30T00:00:00.000Z",
36
36
  "projection": 3
@@ -39,7 +39,7 @@
39
39
  "id": "RESOURCE-NATURAL:4",
40
40
  "resourceTypeHandle": "TYPE-Natural",
41
41
  "provenance": {
42
- "resourceProvenanceKind": "genesis"
42
+ "provenanceKind": "genesis"
43
43
  },
44
44
  "timestamp": "2025-11-30T00:00:00.000Z",
45
45
  "projection": 4
@@ -48,7 +48,7 @@
48
48
  "id": "RESOURCE-NATURAL:5",
49
49
  "resourceTypeHandle": "TYPE-Natural",
50
50
  "provenance": {
51
- "resourceProvenanceKind": "genesis"
51
+ "provenanceKind": "genesis"
52
52
  },
53
53
  "timestamp": "2025-11-30T00:00:00.000Z",
54
54
  "projection": 5
@@ -57,7 +57,7 @@
57
57
  "id": "RESOURCE-NATURAL:6",
58
58
  "resourceTypeHandle": "TYPE-Natural",
59
59
  "provenance": {
60
- "resourceProvenanceKind": "genesis"
60
+ "provenanceKind": "genesis"
61
61
  },
62
62
  "timestamp": "2025-11-30T00:00:00.000Z",
63
63
  "projection": 6
@@ -66,7 +66,7 @@
66
66
  "id": "RESOURCE-NATURAL:7",
67
67
  "resourceTypeHandle": "TYPE-Natural",
68
68
  "provenance": {
69
- "resourceProvenanceKind": "genesis"
69
+ "provenanceKind": "genesis"
70
70
  },
71
71
  "timestamp": "2025-11-30T00:00:00.000Z",
72
72
  "projection": 7
@@ -75,7 +75,7 @@
75
75
  "id": "RESOURCE-NATURAL:8",
76
76
  "resourceTypeHandle": "TYPE-Natural",
77
77
  "provenance": {
78
- "resourceProvenanceKind": "genesis"
78
+ "provenanceKind": "genesis"
79
79
  },
80
80
  "timestamp": "2025-11-30T00:00:00.000Z",
81
81
  "projection": 8
@@ -84,7 +84,7 @@
84
84
  "id": "RESOURCE-NATURAL:9",
85
85
  "resourceTypeHandle": "TYPE-Natural",
86
86
  "provenance": {
87
- "resourceProvenanceKind": "genesis"
87
+ "provenanceKind": "genesis"
88
88
  },
89
89
  "timestamp": "2025-11-30T00:00:00.000Z",
90
90
  "projection": 9
@@ -93,7 +93,7 @@
93
93
  "id": "RESOURCE-NATURAL:100",
94
94
  "resourceTypeHandle": "TYPE-Natural",
95
95
  "provenance": {
96
- "resourceProvenanceKind": "genesis"
96
+ "provenanceKind": "genesis"
97
97
  },
98
98
  "timestamp": "2025-11-30T00:00:00.000Z",
99
99
  "projection": 100
@@ -3,7 +3,7 @@
3
3
  "id": "RESOURCE-TYPE:ResourceType",
4
4
  "resourceTypeHandle": "TYPE-ResourceType",
5
5
  "provenance": {
6
- "resourceProvenanceKind": "genesis"
6
+ "provenanceKind": "genesis"
7
7
  },
8
8
  "timestamp": "2025-11-30T00:00:00.000Z",
9
9
  "projection": {
@@ -79,7 +79,7 @@
79
79
  "id": "RESOURCE-TYPE:Tool",
80
80
  "resourceTypeHandle": "TYPE-ResourceType",
81
81
  "provenance": {
82
- "resourceProvenanceKind": "genesis"
82
+ "provenanceKind": "genesis"
83
83
  },
84
84
  "timestamp": "2025-11-30T00:00:00.000Z",
85
85
  "projection": {
@@ -264,7 +264,7 @@
264
264
  "id": "RESOURCE-TYPE:Strategy",
265
265
  "resourceTypeHandle": "TYPE-ResourceType",
266
266
  "provenance": {
267
- "resourceProvenanceKind": "genesis"
267
+ "provenanceKind": "genesis"
268
268
  },
269
269
  "timestamp": "2025-11-30T00:00:00.000Z",
270
270
  "projection": {
@@ -273,12 +273,21 @@
273
273
  "description": "",
274
274
  "projectionSchema": {
275
275
  "$schema": "https://json-schema.org/draft/2020-12/schema",
276
- "oneOf": [
276
+ "type": "object",
277
+ "required": [
278
+ "handle"
279
+ ],
280
+ "properties": {
281
+ "handle": {
282
+ "$ref": "#/$defs/StrategyHandle"
283
+ }
284
+ },
285
+ "allOf": [
277
286
  {
278
- "$ref": "#/$defs/UnthreadedStrategy"
287
+ "$ref": "#/$defs/StepsByThreadIndexFacet"
279
288
  },
280
289
  {
281
- "$ref": "#/$defs/ThreadedStrategy"
290
+ "$ref": "#/$defs/StrategyStateFacet"
282
291
  }
283
292
  ]
284
293
  }
@@ -288,7 +297,7 @@
288
297
  "id": "RESOURCE-TYPE:StrategyTrace",
289
298
  "resourceTypeHandle": "TYPE-ResourceType",
290
299
  "provenance": {
291
- "resourceProvenanceKind": "genesis"
300
+ "provenanceKind": "genesis"
292
301
  },
293
302
  "timestamp": "2025-11-30T00:00:00.000Z",
294
303
  "projection": {
@@ -326,7 +335,7 @@
326
335
  "id": "RESOURCE-TYPE:Goal",
327
336
  "resourceTypeHandle": "TYPE-ResourceType",
328
337
  "provenance": {
329
- "resourceProvenanceKind": "genesis"
338
+ "provenanceKind": "genesis"
330
339
  },
331
340
  "timestamp": "2025-11-30T00:00:00.000Z",
332
341
  "projection": {
@@ -380,7 +389,7 @@
380
389
  "id": "RESOURCE-TYPE:Error",
381
390
  "resourceTypeHandle": "TYPE-ResourceType",
382
391
  "provenance": {
383
- "resourceProvenanceKind": "genesis"
392
+ "provenanceKind": "genesis"
384
393
  },
385
394
  "timestamp": "2025-11-30T00:00:00.000Z",
386
395
  "projection": {
@@ -410,7 +419,7 @@
410
419
  "id": "RESOURCE-TYPE:Boolean",
411
420
  "resourceTypeHandle": "TYPE-ResourceType",
412
421
  "provenance": {
413
- "resourceProvenanceKind": "genesis"
422
+ "provenanceKind": "genesis"
414
423
  },
415
424
  "timestamp": "2025-11-30T00:00:00.000Z",
416
425
  "projection": {
@@ -427,7 +436,7 @@
427
436
  "id": "RESOURCE-TYPE:Natural",
428
437
  "resourceTypeHandle": "TYPE-ResourceType",
429
438
  "provenance": {
430
- "resourceProvenanceKind": "genesis"
439
+ "provenanceKind": "genesis"
431
440
  },
432
441
  "timestamp": "2025-11-30T00:00:00.000Z",
433
442
  "projection": {
@@ -445,7 +454,7 @@
445
454
  "id": "RESOURCE-TYPE:Resource",
446
455
  "resourceTypeHandle": "TYPE-ResourceType",
447
456
  "provenance": {
448
- "resourceProvenanceKind": "genesis"
457
+ "provenanceKind": "genesis"
449
458
  },
450
459
  "timestamp": "2025-11-30T00:00:00.000Z",
451
460
  "projection": {
@@ -464,7 +473,7 @@
464
473
  "id": "RESOURCE-TYPE:Suite",
465
474
  "resourceTypeHandle": "TYPE-ResourceType",
466
475
  "provenance": {
467
- "resourceProvenanceKind": "genesis"
476
+ "provenanceKind": "genesis"
468
477
  },
469
478
  "timestamp": "2025-11-30T00:00:00.000Z",
470
479
  "projection": {
@@ -3,7 +3,7 @@
3
3
  "id": "RESOURCE-TOOL:Identity",
4
4
  "resourceTypeHandle": "TYPE-Tool",
5
5
  "provenance": {
6
- "resourceProvenanceKind": "genesis"
6
+ "provenanceKind": "genesis"
7
7
  },
8
8
  "timestamp": "2025-11-30T00:00:00.000Z",
9
9
  "projection": {
@@ -67,7 +67,7 @@
67
67
  "id": "RESOURCE-TOOL:Add",
68
68
  "resourceTypeHandle": "TYPE-Tool",
69
69
  "provenance": {
70
- "resourceProvenanceKind": "genesis"
70
+ "provenanceKind": "genesis"
71
71
  },
72
72
  "timestamp": "2025-11-30T00:00:00.000Z",
73
73
  "projection": {
@@ -139,7 +139,7 @@
139
139
  "id": "RESOURCE-TOOL:Subtract",
140
140
  "resourceTypeHandle": "TYPE-Tool",
141
141
  "provenance": {
142
- "resourceProvenanceKind": "genesis"
142
+ "provenanceKind": "genesis"
143
143
  },
144
144
  "timestamp": "2025-11-30T00:00:00.000Z",
145
145
  "projection": {
@@ -211,7 +211,7 @@
211
211
  "id": "RESOURCE-TOOL:Multiply",
212
212
  "resourceTypeHandle": "TYPE-Tool",
213
213
  "provenance": {
214
- "resourceProvenanceKind": "genesis"
214
+ "provenanceKind": "genesis"
215
215
  },
216
216
  "timestamp": "2025-11-30T00:00:00.000Z",
217
217
  "projection": {
@@ -283,7 +283,7 @@
283
283
  "id": "RESOURCE-TOOL:Divide",
284
284
  "resourceTypeHandle": "TYPE-Tool",
285
285
  "provenance": {
286
- "resourceProvenanceKind": "genesis"
286
+ "provenanceKind": "genesis"
287
287
  },
288
288
  "timestamp": "2025-11-30T00:00:00.000Z",
289
289
  "projection": {
@@ -363,7 +363,7 @@
363
363
  "id": "RESOURCE-TOOL:Double",
364
364
  "resourceTypeHandle": "TYPE-Tool",
365
365
  "provenance": {
366
- "resourceProvenanceKind": "genesis"
366
+ "provenanceKind": "genesis"
367
367
  },
368
368
  "timestamp": "2025-11-30T00:00:00.000Z",
369
369
  "projection": {
@@ -427,7 +427,7 @@
427
427
  "id": "RESOURCE-TOOL:LessThan",
428
428
  "resourceTypeHandle": "TYPE-Tool",
429
429
  "provenance": {
430
- "resourceProvenanceKind": "genesis"
430
+ "provenanceKind": "genesis"
431
431
  },
432
432
  "timestamp": "2025-11-30T00:00:00.000Z",
433
433
  "projection": {
@@ -497,7 +497,7 @@
497
497
  "id": "RESOURCE-TOOL:BooleanIdentity",
498
498
  "resourceTypeHandle": "TYPE-Tool",
499
499
  "provenance": {
500
- "resourceProvenanceKind": "genesis"
500
+ "provenanceKind": "genesis"
501
501
  },
502
502
  "timestamp": "2025-11-30T00:00:00.000Z",
503
503
  "projection": {
@@ -531,7 +531,7 @@
531
531
  "id": "RESOURCE-TOOL:NaturalIdentity",
532
532
  "resourceTypeHandle": "TYPE-Tool",
533
533
  "provenance": {
534
- "resourceProvenanceKind": "genesis"
534
+ "provenanceKind": "genesis"
535
535
  },
536
536
  "timestamp": "2025-11-30T00:00:00.000Z",
537
537
  "projection": {
@@ -565,7 +565,7 @@
565
565
  "id": "RESOURCE-TOOL:NaturalLessThan",
566
566
  "resourceTypeHandle": "TYPE-Tool",
567
567
  "provenance": {
568
- "resourceProvenanceKind": "genesis"
568
+ "provenanceKind": "genesis"
569
569
  },
570
570
  "timestamp": "2025-11-30T00:00:00.000Z",
571
571
  "projection": {
@@ -605,7 +605,7 @@
605
605
  "id": "RESOURCE-TOOL:NaturalAdd",
606
606
  "resourceTypeHandle": "TYPE-Tool",
607
607
  "provenance": {
608
- "resourceProvenanceKind": "genesis"
608
+ "provenanceKind": "genesis"
609
609
  },
610
610
  "timestamp": "2025-11-30T00:00:00.000Z",
611
611
  "projection": {
@@ -645,7 +645,7 @@
645
645
  "id": "RESOURCE-TOOL:NaturalSubtract",
646
646
  "resourceTypeHandle": "TYPE-Tool",
647
647
  "provenance": {
648
- "resourceProvenanceKind": "genesis"
648
+ "provenanceKind": "genesis"
649
649
  },
650
650
  "timestamp": "2025-11-30T00:00:00.000Z",
651
651
  "projection": {
@@ -700,7 +700,7 @@
700
700
  "id": "RESOURCE-TOOL:NaturalMultiply",
701
701
  "resourceTypeHandle": "TYPE-Tool",
702
702
  "provenance": {
703
- "resourceProvenanceKind": "genesis"
703
+ "provenanceKind": "genesis"
704
704
  },
705
705
  "timestamp": "2025-11-30T00:00:00.000Z",
706
706
  "projection": {
@@ -740,7 +740,7 @@
740
740
  "id": "RESOURCE-TOOL:NaturalDivide",
741
741
  "resourceTypeHandle": "TYPE-Tool",
742
742
  "provenance": {
743
- "resourceProvenanceKind": "genesis"
743
+ "provenanceKind": "genesis"
744
744
  },
745
745
  "timestamp": "2025-11-30T00:00:00.000Z",
746
746
  "projection": {
@@ -792,7 +792,7 @@
792
792
  "id": "RESOURCE-TOOL:NaturalDouble",
793
793
  "resourceTypeHandle": "TYPE-Tool",
794
794
  "provenance": {
795
- "resourceProvenanceKind": "genesis"
795
+ "provenanceKind": "genesis"
796
796
  },
797
797
  "timestamp": "2025-11-30T00:00:00.000Z",
798
798
  "projection": {
@@ -90,19 +90,7 @@ export type StrategyTraceHandle =
90
90
  * via the `definition` "ToolStepPath".
91
91
  */
92
92
  export type ToolStepPath =
93
- UnthreadedToolStepPath | ThreadedToolStepPath;
94
- /**
95
- * This interface was referenced by `Genesis`'s JSON-Schema
96
- * via the `definition` "UnthreadedToolStepPath".
97
- */
98
- export type UnthreadedToolStepPath =
99
- string & { readonly __brand: 'UnthreadedToolStepPath' };
100
- /**
101
- * This interface was referenced by `Genesis`'s JSON-Schema
102
- * via the `definition` "ThreadedToolStepPath".
103
- */
104
- export type ThreadedToolStepPath =
105
- string & { readonly __brand: 'ThreadedToolStepPath' };
93
+ string & { readonly __brand: 'ToolStepPath' };
106
94
  /**
107
95
  * This interface was referenced by `Genesis`'s JSON-Schema
108
96
  * via the `definition` "ResourceType".
@@ -279,13 +267,14 @@ export type StepArrayArray =
279
267
  * via the `definition` "ToolStepPathSlot".
280
268
  */
281
269
  export type ToolStepPathSlot =
282
- "self" | "case.when" | "case.what" | "cases.when" | "cases.what";
270
+ "self" | "case/when" | "case/what" | "cases/when" | "cases/what";
283
271
  /**
284
272
  * This interface was referenced by `Genesis`'s JSON-Schema
285
- * via the `definition` "BaseToolStepPathSpec".
273
+ * via the `definition` "ToolStepPathSpec".
286
274
  */
287
- export type BaseToolStepPathSpec =
275
+ export type ToolStepPathSpec =
288
276
  {
277
+ threadIndex: Natural;
289
278
  stepIndex: Natural;
290
279
  toolStepPathSlot: ToolStepPathSlot;
291
280
  caseIndex?: Natural;
@@ -297,74 +286,35 @@ export type BaseToolStepPathSpec =
297
286
  */
298
287
  export type Natural =
299
288
  number;
300
- /**
301
- * This interface was referenced by `Genesis`'s JSON-Schema
302
- * via the `definition` "UnthreadedToolStepPathSpec".
303
- */
304
- export type UnthreadedToolStepPathSpec =
305
- {
306
- } & BaseToolStepPathSpec;
307
- /**
308
- * This interface was referenced by `Genesis`'s JSON-Schema
309
- * via the `definition` "ThreadedToolStepPathSpec".
310
- */
311
- export type ThreadedToolStepPathSpec =
312
- {
313
- } & BaseToolStepPathSpec & {
314
- threadIndex: Natural;
315
- };
316
- /**
317
- * This interface was referenced by `Genesis`'s JSON-Schema
318
- * via the `definition` "StrategyKind".
319
- */
320
- export type StrategyKind =
321
- "unthreaded" | "threaded";
322
289
  /**
323
290
  * This interface was referenced by `Genesis`'s JSON-Schema
324
291
  * via the `definition` "StrategyHandle".
325
292
  */
326
293
  export type StrategyHandle =
327
294
  `STRATEGY-${string}`;
328
- /**
329
- * This interface was referenced by `Genesis`'s JSON-Schema
330
- * via the `definition` "UnthreadedStrategy".
331
- */
332
- export type UnthreadedStrategy =
333
- {
334
- } & BaseStrategy & {
335
- strategyKind?: "unthreaded";
336
- } & StepsFacet &
337
- UnthreadedStrategyStateFacet;
338
- /**
339
- * This interface was referenced by `Genesis`'s JSON-Schema
340
- * via the `definition` "ThreadedStrategy".
341
- */
342
- export type ThreadedStrategy =
343
- {
344
- } & BaseStrategy & {
345
- strategyKind?: "threaded";
346
- } & StepsByThreadIndexFacet &
347
- ThreadedStrategyStateFacet;
348
295
  /**
349
296
  * This interface was referenced by `Genesis`'s JSON-Schema
350
297
  * via the `definition` "Strategy".
351
298
  */
352
299
  export type Strategy =
353
- UnthreadedStrategy | ThreadedStrategy;
300
+ {
301
+ handle: StrategyHandle;
302
+ } & StepsByThreadIndexFacet &
303
+ StrategyStateFacet;
354
304
  /**
355
305
  * This interface was referenced by `Genesis`'s JSON-Schema
356
306
  * via the `definition` "TracePointKind".
357
307
  */
358
308
  export type TracePointKind =
359
- "graph_start" | "tick" | "interrupt" | "graph_end";
309
+ "strategy_start" | "tick" | "suspended" | "strategy_end";
360
310
  /**
361
311
  * This interface was referenced by `Genesis`'s JSON-Schema
362
- * via the `definition` "GraphStartTracePoint".
312
+ * via the `definition` "StrategyStartTracePoint".
363
313
  */
364
- export type GraphStartTracePoint =
314
+ export type StrategyStartTracePoint =
365
315
  BaseTracePoint & {
366
- tracePointKind?: "graph_start";
367
- } & ThreadedStrategyFacet;
316
+ tracePointKind?: "strategy_start";
317
+ } & StrategyFacet;
368
318
  /**
369
319
  * This interface was referenced by `Genesis`'s JSON-Schema
370
320
  * via the `definition` "TickTracePoint".
@@ -373,37 +323,39 @@ export type TickTracePoint =
373
323
  BaseTracePoint & {
374
324
  tracePointKind?: "tick";
375
325
  counterSnapshot: TracePointCounterSnapshot;
376
- toolStepPath: ThreadedToolStepPath;
326
+ threadIndex: Natural;
327
+ toolStepPath: ToolStepPath;
377
328
  delta: TracePointDelta;
378
329
  };
379
330
  /**
380
331
  * This interface was referenced by `Genesis`'s JSON-Schema
381
- * via the `definition` "InterruptTracePoint".
332
+ * via the `definition` "SuspendedTracePoint".
382
333
  */
383
- export type InterruptTracePoint =
334
+ export type SuspendedTracePoint =
384
335
  BaseTracePoint & {
385
- tracePointKind?: "interrupt";
336
+ tracePointKind?: "suspended";
386
337
  counterSnapshot: TracePointCounterSnapshot;
387
- toolStepPath: ThreadedToolStepPath;
338
+ threadIndex: Natural;
339
+ toolStepPath: ToolStepPath;
388
340
  delta: TracePointDelta & {
389
- interruptData: {
341
+ suspendedData: {
390
342
  };
391
343
  };
392
344
  };
393
345
  /**
394
346
  * This interface was referenced by `Genesis`'s JSON-Schema
395
- * via the `definition` "GraphEndTracePoint".
347
+ * via the `definition` "StrategyEndTracePoint".
396
348
  */
397
- export type GraphEndTracePoint =
349
+ export type StrategyEndTracePoint =
398
350
  BaseTracePoint & {
399
- tracePointKind?: "graph_end";
351
+ tracePointKind?: "strategy_end";
400
352
  };
401
353
  /**
402
354
  * This interface was referenced by `Genesis`'s JSON-Schema
403
355
  * via the `definition` "TracePoint".
404
356
  */
405
357
  export type TracePoint =
406
- GraphStartTracePoint | TickTracePoint | InterruptTracePoint | GraphEndTracePoint;
358
+ StrategyStartTracePoint | TickTracePoint | SuspendedTracePoint | StrategyEndTracePoint;
407
359
  /**
408
360
  * This interface was referenced by `Genesis`'s JSON-Schema
409
361
  * via the `definition` "GoalHandle".
@@ -531,18 +483,6 @@ export interface ToolStepRoleAddress {
531
483
  roleName: RoleName;
532
484
  toolStepPath: ToolStepPath;
533
485
  }
534
- /**
535
- * This interface was referenced by `Genesis`'s JSON-Schema
536
- * via the `definition` "UnthreadedToolStepRoleAddress".
537
- */
538
- export type UnthreadedToolStepRoleAddress =
539
- ToolStepRoleAddress & { toolStepPath: UnthreadedToolStepPath };
540
- /**
541
- * This interface was referenced by `Genesis`'s JSON-Schema
542
- * via the `definition` "ThreadedToolStepRoleAddress".
543
- */
544
- export type ThreadedToolStepRoleAddress =
545
- ToolStepRoleAddress & { toolStepPath: ThreadedToolStepPath };
546
486
  export interface JsonSchemaObject1 {
547
487
  $schema: "https://json-schema.org/draft/2020-12/schema";
548
488
  }
@@ -639,39 +579,17 @@ export interface ToolStepPathSlotFacet {
639
579
  }
640
580
  /**
641
581
  * This interface was referenced by `Genesis`'s JSON-Schema
642
- * via the `definition` "UnthreadedStrategyState".
582
+ * via the `definition` "StrategyState".
643
583
  */
644
- export interface UnthreadedStrategyState {
584
+ export interface StrategyState {
645
585
  [k: string]: StrategyStateInputEntryByRoleName;
646
586
  }
647
587
  /**
648
588
  * This interface was referenced by `Genesis`'s JSON-Schema
649
- * via the `definition` "ThreadedStrategyState".
589
+ * via the `definition` "StrategyStateFacet".
650
590
  */
651
- export interface ThreadedStrategyState {
652
- [k: string]: StrategyStateInputEntryByRoleName;
653
- }
654
- /**
655
- * This interface was referenced by `Genesis`'s JSON-Schema
656
- * via the `definition` "UnthreadedStrategyStateFacet".
657
- */
658
- export interface UnthreadedStrategyStateFacet {
659
- strategyState: UnthreadedStrategyState;
660
- }
661
- /**
662
- * This interface was referenced by `Genesis`'s JSON-Schema
663
- * via the `definition` "ThreadedStrategyStateFacet".
664
- */
665
- export interface ThreadedStrategyStateFacet {
666
- strategyState: ThreadedStrategyState;
667
- }
668
- /**
669
- * This interface was referenced by `Genesis`'s JSON-Schema
670
- * via the `definition` "BaseStrategy".
671
- */
672
- export interface BaseStrategy {
673
- handle: StrategyHandle;
674
- strategyKind: StrategyKind;
591
+ export interface StrategyStateFacet {
592
+ strategyState: StrategyState;
675
593
  }
676
594
  /**
677
595
  * This interface was referenced by `Genesis`'s JSON-Schema
@@ -697,8 +615,8 @@ export interface TracePointDelta {
697
615
  insertAt: Natural;
698
616
  insertedSteps: StepArray;
699
617
  };
700
- strategyStateDelta?: ThreadedStrategyState;
701
- interruptData?: {
618
+ strategyStateDelta?: StrategyState;
619
+ suspendedData?: {
702
620
  } | null;
703
621
  }
704
622
  /**
@@ -708,15 +626,14 @@ export interface TracePointDelta {
708
626
  export interface BaseTracePoint {
709
627
  tracePointKind: TracePointKind;
710
628
  strategyHandle: StrategyHandle;
711
- threadIndex: Natural;
712
629
  tracePointIndex: Natural;
713
630
  }
714
631
  /**
715
632
  * This interface was referenced by `Genesis`'s JSON-Schema
716
- * via the `definition` "ThreadedStrategyFacet".
633
+ * via the `definition` "StrategyFacet".
717
634
  */
718
- export interface ThreadedStrategyFacet {
719
- threadedStrategy: ThreadedStrategy;
635
+ export interface StrategyFacet {
636
+ strategy: Strategy;
720
637
  }
721
638
  /**
722
639
  * This interface was referenced by `Genesis`'s JSON-Schema
@@ -17,4 +17,4 @@ export type { ResourceTypeResource, } from '../generated-src/types/standalone/Re
17
17
  export type { ToolResource, } from '../generated-src/types/standalone/ToolResource.js';
18
18
  export type { StrategyResource, } from '../generated-src/types/standalone/StrategyResource.js';
19
19
  export type { StrategyTraceResource, } from '../generated-src/types/standalone/StrategyTraceResource.js';
20
- export type { BaseResource, BaseStrategy, BaseToolStepPathSpec, Boolean, BranchStep, Case, ContainerKind, Description, DescriptionFacet, DocumentationSpec, ExternalInputPotential, GraphEndTracePoint, GraphStartTracePoint, GenesisProvenance, Goal, InputPotential, InputResource, InternalInputPotential, InterruptTracePoint, JsonSchemaObject, Name, NameFacet, Natural, ToolStepRoleAddress, Provenance, ProvenanceFacet, ProvenanceKind, Resource, ResourceId, ResourcePointer, ResourceType, ResourceTypeHandle, RoleBindingSpec, RoleBindingSpecFacet, RoleName, RoleNameArray, RoleSpec, RoleSpecFacet, RoleValue, RoleValueByName, RuntimeProvenance, Step, StepArray, StepArrayArray, StepKind, StepKindFacet, Strategy, StrategyHandle, StrategyKind, StrategyProvenance, StrategyStateInputEntry, StrategyStateInputEntryByRoleName, StrategyStateInputKind, StrategyTrace, StrategyTraceHandle, TickTracePoint, TimestampedResource, TracePoint, ThreadedStrategy, ThreadedStrategyState, ThreadedStrategyStateFacet, ThreadedToolStepRoleAddress, ThreadedToolStepPath, ThreadedToolStepPathSpec, Tool, ToolHandle, ToolStep, ToolStepPath, ToolStepPathSlot, ToolStepPathSlotFacet, TypeRef, UnthreadedStrategy, UnthreadedStrategyState, UnthreadedStrategyStateFacet, UnthreadedToolStepRoleAddress, UnthreadedToolStepPath, UnthreadedToolStepPathSpec, WhileStep, ForStep, } from '../generated-src/types/types.js';
20
+ export type { BaseResource, Boolean, BranchStep, Case, ContainerKind, Description, DescriptionFacet, DocumentationSpec, ExternalInputPotential, StrategyEndTracePoint, StrategyStartTracePoint, GenesisProvenance, Goal, InputPotential, InputResource, InternalInputPotential, SuspendedTracePoint, JsonSchemaObject, Name, NameFacet, Natural, ToolStepRoleAddress, Provenance, ProvenanceFacet, ProvenanceKind, Resource, ResourceId, ResourcePointer, ResourceType, ResourceTypeHandle, RoleBindingSpec, RoleBindingSpecFacet, RoleName, RoleNameArray, RoleSpec, RoleSpecFacet, RoleValue, RoleValueByName, RuntimeProvenance, Step, StepArray, StepArrayArray, StepKind, StepKindFacet, StrategyHandle, StrategyProvenance, StrategyStateInputEntry, StrategyStateInputEntryByRoleName, StrategyStateInputKind, StrategyTrace, StrategyTraceHandle, TickTracePoint, TimestampedResource, TracePoint, Strategy, StrategyState, StrategyStateFacet, ToolStepPath, ToolStepPathSpec, Tool, ToolHandle, ToolStep, ToolStepPathSlot, ToolStepPathSlotFacet, TypeRef, WhileStep, ForStep, } from '../generated-src/types/types.js';
@@ -12,7 +12,7 @@ function emitHeader(name) {
12
12
  return (`// Auto-generated from standalone schema '${name}'. Do not edit.\n` +
13
13
  `import { z } from 'zod/v4';\n\n`);
14
14
  }
15
- function emitModule(name, expressionsByName, warnings) {
15
+ function emitModule(name, expressionByName, warnings) {
16
16
  const lines = [];
17
17
  lines.push(emitHeader(name));
18
18
  if (warnings.length > 0) {
@@ -20,7 +20,7 @@ function emitModule(name, expressionsByName, warnings) {
20
20
  lines.push(`export const ${warningsName} = ${JSON.stringify(warnings, null, 2)} as const;\n`);
21
21
  }
22
22
  const rootIdent = toIdentifier(name);
23
- const defNames = Object.keys(expressionsByName)
23
+ const defNames = Object.keys(expressionByName)
24
24
  .filter((schemaName) => schemaName !== name)
25
25
  .sort((a, b) => a.localeCompare(b));
26
26
  for (const schemaName of defNames) {
@@ -28,19 +28,19 @@ function emitModule(name, expressionsByName, warnings) {
28
28
  if (!isValidIdentifier(ident)) {
29
29
  throw new Error(`Invalid generated identifier for schema '${schemaName}': '${ident}'`);
30
30
  }
31
- const expr = expressionsByName[schemaName];
31
+ const expr = expressionByName[schemaName];
32
32
  lines.push(`const ${ident}Schema: z.ZodTypeAny = z.lazy(() => ${expr});`);
33
33
  }
34
34
  lines.push('');
35
- const rootExpr = expressionsByName[name];
35
+ const rootExpr = expressionByName[name];
36
36
  lines.push(`export const ${rootIdent}Schema: z.ZodTypeAny = z.lazy(() => ${rootExpr});`);
37
37
  return lines.join('\n') + '\n';
38
38
  }
39
39
  export function generateStandaloneZodModule(name, standaloneSchema) {
40
- const { expressionsByName, warnings } = jsonSchemaToZodExpressions(standaloneSchema, name);
40
+ const { expressionByName, warnings } = jsonSchemaToZodExpressions(standaloneSchema, name);
41
41
  return {
42
42
  fileName: `${name}.ts`,
43
- content: emitModule(name, expressionsByName, warnings),
43
+ content: emitModule(name, expressionByName, warnings),
44
44
  warnings,
45
45
  };
46
46
  }
@@ -3,7 +3,7 @@ type TimestampedResource = JsonObject & {
3
3
  id: string;
4
4
  resourceTypeHandle: string;
5
5
  provenance: {
6
- resourceProvenanceKind: 'genesis';
6
+ provenanceKind: 'genesis';
7
7
  };
8
8
  timestamp: string;
9
9
  projection: unknown;
@@ -9,7 +9,7 @@ function createTimestampedResource(projection, options) {
9
9
  id: options.getResourceId(projection),
10
10
  resourceTypeHandle: options.resourceTypeHandle,
11
11
  provenance: {
12
- resourceProvenanceKind: 'genesis',
12
+ provenanceKind: 'genesis',
13
13
  },
14
14
  timestamp: GENESIS_TIMESTAMP,
15
15
  projection,