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

Function sidecar_dir

atomic-cli/src/commands/memory/bridge.rs:162–167  ·  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

160/// The directory that holds a memory's canonical sidecar artifacts:
161/// `<dot_dir>/canonical/memory/<sanitized-id>/`.
162pub fn sidecar_dir(repo: &Repository, id_or_path: &str) -> PathBuf {
163 repo.dot_dir()
164 .join("canonical")
165 .join("memory")
166 .join(sanitize_id(&memory_id(id_or_path)))
167}
168
169/// The attested-node sidecar file for a memory.
170pub 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