Skip to content

feat: Chrome extension — AI tool detection - #7

Merged
AxaySharma merged 1 commit into
developfrom
feature/chrome-extension
Jun 9, 2026
Merged

feat: Chrome extension — AI tool detection#7
AxaySharma merged 1 commit into
developfrom
feature/chrome-extension

Conversation

@AxaySharma

Copy link
Copy Markdown
Contributor

What this adds

  • extensions/chrome/ — standalone Chrome extension workspace
  • Manifest V3, minimum permissions (tabs + activeTab only)
  • background.ts — AI tool hostname detection
  • types.ts — WrkmarkMessage, AIToolCheckResult
  • vitest.config.ts — updated to exclude extension tests from root

Privacy

  • NO host_permissions — never injects into any page
  • NO scripting permission — never reads page content
  • Hostname ONLY extracted — full URL discarded immediately
  • 6 approved AI tool hostnames, everything else ignored

Permissions requested from user

  • tabs: see which tab is active
  • activeTab: query current tab URL
    Nothing else. Ever.

Tests

17 extension tests (background.test.ts)
59 root tests unchanged
76 total passing

Manifest V3, minimum permissions: tabs + activeTab only.
No host_permissions, no scripting — never injects into pages.

background.ts:
- Detects 6 AI tool hostnames: claude.ai, chatgpt.com,
  chat.openai.com, copilot.github.com, gemini.google.com,
  aistudio.google.com
- Hostname extraction only — full URL never stored or logged
- Sends WrkmarkMessage to native host when AI tool detected
- Chrome API errors caught silently — never surfaces to user

vitest.config.ts: exclude extensions/ from root test run
Extension tests run independently from extensions/chrome/

Privacy: no page content, no full URLs, no browsing history.
Only signal: AI tool hostname is currently active tab.

Tests: 17 extension + 59 root = 76 total passing
@AxaySharma
AxaySharma merged commit 5bf9683 into develop Jun 9, 2026
2 checks passed
@AxaySharma
AxaySharma deleted the feature/chrome-extension branch June 9, 2026 13:45
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.

1 participant