perf-lens
Version:
AI-powered frontend performance optimizer
19 lines • 736 B
TypeScript
import { type Finding } from './schema.js';
import { type AIClient } from './client.js';
export interface AgentOptions {
targetDir: string;
ignore?: string[];
maxFileSize?: number;
systemPrompt: string;
/** Prebuilt Lighthouse context string; goes into the first user message. */
lighthouseContext?: string;
verbose?: boolean;
maxTurns?: number;
}
/**
* Agent-mode analysis: the model investigates the codebase through tool use
* across multiple turns, then submits schema-validated findings via the
* report_findings tool. Hand-rolled loop — no framework.
*/
export declare function runAgentAnalysis(client: AIClient, options: AgentOptions): Promise<Finding[]>;
//# sourceMappingURL=agent.d.ts.map