Skip to main content

Crate ag_store

Crate ag_store 

Source
Expand description

Reusable repository contracts and SQLite persistence for Agentty sessions.

Structs§

AppRepositories
App-layer repository bundle used for selective mock injection.
Database
Thin wrapper around a SQLite connection pool.
ForkSessionSnapshot
Borrowed identifiers used to persist one forked session snapshot.
PersistedOrchestrationTask
Values used to persist one planned orchestration task.
PersistedSessionCreation
Borrowed values used to persist a newly created session with explicit provider identity and reasoning configuration.
ProjectListRow
Row returned when loading one project with aggregated session statistics.
ProjectRow
Row returned when loading a project from the project table.
SessionAgentModelRow
Minimal provider/model row used to migrate active sessions across projects.
SessionDetailRow
Transcript-detail row loaded lazily for the session being viewed.
SessionFocusedReviewRow
Row returned when hydrating persisted focused-review cache entries.
SessionListRow
Lightweight row returned when loading session-list metadata.
SessionMessageRow
Row returned when loading one persisted session_message.
SessionOperationRow
Persisted operation lifecycle state for one session command.
SessionOrchestrationMetadataRow
Bulk-loaded controller progress and child adjacency for one session row.
SessionOrchestrationRow
Row returned when loading one session_orchestration.
SessionOrchestrationTaskRow
Row returned when loading one session_orchestration_task.
SessionReviewRequestRow
Row returned when loading one session_review_request.
SessionRow
Row returned when loading a session from the session table.
SessionTurnMetadata
Transactional turn-metadata payload persisted after one completed agent turn.
SessionUsageRow
Row returned when loading per-model token usage from the session_usage table.

Enums§

DbError
Typed error returned by database operations.

Traits§

ActivityRepository
Session-activity persistence boundary used by app orchestration and tests.
OperationRepository
Session-operation persistence boundary used by app orchestration and tests.
OrchestrationRepository
Orchestration persistence boundary used by the coordinator and tests.
ProjectRepository
Project-focused persistence boundary used by app orchestration and tests.
ReviewRepository
Review-request persistence boundary used by app orchestration and tests.
SessionRepository
Session-focused persistence boundary used by app orchestration and tests.
SettingRepository
Settings-focused persistence boundary used by app orchestration and tests.
TimestampSource
Supplies Unix timestamps for rows written by persistence adapters.
UsageRepository
Session-usage persistence boundary used by app orchestration and tests.