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

Function registerMagicDoc

src/services/MagicDocs/magicDocs.ts:87–94  ·  view source on GitHub ↗
(filePath: string)

Source from the content-addressed store, hash-verified

85 * Only registers once per file path - the hook always reads latest content
86 */
87export function registerMagicDoc(filePath: string): void {
88 // Only register if not already tracked
89 if (!trackedMagicDocs.has(filePath)) {
90 trackedMagicDocs.set(filePath, {
91 path: filePath,
92 })
93 }
94}
95
96/**
97 * Create Magic Docs agent definition

Callers 1

initMagicDocsFunction · 0.85

Calls 2

hasMethod · 0.45
setMethod · 0.45

Tested by

no test coverage detected