subconscious: move install_hook() from daemon.rs to hook.rs

The install_hook() function is about hook infrastructure setup, not daemon
runtime. Move it to hook.rs where it belongs alongside the hook execution
logic.

- Move install_hook() from daemon.rs to hook.rs
- Update caller in daemon.rs to use crate::subconscious:🪝:install_hook()
- Update caller in cli/admin.rs to use crate::subconscious:🪝:install_hook()

This improves module boundaries: daemon.rs now only contains daemon runtime
and admin commands, while hook.rs contains all hook-related functionality.
This commit is contained in:
ProofOfConcept 2026-04-02 21:24:58 -04:00
parent e91449b905
commit 1b47b45566
3 changed files with 108 additions and 107 deletions

View file

@ -40,7 +40,7 @@ pub fn cmd_init() -> Result<(), String> {
println!("Indexed {} memory units", count);
// Install hooks
crate::daemon::install_hook()?;
crate::subconscious::hook::install_hook()?;
// Create config if none exists
let config_path = std::env::var("POC_MEMORY_CONFIG")