(filePath: string)
| 85 | * Only registers once per file path - the hook always reads latest content |
| 86 | */ |
| 87 | export 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 |
no test coverage detected