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
|
|
@ -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"]
|
||||
|
|
|
|||
|
|
@ -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::<u64>() {
|
||||
if now_secs() - last < RATE_LIMIT_SECS {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue