MCPcopy Index your code
hub / github.com/claude-code-best/claude-code / buildAttributionSnapshotChain

Function buildAttributionSnapshotChain

src/utils/sessionStorage.ts:2319–2325  ·  view source on GitHub ↗

* 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[],
)

Source from the content-addressed store, hash-verified

2317 * cumulative state that should be restored on session resume.
2318 */
2319function 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

Callers 4

loadTranscriptFromFileFunction · 0.85
loadFullLogFunction · 0.85
getLastSessionLogFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected