@toolproof-core/genesis 1.0.48 → 1.0.50
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/implementations/tools.d.ts +100 -0
- package/dist/src/implementations/tools.js +135 -0
- package/dist/src/index.d.ts +9 -8
- package/dist/src/index.js +4 -3
- package/dist/src/utils/resourceTypes.d.ts +2 -1
- package/dist/src/utils/resourceTypes.js +22 -6
- package/dist/src/utils/schemaRefNormalization.js +3 -3
- package/dist/src/utils/standaloneTypes.js +2 -2
- package/dist/src/utils/timestampedResources.d.ts +16 -0
- package/dist/src/utils/timestampedResources.js +17 -0
- package/dist/src/utils/typeGenerationPostProcess.js +2 -2
- package/dist/src/utils/zodCodegen.js +3 -3
- package/generated-src/declarations/booleans.json +4 -0
- package/generated-src/declarations/booleans.ts +2 -0
- package/generated-src/declarations/naturals.json +13 -0
- package/generated-src/declarations/naturals.ts +2 -0
- package/generated-src/{resourceTypes → declarations}/resourceTypes.json +176 -39
- package/generated-src/declarations/resourceTypes.ts +2 -0
- package/generated-src/declarations/tools.json +705 -0
- package/generated-src/declarations/tools.ts +2 -0
- package/generated-src/implementations/tools.ts +214 -0
- package/generated-src/{derived → lookups}/constants.ts +4 -5
- package/generated-src/metadata/Core.json +51 -114
- package/generated-src/metadata/dependencyMap.json +16 -2
- package/generated-src/metadata/terminals.json +3 -4
- package/generated-src/schemas/schemas.json +198 -29
- package/generated-src/schemas/standalone/Resource.json +4 -8
- package/generated-src/schemas/standalone/ResourceType.json +21 -5
- package/generated-src/schemas/standalone/Strategy.json +4 -8
- package/generated-src/schemas/standalone/StrategyTrace.json +4 -8
- package/generated-src/schemas/standalone/Suite.json +646 -0
- package/generated-src/schemas/standalone/Suite.ts +2 -0
- package/generated-src/schemas/standalone/Tool.json +48 -23
- package/generated-src/schemas/zod/Resource.ts +2 -2
- package/generated-src/schemas/zod/ResourceType.ts +1 -1
- package/generated-src/schemas/zod/Strategy.ts +3 -3
- package/generated-src/schemas/zod/StrategyTrace.ts +3 -3
- package/generated-src/schemas/zod/Suite.ts +44 -0
- package/generated-src/schemas/zod/Tool.ts +7 -2
- package/generated-src/schemas/zod/index.ts +1 -0
- package/{src/genesis/resources → generated-src/timestampedResources}/booleans.json +19 -23
- package/generated-src/timestampedResources/booleans.ts +2 -0
- package/{src/genesis/resources → generated-src/timestampedResources}/naturals.json +100 -111
- package/generated-src/timestampedResources/naturals.ts +2 -0
- package/generated-src/{resources → timestampedResources}/resourceTypes.json +202 -66
- package/generated-src/timestampedResources/resourceTypes.ts +2 -0
- package/{src/genesis/resources → generated-src/timestampedResources}/tools.json +824 -839
- package/generated-src/timestampedResources/tools.ts +2 -0
- package/generated-src/types/standalone/BooleanResource.d.ts +2 -2
- package/generated-src/types/standalone/ErrorResource.d.ts +2 -2
- package/generated-src/types/standalone/GoalResource.d.ts +2 -2
- package/generated-src/types/standalone/NaturalResource.d.ts +2 -2
- package/generated-src/types/standalone/ResourceResource.d.ts +2 -2
- package/generated-src/types/standalone/ResourceTypeResource.d.ts +2 -2
- package/generated-src/types/standalone/StrategyResource.d.ts +2 -2
- package/generated-src/types/standalone/StrategyTraceResource.d.ts +2 -2
- package/generated-src/types/standalone/SuiteResource.d.ts +3 -0
- package/generated-src/types/standalone/SuiteResource.js +1 -0
- package/generated-src/types/standalone/ToolResource.d.ts +2 -2
- package/generated-src/types/types.d.ts +57 -14
- package/package.json +18 -13
- package/src/declarations/booleans.json +4 -0
- package/src/declarations/naturals.json +13 -0
- package/src/{genesis → declarations/resourceTypes}/resourceTypeShells.json +52 -46
- package/src/{genesis → declarations/resourceTypes}/schemas.json +1838 -1669
- package/src/declarations/tools.json +705 -0
- package/src/implementations/tools.ts +214 -0
- package/src/index.ts +131 -27
- package/src/utils/constantsAndMappings.ts +194 -194
- package/src/utils/coreProjection.ts +52 -52
- package/src/utils/resourceTypes.ts +70 -38
- package/src/utils/schemaDependencies.ts +114 -114
- package/src/utils/schemaObjectNormalization.ts +70 -70
- package/src/utils/schemaRefNormalization.ts +82 -82
- package/src/utils/schemaShims.ts +16 -16
- package/src/utils/standaloneSchemas.ts +113 -113
- package/src/utils/standaloneTypes.ts +27 -27
- package/src/utils/standaloneZodSchemas.ts +71 -71
- package/src/utils/timestampedResources.ts +42 -0
- package/src/utils/typeGeneration.ts +30 -30
- package/src/utils/typeGenerationPostProcess.ts +245 -245
- package/src/utils/typeGenerationPreflight.ts +118 -118
- package/src/utils/zodCodegen.ts +548 -548
- package/toolproof.json +19 -0
- package/dist/src/genesis/resources/implementations/foo.d.ts +0 -1
- package/dist/src/genesis/resources/implementations/foo.js +0 -184
- package/dist/src/utils/resources.d.ts +0 -5
- package/dist/src/utils/resources.js +0 -17
- package/generated-src/resourceTypes/resourceTypes.ts +0 -2
- package/generated-src/resources/resourceTypes.ts +0 -2
- package/src/genesis/resources/implementations/foo.ts +0 -183
- package/src/utils/resources.ts +0 -26
- /package/generated-src/{derived → lookups}/mappings.ts +0 -0
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
Boolean,
|
|
3
|
+
Natural,
|
|
4
|
+
ResourceType,
|
|
5
|
+
Tool,
|
|
6
|
+
} from '../types/types.js';
|
|
7
|
+
|
|
8
|
+
type GenericAssignmentByRoleName<GenericRoleName extends string> = Record<GenericRoleName, ResourceType>;
|
|
9
|
+
|
|
10
|
+
type InstantiationToolHandleBySpecializationKey = Record<string, Tool>;
|
|
11
|
+
|
|
12
|
+
type TemplateInputs<GenericRoleName extends string> = {
|
|
13
|
+
GenericAssignmentByRoleName: GenericAssignmentByRoleName<GenericRoleName>;
|
|
14
|
+
InstantiationToolHandleBySpecializationKey: InstantiationToolHandleBySpecializationKey;
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
type TemplateOutputs = {
|
|
18
|
+
InstantiationTool: Tool;
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
type OperandTemplateInputs = TemplateInputs<'OperandType'>;
|
|
22
|
+
|
|
23
|
+
const OPERAND_TYPE_ROLE_NAMES = ['OperandType'] as const;
|
|
24
|
+
|
|
25
|
+
function assertExactKeys(actualKeys: string[], expectedKeys: readonly string[], label: string): void {
|
|
26
|
+
const sortedActualKeys = [...actualKeys].sort();
|
|
27
|
+
const sortedExpectedKeys = [...expectedKeys].sort();
|
|
28
|
+
|
|
29
|
+
if (sortedActualKeys.length !== sortedExpectedKeys.length) {
|
|
30
|
+
throw new Error(
|
|
31
|
+
`${label} must contain exactly [${sortedExpectedKeys.join(', ')}], got [${sortedActualKeys.join(', ')}]`
|
|
32
|
+
);
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
for (let index = 0; index < sortedExpectedKeys.length; index += 1) {
|
|
36
|
+
if (sortedActualKeys[index] !== sortedExpectedKeys[index]) {
|
|
37
|
+
throw new Error(
|
|
38
|
+
`${label} must contain exactly [${sortedExpectedKeys.join(', ')}], got [${sortedActualKeys.join(', ')}]`
|
|
39
|
+
);
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
function asNatural(value: number, label: string): Natural {
|
|
45
|
+
if (!Number.isInteger(value) || value < 0) {
|
|
46
|
+
throw new Error(`${label} must be a non-negative integer, got ${value}`);
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
return value as Natural;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export function createSpecializationKey(assignments: Record<string, ResourceType>): string {
|
|
53
|
+
return JSON.stringify(
|
|
54
|
+
Object.entries(assignments)
|
|
55
|
+
.sort(([leftRoleName], [rightRoleName]) => leftRoleName.localeCompare(rightRoleName))
|
|
56
|
+
.map(([roleName, resourceType]) => [roleName, resourceType.handle])
|
|
57
|
+
);
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
function resolveTemplateInstantiation<GenericRoleName extends string>(
|
|
61
|
+
inputs: TemplateInputs<GenericRoleName>,
|
|
62
|
+
expectedGenericRoleNames: readonly GenericRoleName[]
|
|
63
|
+
): TemplateOutputs {
|
|
64
|
+
const { GenericAssignmentByRoleName, InstantiationToolHandleBySpecializationKey } = inputs;
|
|
65
|
+
|
|
66
|
+
assertExactKeys(
|
|
67
|
+
Object.keys(GenericAssignmentByRoleName),
|
|
68
|
+
expectedGenericRoleNames,
|
|
69
|
+
'GenericAssignmentByRoleName'
|
|
70
|
+
);
|
|
71
|
+
|
|
72
|
+
const specializationKey = createSpecializationKey(GenericAssignmentByRoleName);
|
|
73
|
+
const instantiationTool = InstantiationToolHandleBySpecializationKey[specializationKey];
|
|
74
|
+
|
|
75
|
+
if (!instantiationTool) {
|
|
76
|
+
throw new Error(`No instantiation tool registered for specializationKey ${specializationKey}`);
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
return {
|
|
80
|
+
InstantiationTool: instantiationTool,
|
|
81
|
+
};
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export function Identity(inputs: OperandTemplateInputs): TemplateOutputs {
|
|
85
|
+
return resolveTemplateInstantiation(inputs, OPERAND_TYPE_ROLE_NAMES);
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export function Add(inputs: OperandTemplateInputs): TemplateOutputs {
|
|
89
|
+
return resolveTemplateInstantiation(inputs, OPERAND_TYPE_ROLE_NAMES);
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export function Subtract(inputs: OperandTemplateInputs): TemplateOutputs {
|
|
93
|
+
return resolveTemplateInstantiation(inputs, OPERAND_TYPE_ROLE_NAMES);
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export function Multiply(inputs: OperandTemplateInputs): TemplateOutputs {
|
|
97
|
+
return resolveTemplateInstantiation(inputs, OPERAND_TYPE_ROLE_NAMES);
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export function Divide(inputs: OperandTemplateInputs): TemplateOutputs {
|
|
101
|
+
return resolveTemplateInstantiation(inputs, OPERAND_TYPE_ROLE_NAMES);
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
export function Double(inputs: OperandTemplateInputs): TemplateOutputs {
|
|
105
|
+
return resolveTemplateInstantiation(inputs, OPERAND_TYPE_ROLE_NAMES);
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export function LessThan(inputs: OperandTemplateInputs): TemplateOutputs {
|
|
109
|
+
return resolveTemplateInstantiation(inputs, OPERAND_TYPE_ROLE_NAMES);
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export function BooleanIdentity(inputs: { In: Boolean }): { Out: Boolean } {
|
|
113
|
+
return {
|
|
114
|
+
Out: inputs.In,
|
|
115
|
+
};
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export function NaturalIdentity(inputs: { In: Natural }): { Out: Natural } {
|
|
119
|
+
return {
|
|
120
|
+
Out: inputs.In,
|
|
121
|
+
};
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
export function NaturalLessThan(inputs: {
|
|
125
|
+
LessThanSource: Natural;
|
|
126
|
+
LessThanTarget: Natural;
|
|
127
|
+
}): { LessThanDecision: Boolean } {
|
|
128
|
+
return {
|
|
129
|
+
LessThanDecision: inputs.LessThanSource < inputs.LessThanTarget,
|
|
130
|
+
};
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export function NaturalAdd(inputs: {
|
|
134
|
+
AddendOne: Natural;
|
|
135
|
+
AddendTwo: Natural;
|
|
136
|
+
}): { Sum: Natural } {
|
|
137
|
+
return {
|
|
138
|
+
Sum: asNatural(inputs.AddendOne + inputs.AddendTwo, 'Sum'),
|
|
139
|
+
};
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export function NaturalSubtract(inputs: {
|
|
143
|
+
Minuend: Natural;
|
|
144
|
+
Subtrahend: Natural;
|
|
145
|
+
}): { Difference: Natural } {
|
|
146
|
+
return {
|
|
147
|
+
Difference: asNatural(inputs.Minuend - inputs.Subtrahend, 'Difference'),
|
|
148
|
+
};
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export function NaturalMultiply(inputs: {
|
|
152
|
+
Multiplicand: Natural;
|
|
153
|
+
Multiplier: Natural;
|
|
154
|
+
}): { Product: Natural } {
|
|
155
|
+
return {
|
|
156
|
+
Product: asNatural(inputs.Multiplicand * inputs.Multiplier, 'Product'),
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export function NaturalDivide(inputs: {
|
|
161
|
+
Dividend: Natural;
|
|
162
|
+
Divisor: Natural;
|
|
163
|
+
}): { Quotient: Natural; Remainder: Natural } {
|
|
164
|
+
if (inputs.Divisor === 0) {
|
|
165
|
+
throw new Error('Divisor must be non-zero');
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
return {
|
|
169
|
+
Quotient: asNatural(Math.floor(inputs.Dividend / inputs.Divisor), 'Quotient'),
|
|
170
|
+
Remainder: asNatural(inputs.Dividend % inputs.Divisor, 'Remainder'),
|
|
171
|
+
};
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export function NaturalDouble(inputs: { N: Natural }): { Doubled: Natural } {
|
|
175
|
+
return {
|
|
176
|
+
Doubled: asNatural(inputs.N * 2, 'Doubled'),
|
|
177
|
+
};
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export const TOOL_IMPLEMENTATION_BY_NAME = {
|
|
181
|
+
Identity,
|
|
182
|
+
Add,
|
|
183
|
+
Subtract,
|
|
184
|
+
Multiply,
|
|
185
|
+
Divide,
|
|
186
|
+
Double,
|
|
187
|
+
LessThan,
|
|
188
|
+
BooleanIdentity,
|
|
189
|
+
NaturalIdentity,
|
|
190
|
+
NaturalLessThan,
|
|
191
|
+
NaturalAdd,
|
|
192
|
+
NaturalSubtract,
|
|
193
|
+
NaturalMultiply,
|
|
194
|
+
NaturalDivide,
|
|
195
|
+
NaturalDouble,
|
|
196
|
+
} as const;
|
|
197
|
+
|
|
198
|
+
export const TOOL_IMPLEMENTATION_BY_HANDLE = {
|
|
199
|
+
'TOOL-Identity': Identity,
|
|
200
|
+
'TOOL-Add': Add,
|
|
201
|
+
'TOOL-Subtract': Subtract,
|
|
202
|
+
'TOOL-Multiply': Multiply,
|
|
203
|
+
'TOOL-Divide': Divide,
|
|
204
|
+
'TOOL-Double': Double,
|
|
205
|
+
'TOOL-LessThan': LessThan,
|
|
206
|
+
'TOOL-BooleanIdentity': BooleanIdentity,
|
|
207
|
+
'TOOL-NaturalIdentity': NaturalIdentity,
|
|
208
|
+
'TOOL-NaturalLessThan': NaturalLessThan,
|
|
209
|
+
'TOOL-NaturalAdd': NaturalAdd,
|
|
210
|
+
'TOOL-NaturalSubtract': NaturalSubtract,
|
|
211
|
+
'TOOL-NaturalMultiply': NaturalMultiply,
|
|
212
|
+
'TOOL-NaturalDivide': NaturalDivide,
|
|
213
|
+
'TOOL-NaturalDouble': NaturalDouble,
|
|
214
|
+
} as const;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
const CONSTANTS = {
|
|
2
2
|
Names: {
|
|
3
|
+
AtomicTypeRef: 'AtomicTypeRef',
|
|
3
4
|
BaseResource: 'BaseResource',
|
|
4
5
|
BaseStrategy: 'BaseStrategy',
|
|
5
6
|
BaseToolStepPathSpec: 'BaseToolStepPathSpec',
|
|
@@ -25,6 +26,7 @@ const CONSTANTS = {
|
|
|
25
26
|
InputResource: 'InputResource',
|
|
26
27
|
InternalInputPotential: 'InternalInputPotential',
|
|
27
28
|
InterruptTracePoint: 'InterruptTracePoint',
|
|
29
|
+
JsonScalarLink: 'JsonScalarLink',
|
|
28
30
|
JsonSchemaObject: 'JsonSchemaObject',
|
|
29
31
|
Name: 'Name',
|
|
30
32
|
NameFacet: 'NameFacet',
|
|
@@ -62,6 +64,8 @@ const CONSTANTS = {
|
|
|
62
64
|
StrategyStateInputKind: 'StrategyStateInputKind',
|
|
63
65
|
StrategyTrace: 'StrategyTrace',
|
|
64
66
|
StrategyTraceHandle: 'StrategyTraceHandle',
|
|
67
|
+
Suite: 'Suite',
|
|
68
|
+
SuiteIngestorInputSchema: 'SuiteIngestorInputSchema',
|
|
65
69
|
ThreadedStrategy: 'ThreadedStrategy',
|
|
66
70
|
ThreadedStrategyFacet: 'ThreadedStrategyFacet',
|
|
67
71
|
ThreadedStrategyState: 'ThreadedStrategyState',
|
|
@@ -72,7 +76,6 @@ const CONSTANTS = {
|
|
|
72
76
|
TimestampedResource: 'TimestampedResource',
|
|
73
77
|
Tool: 'Tool',
|
|
74
78
|
ToolHandle: 'ToolHandle',
|
|
75
|
-
ToolKind: 'ToolKind',
|
|
76
79
|
ToolStep: 'ToolStep',
|
|
77
80
|
ToolStepPath: 'ToolStepPath',
|
|
78
81
|
ToolStepPathSlot: 'ToolStepPathSlot',
|
|
@@ -114,10 +117,6 @@ const CONSTANTS = {
|
|
|
114
117
|
externalInputPotential: 'externalInputPotential',
|
|
115
118
|
internalInputPotential: 'internalInputPotential',
|
|
116
119
|
},
|
|
117
|
-
ToolKind: {
|
|
118
|
-
runtime: 'runtime',
|
|
119
|
-
buildtime: 'buildtime',
|
|
120
|
-
},
|
|
121
120
|
TracePointKind: {
|
|
122
121
|
graph_start: 'graph_start',
|
|
123
122
|
tick: 'tick',
|
|
@@ -37,11 +37,6 @@
|
|
|
37
37
|
"name": "launch.json",
|
|
38
38
|
"path": ".vscode/launch.json"
|
|
39
39
|
},
|
|
40
|
-
{
|
|
41
|
-
"kind": "file",
|
|
42
|
-
"name": "settings.json",
|
|
43
|
-
"path": ".vscode/settings.json"
|
|
44
|
-
},
|
|
45
40
|
{
|
|
46
41
|
"kind": "file",
|
|
47
42
|
"name": "tasks.json",
|
|
@@ -226,19 +221,6 @@
|
|
|
226
221
|
}
|
|
227
222
|
]
|
|
228
223
|
},
|
|
229
|
-
{
|
|
230
|
-
"kind": "directory",
|
|
231
|
-
"name": "cosmos",
|
|
232
|
-
"path": "packages/cosmos/src/components/cosmos",
|
|
233
|
-
"children": [
|
|
234
|
-
{
|
|
235
|
-
"kind": "directory",
|
|
236
|
-
"name": "recordings",
|
|
237
|
-
"path": "packages/cosmos/src/components/cosmos/recordings",
|
|
238
|
-
"children": []
|
|
239
|
-
}
|
|
240
|
-
]
|
|
241
|
-
},
|
|
242
224
|
{
|
|
243
225
|
"kind": "directory",
|
|
244
226
|
"name": "dom",
|
|
@@ -706,11 +688,6 @@
|
|
|
706
688
|
}
|
|
707
689
|
]
|
|
708
690
|
},
|
|
709
|
-
{
|
|
710
|
-
"kind": "file",
|
|
711
|
-
"name": ".env.local",
|
|
712
|
-
"path": "packages/cosmos/.env.local"
|
|
713
|
-
},
|
|
714
691
|
{
|
|
715
692
|
"kind": "file",
|
|
716
693
|
"name": ".gitignore",
|
|
@@ -721,21 +698,11 @@
|
|
|
721
698
|
"name": "eslint.config.mjs",
|
|
722
699
|
"path": "packages/cosmos/eslint.config.mjs"
|
|
723
700
|
},
|
|
724
|
-
{
|
|
725
|
-
"kind": "file",
|
|
726
|
-
"name": "gcp-key.json",
|
|
727
|
-
"path": "packages/cosmos/gcp-key.json"
|
|
728
|
-
},
|
|
729
701
|
{
|
|
730
702
|
"kind": "file",
|
|
731
703
|
"name": "globals.d.ts",
|
|
732
704
|
"path": "packages/cosmos/globals.d.ts"
|
|
733
705
|
},
|
|
734
|
-
{
|
|
735
|
-
"kind": "file",
|
|
736
|
-
"name": "next-env.d.ts",
|
|
737
|
-
"path": "packages/cosmos/next-env.d.ts"
|
|
738
|
-
},
|
|
739
706
|
{
|
|
740
707
|
"kind": "file",
|
|
741
708
|
"name": "next.config.ts",
|
|
@@ -1075,21 +1042,11 @@
|
|
|
1075
1042
|
"name": ".dockerignore",
|
|
1076
1043
|
"path": "packages/engine/.dockerignore"
|
|
1077
1044
|
},
|
|
1078
|
-
{
|
|
1079
|
-
"kind": "file",
|
|
1080
|
-
"name": ".env",
|
|
1081
|
-
"path": "packages/engine/.env"
|
|
1082
|
-
},
|
|
1083
1045
|
{
|
|
1084
1046
|
"kind": "file",
|
|
1085
1047
|
"name": ".gitignore",
|
|
1086
1048
|
"path": "packages/engine/.gitignore"
|
|
1087
1049
|
},
|
|
1088
|
-
{
|
|
1089
|
-
"kind": "file",
|
|
1090
|
-
"name": "gcp-key.json",
|
|
1091
|
-
"path": "packages/engine/gcp-key.json"
|
|
1092
|
-
},
|
|
1093
1050
|
{
|
|
1094
1051
|
"kind": "file",
|
|
1095
1052
|
"name": "langgraph.json",
|
|
@@ -1104,11 +1061,6 @@
|
|
|
1104
1061
|
"kind": "file",
|
|
1105
1062
|
"name": "tsconfig.json",
|
|
1106
1063
|
"path": "packages/engine/tsconfig.json"
|
|
1107
|
-
},
|
|
1108
|
-
{
|
|
1109
|
-
"kind": "file",
|
|
1110
|
-
"name": "tsconfig.tsbuildinfo",
|
|
1111
|
-
"path": "packages/engine/tsconfig.tsbuildinfo"
|
|
1112
1064
|
}
|
|
1113
1065
|
]
|
|
1114
1066
|
},
|
|
@@ -1144,6 +1096,11 @@
|
|
|
1144
1096
|
"name": "generateCoreProjection.ts",
|
|
1145
1097
|
"path": "packages/genesis/scripts/generateCoreProjection.ts"
|
|
1146
1098
|
},
|
|
1099
|
+
{
|
|
1100
|
+
"kind": "file",
|
|
1101
|
+
"name": "generateDeclarations.ts",
|
|
1102
|
+
"path": "packages/genesis/scripts/generateDeclarations.ts"
|
|
1103
|
+
},
|
|
1147
1104
|
{
|
|
1148
1105
|
"kind": "file",
|
|
1149
1106
|
"name": "generateDependencies.ts",
|
|
@@ -1151,8 +1108,8 @@
|
|
|
1151
1108
|
},
|
|
1152
1109
|
{
|
|
1153
1110
|
"kind": "file",
|
|
1154
|
-
"name": "
|
|
1155
|
-
"path": "packages/genesis/scripts/
|
|
1111
|
+
"name": "generateImplementations.ts",
|
|
1112
|
+
"path": "packages/genesis/scripts/generateImplementations.ts"
|
|
1156
1113
|
},
|
|
1157
1114
|
{
|
|
1158
1115
|
"kind": "file",
|
|
@@ -1184,6 +1141,11 @@
|
|
|
1184
1141
|
"name": "generateTerminals.ts",
|
|
1185
1142
|
"path": "packages/genesis/scripts/generateTerminals.ts"
|
|
1186
1143
|
},
|
|
1144
|
+
{
|
|
1145
|
+
"kind": "file",
|
|
1146
|
+
"name": "generateTimestampedResources.ts",
|
|
1147
|
+
"path": "packages/genesis/scripts/generateTimestampedResources.ts"
|
|
1148
|
+
},
|
|
1187
1149
|
{
|
|
1188
1150
|
"kind": "file",
|
|
1189
1151
|
"name": "generateTypes.ts",
|
|
@@ -1203,52 +1165,52 @@
|
|
|
1203
1165
|
"children": [
|
|
1204
1166
|
{
|
|
1205
1167
|
"kind": "directory",
|
|
1206
|
-
"name": "
|
|
1207
|
-
"path": "packages/genesis/src/
|
|
1168
|
+
"name": "declarations",
|
|
1169
|
+
"path": "packages/genesis/src/declarations",
|
|
1208
1170
|
"children": [
|
|
1209
1171
|
{
|
|
1210
1172
|
"kind": "directory",
|
|
1211
|
-
"name": "
|
|
1212
|
-
"path": "packages/genesis/src/
|
|
1173
|
+
"name": "resourceTypes",
|
|
1174
|
+
"path": "packages/genesis/src/declarations/resourceTypes",
|
|
1213
1175
|
"children": [
|
|
1214
|
-
{
|
|
1215
|
-
"kind": "directory",
|
|
1216
|
-
"name": "implementations",
|
|
1217
|
-
"path": "packages/genesis/src/genesis/resources/implementations",
|
|
1218
|
-
"children": [
|
|
1219
|
-
{
|
|
1220
|
-
"kind": "file",
|
|
1221
|
-
"name": "foo.ts",
|
|
1222
|
-
"path": "packages/genesis/src/genesis/resources/implementations/foo.ts"
|
|
1223
|
-
}
|
|
1224
|
-
]
|
|
1225
|
-
},
|
|
1226
|
-
{
|
|
1227
|
-
"kind": "file",
|
|
1228
|
-
"name": "booleans.json",
|
|
1229
|
-
"path": "packages/genesis/src/genesis/resources/booleans.json"
|
|
1230
|
-
},
|
|
1231
1176
|
{
|
|
1232
1177
|
"kind": "file",
|
|
1233
|
-
"name": "
|
|
1234
|
-
"path": "packages/genesis/src/
|
|
1178
|
+
"name": "resourceTypeShells.json",
|
|
1179
|
+
"path": "packages/genesis/src/declarations/resourceTypes/resourceTypeShells.json"
|
|
1235
1180
|
},
|
|
1236
1181
|
{
|
|
1237
1182
|
"kind": "file",
|
|
1238
|
-
"name": "
|
|
1239
|
-
"path": "packages/genesis/src/
|
|
1183
|
+
"name": "schemas.json",
|
|
1184
|
+
"path": "packages/genesis/src/declarations/resourceTypes/schemas.json"
|
|
1240
1185
|
}
|
|
1241
1186
|
]
|
|
1242
1187
|
},
|
|
1243
1188
|
{
|
|
1244
1189
|
"kind": "file",
|
|
1245
|
-
"name": "
|
|
1246
|
-
"path": "packages/genesis/src/
|
|
1190
|
+
"name": "booleans.json",
|
|
1191
|
+
"path": "packages/genesis/src/declarations/booleans.json"
|
|
1247
1192
|
},
|
|
1248
1193
|
{
|
|
1249
1194
|
"kind": "file",
|
|
1250
|
-
"name": "
|
|
1251
|
-
"path": "packages/genesis/src/
|
|
1195
|
+
"name": "naturals.json",
|
|
1196
|
+
"path": "packages/genesis/src/declarations/naturals.json"
|
|
1197
|
+
},
|
|
1198
|
+
{
|
|
1199
|
+
"kind": "file",
|
|
1200
|
+
"name": "tools.json",
|
|
1201
|
+
"path": "packages/genesis/src/declarations/tools.json"
|
|
1202
|
+
}
|
|
1203
|
+
]
|
|
1204
|
+
},
|
|
1205
|
+
{
|
|
1206
|
+
"kind": "directory",
|
|
1207
|
+
"name": "implementations",
|
|
1208
|
+
"path": "packages/genesis/src/implementations",
|
|
1209
|
+
"children": [
|
|
1210
|
+
{
|
|
1211
|
+
"kind": "file",
|
|
1212
|
+
"name": "tools.ts",
|
|
1213
|
+
"path": "packages/genesis/src/implementations/tools.ts"
|
|
1252
1214
|
}
|
|
1253
1215
|
]
|
|
1254
1216
|
},
|
|
@@ -1267,11 +1229,6 @@
|
|
|
1267
1229
|
"name": "coreProjection.ts",
|
|
1268
1230
|
"path": "packages/genesis/src/utils/coreProjection.ts"
|
|
1269
1231
|
},
|
|
1270
|
-
{
|
|
1271
|
-
"kind": "file",
|
|
1272
|
-
"name": "resources.ts",
|
|
1273
|
-
"path": "packages/genesis/src/utils/resources.ts"
|
|
1274
|
-
},
|
|
1275
1232
|
{
|
|
1276
1233
|
"kind": "file",
|
|
1277
1234
|
"name": "resourceTypes.ts",
|
|
@@ -1312,6 +1269,11 @@
|
|
|
1312
1269
|
"name": "standaloneZodSchemas.ts",
|
|
1313
1270
|
"path": "packages/genesis/src/utils/standaloneZodSchemas.ts"
|
|
1314
1271
|
},
|
|
1272
|
+
{
|
|
1273
|
+
"kind": "file",
|
|
1274
|
+
"name": "timestampedResources.ts",
|
|
1275
|
+
"path": "packages/genesis/src/utils/timestampedResources.ts"
|
|
1276
|
+
},
|
|
1315
1277
|
{
|
|
1316
1278
|
"kind": "file",
|
|
1317
1279
|
"name": "typeGeneration.ts",
|
|
@@ -1346,6 +1308,11 @@
|
|
|
1346
1308
|
"name": "package.json",
|
|
1347
1309
|
"path": "packages/genesis/package.json"
|
|
1348
1310
|
},
|
|
1311
|
+
{
|
|
1312
|
+
"kind": "file",
|
|
1313
|
+
"name": "toolproof.json",
|
|
1314
|
+
"path": "packages/genesis/toolproof.json"
|
|
1315
|
+
},
|
|
1349
1316
|
{
|
|
1350
1317
|
"kind": "file",
|
|
1351
1318
|
"name": "tsconfig.json",
|
|
@@ -1389,11 +1356,6 @@
|
|
|
1389
1356
|
"kind": "file",
|
|
1390
1357
|
"name": "tsconfig.json",
|
|
1391
1358
|
"path": "packages/language-server/tsconfig.json"
|
|
1392
|
-
},
|
|
1393
|
-
{
|
|
1394
|
-
"kind": "file",
|
|
1395
|
-
"name": "tsconfig.tsbuildinfo",
|
|
1396
|
-
"path": "packages/language-server/tsconfig.tsbuildinfo"
|
|
1397
1359
|
}
|
|
1398
1360
|
]
|
|
1399
1361
|
},
|
|
@@ -1535,11 +1497,6 @@
|
|
|
1535
1497
|
"kind": "file",
|
|
1536
1498
|
"name": "tsconfig.json",
|
|
1537
1499
|
"path": "packages/lib/tsconfig.json"
|
|
1538
|
-
},
|
|
1539
|
-
{
|
|
1540
|
-
"kind": "file",
|
|
1541
|
-
"name": "tsconfig.tsbuildinfo",
|
|
1542
|
-
"path": "packages/lib/tsconfig.tsbuildinfo"
|
|
1543
1500
|
}
|
|
1544
1501
|
]
|
|
1545
1502
|
},
|
|
@@ -1652,11 +1609,6 @@
|
|
|
1652
1609
|
"kind": "file",
|
|
1653
1610
|
"name": "tsconfig.json",
|
|
1654
1611
|
"path": "packages/persistence/tsconfig.json"
|
|
1655
|
-
},
|
|
1656
|
-
{
|
|
1657
|
-
"kind": "file",
|
|
1658
|
-
"name": "tsconfig.tsbuildinfo",
|
|
1659
|
-
"path": "packages/persistence/tsconfig.tsbuildinfo"
|
|
1660
1612
|
}
|
|
1661
1613
|
]
|
|
1662
1614
|
},
|
|
@@ -1734,11 +1686,6 @@
|
|
|
1734
1686
|
"kind": "file",
|
|
1735
1687
|
"name": "tsconfig.json",
|
|
1736
1688
|
"path": "packages/validation/tsconfig.json"
|
|
1737
|
-
},
|
|
1738
|
-
{
|
|
1739
|
-
"kind": "file",
|
|
1740
|
-
"name": "tsconfig.tsbuildinfo",
|
|
1741
|
-
"path": "packages/validation/tsconfig.tsbuildinfo"
|
|
1742
1689
|
}
|
|
1743
1690
|
]
|
|
1744
1691
|
},
|
|
@@ -1809,11 +1756,6 @@
|
|
|
1809
1756
|
"kind": "file",
|
|
1810
1757
|
"name": "tsconfig.json",
|
|
1811
1758
|
"path": "packages/visualization/tsconfig.json"
|
|
1812
|
-
},
|
|
1813
|
-
{
|
|
1814
|
-
"kind": "file",
|
|
1815
|
-
"name": "tsconfig.tsbuildinfo",
|
|
1816
|
-
"path": "packages/visualization/tsconfig.tsbuildinfo"
|
|
1817
1759
|
}
|
|
1818
1760
|
]
|
|
1819
1761
|
},
|
|
@@ -1875,11 +1817,6 @@
|
|
|
1875
1817
|
"kind": "file",
|
|
1876
1818
|
"name": "tsconfig.json",
|
|
1877
1819
|
"path": "packages/vscode-extension/tsconfig.json"
|
|
1878
|
-
},
|
|
1879
|
-
{
|
|
1880
|
-
"kind": "file",
|
|
1881
|
-
"name": "tsconfig.tsbuildinfo",
|
|
1882
|
-
"path": "packages/vscode-extension/tsconfig.tsbuildinfo"
|
|
1883
1820
|
}
|
|
1884
1821
|
]
|
|
1885
1822
|
}
|
|
@@ -12,9 +12,12 @@
|
|
|
12
12
|
"DescriptionFacet"
|
|
13
13
|
],
|
|
14
14
|
"JsonSchemaObject": [],
|
|
15
|
-
"
|
|
15
|
+
"AtomicTypeRef": [
|
|
16
16
|
"ResourceTypeHandle"
|
|
17
17
|
],
|
|
18
|
+
"TypeRef": [
|
|
19
|
+
"AtomicTypeRef"
|
|
20
|
+
],
|
|
18
21
|
"Embedding": [
|
|
19
22
|
"ToolHandle",
|
|
20
23
|
"ResourcePointer"
|
|
@@ -51,7 +54,6 @@
|
|
|
51
54
|
"RoleSpec"
|
|
52
55
|
],
|
|
53
56
|
"ToolHandle": [],
|
|
54
|
-
"ToolKind": [],
|
|
55
57
|
"Tool": [
|
|
56
58
|
"ToolHandle",
|
|
57
59
|
"RoleSpec",
|
|
@@ -279,5 +281,17 @@
|
|
|
279
281
|
"Boolean": [],
|
|
280
282
|
"TimestampedResource": [
|
|
281
283
|
"Resource"
|
|
284
|
+
],
|
|
285
|
+
"JsonScalarLink": [],
|
|
286
|
+
"Suite": [
|
|
287
|
+
"Name",
|
|
288
|
+
"Description",
|
|
289
|
+
"ResourceType",
|
|
290
|
+
"Tool"
|
|
291
|
+
],
|
|
292
|
+
"SuiteIngestorInputSchema": [
|
|
293
|
+
"Name",
|
|
294
|
+
"JsonScalarLink",
|
|
295
|
+
"Description"
|
|
282
296
|
]
|
|
283
297
|
}
|
|
@@ -1,8 +1,5 @@
|
|
|
1
1
|
[
|
|
2
2
|
"Embedding",
|
|
3
|
-
"ResourceType",
|
|
4
|
-
"ToolKind",
|
|
5
|
-
"Tool",
|
|
6
3
|
"ProvenanceKind",
|
|
7
4
|
"StrategyStateInputKind",
|
|
8
5
|
"ToolStepPathSlotFacet",
|
|
@@ -13,5 +10,7 @@
|
|
|
13
10
|
"Goal",
|
|
14
11
|
"Error",
|
|
15
12
|
"Boolean",
|
|
16
|
-
"TimestampedResource"
|
|
13
|
+
"TimestampedResource",
|
|
14
|
+
"Suite",
|
|
15
|
+
"SuiteIngestorInputSchema"
|
|
17
16
|
]
|