v0.0.6 linux-x64: ingestion and search silently broken — @rivetkit/rivetkit-wasm not bundled into standalone binary
Summary
The server-v0.0.6 supermemory-server-linux-x64 binary ships without the @rivetkit/rivetkit-wasm module compiled in. The server boots and answers HTTP 200, but the entire rivet-backed async pipeline is dead:
- Document ingestion never runs — documents stay in
status: "queued"forever /v3/searchand/v4/searchreturn{"results":[],"total":0}for all queries, instantly (~40 ms, i.e. query embedding never executes)GET /api/rivet/metadatafails on every call
Because everything returns HTTP 200, the breakage is silent — no crash, no fatal log, just an empty memory store from the client's perspective.
error: Cannot find module '@rivetkit/rivetkit-wasm' from '/$bunfs/root/supermemory-server'
GET - /api/rivet/metadata failedReproduction (fresh data dir, no pre-existing state)
curl -sLO https://github.com/supermemoryai/supermemory/releases/download/server-v0.0.6/supermemory-server-linux-x64
chmod +x supermemory-server-linux-x64
mkdir /tmp/sm-fresh
SUPERMEMORY_DATA_DIR=/tmp/sm-fresh SUPERMEMORY_PORT=6768 OPENAI_API_KEY=sk-dummy \
./supermemory-server-linux-x64
# wait for "http server listening", then:
curl http://127.0.0.1:6768/api/rivet/metadataResult: the module error above is logged, the endpoint returns the Bun fallback error page, and any document POSTed via /v3/documents stays queued indefinitely.
Reproduced on Linux Mint 22.3 (Ubuntu 24.04 base), kernel 6.17, x86_64.
Binary sha256 (matches the published .sha256 asset): bb1b7cee393818236873b8e2518a435e10d9195e27ea5608a3af48a733ef8ee8
Root cause (from inspecting the binary)
The rivet runtime loaders use computed dynamic import specifiers, which Bun's bundler cannot statically analyze, so the modules are never embedded into the standalone binary:
// wasm path (decompiled from the v0.0.6 binary)
async function Pt8($){let e=($?.bindings) ?? await import(["@rivetkit","rivetkit-wasm"].join("/")); ...}
// napi path
async function pt8(){let $=await import(["@rivetkit","rivetkit-napi"].join("/")); ...}At runtime Bun resolves the specifier against /$bunfs/root/ and finds nothing → Cannot find module.
For comparison, the v0.0.5 binary bundled the napi loader statically — the per-platform stubs are visible in the binary (require("./rivetkit-napi.linux-x64-musl-….node") etc.) — which is why v0.0.5 works on the same machine.
Likely fix: replace the ["@rivetkit","rivetkit-wasm"].join("/") indirection with static import specifiers (or explicit bundler externals/assets) so Bun embeds the modules.
Notes
- This is independent of #1314 (the regenerated
0000_quiet_slydebaseline failing on existing DBs withschema "observatory" already exists). We hit that too on upgrade from v0.0.5 and worked around it by applying the schema delta manually and recording the new migration hash — after which v0.0.6 boots cleanly but is still unusable due to this bundling issue. Both bugs block the 0.0.5 → 0.0.6 upgrade path on linux-x64; this one also breaks fresh installs. - Happy to test a fixed build.
Source: supermemoryai/supermemory