Move 18 graph subcommand handlers (594 lines) out of main.rs: link, link-add, link-impact, link-audit, link-orphans, triangle-close, cap-degree, normalize-strengths, differentiate, trace, spectral-*, organize, interference. main.rs: 3130 → 2518 lines. Co-Authored-By: Kent Overstreet <kent.overstreet@linux.dev>
39 lines
948 B
Rust
39 lines
948 B
Rust
// poc-memory library — shared modules for all binaries
|
|
//
|
|
// Re-exports modules so that memory-search and other binaries
|
|
// can call library functions directly instead of shelling out.
|
|
|
|
// Core infrastructure
|
|
pub mod config;
|
|
pub mod store;
|
|
pub mod util;
|
|
pub mod graph;
|
|
pub mod query;
|
|
pub mod similarity;
|
|
pub mod spectral;
|
|
pub mod lookups;
|
|
// search was moved into query/engine
|
|
pub use query::engine as search;
|
|
// old query.rs moved into query/parser
|
|
pub use query::parser as query_parser;
|
|
pub mod transcript;
|
|
pub mod neuro;
|
|
pub mod counters;
|
|
pub mod cursor;
|
|
|
|
// CLI handlers (split from main.rs)
|
|
pub mod cli;
|
|
|
|
// Agent layer (LLM-powered operations)
|
|
pub mod agents;
|
|
pub mod tui;
|
|
|
|
// Re-export agent submodules at crate root for backwards compatibility
|
|
pub use agents::{
|
|
llm, audit, consolidate, knowledge,
|
|
enrich, fact_mine, digest, daemon,
|
|
};
|
|
|
|
pub mod memory_capnp {
|
|
include!(concat!(env!("OUT_DIR"), "/schema/memory_capnp.rs"));
|
|
}
|