memorix 1.8.9 → 1.9.1

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 (62) hide show
  1. package/CHANGELOG.md +46 -0
  2. package/README.md +12 -1
  3. package/README.zh-CN.md +7 -1
  4. package/dist/cli/index.js +4764 -2186
  5. package/dist/index.js +2703 -1901
  6. package/dist/maintenance-runner.js +1966 -1129
  7. package/dist/media-audio-runner.js +2465 -1628
  8. package/dist/media-video-runner.js +2465 -1628
  9. package/dist/memcode-runtime/CHANGELOG.md +46 -0
  10. package/dist/sdk.js +2765 -1899
  11. package/dist/vector-backfill-runner.d.ts +4 -1
  12. package/dist/vector-backfill-runner.js +2466 -1627
  13. package/docs/API_REFERENCE.md +14 -0
  14. package/docs/CONFIGURATION.md +68 -0
  15. package/docs/DEVELOPMENT.md +3 -3
  16. package/docs/MULTI-DEVICE-SYNC-RESEARCH.md +344 -0
  17. package/docs/PERFORMANCE.md +109 -20
  18. package/docs/README.md +4 -2
  19. package/llms-full.txt +1 -0
  20. package/llms.txt +1 -0
  21. package/package.json +2 -1
  22. package/plugins/antigravity/memorix/plugin.json +1 -1
  23. package/plugins/claude/memorix/.claude-plugin/plugin.json +1 -1
  24. package/plugins/codebuddy/memorix/.codebuddy-plugin/plugin.json +1 -1
  25. package/plugins/codex/memorix/.codex-plugin/plugin.json +1 -1
  26. package/plugins/copilot/memorix/plugin.json +1 -1
  27. package/plugins/gemini/memorix/gemini-extension.json +1 -1
  28. package/plugins/hermes/memorix/plugin.yaml +1 -1
  29. package/plugins/omp/memorix/package.json +1 -1
  30. package/plugins/openclaw/memorix/.codex-plugin/plugin.json +1 -1
  31. package/plugins/pi/memorix/package.json +1 -1
  32. package/server.json +2 -2
  33. package/src/cli/command-guide.ts +9 -1
  34. package/src/cli/commands/serve-http.ts +11 -0
  35. package/src/cli/commands/sync-store.ts +191 -0
  36. package/src/cli/commands/sync.ts +8 -0
  37. package/src/compact/engine.ts +14 -4
  38. package/src/memory/freshness.ts +7 -4
  39. package/src/memory/observations.ts +133 -8
  40. package/src/runtime/maintenance-targets.ts +6 -0
  41. package/src/runtime/vector-backfill-runner.ts +186 -8
  42. package/src/sdk.ts +13 -6
  43. package/src/search/semantic-index.ts +340 -0
  44. package/src/server.ts +1 -1
  45. package/src/store/obs-store.ts +54 -2
  46. package/src/store/orama-store.ts +385 -114
  47. package/src/store/sqlite-db.ts +6 -0
  48. package/src/store/sqlite-fts.ts +164 -0
  49. package/src/store/sqlite-store.ts +83 -6
  50. package/src/sync/adapters/fs.ts +179 -0
  51. package/src/sync/adapters/github.ts +258 -0
  52. package/src/sync/adapters/object-store.ts +267 -0
  53. package/src/sync/adapters/postgres.ts +269 -0
  54. package/src/sync/engine.ts +353 -0
  55. package/src/sync/journal.ts +162 -0
  56. package/src/sync/merge.ts +116 -0
  57. package/src/sync/namespace.ts +15 -0
  58. package/src/sync/paging.ts +45 -0
  59. package/src/sync/policy.ts +37 -0
  60. package/src/sync/remote-factory.ts +49 -0
  61. package/src/sync/store-port.ts +288 -0
  62. package/src/sync/types.ts +183 -0
@@ -10,11 +10,14 @@ interface VectorBackfillLauncherOptions {
10
10
  runnerPath?: string;
11
11
  exists?: (path: string) => boolean;
12
12
  spawn?: typeof spawn;
13
+ lockPath?: string;
13
14
  }
14
15
  /** Resolve the standalone worker next to either the library or CLI bundle. */
15
16
  declare function resolveVectorBackfillRunnerPath(moduleUrl?: string): string;
16
17
  /** Parse the internal request passed from a short-lived CLI process. */
17
18
  declare function parseVectorBackfillRequest(raw: string): VectorBackfillRequest;
19
+ declare function vectorBackfillLockPath(dataDir: string): string;
20
+ declare function releaseVectorBackfillLock(lockPath?: string | undefined): void;
18
21
  /**
19
22
  * Start a detached one-shot worker. The caller has already persisted the
20
23
  * observation and durable vector job, so failure to start is recoverable by a
@@ -28,4 +31,4 @@ declare function executeVectorBackfill(request: VectorBackfillRequest): Promise<
28
31
  }>;
29
32
  declare function main(): Promise<void>;
30
33
 
31
- export { type VectorBackfillLauncherOptions, type VectorBackfillRequest, executeVectorBackfill, launchDetachedVectorBackfill, main, parseVectorBackfillRequest, resolveVectorBackfillRunnerPath };
34
+ export { type VectorBackfillLauncherOptions, type VectorBackfillRequest, executeVectorBackfill, launchDetachedVectorBackfill, main, parseVectorBackfillRequest, releaseVectorBackfillLock, resolveVectorBackfillRunnerPath, vectorBackfillLockPath };