(channelId: string)
| 29 | | "parent_disconnect"; |
| 30 | |
| 31 | export function detectPlatformFromChannelId(channelId: string): RuntimePlatform { |
| 32 | if (channelId.startsWith("telegram-")) return "telegram"; |
| 33 | if (channelId.startsWith("slack-")) return "slack"; |
| 34 | if (channelId.startsWith("feishu-")) return "feishu"; |
| 35 | if (channelId.startsWith("scheduler-")) return "scheduler"; |
| 36 | return "web"; |
| 37 | } |
| 38 | |
| 39 | |
| 40 | export interface LifecycleHandler { |
no outgoing calls
no test coverage detected