/** * Common JSON output envelope for every mswai command. * * Every command emits the same top-level shape: * { ok, cwd, dryRun, : { ok, message, ...extras } } * * - `ok` (top-level) = aggregated success across all populated features. * - `cwd` = absolute working directory used. * - `dryRun` = whether writes were skipped. * - feature keys = filled only by commands that touch that feature. * Each feature MUST contain `ok` and `message`; any * other keys are free-form and command-specific. * * Status uses the same envelope to describe **current disk state** — * `ok=true` means "no drift / fully installed", `message` summarises why. */ export type FeatureKey = 'repository' | 'instruction' | 'hook' | 'skill' | 'content' | 'mcp' | 'package'; export interface FeatureResult { ok: boolean; message: string; /** Free-form extras: per-agent details, lists of paths, action verbs, etc. */ [key: string]: unknown; } export interface CommandEnvelope { ok: boolean; cwd: string; dryRun: boolean; repository?: FeatureResult; instruction?: FeatureResult; hook?: FeatureResult; skill?: FeatureResult; content?: FeatureResult; mcp?: FeatureResult; package?: FeatureResult; /** Only populated on early/preflight failure (workspace check, parse error). */ error?: string; } /** Aggregate top-level `ok` from feature results (true iff every present feature is ok). */ export declare function aggregateOk(features: Partial>): boolean;