/** * Review tools - report_finding for structured code review. * * Used by the reviewer agent to report findings in a structured way. * Hidden by default - only enabled when explicitly listed in agent's tools. * Reviewers finish via `yield` tool with SubmitReviewDetails schema. */ import type { AgentTool } from "@oh-my-pi/pi-agent-core"; import * as z from "zod/v4"; import type { Theme, ThemeColor } from "../modes/theme/theme"; export type FindingPriority = "P0" | "P1" | "P2" | "P3"; export interface FindingPriorityInfo { ord: 0 | 1 | 2 | 3; symbol: "status.error" | "status.warning" | "status.info"; color: ThemeColor; } export declare const PRIORITY_LABELS: FindingPriority[]; export declare function getPriorityInfo(priority: FindingPriority): FindingPriorityInfo; declare const ReportFindingParams: z.ZodObject<{ title: z.ZodString; body: z.ZodString; priority: z.ZodEnum<{ P0: "P0"; P1: "P1"; P2: "P2"; P3: "P3"; }>; confidence: z.ZodNumber; file_path: z.ZodString; line_start: z.ZodNumber; line_end: z.ZodNumber; }, z.core.$strict>; interface ReportFindingDetails { title: string; body: string; priority: FindingPriority; confidence: number; file_path: string; line_start: number; line_end: number; } export declare function parseReportFindingDetails(value: unknown): ReportFindingDetails | undefined; export declare const reportFindingTool: AgentTool; /** SubmitReviewDetails - used for rendering review results from yield tool */ export interface SubmitReviewDetails { overall_correctness: "correct" | "incorrect"; explanation: string; confidence: number; } export type { ReportFindingDetails };