(cwd: string)
| 11 | } |
| 12 | |
| 13 | async function syncShellIndex(cwd: string): Promise<ShellIndexSyncResult> { |
| 14 | const { sessions, partialFailure } = await listAllSessionsStrict() |
| 15 | |
| 16 | syncSessionSummaries( |
| 17 | cwd, |
| 18 | sessions.map((session) => mapSessionSummaryToRecord(cwd, session)), |
| 19 | ) |
| 20 | |
| 21 | return { complete: !partialFailure, didSync: true } |
| 22 | } |
| 23 | |
| 24 | function startShellIndexSync( |
| 25 | cwd: string, |
no test coverage detected