Plugins: add inbound claim and Telegram interaction seams

This commit is contained in:
huntharo
2026-03-12 08:08:30 -04:00
parent 644fb76960
commit f55d27f7a0
26 changed files with 1125 additions and 1 deletions

View File

@@ -69,6 +69,19 @@ export function createPluginRuntimeMock(overrides: DeepPartial<PluginRuntime> =
registerMemoryCli: vi.fn() as unknown as PluginRuntime["tools"]["registerMemoryCli"],
},
channel: {
bindings: {
bind: vi.fn(),
getCapabilities: vi.fn(() => ({
adapterAvailable: true,
bindSupported: true,
unbindSupported: true,
placements: ["current", "child"] as Array<"current" | "child">,
})),
listBySession: vi.fn(() => []),
resolveByConversation: vi.fn(() => null),
touch: vi.fn(),
unbind: vi.fn(() => Promise.resolve([])),
},
text: {
chunkByNewline: vi.fn((text: string) => (text ? [text] : [])),
chunkMarkdownText: vi.fn((text: string) => [text]),