MCPcopy
hub / github.com/tinyplex/tinybase / setCheckpoint

Function setCheckpoint

src/checkpoints/index.ts:182–191  ·  view source on GitHub ↗
(checkpointId: Id, label: string)

Source from the content-addressed store, hash-verified

180 };
181
182 const setCheckpoint = (checkpointId: Id, label: string) => {
183 if (
184 hasCheckpoint(checkpointId) &&
185 mapGet(labels, checkpointId) !== label
186 ) {
187 mapSet(labels, checkpointId, label);
188 callListeners(checkpointListeners, [checkpointId]);
189 }
190 return checkpoints;
191 };
192
193 const getStore = (): Store => store;
194

Callers 1

addCheckpointImplFunction · 0.70

Calls 4

mapGetFunction · 0.90
mapSetFunction · 0.90
hasCheckpointFunction · 0.70
callListenersFunction · 0.50

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…