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

Function isCitadelRepo

scripts/unharness.js:128–135  ·  view source on GitHub ↗
(dir)

Source from the content-addressed store, hash-verified

126 }
127 walk(dir);
128 return count;
129}
130
131function isCitadelRepo(dir) {
132 // Refuse to run unharness against the Citadel plugin repo itself.
133 // Detect by presence of skills/ and hooks_src/ at the root.
134 return fs.existsSync(path.join(dir, 'hooks_src')) &&
135 fs.existsSync(path.join(dir, 'skills')) &&
136 fs.existsSync(path.join(dir, 'package.json')) &&
137 JSON.parse(fs.readFileSync(path.join(dir, 'package.json'), 'utf8')).name === 'citadel';
138}

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected