feat: Add type and module reorganization for Services, Modes, Meta and Filter Plugins

Co-authored-by: aider (openai/andrew/openrouter/sonoma-sky-alpha) <aider@aider.chat>
This commit is contained in:
Andrew Phillips
2025-09-10 09:39:22 -03:00
parent eaf47d7fed
commit 832330f31b
8 changed files with 211 additions and 6 deletions

View File

@@ -5,7 +5,6 @@ use std::sync::Mutex;
use once_cell::sync::Lazy;
pub mod exec;
use crate::meta_plugin::exec::MetaPluginExec;
pub mod digest;
pub mod magic;
pub mod text;
@@ -19,6 +18,20 @@ pub mod shell_pid;
pub mod keep_pid;
pub mod env;
pub use exec::MetaPluginExec;
pub use digest::DigestMetaPlugin;
pub use magic::MagicFileMetaPlugin;
pub use text::TextMetaPlugin;
pub use read_time::ReadTimeMetaPlugin;
pub use read_rate::ReadRateMetaPlugin;
pub use hostname::HostnameMetaPlugin;
pub use cwd::CwdMetaPlugin;
pub use user::UserMetaPlugin;
pub use shell::ShellMetaPlugin;
pub use shell_pid::ShellPidMetaPlugin;
pub use keep_pid::KeepPidMetaPlugin;
pub use env::EnvMetaPlugin;
/// Represents metadata to be stored
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct MetaData {
@@ -323,7 +336,7 @@ pub fn get_meta_plugin(
}
return Box::new(MetaPluginExec::new(&program_name,
args.iter().map(|s: &String| s.as_str()).collect(),
args.iter().map(|s| s.as_str()).collect(),
meta_name,
split_whitespace,
options,