MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / initMagicDocs

Function initMagicDocs

source code/services/MagicDocs/magicDocs.ts:244–256  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

242})
243
244export async function initMagicDocs(): Promise<void> {
245 if (process.env.USER_TYPE === 'ant') {
246 // Register listener to detect magic docs when files are read
247 registerFileReadListener((filePath: string, content: string) => {
248 const result = detectMagicDocHeader(content)
249 if (result) {
250 registerMagicDoc(filePath)
251 }
252 })
253
254 registerPostSamplingHook(updateMagicDocs)
255 }
256}

Callers 1

Calls 4

registerFileReadListenerFunction · 0.85
detectMagicDocHeaderFunction · 0.85
registerMagicDocFunction · 0.85
registerPostSamplingHookFunction · 0.85

Tested by

no test coverage detected