Skip to content

feat: marketplace plugins — browse, verify, install and manage in the Plugins tab - #395

Merged
github-actions[bot] merged 1 commit into
mainfrom
feat/marketplace-plugins-tab
Nov 27, 2026
Merged

github-actions[bot] merged 1 commit into
mainfrom
feat/marketplace-plugins-tab

Conversation

@ohgeeceee

Copy link
Copy Markdown
Owner

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 — validates registry.json entries 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 as plugins_registry_client.js); bounded zip reader (stored + deflate via DecompressionStream, capped entries/sizes, no traversal names); the archive's plugin.json must 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(), ESM main.js) in a sandboxed iframe: sandbox="allow-scripts allow-downloads" (opaque origin, no allow-same-origin), CSP connect-src 'none' (network capability is structurally impossible). context.vehicle.readVin/readDtc/subscribeLive cross the frame boundary only as messages resolved against the existing read-only plugin_host.js surface, gated per declared capability through plugin_capabilities.js (createBridge, deny-by-default). context.ui panels render inside the frame's own DOM; context.fs.writeFile is a download-only export; clear-dtc/coding-write/ecu-flash/network are 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-only window.beeemuuV3 getters; live data publishes on the v3 change hook. App version is read from the header band for minAppVersion checks and context.app.version.

Touched: src/index.html (section markup + script tags; plugin_host.js now loaded), src/css/plugins.css (badge/update/frame styles).

How verified

  • 17 new tests (marketplace_registry, marketplace_zip — including an in-test zip writer covering stored + deflate entries, marketplace_store, marketplace_runner policy: grant/refusal matrix, sandbox/CSP assertions).
  • Full frontend suite, CI parity (node --test "src/js/**/*.test.js" "src/js/**/*.test.cjs" "frontend/**/*.test.js"): 1165/1166 pass.
    • The single failure — frontend/version_surface.test.js "the app manifests, changelog and README agree with the site release" (Cargo.lock version) — reproduces on clean main and is unrelated to this PR (pre-existing version-surface drift; fixing it is release-scope, not this PR).
  • node --check clean on all new files.
  • Rust core (src-tauri/) and backend untouched.

Notes for review

  • Marketplace registry URL is overridable via window.BEEMUU_MARKETPLACE_URL for staging/dev (defaults to https://plugins.beemuu.com).
  • Installed plugins are always stored disabled; nothing runs until the user enables and opens a plugin.
  • Live-data adaptation: host {series} snapshots are converted to the marketplace subscribeLive(pids, cb) values shape (keyed by series id and normalized label).

… 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

ecc-tools Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / Security Evidence

Commit: 43aba7779654d3b435fc0d7e7f8ef3ceb45db5f9

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

ecc-tools Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / PR Risk Taxonomy

Commit: 43aba7779654d3b435fc0d7e7f8ef3ceb45db5f9

PR taxonomy review recommended (neutral)

Detected 1 PR taxonomy bucket(s): CI/CD Recommendation.

Scanned 12 changed file(s).

Roadmap taxonomy buckets:

CI/CD Recommendation

CI, dependency, coverage, and contract signals should be routed into follow-up checks or verification work.

Signals:

  • User-facing UI changes may ship without browser coverage
  • 4 CI or workflow path(s) changed

Paths:

  • src/js/marketplace_registry.test.js
  • src/js/marketplace_runner.test.js
  • src/js/marketplace_store.test.js
  • src/js/marketplace_zip.test.js
  • src/css/plugins.css
  • src/index.html
  • src/js/marketplace_boot.js
  • src/js/marketplace_registry.js

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

ecc-tools Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / Reference Set Readiness

Commit: 43aba7779654d3b435fc0d7e7f8ef3ceb45db5f9

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 /ecc-tools analyze comments and generated manifests.

Area Status Evidence / Next Step
Deep analyzer corpus Missing Add analyzer fixture, golden, benchmark, or reference-set files that can catch analyzer regressions.
RAG/evaluator comparison Missing Add retrieval or evaluator reference-set comparison fixtures with expected ranking behavior.
PR salvage/review corpus Missing Add stale-PR, review-thread, reopen-flow, or salvage reference cases for queue cleanup automation.
Discussion triage corpus Missing Add public discussion triage fixtures, golden cases, or reference sets for informational, answered, and no-response classifications.
Harness compatibility Missing Add cross-harness, adapter-compliance, or harness-audit evidence for Claude, Codex, OpenCode, Zed, dmux, and agent surfaces.
Security evidence Missing Attach security evidence such as SBOMs, SARIF, audit reports, or AgentShield evidence packs.
CI failure-mode evidence Missing Add captured CI failure logs, dry-run fixtures, or troubleshooting docs for common workflow failure modes.

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

ecc-tools Bot commented Nov 27, 2026

Copy link
Copy Markdown
Contributor

ECC Tools / Hosted Promotion Readiness

Commit: 43aba7779654d3b435fc0d7e7f8ef3ceb45db5f9

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 src/analyzers/fixtures/evaluator-rag-corpus.ts.
Hosted output scoring inspected 0 completed cached hosted job results.

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.

@github-actions
github-actions Bot merged commit 74af6ef into main Nov 27, 2026
17 checks passed
@github-actions
github-actions Bot deleted the feat/marketplace-plugins-tab branch November 27, 2026 10:55
github-actions Bot pushed a commit that referenced this pull request Nov 27, 2026
## 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.
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.

1 participant