move telegram and remaining tmp paths to ~/.consciousness/
- Telegram data: ~/.consciousness/telegram/ - Rate limiter file: ~/.consciousness/cache/ - parse-claude-conversation stash: ~/.consciousness/sessions/ No more /tmp/ for persistent state, no more ~/.claude/ for our data.
This commit is contained in:
parent
bf5b495632
commit
f0af319e0d
5 changed files with 10 additions and 8 deletions
|
|
@ -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);
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue