({})
| 7 | let lastSuggestion = 0 |
| 8 | |
| 9 | export const VerificationPlugin = async ({}) => { |
| 10 | return { |
| 11 | event: async ({ event }) => { |
| 12 | if (event.type === "file.edited") { |
| 13 | const filePath = (event as any).path || "" |
| 14 | if (filePath && !filePath.includes("node_modules")) { |
| 15 | editedFiles.push(filePath) |
| 16 | } |
| 17 | |
| 18 | // Suggest verification after 3+ files edited (with cooldown) |
| 19 | const now = Date.now() |
| 20 | if (editedFiles.length >= 3 && now - lastSuggestion > 60000) { |
| 21 | lastSuggestion = now |
| 22 | console.log(`[verification] ${editedFiles.length} files edited. Consider running tests.`) |
| 23 | editedFiles = [] |
| 24 | } |
| 25 | } |
| 26 | }, |
| 27 | } |
| 28 | } |
nothing calls this directly
no outgoing calls
no test coverage detected