/** * Profile Prompt — build analysis prompts for user profile learning. * * Pattern sourced from tickernelz/opencode-mem. * Analyzes user messages to identify preferences, patterns, and workflows. * Uses the connected OpenCode provider — no extra API keys needed. */ export interface ProfileAnalysisResult { preferences: Array<{ key: string; value: string; confidence: number; category: 'code-style' | 'communication' | 'tool' | 'workflow' | 'preference'; }>; detected_patterns: string[]; } /** * Build the analysis prompt for profile learning. * @param messages - Recent user messages to analyze * @returns System prompt + user prompt for the LLM */ export declare function buildProfileAnalysisPrompt(messages: string[]): { systemPrompt: string; userPrompt: string; }; /** * Parse the LLM response into a ProfileAnalysisResult. */ export declare function parseProfileAnalysisResponse(response: string): ProfileAnalysisResult | null;