Skip to content

armgit / xerj

Public Imported from GitHub
0

AI search engine and MCP server for bots and agents. One Rust binary indexes code, docs, logs, JSONL/CSV and PDFs for BM25 full-text, vector and hybrid search, code search without grep, agent memory and RAG. Elasticsearch-compatible API; Corpus Hub serves hundreds of reference memory corpora.

chore(hub): integration base — wire stub modules + next-wave deps

xerj-orgf07669ad1873
diff --git a/engine/Cargo.lock b/engine/Cargo.lock
index 92395cbeb..c09cb3b1b 100644
--- a/engine/Cargo.lock
+++ b/engine/Cargo.lock
@@ -7619,10 +7619,16 @@ version = "1.0.0-rc.95"
dependencies = [
"anyhow",
"base64 0.23.1",
+ "chrono",
+ "reqwest",
"serde",
"serde_json",
+ "sha2 0.10.9",
"tempfile",
+ "toml",
+ "xerj-autoindex",
"xerj-common",
+ "zstd",
]
[[package]]
diff --git a/engine/crates/xerj-hub/Cargo.toml b/engine/crates/xerj-hub/Cargo.toml
index 0da4eeec6..6ccd351f4 100644
--- a/engine/crates/xerj-hub/Cargo.toml
+++ b/engine/crates/xerj-hub/Cargo.toml
@@ -12,6 +12,12 @@ serde.workspace = true
serde_json = { workspace = true, features = ["preserve_order"] }
anyhow.workspace = true
base64 = "0.23.1"
+xerj-autoindex = { path = "../xerj-autoindex" }
+reqwest = { workspace = true, features = ["blocking"] }
+chrono.workspace = true
+zstd.workspace = true
+toml.workspace = true
+sha2 = "0.10"
[dev-dependencies]
tempfile.workspace = true
diff --git a/engine/crates/xerj-hub/src/catalogue.rs b/engine/crates/xerj-hub/src/catalogue.rs
new file mode 100644
index 000000000..8129acc1d
--- /dev/null
+++ b/engine/crates/xerj-hub/src/catalogue.rs
@@ -0,0 +1,3 @@
+//! Corpus Hub v2 — the catalogue module. Filled by the implementing agent per
+//! docs/CORPUS_HUB_V2_IMPLEMENTATION.md. This stub reserves the module so the
+//! crate wires up before the behaviour lands.
diff --git a/engine/crates/xerj-hub/src/lib.rs b/engine/crates/xerj-hub/src/lib.rs
index 7512b582f..37dc538a6 100644
--- a/engine/crates/xerj-hub/src/lib.rs
+++ b/engine/crates/xerj-hub/src/lib.rs
@@ -14,6 +14,10 @@
//! router + ask (Step 5). Alongside them this file re-exports the shared types.
pub mod sketch;
+pub mod catalogue;
+pub mod node;
+pub mod pack;
+pub mod router;
pub use xerj_common::hub::{
render, Answer, AnswerMode, AnsweredFrom, Catalogue, CatalogueEntry, DefRecord, Hit,
diff --git a/engine/crates/xerj-hub/src/node.rs b/engine/crates/xerj-hub/src/node.rs
new file mode 100644
index 000000000..7d45ee1c7
--- /dev/null
+++ b/engine/crates/xerj-hub/src/node.rs
@@ -0,0 +1,3 @@
+//! Corpus Hub v2 — the node module. Filled by the implementing agent per
+//! docs/CORPUS_HUB_V2_IMPLEMENTATION.md. This stub reserves the module so the
+//! crate wires up before the behaviour lands.
diff --git a/engine/crates/xerj-hub/src/pack.rs b/engine/crates/xerj-hub/src/pack.rs
new file mode 100644
index 000000000..0563ddb34
--- /dev/null
+++ b/engine/crates/xerj-hub/src/pack.rs
@@ -0,0 +1,3 @@
+//! Corpus Hub v2 — the pack module. Filled by the implementing agent per
+//! docs/CORPUS_HUB_V2_IMPLEMENTATION.md. This stub reserves the module so the
+//! crate wires up before the behaviour lands.
diff --git a/engine/crates/xerj-hub/src/router.rs b/engine/crates/xerj-hub/src/router.rs
new file mode 100644
index 000000000..f8fee9bb5
--- /dev/null
+++ b/engine/crates/xerj-hub/src/router.rs
@@ -0,0 +1,3 @@
+//! Corpus Hub v2 — the router module. Filled by the implementing agent per
+//! docs/CORPUS_HUB_V2_IMPLEMENTATION.md. This stub reserves the module so the
+//! crate wires up before the behaviour lands.