MCPcopy Create free account
hub / github.com/AIScientists-Dev/Flowtrace / write_state

Function write_state

crates/flowtrace-core/src/state.rs:316–319  ·  view source on GitHub ↗
(trace_root: &Path, run_id: &str, state: &RunState)

Source from the content-addressed store, hash-verified

314}
315
316pub fn write_state(trace_root: &Path, run_id: &str, state: &RunState) -> Result<()> {
317 let path = state_path(trace_root, run_id);
318 atomic_write_json(&path, "state", state)
319}
320
321pub fn resolve_run(trace_root: &Path, run_id: Option<&str>) -> Result<String> {
322 if let Some(id) = run_id {

Callers 5

mutate_runFunction · 0.85
cmd_stepFunction · 0.85
cmd_deliverableFunction · 0.85
mutateFunction · 0.85
create_runFunction · 0.85

Calls 2

state_pathFunction · 0.85
atomic_write_jsonFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…