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

Function readHooksStats

scripts/telemetry-stats.js:83–91  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

81// ── Hook install check ────────────────────────────────────────────────────────
82
83function readHooksStats() {
84 const settings = readJson(SETTINGS_PATH);
85 const installed = settings !== null && typeof settings === 'object' &&
86 (Array.isArray(settings.hooks) ? settings.hooks.length > 0 : !!settings.hooks);
87 return {
88 installed,
89 settings_path: fs.existsSync(SETTINGS_PATH) ? SETTINGS_PATH : null,
90 };
91}
92
93// ── Telemetry file stats ──────────────────────────────────────────────────────
94

Callers 1

mainFunction · 0.85

Calls 1

readJsonFunction · 0.70

Tested by

no test coverage detected