Skip to content

Commit 242d7f1

Browse files
Merge pull request #47 from YellowSnnowmann/feat/18-c4-openhuman-framing
Remove the OpenHuman framing from core (#18 §C4)
2 parents f710cfc + ccc856f commit 242d7f1

2 files changed

Lines changed: 0 additions & 29 deletions

File tree

‎core/src/lib.rs‎

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -79,22 +79,6 @@ pub use tinymemory_api::host::{
7979
DEFAULT_MEMORY_SYNC_INTERVAL_SECS,
8080
};
8181

82-
/// The default OpenHuman root directory, `~/.openhuman`.
83-
///
84-
/// The host resolves this through `config::default_root_openhuman_dir`, which
85-
/// this crate cannot see. Reproduced here rather than added to the config seam
86-
/// because the two callers only need it as a last-resort fallback when no
87-
/// workspace was supplied.
88-
///
89-
/// # Errors
90-
///
91-
/// Returns `Err` when the home directory cannot be determined.
92-
pub fn default_openhuman_dir() -> Result<std::path::PathBuf, String> {
93-
dirs::home_dir()
94-
.ok_or_else(|| "Could not find home directory".to_string())
95-
.map(|home| home.join(".openhuman"))
96-
}
97-
9882
pub use ingestion::{
9983
ExtractedEntity, ExtractedRelation, ExtractionMode, IngestionJob, IngestionQueue,
10084
IngestionState, IngestionStatusSnapshot, MemoryIngestionConfig, MemoryIngestionRequest,

‎core/src/store/client.rs‎

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -128,19 +128,6 @@ impl MemoryClient {
128128
}
129129
}
130130

131-
/// Create a new local memory client using the default `.openhuman` directory.
132-
///
133-
/// # Errors
134-
///
135-
/// Returns an error string if the home directory cannot be resolved or if
136-
/// initialization fails.
137-
pub fn new_local() -> Result<Self, String> {
138-
let workspace_dir = crate::default_openhuman_dir()
139-
.map_err(|e| e.to_string())?
140-
.join("workspace");
141-
Self::from_workspace_dir(workspace_dir)
142-
}
143-
144131
/// Create a new memory client from a specific workspace directory.
145132
///
146133
/// # Arguments

0 commit comments

Comments
 (0)