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.
Rust agent-memoryai-agentsbm25claude-codeclicode-searchcursordatabaseelasticsearchfull-text-searchhybrid-searchjsonllocal-firstmcpmcp-servermodel-context-protocolragrustsearch-enginevector-search
Merge pull request #1408 from xerj-org/feat/hub-v2-sync
xerj-org21edccded1e4
diff --cc engine/crates/xerj-hub/src/cli.rsindex 642c29e37,ba925fc12..d7706b2f4--- a/engine/crates/xerj-hub/src/cli.rs+++ b/engine/crates/xerj-hub/src/cli.rs@@@ -49,21 -42,11 +49,24 @@@ const HUB_USAGE: &str = "usage: xerj hubuild-pack <slug> --registry <dir> --out <dir> --url <node> --sign-key <seed-file>Build a signed, pre-indexed pack from a registry manifest (CI).+ sync [--url <node>] | sync --install-timer+ Refresh the catalogue and bring every cached pack up to its pin;+ --install-timer schedules that every 6 hours (see `xerj hub sync -h`).pull <slug> [--quiet] [--url <node>]Download, verify and restore a pack, then `xerj code <slug>` works.+ Exits 2 for an unknown corpus, 3 when the pack fails verification, 5 when+ this build has no hub public key to verify with (nothing is downloaded),+ 1 for anything else (an excluded licence and a pack over the size limit+ are refused here too).+ status+ Cached packs, the automatic node, the hosted setting, catalogue age.+ stop+ Stop the automatic node `xerj ask` started (only that process).+ config hosted on|off|auto+ Whether questions may be sent to the hosted hub (default auto: off+ inside a git repository, on elsewhere).++Ask a question with `xerj ask \"<question>\"` (see `xerj ask --help`).Packs are pulled on demand and never cloned or indexed on the user's machine(docs/CORPUS_HUB_V2_IMPLEMENTATION.md).";@@@ -77,10 -60,8 +80,11 @@@ pub fn run_hub_cli(args: &[String]) ->let rest = &args[1..];match sub.as_str() {"build-pack" => run_build_pack(rest),+ "sync" => crate::sync::run_sync(rest),"pull" => run_pull(rest),+ "status" => run_status(rest),+ "stop" => run_stop(rest),+ "config" => run_config(rest),"-h" | "--help" | "help" => {println!("{HUB_USAGE}");0