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

Function makeTenantId

apps/local/src/executor.ts:43–47  ·  view source on GitHub ↗
(cwd: string)

Source from the content-addressed store, hash-verified

41// Hash suffix disambiguates same-basename folders so two projects with
42// identical directory names cannot collide on the same tenant id.
43const makeTenantId = (cwd: string): string => {
44 const folder = basename(cwd) || cwd;
45 const hash = createHash("sha256").update(cwd).digest("hex").slice(0, 8);
46 return `${folder}-${hash}`;
47};
48
49const resolvePluginConfigPath = (scopeDir: string): string => join(scopeDir, "executor.jsonc");
50

Callers 1

createLocalExecutorLayerFunction · 0.85

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected