mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 14:00:43 +00:00
test: use synthetic plugin channel fixtures
This commit is contained in:
@@ -7,7 +7,7 @@ import type { PluginHookBeforeToolCallResult, PluginHookMessageSendingResult } f
|
||||
const toolEvent = { toolName: "bash", params: { command: "echo hello" } };
|
||||
const toolCtx = { toolName: "bash" };
|
||||
const messageEvent = { to: "user-1", content: "hello" };
|
||||
const messageCtx = { channelId: "telegram" };
|
||||
const messageCtx = { channelId: "forum" };
|
||||
|
||||
async function runBeforeToolCallWithHooks(
|
||||
registry: PluginRegistry,
|
||||
|
||||
Reference in New Issue
Block a user