(text: string)
| 153 | |
| 154 | /** Splits a remotePrompt back into its channel and the user's own text; null for normal messages. */ |
| 155 | export function parseRemotePrompt(text: string): { channel: RemoteChannel; text: string } | null { |
| 156 | const match = REMOTE_PREFIX.exec(text); |
| 157 | if (!match) return null; |
| 158 | return { channel: match[1] === 'WhatsApp' ? 'whatsapp' : 'telegram', text: text.slice(match[0].length) }; |
| 159 | } |
| 160 | |
| 161 | export interface RemoteStatus { |
| 162 | linked: boolean; |
no outgoing calls
no test coverage detected