/** * Risk detectors: what the run touched that it probably shouldn't have. * * Two principles here: * * - Attempted counts. A destructive command that a permission prompt or hook blocked * still tells you what the agent was willing to do. Blocked attempts are reported * separately, at reduced severity, never ignored. * - Severity is about blast radius, not about how scary the string looks. Deleting a * build directory is not the same event as deleting a working tree. */ import { type Finding, type Run, type Severity } from "../model.js"; import type { Verification } from "./verify.js"; export type PathTier = "secret" | "config" | null; export declare function classifyPath(path: string): { tier: PathTier; why: string | null; }; export declare function outsideProject(path: string, project: string | null): boolean; export declare function classifyCommandRisk(cmd: string): { severity: Severity; why: string; } | null; export declare function detectSensitiveFiles(run: Run): Finding[]; export declare function detectScopeEscape(run: Run): Finding[]; export declare function detectDestructiveCommands(run: Run): Finding[]; export declare function detectBlastRadius(run: Run, verification: Verification): Finding[]; export declare function detectWastedSpend(run: Run): Finding[]; export declare function allRiskFindings(run: Run, verification: Verification): Finding[];