(threadId: string)
| 113 | } |
| 114 | |
| 115 | export function deleteThreadRecord(threadId: string) { |
| 116 | const db = getThreadStateDatabase() |
| 117 | db.prepare( |
| 118 | ` |
| 119 | DELETE FROM threads |
| 120 | WHERE id = ? |
| 121 | `, |
| 122 | ).run(threadId) |
| 123 | } |
| 124 | |
| 125 | export function deleteThreadRecordsBySessionPaths(sessionPaths: string[]) { |
| 126 | if (sessionPaths.length === 0) { |
no test coverage detected