@toolproof-core/genesis 1.0.47

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 (112) hide show
  1. package/dist/src/utils/constantsAndMappings.d.ts +20 -0
  2. package/dist/src/utils/constantsAndMappings.js +155 -0
  3. package/dist/src/utils/coreProjection.d.ts +16 -0
  4. package/dist/src/utils/coreProjection.js +29 -0
  5. package/dist/src/utils/resourceTypes.d.ts +12 -0
  6. package/dist/src/utils/resourceTypes.js +17 -0
  7. package/dist/src/utils/resources.d.ts +5 -0
  8. package/dist/src/utils/resources.js +17 -0
  9. package/dist/src/utils/schemaDependencies.d.ts +13 -0
  10. package/dist/src/utils/schemaDependencies.js +94 -0
  11. package/dist/src/utils/schemaObjectNormalization.d.ts +1 -0
  12. package/dist/src/utils/schemaObjectNormalization.js +66 -0
  13. package/dist/src/utils/schemaRefNormalization.d.ts +2 -0
  14. package/dist/src/utils/schemaRefNormalization.js +76 -0
  15. package/dist/src/utils/schemaShims.d.ts +2 -0
  16. package/dist/src/utils/schemaShims.js +13 -0
  17. package/dist/src/utils/standaloneSchemas.d.ts +16 -0
  18. package/dist/src/utils/standaloneSchemas.js +101 -0
  19. package/dist/src/utils/standaloneTypes.d.ts +8 -0
  20. package/dist/src/utils/standaloneTypes.js +22 -0
  21. package/dist/src/utils/standaloneZodSchemas.d.ts +8 -0
  22. package/dist/src/utils/standaloneZodSchemas.js +53 -0
  23. package/dist/src/utils/typeGeneration.d.ts +1 -0
  24. package/dist/src/utils/typeGeneration.js +25 -0
  25. package/dist/src/utils/typeGenerationPostProcess.d.ts +2 -0
  26. package/dist/src/utils/typeGenerationPostProcess.js +166 -0
  27. package/dist/src/utils/typeGenerationPreflight.d.ts +2 -0
  28. package/dist/src/utils/typeGenerationPreflight.js +93 -0
  29. package/dist/src/utils/zodCodegen.d.ts +10 -0
  30. package/dist/src/utils/zodCodegen.js +521 -0
  31. package/generated-src/derived/constants.ts +130 -0
  32. package/generated-src/derived/mappings.ts +12 -0
  33. package/generated-src/metadata/Core.json +1919 -0
  34. package/generated-src/metadata/dependencyMap.json +283 -0
  35. package/generated-src/metadata/terminals.json +17 -0
  36. package/generated-src/resourceTypes/resourceTypes.json +375 -0
  37. package/generated-src/resourceTypes/resourceTypes.ts +2 -0
  38. package/generated-src/resources/resourceTypes.json +456 -0
  39. package/generated-src/resources/resourceTypes.ts +2 -0
  40. package/generated-src/schemas/schemas.json +1670 -0
  41. package/generated-src/schemas/schemas.ts +2 -0
  42. package/generated-src/schemas/standalone/Boolean.json +5 -0
  43. package/generated-src/schemas/standalone/Boolean.ts +2 -0
  44. package/generated-src/schemas/standalone/Error.json +78 -0
  45. package/generated-src/schemas/standalone/Error.ts +2 -0
  46. package/generated-src/schemas/standalone/Goal.json +53 -0
  47. package/generated-src/schemas/standalone/Goal.ts +2 -0
  48. package/generated-src/schemas/standalone/Natural.json +6 -0
  49. package/generated-src/schemas/standalone/Natural.ts +2 -0
  50. package/generated-src/schemas/standalone/Resource.json +170 -0
  51. package/generated-src/schemas/standalone/Resource.ts +2 -0
  52. package/generated-src/schemas/standalone/ResourceType.json +131 -0
  53. package/generated-src/schemas/standalone/ResourceType.ts +2 -0
  54. package/generated-src/schemas/standalone/Strategy.json +641 -0
  55. package/generated-src/schemas/standalone/Strategy.ts +2 -0
  56. package/generated-src/schemas/standalone/StrategyTrace.json +820 -0
  57. package/generated-src/schemas/standalone/StrategyTrace.ts +2 -0
  58. package/generated-src/schemas/standalone/Tool.json +508 -0
  59. package/generated-src/schemas/standalone/Tool.ts +2 -0
  60. package/generated-src/schemas/zod/Boolean.ts +6 -0
  61. package/generated-src/schemas/zod/Error.ts +11 -0
  62. package/generated-src/schemas/zod/Goal.ts +8 -0
  63. package/generated-src/schemas/zod/Natural.ts +6 -0
  64. package/generated-src/schemas/zod/Resource.ts +21 -0
  65. package/generated-src/schemas/zod/ResourceType.ts +14 -0
  66. package/generated-src/schemas/zod/Strategy.ts +68 -0
  67. package/generated-src/schemas/zod/StrategyTrace.ts +75 -0
  68. package/generated-src/schemas/zod/Tool.ts +29 -0
  69. package/generated-src/schemas/zod/index.ts +10 -0
  70. package/generated-src/types/standalone/BooleanResource.d.ts +3 -0
  71. package/generated-src/types/standalone/BooleanResource.js +1 -0
  72. package/generated-src/types/standalone/ErrorResource.d.ts +3 -0
  73. package/generated-src/types/standalone/ErrorResource.js +1 -0
  74. package/generated-src/types/standalone/GoalResource.d.ts +3 -0
  75. package/generated-src/types/standalone/GoalResource.js +1 -0
  76. package/generated-src/types/standalone/NaturalResource.d.ts +3 -0
  77. package/generated-src/types/standalone/NaturalResource.js +1 -0
  78. package/generated-src/types/standalone/ResourceResource.d.ts +3 -0
  79. package/generated-src/types/standalone/ResourceResource.js +1 -0
  80. package/generated-src/types/standalone/ResourceTypeResource.d.ts +3 -0
  81. package/generated-src/types/standalone/ResourceTypeResource.js +1 -0
  82. package/generated-src/types/standalone/StrategyResource.d.ts +3 -0
  83. package/generated-src/types/standalone/StrategyResource.js +1 -0
  84. package/generated-src/types/standalone/StrategyTraceResource.d.ts +3 -0
  85. package/generated-src/types/standalone/StrategyTraceResource.js +1 -0
  86. package/generated-src/types/standalone/ToolResource.d.ts +3 -0
  87. package/generated-src/types/standalone/ToolResource.js +1 -0
  88. package/generated-src/types/types.d.ts +701 -0
  89. package/generated-src/types/types.js +1 -0
  90. package/package.json +52 -0
  91. package/src/genesis/resourceTypeShells.json +47 -0
  92. package/src/genesis/resources/booleans.json +24 -0
  93. package/src/genesis/resources/implementations/foo.ts +182 -0
  94. package/src/genesis/resources/naturals.json +112 -0
  95. package/src/genesis/resources/tools.json +840 -0
  96. package/src/genesis/schemas.json +1670 -0
  97. package/src/index.ts +27 -0
  98. package/src/utils/constantsAndMappings.ts +195 -0
  99. package/src/utils/coreProjection.ts +53 -0
  100. package/src/utils/resourceTypes.ts +39 -0
  101. package/src/utils/resources.ts +26 -0
  102. package/src/utils/schemaDependencies.ts +115 -0
  103. package/src/utils/schemaObjectNormalization.ts +71 -0
  104. package/src/utils/schemaRefNormalization.ts +83 -0
  105. package/src/utils/schemaShims.ts +17 -0
  106. package/src/utils/standaloneSchemas.ts +114 -0
  107. package/src/utils/standaloneTypes.ts +28 -0
  108. package/src/utils/standaloneZodSchemas.ts +72 -0
  109. package/src/utils/typeGeneration.ts +31 -0
  110. package/src/utils/typeGenerationPostProcess.ts +246 -0
  111. package/src/utils/typeGenerationPreflight.ts +119 -0
  112. package/src/utils/zodCodegen.ts +549 -0
@@ -0,0 +1,283 @@
1
+ {
2
+ "Name": [],
3
+ "NameFacet": [
4
+ "Name"
5
+ ],
6
+ "Description": [],
7
+ "DescriptionFacet": [
8
+ "Description"
9
+ ],
10
+ "DocumentationSpec": [
11
+ "NameFacet",
12
+ "DescriptionFacet"
13
+ ],
14
+ "JsonSchemaObject": [],
15
+ "TypeRef": [
16
+ "ResourceTypeHandle"
17
+ ],
18
+ "Embedding": [
19
+ "ToolHandle",
20
+ "ResourcePointer"
21
+ ],
22
+ "ResourceTypeHandle": [],
23
+ "ResourceType": [
24
+ "ResourceTypeHandle",
25
+ "JsonSchemaObject",
26
+ "ToolHandle",
27
+ "DocumentationSpec"
28
+ ],
29
+ "RoleName": [
30
+ "Name"
31
+ ],
32
+ "ContainerKind": [],
33
+ "RoleValue": [
34
+ "TypeRef",
35
+ "JsonSchemaObject",
36
+ "ContainerKind",
37
+ "RoleNameArray"
38
+ ],
39
+ "RoleValueByName": [
40
+ "RoleName",
41
+ "RoleValue"
42
+ ],
43
+ "RoleNameArray": [
44
+ "RoleName"
45
+ ],
46
+ "RoleSpec": [
47
+ "RoleValueByName",
48
+ "JsonSchemaObject"
49
+ ],
50
+ "RoleSpecFacet": [
51
+ "RoleSpec"
52
+ ],
53
+ "ToolHandle": [],
54
+ "ToolKind": [],
55
+ "Tool": [
56
+ "ToolHandle",
57
+ "RoleSpec",
58
+ "DocumentationSpec",
59
+ "RoleName",
60
+ "RoleSpecFacet"
61
+ ],
62
+ "RoleBindingSpec": [
63
+ "RoleNameArray"
64
+ ],
65
+ "RoleBindingSpecFacet": [
66
+ "RoleBindingSpec"
67
+ ],
68
+ "StepKind": [],
69
+ "StepKindFacet": [
70
+ "StepKind"
71
+ ],
72
+ "ToolStep": [
73
+ "ToolHandle",
74
+ "StepKindFacet",
75
+ "RoleBindingSpecFacet"
76
+ ],
77
+ "Case": [
78
+ "ToolStep"
79
+ ],
80
+ "BranchStep": [
81
+ "Case",
82
+ "StepKindFacet"
83
+ ],
84
+ "WhileStep": [
85
+ "Case",
86
+ "StepKindFacet"
87
+ ],
88
+ "ForStep": [
89
+ "Case",
90
+ "StepKindFacet"
91
+ ],
92
+ "Step": [
93
+ "ToolStep",
94
+ "BranchStep",
95
+ "WhileStep",
96
+ "ForStep"
97
+ ],
98
+ "OutputAddress": [
99
+ "RoleName",
100
+ "ToolStepPath"
101
+ ],
102
+ "ProvenanceKind": [],
103
+ "GenesisProvenance": [],
104
+ "StrategyProvenance": [
105
+ "StrategyTraceHandle",
106
+ "OutputAddress"
107
+ ],
108
+ "DeferredStrategyProvenance": [
109
+ "OutputAddress"
110
+ ],
111
+ "Provenance": [
112
+ "GenesisProvenance",
113
+ "StrategyProvenance"
114
+ ],
115
+ "ProvenanceFacet": [
116
+ "Provenance"
117
+ ],
118
+ "ResourceId": [],
119
+ "ResourcePointer": [
120
+ "ResourceId",
121
+ "ResourceTypeHandle",
122
+ "ProvenanceFacet"
123
+ ],
124
+ "BaseResource": [
125
+ "ResourcePointer"
126
+ ],
127
+ "Resource": [
128
+ "BaseResource"
129
+ ],
130
+ "StrategyStateInputKind": [],
131
+ "InputResource": [
132
+ "BaseResource"
133
+ ],
134
+ "ExternalInputPotential": [
135
+ "ResourceId",
136
+ "ResourceTypeHandle"
137
+ ],
138
+ "InternalInputPotential": [
139
+ "ResourceId",
140
+ "ResourceTypeHandle",
141
+ "DeferredStrategyProvenance"
142
+ ],
143
+ "InputPotential": [
144
+ "ExternalInputPotential",
145
+ "InternalInputPotential"
146
+ ],
147
+ "StrategyStateInputEntry": [
148
+ "InputPotential",
149
+ "InputResource"
150
+ ],
151
+ "StrategyStateInputEntryByRoleName": [
152
+ "RoleName",
153
+ "StrategyStateInputEntry"
154
+ ],
155
+ "StepArray": [
156
+ "Step"
157
+ ],
158
+ "StepArrayArray": [
159
+ "StepArray"
160
+ ],
161
+ "StepsFacet": [
162
+ "StepArray"
163
+ ],
164
+ "ToolStepPathSlot": [],
165
+ "ToolStepPathSlotFacet": [
166
+ "ToolStepPathSlot"
167
+ ],
168
+ "BaseToolStepPathSpec": [
169
+ "Natural",
170
+ "ToolStepPathSlot"
171
+ ],
172
+ "UnthreadedToolStepPathSpec": [
173
+ "BaseToolStepPathSpec"
174
+ ],
175
+ "ThreadedToolStepPathSpec": [
176
+ "BaseToolStepPathSpec",
177
+ "Natural"
178
+ ],
179
+ "ToolStepPath": [
180
+ "UnthreadedToolStepPath",
181
+ "ThreadedToolStepPath"
182
+ ],
183
+ "UnthreadedToolStepPath": [],
184
+ "ThreadedToolStepPath": [],
185
+ "UnthreadedStrategyState": [
186
+ "UnthreadedToolStepPath",
187
+ "StrategyStateInputEntryByRoleName"
188
+ ],
189
+ "ThreadedStrategyState": [
190
+ "ThreadedToolStepPath",
191
+ "StrategyStateInputEntryByRoleName"
192
+ ],
193
+ "UnthreadedStrategyStateFacet": [
194
+ "UnthreadedStrategyState"
195
+ ],
196
+ "ThreadedStrategyStateFacet": [
197
+ "ThreadedStrategyState"
198
+ ],
199
+ "StrategyKind": [],
200
+ "StrategyHandle": [],
201
+ "BaseStrategy": [
202
+ "StrategyHandle",
203
+ "StrategyKind"
204
+ ],
205
+ "UnthreadedStrategy": [
206
+ "BaseStrategy",
207
+ "StepsFacet",
208
+ "UnthreadedStrategyStateFacet"
209
+ ],
210
+ "ThreadedStrategy": [
211
+ "BaseStrategy",
212
+ "StepsByThreadIndexFacet",
213
+ "ThreadedStrategyStateFacet"
214
+ ],
215
+ "Strategy": [
216
+ "UnthreadedStrategy",
217
+ "ThreadedStrategy"
218
+ ],
219
+ "StepsByThreadIndexFacet": [
220
+ "StepArrayArray"
221
+ ],
222
+ "TracePointCounterSnapshot": [
223
+ "Natural"
224
+ ],
225
+ "TracePointDelta": [
226
+ "Natural",
227
+ "StepArray",
228
+ "ThreadedStrategyState"
229
+ ],
230
+ "TracePointKind": [],
231
+ "BaseTracePoint": [
232
+ "TracePointKind",
233
+ "StrategyHandle",
234
+ "Natural"
235
+ ],
236
+ "ThreadedStrategyFacet": [
237
+ "ThreadedStrategy"
238
+ ],
239
+ "GraphStartTracePoint": [
240
+ "BaseTracePoint",
241
+ "ThreadedStrategyFacet"
242
+ ],
243
+ "TickTracePoint": [
244
+ "BaseTracePoint",
245
+ "TracePointCounterSnapshot",
246
+ "ThreadedToolStepPath",
247
+ "TracePointDelta"
248
+ ],
249
+ "InterruptTracePoint": [
250
+ "BaseTracePoint",
251
+ "TracePointCounterSnapshot",
252
+ "ThreadedToolStepPath",
253
+ "TracePointDelta"
254
+ ],
255
+ "GraphEndTracePoint": [
256
+ "BaseTracePoint"
257
+ ],
258
+ "TracePoint": [
259
+ "GraphStartTracePoint",
260
+ "TickTracePoint",
261
+ "InterruptTracePoint",
262
+ "GraphEndTracePoint"
263
+ ],
264
+ "StrategyTraceHandle": [],
265
+ "StrategyTrace": [
266
+ "StrategyTraceHandle",
267
+ "StrategyHandle",
268
+ "TracePoint"
269
+ ],
270
+ "GoalHandle": [],
271
+ "Goal": [
272
+ "GoalHandle",
273
+ "ToolHandle"
274
+ ],
275
+ "Error": [
276
+ "DocumentationSpec"
277
+ ],
278
+ "Natural": [],
279
+ "Boolean": [],
280
+ "TimestampedResource": [
281
+ "Resource"
282
+ ]
283
+ }
@@ -0,0 +1,17 @@
1
+ [
2
+ "Embedding",
3
+ "ResourceType",
4
+ "ToolKind",
5
+ "Tool",
6
+ "ProvenanceKind",
7
+ "StrategyStateInputKind",
8
+ "ToolStepPathSlotFacet",
9
+ "UnthreadedToolStepPathSpec",
10
+ "ThreadedToolStepPathSpec",
11
+ "Strategy",
12
+ "StrategyTrace",
13
+ "Goal",
14
+ "Error",
15
+ "Boolean",
16
+ "TimestampedResource"
17
+ ]
@@ -0,0 +1,375 @@
1
+ {
2
+ "ResourceType": {
3
+ "handle": "TYPE-RESOURCE-TYPE",
4
+ "name": "ResourceType",
5
+ "description": "",
6
+ "valueSchema": {
7
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
8
+ "type": "object",
9
+ "required": [
10
+ "handle"
11
+ ],
12
+ "properties": {
13
+ "handle": {
14
+ "$ref": "#/$defs/ResourceTypeHandle"
15
+ },
16
+ "valueSchema": {
17
+ "$ref": "#/$defs/JsonSchemaObject"
18
+ },
19
+ "parserToolHandle": {
20
+ "$ref": "#/$defs/ToolHandle"
21
+ },
22
+ "embeddingModelTools": {
23
+ "type": "array",
24
+ "items": {
25
+ "$ref": "#/$defs/ToolHandle"
26
+ },
27
+ "minItems": 1,
28
+ "$comment": "A ResourceType may specify a set of embeddingModelTools that convert the raw data (or one of its alternative representations) into vector embeddings. The build process enforces that the entries are members of a set of predefined embeddingModelTools."
29
+ }
30
+ },
31
+ "allOf": [
32
+ {
33
+ "$ref": "#/$defs/DocumentationSpec"
34
+ },
35
+ {
36
+ "$comment": "A ResourceType must specify either a valueSchema or a parserToolHandle, or both. If only a valueSchema is specified, the author assumes no burden of implementing a parser for the ResourceType. They can rely on the valueSchema for validation. If only a parserToolHandle is specified, the author assumes the burden of implementing a parser that can validate instances of the ResourceType. If both are specified, the author assumes the burden of implementing an augmented parser that also serves as a generator between the raw data and an instance of the valueSchema.",
37
+ "anyOf": [
38
+ {
39
+ "required": [
40
+ "valueSchema"
41
+ ]
42
+ },
43
+ {
44
+ "required": [
45
+ "parserToolHandle"
46
+ ]
47
+ }
48
+ ]
49
+ }
50
+ ],
51
+ "unevaluatedProperties": false
52
+ }
53
+ },
54
+ "Tool": {
55
+ "handle": "TYPE-TOOL",
56
+ "name": "Tool",
57
+ "description": "",
58
+ "valueSchema": {
59
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
60
+ "type": "object",
61
+ "required": [
62
+ "handle",
63
+ "isTemplate"
64
+ ],
65
+ "properties": {
66
+ "handle": {
67
+ "$ref": "#/$defs/ToolHandle"
68
+ },
69
+ "isTemplate": {
70
+ "type": "boolean"
71
+ },
72
+ "templateToolHandle": {
73
+ "$ref": "#/$defs/ToolHandle"
74
+ },
75
+ "instantiationRoleSpec": {
76
+ "$ref": "#/$defs/RoleSpec"
77
+ }
78
+ },
79
+ "$comment": "Template Tools own dispatch contract: Core scans all instantiation Tools grouped by templateToolHandle, derives a specializationKey from each tool's generic role assignment (canonical order of genericRoleName -> resourceTypeHandle pairs), and asserts injectivity (no two instantiation Tools share the same key for the same template). At invocation time Core injects the specializationKey -> instantiationToolHandle lookup as the second input, then resolves the first input against it to return one instantiation Tool. Cross-resource compatibility between an instantiation Tool's roleSpec and the template's instantiationRoleSpec is deferred to the validation package.",
80
+ "semanticValidation": "Deferred: verify injectivity of specializationKey map per template; verify instantiation Tool roleSpec matches template instantiationRoleSpec; verify every supplied generic assignment key-set exactly equals roleSpec.inputRoleValueByName.GenericAssignmentByRoleName.mapKeys; verify every supplied generic assignment matches a registered specializationKey.",
81
+ "allOf": [
82
+ {
83
+ "$ref": "#/$defs/DocumentationSpec"
84
+ },
85
+ {
86
+ "if": {
87
+ "required": [
88
+ "isTemplate"
89
+ ],
90
+ "properties": {
91
+ "isTemplate": {
92
+ "const": true
93
+ }
94
+ }
95
+ },
96
+ "then": {
97
+ "required": [
98
+ "instantiationRoleSpec"
99
+ ]
100
+ },
101
+ "else": {
102
+ "not": {
103
+ "required": [
104
+ "instantiationRoleSpec"
105
+ ]
106
+ }
107
+ }
108
+ },
109
+ {
110
+ "$comment": "Template Tools must declare named roles: two map inputs (GenericAssignmentByRoleName and InstantiationToolHandleBySpecializationKey) and one scalar TYPE-Tool output (InstantiationTool). Runtime semantic validation enforces that invocation input keys for GenericAssignmentByRoleName exactly match this role's declared mapKeys.",
111
+ "if": {
112
+ "required": [
113
+ "isTemplate"
114
+ ],
115
+ "properties": {
116
+ "isTemplate": {
117
+ "const": true
118
+ }
119
+ }
120
+ },
121
+ "then": {
122
+ "properties": {
123
+ "roleSpec": {
124
+ "properties": {
125
+ "inputRoleValueByName": {
126
+ "required": [
127
+ "GenericAssignmentByRoleName",
128
+ "InstantiationToolHandleBySpecializationKey"
129
+ ],
130
+ "properties": {
131
+ "GenericAssignmentByRoleName": {
132
+ "required": [
133
+ "containerKind",
134
+ "typeRef",
135
+ "mapKeys"
136
+ ],
137
+ "properties": {
138
+ "containerKind": {
139
+ "const": "map"
140
+ },
141
+ "typeRef": {
142
+ "required": [
143
+ "resourceTypeHandle"
144
+ ],
145
+ "properties": {
146
+ "resourceTypeHandle": {
147
+ "const": "TYPE-ResourceType"
148
+ }
149
+ }
150
+ },
151
+ "mapKeys": {
152
+ "type": "array",
153
+ "items": {
154
+ "$ref": "#/$defs/RoleName"
155
+ },
156
+ "minItems": 1,
157
+ "uniqueItems": true
158
+ }
159
+ }
160
+ },
161
+ "InstantiationToolHandleBySpecializationKey": {
162
+ "required": [
163
+ "containerKind",
164
+ "typeRef"
165
+ ],
166
+ "properties": {
167
+ "containerKind": {
168
+ "const": "map"
169
+ },
170
+ "typeRef": {
171
+ "required": [
172
+ "resourceTypeHandle"
173
+ ],
174
+ "properties": {
175
+ "resourceTypeHandle": {
176
+ "const": "TYPE-Tool"
177
+ }
178
+ }
179
+ }
180
+ },
181
+ "not": {
182
+ "required": [
183
+ "mapKeys"
184
+ ]
185
+ }
186
+ }
187
+ },
188
+ "additionalProperties": false
189
+ },
190
+ "outputRoleValueByName": {
191
+ "required": [
192
+ "InstantiationTool"
193
+ ],
194
+ "properties": {
195
+ "InstantiationTool": {
196
+ "required": [
197
+ "containerKind",
198
+ "typeRef"
199
+ ],
200
+ "properties": {
201
+ "containerKind": {
202
+ "const": "scalar"
203
+ },
204
+ "typeRef": {
205
+ "required": [
206
+ "resourceTypeHandle"
207
+ ],
208
+ "properties": {
209
+ "resourceTypeHandle": {
210
+ "const": "TYPE-Tool"
211
+ }
212
+ }
213
+ }
214
+ }
215
+ }
216
+ },
217
+ "additionalProperties": false
218
+ }
219
+ }
220
+ }
221
+ }
222
+ }
223
+ },
224
+ {
225
+ "$ref": "#/$defs/RoleSpecFacet"
226
+ }
227
+ ],
228
+ "unevaluatedProperties": false
229
+ }
230
+ },
231
+ "Strategy": {
232
+ "handle": "TYPE-STRATEGY",
233
+ "name": "Strategy",
234
+ "description": "",
235
+ "valueSchema": {
236
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
237
+ "oneOf": [
238
+ {
239
+ "$ref": "#/$defs/UnthreadedStrategy"
240
+ },
241
+ {
242
+ "$ref": "#/$defs/ThreadedStrategy"
243
+ }
244
+ ]
245
+ }
246
+ },
247
+ "StrategyTrace": {
248
+ "handle": "TYPE-STRATEGY_TRACE",
249
+ "name": "StrategyTrace",
250
+ "description": "",
251
+ "valueSchema": {
252
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
253
+ "type": "object",
254
+ "required": [
255
+ "handle",
256
+ "strategyHandle",
257
+ "tracePoints"
258
+ ],
259
+ "properties": {
260
+ "handle": {
261
+ "$ref": "#/$defs/StrategyTraceHandle"
262
+ },
263
+ "strategyHandle": {
264
+ "$comment": "Could be derived from the first event but useful for indexing.",
265
+ "$ref": "#/$defs/StrategyHandle"
266
+ },
267
+ "tracePoints": {
268
+ "type": "array",
269
+ "items": {
270
+ "$ref": "#/$defs/TracePoint"
271
+ }
272
+ }
273
+ },
274
+ "unevaluatedProperties": false
275
+ }
276
+ },
277
+ "Goal": {
278
+ "handle": "TYPE-GOAL",
279
+ "name": "Goal",
280
+ "description": "",
281
+ "valueSchema": {
282
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
283
+ "type": "object",
284
+ "required": [
285
+ "handle",
286
+ "target"
287
+ ],
288
+ "properties": {
289
+ "handle": {
290
+ "$ref": "#/$defs/GoalHandle"
291
+ },
292
+ "target": {
293
+ "type": "integer",
294
+ "minimum": 0
295
+ },
296
+ "disallowedTools": {
297
+ "type": "array",
298
+ "items": {
299
+ "$ref": "#/$defs/ToolHandle"
300
+ }
301
+ },
302
+ "disallowedSequences": {
303
+ "type": "array",
304
+ "items": {
305
+ "type": "array",
306
+ "items": {
307
+ "$ref": "#/$defs/ToolHandle"
308
+ }
309
+ }
310
+ },
311
+ "minSteps": {
312
+ "type": "integer",
313
+ "minimum": 1
314
+ },
315
+ "maxSteps": {
316
+ "type": "integer",
317
+ "minimum": 1
318
+ }
319
+ },
320
+ "unevaluatedProperties": false
321
+ }
322
+ },
323
+ "Error": {
324
+ "handle": "TYPE-ERROR",
325
+ "name": "Error",
326
+ "description": "",
327
+ "valueSchema": {
328
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
329
+ "type": "object",
330
+ "allOf": [
331
+ {
332
+ "$ref": "#/$defs/DocumentationSpec"
333
+ },
334
+ {
335
+ "properties": {
336
+ "details": {
337
+ "type": "object"
338
+ }
339
+ }
340
+ }
341
+ ],
342
+ "unevaluatedProperties": false
343
+ }
344
+ },
345
+ "Boolean": {
346
+ "handle": "TYPE-BOOLEAN",
347
+ "name": "Boolean",
348
+ "description": "",
349
+ "valueSchema": {
350
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
351
+ "type": "boolean"
352
+ }
353
+ },
354
+ "Natural": {
355
+ "handle": "TYPE-NATURAL",
356
+ "name": "Natural",
357
+ "description": "",
358
+ "valueSchema": {
359
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
360
+ "type": "integer",
361
+ "minimum": 0
362
+ }
363
+ },
364
+ "Resource": {
365
+ "handle": "TYPE-RESOURCE",
366
+ "name": "Resource",
367
+ "description": "",
368
+ "valueSchema": {
369
+ "$schema": "https://json-schema.org/draft/2020-12/schema",
370
+ "type": "object",
371
+ "$ref": "#/$defs/BaseResource",
372
+ "unevaluatedProperties": false
373
+ }
374
+ }
375
+ }
@@ -0,0 +1,2 @@
1
+ import resourceTypes from './resourceTypes.json' with { type: 'json' };
2
+ export default resourceTypes;