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

Function makeTenantId

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

Source from the content-addressed store, hash-verified

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

Callers 1

createLocalExecutorLayerFunction · 0.85

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected