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

Function makeScopeId

apps/desktop/scripts/smoke-sidecar.ts:65–69  ·  view source on GitHub ↗
(cwd: string)

Source from the content-addressed store, hash-verified

63 typeof value === "object" && value !== null && !Array.isArray(value);
64
65const makeScopeId = (cwd: string): string => {
66 const folder = basename(cwd) || cwd;
67 const hash = createHash("sha256").update(cwd).digest("hex").slice(0, 8);
68 return `${folder}-${hash}`;
69};
70
71const readLegacyMigrations = async (): Promise<readonly { sql: string; hash: string }[]> => {
72 const journal = (await Bun.file(join(APPS_LOCAL_DRIZZLE, "meta/_journal.json")).json()) as {

Callers 1

mainFunction · 0.85

Calls 1

updateMethod · 0.65

Tested by

no test coverage detected