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)
| 158 | /// `<dot_dir>/canonical/intents/<sanitized-normalized-id>/`. Keyed off the SAME |
| 159 | /// normalized id as the tracked vault path (critic #4). |
| 160 | pub fn sidecar_dir(repo: &Repository, id: &str) -> CliResult<PathBuf> { |
| 161 | Ok(repo |
| 162 | .dot_dir() |
| 163 | .join("canonical") |
| 164 | .join("intents") |
| 165 | .join(sanitize_id(&normalized_id(repo, id)?))) |
| 166 | } |
| 167 | |
| 168 | /// The attested-node sidecar file for an intent. |
| 169 | pub fn attested_sidecar_path(repo: &Repository, id: &str) -> CliResult<PathBuf> { |
no test coverage detected