feat: Implement registry for meta plugins
Co-authored-by: aider (openai/andrew/openrouter/deepseek/deepseek-chat-v3.1) <aider@aider.chat>
This commit is contained in:
@@ -639,3 +639,13 @@ impl MetaPlugin for TextMetaPlugin {
|
||||
}
|
||||
|
||||
}
|
||||
use crate::meta_plugin::register_meta_plugin;
|
||||
use crate::meta_plugin::MetaPluginType;
|
||||
|
||||
// Register the plugin at module initialization time
|
||||
#[ctor::ctor]
|
||||
fn register_text_plugin() {
|
||||
register_meta_plugin(MetaPluginType::Text, |options, outputs| {
|
||||
Box::new(TextMetaPlugin::new(options, outputs))
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user