refactor(gateway): remove unused scoped call wrapper · openclaw/openclaw@720c0ab
vincentkoc
·
2026-06-19
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
|
1 | 1 | // Gateway call helper tests pin URL override, token, and RPC scope behavior for |
2 | 2 | // agent tools that route through the local gateway client. |
3 | 3 | import { afterAll, beforeEach, describe, expect, it, vi } from "vitest"; |
4 | | -import type { CallGatewayScopedOptions } from "../../gateway/call.js"; |
| 4 | +import type { CallGatewayOptions } from "../../gateway/call.js"; |
5 | 5 | import { createEmptyPluginRegistry } from "../../plugins/registry-empty.js"; |
6 | 6 | import { setActivePluginRegistry } from "../../plugins/runtime.js"; |
7 | 7 | import { callGatewayTool, readGatewayCallOptions, resolveGatewayOptions } from "./gateway.js"; |
@@ -46,13 +46,13 @@ vi.mock("../../infra/device-identity.js", () => ({
|
46 | 46 | }, |
47 | 47 | })); |
48 | 48 | |
49 | | -function capturedGatewayCall(): CallGatewayScopedOptions { |
| 49 | +function capturedGatewayCall(): CallGatewayOptions { |
50 | 50 | expect(mocks.callGateway).toHaveBeenCalledTimes(1); |
51 | 51 | const call = mocks.callGateway.mock.calls[0]; |
52 | 52 | if (!call) { |
53 | 53 | throw new Error("expected callGateway to be called"); |
54 | 54 | } |
55 | | -return call[0] as CallGatewayScopedOptions; |
| 55 | +return call[0] as CallGatewayOptions; |
56 | 56 | } |
57 | 57 | |
58 | 58 | describe("gateway tool defaults", () => { |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。