@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.
- package/dist/src/utils/constantsAndMappings.d.ts +20 -0
- package/dist/src/utils/constantsAndMappings.js +155 -0
- package/dist/src/utils/coreProjection.d.ts +16 -0
- package/dist/src/utils/coreProjection.js +29 -0
- package/dist/src/utils/resourceTypes.d.ts +12 -0
- package/dist/src/utils/resourceTypes.js +17 -0
- package/dist/src/utils/resources.d.ts +5 -0
- package/dist/src/utils/resources.js +17 -0
- package/dist/src/utils/schemaDependencies.d.ts +13 -0
- package/dist/src/utils/schemaDependencies.js +94 -0
- package/dist/src/utils/schemaObjectNormalization.d.ts +1 -0
- package/dist/src/utils/schemaObjectNormalization.js +66 -0
- package/dist/src/utils/schemaRefNormalization.d.ts +2 -0
- package/dist/src/utils/schemaRefNormalization.js +76 -0
- package/dist/src/utils/schemaShims.d.ts +2 -0
- package/dist/src/utils/schemaShims.js +13 -0
- package/dist/src/utils/standaloneSchemas.d.ts +16 -0
- package/dist/src/utils/standaloneSchemas.js +101 -0
- package/dist/src/utils/standaloneTypes.d.ts +8 -0
- package/dist/src/utils/standaloneTypes.js +22 -0
- package/dist/src/utils/standaloneZodSchemas.d.ts +8 -0
- package/dist/src/utils/standaloneZodSchemas.js +53 -0
- package/dist/src/utils/typeGeneration.d.ts +1 -0
- package/dist/src/utils/typeGeneration.js +25 -0
- package/dist/src/utils/typeGenerationPostProcess.d.ts +2 -0
- package/dist/src/utils/typeGenerationPostProcess.js +166 -0
- package/dist/src/utils/typeGenerationPreflight.d.ts +2 -0
- package/dist/src/utils/typeGenerationPreflight.js +93 -0
- package/dist/src/utils/zodCodegen.d.ts +10 -0
- package/dist/src/utils/zodCodegen.js +521 -0
- package/generated-src/derived/constants.ts +130 -0
- package/generated-src/derived/mappings.ts +12 -0
- package/generated-src/metadata/Core.json +1919 -0
- package/generated-src/metadata/dependencyMap.json +283 -0
- package/generated-src/metadata/terminals.json +17 -0
- package/generated-src/resourceTypes/resourceTypes.json +375 -0
- package/generated-src/resourceTypes/resourceTypes.ts +2 -0
- package/generated-src/resources/resourceTypes.json +456 -0
- package/generated-src/resources/resourceTypes.ts +2 -0
- package/generated-src/schemas/schemas.json +1670 -0
- package/generated-src/schemas/schemas.ts +2 -0
- package/generated-src/schemas/standalone/Boolean.json +5 -0
- package/generated-src/schemas/standalone/Boolean.ts +2 -0
- package/generated-src/schemas/standalone/Error.json +78 -0
- package/generated-src/schemas/standalone/Error.ts +2 -0
- package/generated-src/schemas/standalone/Goal.json +53 -0
- package/generated-src/schemas/standalone/Goal.ts +2 -0
- package/generated-src/schemas/standalone/Natural.json +6 -0
- package/generated-src/schemas/standalone/Natural.ts +2 -0
- package/generated-src/schemas/standalone/Resource.json +170 -0
- package/generated-src/schemas/standalone/Resource.ts +2 -0
- package/generated-src/schemas/standalone/ResourceType.json +131 -0
- package/generated-src/schemas/standalone/ResourceType.ts +2 -0
- package/generated-src/schemas/standalone/Strategy.json +641 -0
- package/generated-src/schemas/standalone/Strategy.ts +2 -0
- package/generated-src/schemas/standalone/StrategyTrace.json +820 -0
- package/generated-src/schemas/standalone/StrategyTrace.ts +2 -0
- package/generated-src/schemas/standalone/Tool.json +508 -0
- package/generated-src/schemas/standalone/Tool.ts +2 -0
- package/generated-src/schemas/zod/Boolean.ts +6 -0
- package/generated-src/schemas/zod/Error.ts +11 -0
- package/generated-src/schemas/zod/Goal.ts +8 -0
- package/generated-src/schemas/zod/Natural.ts +6 -0
- package/generated-src/schemas/zod/Resource.ts +21 -0
- package/generated-src/schemas/zod/ResourceType.ts +14 -0
- package/generated-src/schemas/zod/Strategy.ts +68 -0
- package/generated-src/schemas/zod/StrategyTrace.ts +75 -0
- package/generated-src/schemas/zod/Tool.ts +29 -0
- package/generated-src/schemas/zod/index.ts +10 -0
- package/generated-src/types/standalone/BooleanResource.d.ts +3 -0
- package/generated-src/types/standalone/BooleanResource.js +1 -0
- package/generated-src/types/standalone/ErrorResource.d.ts +3 -0
- package/generated-src/types/standalone/ErrorResource.js +1 -0
- package/generated-src/types/standalone/GoalResource.d.ts +3 -0
- package/generated-src/types/standalone/GoalResource.js +1 -0
- package/generated-src/types/standalone/NaturalResource.d.ts +3 -0
- package/generated-src/types/standalone/NaturalResource.js +1 -0
- package/generated-src/types/standalone/ResourceResource.d.ts +3 -0
- package/generated-src/types/standalone/ResourceResource.js +1 -0
- package/generated-src/types/standalone/ResourceTypeResource.d.ts +3 -0
- package/generated-src/types/standalone/ResourceTypeResource.js +1 -0
- package/generated-src/types/standalone/StrategyResource.d.ts +3 -0
- package/generated-src/types/standalone/StrategyResource.js +1 -0
- package/generated-src/types/standalone/StrategyTraceResource.d.ts +3 -0
- package/generated-src/types/standalone/StrategyTraceResource.js +1 -0
- package/generated-src/types/standalone/ToolResource.d.ts +3 -0
- package/generated-src/types/standalone/ToolResource.js +1 -0
- package/generated-src/types/types.d.ts +701 -0
- package/generated-src/types/types.js +1 -0
- package/package.json +52 -0
- package/src/genesis/resourceTypeShells.json +47 -0
- package/src/genesis/resources/booleans.json +24 -0
- package/src/genesis/resources/implementations/foo.ts +182 -0
- package/src/genesis/resources/naturals.json +112 -0
- package/src/genesis/resources/tools.json +840 -0
- package/src/genesis/schemas.json +1670 -0
- package/src/index.ts +27 -0
- package/src/utils/constantsAndMappings.ts +195 -0
- package/src/utils/coreProjection.ts +53 -0
- package/src/utils/resourceTypes.ts +39 -0
- package/src/utils/resources.ts +26 -0
- package/src/utils/schemaDependencies.ts +115 -0
- package/src/utils/schemaObjectNormalization.ts +71 -0
- package/src/utils/schemaRefNormalization.ts +83 -0
- package/src/utils/schemaShims.ts +17 -0
- package/src/utils/standaloneSchemas.ts +114 -0
- package/src/utils/standaloneTypes.ts +28 -0
- package/src/utils/standaloneZodSchemas.ts +72 -0
- package/src/utils/typeGeneration.ts +31 -0
- package/src/utils/typeGenerationPostProcess.ts +246 -0
- package/src/utils/typeGenerationPreflight.ts +119 -0
- package/src/utils/zodCodegen.ts +549 -0
|
@@ -0,0 +1,701 @@
|
|
|
1
|
+
// Auto-generated from JSON schemas. Do not edit.
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
5
|
+
* via the `definition` "Name".
|
|
6
|
+
*/
|
|
7
|
+
export type Name =
|
|
8
|
+
string;
|
|
9
|
+
/**
|
|
10
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
11
|
+
* via the `definition` "Description".
|
|
12
|
+
*/
|
|
13
|
+
export type Description =
|
|
14
|
+
string;
|
|
15
|
+
/**
|
|
16
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
17
|
+
* via the `definition` "DocumentationSpec".
|
|
18
|
+
*/
|
|
19
|
+
export type DocumentationSpec =
|
|
20
|
+
{
|
|
21
|
+
} & NameFacet & {
|
|
22
|
+
symbol?: string;
|
|
23
|
+
} & DescriptionFacet;
|
|
24
|
+
/**
|
|
25
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
26
|
+
* via the `definition` "TypeRef".
|
|
27
|
+
*/
|
|
28
|
+
export type TypeRef =
|
|
29
|
+
| {
|
|
30
|
+
resourceTypeHandle: ResourceTypeHandle;
|
|
31
|
+
}
|
|
32
|
+
| {
|
|
33
|
+
roleSchema: {
|
|
34
|
+
$ref: string;
|
|
35
|
+
};
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
39
|
+
* via the `definition` "ResourceTypeHandle".
|
|
40
|
+
*/
|
|
41
|
+
export type ResourceTypeHandle =
|
|
42
|
+
`TYPE-${string}`;
|
|
43
|
+
/**
|
|
44
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
45
|
+
* via the `definition` "ToolHandle".
|
|
46
|
+
*/
|
|
47
|
+
export type ToolHandle =
|
|
48
|
+
`TOOL-${string}`;
|
|
49
|
+
/**
|
|
50
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
51
|
+
* via the `definition` "ResourcePointer".
|
|
52
|
+
*/
|
|
53
|
+
export type ResourcePointer =
|
|
54
|
+
{
|
|
55
|
+
id: ResourceId;
|
|
56
|
+
resourceTypeHandle: ResourceTypeHandle;
|
|
57
|
+
version: 1;
|
|
58
|
+
} & ProvenanceFacet;
|
|
59
|
+
/**
|
|
60
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
61
|
+
* via the `definition` "ResourceId".
|
|
62
|
+
*/
|
|
63
|
+
export type ResourceId =
|
|
64
|
+
`RESOURCE-${string}`;
|
|
65
|
+
/**
|
|
66
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
67
|
+
* via the `definition` "Provenance".
|
|
68
|
+
*/
|
|
69
|
+
export type Provenance =
|
|
70
|
+
GenesisProvenance | StrategyProvenance;
|
|
71
|
+
/**
|
|
72
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
73
|
+
* via the `definition` "StrategyTraceHandle".
|
|
74
|
+
*/
|
|
75
|
+
export type StrategyTraceHandle =
|
|
76
|
+
`STRATEGY_TRACE-${string}`;
|
|
77
|
+
/**
|
|
78
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
79
|
+
* via the `definition` "ToolStepPath".
|
|
80
|
+
*/
|
|
81
|
+
export type ToolStepPath =
|
|
82
|
+
UnthreadedToolStepPath | ThreadedToolStepPath;
|
|
83
|
+
/**
|
|
84
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
85
|
+
* via the `definition` "UnthreadedToolStepPath".
|
|
86
|
+
*/
|
|
87
|
+
export type UnthreadedToolStepPath =
|
|
88
|
+
string;
|
|
89
|
+
/**
|
|
90
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
91
|
+
* via the `definition` "ThreadedToolStepPath".
|
|
92
|
+
*/
|
|
93
|
+
export type ThreadedToolStepPath =
|
|
94
|
+
string;
|
|
95
|
+
/**
|
|
96
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
97
|
+
* via the `definition` "ResourceType".
|
|
98
|
+
*/
|
|
99
|
+
export type ResourceType =
|
|
100
|
+
{
|
|
101
|
+
handle: ResourceTypeHandle;
|
|
102
|
+
valueSchema?: JsonSchemaObject;
|
|
103
|
+
parserToolHandle?: ToolHandle;
|
|
104
|
+
/**
|
|
105
|
+
* @minItems 1
|
|
106
|
+
*/
|
|
107
|
+
embeddingModelTools?: [ToolHandle, ...ToolHandle[]];
|
|
108
|
+
} & DocumentationSpec & {
|
|
109
|
+
};
|
|
110
|
+
/**
|
|
111
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
112
|
+
* via the `definition` "RoleName".
|
|
113
|
+
*/
|
|
114
|
+
export type RoleName =
|
|
115
|
+
string;
|
|
116
|
+
/**
|
|
117
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
118
|
+
* via the `definition` "ContainerKind".
|
|
119
|
+
*/
|
|
120
|
+
export type ContainerKind =
|
|
121
|
+
"scalar" | "array" | "map";
|
|
122
|
+
/**
|
|
123
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
124
|
+
* via the `definition` "RoleValue".
|
|
125
|
+
*/
|
|
126
|
+
export type RoleValue =
|
|
127
|
+
{
|
|
128
|
+
typeRef: TypeRef;
|
|
129
|
+
refinementSchema?: JsonSchemaObject1;
|
|
130
|
+
containerKind: ContainerKind;
|
|
131
|
+
containerSchema?: JsonSchemaObject;
|
|
132
|
+
mapKeys?: RoleNameArray;
|
|
133
|
+
} & {
|
|
134
|
+
};
|
|
135
|
+
/**
|
|
136
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
137
|
+
* via the `definition` "RoleNameArray".
|
|
138
|
+
*/
|
|
139
|
+
export type RoleNameArray =
|
|
140
|
+
string[];
|
|
141
|
+
/**
|
|
142
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
143
|
+
* via the `definition` "ToolKind".
|
|
144
|
+
*/
|
|
145
|
+
export type ToolKind =
|
|
146
|
+
"runtime" | "buildtime";
|
|
147
|
+
/**
|
|
148
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
149
|
+
* via the `definition` "Tool".
|
|
150
|
+
*/
|
|
151
|
+
export type Tool =
|
|
152
|
+
{
|
|
153
|
+
handle: ToolHandle;
|
|
154
|
+
isTemplate: boolean;
|
|
155
|
+
templateToolHandle?: ToolHandle;
|
|
156
|
+
instantiationRoleSpec?: RoleSpec;
|
|
157
|
+
} & DocumentationSpec & {
|
|
158
|
+
} & RoleSpecFacet;
|
|
159
|
+
/**
|
|
160
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
161
|
+
* via the `definition` "StepKind".
|
|
162
|
+
*/
|
|
163
|
+
export type StepKind =
|
|
164
|
+
"tool" | "branch" | "while" | "for";
|
|
165
|
+
/**
|
|
166
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
167
|
+
* via the `definition` "ToolStep".
|
|
168
|
+
*/
|
|
169
|
+
export type ToolStep =
|
|
170
|
+
{
|
|
171
|
+
stepKind: "tool";
|
|
172
|
+
toolHandle: ToolHandle;
|
|
173
|
+
} & StepKindFacet &
|
|
174
|
+
RoleBindingSpecFacet1;
|
|
175
|
+
/**
|
|
176
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
177
|
+
* via the `definition` "BranchStep".
|
|
178
|
+
*/
|
|
179
|
+
export type BranchStep =
|
|
180
|
+
{
|
|
181
|
+
stepKind: "branch";
|
|
182
|
+
/**
|
|
183
|
+
* @minItems 1
|
|
184
|
+
*/
|
|
185
|
+
cases: [Case, ...Case[]];
|
|
186
|
+
} & StepKindFacet;
|
|
187
|
+
/**
|
|
188
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
189
|
+
* via the `definition` "WhileStep".
|
|
190
|
+
*/
|
|
191
|
+
export type WhileStep =
|
|
192
|
+
{
|
|
193
|
+
stepKind: "while";
|
|
194
|
+
case: Case;
|
|
195
|
+
} & StepKindFacet;
|
|
196
|
+
/**
|
|
197
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
198
|
+
* via the `definition` "ForStep".
|
|
199
|
+
*/
|
|
200
|
+
export type ForStep =
|
|
201
|
+
{
|
|
202
|
+
stepKind: "for";
|
|
203
|
+
case: Case;
|
|
204
|
+
} & StepKindFacet;
|
|
205
|
+
/**
|
|
206
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
207
|
+
* via the `definition` "Step".
|
|
208
|
+
*/
|
|
209
|
+
export type Step =
|
|
210
|
+
ToolStep | BranchStep | WhileStep | ForStep;
|
|
211
|
+
/**
|
|
212
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
213
|
+
* via the `definition` "ProvenanceKind".
|
|
214
|
+
*/
|
|
215
|
+
export type ProvenanceKind =
|
|
216
|
+
"genesis" | "strategy";
|
|
217
|
+
/**
|
|
218
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
219
|
+
* via the `definition` "BaseResource".
|
|
220
|
+
*/
|
|
221
|
+
export type BaseResource =
|
|
222
|
+
{
|
|
223
|
+
value: unknown;
|
|
224
|
+
} & ResourcePointer;
|
|
225
|
+
/**
|
|
226
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
227
|
+
* via the `definition` "Resource".
|
|
228
|
+
*/
|
|
229
|
+
export type Resource =
|
|
230
|
+
{
|
|
231
|
+
value: unknown;
|
|
232
|
+
} & ResourcePointer;
|
|
233
|
+
/**
|
|
234
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
235
|
+
* via the `definition` "StrategyStateInputKind".
|
|
236
|
+
*/
|
|
237
|
+
export type StrategyStateInputKind =
|
|
238
|
+
"inputResource" | "externalInputPotential" | "internalInputPotential";
|
|
239
|
+
/**
|
|
240
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
241
|
+
* via the `definition` "InputResource".
|
|
242
|
+
*/
|
|
243
|
+
export type InputResource =
|
|
244
|
+
{
|
|
245
|
+
strategyStateInputKind: "inputResource";
|
|
246
|
+
} & BaseResource;
|
|
247
|
+
/**
|
|
248
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
249
|
+
* via the `definition` "InputPotential".
|
|
250
|
+
*/
|
|
251
|
+
export type InputPotential =
|
|
252
|
+
ExternalInputPotential | InternalInputPotential;
|
|
253
|
+
/**
|
|
254
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
255
|
+
* via the `definition` "StrategyStateInputEntry".
|
|
256
|
+
*/
|
|
257
|
+
export type StrategyStateInputEntry =
|
|
258
|
+
InputPotential | InputResource;
|
|
259
|
+
/**
|
|
260
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
261
|
+
* via the `definition` "StepArray".
|
|
262
|
+
*/
|
|
263
|
+
export type StepArray =
|
|
264
|
+
Step[];
|
|
265
|
+
/**
|
|
266
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
267
|
+
* via the `definition` "StepArrayArray".
|
|
268
|
+
*/
|
|
269
|
+
export type StepArrayArray =
|
|
270
|
+
StepArray[];
|
|
271
|
+
/**
|
|
272
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
273
|
+
* via the `definition` "ToolStepPathSlot".
|
|
274
|
+
*/
|
|
275
|
+
export type ToolStepPathSlot =
|
|
276
|
+
"self" | "case.when" | "case.what" | "cases.when" | "cases.what";
|
|
277
|
+
/**
|
|
278
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
279
|
+
* via the `definition` "BaseToolStepPathSpec".
|
|
280
|
+
*/
|
|
281
|
+
export type BaseToolStepPathSpec =
|
|
282
|
+
{
|
|
283
|
+
stepIndex: Natural;
|
|
284
|
+
toolStepPathSlot: ToolStepPathSlot;
|
|
285
|
+
caseIndex?: Natural;
|
|
286
|
+
} & {
|
|
287
|
+
};
|
|
288
|
+
/**
|
|
289
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
290
|
+
* via the `definition` "Natural".
|
|
291
|
+
*/
|
|
292
|
+
export type Natural =
|
|
293
|
+
number;
|
|
294
|
+
/**
|
|
295
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
296
|
+
* via the `definition` "UnthreadedToolStepPathSpec".
|
|
297
|
+
*/
|
|
298
|
+
export type UnthreadedToolStepPathSpec =
|
|
299
|
+
{
|
|
300
|
+
} & BaseToolStepPathSpec;
|
|
301
|
+
/**
|
|
302
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
303
|
+
* via the `definition` "ThreadedToolStepPathSpec".
|
|
304
|
+
*/
|
|
305
|
+
export type ThreadedToolStepPathSpec =
|
|
306
|
+
{
|
|
307
|
+
} & BaseToolStepPathSpec & {
|
|
308
|
+
threadIndex: Natural;
|
|
309
|
+
};
|
|
310
|
+
/**
|
|
311
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
312
|
+
* via the `definition` "StrategyKind".
|
|
313
|
+
*/
|
|
314
|
+
export type StrategyKind =
|
|
315
|
+
"unthreaded" | "threaded";
|
|
316
|
+
/**
|
|
317
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
318
|
+
* via the `definition` "StrategyHandle".
|
|
319
|
+
*/
|
|
320
|
+
export type StrategyHandle =
|
|
321
|
+
`STRATEGY-${string}`;
|
|
322
|
+
/**
|
|
323
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
324
|
+
* via the `definition` "UnthreadedStrategy".
|
|
325
|
+
*/
|
|
326
|
+
export type UnthreadedStrategy =
|
|
327
|
+
{
|
|
328
|
+
} & BaseStrategy & {
|
|
329
|
+
strategyKind?: "unthreaded";
|
|
330
|
+
} & StepsFacet &
|
|
331
|
+
UnthreadedStrategyStateFacet;
|
|
332
|
+
/**
|
|
333
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
334
|
+
* via the `definition` "ThreadedStrategy".
|
|
335
|
+
*/
|
|
336
|
+
export type ThreadedStrategy =
|
|
337
|
+
{
|
|
338
|
+
} & BaseStrategy & {
|
|
339
|
+
strategyKind?: "threaded";
|
|
340
|
+
} & StepsByThreadIndexFacet &
|
|
341
|
+
ThreadedStrategyStateFacet;
|
|
342
|
+
/**
|
|
343
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
344
|
+
* via the `definition` "Strategy".
|
|
345
|
+
*/
|
|
346
|
+
export type Strategy =
|
|
347
|
+
UnthreadedStrategy | ThreadedStrategy;
|
|
348
|
+
/**
|
|
349
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
350
|
+
* via the `definition` "TracePointKind".
|
|
351
|
+
*/
|
|
352
|
+
export type TracePointKind =
|
|
353
|
+
"graph_start" | "tick" | "interrupt" | "graph_end";
|
|
354
|
+
/**
|
|
355
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
356
|
+
* via the `definition` "GraphStartTracePoint".
|
|
357
|
+
*/
|
|
358
|
+
export type GraphStartTracePoint =
|
|
359
|
+
BaseTracePoint & {
|
|
360
|
+
tracePointKind?: "graph_start";
|
|
361
|
+
} & ThreadedStrategyFacet;
|
|
362
|
+
/**
|
|
363
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
364
|
+
* via the `definition` "TickTracePoint".
|
|
365
|
+
*/
|
|
366
|
+
export type TickTracePoint =
|
|
367
|
+
BaseTracePoint & {
|
|
368
|
+
tracePointKind?: "tick";
|
|
369
|
+
counterSnapshot: TracePointCounterSnapshot;
|
|
370
|
+
toolStepPath: ThreadedToolStepPath;
|
|
371
|
+
delta: TracePointDelta;
|
|
372
|
+
};
|
|
373
|
+
/**
|
|
374
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
375
|
+
* via the `definition` "InterruptTracePoint".
|
|
376
|
+
*/
|
|
377
|
+
export type InterruptTracePoint =
|
|
378
|
+
BaseTracePoint & {
|
|
379
|
+
tracePointKind?: "interrupt";
|
|
380
|
+
counterSnapshot: TracePointCounterSnapshot;
|
|
381
|
+
toolStepPath: ThreadedToolStepPath;
|
|
382
|
+
delta: TracePointDelta & {
|
|
383
|
+
interruptData: {
|
|
384
|
+
};
|
|
385
|
+
};
|
|
386
|
+
};
|
|
387
|
+
/**
|
|
388
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
389
|
+
* via the `definition` "GraphEndTracePoint".
|
|
390
|
+
*/
|
|
391
|
+
export type GraphEndTracePoint =
|
|
392
|
+
BaseTracePoint & {
|
|
393
|
+
tracePointKind?: "graph_end";
|
|
394
|
+
};
|
|
395
|
+
/**
|
|
396
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
397
|
+
* via the `definition` "TracePoint".
|
|
398
|
+
*/
|
|
399
|
+
export type TracePoint =
|
|
400
|
+
GraphStartTracePoint | TickTracePoint | InterruptTracePoint | GraphEndTracePoint;
|
|
401
|
+
/**
|
|
402
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
403
|
+
* via the `definition` "GoalHandle".
|
|
404
|
+
*/
|
|
405
|
+
export type GoalHandle =
|
|
406
|
+
`GOAL-${string}`;
|
|
407
|
+
/**
|
|
408
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
409
|
+
* via the `definition` "Error".
|
|
410
|
+
*/
|
|
411
|
+
export type Error =
|
|
412
|
+
{
|
|
413
|
+
} & DocumentationSpec & {
|
|
414
|
+
details?: {
|
|
415
|
+
};
|
|
416
|
+
};
|
|
417
|
+
/**
|
|
418
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
419
|
+
* via the `definition` "Boolean".
|
|
420
|
+
*/
|
|
421
|
+
export type Boolean =
|
|
422
|
+
boolean;
|
|
423
|
+
/**
|
|
424
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
425
|
+
* via the `definition` "TimestampedResource".
|
|
426
|
+
*/
|
|
427
|
+
export type TimestampedResource =
|
|
428
|
+
{
|
|
429
|
+
timestamp: string;
|
|
430
|
+
} & Resource;
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
434
|
+
* via the `definition` "NameFacet".
|
|
435
|
+
*/
|
|
436
|
+
export interface NameFacet {
|
|
437
|
+
name: Name;
|
|
438
|
+
}
|
|
439
|
+
/**
|
|
440
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
441
|
+
* via the `definition` "DescriptionFacet".
|
|
442
|
+
*/
|
|
443
|
+
export interface DescriptionFacet {
|
|
444
|
+
description: Description;
|
|
445
|
+
}
|
|
446
|
+
/**
|
|
447
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
448
|
+
* via the `definition` "JsonSchemaObject".
|
|
449
|
+
*/
|
|
450
|
+
export interface JsonSchemaObject {
|
|
451
|
+
$schema: "https://json-schema.org/draft/2020-12/schema";
|
|
452
|
+
}
|
|
453
|
+
/**
|
|
454
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
455
|
+
* via the `definition` "Embedding".
|
|
456
|
+
*/
|
|
457
|
+
export interface Embedding {
|
|
458
|
+
embeddingToolHandle: ToolHandle;
|
|
459
|
+
targetResourcePointer: ResourcePointer;
|
|
460
|
+
data: number[];
|
|
461
|
+
}
|
|
462
|
+
/**
|
|
463
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
464
|
+
* via the `definition` "ProvenanceFacet".
|
|
465
|
+
*/
|
|
466
|
+
export interface ProvenanceFacet {
|
|
467
|
+
provenance: Provenance;
|
|
468
|
+
}
|
|
469
|
+
/**
|
|
470
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
471
|
+
* via the `definition` "GenesisProvenance".
|
|
472
|
+
*/
|
|
473
|
+
export interface GenesisProvenance {
|
|
474
|
+
provenanceKind: "genesis";
|
|
475
|
+
}
|
|
476
|
+
/**
|
|
477
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
478
|
+
* via the `definition` "StrategyProvenance".
|
|
479
|
+
*/
|
|
480
|
+
export interface StrategyProvenance {
|
|
481
|
+
provenanceKind: "strategy";
|
|
482
|
+
strategyTraceHandle: StrategyTraceHandle;
|
|
483
|
+
outputAddress: OutputAddress;
|
|
484
|
+
}
|
|
485
|
+
/**
|
|
486
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
487
|
+
* via the `definition` "OutputAddress".
|
|
488
|
+
*/
|
|
489
|
+
export interface OutputAddress {
|
|
490
|
+
roleName: string;
|
|
491
|
+
toolStepPath: ToolStepPath;
|
|
492
|
+
}
|
|
493
|
+
export interface JsonSchemaObject1 {
|
|
494
|
+
$schema: "https://json-schema.org/draft/2020-12/schema";
|
|
495
|
+
}
|
|
496
|
+
/**
|
|
497
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
498
|
+
* via the `definition` "RoleValueByName".
|
|
499
|
+
*/
|
|
500
|
+
export type RoleValueByName = Record<RoleName, RoleValue>;
|
|
501
|
+
/**
|
|
502
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
503
|
+
* via the `definition` "RoleSpec".
|
|
504
|
+
*/
|
|
505
|
+
export interface RoleSpec {
|
|
506
|
+
inputRoleValueByName: RoleValueByName;
|
|
507
|
+
outputRoleValueByName: RoleValueByName;
|
|
508
|
+
refinementSchema?: JsonSchemaObject2;
|
|
509
|
+
}
|
|
510
|
+
export interface JsonSchemaObject2 {
|
|
511
|
+
$schema: "https://json-schema.org/draft/2020-12/schema";
|
|
512
|
+
}
|
|
513
|
+
/**
|
|
514
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
515
|
+
* via the `definition` "RoleSpecFacet".
|
|
516
|
+
*/
|
|
517
|
+
export interface RoleSpecFacet {
|
|
518
|
+
roleSpec: RoleSpec;
|
|
519
|
+
}
|
|
520
|
+
/**
|
|
521
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
522
|
+
* via the `definition` "RoleBindingSpec".
|
|
523
|
+
*/
|
|
524
|
+
export interface RoleBindingSpec {
|
|
525
|
+
inputBindings: RoleNameArray;
|
|
526
|
+
outputBindings: RoleNameArray;
|
|
527
|
+
}
|
|
528
|
+
/**
|
|
529
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
530
|
+
* via the `definition` "RoleBindingSpecFacet".
|
|
531
|
+
*/
|
|
532
|
+
export interface RoleBindingSpecFacet {
|
|
533
|
+
roleBindingSpec: RoleBindingSpec;
|
|
534
|
+
}
|
|
535
|
+
/**
|
|
536
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
537
|
+
* via the `definition` "StepKindFacet".
|
|
538
|
+
*/
|
|
539
|
+
export interface StepKindFacet {
|
|
540
|
+
stepKind: StepKind;
|
|
541
|
+
}
|
|
542
|
+
export interface RoleBindingSpecFacet1 {
|
|
543
|
+
roleBindingSpec: RoleBindingSpec;
|
|
544
|
+
}
|
|
545
|
+
/**
|
|
546
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
547
|
+
* via the `definition` "Case".
|
|
548
|
+
*/
|
|
549
|
+
export interface Case {
|
|
550
|
+
when: ToolStep;
|
|
551
|
+
what: ToolStep;
|
|
552
|
+
}
|
|
553
|
+
/**
|
|
554
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
555
|
+
* via the `definition` "DeferredStrategyProvenance".
|
|
556
|
+
*/
|
|
557
|
+
export interface DeferredStrategyProvenance {
|
|
558
|
+
provenanceKind: "strategy";
|
|
559
|
+
outputAddress: OutputAddress;
|
|
560
|
+
}
|
|
561
|
+
/**
|
|
562
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
563
|
+
* via the `definition` "ExternalInputPotential".
|
|
564
|
+
*/
|
|
565
|
+
export interface ExternalInputPotential {
|
|
566
|
+
strategyStateInputKind: "externalInputPotential";
|
|
567
|
+
id: ResourceId;
|
|
568
|
+
resourceTypeHandle: ResourceTypeHandle;
|
|
569
|
+
}
|
|
570
|
+
/**
|
|
571
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
572
|
+
* via the `definition` "InternalInputPotential".
|
|
573
|
+
*/
|
|
574
|
+
export interface InternalInputPotential {
|
|
575
|
+
strategyStateInputKind: "internalInputPotential";
|
|
576
|
+
id: ResourceId;
|
|
577
|
+
resourceTypeHandle: ResourceTypeHandle;
|
|
578
|
+
provenance: DeferredStrategyProvenance;
|
|
579
|
+
}
|
|
580
|
+
/**
|
|
581
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
582
|
+
* via the `definition` "StrategyStateInputEntryByRoleName".
|
|
583
|
+
*/
|
|
584
|
+
export type StrategyStateInputEntryByRoleName = Record<RoleName, StrategyStateInputEntry>;
|
|
585
|
+
/**
|
|
586
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
587
|
+
* via the `definition` "StepsFacet".
|
|
588
|
+
*/
|
|
589
|
+
export interface StepsFacet {
|
|
590
|
+
steps: StepArray;
|
|
591
|
+
}
|
|
592
|
+
/**
|
|
593
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
594
|
+
* via the `definition` "ToolStepPathSlotFacet".
|
|
595
|
+
*/
|
|
596
|
+
export interface ToolStepPathSlotFacet {
|
|
597
|
+
toolStepPathSlot: ToolStepPathSlot;
|
|
598
|
+
}
|
|
599
|
+
/**
|
|
600
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
601
|
+
* via the `definition` "UnthreadedStrategyState".
|
|
602
|
+
*/
|
|
603
|
+
export interface UnthreadedStrategyState {
|
|
604
|
+
[k: string]: StrategyStateInputEntryByRoleName;
|
|
605
|
+
}
|
|
606
|
+
/**
|
|
607
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
608
|
+
* via the `definition` "ThreadedStrategyState".
|
|
609
|
+
*/
|
|
610
|
+
export interface ThreadedStrategyState {
|
|
611
|
+
[k: string]: StrategyStateInputEntryByRoleName;
|
|
612
|
+
}
|
|
613
|
+
/**
|
|
614
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
615
|
+
* via the `definition` "UnthreadedStrategyStateFacet".
|
|
616
|
+
*/
|
|
617
|
+
export interface UnthreadedStrategyStateFacet {
|
|
618
|
+
strategyState: UnthreadedStrategyState;
|
|
619
|
+
}
|
|
620
|
+
/**
|
|
621
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
622
|
+
* via the `definition` "ThreadedStrategyStateFacet".
|
|
623
|
+
*/
|
|
624
|
+
export interface ThreadedStrategyStateFacet {
|
|
625
|
+
strategyState: ThreadedStrategyState;
|
|
626
|
+
}
|
|
627
|
+
/**
|
|
628
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
629
|
+
* via the `definition` "BaseStrategy".
|
|
630
|
+
*/
|
|
631
|
+
export interface BaseStrategy {
|
|
632
|
+
handle: StrategyHandle;
|
|
633
|
+
strategyKind: StrategyKind;
|
|
634
|
+
}
|
|
635
|
+
/**
|
|
636
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
637
|
+
* via the `definition` "StepsByThreadIndexFacet".
|
|
638
|
+
*/
|
|
639
|
+
export interface StepsByThreadIndexFacet {
|
|
640
|
+
stepsByThreadIndex: StepArrayArray;
|
|
641
|
+
}
|
|
642
|
+
/**
|
|
643
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
644
|
+
* via the `definition` "TracePointCounterSnapshot".
|
|
645
|
+
*/
|
|
646
|
+
export interface TracePointCounterSnapshot {
|
|
647
|
+
stepCounterAfter?: Natural;
|
|
648
|
+
iterationCounterAfter?: Natural;
|
|
649
|
+
}
|
|
650
|
+
/**
|
|
651
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
652
|
+
* via the `definition` "TracePointDelta".
|
|
653
|
+
*/
|
|
654
|
+
export interface TracePointDelta {
|
|
655
|
+
stepsMutation?: {
|
|
656
|
+
insertAt: Natural;
|
|
657
|
+
insertedSteps: StepArray;
|
|
658
|
+
};
|
|
659
|
+
strategyStateDelta?: ThreadedStrategyState;
|
|
660
|
+
interruptData?: {
|
|
661
|
+
} | null;
|
|
662
|
+
}
|
|
663
|
+
/**
|
|
664
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
665
|
+
* via the `definition` "BaseTracePoint".
|
|
666
|
+
*/
|
|
667
|
+
export interface BaseTracePoint {
|
|
668
|
+
tracePointKind: TracePointKind;
|
|
669
|
+
strategyHandle: StrategyHandle;
|
|
670
|
+
threadIndex: Natural;
|
|
671
|
+
tracePointIndex: Natural;
|
|
672
|
+
}
|
|
673
|
+
/**
|
|
674
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
675
|
+
* via the `definition` "ThreadedStrategyFacet".
|
|
676
|
+
*/
|
|
677
|
+
export interface ThreadedStrategyFacet {
|
|
678
|
+
threadedStrategy: ThreadedStrategy;
|
|
679
|
+
}
|
|
680
|
+
/**
|
|
681
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
682
|
+
* via the `definition` "StrategyTrace".
|
|
683
|
+
*/
|
|
684
|
+
export interface StrategyTrace {
|
|
685
|
+
handle: StrategyTraceHandle;
|
|
686
|
+
strategyHandle: string;
|
|
687
|
+
tracePoints: TracePoint[];
|
|
688
|
+
}
|
|
689
|
+
/**
|
|
690
|
+
* This interface was referenced by `Genesis`'s JSON-Schema
|
|
691
|
+
* via the `definition` "Goal".
|
|
692
|
+
*/
|
|
693
|
+
export interface Goal {
|
|
694
|
+
handle: GoalHandle;
|
|
695
|
+
target: number;
|
|
696
|
+
disallowedTools?: ToolHandle[];
|
|
697
|
+
disallowedSequences?: ToolHandle[][];
|
|
698
|
+
minSteps?: number;
|
|
699
|
+
maxSteps?: number;
|
|
700
|
+
}
|
|
701
|
+
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|