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

Function endpoint_name

atomic-cli/src/commands/agent/owner.rs:1391–1397  ·  view source on GitHub ↗
(dot_dir: &Path)

Source from the content-addressed store, hash-verified

1389}
1390
1391fn endpoint_name(dot_dir: &Path) -> String {
1392 let canonical = std::fs::canonicalize(dot_dir).unwrap_or_else(|_| dot_dir.to_path_buf());
1393 let digest = blake3::hash(canonical.to_string_lossy().as_bytes())
1394 .to_hex()
1395 .to_string();
1396 endpoint_for_digest(&digest[..24])
1397}
1398
1399#[cfg(unix)]
1400fn endpoint_for_digest(digest: &str) -> String {

Callers 2

requestFunction · 0.85
serveFunction · 0.85

Calls 5

canonicalizeFunction · 0.85
endpoint_for_digestFunction · 0.85
hashFunction · 0.50
to_hexMethod · 0.45
as_bytesMethod · 0.45

Tested by

no test coverage detected