{"version":3,"sources":["../src/types/finding.ts"],"names":["SEVERITY_ORDER"],"mappings":"aAQO,IAAMA,EAAiB,CAAC,UAAA,CAAY,MAAA,CAAQ,QAAA,CAAU,MAAO,MAAM","file":"finding.cjs","sourcesContent":["/**\n * The canonical finding shape for agents that surface issues — code review,\n * security audit, compliance/screening, contract review. A shared type so\n * findings from different agents are interoperable: dashboards, eval scorers,\n * and AKOS workflow steps can consume them without parsing free text.\n */\n\n/** Ordered most→least severe; use for sorting / gate thresholds. */\nexport const SEVERITY_ORDER = ['critical', 'high', 'medium', 'low', 'info'] as const\n\n/** Derived from SEVERITY_ORDER so the union and the order can never drift apart. */\nexport type Severity = (typeof SEVERITY_ORDER)[number]\n\nexport interface Finding {\n  /** Stable id within a run (for dedup / referencing). */\n  id: string\n  severity: Severity\n  /** Short imperative headline. */\n  title: string\n  /** Why it matters, concretely. */\n  detail: string\n  /** Optional category/dimension, e.g. 'security' | 'correctness' | 'privilege'. */\n  category?: string\n  /** Where it is — file:line, URL, clause id, field path. */\n  location?: string\n  /** 0..1 confidence the finding is real and actionable. */\n  confidence?: number\n  /** What to do instead. */\n  remediation?: string\n  /** Optional standards reference, e.g. 'CWE-89'. */\n  ref?: string\n  metadata?: Record<string, unknown>\n}\n"]}