MCPcopy Create free account
hub / github.com/SethGammon/Citadel / resolveRoot

Function resolveRoot

scripts/permission-audit.js:32–38  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

30const TOP_HOURS = 5;
31
32function resolveRoot() {
33 const idx = process.argv.indexOf('--root');
34 if (idx !== -1 && process.argv[idx + 1]) {
35 return path.resolve(process.argv[idx + 1]);
36 }
37 return process.env.CLAUDE_PROJECT_DIR || process.cwd();
38}
39
40function readJsonl(file) {
41 try {

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected