Skip to content

feat: add browser companion protocol - #219

Merged
goniszewski merged 6 commits into
mainfrom
feat/task-138-browser-extension-rewrite
Sep 9, 2026
Merged

feat: add browser companion protocol#219
goniszewski merged 6 commits into
mainfrom
feat/task-138-browser-extension-rewrite

Conversation

@goniszewski

Copy link
Copy Markdown
Owner

The rewritten Grimoire Companion could not safely use the current daemon: extension-origin writes were rejected, general taxonomy routes were outside a dedicated authenticated boundary, and there was no stable capability handshake. This adds a versioned browser-integration protocol with authenticated capability and taxonomy endpoints, permits packaged Chrome and Firefox origins only on the three required routes, and explicitly rejects extension-origin access to unrelated daemon reads and writes.

The companion can now negotiate protocol v1, load categories and tags through its bearer token, and submit a normal /capture request without broadening Grimoire beyond loopback. The generated API contract and browser-capture guidance are updated.

Validation:

  • bun test daemon/src/test/integration/browser-integration.test.ts daemon/src/test/integration/capture.test.ts daemon/src/test/integration/integration-token-auth.test.ts daemon/src/test/integration/security-hardening.test.ts (28 passed, 129 assertions)
  • npm run lint (no errors; 8 existing Fast Refresh warnings)
  • npm run type-check
  • npm run docs:api:check
  • packaged Chrome Companion smoke covering negotiation, authenticated taxonomy, capture persistence, and category/tag/notes mapping

@sonarqubecloud

sonarqubecloud Bot commented Sep 9, 2026

Copy link
Copy Markdown

@goniszewski
goniszewski marked this pull request as ready for review September 9, 2026 10:18
Copilot AI lite review requested due to automatic review settings September 9, 2026 10:18
@goniszewski
goniszewski merged commit 828f3b1 into main Sep 9, 2026
8 checks passed
@goniszewski
goniszewski deleted the feat/task-138-browser-extension-rewrite branch September 9, 2026 10:18

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Sep 9, 2026

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review Completed 2026-09-09T10:20:21.979961Z c1b9bd3 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

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