← Về thư mục
- NotesRepository · class · L36-L107 — class NotesRepository
- init · method · L39-L48 — def init( self, connection: sqlite3.Connection, lock: Any, *, clock_ms: Callable[[], int], ) -> None
- add · method · L50-L70 — def add( self, *, project_id: str, content: str, title: str | None = None, ) -> dict
- list · method · L72-L89 — def list(self, project_id: str) -> list[dict]
- project_of · method · L91-L99 — def project_of(self, note_id: str) -> str | None
- delete · method · L101-L102 — def delete(self, note_id: str) -> None
- _execute · method · L104-L107 — def _execute(self, sql: str, params: tuple = ()) -> None
- FolderRepository · class · L110-L183 — class FolderRepository
- init · method · L113-L122 — def init( self, connection: sqlite3.Connection, lock: Any, *, clock_ms: Callable[[], int], ) -> None
- create · method · L124-L137 — def create(self, *, project_id: str, name: str) -> dict
- list · method · L139-L146 — def list(self, project_id: str) -> list[dict]
- project_of · method · L148-L154 — def project_of(self, folder_id: str) -> str | None
- rename · method · L156-L160 — def rename(self, folder_id: str, name: str) -> None
- delete · method · L162-L172 — def delete(self, folder_id: str) -> None: # Keep the historical two-transaction boundary: frames are un-filed and # committed before the folder row is removed in a second transaction.
- set_frame_folder · method · L174-L178 — def set_frame_folder(self, frame_id: str, folder_id: str | None) -> None
- _execute · method · L180-L183 — def _execute(self, sql: str, params: tuple = ()) -> None
- EndpointRepository · class · L186-L232 — class EndpointRepository
- init · method · L189-L198 — def init( self, connection: sqlite3.Connection, lock: Any, *, clock_ms: Callable[[], int], ) -> None
- upsert · method · L200-L225 — def upsert(self, name: str, **fields: Any) -> None
- list · method · L227-L232 — def list(self) -> list[dict]
- CompactionRepository · class · L235-L331 — class CompactionRepository
- init · method · L238-L247 — def init( self, connection: sqlite3.Connection, lock: Any, *, clock_ms: Callable[[], int], ) -> None
- archive · method · L249-L292 — def archive( self, *, frame_id: str | None, summary: str, compacted: list[dict], project_id: str = "default", branch_id: str | None = None, ledger_cursor: Any = None, recovery_pointer: Any = None, generation_id: Any = None, metadata: Mapping[str, Any] | None = None, handoff: str | None = None, context_before: Mapping[str, Any] | None = None, context_after: Mapping[str, Any] | None = None, artifact_refs: list[dict] | None = None, ) -> str
- list · method · L294-L322 — def list(self, frame_id: str, *, limit: int = 50) -> list[dict]
- _json · method · L325-L326 — def _json(value: Any) -> str
- _execute · method · L328-L331 — def _execute(self, sql: str, params: tuple = ()) -> None
- HostCallRepository · class · L334-L496 — class HostCallRepository
- init · method · L337-L346 — def init( self, connection: sqlite3.Connection, lock: Any, *, clock_ms: Callable[[], int], ) -> None
- log · method · L348-L393 — def log( self, *, method: str, args: list, ok: bool, frame_id: str | None = None, result: Any = None, action_group_id: str | None = None, action_id: str | None = None, permission_decision_id: str | None = None, side_effect_class: str | None = None, resource_keys: list[str] | tuple[str, ...] | None = None, ) -> None
- has_successful_bash_receipt · method · L395-L451 — def has_successful_bash_receipt( self, *, producing_cell_id: str, command_sha256: str, root_frame_id: str, branch_id: str, turn_id: str, ) -> bool
- _result_audit · method · L454-L491 — def _result_audit(method: str, result: Any) -> tuple[str, str | None]
- _execute · method · L493-L496 — def _execute(self, sql: str, params: tuple = ()) -> None