Files
compiler-explorer/lib/tooling
Matt GodboltandClaude 5b3c487467 Migrate Claude Explain from Tool to Pane
This change converts Claude Explain from a backend "Tool" to a proper frontend "Pane",
providing a cleaner architecture and better user experience.

Major changes:
- Add Claude Explain as a pane in the "Add new..." dropdown for all languages
- Remove server-side ExplainTool and all tool configurations from property files
- Move API endpoint configuration to global options (explainApiEndpoint)
- Update event handling from tool events to pane-specific events (explainViewOpened/Closed)
- Make button visibility conditional on API endpoint configuration
- Trigger recompilation when Claude Explain pane is opened

Benefits:
- Universal availability across all languages without per-language configuration
- No need for fake binaries (/bin/true) or server-side stubs
- Cleaner architecture with all logic in the frontend
- Better UX with Claude Explain appearing alongside other analysis panes
- Automatic recompilation when opened, matching behavior of AST/Opt viewers

Technical details:
- Register EXPLAIN_VIEW_COMPONENT_NAME and factory in hub.ts
- Add button to compiler.pug with conditional visibility
- Update ExplainHtmlView to emit pane events and use global API endpoint
- Remove redundant getCurrentState() override
- Clean up all references to the old tool implementation

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-05-23 09:25:54 -05:00
..
2025-03-14 16:59:27 +01:00
2025-03-14 17:32:53 +01:00
2025-03-27 12:59:10 -05:00