MCPcopy Create free account
hub / github.com/apache/maka / decodeSessionStatus

Function decodeSessionStatus

packages/runtime-host/src/protocol/session-status.ts:9–13  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

7 * values remain current SessionStatus values.
8 */
9export 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}

Callers 2

Calls 2

isSessionStatusFunction · 0.90
invalidProtocolFrameFunction · 0.85

Tested by

no test coverage detected