Skip to main content

load_plugin

Function load_plugin 

Source
pub async fn load_plugin(path: &Path) -> Result<LoadedPlugin, PluginError>
Expand description

Load a single plugin from a path

This function handles loading a plugin from:

  • A local directory (looking for manifest.json or claude_plugin.json)
  • A git repository (clone and load)
  • An npm package (install and load)

ยงArguments

  • path - The path to load the plugin from. Can be:
    • A local directory path
    • A git URL (https://, git@, or file://)
    • An npm package name (optionally with version)