MCPcopy
hub / github.com/claude-code-best/claude-code / recordFileHistorySnapshot

Function recordFileHistorySnapshot

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

Source from the content-addressed store, hash-verified

1511}
1512
1513export async function recordFileHistorySnapshot(
1514 messageId: UUID,
1515 snapshot: FileHistorySnapshot,
1516 isSnapshotUpdate: boolean,
1517) {
1518 await getProject().insertFileHistorySnapshot(
1519 messageId,
1520 snapshot,
1521 isSnapshotUpdate,
1522 )
1523}
1524
1525export async function recordAttributionSnapshot(
1526 snapshot: AttributionSnapshotMessage,

Callers 3

fileHistoryTrackEditFunction · 0.85
fileHistoryMakeSnapshotFunction · 0.85
copyFileHistoryForResumeFunction · 0.85

Calls 2

getProjectFunction · 0.85

Tested by

no test coverage detected