diff --git a/config/plugins/commands.yaml b/config/plugins/commands.yaml index bc958c7..243e2e7 100644 --- a/config/plugins/commands.yaml +++ b/config/plugins/commands.yaml @@ -34,7 +34,7 @@ commands: - framework.permission.read source: internal plugin_status: &id002 - description: show plugin status + description: show status permissions: [] source: plugin.example_plugin pm_plugin_status: @@ -92,7 +92,7 @@ commands: permissions: - framework.command.test source: internal -last_updated: 252439.598783596 +last_updated: 274185.477575092 plugin_commands: example_plugin: echo: *id001 diff --git a/config/services/network_routes.yaml b/config/services/network_routes.yaml index 1a5cfc5..d77185d 100644 --- a/config/services/network_routes.yaml +++ b/config/services/network_routes.yaml @@ -1,5 +1,5 @@ http_port: 4200 -last_updated: 252439.682639846 +last_updated: 274185.481265509 plugin_routes: example_plugin: - methods: diff --git a/main.py b/main.py index b382480..a0aa926 100644 --- a/main.py +++ b/main.py @@ -333,7 +333,11 @@ class SenSuFramework: # 特殊终端,添加命令行输入处理 tui = self.service_manager.get_service("tui") - if self.headless or not hasattr(tui, 'tui_app'): + if self.headless: + while self.is_running: + try: await asyncio.sleep(1) + except asyncio.CancelledError: break + elif not hasattr(tui, 'tui_app'): await self._run_cli_mode() else: # 原有的TUI模式