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

Function recordFileHistorySnapshot

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

Source from the content-addressed store, hash-verified

1632}
1633
1634export async function recordFileHistorySnapshot(
1635 messageId: UUID,
1636 snapshot: FileHistorySnapshot,
1637 isSnapshotUpdate: boolean,
1638) {
1639 await getProject().insertFileHistorySnapshot(
1640 messageId,
1641 snapshot,
1642 isSnapshotUpdate,
1643 )
1644}
1645
1646export async function recordAttributionSnapshot(
1647 snapshot: AttributionSnapshotMessage,

Callers 3

fileHistoryTrackEditFunction · 0.85
fileHistoryMakeSnapshotFunction · 0.85
copyFileHistoryForResumeFunction · 0.85

Calls 2

getProjectFunction · 0.85

Tested by

no test coverage detected