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

Function serviceEnv

apps/desktop/src/main/service.ts:63–76  ·  view source on GitHub ↗
(
  dataDir: string,
  options: { readonly captureUserPath: boolean },
)

Source from the content-addressed store, hash-verified

61};
62
63const serviceEnv = async (
64 dataDir: string,
65 options: { readonly captureUserPath: boolean },
66): Promise<NodeJS.ProcessEnv> => {
67 const path = options.captureUserPath ? await memoizedUserPath() : process.env.PATH;
68 return {
69 ...process.env,
70 ...(path ? { PATH: path } : {}),
71 EXECUTOR_DATA_DIR: dataDir,
72 EXECUTOR_SCOPE_DIR: dataDir,
73 EXECUTOR_CLIENT: "desktop",
74 ...sidecarCrashReportingEnv(),
75 };
76};
77
78const runExecutor = async (
79 args: ReadonlyArray<string>,

Callers 1

runExecutorFunction · 0.85

Calls 2

sidecarCrashReportingEnvFunction · 0.90
memoizedUserPathFunction · 0.85

Tested by

no test coverage detected