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

Function normalizeDaemonScopeDir

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

Source from the content-addressed store, hash-verified

235const readActiveLocalServerManifest = readReachableLocalServerHint;
236
237const normalizeDaemonScopeDir = (dir: string): string => {
238 const resolved = resolve(dir);
239 return existsSync(resolved) ? realpathSync.native(resolved) : resolved;
240};
241
242const currentScopeDirForManifest = (): string | null =>
243 process.env.EXECUTOR_SCOPE_DIR ? normalizeDaemonScopeDir(process.env.EXECUTOR_SCOPE_DIR) : null;

Callers 1

Calls 1

resolveFunction · 0.85

Tested by

no test coverage detected