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
fix(release): stamp version only on v-tags with portable perl; route /get.sh to the installer
xerj-orgc4097ff1a617
diff --git a/.github/workflows/release.yml b/.github/workflows/release.ymlindex 807666d76..b08fd0a0f 100644--- a/.github/workflows/release.yml+++ b/.github/workflows/release.yml@@ -157,12 +157,26 @@ jobs:done <<< '${{ matrix.linker_env }}'fi# Binary --version is env!("CARGO_PKG_VERSION"); without this it stays- # frozen at whatever engine/Cargo.toml last shipped (rc.18), so every- # release self-reported rc.18. Derive it from the tag.- VER="${GITHUB_REF_NAME#v}"- sed -i.bak -E "0,/^version = \".*\"/s//version = \"${VER}\"/" Cargo.toml && rm -f Cargo.toml.bak- echo "set workspace version to ${VER}"; grep -m1 '^version = ' Cargo.toml- cargo update --workspace --offline 2>/dev/null || cargo update --workspace+ # frozen at whatever engine/Cargo.toml last shipped (rc.18). Stamp it+ # from the tag — but ONLY on a v-tag: this matrix also runs on main+ # pushes / workflow_dispatch as a cross-compile canary, where+ # GITHUB_REF_NAME is a branch name and `version = "main"` would make+ # cargo reject the manifest and fail the build.+ case "${GITHUB_REF_NAME}" in+ v[0-9]*)+ VER="${GITHUB_REF_NAME#v}"+ # perl, not `sed 0,/re/`: the address-0 form is a GNU extension and+ # the macOS legs run BSD sed, which errors on it and (being non-final+ # in `sed && rm`) leaves the version unchanged. This rewrites only the+ # first `version = "..."` line, the [workspace.package] version.+ perl -0777 -i -pe 's/^version = "[^"]*"/version = "'"$VER"'"/m' Cargo.toml+ echo "set workspace version to ${VER}"; grep -m1 '^version = ' Cargo.toml+ cargo update --workspace --offline 2>/dev/null || cargo update --workspace+ ;;+ *)+ echo "ref ${GITHUB_REF_NAME} is not a version tag; leaving engine/Cargo.toml version as-is (canary build)"+ ;;+ esacif [ "${{ matrix.use_zigbuild }}" = "true" ]; thencargo zigbuild --release --locked --target ${{ matrix.target }} -p xerj-serverelsediff --git a/functions/get.js b/functions/get.jsindex a2fb25c15..d15a4cd86 100644--- a/functions/get.js+++ b/functions/get.js@@ -112,6 +112,7 @@ function platform(ua) {/** Which script this request is for. Anything else is not ours to serve. */function scriptFor(pathname) {if (pathname === '/get') return 'get';+ if (pathname === '/get.sh') return 'get'; // alias: same shell installerif (pathname === '/get.ps1') return 'get.ps1';return null;}diff --git a/functions/get.sh.js b/functions/get.sh.jsindex 974b5c32a..3b1561ca4 100644--- a/functions/get.sh.js+++ b/functions/get.sh.js@@ -2,4 +2,4 @@// as often as the extensionless form; without this route it fell through to the// static handler and served index.html, so the pipe to `sh` got HTML and any// sha256 check failed. Re-export the real installer handler.-export { onRequestGet } from "./get.js";+export { onRequestGet, onRequestHead } from "./get.js";