forked from kent/consciousness
centralize memory store interface in hippocampus/mod.rs
This commit is contained in:
parent
063cf031d3
commit
5db00e083f
8 changed files with 899 additions and 723 deletions
|
|
@ -1,5 +1,6 @@
|
|||
// cli/admin.rs — admin subcommand handlers
|
||||
|
||||
use crate::hippocampus as memory;
|
||||
use crate::store;
|
||||
|
||||
fn install_default_file(data_dir: &std::path::Path, name: &str, content: &str) -> Result<(), String> {
|
||||
|
|
@ -329,7 +330,6 @@ pub fn cmd_dedup(apply: bool) -> Result<(), String> {
|
|||
}
|
||||
|
||||
pub async fn cmd_health() -> Result<(), String> {
|
||||
use crate::agent::tools::memory;
|
||||
let result = memory::graph_health(None).await
|
||||
.map_err(|e| e.to_string())?;
|
||||
print!("{}", result);
|
||||
|
|
@ -337,7 +337,6 @@ pub async fn cmd_health() -> Result<(), String> {
|
|||
}
|
||||
|
||||
pub async fn cmd_topology() -> Result<(), String> {
|
||||
use crate::agent::tools::memory;
|
||||
let result = memory::graph_topology(None).await
|
||||
.map_err(|e| e.to_string())?;
|
||||
print!("{}", result);
|
||||
|
|
@ -421,7 +420,6 @@ pub fn cmd_export(files: &[String], export_all: bool) -> Result<(), String> {
|
|||
}
|
||||
|
||||
pub async fn cmd_status() -> Result<(), String> {
|
||||
use crate::agent::tools::memory;
|
||||
let result = memory::graph_topology(None).await
|
||||
.map_err(|e| e.to_string())?;
|
||||
print!("{}", result);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue