(value: unknown)
| 78 | | { type: 'error'; message: string; code: 'session_not_found' | 'access_denied' | 'already_local' | 'handoff_failed' } |
| 79 | |
| 80 | function asRecord(value: unknown): Record<string, unknown> | null { |
| 81 | return value !== null && typeof value === 'object' && !Array.isArray(value) |
| 82 | ? value as Record<string, unknown> |
| 83 | : null |
| 84 | } |
| 85 | |
| 86 | function normalizeUserMessageText(value: string): string | undefined { |
| 87 | const text = value.trim().replace(/\s+/g, ' ') |
no outgoing calls
no test coverage detected