test(ci): fix msteams and heartbeat red lanes

This commit is contained in:
Peter Steinberger
2026-04-20 23:30:29 +01:00
parent 1151d69bb8
commit e2abd4bc62
6 changed files with 17 additions and 3 deletions

View File

@@ -1,5 +1,6 @@
import type {
ChannelId,
ChannelMessagingAdapter,
ChannelOutboundAdapter,
ChannelPlugin,
} from "../../../src/channels/plugins/types.js";
@@ -52,6 +53,7 @@ function createHeartbeatChannelPlugin(params: {
label: string;
docsPath: string;
heartbeat?: ChannelPlugin["heartbeat"];
messaging?: ChannelMessagingAdapter;
}): ChannelPlugin {
return {
...createOutboundTestPlugin({
@@ -59,6 +61,7 @@ function createHeartbeatChannelPlugin(params: {
label: params.label,
docsPath: params.docsPath,
outbound: createHeartbeatOutboundAdapter(params.id),
...(params.messaging ? { messaging: params.messaging } : {}),
}),
...(params.heartbeat ? { heartbeat: params.heartbeat } : {}),
};
@@ -74,6 +77,9 @@ export const heartbeatRunnerTelegramPlugin = createHeartbeatChannelPlugin({
id: "telegram",
label: "Telegram",
docsPath: "/channels/telegram",
messaging: {
preserveHeartbeatThreadIdForGroupRoute: true,
},
});
export const heartbeatRunnerWhatsAppPlugin = createHeartbeatChannelPlugin({