MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / memory_path_to_node_id

Function memory_path_to_node_id

libatomic/src/daemon/services_agent.rs:235–241  ·  view source on GitHub ↗

`memory/architecture.md` -> `memory:architecture`.

(project: &ProjectId, path: &str)

Source from the content-addressed store, hash-verified

233
234 /// `memory/architecture.md` -> `memory:architecture`.
235 fn memory_path_to_node_id(project: &ProjectId, path: &str) -> Option<String> {
236 let name = path.strip_prefix("memory/")?.strip_suffix(".md")?;
237 if name.is_empty() {
238 return None;
239 }
240 Some(iri::mint_memory(project, name))
241 }
242
243 // Frontmatter helpers (the stored entries carry JSON-object strings).
244

Callers 2

gather_candidatesFunction · 0.70
scan_memory_bodiesFunction · 0.70

Calls 1

is_emptyMethod · 0.45

Tested by

no test coverage detected