- Fix template structure to match framework expectations (no wrapper div)
- Use standard toolOpened/toolClosed events instead of custom ones
- This fixes automatic compilation trigger on view creation
- This enables proper singleton tracking (mostly)
- Add getCurrentState with toolId and selection for tool compatibility
- Remove unused explainViewOpened/Closed from event map
The view now properly integrates with the existing tool infrastructure,
triggering compilation when opened and preventing duplicate instances.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>