@mem-weave/server 0.2.1 → 0.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/cli-entry.js CHANGED
@@ -25,7 +25,7 @@ async function main() {
25
25
  env: process.env,
26
26
  configPath: process.env.MEMWEAVE_CONFIG
27
27
  });
28
- // Print message + data, and exit non-zero on failure
28
+ // Print message + data
29
29
  if (result.message) {
30
30
  if (result.ok) {
31
31
  // eslint-disable-next-line no-console
@@ -40,6 +40,10 @@ async function main() {
40
40
  // eslint-disable-next-line no-console
41
41
  console.log(JSON.stringify(result.data, null, 2));
42
42
  }
43
+ // For the `start` command, the HTTP server keeps the event loop alive —
44
+ // do NOT call process.exit() or it would kill the server immediately.
45
+ if (parsed.command === 'start')
46
+ return;
43
47
  process.exit(result.ok ? 0 : 1);
44
48
  }
45
49
  main().catch((err) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mem-weave/server",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "MemWeave local-first memory infrastructure for AI agents: structured memory, 4-layer retrieval (BM25 + vector + graph + causal), token-budgeted injection, server-side write deduplication, and background consolidation. Server process: Fastify REST API + CLI.",
5
5
  "type": "module",
6
6
  "main": "./dist/cli-entry.js",