Commit Graph

7 Commits

Author SHA1 Message Date
Alot1z 81b3327f21 fix(extension): guard content-script css against relative url() at stage verify
A relative url() in a content-script stylesheet resolves against the page
origin (the D1 @font-face 404/403 defect, KB #6441) and no amount of
allowlisting catches it - the reference looks valid, it just can never
load. Fail the pack for both targets whenever the css the manifest
registers as content_scripts references a non-absolute url(), driven off
the manifest so new stylesheets are covered automatically.
2026-09-03 17:30:56 +02:00
Alot1z 62475f91c4 test(extension): keep process.exit at module top level in firefox-e2e (KB 5486)
All three skip/exit outcomes now resolve through main()'s return value and a
single top-level exit, so no process.exit can preempt the cleanup finally
(web-ext tree kill, BiDi close, temp-dir removal). Mutation pass 2/2 on the
guard's key assertions (KB 5489): wrong site host -> indicator FAIL; altered
primer text -> primer FAIL; both reverted, final run 5/5.
2026-09-03 17:20:29 +02:00
Alot1z a6b6b59e17 test(extension): codify the real-Firefox injection guard as npm run test:firefox
The Firefox proof (injection + full-primer send, FF 155) existed only as a
one-off drive and a KB recipe; any edit could silently decay it back into a
claim. scripts/firefox-e2e.mjs rebuilds the Firefox stage, installs it in real
Firefox via web-ext (release-safe temporary add-on) and asserts over a raw
WebDriver BiDi session on the same instance (--args=--remote-debugging-port,
KB #6443) that the indicator injects, a trusted Enter sends the full primer,
and no extension-sourced console errors appear. Skips with exit 0 and a clear
message when Firefox (FIREFOX_BIN override) or web-ext is unavailable, so
test:all never breaks on machines without Firefox. Wired as test:firefox and
added to test:all, mirroring the existing test:browser split (npm test stays
the fast hermetic unit/contract suite).
2026-09-03 17:18:05 +02:00
Alot1z e0b059e6ad fix(extension): address AMO review on the Firefox port
Three items from the #936 maintainer review:
- gecko id is now a UUID-style id ({2bcb73e7-...}) that claims no domain
  (AMO ids are permanent); removed the Co-Authored-By footer from the
  Firefox README while touching it.
- the Firefox manifest template no longer carries a version: the firefox
  pack target injects the shared version (package.json == Chrome manifest,
  validated) at pack time, so the two manifests cannot drift.
- background uses the Firefox MV3 event-page form (background.scripts);
  service_worker dropped, strict_min_version 121.0 kept as a conservative
  floor with the corrected rationale. The stage verifier now also validates
  background.scripts references.

Verification: extension unit suite 11/11 (new firefox-template contract
test), firefox pack + stage verification green, chrome pack unaffected.
2026-09-03 13:43:20 +02:00
Alot1z 54de3c9ffc fix(extension): repair Firefox manifest for AMO submission
The shipped gecko.id pointed at an unowned domain and the background
block declared both service_worker and scripts, which WebExtensions
reject together. Use a stable add-on id, keep a single MV3 service
worker, and derive the packed Firefox version from the shared source so
the two manifests cannot drift at pack time.
2026-09-03 03:06:39 +02:00
Alot1z 2da16bf53b build(extension): AMO-ready firefox pack target for the zip builder
`node build-extension-zip.mjs firefox` stages the shared runtime flat
(WebExtensions forbid ../ escapes), swaps in the firefox manifest, and verifies
against the package allowlist -> dist/caveman-browser-firefox-<ver>.zip. The
chrome target is unchanged.

Co-Authored-By: Alot1z <Alot1z@users.noreply.github.com>
Signed-off-by: Alot1z <Alot1z@users.noreply.github.com>
2026-09-03 03:06:39 +02:00
Julius Brussee 82864c8f4c feat: ship Caveman 2.0.0 — engine, proxy, SDKs, unified CLI
Single-commit port of the Caveman 2 tree onto the original repo history
(candidate caveman-2@88878a4 applied over main@3098342). No unrelated-history
merge; original history untouched.

Preserved v1 surfaces:
- skills/caveman/SKILL.md byte-for-byte, plus plugin mirror and caveman.skill zip
- legacy CI (Node 18/20/22 installer + Python 3.11 suites) alongside engine-ci
- cli/install.js compatibility shim forwarding to bin/install.js
- .codex/config.toml ships both hooks and codex_hooks for older Codex (#617)
- README Trendshift + Skills.sh badges and local star-history asset
- v1.10.0-pinned curl installs; benchmarks/tmp-starcharts ignore rules

Fixed for public same-repo release:
- SECURITY.md vulnerability reporting points at this repository
- release-binaries.yml publishes to this repo via job-scoped GITHUB_TOKEN
  (cross-repo PAT removed); binary-release environment still gates signing
- packages/cli/PUBLISHING.md rewritten for packages/ layout and same-repo flow
- profile-contract and provider-catalog lanes skip lane-scope gates on
  initial import so the launch PR can gate on their real validation steps
- ANNOUNCEMENT.md network claim corrected: compression is local; requests
  still go to the provider you configured

Caveman 2 stays opt-in: bin-v1.0.0 binaries and @caveman-ai/cli publish
separately after this lands and soaks.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BLvb5QniwYjmcawyssQNw9
2026-08-11 16:46:10 +02:00