File
Blob: src/contracts/execution/primitives.ts
| 1 | import { eg, type TypeFromCodec } from "@cloudflare/util-en-garde"; |
| 2 | |
| 3 | export const StepStatus = eg.union([ |
| 4 | eg.literal("queued"), |
| 5 | eg.literal("running"), |
| 6 | eg.literal("passed"), |
| 7 | eg.literal("failed"), |
| 8 | ]); |
| 9 | export type StepStatus = TypeFromCodec<typeof StepStatus>; |
| 10 | |
| 11 | export const LogStream = eg.union([eg.literal("stdout"), eg.literal("stderr"), eg.literal("system")]); |
| 12 | export type LogStream = TypeFromCodec<typeof LogStream>; |