The Plugin Contract#
Every feature, telemetry engine, and section generator in MonoForge is implemented as a Plugin. A plugin is a plain TypeScript object that adheres strictly to the Plugin interface defined in src/lib/plugins/types.ts.
Plugin Zod Schema#
Every plugin must validate against the official Zod schema:
TYPESCRIPT
Registration Lifecycle#
To register a new plugin:
- Create a dedicated module inside
src/lib/plugins/wrappers/<plugin-id>.ts. - Implement the
renderfunction returning valid GitHub Flavored Markdown. - Import and append the plugin to
pluginRegistryinside:
BASH
- Once registered, the plugin automatically surfaces in the Developer Studio, Visual Studio, and Telemetry Arsenal without manual UI wiring.
