1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
//! Cache module - Model bundle caching and provider interface.
//!
//! This module provides:
//! - `CacheManager`: Platform-specific bundle storage and cache management
//! - `SdkCacheProvider`: Implements Core's `CacheProvider` trait for orchestrator integration
//!
//! # Architecture
//!
//! ```text
//! Orchestrator
//! └─► CacheProvider (trait from xybrid-core)
//! └─► SdkCacheProvider (this module)
//! └─► CacheManager (bundle storage)
//! ```
//!
//! # Example
//!
//! ```no_run
//! # fn _example() -> Result<(), Box<dyn std::error::Error>> {
//! use xybrid_sdk::{CacheManager, CacheProvider, SdkCacheProvider};
//! use std::path::PathBuf;
//!
//! // Direct cache management
//! let cache = CacheManager::new()?;
//! let status = cache.status()?;
//! println!("Cached models: {}", status.total_models);
//!
//! // As a provider for the orchestrator
//! let provider = SdkCacheProvider::with_dir(PathBuf::from("/tmp/xybrid-cache"))?;
//! if provider.is_model_cached("kokoro-82m") {
//! println!("Model available locally");
//! }
//! # Ok(())
//! # }
//! ```
pub use ;
pub use SdkCacheProvider;