run.ts
This file
Path
packages/protocol/src/domain/run.ts
16 lines · 543 bytes · TypeScript
Last changed by
Merge build/comments-cli-protocol-checks into mainoscabrielbefore adoptionc86204f
History of this fileTake it
1234567891011121314151617import { Schema } from "effect";
import { LaneName } from "../ids.ts";import { Command, Hostname } from "./common.ts";
export const RunBlock = Schema.Struct({ checks: Schema.Record(LaneName, Command), doctor: Schema.optionalKey(Command), image: Schema.optionalKey(Schema.NonEmptyString), setup: Schema.optionalKey(Command), /** Hosts setup may reach beyond the defaults; setup only, never the checks. */ setupEgress: Schema.optionalKey(Schema.Array(Hostname)), test: Command,});
export type RunBlock = typeof RunBlock.Type;