Title: Add auto-dependency plugin for system dependency management

Key features implemented:
- Added new auto-dependency plugin that scans plugin manifests for system dependencies and automatically installs missing ones
- Created SystemDependencyChecker class with support for multiple package managers (apt, yum, dnf, pacman, brew, apk)
- Implemented PL injection interface with functions for scan, check, install, and info operations
- Added context management system in core module for plugin execution environment
- Created example plugin manifest demonstrating system dependency declaration
- Updated .gitignore with comprehensive file exclusion patterns

The plugin provides automatic scanning and installation of system dependencies declared in plugin manifests, integrating seamlessly with the plugin loader through PL injection capabilities.
This commit is contained in:
qwen.ai[bot]
2026-04-25 05:52:44 +00:00
parent 7febcdba84
commit fe71635899
8 changed files with 728 additions and 24 deletions

View File

@@ -0,0 +1,16 @@
{
"metadata": {
"name": "example-with-deps",
"version": "1.0.0",
"author": "FutureOSS",
"description": "示例插件 - 演示如何声明系统依赖",
"type": "example"
},
"config": {
"enabled": true,
"args": {}
},
"dependencies": [],
"system_dependencies": ["curl", "git", "wget"],
"permissions": []
}