MCPcopy
hub / github.com/Narcooo/inkos / nextTranscriptSeq

Function nextTranscriptSeq

packages/core/src/interaction/session-transcript.ts:48–51  ·  view source on GitHub ↗
(projectRoot: string, sessionId: string)

Source from the content-addressed store, hash-verified

46}
47
48export async function nextTranscriptSeq(projectRoot: string, sessionId: string): Promise<number> {
49 const events = await readTranscriptEvents(projectRoot, sessionId);
50 return events.reduce((max, event) => Math.max(max, event.seq), 0) + 1;
51}
52
53export async function appendTranscriptEvent(
54 projectRoot: string,

Callers 1

Calls 1

readTranscriptEventsFunction · 0.85

Tested by

no test coverage detected