diff --git a/src/bin/parse-claude-conversation.rs b/src/bin/parse-claude-conversation.rs index 30c1f84..e92a3d7 100644 --- a/src/bin/parse-claude-conversation.rs +++ b/src/bin/parse-claude-conversation.rs @@ -259,7 +259,9 @@ fn main() { let args = Args::parse(); let path = if args.last { - let stash = fs::read_to_string("/tmp/claude-memory-search/last-input.json") + let stash_path = dirs::home_dir().unwrap_or_default() + .join(".consciousness/sessions/last-input.json"); + let stash = fs::read_to_string(&stash_path) .expect("No stashed input"); let json: Value = serde_json::from_str(&stash).expect("Bad JSON"); json["transcript_path"] diff --git a/src/bin/poc-hook.rs b/src/bin/poc-hook.rs index 8faa4ae..19b314c 100644 --- a/src/bin/poc-hook.rs +++ b/src/bin/poc-hook.rs @@ -113,7 +113,7 @@ fn maybe_trigger_observation(transcript: &PathBuf) { fn check_context(transcript: &PathBuf, rate_limit: bool) { if rate_limit { - let rate_file = PathBuf::from("/tmp/consciousness-context-check-last"); + let rate_file = dirs::home_dir().unwrap_or_default().join(".consciousness/cache/context-check-last"); if let Ok(s) = fs::read_to_string(&rate_file) { if let Ok(last) = s.trim().parse::() { if now_secs() - last < RATE_LIMIT_SECS { diff --git a/src/config.rs b/src/config.rs index 2d4afd4..dc21812 100644 --- a/src/config.rs +++ b/src/config.rs @@ -102,7 +102,7 @@ impl Default for Config { Self { user_name: "User".to_string(), assistant_name: "Assistant".to_string(), - data_dir: home.join(".consciousness"), + data_dir: home.join(".consciousness/memory"), projects_dir: home.join(".claude/projects"), core_nodes: vec!["identity".to_string(), "core-practices".to_string()], journal_days: 7, diff --git a/thalamus/src/config.rs b/thalamus/src/config.rs index a726089..21c84c1 100644 --- a/thalamus/src/config.rs +++ b/thalamus/src/config.rs @@ -57,10 +57,10 @@ pub struct TelegramConfig { impl Default for TelegramConfig { fn default() -> Self { // Load token and chat_id from legacy files if they exist - let token = std::fs::read_to_string(home().join(".claude/telegram/token")) + let token = std::fs::read_to_string(home().join(".consciousness/telegram/token")) .map(|s| s.trim().to_string()) .unwrap_or_default(); - let chat_id = std::fs::read_to_string(home().join(".claude/telegram/chat_id")) + let chat_id = std::fs::read_to_string(home().join(".consciousness/telegram/chat_id")) .ok() .and_then(|s| s.trim().parse().ok()) .unwrap_or(0); diff --git a/thalamus/src/modules/telegram.rs b/thalamus/src/modules/telegram.rs index c531aa3..fa976af 100644 --- a/thalamus/src/modules/telegram.rs +++ b/thalamus/src/modules/telegram.rs @@ -59,7 +59,7 @@ impl TelegramState { } fn offset_path() -> PathBuf { - home().join(".claude/telegram/last_offset") + home().join(".consciousness/telegram/last_offset") } fn load_offset() -> i64 { @@ -74,11 +74,11 @@ fn save_offset(offset: i64) { } fn history_path() -> PathBuf { - home().join(".claude/telegram/history.log") + home().join(".consciousness/telegram/history.log") } fn media_dir() -> PathBuf { - home().join(".claude/telegram/media") + home().join(".consciousness/telegram/media") } fn append_history(line: &str) {