/** * `openlore blast-radius` — the pre-flight blast-radius guard's CLI + git-hook * surface (change: add-preflight-blast-radius-guard). * * Prints the conclusion-shaped structural briefing for the current diff (the * same briefing the `blast_radius` MCP tool returns), and can install an * ADVISORY pre-commit hook that emits it before every commit. Per the spec * (cli/PreflightHookIsOptInAndAdvisory, mcp-handlers/AdvisoryByDefault): the * hook is opt-in, advisory by default (exit 0), and only blocks a commit when * `.openlore/config.json` `blastRadius.block` names a high-risk pattern that the * diff actually triggers. Transient failures (no graph, not a repo) never block. */ import { Command } from 'commander'; import { type BlastRadiusBriefing } from '../../core/services/mcp-handlers/blast-radius.js'; import type { BlastRadiusBlockPattern } from '../../types/index.js'; export declare function installBlastRadiusHook(rootPath: string): Promise; export declare function uninstallBlastRadiusHook(rootPath: string): Promise; /** Which configured block patterns the briefing actually triggers. * Reads the uncapped `*.orphaned` counts, never the display-capped `items` arrays — * a triggering issue could otherwise be sliced off and the block silently fail to fire. * `block` is defensively coerced to an array by the caller before this runs. */ export declare function triggeredBlockPatterns(briefing: BlastRadiusBriefing, block: readonly BlastRadiusBlockPattern[]): BlastRadiusBlockPattern[]; export interface BlastRadiusCliOptions { cwd?: string; base?: string; json?: boolean; hook?: boolean; installHook?: boolean; uninstallHook?: boolean; } export declare function runBlastRadiusCli(opts: BlastRadiusCliOptions): Promise; export declare const blastRadiusCommand: Command; //# sourceMappingURL=blast-radius.d.ts.map