mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 08:30:42 +00:00
fix(qa-lab): use generic gateway runtime SDK
This commit is contained in:
@@ -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,
|
||||
}));
|
||||
|
||||
|
||||
@@ -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 = {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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", () => {
|
||||
|
||||
Reference in New Issue
Block a user