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

Function cursor_event_cwd

src/hooks/cursor.rs:510–516  ·  view source on GitHub ↗
(event: &Value)

Source from the content-addressed store, hash-verified

508}
509
510fn cursor_event_cwd(event: &Value) -> Option<PathBuf> {
511 event
512 .get("cwd")
513 .and_then(Value::as_str)
514 .filter(|s| !s.is_empty())
515 .map(PathBuf::from)
516}
517
518/// Extracts the repo-relative paths edited in a Cursor `afterFileEdit` event.
519///

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected