/** * analyze Tool * * Session analytics and insights engine. Provides structured analysis * of session history, closing reflections, agent patterns, and more. * * Starts with "summary" lens; expanded with additional lenses in * (Tier 1). * * Performance target: 3000ms */ import type { Project, PerformanceData } from "../types/index.js"; import type { SummaryAnalytics, BlindspotsData } from "../services/analytics.js"; export type AnalyzeLens = "summary" | "reflections" | "blindspots"; export interface AnalyzeParams { lens?: AnalyzeLens; days?: number; project?: Project; agent?: string; format?: "json" | "text"; } export interface AnalyzeResult { success: boolean; lens: string; data?: SummaryAnalytics | ReflectionsData | BlindspotsData | null; text?: string; error?: string; performance: PerformanceData; } type ReflectionEntry = { text: string; session_id: string; agent: string; date: string; }; type ReflectionCategory = { entries: ReflectionEntry[]; total_count: number; }; interface ReflectionsData { period: { start: string; end: string; days: number; }; total_sessions_scanned: number; sessions_with_reflections: number; what_broke: ReflectionCategory; what_worked: ReflectionCategory; wrong_assumptions: ReflectionCategory; do_differently: ReflectionCategory; } export declare function analyze(params: AnalyzeParams): Promise; export {}; //# sourceMappingURL=analyze.d.ts.map