API: Plugins
Plugin lifecycle management endpoints.
List Plugins
GET /api/v1/pluginsReturns all plugins with marketplace metadata (version, author, config, ui_schema, stats).
Install Plugin
POST /api/v1/plugins/installInstall a plugin. The plugin file is AST-scanned for security before loading.
json
{
"name": "my_plugin"
}Uninstall Plugin
DELETE /api/v1/plugins/{name}Remove a plugin from the pipeline.
Toggle Plugin
POST /api/v1/plugins/toggleEnable or disable a plugin without uninstalling it.
json
{
"name": "smart_budget_guard",
"enabled": true
}Hot-Swap
POST /api/v1/plugins/hot-swapZero-downtime reload of all plugins using RCU (Read-Copy-Update):
- Calls
on_unload()on existing plugins - Snapshots current state (rollback target)
- Loads new configuration
- Calls
on_load()on new plugins - Runs health check
- Atomic swap
- Auto-rollback on failure
Rollback
POST /api/v1/plugins/rollbackRevert to the previous plugin state (before the last hot-swap).