pub struct NativeSessionCatalogAuthority { /* private fields */ }Expand description
Independent read-only authority for projecting provider-native history into bounded session metadata. It does not create kernel or provider sessions.
Implementations§
Source§impl NativeSessionCatalogAuthority
impl NativeSessionCatalogAuthority
pub fn new(config: NativeHistoryConfig) -> Self
pub fn catalog( &mut self, provider: &AgentId, canonical_workspace: &Path, limit: u16, ) -> Result<Vec<NativeSessionCatalogEntry>, NativeSessionCatalogError>
pub fn catalog_for_workspace( &mut self, provider: &AgentId, canonical_workspace: &Path, registered_workspace_roots: &[PathBuf], limit: u16, ) -> Result<Vec<NativeSessionCatalogEntry>, NativeSessionCatalogError>
pub fn catalog_initial_for_workspace( &mut self, provider: &AgentId, canonical_workspace: &Path, registered_workspace_roots: &[PathBuf], limit: u16, ) -> Result<NativeSessionCatalogPage, NativeSessionCatalogError>
pub fn catalog_initial_for_scope( &mut self, provider: &AgentId, scope: NativeSessionCatalogScope, canonical_workspace: Option<&Path>, registered_workspace_roots: &[PathBuf], limit: u16, ) -> Result<ScopedNativeSessionCatalogPage, NativeSessionCatalogError>
pub fn catalog_page_for_workspace( &mut self, provider: &AgentId, canonical_workspace: &Path, registered_workspace_roots: &[PathBuf], window: NativeSessionCatalogWindow, revision: u64, cutoff_unix_ms: u64, after_selection_id: Option<&str>, limit: u16, ) -> Result<NativeSessionCatalogPage, NativeSessionCatalogError>
pub fn catalog_page_for_scope( &mut self, provider: &AgentId, scope: NativeSessionCatalogScope, canonical_workspace: Option<&Path>, registered_workspace_roots: &[PathBuf], window: NativeSessionCatalogWindow, revision: u64, cutoff_unix_ms: u64, after_selection_id: Option<&str>, limit: u16, ) -> Result<ScopedNativeSessionCatalogPage, NativeSessionCatalogError>
pub fn preview( &mut self, provider: &AgentId, canonical_workspace: &Path, selection_id: &str, message_limit: u16, ) -> Result<NativeSessionPreview, NativeSessionPreviewError>
pub fn preview_for_workspace( &mut self, provider: &AgentId, canonical_workspace: &Path, registered_workspace_roots: &[PathBuf], selection_id: &str, message_limit: u16, ) -> Result<NativeSessionPreview, NativeSessionPreviewError>
pub fn preview_for_scope( &mut self, provider: &AgentId, scope: NativeSessionCatalogScope, canonical_workspace: Option<&Path>, registered_workspace_roots: &[PathBuf], catalog_revision: u64, recent_cutoff_unix_ms: u64, selection_id: &str, message_limit: u16, ) -> Result<NativeSessionPreview, NativeSessionPreviewError>
pub fn preview_session_id( &mut self, provider: &AgentId, canonical_workspace: &Path, session_id: &str, message_limit: u16, ) -> Result<NativeSessionPreview, NativeSessionPreviewError>
pub fn preview_session_id_for_workspace( &mut self, provider: &AgentId, canonical_workspace: &Path, registered_workspace_roots: &[PathBuf], session_id: &str, message_limit: u16, ) -> Result<NativeSessionPreview, NativeSessionPreviewError>
pub fn resolve_selection_for_scope( &mut self, provider: &AgentId, scope: NativeSessionCatalogScope, canonical_workspace: Option<&Path>, registered_workspace_roots: &[PathBuf], catalog_revision: u64, recent_cutoff_unix_ms: u64, selection_id: &str, ) -> Result<NativeSessionSelectionResolution, NativeSessionPreviewError>
Auto Trait Implementations§
impl Freeze for NativeSessionCatalogAuthority
impl RefUnwindSafe for NativeSessionCatalogAuthority
impl Send for NativeSessionCatalogAuthority
impl Sync for NativeSessionCatalogAuthority
impl Unpin for NativeSessionCatalogAuthority
impl UnsafeUnpin for NativeSessionCatalogAuthority
impl UnwindSafe for NativeSessionCatalogAuthority
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more