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.

Merge PR #2493 for composed staging review

xerj-org48079a511019
diff --cc CHANGELOG.md
index d39dc54e7,971eb4faa..c1b61677e
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@@ -154,22 -112,14 +154,30 @@@ continues in #2427 and #1122, which sta
### Fixed
+- `xerj search` names an unknown flag on one line and exits 2 instead of
+ following "unexpected argument" with the whole usage text (#2458). An
+ agent that guessed `--index` and `--max-hits` read the help dump as the
+ answer and gave up on the CLI. Those guesses, and `--size`, `--limit`,
+ `--top`, `--top-k`, `-n` and `-i`, now point at `--prefix <P>` or
+ `-k <N>`.
+- `xerj_batch_search` (and `xerj batch-search`) accept a plain string in
+ `queries` as shorthand for `{"query": <string>}` (#2497). A string item
+ used to fail alone with "arguments must be a JSON object", so an agent
+ that sent `["a", "b"]` lost a call; the advertised schema now allows it.
+
+- `xerj corpus add` accepts a local Windows path such as
+ `F:\Projects\Foo` (#2472). The repo name was the text after the last `/`,
+ so a `\`-separated path stayed whole and was refused as an unsafe repo
+ name; it now names the repo `Foo`, as `F:/Projects/Foo` already did.
+
+ - `xerj autoindex` no longer leaves large `.autoindex-stage-*` files in the
+ state dir (#2427, PR [#2493](https://github.com/xerj-org/xerj/pull/2493)).
+ Phase B staged each file as uncompressed NDJSON in a named temp file, which
+ was several times the size of the source for row-shaped data (a 31.7 MB
+ trace staged as about 215 MB) and was left behind when the client was
+ killed by a signal. Stages are now zstd-compressed and written to an
+ unnamed temp file that the kernel frees when the client exits, however it
+ exits.
- `xerj code` shows the part of a long definition that matched the query,
not its first `--full` characters (#2464). The matching text could sit
thousands of characters below the signature, so a hit named the right