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

Method session_graph_dir

atomic-agent/src/turn/orchestrator/provenance.rs:36–38  ·  view source on GitHub ↗

Get the session directory for provenance graph storage. Returns `{sessions_dir}/{session_id}/` — a subdirectory alongside the session's JSON file. The `ProvenanceAccumulator` stores its `graph.json` here.

(&self, session_id: &str)

Source from the content-addressed store, hash-verified

34 /// the session's JSON file. The `ProvenanceAccumulator` stores its
35 /// `graph.json` here.
36 pub(crate) fn session_graph_dir(&self, session_id: &str) -> PathBuf {
37 self.session_store.sessions_dir().join(session_id)
38 }
39
40 /// Execute `f` while holding an exclusive file lock on the session's
41 /// accumulator. The lock file is `{session_dir}/graph.lock`.

Callers 3

try_turn_end_lockMethod · 0.80
with_accumulatorMethod · 0.80
save_accumulatorMethod · 0.80

Calls 1

sessions_dirMethod · 0.80

Tested by

no test coverage detected