import type { Prompter } from '../verify/prompter.js'; /** * Phase 108 — host auto-wire. When a Claude Code workspace (`.claude/`) is * present, run `cadence-host-claude-code install` in the same step so init is * a one-command front door. Core never imports host code: the install runs via * a subprocess spawn (mirrors `start.ts`'s launcher discipline). * * Decision table (after `.claude/` is confirmed present): * --skip-host-wire → skip * --wire-host → wire * prompter available → offer [Y/n] (TTY, or scripted via CADENCE_PROMPTER_SCRIPT) * else (non-TTY, no flag) → skip + print a pointer (never hangs — AC-4) * * The spawn target is overridable for tests via `CADENCE_HOST_WIRE_CMD` * (a JSON array `["cmd","arg",…]`, or a bare shell string). * * Phase 189 (T1) — extracted out of `cli/commands/init.ts` into this shared * module so both `cadence init --full` and the new `cadence onboard` command * can call the same host-wire logic instead of duplicating the spawn seam. */ export type InitHostTarget = 'claude' | 'codex'; export declare function hostWireDisplay(target: InitHostTarget): string; export declare function spawnHostWire(cwd: string, target: InitHostTarget): Promise; export declare function maybeWireHost(cwd: string, opts: { wireHost?: boolean | undefined; skipHostWire?: boolean | undefined; host?: string | undefined; }, prompter: Prompter | null): Promise<{ wired: boolean; offered: boolean; }>; //# sourceMappingURL=host-wire.d.ts.map