fix: align channel adapters with plugin sdk

This commit is contained in:
Peter Steinberger
2026-03-16 01:10:22 +00:00
parent 7a93f7d9df
commit b8dbc12560
2 changed files with 6 additions and 5 deletions

View File

@@ -65,10 +65,11 @@ const feishuOnboarding = {
},
},
}),
promptAllowFrom: async (cfg, prompter) =>
(await loadFeishuChannelRuntime()).feishuOnboardingAdapter.dmPolicy!.promptAllowFrom({
promptAllowFrom: async ({ cfg, prompter, accountId }) =>
(await loadFeishuChannelRuntime()).feishuOnboardingAdapter.dmPolicy!.promptAllowFrom!({
cfg,
prompter,
accountId,
}),
},
disable: (cfg) => ({

View File

@@ -382,10 +382,10 @@ export const matrixPlugin: ChannelPlugin<ResolvedMatrixAccount> = {
chunker: (text, limit) => getMatrixRuntime().channel.text.chunkMarkdownText(text, limit),
chunkerMode: "markdown",
textChunkLimit: 4000,
sendText: async (params) => (await loadMatrixChannelRuntime()).matrixOutbound.sendText(params),
sendText: async (params) => (await loadMatrixChannelRuntime()).matrixOutbound.sendText!(params),
sendMedia: async (params) =>
(await loadMatrixChannelRuntime()).matrixOutbound.sendMedia(params),
sendPoll: async (params) => (await loadMatrixChannelRuntime()).matrixOutbound.sendPoll(params),
(await loadMatrixChannelRuntime()).matrixOutbound.sendMedia!(params),
sendPoll: async (params) => (await loadMatrixChannelRuntime()).matrixOutbound.sendPoll!(params),
},
status: {
defaultRuntime: {