Skip to main content

resolve_log_dir

Function resolve_log_dir 

Source
pub fn resolve_log_dir(workspace_path: Option<&str>) -> PathBuf
Expand description

Compute the log directory for both hyperd output and the client-side tracing log. Shared by Engine::new and main so both land in the same place.

  • Persistent mode: same directory as the workspace file (with ~ expansion applied). This way a project workspace like ~/projects/foo.hyper gets logs in ~/projects/.
  • Ephemeral mode: same temp directory the Engine creates for the workspace ($TMPDIR/hyperdb-mcp-<pid>/).