/** * Subagents v2 — Harness factory. */ import type { HarnessKind, SubagentHarness } from "./types.ts"; import { PiSubagentHarness } from "./harness-pi.ts"; import { CodexSubagentHarness } from "./harness-codex.ts"; export function createHarness(kind: HarnessKind): SubagentHarness { switch (kind) { case "pi": return new PiSubagentHarness(); case "codex": return new CodexSubagentHarness(); default: throw new Error(`Unknown harness: ${kind}`); } }