Skip to content

Conversation

@Vanalite
Copy link
Contributor

@Vanalite Vanalite commented Nov 7, 2025

Changes

Reduced complexity by 81%: Split 2,912-line background.js into 18 modular files organized by responsibility:

  • lib/: Shared utilities (event routing, tab manager, fetch helpers)
  • streaming/: OpenAI and Anthropic streaming implementations
  • search/: Google and DuckDuckGo search engines
  • mcp-tools/: 12 browser automation tools (automation, navigation, observation)
  • settings.js: API configuration and testing
  • prompts.js: Prompt builders for summarization and inline assist
  • constants.js: Centralized constants and message types

New background.js: 538 lines - now only handles message routing and lifecycle events.
Refactor README.md

Testing

  • ✅ All tests passing (9/9)
  • ✅ Build successful
  • ✅ 100% backward compatible - no breaking changes

@Vanalite Vanalite merged commit 7840404 into main Nov 7, 2025
1 check failed
@Vanalite Vanalite mentioned this pull request Nov 7, 2025
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants