- build-standalone-fixed.cjs: removed renderHeatmap() replacement block
- The replacement used string concatenation with '\'' which broke
single quotes in generated HTML, causing SyntaxError: unexpected token
- Original renderHeatmap() in index.html uses template literals (`...`)
which are safe and already contain showCellDetail onclick handler
- Rebuilt index.standalone.html from fixed source
- Zero console errors, zero JS syntax errors verified on port 3003
1. filterCategory: fix inline event.target → uses btn parameter
- All Agents tab filter buttons now correctly toggle active class
2. exportRecommendations/showApplyModal: read from agentData, not removed INLINE_RECOMMENDATIONS
- Apply modal shows real recommendations
- Export generates JSON with real data
3. Heatmap cell click: add showCellDetail modal with Chart.js line chart + prompt history
- onclick='showCellDetail(model, agent)' on every td
- renderCellChart computes score history from agent.history
- prompt_change items filtered and displayed
4. watch-db.cjs: incremental DB sync tool
- Polls git for changes in .kilo/agents/*.md and kilo-meta.json
- Detects model_change vs prompt_change by comparing with previous version
- Exports to JSON after sync, logs to .kilo/logs/watch-db.log
- SIGINT/SIGTERM graceful shutdown
- Trigger: npm run evolution:watch