mirror of
https://github.com/profullstack/logicsrc.git
synced 2026-08-14 14:57:28 +00:00
Scaffold LogicSRC and CommandBoard plugins
This commit is contained in:
parent
59927e140c
commit
5c9ea821f6
67 changed files with 5958 additions and 0 deletions
19
packages/validators/src/schemas.ts
Normal file
19
packages/validators/src/schemas.ts
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
import agentSchema from "../../schemas/schemas/logicsrc-agent.schema.json" with { type: "json" };
|
||||
import eventSchema from "../../schemas/schemas/logicsrc-event.schema.json" with { type: "json" };
|
||||
import pluginSchema from "../../schemas/schemas/logicsrc-plugin.schema.json" with { type: "json" };
|
||||
import runSchema from "../../schemas/schemas/logicsrc-run.schema.json" with { type: "json" };
|
||||
import taskSchema from "../../schemas/schemas/logicsrc-task.schema.json" with { type: "json" };
|
||||
|
||||
export const schemas = {
|
||||
agent: agentSchema,
|
||||
event: eventSchema,
|
||||
plugin: pluginSchema,
|
||||
run: runSchema,
|
||||
task: taskSchema
|
||||
} as const;
|
||||
|
||||
export type SchemaKind = keyof typeof schemas;
|
||||
|
||||
export function isSchemaKind(value: string): value is SchemaKind {
|
||||
return value in schemas;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue