Fixes: 1. media.ts: wrap placeholder generation in try-catch 2. toolbar.ts: check r.ok, display error message in popover
Marketplace Test Plugin
End-to-end test plugin for the EmDash marketplace publish and audit pipeline.
What it does
- Hooks into
content:beforeSaveto log save events - Exposes a
/pingroute and an/eventsroute - Declares
read:contentandwrite:contentcapabilities - Includes icon and screenshot assets for image audit testing
Usage
Bundle and publish to a marketplace instance:
emdash plugin bundle --dir packages/plugins/marketplace-test
emdash plugin publish dist/marketplace-test-0.1.0.tar.gz --registry https://emdash-marketplace.cto.cloudflare.dev
Testing
This plugin is designed to exercise every step of the marketplace pipeline:
- Bundle —
emdash plugin bundlebuildsbackend.jsfromsandbox-entry.ts - Upload — tarball includes manifest, backend, icon, screenshot, README
- Code audit — Workers AI analyzes
backend.js(should pass — clean code) - Image audit — Workers AI analyzes
icon.pngandscreenshots/(should pass) - Status resolution — enforcement mode determines final status