/** * aft_inspect — blocking-fresh codebase health inspection. */ import type { AgentToolResult, ExtensionAPI, Theme } from "@earendil-works/pi-coding-agent"; import { type Static, Type } from "typebox"; import type { PluginContext } from "../types.js"; import { type RenderContextLike, type RenderResultOptionsLike } from "./render-helpers.js"; declare const InspectParams: Type.TObject<{ sections: Type.TOptional]>>; scope: Type.TOptional]>>; topK: Type.TOptional; }>; export type InspectTerminalKind = "FRESH" | "INTERRUPTED" | "PHASE-FAILED"; /** A completed inspect phase, normalized once for every terminal outcome. */ export interface InspectPhaseEntry { id: string; producer?: string; category?: string; alsoSatisfied: string[]; } export interface InspectTerminal { kind: InspectTerminalKind; phases: InspectPhaseEntry[]; waitStampText?: string; failedPhase?: InspectPhaseEntry; failureReason?: string; failureDetail?: string; } /** * Parse phase entries shared by all terminal outcomes. If also_satisfied is * omitted, store it as an empty list so callers can always treat it as a list. */ export declare function parseInspectPhaseEntries(value: unknown): InspectPhaseEntry[]; /** * Use the same phase parser for every terminal outcome. Alternate discriminator * spellings keep older payload encodings compatible with the canonical shape. */ export declare function parseInspectTerminal(payload: unknown): InspectTerminal | undefined; /** Render every terminal honestly without reducing failures to a generic error. */ export declare function renderInspectTerminal(terminal: InspectTerminal, serverText?: string): string; /** Exported for renderer unit tests. */ export declare function buildInspectSections(payload: unknown, theme: Theme): string[]; /** Exported for renderer unit tests. */ export declare function renderInspectCall(args: Static, theme: Theme, context: RenderContextLike): import("@earendil-works/pi-tui").Text; /** Exported for renderer unit tests. */ export declare function renderInspectResult(result: AgentToolResult, theme: Theme, context: RenderContextLike, options?: RenderResultOptionsLike): import("@earendil-works/pi-tui").Component | import("@earendil-works/pi-tui").Text; export declare function registerInspectTool(pi: ExtensionAPI, ctx: PluginContext): void; export {}; //# sourceMappingURL=inspect.d.ts.map