pub enum PluginError {
Show 13 variants
InvalidManifest(String),
InvalidName {
name: String,
reason: String,
},
DisallowedMcpCommand {
id: String,
command: String,
},
SkillNameConflictWithManaged {
name: String,
},
SkillNameConflictWithBundled {
name: String,
},
SkillNameConflictWithPlugin {
name: String,
plugin: String,
},
UnsafeOverlay {
key: String,
},
SkillEntryMissing {
path: PathBuf,
},
NotFound {
name: String,
},
InvalidSource {
path: String,
reason: String,
},
Io {
path: PathBuf,
source: Error,
},
Toml(Error),
TomlSer(Error),
}Expand description
Errors that can occur during plugin install, remove, or list operations.
Variants§
InvalidManifest(String)
The plugin manifest (plugin.toml) is missing or cannot be parsed.
InvalidName
The plugin name is invalid (empty, contains path separators, or reserved).
DisallowedMcpCommand
A plugin MCP entry declares a command not in mcp.allowed_commands.
SkillNameConflictWithManaged
A plugin skill name conflicts with an existing managed (user) skill.
SkillNameConflictWithBundled
A plugin skill name conflicts with a compile-time bundled skill.
SkillNameConflictWithPlugin
A plugin skill name conflicts with a skill from another installed plugin.
UnsafeOverlay
A plugin’s [config] section contains a key not in the tighten-only safelist.
SkillEntryMissing
A [[skills]] path entry does not contain a valid SKILL.md file.
NotFound
The plugin directory does not exist or cannot be read.
InvalidSource
The plugin source path or URL is invalid.
Io
A filesystem operation failed.
Toml(Error)
TOML serialization/deserialization error.
TomlSer(Error)
TOML serialization error.
Trait Implementations§
Source§impl Debug for PluginError
impl Debug for PluginError
Source§impl Display for PluginError
impl Display for PluginError
Source§impl Error for PluginError
impl Error for PluginError
Source§fn source(&self) -> Option<&(dyn Error + 'static)>
fn source(&self) -> Option<&(dyn Error + 'static)>
1.0.0 · Source§fn description(&self) -> &str
fn description(&self) -> &str
use the Display impl or to_string()