MCPcopy Create free account
hub / github.com/ScriptedAlchemy/tracedecay / cursor_project_root_from_event

Function cursor_project_root_from_event

src/hooks/cursor.rs:442–445  ·  view source on GitHub ↗
(event_json: &str)

Source from the content-addressed store, hash-verified

440}
441
442pub fn cursor_project_root_from_event(event_json: &str) -> Option<PathBuf> {
443 let parsed: Value = serde_json::from_str(event_json).ok()?;
444 cursor_project_root_from_parsed_event(&parsed)
445}
446
447fn cursor_project_root_candidate_from_parsed_event(parsed: &Value) -> Option<PathBuf> {
448 cursor_project_root_from_parsed_event(parsed).or_else(|| {

Tested by

no test coverage detected