(value: unknown)
| 7 | * values remain current SessionStatus values. |
| 8 | */ |
| 9 | export function decodeSessionStatus(value: unknown): SessionStatus { |
| 10 | const normalized = value === 'review' || value === 'done' ? 'active' : value; |
| 11 | if (!isSessionStatus(normalized)) throw invalidProtocolFrame('Invalid Session status'); |
| 12 | return normalized; |
| 13 | } |
no test coverage detected