/** * manifest integration-check * * Umbrella command that proves a downstream repo is correctly integrated * with the Manifest governance contract. Wraps the existing detectors and * adds three new checks tailored to the v0.5-era runtime surface: * * 1. Static governance — delegates to `audit-governance` (5 detectors). * 2. Bypass registry — delegates to `audit-bypasses`. * 3. Dispatcher route — confirms the canonical /api/manifest/[entity]/ * commands/[command]/route.ts exists. The `route-drift` detector * flags routes that bypass the dispatcher; this complements it by * asserting the dispatcher itself is present. * 4. Runtime smoke — wires MemoryAuditSink + MemoryOutboxStore into * a tiny RuntimeEngine and asserts exactly-one-audit + outbox * enqueue. Proves the adapter contracts function end-to-end in * THIS installed build of @angriff36/manifest. * 5. Package shape — programmatic import of every documented * subpath export + `npm pack --dry-run` audit of the tarball. * * Application-agnostic. The downstream repo's path is supplied via the * positional argument (default: cwd). The command performs no writes; * temporary registry files emitted during the check live in memory. */ export interface IntegrationCheckOptions { /** Downstream repo root. Default: process.cwd(). */ root?: string; /** Path to a commands registry JSON (commands.json). Optional. */ commandsRegistry?: string; /** Path to a bypass registry JSON (bypasses.json). Optional. */ bypassRegistry?: string; /** Skip the runtime smoke (e.g. when only running static analysis). */ skipRuntimeSmoke?: boolean; /** Skip the package-shape check. */ skipPackageShape?: boolean; /** Skip the `npm pack --dry-run` sub-check inside package shape. */ skipTarball?: boolean; /** Output format. */ format?: 'text' | 'json'; /** Treat warnings as errors when deciding the process exit code. */ strict?: boolean; /** * Absolute path to the @angriff36/manifest package root. Defaults to a * walk-up from this file. The package-shape check uses this for * `npm pack --dry-run`. */ packageRoot?: string; } export interface IntegrationCheckSection { name: string; ok: boolean; /** Short human-readable summary, e.g. "0 errors, 0 warnings". */ summary: string; /** Section-specific structured payload, included verbatim in JSON output. */ detail: unknown; } export interface IntegrationCheckResult { ok: boolean; sections: IntegrationCheckSection[]; } export declare function integrationCheckCommand(options?: IntegrationCheckOptions): Promise; //# sourceMappingURL=integration-check.d.ts.map