fix(extension): respect host-only cookie domains
Summary
Fixes #3464.
context.cookies("https://sub.example.com/") returned host-only cookies for example.com, even though those cookies do not apply to the requested host. Preserve the original domain's leading-dot distinction: host-only cookies require an exact hostname, while dotted domains also match subdomains on a dot boundary.
Add focused regression tests for exact hosts, subdomains and nested subdomains, unrelated suffixes, dotted domain cookies, secure URLs, path boundaries, and multiple/empty URL filters. Include patch changesets for the extension and TypeScript/Python SDKs that bundle it. No protocol or API changes.
Validation
- Before the production fix: cookie suite had 3 failed / 20 passed; the failures reproduce host-only cookies matching subdomains.
- After the fix: cookie suite 23 passed.
- Full extension unit suite: 75 files passed; 1,229 tests passed, 9 TODO.
- Extension TypeScript check:
node_modules/.bin/tsc --noEmit -p packages/extension/tsconfig.jsonpassed. - Extension build:
node_modules/.bin/vite build --config packages/extension/vite.config.tspassed. - Targeted oxlint, oxfmt check, changeset validation, and
git diff --checkpassed.
The first broader test run was blocked by sandbox restrictions on local HTTP listeners and missing build artifacts. After building the extension and rerunning outside the sandbox, the entire extension suite passed. No live-browser integration test or full monorepo/Python suite was run. pnpm and just were unavailable on PATH, so checks used the installed workspace executables directly.