Create a new markdown.scss file containing comprehensive markdown rendering
styles that can be reused by other components. Update the explain view to
use both semantic (.explain-content) and styling (.markdown-content) classes.
Changes:
- Create static/styles/markdown.scss with ~200 lines of markdown styles
- Import markdown.scss in explorer.scss
- Remove markdown styles from explain-content rule in explorer.scss
- Update explain.pug template to use both .explain-content and .markdown-content
- Update plan document to mark markdown extraction as complete
This provides clean separation between behavior (explain-content) and
styling (markdown-content) while making the styles reusable.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Remove outdated TODO comments from explain-view.ts and consolidate
remaining tasks in the plan document. Update priorities based on
actual implementation status and remove completed items.
Changes:
- Remove TODO comment block from explain-view.ts
- Update plan document with realistic assessments of remaining work
- Mark theming fixes as complete
- Clarify that error handling and other areas are already well-implemented
- Streamline remaining actionable items
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Implement proper theme styling for all explain view components across
dark, pink, and one-dark themes to improve visibility and consistency.
Changes:
- Add dark theme overrides for .explain-box (consent/no-ai messages)
- Add theme-specific styling for .explain-bottom-bar
- Enhance .ai-disclaimer badge visibility in different themes
- Ensure proper contrast and readability in all supported themes
- Update plan document to mark theme fixes as complete
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
Implement detection of "no-ai" directive (case-insensitive) in source code
to respect users who don't want their code processed by AI. When detected,
the explain pane displays a polite message explaining why AI explanation
is not available.
Changes:
- Add checkForNoAiDirective() method to search for the directive
- Add dedicated UI element in explain.pug template for the no-ai message
- Update onCompileResult() and fetchExplanation() to check for directive
- Add explain-box CSS class for consistent styling of message boxes
- Update ClaudeExplainPlan.md to mark feature as complete
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Enhanced warning badge with more prominent styling (bg-warning)
- Expanded tooltip to clearly explain LLM limitations and confidence issues
- Improved form controls using Bootstrap input groups for better appearance
- Significantly enhanced consent UI with comprehensive information:
- Clearly states that both source code AND compilation output are sent
- Links to Anthropic with proper external link handling
- Explains what LLMs are and their limitations
- Clarifies that data is NOT used for model training
- References Privacy Policy
- Better paragraph structure in consent flow for readability
- Changed "AI" to "LLMs" for more accurate terminology
These changes address high priority items from the plan around improving
consent clarity and adding better disclaimers about AI limitations.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Add UI controls for audience level and explanation type selection
- Fetch available options dynamically from GET endpoint with fallback
- Implement proper state management with URL persistence
- Fix critical bug where class property initializers overwrote saved state
- Add cache status indicators (client/server/fresh) in bottom bar
- Update API integration for new camelCase field names
- Include audience, explanation, and bypassCache parameters in requests
- Add comprehensive TypeScript interfaces for type safety
Key Features:
- Audience levels: Beginner, Intermediate, Expert
- Explanation types: Assembly, Source, Optimization
- State preserved across page reloads and URL sharing
- Multi-level caching with clear status indicators
- Graceful fallback when API unavailable
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
- Document new GET endpoint for fetching available options
- Add audience level and explanation type parameters
- Document server-side caching and bypass_cache parameter
- Update API request/response structures
- Add detailed implementation plan for integrating new features
- Document cache status indicators and multi-level caching
- Include critical UI state management considerations
The documentation now reflects the explain API's new capabilities
including dynamic option fetching, customizable explanations, and
enhanced caching strategies.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
## Summary
- Add DynamoDB support to Google URL shortener to check in preference to goo.gl itself (which will be going away)
- Update ShortLinkResolver to accept AWS properties and use DynamoDB table `goo-gl-links`
- First check DynamoDB for fragment lookup before falling back to Google URL shortener (for now)
- Refactor resolve method to use async/await instead of raw promises for better readability
- Add awsProps to ServerDependencies and pass through component hierarchy
- Configure googleLinksDynamoTable property in AWS config files (defaults to empty)
## Implementation Details
- When `googleLinksDynamoTable` property is configured, `ShortLinkResolver` creates a DynamoDB client
- DynamoDB table uses `fragment` as the key and stores `expanded_url`
- Maintains backwards compatibility by falling back to Google URL (for now) shortener if DynamoDB is not configured or lookup fails
- Google URL shortener fallback will be removed in August 2025 when the service shuts down
## Test plan
- [x] All existing tests pass
- [x] TypeScript compilation succeeds
- [x] Linting passes
- [x] Updated tests to accommodate new awsProps parameter
- [x] Verify fallback to Google URL shortener when DynamoDB not
configured
- [x] Manual testing
🤖 Generated with [Claude Code](https://claude.ai/code)
---------
Co-authored-by: Claude <noreply@anthropic.com>
Proposing to add the B-MPI3 library to the live site.
https://gitlab.com/correaa/boost-mpi3
Followed the steps as best as I could in based on other gitlab type
libraries (bmulti)
Feedback on improving the hooks and the organizations of files in the
repository is welcome.
The goal is to include the library by doing
#include<mpi3/communicator.hpp>.
This PR fixes the LLVM IR output for the Mojo compiler integration,
ensuring the LLVM IR panel works correctly and no longer shows "Internal
error; unable to open output path" errors.
Fixes issues with missing components (e.g. from beta, 'explain')
The issue was that the exceptions are thrown in `initLayout`, not in the
constructor.
---------
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
## Summary
This PR updates test files to use the new Vitest timeout syntax,
resolving deprecation warnings.
## Changes
- Updated `test/packager-tests.ts` to pass timeout as a number instead
of `{timeout: 5000}`
- Updated `test/filter-tests.ts` to pass timeout as a number instead of
`{timeout: 10000}`
## Details
Vitest now expects timeouts to be passed directly as a number as the
third parameter to `it()`, rather than as an object. This change updates
all occurrences to use the new syntax.
## Test plan
- [x] All existing tests continue to pass
- [x] No deprecation warnings are shown when running tests
- [x] Linter and type checks pass
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-authored-by: Claude <noreply@anthropic.com>
## Summary
- Add DynamoDB support to Google URL shortener to check in preference to goo.gl itself (which will be going away)
- Update ShortLinkResolver to accept AWS properties and use DynamoDB table `goo-gl-links`
- First check DynamoDB for fragment lookup before falling back to Google URL shortener (for now)
- Refactor resolve method to use async/await instead of raw promises for better readability
- Add awsProps to ServerDependencies and pass through component hierarchy
- Configure googleLinksDynamoTable property in AWS config files (defaults to empty)
## Implementation Details
- When `googleLinksDynamoTable` property is configured, `ShortLinkResolver` creates a DynamoDB client
- DynamoDB table uses `fragment` as the key and stores `expanded_url`
- Maintains backwards compatibility by falling back to Google URL (for now) shortener if DynamoDB is not configured or lookup fails
- Google URL shortener fallback will be removed in August 2025 when the service shuts down
## Test plan
- [x] All existing tests pass
- [x] TypeScript compilation succeeds
- [x] Linting passes
- [x] Updated tests to accommodate new awsProps parameter
- [x] Verify fallback to Google URL shortener when DynamoDB not
configured
- [x] Manual testing
🤖 Generated with [Claude Code](https://claude.ai/code)
---------
Co-authored-by: Claude <noreply@anthropic.com>
- Implement LRU caching for explain API responses to prevent redundant requests
- Add reload button to bypass cache when needed
- Fix flexbox layout issues with proper container structure
- Replace custom loading element with standard status icon (spinner/check/error)
- Keep success icon visible instead of auto-hiding
- Always cache explain responses (independent of global compiler cache setting)
- Rename ExplainHtmlView to ExplainView for clarity
- Clean up redundant CSS and rely on Bootstrap utilities
The caching uses the same LRU strategy as CompilerService with a 200KB limit.
Cache keys are generated from language, compiler, code, options, and assembly.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
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>