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

Function normalizeDaemonScopeDir

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

Source from the content-addressed store, hash-verified

249const readActiveLocalServerManifest = readReachableLocalServerHint;
250
251const normalizeDaemonScopeDir = (dir: string): string => {
252 const resolved = resolve(dir);
253 return existsSync(resolved) ? realpathSync.native(resolved) : resolved;
254};
255
256const currentScopeDirForManifest = (): string | null =>
257 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