pub async fn detect_memories_smart(
text: &str,
session_id: Option<&str>,
project_path: Option<&str>,
extractor: Option<&AiMemoryExtractor>,
) -> Vec<MemoryEntry>Expand description
Smart detection: AI-first with rule-based fallback.
Priority order:
- AI extraction (if text > 200 chars and extractor available)
- Rule-based fallback (if AI fails or text too short)