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

Method get_checkpoint

core/state.py:397–404  ·  view source on GitHub ↗

Get a specific checkpoint.

(self, checkpoint_id: str)

Source from the content-addressed store, hash-verified

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."""
399 with self._lock:
400 cur = self._conn.execute(
401 "SELECT * FROM checkpoints WHERE id = ?", (checkpoint_id,)
402 )
403 row = cur.fetchone()
404 return dict(row) if row else None
405
406 def delete_checkpoint(self, checkpoint_id: str) -> bool:
407 """Delete a checkpoint."""

Callers 1

rollbackFunction · 0.80

Calls 1

executeMethod · 0.80

Tested by

no test coverage detected