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

Function memory_id

atomic-cli/src/commands/memory/bridge.rs:76–82  ·  view source on GitHub ↗

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)

Source from the content-addressed store, hash-verified

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.
76pub 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///

Callers 8

sidecar_dirFunction · 0.85
write_trackedFunction · 0.85
runMethod · 0.85
runMethod · 0.85
write_trackedFunction · 0.85

Calls 1

normalize_memory_pathFunction · 0.70