MCPcopy Create free account
hub / github.com/IgorWarzocha/howcode / deleteThreadRecord

Function deleteThreadRecord

desktop/thread-state-db/thread-writes.ts:115–123  ·  view source on GitHub ↗
(threadId: string)

Source from the content-addressed store, hash-verified

113}
114
115export 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
125export function deleteThreadRecordsBySessionPaths(sessionPaths: string[]) {
126 if (sessionPaths.length === 0) {

Callers 1

deletePersistedThreadFunction · 0.90

Calls 3

getThreadStateDatabaseFunction · 0.90
runMethod · 0.80
prepareMethod · 0.80

Tested by

no test coverage detected