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

Function makeScopeId

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

Source from the content-addressed store, hash-verified

50 typeof value === "object" && value !== null && !Array.isArray(value);
51
52const makeScopeId = (cwd: string): string => {
53 const folder = basename(cwd) || cwd;
54 const hash = createHash("sha256").update(cwd).digest("hex").slice(0, 8);
55 return `${folder}-${hash}`;
56};
57
58const readLegacyMigrations = async (): Promise<readonly { sql: string; hash: string }[]> => {
59 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