MCPcopy
hub / github.com/OpenCoworkAI/open-codesign / sessionFileForDesign

Function sessionFileForDesign

apps/desktop/src/main/session-chat.ts:110–113  ·  view source on GitHub ↗
(sessionDir: string, designId: string)

Source from the content-addressed store, hash-verified

108}
109
110function sessionFileForDesign(sessionDir: string, designId: string): string {
111 const safeId = designId.replace(/[^A-Za-z0-9_-]/g, '_');
112 return path.join(sessionDir, `${safeId}.jsonl`);
113}
114
115function resolveSessionCwd(opts: SessionChatStoreOptions, designId: string): string {
116 const design = getDesign(opts.db, designId);

Callers 5

openSessionFunction · 0.85
listSessionChatMessagesFunction · 0.85
listSessionCommentsFunction · 0.85
readSessionDesignBriefFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected