@toolproof-core/schema 1.0.7 → 1.0.9

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 (33) hide show
  1. package/dist/generated/constants/constants.d.ts +2 -2
  2. package/dist/generated/constants/constants.js +2 -2
  3. package/dist/generated/normalized/Genesis.json +5 -5
  4. package/dist/generated/resources/Genesis.json +5 -5
  5. package/dist/generated/schemas/Genesis.json +5 -5
  6. package/dist/generated/schemas/standalone/RawStrategy.json +4 -4
  7. package/dist/generated/schemas/standalone/RunnableStrategy.json +5 -5
  8. package/dist/generated/schemas/standalone/StrategyRun.json +5 -5
  9. package/dist/generated/types/types.d.ts +5 -5
  10. package/dist/index.d.ts +1 -1
  11. package/dist/scripts/generateConstants.js +1 -1
  12. package/package.json +8 -7
  13. package/src/Genesis.json +1833 -1833
  14. package/src/generated/constants/constants.ts +2 -2
  15. package/src/generated/normalized/Genesis.json +5 -5
  16. package/src/generated/resources/Genesis.json +5 -5
  17. package/src/generated/schemas/Genesis.json +5 -5
  18. package/src/generated/schemas/standalone/RawStrategy.json +4 -4
  19. package/src/generated/schemas/standalone/RunnableStrategy.json +5 -5
  20. package/src/generated/schemas/standalone/StrategyRun.json +5 -5
  21. package/src/generated/types/types.d.ts +5 -5
  22. package/src/index.ts +70 -69
  23. package/src/scripts/_lib/config.ts +215 -215
  24. package/src/scripts/extractSchemasFromResourceTypeShells.ts +261 -261
  25. package/src/scripts/generateConstants.ts +217 -217
  26. package/src/scripts/generateDependencies.ts +121 -121
  27. package/src/scripts/generateSchemaShims.ts +127 -127
  28. package/src/scripts/generateStandaloneSchema.ts +185 -185
  29. package/src/scripts/generateStandaloneType.ts +127 -127
  30. package/src/scripts/generateTerminals.ts +73 -73
  31. package/src/scripts/generateTypes.ts +531 -531
  32. package/src/scripts/normalizeAnchorsToPointers.ts +141 -141
  33. package/src/scripts/wrapResourceTypesWithResourceShells.ts +82 -82
@@ -32,8 +32,8 @@ const CONSTANTS = {
32
32
  ENUMS: {
33
33
  ResourceKind: {
34
34
  missing: 'missing',
35
- 'input-potential': 'input-potential',
36
- 'output-potential': 'output-potential',
35
+ inputPotential: 'inputPotential',
36
+ outputPotential: 'outputPotential',
37
37
  materialized: 'materialized',
38
38
  },
39
39
  RunEventKind: {
@@ -743,8 +743,8 @@
743
743
  "type": "string",
744
744
  "enum": [
745
745
  "missing",
746
- "input-potential",
747
- "output-potential",
746
+ "inputPotential",
747
+ "outputPotential",
748
748
  "materialized"
749
749
  ]
750
750
  }
@@ -798,7 +798,7 @@
798
798
  "type": "object",
799
799
  "properties": {
800
800
  "resourceKind": {
801
- "const": "input-potential"
801
+ "const": "inputPotential"
802
802
  }
803
803
  },
804
804
  "allOf": [
@@ -824,7 +824,7 @@
824
824
  "type": "object",
825
825
  "properties": {
826
826
  "resourceKind": {
827
- "const": "output-potential"
827
+ "const": "outputPotential"
828
828
  }
829
829
  },
830
830
  "allOf": [
@@ -1295,7 +1295,7 @@
1295
1295
  "$ref": "#/$defs/StrategyThreadMapFacet"
1296
1296
  },
1297
1297
  {
1298
- "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts input-potential and output-potential Resources upon step injections.",
1298
+ "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts inputPotential and outputPotential Resources upon step injections.",
1299
1299
  "$ref": "#/$defs/StrategyStateFacet"
1300
1300
  }
1301
1301
  ],
@@ -1115,8 +1115,8 @@
1115
1115
  "type": "string",
1116
1116
  "enum": [
1117
1117
  "missing",
1118
- "input-potential",
1119
- "output-potential",
1118
+ "inputPotential",
1119
+ "outputPotential",
1120
1120
  "materialized"
1121
1121
  ]
1122
1122
  }
@@ -1200,7 +1200,7 @@
1200
1200
  "type": "object",
1201
1201
  "properties": {
1202
1202
  "resourceKind": {
1203
- "const": "input-potential"
1203
+ "const": "inputPotential"
1204
1204
  }
1205
1205
  },
1206
1206
  "allOf": [
@@ -1236,7 +1236,7 @@
1236
1236
  "type": "object",
1237
1237
  "properties": {
1238
1238
  "resourceKind": {
1239
- "const": "output-potential"
1239
+ "const": "outputPotential"
1240
1240
  }
1241
1241
  },
1242
1242
  "allOf": [
@@ -1977,7 +1977,7 @@
1977
1977
  "$ref": "#/$defs/StrategyThreadMapFacet"
1978
1978
  },
1979
1979
  {
1980
- "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts input-potential and output-potential Resources upon step injections.",
1980
+ "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts inputPotential and outputPotential Resources upon step injections.",
1981
1981
  "$ref": "#/$defs/StrategyStateFacet"
1982
1982
  }
1983
1983
  ],
@@ -553,8 +553,8 @@
553
553
  "type": "string",
554
554
  "enum": [
555
555
  "missing",
556
- "input-potential",
557
- "output-potential",
556
+ "inputPotential",
557
+ "outputPotential",
558
558
  "materialized"
559
559
  ]
560
560
  },
@@ -593,7 +593,7 @@
593
593
  "type": "object",
594
594
  "properties": {
595
595
  "resourceKind": {
596
- "const": "input-potential"
596
+ "const": "inputPotential"
597
597
  }
598
598
  },
599
599
  "allOf": [
@@ -614,7 +614,7 @@
614
614
  "type": "object",
615
615
  "properties": {
616
616
  "resourceKind": {
617
- "const": "output-potential"
617
+ "const": "outputPotential"
618
618
  }
619
619
  },
620
620
  "allOf": [
@@ -950,7 +950,7 @@
950
950
  "$ref": "#/$defs/StrategyThreadMapFacet"
951
951
  },
952
952
  {
953
- "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts input-potential and output-potential Resources upon step injections.",
953
+ "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts inputPotential and outputPotential Resources upon step injections.",
954
954
  "$ref": "#/$defs/StrategyStateFacet"
955
955
  }
956
956
  ],
@@ -362,7 +362,7 @@
362
362
  "type": "object",
363
363
  "properties": {
364
364
  "resourceKind": {
365
- "const": "input-potential"
365
+ "const": "inputPotential"
366
366
  }
367
367
  },
368
368
  "allOf": [
@@ -383,7 +383,7 @@
383
383
  "type": "object",
384
384
  "properties": {
385
385
  "resourceKind": {
386
- "const": "output-potential"
386
+ "const": "outputPotential"
387
387
  }
388
388
  },
389
389
  "allOf": [
@@ -540,8 +540,8 @@
540
540
  "type": "string",
541
541
  "enum": [
542
542
  "missing",
543
- "input-potential",
544
- "output-potential",
543
+ "inputPotential",
544
+ "outputPotential",
545
545
  "materialized"
546
546
  ]
547
547
  },
@@ -19,7 +19,7 @@
19
19
  "$ref": "#/$defs/StrategyThreadMapFacet"
20
20
  },
21
21
  {
22
- "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts input-potential and output-potential Resources upon step injections.",
22
+ "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts inputPotential and outputPotential Resources upon step injections.",
23
23
  "$ref": "#/$defs/StrategyStateFacet"
24
24
  }
25
25
  ],
@@ -406,7 +406,7 @@
406
406
  "type": "object",
407
407
  "properties": {
408
408
  "resourceKind": {
409
- "const": "input-potential"
409
+ "const": "inputPotential"
410
410
  }
411
411
  },
412
412
  "allOf": [
@@ -427,7 +427,7 @@
427
427
  "type": "object",
428
428
  "properties": {
429
429
  "resourceKind": {
430
- "const": "output-potential"
430
+ "const": "outputPotential"
431
431
  }
432
432
  },
433
433
  "allOf": [
@@ -610,8 +610,8 @@
610
610
  "type": "string",
611
611
  "enum": [
612
612
  "missing",
613
- "input-potential",
614
- "output-potential",
613
+ "inputPotential",
614
+ "outputPotential",
615
615
  "materialized"
616
616
  ]
617
617
  },
@@ -192,7 +192,7 @@
192
192
  "$ref": "#/$defs/StrategyThreadMapFacet"
193
193
  },
194
194
  {
195
- "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts input-potential and output-potential Resources upon step injections.",
195
+ "$comment": "The Engine updates strategyState with materialized Resources upon job completions and runtime-provided input events. It also inserts inputPotential and outputPotential Resources upon step injections.",
196
196
  "$ref": "#/$defs/StrategyStateFacet"
197
197
  }
198
198
  ],
@@ -700,7 +700,7 @@
700
700
  "type": "object",
701
701
  "properties": {
702
702
  "resourceKind": {
703
- "const": "input-potential"
703
+ "const": "inputPotential"
704
704
  }
705
705
  },
