feat: Chrome extension — AI tool detection - #7
Merged
Conversation
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this adds
extensions/chrome/— standalone Chrome extension workspacebackground.ts— AI tool hostname detectiontypes.ts— WrkmarkMessage, AIToolCheckResultvitest.config.ts— updated to exclude extension tests from rootPrivacy
Permissions requested from user
Nothing else. Ever.
Tests
17 extension tests (background.test.ts)
59 root tests unchanged
76 total passing