fix(update): confirm incompatible plugin shutdown before restart

Co-authored-by: Codex <noreply@openai.com>
This commit is contained in:
Zyy
2026-09-30 01:36:32 +08:00
co-authored by Codex
parent 718b959fc1
commit b4d11694ae
46 changed files with 1261 additions and 168 deletions
+2
View File
@@ -177,6 +177,8 @@ jobs:
host_path = "backend/crates/gateway-plugin/runtime/plugin-host-compatibility.json"
host = JSON.parse(File.read(host_path))
abort "Invalid plugin host compatibility declaration: #{host_path}" unless host["schema_version"] == 2
# 保留旧更新器可解析的传输格式,实际支持范围仍取自当前宿主合同。
host = host.merge("schema_version" => 1, "permissions" => [])
# 清单只依赖版本与兼容声明,平台归档和镜像消费同一份封口结果。
manifest = {
"schema_version" => 1,