Plugin
interfaceinterface Plugin<TMetadata>Plugin containing optional extractors, parsers, schemas, and validators.
Auto-registers for declared file extensions.
PROPERTIES
| NAME | TYPE | DESCRIPTION |
|---|---|---|
| readonly commands? | PluginCommands<TMetadata> | CLI commands provided by this plugin. Can be static commands or a function that receives the resolved config. |
| readonly extensions? | string[] | File extensions this plugin handles (e.g., ['.ts', '.tsx', '.js', '.jsx']) |
| readonly extractor? | Extractor<TMetadata> | Extractor that finds examples in a directory tree |
| readonly fileContentsParsers? | FileContentsParser[] | Parsers that process file contents (run in pipeline order) |
| readonly name | string | Unique plugin name |
| readonly schemas? | PluginSchemas | JSON Schema definitions for IDE tooling. |
| readonly validators? | PluginValidators<TMetadata> | Runtime validators for options and metadata. |