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,20 @@
{
"metadata": {
"name": "auto-dependency",
"version": "1.0.0",
"author": "FutureOSS",
"description": "依赖自动安装插件 - 扫描所有插件的声明文件,检查并安装系统依赖",
"type": "core"
},
"config": {
"enabled": true,
"args": {
"scan_dirs": ["store"],
"package_manager": "auto",
"auto_install": true,
"pl_injection": true
}
},
"dependencies": ["plugin-loader"],
"permissions": ["*"]
}