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

Function assertSafeSessionId

packages/storage/src/session-store.ts:69–71  ·  view source on GitHub ↗
(sessionId: string)

Source from the content-addressed store, hash-verified

67}
68
69export function assertSafeSessionId(sessionId: string): void {
70 if (!isSafeSessionId(sessionId)) throw new Error(`Invalid Session id: ${sessionId}`);
71}
72export class SessionNotFoundError extends Error {
73 readonly name = 'SessionNotFoundError';
74 readonly code = 'session_not_found';

Callers 15

buildSessionHeaderFunction · 0.70
listMethod · 0.70
getMethod · 0.70
#listCanonicalMethod · 0.70
#getCanonicalMethod · 0.70
createMethod · 0.70
updateMethod · 0.70
claimMethod · 0.70
claimAvailableMethod · 0.70
settleAgentOutcomeMethod · 0.70

Calls 1

isSafeSessionIdFunction · 0.85

Tested by

no test coverage detected