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:
20
store/@{FutureOSS}/auto-dependency/manifest.json
Normal file
20
store/@{FutureOSS}/auto-dependency/manifest.json
Normal 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": ["*"]
|
||||
}
|
||||
Reference in New Issue
Block a user