MCPcopy Index your code
hub / github.com/codeaashu/claude-code / initMagicDocs

Function initMagicDocs

src/services/MagicDocs/magicDocs.ts:242–254  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 4

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

Tested by

no test coverage detected