`memory/architecture.md` -> `memory:architecture`.
(path: &str)
| 643 | |
| 644 | /// `memory/architecture.md` -> `memory:architecture`. |
| 645 | fn memory_path_to_node_id(path: &str) -> Option<String> { |
| 646 | let name = path.strip_prefix("memory/")?.strip_suffix(".md")?; |
| 647 | if name.is_empty() { |
| 648 | return None; |
| 649 | } |
| 650 | Some(format!("memory:{}", name)) |
| 651 | } |
| 652 | |
| 653 | /// `intents/pimo-1/intent.md` -> `intent:PIMO-1` (nested paths keep |
| 654 | /// their inner segments, uppercased, matching the KG indexer). |
no test coverage detected