* 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[], )
| 2317 | * cumulative state that should be restored on session resume. |
| 2318 | */ |
| 2319 | function buildAttributionSnapshotChain( |
| 2320 | attributionSnapshots: Map<UUID, AttributionSnapshotMessage>, |
| 2321 | _conversation: TranscriptMessage[], |
| 2322 | ): AttributionSnapshotMessage[] { |
| 2323 | // Return all attribution snapshots - they will be merged during restore |
| 2324 | return Array.from(attributionSnapshots.values()) |
| 2325 | } |
| 2326 | |
| 2327 | /** |
| 2328 | * Loads a transcript from a JSON or JSONL file and converts it to LogOption format |
no outgoing calls
no test coverage detected