MCPcopy Create free account
hub / github.com/Alphanimble/htmlstream / repairSession

Function repairSession

demo/chat/session.ts:41–46  ·  view source on GitHub ↗
(session: ChatSession)

Source from the content-addressed store, hash-verified

39}
40
41export function repairSession(session: ChatSession): ChatSession {
42 return {
43 ...session,
44 messages: session.messages.map(repairAssistantMessage),
45 };
46}
47
48export function createSession(): ChatSession {
49 const now = new Date().toISOString();

Callers 3

normalizeSessionFunction · 0.90
loadLocalSessionFunction · 0.85
loadServerSessionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected