feat: 新增脚手架/开发模式/权限白名单/system-monitor插件
- nebula create mod/key/list-templates 模组脚手架 - nebula dev 开发模式热重载 - manifest permissions.imports 权限白名单机制 - system-monitor 系统监控仪表盘插件 - 默认端口统一为 10086 - 修复 _init_nbpf 误读 Ed25519 私钥为 RSA 的 bug - 更新 README.md 文档
This commit is contained in:
45
system-monitor/manifest.json
Normal file
45
system-monitor/manifest.json
Normal file
@@ -0,0 +1,45 @@
|
||||
{
|
||||
"name": "@NebulaShell/system-monitor",
|
||||
"version": "0.1.0",
|
||||
"description": "实时系统监控:CPU/内存/磁盘/网络/进程TOP,提供HTTP仪表盘和REST API",
|
||||
"author": "NebulaShell",
|
||||
"license": "MIT",
|
||||
"type": "tool",
|
||||
"main": "main.py",
|
||||
"enabled": true,
|
||||
"priority": 999,
|
||||
"runtime": {
|
||||
"language": "python",
|
||||
"entry_point": "main.py",
|
||||
"requirements": [
|
||||
"psutil>=5.8.0"
|
||||
]
|
||||
},
|
||||
"capabilities": [
|
||||
"monitoring"
|
||||
],
|
||||
"services": {
|
||||
"provides": [
|
||||
"system-monitor"
|
||||
],
|
||||
"consumes": []
|
||||
},
|
||||
"config": {
|
||||
"port": 10087,
|
||||
"host": "0.0.0.0",
|
||||
"interval": 5,
|
||||
"max_history": 60
|
||||
},
|
||||
"permissions": {
|
||||
"imports": [
|
||||
"os",
|
||||
"threading",
|
||||
"json",
|
||||
"time",
|
||||
"collections",
|
||||
"http",
|
||||
"urllib",
|
||||
"psutil"
|
||||
]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user