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

Function resolveStorage

apps/local/src/executor.ts:35–39  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

33const LOCAL_SUBJECT = "local";
34
35const resolveStorage = (): ResolvedStorage => {
36 const dataDir = process.env.EXECUTOR_DATA_DIR ?? join(homedir(), ".executor");
37 fs.mkdirSync(dataDir, { recursive: true });
38 return { dataDir };
39};
40
41// Hash suffix disambiguates same-basename folders so two projects with
42// identical directory names cannot collide on the same tenant id.

Callers 1

createLocalExecutorLayerFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected