MCPcopy Create free account
hub / github.com/Ishabdullah/Codey-v2 / get_checkpoints

Method get_checkpoints

core/state.py:389–395  ·  view source on GitHub ↗

Get recent checkpoints.

(self, limit: int = 10)

Source from the content-addressed store, hash-verified

387 # ==================== Checkpoints (Phase 6) ====================
388
389 def get_checkpoints(self, limit: int = 10) -> List[Dict]:
390 """Get recent checkpoints."""
391 with self._lock:
392 cur = self._conn.execute(
393 "SELECT * FROM checkpoints ORDER BY created_at DESC LIMIT ?", (limit,)
394 )
395 return [dict(row) for row in cur.fetchall()]
396
397 def get_checkpoint(self, checkpoint_id: str) -> Optional[Dict]:
398 """Get a specific checkpoint."""

Callers 3

list_checkpointsFunction · 0.80
get_latest_checkpointFunction · 0.80
prune_checkpointsFunction · 0.80

Calls 1

executeMethod · 0.80

Tested by

no test coverage detected