(sessionDir: string, designId: string)
| 108 | } |
| 109 | |
| 110 | function 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 | |
| 115 | function resolveSessionCwd(opts: SessionChatStoreOptions, designId: string): string { |
| 116 | const design = getDesign(opts.db, designId); |
no outgoing calls
no test coverage detected