The ` ` stem for a bare id or any accepted path form. Used both to build the human-facing messages and (sanitized) to KEY the attestation path.
(id_or_path: &str)
| 74 | /// The `<id>` stem for a bare id or any accepted path form. Used both to build |
| 75 | /// the human-facing messages and (sanitized) to KEY the attestation path. |
| 76 | pub fn memory_id(id_or_path: &str) -> String { |
| 77 | let path = normalize_memory_path(id_or_path); |
| 78 | path.strip_prefix("memory/") |
| 79 | .and_then(|s| s.strip_suffix(".md")) |
| 80 | .unwrap_or(&path) |
| 81 | .to_string() |
| 82 | } |
| 83 | |
| 84 | /// Parse a memory `VaultEntry` into the frontmatter map + body the lift consumes. |
| 85 | /// |