diff --git a/extensions/qa-lab/src/gateway-rpc-client.test.ts b/extensions/qa-lab/src/gateway-rpc-client.test.ts index eab529a961f..a7320bd2ac9 100644 --- a/extensions/qa-lab/src/gateway-rpc-client.test.ts +++ b/extensions/qa-lab/src/gateway-rpc-client.test.ts @@ -10,7 +10,7 @@ const gatewayRpcMock = vi.hoisted(() => { }; }); -vi.mock("openclaw/plugin-sdk/browser-node-runtime", () => ({ +vi.mock("openclaw/plugin-sdk/gateway-runtime", () => ({ callGatewayFromCli: gatewayRpcMock.callGatewayFromCli, })); diff --git a/extensions/qa-lab/src/gateway-rpc-client.ts b/extensions/qa-lab/src/gateway-rpc-client.ts index 6fb138f989b..0a2583b4395 100644 --- a/extensions/qa-lab/src/gateway-rpc-client.ts +++ b/extensions/qa-lab/src/gateway-rpc-client.ts @@ -1,5 +1,5 @@ -import { callGatewayFromCli } from "openclaw/plugin-sdk/browser-node-runtime"; import { formatErrorMessage } from "openclaw/plugin-sdk/error-runtime"; +import { callGatewayFromCli } from "openclaw/plugin-sdk/gateway-runtime"; import { formatQaGatewayLogsForError } from "./gateway-log-redaction.js"; type QaGatewayRpcRequestOptions = { diff --git a/extensions/qa-lab/src/runtime-api.ts b/extensions/qa-lab/src/runtime-api.ts index 602832e034c..a02cf412a79 100644 --- a/extensions/qa-lab/src/runtime-api.ts +++ b/extensions/qa-lab/src/runtime-api.ts @@ -1,7 +1,7 @@ export type { Command } from "commander"; export type { OpenClawConfig } from "openclaw/plugin-sdk/config-runtime"; export { definePluginEntry } from "openclaw/plugin-sdk/plugin-entry"; -export { callGatewayFromCli } from "openclaw/plugin-sdk/browser-node-runtime"; +export { callGatewayFromCli } from "openclaw/plugin-sdk/gateway-runtime"; export type { PluginRuntime } from "openclaw/plugin-sdk/runtime-store"; export { defaultQaRuntimeModelForMode } from "./model-selection.runtime.js"; export { diff --git a/test/scripts/npm-telegram-live.test.ts b/test/scripts/npm-telegram-live.test.ts index 6f226fa7c1a..8d51969946f 100644 --- a/test/scripts/npm-telegram-live.test.ts +++ b/test/scripts/npm-telegram-live.test.ts @@ -74,9 +74,9 @@ describe("package Telegram live Docker E2E", () => { expect(script).toContain('"./extensions/qa-channel/api.ts"'); expect(script).toContain('pkg.exports["./plugin-sdk/qa-channel-protocol"]'); expect(script).toContain('"./extensions/qa-channel/src/protocol.ts"'); - expect(gatewayRpcClient).toContain('from "openclaw/plugin-sdk/browser-node-runtime"'); - expect(qaRuntimeApi).toContain('from "openclaw/plugin-sdk/browser-node-runtime"'); - expect(gatewayRpcClient).not.toContain('from "openclaw/plugin-sdk/gateway-runtime"'); + expect(gatewayRpcClient).toContain('from "openclaw/plugin-sdk/gateway-runtime"'); + expect(qaRuntimeApi).toContain('from "openclaw/plugin-sdk/gateway-runtime"'); + expect(gatewayRpcClient).not.toContain('from "openclaw/plugin-sdk/browser-node-runtime"'); }); it("exposes installed package dependencies to the mounted QA harness", () => {