Repository navigation
feat: marketplace plugins — browse, verify, install and manage in the Plugins tab - #395
Conversation
… Plugins tab Adds a Marketplace section to the existing Plugins tab backed by plugins.beemuu.com/registry.json: - marketplace_registry.js: validates registry entries (marketplace schema), semver compare, update detection - marketplace_zip.js: downloads are sha256-verified against the registry before extraction; bounded zip reader (stored + deflate); plugin.json must match the registry entry (id + version) or install is refused - marketplace_store.js: bounded localStorage persistence, separate from the v1/v2 package store - marketplace_runner.js: marketplace plugins (activate/deactivate lifecycle, context.vehicle/ui/fs per PLUGIN_FORMAT.md) run in a sandboxed iframe (allow-scripts allow-downloads, opaque origin, CSP connect-src 'none'). Vehicle reads are gated per declared capability through the existing plugin_capabilities bridge + plugin_host read-only surface; ui renders inside the frame; filesystem is a download-only writeFile; network and all ECU-write capabilities are refused with reasons shown at install - marketplace_ui.js + marketplace_boot.js: cards with capability previews, consent step before install (sha + source inspection), enable/disable, open/stop, update badges, remove; host fed from the read-only v3 bridge Tests: 17 new tests (registry, zip, store, runner policy). Full frontend suite: 1165/1166 pass — the one failure (frontend/version_surface 'Cargo.lock version') reproduces on clean main and is unrelated.
ECC Tools / Security EvidenceCommit: Security evidence gate passed (success) No security-sensitive scanner-evidence gap detected. Mode: enforce Scanned 12 changed file(s). No missing scanner-evidence signal was detected. Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / PR Risk TaxonomyCommit: PR taxonomy review recommended (neutral) Detected 1 PR taxonomy bucket(s): CI/CD Recommendation. Scanned 12 changed file(s). Roadmap taxonomy buckets: CI/CD RecommendationCI, dependency, coverage, and contract signals should be routed into follow-up checks or verification work. Signals:
Paths:
Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / Reference Set ReadinessCommit: Reference set readiness gaps detected (neutral) Reference evidence present for 0/7 areas (0%) across 12 changed file(s). This check is based on files changed in this PR. Repository-level readiness is still reported by
Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
ECC Tools / Hosted Promotion ReadinessCommit: Hosted promotion readiness passed (success) No hosted promotion evidence gaps detected across 12 changed file(s); 0 corpus scenarios had matching evidence. This check compares PR file changes against the evaluator/RAG promotion corpus in No evaluator corpus scenarios matched this PR. Check publication was denied or unavailable. An app owner must enable Checks: read and write, and the installation owner must approve the updated permission. |
## What changed Release PR for **v5.1.0 — "Plugin Marketplace"**. Ships the marketplace feature merged in #395 as the current release, and syncs every version surface: - **Version bump 5.0.1 → 5.1.0**: `package.json`, `package-lock.json`, `src-tauri/Cargo.toml`, `src-tauri/Cargo.lock`, `src-tauri/tauri.conf.json`, app brand band (`src/index.html`), README badge + version lines, site pages (home hero/banner/tag link, press, roadmap, changelog, dashboard chip), `scripts/gen-content-pages.py`, and the `version_surface.test.js` constant. - **`CHANGELOG.md` [5.1.0]** section with PR reference, Tier A label, and premise per the version-surface rule. - **`RELEASE_NOTES_v5.1.0.md`** in the established format (summary, validation, install & recovery). - **Press page** highlights rewritten for the marketplace release (was still describing v5.0.1 chrome work). - **`CLAUDE.md`**: standing owner directive (2026-11-27) — no human review for any tier; Tier B lands autonomously with the PR description as audit trail; releases are agent-executed with the full test matrix as the gate; irreversible and production-VPS actions remain per-occurrence owner instruction. ## How verified - Full frontend suite (CI glob): **1166/1166 pass, 0 fail** — including `version_surface.test.js`, which now confirms every app manifest, the changelog, the README badge and all site pages agree on v5.1.0. (The previously failing `Cargo.lock version` assertion was a local CRLF artifact; this branch's lockfile is LF and the assertion passes.) - `node scripts/lint-toml.js`: 52 files, 0 problems. - No `src-tauri/`, `backend/`, or `ops/` code changes — version strings only in those files' manifests. ## Release procedure after merge Tag `v5.1.0` on the merge commit and push the tag → `release.yml` builds installers and regenerates/deploys the landing page; `update-on-release.yml` stamps the app-release band on plugins.beemuu.com.
What changed
Adds a Marketplace section to the existing Plugins tab (
src/**only — Tier A), so users can browse, verify, install, run, and manage plugins from plugins.beemuu.com without leaving the app.New modules (all
src/js/):marketplace_registry.js— validatesregistry.jsonentries against the marketplace schema (id slug, semver, category, capability vocabulary, https URL, sha256 shape, tag caps); semver compare + update detection. Pure.marketplace_zip.js— downloads are sha256-verified against the registry entry before extraction (same verify-before-parse rule asplugins_registry_client.js); bounded zip reader (stored + deflate viaDecompressionStream, capped entries/sizes, no traversal names); the archive'splugin.jsonmust match the registry entry on id and version or install is refused. No WebCrypto → no install.marketplace_store.js— bounded localStorage persistence (20 plugins / 2 MiB / 120 KB source), separate key from the v1/v2 package store.marketplace_runner.js— runs marketplace packages (activate(context)/deactivate(), ESMmain.js) in a sandboxed iframe:sandbox="allow-scripts allow-downloads"(opaque origin, noallow-same-origin), CSPconnect-src 'none'(network capability is structurally impossible).context.vehicle.readVin/readDtc/subscribeLivecross the frame boundary only as messages resolved against the existing read-onlyplugin_host.jssurface, gated per declared capability throughplugin_capabilities.js(createBridge, deny-by-default).context.uipanels render inside the frame's own DOM;context.fs.writeFileis a download-only export;clear-dtc/coding-write/ecu-flash/networkare refused with reasons shown in the UI.marketplace_ui.js+marketplace_boot.js— marketplace cards (official badge, category, capability preview, min-app-version gate), consent step before install (capabilities granted/refused, sha256, README + source inspection), then enable/disable, open/stop, update badges with one-click update, remove. The vehicle host is fed from the read-onlywindow.beeemuuV3getters; live data publishes on the v3 change hook. App version is read from the header band forminAppVersionchecks andcontext.app.version.Touched:
src/index.html(section markup + script tags;plugin_host.jsnow loaded),src/css/plugins.css(badge/update/frame styles).How verified
marketplace_registry,marketplace_zip— including an in-test zip writer covering stored + deflate entries,marketplace_store,marketplace_runnerpolicy: grant/refusal matrix, sandbox/CSP assertions).node --test "src/js/**/*.test.js" "src/js/**/*.test.cjs" "frontend/**/*.test.js"): 1165/1166 pass.frontend/version_surface.test.js"the app manifests, changelog and README agree with the site release" (Cargo.lock version) — reproduces on cleanmainand is unrelated to this PR (pre-existing version-surface drift; fixing it is release-scope, not this PR).node --checkclean on all new files.src-tauri/) and backend untouched.Notes for review
window.BEEMUU_MARKETPLACE_URLfor staging/dev (defaults tohttps://plugins.beemuu.com).{series}snapshots are converted to the marketplacesubscribeLive(pids, cb)values shape (keyed by series id and normalized label).