(channelId: string)
| 397 | |
| 398 | return { stopReason, errorMessage, hasText: text.length > 0, toolCalls }; |
| 399 | } |
| 400 | |
| 401 | function getLifecycleTrigger(channelId: string): LifecycleTrigger { |
| 402 | const platform = detectPlatformFromChannelId(channelId); |
| 403 | return platform === "scheduler" ? "web" : platform; |
| 404 | } |
| 405 |
no test coverage detected