MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / daemonBindPath

Function daemonBindPath

__tests__/fake-daemon.ts:63–66  ·  view source on GitHub ↗
(root: string)

Source from the content-addressed store, hash-verified

61 * first, as `codegraph init` would, with the mode the umask gives it.
62 */
63export function daemonBindPath(root: string): string {
64 if (process.platform !== 'win32') fs.mkdirSync(path.dirname(getDaemonSocketCandidates(root)[0]!), { recursive: true });
65 return getDaemonBindCandidates(root)[0]!;
66}
67
68export async function startFakeDaemon(root: string, opts: FakeDaemonOptions): Promise<FakeDaemon> {
69 const socketPath = opts.socketPath ?? daemonBindPath(root);

Callers 2

spawnFakeDaemonFunction · 0.90
startFakeDaemonFunction · 0.85

Calls 2

getDaemonBindCandidatesFunction · 0.90

Tested by

no test coverage detected