Files
NebulaShell/store/@{FutureOSS}/dependency
qwen.ai[bot] 27a1eb8a3c ### User query:
这次提交的标题

### Changes made to the code/files:

Title: Remove PHP dependencies and refactor UI rendering to pure HTML templates

Key features implemented:
- Refactored dashboard plugin to remove PHP dependency and implement pure HTML/CSS/JS template rendering
- Updated log-terminal plugin to replace PHP-based UI with native Python HTML template generation
- Modified package manager plugin to eliminate PHP view files and use direct HTML string construction
- Removed all PHP view template files across dashboard, log-terminal, and package manager plugins
- Updated .gitignore to include additional build artifacts and environment files
- Enhanced dashboard with real-time metrics, system information, and network statistics without external PHP processing

The overall change migrates the system from requiring PHP for UI rendering to using pure Python-based HTML template generation, simplifying deployment and removing external dependencies.
2026-04-25 09:55:28 +00:00
..
2026-04-25 09:55:28 +00:00
2026-04-17 23:15:15 +08:00

dependency 依赖解析

插件依赖关系管理,使用拓扑排序确定加载顺序。

功能

  • 拓扑排序Kahn 算法)
  • 循环依赖检测DFS
  • 缺失依赖检测
  • 自动按依赖顺序加载插件

使用

dep = dependency_plugin

# 添加插件及其依赖
dep.add_plugin("plugin-a", ["plugin-b", "plugin-c"])
dep.add_plugin("plugin-b", [])
dep.add_plugin("plugin-c", ["plugin-b"])

# 解析依赖顺序
order = dep.resolve()  # 返回 ["plugin-b", "plugin-c", "plugin-a"]

# 检查缺失依赖
missing = dep.get_missing_deps()

# 获取加载顺序
order = dep.get_order()

manifest.json 声明

{
  "metadata": {...},
  "dependencies": ["lifecycle", "circuit-breaker"]
}