(threadId: string)
| 312 | } |
| 313 | |
| 314 | export function getThreadSessionPath(threadId: string) { |
| 315 | const db = getThreadStateDatabase() |
| 316 | const row = db |
| 317 | .prepare( |
| 318 | ` |
| 319 | SELECT session_path AS sessionPath |
| 320 | FROM threads |
| 321 | WHERE id = ? |
| 322 | `, |
| 323 | ) |
| 324 | .get(threadId) as ThreadPathRow | undefined |
| 325 | |
| 326 | return row?.sessionPath ?? null |
| 327 | } |
| 328 | |
| 329 | export function getThreadCwd(sessionPath: string) { |
| 330 | const db = getThreadStateDatabase() |
no test coverage detected