mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-15 01:50:45 +00:00
refactor(channels): route inbound turns through kernel
This commit is contained in:
@@ -198,6 +198,16 @@ function createFeishuBotRuntime(overrides: DeepPartial<PluginRuntime> = {}): Plu
|
||||
buildPairingReply: vi.fn(),
|
||||
},
|
||||
turn: {
|
||||
run: vi.fn(async (params) => {
|
||||
const input = await params.adapter.ingest(params.raw);
|
||||
const turn = await params.adapter.resolveTurn(input, {
|
||||
kind: "message",
|
||||
canStartAgentTurn: true,
|
||||
});
|
||||
return {
|
||||
dispatchResult: await turn.runDispatch(),
|
||||
};
|
||||
}),
|
||||
runPrepared: vi.fn(async (params) => ({
|
||||
dispatchResult: await params.runDispatch(),
|
||||
})),
|
||||
|
||||
Reference in New Issue
Block a user