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

Function daemonPointerPath

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

Source from the content-addressed store, hash-verified

86};
87
88const daemonPointerPath = (
89 path: Path.Path,
90 input: { hostname: string; scopeId: string },
91): string => {
92 const host = sanitizeHostForPath(canonicalDaemonHost(input.hostname));
93 const scope = scopeKeyForPath(input.scopeId);
94 return path.join(resolveDaemonDataDir(path), `daemon-active-${host}-${scope}.json`);
95};
96
97const daemonStartLockPath = (
98 path: Path.Path,

Callers 4

daemonStartLockPathFunction · 0.85
writeDaemonPointerFunction · 0.85
readDaemonPointerFunction · 0.85
removeDaemonPointerFunction · 0.85

Calls 4

sanitizeHostForPathFunction · 0.85
canonicalDaemonHostFunction · 0.85
scopeKeyForPathFunction · 0.85
resolveDaemonDataDirFunction · 0.85

Tested by

no test coverage detected