MCPcopy Create free account
hub / github.com/UsefulSoftwareCo/executor / daemonRecordPath

Function daemonRecordPath

apps/cli/src/daemon-state.ts:83–86  ·  view source on GitHub ↗
(path: Path.Path, input: { hostname: string; port: number })

Source from the content-addressed store, hash-verified

81 createHash("sha256").update(scopeId).digest("hex").slice(0, 24);
82
83const daemonRecordPath = (path: Path.Path, input: { hostname: string; port: number }): string => {
84 const host = sanitizeHostForPath(canonicalDaemonHost(input.hostname));
85 return path.join(resolveDaemonDataDir(path), `daemon-${host}-${input.port}.json`);
86};
87
88const daemonPointerPath = (
89 path: Path.Path,

Callers 3

writeDaemonRecordFunction · 0.85
readDaemonRecordFunction · 0.85
removeDaemonRecordFunction · 0.85

Calls 3

sanitizeHostForPathFunction · 0.85
canonicalDaemonHostFunction · 0.85
resolveDaemonDataDirFunction · 0.85

Tested by

no test coverage detected