feat: add module contracts and discovery
This commit is contained in:
@@ -0,0 +1,17 @@
|
||||
import { z } from "zod";
|
||||
|
||||
export const MODULE_LIFECYCLE_STAGES = [
|
||||
"discovered",
|
||||
"validated",
|
||||
"configured",
|
||||
"registered",
|
||||
"migrated",
|
||||
"initialized",
|
||||
"started",
|
||||
"stopped",
|
||||
"failed",
|
||||
] as const;
|
||||
|
||||
export const moduleLifecycleStageSchema = z.enum(MODULE_LIFECYCLE_STAGES);
|
||||
|
||||
export type ModuleLifecycleStage = z.infer<typeof moduleLifecycleStageSchema>;
|
||||
Reference in New Issue
Block a user