@hqedge/paths
v0.1.6
Published
HQ Edge — Shared OS-native path resolution (log dir, per-user data dir) for all HQ Edge runtimes.
Maintainers
Readme
@hqedge/paths
Shared OS-native path resolution for HQ Edge runtimes.
The single source of truth for where HQ Edge places per-user, OS-native
directories. getHqEdgeHome() is the root; every other getter is derived
from it, so all HQ Edge user directories live under one self-contained tree.
Consumers (@hqedge/logging, the HQ Edge server's DSH artifact service)
import from here so every runtime resolves the same location.
Usage
import { getHqEdgeHome, getLogBaseDir, getLogDir } from "@hqedge/paths";
getHqEdgeHome(); // ~/Library/Application Support/hq-edge/ (macOS)
getLogBaseDir(); // ~/Library/Application Support/hq-edge/logs/
getLogDir("server"); // ~/Library/Application Support/hq-edge/logs/server/The locations can be overridden for tests / bundling via HQ_EDGE_HOME /
HQ_EDGE_LOG_DIR, or an explicit override argument on each getter.
