* Builds an attribution snapshot chain from the conversation. * Unlike file history snapshots, attribution snapshots are returned in full * because they use generated UUIDs (not message UUIDs) and represent * cumulative state that should be restored on session resume.
( attributionSnapshots: Map<UUID, AttributionSnapshotMessage>, _conversation: TranscriptMessage[], )
| 2278 | * cumulative state that should be restored on session resume. |
| 2279 | */ |
| 2280 | function buildAttributionSnapshotChain( |
| 2281 | attributionSnapshots: Map<UUID, AttributionSnapshotMessage>, |
| 2282 | _conversation: TranscriptMessage[], |
| 2283 | ): AttributionSnapshotMessage[] { |
| 2284 | // Return all attribution snapshots - they will be merged during restore |
| 2285 | return Array.from(attributionSnapshots.values()) |
| 2286 | } |
| 2287 | |
| 2288 | /** |
| 2289 | * Loads a transcript from a JSON or JSONL file and converts it to LogOption format |
no test coverage detected