MCPcopy Create free account
hub / github.com/Noumena-Network/code / isSerializedTranscriptMessageLike

Function isSerializedTranscriptMessageLike

src/utils/ccshareResume.ts:305–315  ·  view source on GitHub ↗
(value: unknown)

Source from the content-addressed store, hash-verified

303}
304
305function isSerializedTranscriptMessageLike(value: unknown): value is RecordLike {
306 return (
307 isRecord(value) &&
308 typeof value.type === 'string' &&
309 typeof value.timestamp === 'string' &&
310 'message' in value &&
311 (typeof value.sessionId === 'string' ||
312 typeof value.uuid === 'string' ||
313 typeof value.parentUuid === 'string')
314 )
315}
316
317function isApiMessageArray(value: unknown): value is RecordLike[] {
318 return (

Callers 2

looksLikeJsonlTranscriptFunction · 0.85

Calls 1

isRecordFunction · 0.70

Tested by

no test coverage detected