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

Function sidecar_dir

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

The directory that holds a memory's canonical sidecar artifacts: ` /canonical/memory/ /`.

(repo: &Repository, id_or_path: &str)

Source from the content-addressed store, hash-verified

147/// The directory that holds a memory's canonical sidecar artifacts:
148/// `<dot_dir>/canonical/memory/<sanitized-id>/`.
149pub fn sidecar_dir(repo: &Repository, id_or_path: &str) -> PathBuf {
150 repo.dot_dir()
151 .join("canonical")
152 .join("memory")
153 .join(sanitize_id(&memory_id(id_or_path)))
154}
155
156/// The attested-node sidecar file for a memory.
157pub fn attested_sidecar_path(repo: &Repository, id_or_path: &str) -> PathBuf {

Callers 1

attested_sidecar_pathFunction · 0.70

Calls 3

memory_idFunction · 0.85
dot_dirMethod · 0.80
sanitize_idFunction · 0.70

Tested by

no test coverage detected