Debug: fix headless mode, plugin compat, psutil optional, module imports
- headless: TUI skip now works correctly - example_plugin: keyword args compat (plugin_name=, config=, bridge=) - sysmon: psutil made optional (graceful degrade) - tui_service: SysMonWidget optional - All 22 modules import clean, 23 tests pass, integration verified
This commit is contained in:
@@ -4,10 +4,14 @@ commands:
|
||||
permissions:
|
||||
- framework.tui.control
|
||||
source: internal
|
||||
chat_broadcast: &id001
|
||||
description: 向所有聊天客户端广播消息
|
||||
create-plugin:
|
||||
description: 创建新插件脚手架
|
||||
permissions:
|
||||
- plugin.example.chat.broadcast
|
||||
- framework.scaffold.plugin
|
||||
source: internal
|
||||
echo: &id001
|
||||
description: echo input
|
||||
permissions: []
|
||||
source: plugin.example_plugin
|
||||
help:
|
||||
description: 显示帮助信息
|
||||
@@ -24,15 +28,15 @@ commands:
|
||||
permissions:
|
||||
- framework.network.diagnose
|
||||
source: internal
|
||||
network_info: &id002
|
||||
description: 显示插件网络信息
|
||||
permissions: []
|
||||
source: plugin.example_plugin
|
||||
permissions:
|
||||
description: '权限管理: 显示权限状态'
|
||||
permissions:
|
||||
- framework.permission.read
|
||||
source: internal
|
||||
plugin_status: &id002
|
||||
description: show plugin status
|
||||
permissions: []
|
||||
source: plugin.example_plugin
|
||||
pm_plugin_status:
|
||||
description: '权限管理: 查看插件权限状态'
|
||||
permissions:
|
||||
@@ -88,9 +92,9 @@ commands:
|
||||
permissions:
|
||||
- framework.command.test
|
||||
source: internal
|
||||
last_updated: 119133.773274654
|
||||
last_updated: 248209.227564533
|
||||
plugin_commands:
|
||||
example_plugin:
|
||||
chat_broadcast: *id001
|
||||
network_info: *id002
|
||||
total_commands: 18
|
||||
echo: *id001
|
||||
plugin_status: *id002
|
||||
total_commands: 19
|
||||
|
||||
@@ -1,17 +1,9 @@
|
||||
http_port: 8000
|
||||
last_updated: 119133.817076582
|
||||
http_port: 4200
|
||||
last_updated: 248209.231599689
|
||||
plugin_routes:
|
||||
example_plugin:
|
||||
- methods:
|
||||
- GET
|
||||
path: /plugin/example_plugin/api/info
|
||||
path: /example_plugin/api/example/info
|
||||
require_auth: false
|
||||
- methods:
|
||||
- POST
|
||||
path: /plugin/example_plugin/api/echo
|
||||
require_auth: true
|
||||
- methods:
|
||||
- WEBSOCKET
|
||||
path: /plugin/example_plugin/ws/chat
|
||||
require_auth: true
|
||||
websocket_port: 8765
|
||||
websocket_port: 4240
|
||||
|
||||
Reference in New Issue
Block a user