Skip to content

Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.

1.7 KB
Raw Blame
//! Core module for RAGFS
//!
//! This module contains the fundamental abstractions and types used throughout RAGFS:
//! - Error types and Result alias
//! - FileSystem trait for filesystem implementations
//! - ServicePlugin trait for plugin system
//! - MountableFS for routing operations to mounted plugins
//! - Core data types (FileInfo, ConfigParameter, etc.)

pub mod builder;
pub mod context;
pub mod encryption_wrapper;
pub mod errors;
pub mod filesystem;
pub mod glob;
pub(crate) mod grep;
pub mod internal_names;
pub mod mountable;
pub mod multibackend_wrapper;
pub mod plugin;
pub mod stats;
pub mod stats_wrapper;
pub mod types;

// Re-export commonly used types
pub use crate::multibackend::FsContextResolver;
#[cfg(feature = "cache")]
pub use builder::{
    build_configured_stack, CacheFsConfig, CacheRuntimeProviderConfig, CacheStackConfig,
};
pub use builder::{
    build_default_stack, build_stack_with_mountable, register_builtin_plugins,
    EncryptionConfig as BuilderEncryptionConfig, RagfsConfig, RagfsStack,
};
pub use context::{FsContext, FsContextInner, FsContextView, PathLockContext, FS_CTX};
pub use encryption_wrapper::EncryptionWrappedFS;
pub use errors::{Error, Result};
pub use filesystem::FileSystem;
pub use mountable::MountableFS;
pub use multibackend_wrapper::{BackendEntry, MultiWriteWrappedFS};
pub use plugin::{HealthStatus, PluginRegistry, ServicePlugin};
pub use stats::{FilesystemStats, FsOperation, OperationStats, OperationTimer, StatsCollector};
pub use stats_wrapper::StatsWrappedFS;
pub use types::{
    BackendItemConfig, BackendRole, BackendsConfig, ConfigParameter, ConfigValue, EncryptionConfig,
    FileInfo, GlobEntry, GlobPage, GrepMatch, GrepOptions, GrepResult, ListSortBy, PluginConfig,
    SortOrder, TreeEntry, WriteFlag,
};