bijux-dag-app 0.4.1

Application orchestration and response-shaping layer for Bijux DAG command surfaces.
Documentation
1
2
3
4
5
6
7
8
9
10
use std::fs;
use std::path::{Path, PathBuf};

pub fn node_trace_path(run_dir: &Path, node_id: &str) -> PathBuf {
    run_dir.join("nodes").join(node_id).join("trace.json")
}

pub fn read_trace(run_dir: &Path, node_id: &str) -> Result<String, std::io::Error> {
    fs::read_to_string(node_trace_path(run_dir, node_id))
}