@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,75 @@
|
|
|
1
|
+
// Auto-generated from standalone schema 'StrategyTrace'. Do not edit.
|
|
2
|
+
import { z } from 'zod/v4';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export const StrategyTraceZodGenerationWarnings = [
|
|
6
|
+
{
|
|
7
|
+
"path": "$defs.StepArray.uniqueItems",
|
|
8
|
+
"message": "uniqueItems not enforced by generated Zod."
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"path": "$defs.StrategyStateInputEntryByRoleName.propertyNames",
|
|
12
|
+
"message": "Unsupported propertyNames $ref target; keys will not be validated."
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"path": "$defs.BranchStep.allOfMerged.properties.cases.uniqueItems",
|
|
16
|
+
"message": "uniqueItems not enforced by generated Zod."
|
|
17
|
+
}
|
|
18
|
+
] as const;
|
|
19
|
+
|
|
20
|
+
const BaseResourceSchema: z.ZodTypeAny = z.lazy(() => z.object({ "value": z.any(), "id": ResourceIdSchema, "resourceTypeHandle": ResourceTypeHandleSchema, "version": z.literal(1), "provenance": ProvenanceSchema }).strict());
|
|
21
|
+
const BaseStrategySchema: z.ZodTypeAny = z.lazy(() => z.object({ "handle": StrategyHandleSchema, "strategyKind": StrategyKindSchema }));
|
|
22
|
+
const BaseTracePointSchema: z.ZodTypeAny = z.lazy(() => z.object({ "tracePointKind": TracePointKindSchema, "strategyHandle": StrategyHandleSchema, "threadIndex": NaturalSchema, "tracePointIndex": NaturalSchema }));
|
|
23
|
+
const BranchStepSchema: z.ZodTypeAny = z.lazy(() => z.object({ "stepKind": z.intersection(z.literal("branch"), StepKindSchema), "cases": z.array(CaseSchema).min(1) }));
|
|
24
|
+
const CaseSchema: z.ZodTypeAny = z.lazy(() => z.object({ "when": ToolStepSchema, "what": ToolStepSchema }).strict());
|
|
25
|
+
const DeferredStrategyProvenanceSchema: z.ZodTypeAny = z.lazy(() => z.object({ "provenanceKind": z.literal("strategy"), "outputAddress": OutputAddressSchema }).strict());
|
|
26
|
+
const ExternalInputPotentialSchema: z.ZodTypeAny = z.lazy(() => z.object({ "strategyStateInputKind": z.literal("externalInputPotential"), "id": ResourceIdSchema, "resourceTypeHandle": ResourceTypeHandleSchema }).strict());
|
|
27
|
+
const ForStepSchema: z.ZodTypeAny = z.lazy(() => z.object({ "stepKind": z.intersection(z.literal("for"), StepKindSchema), "case": CaseSchema }));
|
|
28
|
+
const GenesisProvenanceSchema: z.ZodTypeAny = z.lazy(() => z.object({ "provenanceKind": z.literal("genesis") }).strict());
|
|
29
|
+
const GraphEndTracePointSchema: z.ZodTypeAny = z.lazy(() => z.object({ "tracePointKind": z.intersection(TracePointKindSchema, z.literal("graph_end")), "strategyHandle": StrategyHandleSchema, "threadIndex": NaturalSchema, "tracePointIndex": NaturalSchema }));
|
|
30
|
+
const GraphStartTracePointSchema: z.ZodTypeAny = z.lazy(() => z.object({ "tracePointKind": z.intersection(TracePointKindSchema, z.literal("graph_start")), "strategyHandle": StrategyHandleSchema, "threadIndex": NaturalSchema, "tracePointIndex": NaturalSchema, "threadedStrategy": ThreadedStrategySchema }));
|
|
31
|
+
const InputPotentialSchema: z.ZodTypeAny = z.lazy(() => z.union([ExternalInputPotentialSchema, InternalInputPotentialSchema]));
|
|
32
|
+
const InputResourceSchema: z.ZodTypeAny = z.lazy(() => z.object({ "strategyStateInputKind": z.literal("inputResource"), "value": z.any(), "id": ResourceIdSchema, "resourceTypeHandle": ResourceTypeHandleSchema, "version": z.literal(1), "provenance": ProvenanceSchema }).strict());
|
|
33
|
+
const InternalInputPotentialSchema: z.ZodTypeAny = z.lazy(() => z.object({ "strategyStateInputKind": z.literal("internalInputPotential"), "id": ResourceIdSchema, "resourceTypeHandle": ResourceTypeHandleSchema, "provenance": DeferredStrategyProvenanceSchema }).strict());
|
|
34
|
+
const InterruptTracePointSchema: z.ZodTypeAny = z.lazy(() => z.object({ "tracePointKind": z.intersection(TracePointKindSchema, z.literal("interrupt")), "strategyHandle": StrategyHandleSchema, "threadIndex": NaturalSchema, "tracePointIndex": NaturalSchema, "counterSnapshot": TracePointCounterSnapshotSchema, "toolStepPath": ThreadedToolStepPathSchema, "delta": z.object({ "stepsMutation": z.object({ "insertAt": NaturalSchema, "insertedSteps": StepArraySchema }).optional(), "strategyStateDelta": ThreadedStrategyStateSchema.optional(), "interruptData": z.intersection(z.union([z.object({ }), z.null()]), z.object({ })) }) }));
|
|
35
|
+
const NameSchema: z.ZodTypeAny = z.lazy(() => z.string().min(1).regex(new RegExp("^[A-Z][a-zA-Z0-9]*$")));
|
|
36
|
+
const NaturalSchema: z.ZodTypeAny = z.lazy(() => z.number().int().min(0));
|
|
37
|
+
const OutputAddressSchema: z.ZodTypeAny = z.lazy(() => z.object({ "roleName": RoleNameSchema, "toolStepPath": ToolStepPathSchema }).strict());
|
|
38
|
+
const ProvenanceSchema: z.ZodTypeAny = z.lazy(() => z.union([GenesisProvenanceSchema, StrategyProvenanceSchema]));
|
|
39
|
+
const ProvenanceFacetSchema: z.ZodTypeAny = z.lazy(() => z.object({ "provenance": ProvenanceSchema }));
|
|
40
|
+
const ResourceIdSchema: z.ZodTypeAny = z.lazy(() => z.string().regex(new RegExp("^RESOURCE-.+$")));
|
|
41
|
+
const ResourcePointerSchema: z.ZodTypeAny = z.lazy(() => z.object({ "id": ResourceIdSchema, "resourceTypeHandle": ResourceTypeHandleSchema, "version": z.literal(1), "provenance": ProvenanceSchema }).strict());
|
|
42
|
+
const ResourceTypeHandleSchema: z.ZodTypeAny = z.lazy(() => z.string().regex(new RegExp("^TYPE-.+$")));
|
|
43
|
+
const RoleBindingSpecSchema: z.ZodTypeAny = z.lazy(() => z.object({ "inputBindings": RoleNameArraySchema, "outputBindings": RoleNameArraySchema }).strict());
|
|
44
|
+
const RoleBindingSpecFacetSchema: z.ZodTypeAny = z.lazy(() => z.object({ "roleBindingSpec": RoleBindingSpecSchema }));
|
|
45
|
+
const RoleNameSchema: z.ZodTypeAny = z.lazy(() => NameSchema);
|
|
46
|
+
const RoleNameArraySchema: z.ZodTypeAny = z.lazy(() => z.array(RoleNameSchema));
|
|
47
|
+
const StepSchema: z.ZodTypeAny = z.lazy(() => z.union([ToolStepSchema, BranchStepSchema, WhileStepSchema, ForStepSchema]));
|
|
48
|
+
const StepArraySchema: z.ZodTypeAny = z.lazy(() => z.array(StepSchema));
|
|
49
|
+
const StepArrayArraySchema: z.ZodTypeAny = z.lazy(() => z.array(StepArraySchema));
|
|
50
|
+
const StepKindSchema: z.ZodTypeAny = z.lazy(() => z.union([z.literal("tool"), z.literal("branch"), z.literal("while"), z.literal("for")]));
|
|
51
|
+
const StepKindFacetSchema: z.ZodTypeAny = z.lazy(() => z.object({ "stepKind": StepKindSchema }));
|
|
52
|
+
const StepsByThreadIndexFacetSchema: z.ZodTypeAny = z.lazy(() => z.object({ "stepsByThreadIndex": StepArrayArraySchema }));
|
|
53
|
+
const StrategyHandleSchema: z.ZodTypeAny = z.lazy(() => z.string().regex(new RegExp("^STRATEGY-.+$")));
|
|
54
|
+
const StrategyKindSchema: z.ZodTypeAny = z.lazy(() => z.union([z.literal("unthreaded"), z.literal("threaded")]));
|
|
55
|
+
const StrategyProvenanceSchema: z.ZodTypeAny = z.lazy(() => z.object({ "provenanceKind": z.literal("strategy"), "strategyTraceHandle": StrategyTraceHandleSchema, "outputAddress": OutputAddressSchema }).strict());
|
|
56
|
+
const StrategyStateInputEntrySchema: z.ZodTypeAny = z.lazy(() => z.union([InputPotentialSchema, InputResourceSchema]));
|
|
57
|
+
const StrategyStateInputEntryByRoleNameSchema: z.ZodTypeAny = z.lazy(() => z.record(z.string(), StrategyStateInputEntrySchema));
|
|
58
|
+
const StrategyTraceHandleSchema: z.ZodTypeAny = z.lazy(() => z.string().regex(new RegExp("^STRATEGY_TRACE-.+$")));
|
|
59
|
+
const ThreadedStrategySchema: z.ZodTypeAny = z.lazy(() => z.object({ "handle": StrategyHandleSchema, "strategyKind": z.intersection(StrategyKindSchema, z.literal("threaded")), "stepsByThreadIndex": StepArrayArraySchema, "strategyState": ThreadedStrategyStateSchema }).strict());
|
|
60
|
+
const ThreadedStrategyFacetSchema: z.ZodTypeAny = z.lazy(() => z.object({ "threadedStrategy": ThreadedStrategySchema }));
|
|
61
|
+
const ThreadedStrategyStateSchema: z.ZodTypeAny = z.lazy(() => z.record(z.string(), StrategyStateInputEntryByRoleNameSchema).superRefine((obj, ctx) => { for (const k of Object.keys(obj)) { if (!new RegExp("^/threads/[0-9]+/steps/[0-9]+/(self|case/when|case/what|cases/[0-9]+/when|cases/[0-9]+/what)$").test(k)) ctx.addIssue({ code: 'custom', message: 'Invalid key: ' + k }); } }));
|
|
62
|
+
const ThreadedStrategyStateFacetSchema: z.ZodTypeAny = z.lazy(() => z.object({ "strategyState": ThreadedStrategyStateSchema }));
|
|
63
|
+
const ThreadedToolStepPathSchema: z.ZodTypeAny = z.lazy(() => z.string().regex(new RegExp("^/threads/[0-9]+/steps/[0-9]+/(self|case/when|case/what|cases/[0-9]+/when|cases/[0-9]+/what)$")));
|
|
64
|
+
const TickTracePointSchema: z.ZodTypeAny = z.lazy(() => z.object({ "tracePointKind": z.intersection(TracePointKindSchema, z.literal("tick")), "strategyHandle": StrategyHandleSchema, "threadIndex": NaturalSchema, "tracePointIndex": NaturalSchema, "counterSnapshot": TracePointCounterSnapshotSchema, "toolStepPath": ThreadedToolStepPathSchema, "delta": TracePointDeltaSchema }));
|
|
65
|
+
const ToolHandleSchema: z.ZodTypeAny = z.lazy(() => z.string().regex(new RegExp("^TOOL-.+$")));
|
|
66
|
+
const ToolStepSchema: z.ZodTypeAny = z.lazy(() => z.object({ "stepKind": z.intersection(z.literal("tool"), StepKindSchema), "toolHandle": ToolHandleSchema, "roleBindingSpec": RoleBindingSpecSchema }));
|
|
67
|
+
const ToolStepPathSchema: z.ZodTypeAny = z.lazy(() => z.union([UnthreadedToolStepPathSchema, ThreadedToolStepPathSchema]));
|
|
68
|
+
const TracePointSchema: z.ZodTypeAny = z.lazy(() => z.union([GraphStartTracePointSchema, TickTracePointSchema, InterruptTracePointSchema, GraphEndTracePointSchema]));
|
|
69
|
+
const TracePointCounterSnapshotSchema: z.ZodTypeAny = z.lazy(() => z.object({ "stepCounterAfter": NaturalSchema.optional(), "iterationCounterAfter": NaturalSchema.optional() }));
|
|
70
|
+
const TracePointDeltaSchema: z.ZodTypeAny = z.lazy(() => z.object({ "stepsMutation": z.object({ "insertAt": NaturalSchema, "insertedSteps": StepArraySchema }).optional(), "strategyStateDelta": ThreadedStrategyStateSchema.optional(), "interruptData": z.union([z.object({ }), z.null()]).optional() }));
|
|
71
|
+
const TracePointKindSchema: z.ZodTypeAny = z.lazy(() => z.union([z.literal("graph_start"), z.literal("tick"), z.literal("interrupt"), z.literal("graph_end")]));
|
|
72
|
+
const UnthreadedToolStepPathSchema: z.ZodTypeAny = z.lazy(() => z.string().regex(new RegExp("^/steps/[0-9]+/(self|case/when|case/what|cases/[0-9]+/when|cases/[0-9]+/what)$")));
|
|
73
|
+
const WhileStepSchema: z.ZodTypeAny = z.lazy(() => z.object({ "stepKind": z.intersection(z.literal("while"), StepKindSchema), "case": CaseSchema }));
|
|
74
|
+
|
|
75
|
+
export const StrategyTraceSchema: z.ZodTypeAny = z.lazy(() => z.object({ "handle": StrategyTraceHandleSchema, "strategyHandle": StrategyHandleSchema, "tracePoints": z.array(TracePointSchema) }).strict());
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// Auto-generated from standalone schema 'Tool'. Do not edit.
|
|
2
|
+
import { z } from 'zod/v4';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export const ToolZodGenerationWarnings = [
|
|
6
|
+
{
|
|
7
|
+
"path": "$defs.RoleValueByName.propertyNames",
|
|
8
|
+
"message": "Unsupported propertyNames $ref target; keys will not be validated."
|
|
9
|
+
}
|
|
10
|
+
] as const;
|
|
11
|
+
|
|
12
|
+
const ContainerKindSchema: z.ZodTypeAny = z.lazy(() => z.union([z.literal("scalar"), z.literal("array"), z.literal("map")]));
|
|
13
|
+
const DescriptionSchema: z.ZodTypeAny = z.lazy(() => z.string().min(1));
|
|
14
|
+
const DescriptionFacetSchema: z.ZodTypeAny = z.lazy(() => z.object({ "description": DescriptionSchema }));
|
|
15
|
+
const DocumentationSpecSchema: z.ZodTypeAny = z.lazy(() => z.object({ "name": NameSchema, "symbol": z.string().optional(), "description": DescriptionSchema }));
|
|
16
|
+
const JsonSchemaObjectSchema: z.ZodTypeAny = z.lazy(() => z.object({ "$schema": z.literal("https://json-schema.org/draft/2020-12/schema") }).passthrough());
|
|
17
|
+
const NameSchema: z.ZodTypeAny = z.lazy(() => z.string().min(1).regex(new RegExp("^[A-Z][a-zA-Z0-9]*$")));
|
|
18
|
+
const NameFacetSchema: z.ZodTypeAny = z.lazy(() => z.object({ "name": NameSchema }));
|
|
19
|
+
const ResourceTypeHandleSchema: z.ZodTypeAny = z.lazy(() => z.string().regex(new RegExp("^TYPE-.+$")));
|
|
20
|
+
const RoleNameSchema: z.ZodTypeAny = z.lazy(() => NameSchema);
|
|
21
|
+
const RoleNameArraySchema: z.ZodTypeAny = z.lazy(() => z.array(RoleNameSchema));
|
|
22
|
+
const RoleSpecSchema: z.ZodTypeAny = z.lazy(() => z.object({ "inputRoleValueByName": RoleValueByNameSchema, "outputRoleValueByName": RoleValueByNameSchema, "refinementSchema": JsonSchemaObjectSchema.optional() }).strict());
|
|
23
|
+
const RoleSpecFacetSchema: z.ZodTypeAny = z.lazy(() => z.object({ "roleSpec": RoleSpecSchema }));
|
|
24
|
+
const RoleValueSchema: z.ZodTypeAny = z.lazy(() => z.intersection(z.intersection(z.intersection(z.intersection(z.object({ "typeRef": TypeRefSchema, "refinementSchema": JsonSchemaObjectSchema.optional(), "containerKind": ContainerKindSchema, "containerSchema": JsonSchemaObjectSchema.optional(), "mapKeys": RoleNameArraySchema.optional() }).strict(), z.any()), z.any()), z.any()), z.any()));
|
|
25
|
+
const RoleValueByNameSchema: z.ZodTypeAny = z.lazy(() => z.record(z.string(), RoleValueSchema));
|
|
26
|
+
const ToolHandleSchema: z.ZodTypeAny = z.lazy(() => z.string().regex(new RegExp("^TOOL-.+$")));
|
|
27
|
+
const TypeRefSchema: z.ZodTypeAny = z.lazy(() => z.union([z.object({ "resourceTypeHandle": ResourceTypeHandleSchema }).strict(), z.object({ "roleSchema": z.object({ "$ref": z.string().regex(new RegExp("^#[A-Z][a-zA-Z0-9]*$")) }).strict() }).strict()]));
|
|
28
|
+
|
|
29
|
+
export const ToolSchema: z.ZodTypeAny = z.lazy(() => z.intersection(z.intersection(z.intersection(z.intersection(z.object({ "handle": ToolHandleSchema, "isTemplate": z.boolean(), "templateToolHandle": ToolHandleSchema.optional(), "instantiationRoleSpec": RoleSpecSchema.optional() }).strict(), DocumentationSpecSchema), z.any()), z.any()), RoleSpecFacetSchema));
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
// Auto-generated barrel file. Do not edit.
|
|
2
|
+
export { BooleanSchema } from './Boolean.js';
|
|
3
|
+
export { ErrorSchema } from './Error.js';
|
|
4
|
+
export { GoalSchema } from './Goal.js';
|
|
5
|
+
export { NaturalSchema } from './Natural.js';
|
|
6
|
+
export { ResourceSchema } from './Resource.js';
|
|
7
|
+
export { ResourceTypeSchema } from './ResourceType.js';
|
|
8
|
+
export { StrategySchema } from './Strategy.js';
|
|
9
|
+
export { StrategyTraceSchema } from './StrategyTrace.js';
|
|
10
|
+
export { ToolSchema } from './Tool.js';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {}
|