(raw)
| 2742 | } |
| 2743 | |
| 2744 | function mapThreadSummary(raw) { |
| 2745 | return { |
| 2746 | threadId: String(raw.id), |
| 2747 | title: raw.name ? String(raw.name) : null, |
| 2748 | cwd: raw.cwd ? String(raw.cwd) : null, |
| 2749 | updatedAt: normalizeTimestamp(raw.updatedAt), |
| 2750 | preview: typeof raw.preview === 'string' ? raw.preview : '', |
| 2751 | }; |
| 2752 | } |
| 2753 | |
| 2754 | function mapThread(raw, includeTurns) { |
| 2755 | return { |
nothing calls this directly
no test coverage detected