Skip to main content

detect_project

Function detect_project 

Source
pub fn detect_project(message: &str, projects: &[Project]) -> DetectionResult
Expand description

Try to detect a project from a user message.

Detection layers:

  1. Direct name match (“oxios” → project with name “oxios”)
  2. Path extraction (“/Volumes/MERCURY/PROJECTS/oxios” → project with matching path)
  3. Tag match (keywords → project tags)