706
706
  "allOf": [
@@ -721,7 +721,7 @@
721
721
  "type": "object",
722
722
  "properties": {
723
723
  "resourceKind": {
724
- "const": "output-potential"
724
+ "const": "outputPotential"
725
725
  }
726
726
  },
727
727
  "allOf": [
@@ -878,8 +878,8 @@
878
878
  "type": "string",
879
879
  "enum": [
880
880
  "missing",
881
- "input-potential",
882
- "output-potential",
881
+ "inputPotential",
882
+ "outputPotential",
883
883
  "materialized"
884
884
  ]
885
885
  },
@@ -188,7 +188,7 @@ export type ResourceIdentity =
188
188
  * via the `definition` "ResourceKind".
189
189
  */
190
190
  export type ResourceKind =
191
- "missing" | "input-potential" | "output-potential" | "materialized";
191
+ "missing" | "inputPotential" | "outputPotential" | "materialized";
192
192
  /**
193
193
  * This interface was referenced by `Genesis`'s JSON-Schema
194
194
  * via the `definition` "ShellMissing".
@@ -204,7 +204,7 @@ export type ShellMissing =
204
204
  */
205
205
  export type ShellInputPotential =
206
206
  {
207
- resourceKind?: "input-potential";
207
+ resourceKind?: "inputPotential";
208
208
  } & ResourceShellBase &
209
209
  CreationContextFacet &
210
210
  ResourceKindFacet;
@@ -214,7 +214,7 @@ export type ShellInputPotential =
214
214
  */
215
215
  export type ShellOutputPotential =
216
216
  {
217
- resourceKind?: "output-potential";
217
+ resourceKind?: "outputPotential";
218
218
  } & ResourceShellBase &
219
219
  CreationContextFacet &
220
220
  ResourceKindFacet;
@@ -271,7 +271,7 @@ export type ResourceMissing =
271
271
  */
272
272
  export type ResourceInputPotential =
273
273
  {
274
- resourceKind?: "input-potential";
274
+ resourceKind?: "inputPotential";
275
275
  } & ResourceShellBase &
276
276
  CreationContextFacet &
277
277
  ResourceKindFacet;
@@ -281,7 +281,7 @@ export type ResourceInputPotential =
281
281
  */
282
282
  export type ResourceOutputPotential =
283
283
  {
284
- resourceKind?: "output-potential";
284
+ resourceKind?: "outputPotential";
285
285
  } & ResourceShellBase &
286
286
  CreationContextFacet &
287
287
  ResourceKindFacet;
package/src/index.ts CHANGED
@@ -1,69 +1,70 @@
1
- // Re-export JSON schemas via .ts shims to avoid .json re-exports in declarations
2
- export { default as SchemaGenesis } from './generated/schemas/Genesis.js';
3
- export { default as SchemaJob } from './generated/schemas/standalone/Job.js';
4
- export { default as SchemaStrategyRun } from './generated/schemas/standalone/StrategyRun.js';
5
- export { default as ResourceTypeGenesis } from './generated/resources/Genesis.js';
6
- export { default as CONSTANTS } from './generated/constants/constants.js';
7
-
8
-
9
- export type {
10
- Resource_Genesis as Resource_GenesisJson
11
- } from './generated/types/standalone/Resource_Genesis.js';
12
- export type {
13
- Resource_ResourceType as Resource_ResourceTypeJson
14
- } from './generated/types/standalone/Resource_ResourceType.js';
15
- export type {
16
- Resource_Job as Resource_JobJson
17
- } from './generated/types/standalone/Resource_Job.js';
18
- export type {
19
- Resource_RawStrategy as Resource_RawStrategyJson
20
- } from './generated/types/standalone/Resource_RawStrategy.js';
21
- export type {
22
- Resource_RunnableStrategy as Resource_RunnableStrategyJson
23
- } from './generated/types/standalone/Resource_RunnableStrategy.js';
24
-
25
-
26
- export type {
27
- DocumentationFacet as DocumentationFacetJson,
28
- NucleusFacet as NucleusFacetJson,
29
- ResourceTypeIdentity as ResourceTypeIdentityJson,
30
- ResourceType as ResourceTypeJson,
31
- ResourceRoleIdentity as ResourceRoleIdentityJson,
32
- ResourceRoleValue as ResourceRoleValueJson,
33
- Conditional as ConditionalJson,
34
- RoleMap as RoleMapJson,
35
- Roles as RolesJson,
36
- RoleBindings as RoleBindingsJson,
37
- ResourceIdentity as ResourceIdentityJson,
38
- JobStepIdentity as JobStepIdentityJson,
39
- BranchStepIdentity as BranchStepIdentityJson,
40
- WhileStepIdentity as WhileStepIdentityJson,
41
- ForStepIdentity as ForStepIdentityJson,
42
- JobStep as JobStepJson,
43
- BranchStep as BranchStepJson,
44
- WhileStep as WhileStepJson,
45
- ForStep as ForStepJson,
46
- StepKind as StepKindJson,
47
- StepIdentity as StepIdentityJson,
48
- Step as StepJson,
49
- CreationContext as CreationContextJson,
50
- ResourceMissing as ResourceMissingJson,
51
- Resource as ResourceJson,
52
- StrategyState as StrategyStateJson,
53
- StepsFacet as StepsFacetJson,
54
- RawStrategy as RawStrategyJson,
55
- RunnableStrategyIdentity as RunnableStrategyIdentityJson,
56
- RunnableStrategyStatus as RunnableStrategyStatusJson,
57
- RunnableStrategy as RunnableStrategyJson,
58
- RunnableStrategyUpdate as RunnableStrategyUpdateJson,
59
- JobIdentity as JobIdentityJson,
60
- Job as JobJson,
61
- JsonData as JsonDataJson,
62
- StrategyThreadIdentity as StrategyThreadIdentityJson,
63
- StrategyThreadMap as StrategyThreadMapJson,
64
- JobStepSocket as JobStepSocketJson,
65
- Timestamp as TimestampJson,
66
- StrategyRunIdentity as StrategyRunIdentityJson,
67
- GoalIdentity as GoalIdentityJson,
68
- Goal as GoalJson,
69
- } from './generated/types/types.js';
1
+ // Re-export JSON schemas via .ts shims to avoid .json re-exports in declarations
2
+ export { default as SchemaGenesis } from './generated/schemas/Genesis.js';
3
+ export { default as SchemaJob } from './generated/schemas/standalone/Job.js';
4
+ export { default as SchemaStrategyRun } from './generated/schemas/standalone/StrategyRun.js';
5
+ export { default as ResourceTypeGenesis } from './generated/resources/Genesis.js';
6
+ export { default as CONSTANTS } from './generated/constants/constants.js';
7
+
8
+
9
+ export type {
10
+ Resource_Genesis as Resource_GenesisJson
11
+ } from './generated/types/standalone/Resource_Genesis.js';
12
+ export type {
13
+ Resource_ResourceType as Resource_ResourceTypeJson
14
+ } from './generated/types/standalone/Resource_ResourceType.js';
15
+ export type {
16
+ Resource_Job as Resource_JobJson
17
+ } from './generated/types/standalone/Resource_Job.js';
18
+ export type {
19
+ Resource_RawStrategy as Resource_RawStrategyJson
20
+ } from './generated/types/standalone/Resource_RawStrategy.js';
21
+ export type {
22
+ Resource_RunnableStrategy as Resource_RunnableStrategyJson
23
+ } from './generated/types/standalone/Resource_RunnableStrategy.js';
24
+
25
+
26
+ export type {
27
+ DocumentationFacet as DocumentationFacetJson,
28
+ NucleusFacet as NucleusFacetJson,
29
+ ResourceTypeIdentity as ResourceTypeIdentityJson,
30
+ ResourceType as ResourceTypeJson,
31
+ ResourceRoleIdentity as ResourceRoleIdentityJson,
32
+ ResourceRoleValue as ResourceRoleValueJson,
33
+ Conditional as ConditionalJson,
34
+ RoleMap as RoleMapJson,
35
+ Roles as RolesJson,
36
+ RoleBindings as RoleBindingsJson,
37
+ ResourceIdentity as ResourceIdentityJson,
38
+ JobStepIdentity as JobStepIdentityJson,
39
+ BranchStepIdentity as BranchStepIdentityJson,
40
+ WhileStepIdentity as WhileStepIdentityJson,
41
+ ForStepIdentity as ForStepIdentityJson,
42
+ JobStep as JobStepJson,
43
+ BranchStep as BranchStepJson,
44
+ WhileStep as WhileStepJson,
45
+ ForStep as ForStepJson,
46
+ StepKind as StepKindJson,
47
+ StepIdentity as StepIdentityJson,
48
+ Step as StepJson,
49
+ CreationContext as CreationContextJson,
50
+ ResourceMissing as ResourceMissingJson,
51
+ Resource as ResourceJson,
52
+ StrategyState as StrategyStateJson,
53
+ StepsFacet as StepsFacetJson,
54
+ RawStrategy as RawStrategyJson,
55
+ RunnableStrategyIdentity as RunnableStrategyIdentityJson,
56
+ RunnableStrategyStatus as RunnableStrategyStatusJson,
57
+ RunnableStrategy as RunnableStrategyJson,
58
+ RunnableStrategyUpdate as RunnableStrategyUpdateJson,
59
+ JobIdentity as JobIdentityJson,
60
+ Job as JobJson,
61
+ JsonData as JsonDataJson,
62
+ StrategyThreadIdentity as StrategyThreadIdentityJson,
63
+ StrategyThreadMap as StrategyThreadMapJson,
64
+ JobStepSocket as JobStepSocketJson,
65
+ Timestamp as TimestampJson,
66
+ StrategyRunIdentity as StrategyRunIdentityJson,
67
+ GoalIdentity as GoalIdentityJson,
68
+ Goal as GoalJson,
69
+ ShellMaterializedBase as ShellMaterializedBaseJson,
70
+ } from './generated/types/types.js';