Zod schema for parsing a harness profile from an external JSON or YAML config file.
Uses .strict() to reject unknown keys (catches typos early). Array
fields (excludedTools, excludedMiddleware) accept arrays of
strings; the result is passed to createHarnessProfile which
converts them to Set.
Does not include extraMiddleware — middleware instances cannot be
represented in JSON/YAML.
harnessProfileConfigSchema: ZodObject<__type, strict>import { readFileSync } from "fs";
import YAML from "yaml";
const raw = YAML.parse(readFileSync("profile.yaml", "utf-8"));
const config = harnessProfileConfigSchema.parse(raw);
const profile = createHarnessProfile(config);