Files
Ekklesia/packages/contracts/src/module-lifecycle.ts
T
ekklesia 57552a21a4
CI / verify (push) Has been cancelled
CI / infrastructure-smoke (push) Has been cancelled
feat: add module contracts and discovery
2026-07-12 22:14:01 -05:00

18 lines
367 B
TypeScript

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>;