Skip to content

Commit cf71fd8

Browse files
committed
test(qqbot): type channel tool harness
1 parent f206075 commit cf71fd8

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎extensions/qqbot/src/bridge/tools/channel.test.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function resolveChannelTool(params: {
2525
agentAccountId?: string;
2626
}): ChannelTool {
2727
const registerTool = vi.fn();
28-
registerChannelTool({ config: params.config, registerTool } as OpenClawPluginApi);
28+
registerChannelTool({ config: params.config, registerTool });
2929
const registration = registerTool.mock.calls[0]?.[0] as (ctx: {
3030
agentAccountId?: string;
3131
}) => ChannelTool;

‎extensions/qqbot/src/bridge/tools/channel.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ function hasChannelApiCredentials(account: ReturnType<typeof resolveQQBotAccount
1616
* channel APIs. Agents learn endpoint details from the skill docs and
1717
* send requests through this proxy.
1818
*/
19-
export function registerChannelTool(api: OpenClawPluginApi): void {
19+
export function registerChannelTool(api: Pick<OpenClawPluginApi, "config" | "registerTool">): void {
2020
const cfg = api.config;
2121
if (!cfg) {
2222
return;

0 commit comments

Comments
 (0)