(event: &Value)
| 508 | } |
| 509 | |
| 510 | fn 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 | /// |
no test coverage detected