diff --git a/platform_web/pages/PluginPageHostPage.test.tsx b/platform_web/pages/PluginPageHostPage.test.tsx index 00d3dff..79e4ba6 100644 --- a/platform_web/pages/PluginPageHostPage.test.tsx +++ b/platform_web/pages/PluginPageHostPage.test.tsx @@ -62,8 +62,8 @@ const plugin: GamePluginResponse = { title: "用户管理", path: "/players", bundleKey: "scum-server-plugin", - bundleVersion: "1.0.1", - bundleIntegritySha256: "sha256:3488b316d909e597024f8f31c7bc96ab8019f643d74a528dc442d3df0dc3d54e", + bundleVersion: "1.0.4", + bundleIntegritySha256: "sha256:359ade451d368774fd52b518e3a944ecda70f71cb9d4f8639d731d8072a44a60", permissions: ["server.read", "server.game-client.read", "server.game-client.command"], bridgeActions: ["server.instances.read"] }], @@ -138,7 +138,7 @@ describe("PluginPageHostPage", () => { const html = renderToStaticMarkup(); expect(html).toContain("用户管理"); expect(html).toContain("平台托管上下文"); - expect(html).toContain("scum-server-plugin@1.0.1"); + expect(html).toContain("scum-server-plugin@1.0.4"); expect(html).toContain("完整性"); expect(html).toContain("返回服务器"); expect(html).not.toMatch(/sessionToken|componentKey|hostPath|dsn|runSocket|credential/i); diff --git a/plugins/examples/scum-server-plugin/manifest.json b/plugins/examples/scum-server-plugin/manifest.json index a602e64..87a7d3d 100644 --- a/plugins/examples/scum-server-plugin/manifest.json +++ b/plugins/examples/scum-server-plugin/manifest.json @@ -3,7 +3,7 @@ "id": "game.scum", "name": "SCUM Server", "description": "First-party SCUM game server operations plugin with platform-mediated lifecycle and companion bridge support.", - "version": "0.1.13", + "version": "0.1.14", "kind": "game-plugin", "tags": [ "scum", @@ -1345,8 +1345,8 @@ "title": "用户管理", "path": "/players", "bundleKey": "scum-server-plugin", - "bundleVersion": "1.0.3", - "bundleIntegritySha256": "sha256:3488b316d909e597024f8f31c7bc96ab8019f643d74a528dc442d3df0dc3d54e", + "bundleVersion": "1.0.4", + "bundleIntegritySha256": "sha256:359ade451d368774fd52b518e3a944ecda70f71cb9d4f8639d731d8072a44a60", "permissions": [ "server.read", "server.remote.access", @@ -1367,8 +1367,8 @@ "title": "队伍管理", "path": "/squads", "bundleKey": "scum-server-plugin", - "bundleVersion": "1.0.3", - "bundleIntegritySha256": "sha256:3488b316d909e597024f8f31c7bc96ab8019f643d74a528dc442d3df0dc3d54e", + "bundleVersion": "1.0.4", + "bundleIntegritySha256": "sha256:359ade451d368774fd52b518e3a944ecda70f71cb9d4f8639d731d8072a44a60", "permissions": [ "server.read", "server.remote.access", @@ -1387,8 +1387,8 @@ "title": "实时地图", "path": "/live-map", "bundleKey": "scum-server-plugin", - "bundleVersion": "1.0.3", - "bundleIntegritySha256": "sha256:3488b316d909e597024f8f31c7bc96ab8019f643d74a528dc442d3df0dc3d54e", + "bundleVersion": "1.0.4", + "bundleIntegritySha256": "sha256:359ade451d368774fd52b518e3a944ecda70f71cb9d4f8639d731d8072a44a60", "permissions": [ "server.read", "server.remote.access", @@ -1407,8 +1407,8 @@ "title": "礼包管理", "path": "/gifts", "bundleKey": "scum-server-plugin", - "bundleVersion": "1.0.3", - "bundleIntegritySha256": "sha256:3488b316d909e597024f8f31c7bc96ab8019f643d74a528dc442d3df0dc3d54e", + "bundleVersion": "1.0.4", + "bundleIntegritySha256": "sha256:359ade451d368774fd52b518e3a944ecda70f71cb9d4f8639d731d8072a44a60", "permissions": [ "server.read", "server.remote.access", @@ -1428,8 +1428,8 @@ "title": "活动管理", "path": "/activity", "bundleKey": "scum-server-plugin", - "bundleVersion": "1.0.3", - "bundleIntegritySha256": "sha256:3488b316d909e597024f8f31c7bc96ab8019f643d74a528dc442d3df0dc3d54e", + "bundleVersion": "1.0.4", + "bundleIntegritySha256": "sha256:359ade451d368774fd52b518e3a944ecda70f71cb9d4f8639d731d8072a44a60", "permissions": [ "server.read", "server.remote.access", diff --git a/plugins/examples/scum-server-plugin/page-bundle/index.ts b/plugins/examples/scum-server-plugin/page-bundle/index.ts index 35e5cbf..25e53e1 100644 --- a/plugins/examples/scum-server-plugin/page-bundle/index.ts +++ b/plugins/examples/scum-server-plugin/page-bundle/index.ts @@ -1,5 +1,5 @@ import { renderSCUMFeaturePage } from "../features/page.js"; -export const pluginPageBundle = { key: "scum-server-plugin", version: "1.0.3", integritySha256: "sha256:3488b316d909e597024f8f31c7bc96ab8019f643d74a528dc442d3df0dc3d54e" }; +export const pluginPageBundle = { key: "scum-server-plugin", version: "1.0.4", integritySha256: "sha256:359ade451d368774fd52b518e3a944ecda70f71cb9d4f8639d731d8072a44a60" }; export function renderPluginPage(react: any, input: any) { return renderSCUMFeaturePage(react, { pageKey: input.page?.key ?? "players", pageTitle: input.page?.title ?? "用户管理", serverInstanceId: input.context.serverInstanceId, permissions: input.context.permissions, availability: input.availability, featureAvailability: input.availability.features, workspaceActions: input.workspaceActions }); } diff --git a/plugins/tests/manifest-validation.test.ts b/plugins/tests/manifest-validation.test.ts index 3375c21..5a96354 100644 --- a/plugins/tests/manifest-validation.test.ts +++ b/plugins/tests/manifest-validation.test.ts @@ -484,7 +484,7 @@ describe("plugin manifest validation", () => { const serialized = JSON.stringify(manifest).toLowerCase(); expect(serialized).not.toContain("local-proof"); - expect(manifest.version).toBe("0.1.13"); + expect(manifest.version).toBe("0.1.14"); expect(installAction.environment?.SERVER_TEMPLATE).toBe("scum-server"); expect(manifest.permissions).toEqual(expect.arrayContaining(["server.game-client.read", "server.game-client.command", "server.game-client.maintenance"])); expect(manifest.gameClientBridge.commands.map((command) => command.type)).toEqual(expect.arrayContaining([ diff --git a/scripts/local-debug/smoke.sh b/scripts/local-debug/smoke.sh index 5d1b62f..240cc67 100755 --- a/scripts/local-debug/smoke.sh +++ b/scripts/local-debug/smoke.sh @@ -463,7 +463,7 @@ if (!logSources.some((source) => source.kind === "process.stderr" && source.stre if (!plugin.gameClientBridge?.commands?.length) { missing.push("game client bridge declarations"); } -for (const pageKey of ["players", "squads", "live-map", "gifts"]) { +for (const pageKey of ["players", "squads", "live-map", "gifts", "workflows"]) { if (!pageKeys.includes(pageKey)) { missing.push(`SCUM page ${pageKey}`); }