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

Function normalizeDaemonScopeDir

apps/cli/src/main.ts:254–257  ·  view source on GitHub ↗
(dir: string)

Source from the content-addressed store, hash-verified

252const readActiveLocalServerManifest = readReachableLocalServerHint;
253
254const normalizeDaemonScopeDir = (dir: string): string => {
255 const resolved = resolve(dir);
256 return existsSync(resolved) ? realpathSync.native(resolved) : resolved;
257};
258
259const currentScopeDirForManifest = (): string | null =>
260 process.env.EXECUTOR_SCOPE_DIR ? normalizeDaemonScopeDir(process.env.EXECUTOR_SCOPE_DIR) : null;

Callers 1

Calls 1

resolveFunction · 0.50

Tested by

no test coverage detected