MCPcopy Create free account
hub / github.com/WJX20/claude-code / recordFileHistorySnapshot

Function recordFileHistorySnapshot

src/utils/sessionStorage.ts:1477–1487  ·  view source on GitHub ↗
(
  messageId: UUID,
  snapshot: FileHistorySnapshot,
  isSnapshotUpdate: boolean,
)

Source from the content-addressed store, hash-verified

1475}
1476
1477export async function recordFileHistorySnapshot(
1478 messageId: UUID,
1479 snapshot: FileHistorySnapshot,
1480 isSnapshotUpdate: boolean,
1481) {
1482 await getProject().insertFileHistorySnapshot(
1483 messageId,
1484 snapshot,
1485 isSnapshotUpdate,
1486 )
1487}
1488
1489export async function recordAttributionSnapshot(
1490 snapshot: AttributionSnapshotMessage,

Callers 3

fileHistoryTrackEditFunction · 0.85
fileHistoryMakeSnapshotFunction · 0.85
copyFileHistoryForResumeFunction · 0.85

Calls 2

getProjectFunction · 0.85

Tested by

no test coverage detected