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

Function buildAttributionSnapshotChain

src/utils/sessionStorage.ts:2280–2286  ·  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

2278 * cumulative state that should be restored on session resume.
2279 */
2280function 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

Callers 4

loadTranscriptFromFileFunction · 0.85
loadFullLogFunction · 0.85
getLastSessionLogFunction · 0.85

Calls 1

valuesMethod · 0.80

Tested by

no test coverage detected