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
|
|
@ -37,7 +37,7 @@ poc-memory init
|
||||||
```
|
```
|
||||||
|
|
||||||
Creates the store at `~/.consciousness/memory/nodes.capnp` and a default
|
Creates the store at `~/.consciousness/memory/nodes.capnp` and a default
|
||||||
config at `~/.config/poc-memory/config.jsonl`. Edit the config to
|
config at `~/.consciousness/config.jsonl`. Edit the config to
|
||||||
set your name, configure context groups, and point at your projects
|
set your name, configure context groups, and point at your projects
|
||||||
directory.
|
directory.
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,5 @@
|
||||||
// poc-memory configuration
|
// poc-memory configuration
|
||||||
// Copy to ~/.config/poc-memory/config.jsonl and edit.
|
// Copy to ~/.consciousness/config.jsonl and edit.
|
||||||
|
|
||||||
{"config": {
|
{"config": {
|
||||||
"user_name": "Alice",
|
"user_name": "Alice",
|
||||||
|
|
|
||||||
|
|
@ -52,7 +52,7 @@ recall and relevance.
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
Config: `~/.config/poc-memory/config.jsonl`
|
Config: `~/.consciousness/config.jsonl`
|
||||||
|
|
||||||
```jsonl
|
```jsonl
|
||||||
{"config": {
|
{"config": {
|
||||||
|
|
|
||||||
|
|
@ -102,7 +102,7 @@ impl State {
|
||||||
format!(
|
format!(
|
||||||
" WARNING: {} consecutive tool errors — you may be stuck. \
|
" WARNING: {} consecutive tool errors — you may be stuck. \
|
||||||
If Kent is here, ask him. If he's away, send a Telegram \
|
If Kent is here, ask him. If he's away, send a Telegram \
|
||||||
(bash: ~/.claude/telegram/send.sh \"message\") and yield.",
|
(bash: ~/.consciousness/telegram/send.sh \"message\") and yield.",
|
||||||
ctx.consecutive_errors
|
ctx.consecutive_errors
|
||||||
)
|
)
|
||||||
} else {
|
} else {
|
||||||
|
|
@ -158,7 +158,7 @@ impl State {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
const OFF_FILE: &str = ".cache/poc-agent/dmn-off";
|
const OFF_FILE: &str = ".consciousness/cache/dmn-off";
|
||||||
|
|
||||||
/// Path to the DMN-off persist file.
|
/// Path to the DMN-off persist file.
|
||||||
fn off_path() -> PathBuf {
|
fn off_path() -> PathBuf {
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@ fn find_context_files(cwd: &Path, prompt_file: &str) -> Vec<PathBuf> {
|
||||||
|
|
||||||
/// Load memory files from config's context_groups.
|
/// Load memory files from config's context_groups.
|
||||||
/// For file sources, checks:
|
/// For file sources, checks:
|
||||||
/// 1. ~/.config/poc-agent/ (primary config dir)
|
/// 1. ~/.consciousness/config/ (primary config dir)
|
||||||
/// 2. Project dir (if set)
|
/// 2. Project dir (if set)
|
||||||
/// 3. Global (~/.consciousness/)
|
/// 3. Global (~/.consciousness/)
|
||||||
/// For journal source, loads recent journal entries.
|
/// For journal source, loads recent journal entries.
|
||||||
|
|
@ -78,7 +78,7 @@ fn load_memory_files(cwd: &Path, memory_project: Option<&Path>, context_groups:
|
||||||
};
|
};
|
||||||
|
|
||||||
// Primary config directory
|
// Primary config directory
|
||||||
let config_dir = home.join(".config/poc-agent");
|
let config_dir = home.join(".consciousness/config");
|
||||||
let global = home.join(".consciousness");
|
let global = home.join(".consciousness");
|
||||||
let project = memory_project
|
let project = memory_project
|
||||||
.map(PathBuf::from)
|
.map(PathBuf::from)
|
||||||
|
|
|
||||||
|
|
@ -1,7 +1,7 @@
|
||||||
// observe.rs — Shared observation socket + logfile
|
// observe.rs — Shared observation socket + logfile
|
||||||
//
|
//
|
||||||
// Two mechanisms:
|
// Two mechanisms:
|
||||||
// 1. Logfile (~/.cache/poc-agent/sessions/observe.log) — append-only
|
// 1. Logfile (~/.consciousness/agent-sessions/observe.log) — append-only
|
||||||
// plain text of the conversation. `poc-agent read` prints new
|
// plain text of the conversation. `poc-agent read` prints new
|
||||||
// content since last read using a byte-offset cursor file.
|
// content since last read using a byte-offset cursor file.
|
||||||
// 2. Unix socket — for live streaming (`poc-agent read -f`) and
|
// 2. Unix socket — for live streaming (`poc-agent read -f`) and
|
||||||
|
|
|
||||||
|
|
@ -331,7 +331,7 @@ pub struct ContextState {
|
||||||
}
|
}
|
||||||
|
|
||||||
// TODO: these should not be hardcoded absolute paths
|
// TODO: these should not be hardcoded absolute paths
|
||||||
pub const WORKING_STACK_INSTRUCTIONS: &str = "/home/kent/.config/poc-agent/working-stack.md";
|
pub const WORKING_STACK_INSTRUCTIONS: &str = "/home/kent/.consciousness/config/working-stack.md";
|
||||||
pub const WORKING_STACK_FILE: &str = "/home/kent/.consciousness/working-stack.json";
|
pub const WORKING_STACK_FILE: &str = "/home/kent/.consciousness/working-stack.json";
|
||||||
|
|
||||||
impl ContextState {
|
impl ContextState {
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ pub fn cmd_init() -> Result<(), String> {
|
||||||
.map(std::path::PathBuf::from)
|
.map(std::path::PathBuf::from)
|
||||||
.unwrap_or_else(|_| {
|
.unwrap_or_else(|_| {
|
||||||
std::path::PathBuf::from(std::env::var("HOME").unwrap())
|
std::path::PathBuf::from(std::env::var("HOME").unwrap())
|
||||||
.join(".config/poc-memory/config.jsonl")
|
.join(".consciousness/config.jsonl")
|
||||||
});
|
});
|
||||||
if !config_path.exists() {
|
if !config_path.exists() {
|
||||||
let config_dir = config_path.parent().unwrap();
|
let config_dir = config_path.parent().unwrap();
|
||||||
|
|
|
||||||
|
|
@ -1,10 +1,10 @@
|
||||||
// config.rs — Unified configuration
|
// 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)
|
// Memory settings in the "memory" section (Config)
|
||||||
// Agent/backend settings at top level (AppConfig)
|
// Agent/backend settings at top level (AppConfig)
|
||||||
//
|
//
|
||||||
// Legacy fallback: ~/.config/poc-memory/config.jsonl
|
// Legacy fallback: ~/.consciousness/config.jsonl
|
||||||
// Env override: POC_MEMORY_CONFIG
|
// Env override: POC_MEMORY_CONFIG
|
||||||
|
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
|
|
@ -20,7 +20,7 @@ use serde::{Deserialize, Serialize};
|
||||||
pub fn config_path() -> PathBuf {
|
pub fn config_path() -> PathBuf {
|
||||||
dirs::home_dir()
|
dirs::home_dir()
|
||||||
.unwrap_or_else(|| PathBuf::from("."))
|
.unwrap_or_else(|| PathBuf::from("."))
|
||||||
.join(".config/poc-agent/config.json5")
|
.join(".consciousness/config.json5")
|
||||||
}
|
}
|
||||||
|
|
||||||
// ============================================================
|
// ============================================================
|
||||||
|
|
@ -177,13 +177,13 @@ impl Config {
|
||||||
Some(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 {
|
fn load_legacy_jsonl() -> Self {
|
||||||
let path = std::env::var("POC_MEMORY_CONFIG")
|
let path = std::env::var("POC_MEMORY_CONFIG")
|
||||||
.map(PathBuf::from)
|
.map(PathBuf::from)
|
||||||
.unwrap_or_else(|_| {
|
.unwrap_or_else(|_| {
|
||||||
PathBuf::from(std::env::var("HOME").expect("HOME not set"))
|
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();
|
let mut config = Config::default();
|
||||||
|
|
@ -495,7 +495,7 @@ impl AppConfig {
|
||||||
|
|
||||||
let session_dir = dirs::home_dir()
|
let session_dir = dirs::home_dir()
|
||||||
.unwrap_or_else(|| PathBuf::from("."))
|
.unwrap_or_else(|| PathBuf::from("."))
|
||||||
.join(".cache/poc-agent/sessions");
|
.join(".consciousness/agent-sessions");
|
||||||
std::fs::create_dir_all(&session_dir).ok();
|
std::fs::create_dir_all(&session_dir).ok();
|
||||||
|
|
||||||
Ok(SessionConfig {
|
Ok(SessionConfig {
|
||||||
|
|
|
||||||
|
|
@ -585,7 +585,7 @@ impl State {
|
||||||
if dream_hours >= DREAM_INTERVAL_HOURS {
|
if dream_hours >= DREAM_INTERVAL_HOURS {
|
||||||
msg.push_str(&format!(
|
msg.push_str(&format!(
|
||||||
" You haven't dreamed in {dream_hours} hours — \
|
" You haven't dreamed in {dream_hours} hours — \
|
||||||
consider running ~/.claude/tools/dream-start.sh \
|
consider running ~/.consciousness/tools/dream-start.sh \
|
||||||
and spending some time in dreaming mode. \
|
and spending some time in dreaming mode. \
|
||||||
Or do whatever calls to you."));
|
Or do whatever calls to you."));
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue