consciousness: update hardcoded paths from ~/.claude to ~/.consciousness
- thalamus/src/idle.rs: dream-start.sh path - src/agent/dmn.rs: telegram/send.sh path Part of the directory migration to make this an independent project.
This commit is contained in:
parent
2b6c68bab2
commit
35d925186d
10 changed files with 17 additions and 17 deletions
|
|
@ -1,10 +1,10 @@
|
|||
// config.rs — Unified configuration
|
||||
//
|
||||
// Single config file: ~/.config/poc-agent/config.json5
|
||||
// Single config file: ~/.consciousness/config.json5
|
||||
// Memory settings in the "memory" section (Config)
|
||||
// Agent/backend settings at top level (AppConfig)
|
||||
//
|
||||
// Legacy fallback: ~/.config/poc-memory/config.jsonl
|
||||
// Legacy fallback: ~/.consciousness/config.jsonl
|
||||
// Env override: POC_MEMORY_CONFIG
|
||||
|
||||
use std::collections::HashMap;
|
||||
|
|
@ -20,7 +20,7 @@ use serde::{Deserialize, Serialize};
|
|||
pub fn config_path() -> PathBuf {
|
||||
dirs::home_dir()
|
||||
.unwrap_or_else(|| PathBuf::from("."))
|
||||
.join(".config/poc-agent/config.json5")
|
||||
.join(".consciousness/config.json5")
|
||||
}
|
||||
|
||||
// ============================================================
|
||||
|
|
@ -177,13 +177,13 @@ impl Config {
|
|||
Some(config)
|
||||
}
|
||||
|
||||
/// Load from legacy JSONL config (~/.config/poc-memory/config.jsonl).
|
||||
/// Load from legacy JSONL config (~/.consciousness/config.jsonl).
|
||||
fn load_legacy_jsonl() -> Self {
|
||||
let path = std::env::var("POC_MEMORY_CONFIG")
|
||||
.map(PathBuf::from)
|
||||
.unwrap_or_else(|_| {
|
||||
PathBuf::from(std::env::var("HOME").expect("HOME not set"))
|
||||
.join(".config/poc-memory/config.jsonl")
|
||||
.join(".consciousness/config.jsonl")
|
||||
});
|
||||
|
||||
let mut config = Config::default();
|
||||
|
|
@ -495,7 +495,7 @@ impl AppConfig {
|
|||
|
||||
let session_dir = dirs::home_dir()
|
||||
.unwrap_or_else(|| PathBuf::from("."))
|
||||
.join(".cache/poc-agent/sessions");
|
||||
.join(".consciousness/agent-sessions");
|
||||
std::fs::create_dir_all(&session_dir).ok();
|
||||
|
||||
Ok(SessionConfig {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue