mirror of
https://github.com/openclaw/openclaw.git
synced 2026-08-27 21:07:01 -06:00
601ffa2530
* refactor(channels): centralize turn execution lifecycle * refactor(extensions): adopt core channel turn plans * test(channels): ratchet modern dispatch ownership * chore(channels): drop stale max-lines exemption * fix(channels): allow async delivery error cleanup * test(channels): await async delivery cleanup * test(channels): await delivery error callbacks * fix(channels): preserve delivery error contract * fix(plugin-sdk): preserve channel inbound declarations * test(channels): exercise core delivery plans * fix(channels): await delivery error cleanup * fix(channels): preserve async cleanup contract * refactor(channels): trim dispatch boilerplate * fix(channels): mask observe-only dispatch results * refactor(channels): delete unused dispatch exports * fix(msteams): preserve resolver config overrides * refactor(channels): keep Teams turn config internal * test(plugins): drop retired Teams runtime export guard
16 lines
480 B
TypeScript
16 lines
480 B
TypeScript
// Msteams plugin module implements message handler mock support support behavior.
|
|
import { vi } from "vitest";
|
|
import { getMSTeamsTestRuntimeState } from "../monitor-handler.test-helpers.js";
|
|
|
|
export function getRuntimeApiMockState() {
|
|
return getMSTeamsTestRuntimeState();
|
|
}
|
|
|
|
vi.mock("../reply-dispatcher.js", () => ({
|
|
createMSTeamsReplyDispatcher: () => ({
|
|
dispatcherOptions: {},
|
|
delivery: { deliver: vi.fn(async () => undefined) },
|
|
replyOptions: {},
|
|
}),
|
|
}));
|