MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / mkWorkspaceRoot

Function mkWorkspaceRoot

__tests__/frontload-hook.test.ts:32–36  ·  view source on GitHub ↗

A workspace-root manifest so the down-scan gate (looksLikeProjectRoot) passes.

(dir: string)

Source from the content-addressed store, hash-verified

30}
31/** A workspace-root manifest so the down-scan gate (looksLikeProjectRoot) passes. */
32function mkWorkspaceRoot(dir: string): string {
33 fs.mkdirSync(dir, { recursive: true });
34 fs.writeFileSync(path.join(dir, 'package.json'), '{"private":true,"workspaces":["packages/*"]}');
35 return dir;
36}
37
38/**
39 * Run the built CLI's `prompt-hook` in `dir` with a UserPromptSubmit payload

Callers 1

Calls 1

joinMethod · 0.45

Tested by

no test coverage detected