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

Function next_id

atomic-agent/src/provenance/consolidate.rs:713–716  ·  view source on GitHub ↗

Generate the next node ID.

(counter: &mut u64, prefix: &str)

Source from the content-addressed store, hash-verified

711
712/// Generate the next node ID.
713fn next_id(counter: &mut u64, prefix: &str) -> String {
714 *counter += 1;
715 format!("{}-{}", prefix, counter)
716}
717
718/// Shorten a file path for summary display.
719fn short_path(path: &str) -> String {

Callers 6

detect_backtrackingFunction · 0.70
detect_full_cycleFunction · 0.70
detect_commit_and_verifyFunction · 0.70
detect_informed_commitFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected