Get recent checkpoints.
(self, limit: int = 10)
| 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.""" |
no test coverage detected