MCPcopy Create free account
hub / github.com/Noumena-Network/code / initMagicDocs

Function initMagicDocs

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

Source from the content-addressed store, hash-verified

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

Callers 1

Calls 5

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

Tested by

no test coverage detected