1.3 KiB
Local Plugin Development
Local development must exercise the same platform-mediated flows used by installed plugins.
Flow
- Validate the plugin manifest with
npm run validate:manifest. - Register the validated manifest with platform
POST /api/v1/game-plugins/register-manifestusing a manifest artifact reference and the manifest payload. - Serve plugin page from a local dev server or static directory.
- Select a test server instance and run endpoint.
- Use platform bridge calls for jobs, logs, files, artifacts, and AI.
Plugins must not bypass platform authorization by calling run directly.
Manifest validation rejects raw host paths, raw credentials, direct run sockets, and raw AI/provider keys. Platform registration repeats the same safety class of validation before storing registry metadata, so a plugin workspace validation result is not treated as a trusted backend bypass.
For full local stack proof, run the repository local debug workspace:
scripts/local-debug-start.sh
scripts/local-debug-smoke.sh
That workflow registers plugins/examples/dev-game-plugin/manifest.json, creates a safe server-local-debug fixture through platform APIs, and verifies that plugin/browser evidence exposes only logical IDs, platform routes, job refs, log refs, artifact refs, and safe metadata.