diff --git a/core/src/lib.rs b/core/src/lib.rs index 4455dd7..8649b55 100644 --- a/core/src/lib.rs +++ b/core/src/lib.rs @@ -79,22 +79,6 @@ pub use tinymemory_api::host::{ DEFAULT_MEMORY_SYNC_INTERVAL_SECS, }; -/// The default OpenHuman root directory, `~/.openhuman`. -/// -/// The host resolves this through `config::default_root_openhuman_dir`, which -/// this crate cannot see. Reproduced here rather than added to the config seam -/// because the two callers only need it as a last-resort fallback when no -/// workspace was supplied. -/// -/// # Errors -/// -/// Returns `Err` when the home directory cannot be determined. -pub fn default_openhuman_dir() -> Result { - dirs::home_dir() - .ok_or_else(|| "Could not find home directory".to_string()) - .map(|home| home.join(".openhuman")) -} - pub use ingestion::{ ExtractedEntity, ExtractedRelation, ExtractionMode, IngestionJob, IngestionQueue, IngestionState, IngestionStatusSnapshot, MemoryIngestionConfig, MemoryIngestionRequest, diff --git a/core/src/store/client.rs b/core/src/store/client.rs index 992946e..e480827 100644 --- a/core/src/store/client.rs +++ b/core/src/store/client.rs @@ -128,19 +128,6 @@ impl MemoryClient { } } - /// Create a new local memory client using the default `.openhuman` directory. - /// - /// # Errors - /// - /// Returns an error string if the home directory cannot be resolved or if - /// initialization fails. - pub fn new_local() -> Result { - let workspace_dir = crate::default_openhuman_dir() - .map_err(|e| e.to_string())? - .join("workspace"); - Self::from_workspace_dir(workspace_dir) - } - /// Create a new memory client from a specific workspace directory. /// /// # Arguments