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

Function sidecar_dir

atomic-cli/src/commands/intent/bridge.rs:141–147  ·  view source on GitHub ↗

The directory that holds an intent's canonical sidecar artifacts: ` /canonical/intents/ /`. Keyed off the SAME normalized id as the tracked vault path (critic #4).

(repo: &Repository, id: &str)

Source from the content-addressed store, hash-verified

139/// `<dot_dir>/canonical/intents/<sanitized-normalized-id>/`. Keyed off the SAME
140/// normalized id as the tracked vault path (critic #4).
141pub fn sidecar_dir(repo: &Repository, id: &str) -> CliResult<PathBuf> {
142 Ok(repo
143 .dot_dir()
144 .join("canonical")
145 .join("intents")
146 .join(sanitize_id(&normalized_id(repo, id)?)))
147}
148
149/// The attested-node sidecar file for an intent.
150pub fn attested_sidecar_path(repo: &Repository, id: &str) -> CliResult<PathBuf> {

Callers 1

attested_sidecar_pathFunction · 0.70

Calls 3

normalized_idFunction · 0.85
dot_dirMethod · 0.80
sanitize_idFunction · 0.70

Tested by

no test coverage detected