()
| 240 | }) |
| 241 | |
| 242 | export 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 | } |
no test coverage detected