first commit

This commit is contained in:
Matt Kane
2026-04-01 10:44:22 +01:00
commit 43fcb9a131
1789 changed files with 395041 additions and 0 deletions

View File

@@ -0,0 +1,29 @@
# Marketplace Test Plugin
End-to-end test plugin for the EmDash marketplace publish and audit pipeline.
## What it does
- Hooks into `content:beforeSave` to log save events
- Exposes a `/ping` route and an `/events` route
- Declares `read:content` and `write:content` capabilities
- Includes icon and screenshot assets for image audit testing
## Usage
Bundle and publish to a marketplace instance:
```bash
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:
1. **Bundle**`emdash plugin bundle` builds `backend.js` from `sandbox-entry.ts`
2. **Upload** — tarball includes manifest, backend, icon, screenshot, README
3. **Code audit** — Workers AI analyzes `backend.js` (should pass — clean code)
4. **Image audit** — Workers AI analyzes `icon.png` and `screenshots/` (should pass)
5. **Status resolution** — enforcement mode determines final status