MCPcopy Create free account
hub / github.com/CreminiAI/skillpack / detectPlatformFromChannelId

Function detectPlatformFromChannelId

src/runtime/adapters/types.ts:31–37  ·  view source on GitHub ↗
(channelId: string)

Source from the content-addressed store, hash-verified

29 | "parent_disconnect";
30
31export 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
40export interface LifecycleHandler {

Callers 3

getLifecycleTriggerFunction · 0.85
detectPlatformMethod · 0.85
detectPlatformMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected