MCPcopy Create free account
hub / github.com/Noumena-Network/code / buildAttributionSnapshotChain

Function buildAttributionSnapshotChain

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

2438 * cumulative state that should be restored on session resume.
2439 */
2440function buildAttributionSnapshotChain(
2441 attributionSnapshots: Map<UUID, AttributionSnapshotMessage>,
2442 _conversation: TranscriptMessage[],
2443): AttributionSnapshotMessage[] {
2444 // Return all attribution snapshots - they will be merged during restore
2445 return Array.from(attributionSnapshots.values())
2446}
2447
2448/**
2449 * 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