fix(qa-lab): use generic gateway runtime SDK

This commit is contained in:
Peter Steinberger
2026-04-27 14:03:24 +01:00
parent f75d8827f2
commit 8de458c6c0
4 changed files with 6 additions and 6 deletions

View File

@@ -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,
}));

View File

@@ -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 = {

View File

@@ -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 {

View File

@@ -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", () => {