pub fn resolve_log_dir(workspace_path: Option<&str>) -> PathBufExpand 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.hypergets logs in~/projects/. - Ephemeral mode: same temp directory the Engine creates for the
workspace (
$TMPDIR/hyperdb-mcp-<pid>/).