`memory/architecture.md` -> `memory:architecture`.
(path: &str)
| 589 | |
| 590 | /// `memory/architecture.md` -> `memory:architecture`. |
| 591 | fn memory_path_to_node_id(path: &str) -> Option<String> { |
| 592 | let name = path.strip_prefix("memory/")?.strip_suffix(".md")?; |
| 593 | if name.is_empty() { |
| 594 | return None; |
| 595 | } |
| 596 | Some(format!("memory:{}", name)) |
| 597 | } |
| 598 | |
| 599 | /// `intents/pimo-1/intent.md` -> `intent:PIMO-1` (nested paths keep |
| 600 | /// their inner segments, uppercased, matching the KG indexer). |
no test coverage detected