/** * `/insights` — agent activity summary over a configurable window. * * Source of truth: `~/.codeep/history/.json`, one file per agent * run, written by the agent loop. Schema (relevant fields): * { id, startTime, endTime, prompt, projectRoot, actions: [ * { type: 'write' | 'read' | 'execute' | …, path?, command?, timestamp } * ] * } * * We deliberately don't read sessions/*.json here — sessions store * chat history without tool-level detail, while history/ captures the * exact actions which is what users want to see ("which file did I * touch most this week?"). * * Cost / token usage is per-process and lost across restarts (the * token tracker is in-memory), so /insights reports actions and time * but not historical dollar amounts. The current session's cost still * shows in /cost. */ interface InsightsOptions { /** Days to look back. Default 7. */ days?: number; } /** * Format `/insights` output as Markdown. Returns a friendly empty-state * message when there's no history in the window — we don't error. */ export declare function formatInsights(opts?: InsightsOptions): string; export {};