From c416b047984d68a3b8fac3d32589f482707b4d7d Mon Sep 17 00:00:00 2001 From: qinglong Date: Sat, 13 Jun 2026 18:00:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20Sentinel=20=E6=94=B9=E7=94=A8=E5=89=8D?= =?UTF-8?q?=E7=AB=AF=E8=BD=AE=E8=AF=A2=E6=9B=BF=E4=BB=A3=20SSE=20(?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=20EventSource=20=E8=AE=A4=E8=AF=81=E9=97=AE?= =?UTF-8?q?=E9=A2=98)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit SSE 跨 panel_auth 认证层不可靠 → 改用 setInterval 每 2s fetch /sentinel/api/nodes Co-Authored-By: Claude --- config/permissions/pending_requests.json | 22 ++++++++++++++++++++++ config/plugins/commands.yaml | 2 +- config/services/network_routes.yaml | 2 +- plugins/sentinel/dashboard.html | 18 ++++++------------ 4 files changed, 30 insertions(+), 14 deletions(-) diff --git a/config/permissions/pending_requests.json b/config/permissions/pending_requests.json index 112562a..a6b2c4b 100644 --- a/config/permissions/pending_requests.json +++ b/config/permissions/pending_requests.json @@ -152,5 +152,27 @@ "framework.command.execute" ], "timestamp": 26497.118727235 + }, + "d030c615": { + "plugin_name": "example_plugin", + "permissions": [ + "plugin.example.read", + "plugin.example.write", + "plugin.example.execute", + "framework.event.subscribe", + "framework.command.execute" + ], + "timestamp": 26605.864670631 + }, + "fe466e0e": { + "plugin_name": "sentinel", + "permissions": [ + "plugin.sentinel.read", + "plugin.sentinel.write", + "plugin.network.access", + "framework.event.subscribe", + "framework.command.execute" + ], + "timestamp": 26605.866739485 } } \ No newline at end of file diff --git a/config/plugins/commands.yaml b/config/plugins/commands.yaml index 6518a58..6a5dced 100644 --- a/config/plugins/commands.yaml +++ b/config/plugins/commands.yaml @@ -101,7 +101,7 @@ commands: permissions: - framework.command.test source: internal -last_updated: 26497.09846161 +last_updated: 26605.852289433 plugin_commands: example_plugin: echo: *id001 diff --git a/config/services/network_routes.yaml b/config/services/network_routes.yaml index 5195ee1..9041167 100644 --- a/config/services/network_routes.yaml +++ b/config/services/network_routes.yaml @@ -1,5 +1,5 @@ http_port: 4200 -last_updated: 26497.116694526 +last_updated: 26605.865204328 plugin_routes: example_plugin: - methods: diff --git a/plugins/sentinel/dashboard.html b/plugins/sentinel/dashboard.html index 0bb0d8c..b9c8bef 100644 --- a/plugins/sentinel/dashboard.html +++ b/plugins/sentinel/dashboard.html @@ -66,7 +66,7 @@