memorix 1.6.0 → 1.6.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.
Files changed (41) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/dist/cli/index.js +1888 -1122
  3. package/dist/cli/memcode.js +12 -1
  4. package/dist/index.js +641 -113
  5. package/dist/maintenance-runner.js +618 -90
  6. package/dist/media-audio-runner.js +618 -90
  7. package/dist/media-video-runner.js +618 -90
  8. package/dist/memcode-runtime/CHANGELOG.md +46 -0
  9. package/dist/sdk.js +674 -117
  10. package/dist/vector-backfill-runner.js +618 -90
  11. package/docs/AGENT_OPERATOR_PLAYBOOK.md +11 -3
  12. package/docs/API_REFERENCE.md +1 -1
  13. package/docs/DOCKER.md +5 -1
  14. package/docs/PERFORMANCE.md +17 -2
  15. package/docs/README.md +3 -1
  16. package/docs/SETUP.md +8 -2
  17. package/package.json +2 -1
  18. package/plugins/claude/memorix/.claude-plugin/plugin.json +1 -1
  19. package/plugins/codebuddy/memorix/.codebuddy-plugin/plugin.json +1 -1
  20. package/plugins/codex/memorix/.codex-plugin/plugin.json +1 -1
  21. package/plugins/copilot/memorix/plugin.json +1 -1
  22. package/plugins/gemini/memorix/gemini-extension.json +1 -1
  23. package/plugins/omp/memorix/package.json +1 -1
  24. package/plugins/openclaw/memorix/.codex-plugin/plugin.json +1 -1
  25. package/plugins/pi/memorix/package.json +1 -1
  26. package/server.json +2 -2
  27. package/src/cli/commands/agent-integrations.ts +9 -3
  28. package/src/cli/commands/background.ts +34 -2
  29. package/src/cli/commands/doctor.ts +46 -15
  30. package/src/cli/commands/hook.ts +13 -1
  31. package/src/cli/commands/operator-shared.ts +6 -3
  32. package/src/cli/commands/serve-http.ts +72 -7
  33. package/src/cli/heap.ts +76 -0
  34. package/src/cli/invocation.ts +7 -4
  35. package/src/embedding/api-provider.ts +503 -27
  36. package/src/embedding/provider.ts +96 -9
  37. package/src/hooks/handler.ts +9 -18
  38. package/src/hooks/lifecycle.ts +174 -0
  39. package/src/memory/observations.ts +68 -18
  40. package/src/sdk.ts +12 -8
  41. package/src/store/orama-store.ts +21 -3
package/CHANGELOG.md CHANGED
@@ -4,6 +4,52 @@ All notable changes to this project will be documented in this file.
4
4
 
5
5
  ## [Unreleased]
6
6
 
7
+ ## [1.6.2] - 2026-08-18
8
+
9
+ ### Changed
10
+ - **Responsive large-store control plane** -- HTTP health and MCP initialize
11
+ no longer wait for full observation or embedding-cache hydration. Hook writes
12
+ persist directly without loading the full corpus, one-shot CLI paths avoid
13
+ cached-vector attachment, and ordinary embedding-disabled writes stay off
14
+ the provider/configuration hot path. Contributed by
15
+ [@RaviTharuma](https://github.com/RaviTharuma) in #214.
16
+ - **Bounded and crash-safe embedding cache** -- JSONL cache loading is bounded
17
+ by a 256 MiB raw-vector payload budget, legacy JSON migration publishes via
18
+ temporary-file rename, concurrent loads are single-flighted, and sidecar
19
+ metadata avoids rescanning a large cache on every save.
20
+
21
+ ### Fixed
22
+ - **SDK lifecycle and persistence parity** -- `MemoryClient.close()` releases
23
+ its SQLite handle on Windows, reopening the same directory reloads a fresh
24
+ store snapshot, and SDK clients use the same flat data directory as CLI,
25
+ hooks, and HTTP MCP instead of the retired per-project directory layout.
26
+ - **Correct background entrypoint** -- `memorix background start` launches the
27
+ built HTTP CLI entrypoint rather than the stdio library entry.
28
+
29
+ ## [1.6.1] - 2026-08-17
30
+
31
+ ### Fixed
32
+ - **Bounded hook lifecycle on every desktop platform** -- `memorix hook` now
33
+ reads stdin with an idle bound, performs embedding writes in the deferred
34
+ lane, and has a hard process deadline. The hook-specific V8 heap is 512 MiB
35
+ instead of the control plane's 4 GiB. This prevents hung hook processes and
36
+ associated CPU or memory pressure on macOS, Windows, and Linux. The Windows
37
+ CLI heap restart also hides its child console window.
38
+ - **Recoverable HTTP MCP sessions** -- HTTP MCP sessions now default to a
39
+ 12-hour idle window. An expired or unknown session receives a fast `404`
40
+ with a reinitialize hint instead of looking like a silent client hang. Set
41
+ `MEMORIX_SESSION_TIMEOUT_MS=0` only when the host owns lifecycle cleanup.
42
+ - **Truthful embedding diagnostics** -- the HTTP control plane exposes its
43
+ real runtime embedding state. `memorix doctor` reads that state instead of
44
+ reporting a fresh local probe as ready while the running service is degraded
45
+ by authorization, billing, timeout, or upstream failure.
46
+ - **Accurate doctor JSON health** -- a live PID with an unreachable HTTP
47
+ control plane now reports `healthy: false` rather than a false positive.
48
+
49
+ ### Changed
50
+ - **macOS release coverage** -- normal CI now runs the full build and test
51
+ suite on `macos-latest` in addition to Ubuntu and Windows.
52
+
7
53
  ## [1.6.0] - 2026-08-17
8
54
 
9
55
  ### Added