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

Function replay

atomic-repository/src/intent_evidence.rs:217–226  ·  view source on GitHub ↗

Read and replay a manifest file. Relative artifact roots resolve against the manifest's parent directory.

(
    path: &Path,
    checker: &Path,
    context: &EvidenceContext,
    node: &CanonicalNode,
)

Source from the content-addressed store, hash-verified

215/// Read and replay a manifest file. Relative artifact roots resolve against the
216/// manifest's parent directory.
217pub fn replay(
218 path: &Path,
219 checker: &Path,
220 context: &EvidenceContext,
221 node: &CanonicalNode,
222) -> Result<EvidenceReport, EvidenceError> {
223 let bytes = read_manifest(path)?;
224 let base = path.parent().unwrap_or_else(|| Path::new("."));
225 replay_bytes(&bytes, base, checker, context, node)
226}
227
228/// Replay already-read manifest bytes. The caller supplies the base directory
229/// for relative artifact roots so an RPC caller can name the same directory on

Calls 3

replay_bytesFunction · 0.85
parentMethod · 0.80
read_manifestFunction · 0.70