memorix 1.2.7 → 1.2.9

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 (38) hide show
  1. package/CHANGELOG.md +15 -0
  2. package/dist/cli/index.js +19531 -19017
  3. package/dist/cli/index.js.map +1 -1
  4. package/dist/dashboard/static/app.js +7 -2
  5. package/dist/index.js +7870 -7497
  6. package/dist/index.js.map +1 -1
  7. package/dist/maintenance-jobs-o1rYSFcM.d.ts +36 -0
  8. package/dist/maintenance-runner.d.ts +1 -28
  9. package/dist/maintenance-runner.js +5937 -5596
  10. package/dist/maintenance-runner.js.map +1 -1
  11. package/dist/memcode-runtime/CHANGELOG.md +15 -0
  12. package/dist/sdk.js +7866 -7493
  13. package/dist/sdk.js.map +1 -1
  14. package/dist/vector-backfill-runner.d.ts +31 -0
  15. package/dist/vector-backfill-runner.js +12670 -0
  16. package/dist/vector-backfill-runner.js.map +1 -0
  17. package/docs/dev-log/progress.txt +25 -0
  18. package/package.json +3 -3
  19. package/plugins/claude/memorix/.claude-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/src/cli/commands/agent-integrations.ts +102 -5
  27. package/src/cli/commands/operator-shared.ts +4 -1
  28. package/src/cli/commands/serve-http.ts +58 -50
  29. package/src/cli/commands/setup.ts +44 -0
  30. package/src/dashboard/server.ts +54 -63
  31. package/src/memory/observations.ts +175 -99
  32. package/src/memory/retention.ts +106 -28
  33. package/src/memory/session.ts +71 -12
  34. package/src/runtime/maintenance-jobs.ts +84 -4
  35. package/src/runtime/project-maintenance.ts +63 -6
  36. package/src/runtime/vector-backfill-runner.ts +144 -0
  37. package/src/search/intent-detector.ts +39 -1
  38. package/src/server.ts +5 -5
@@ -0,0 +1,31 @@
1
+ import { M as MaintenanceJob } from './maintenance-jobs-o1rYSFcM.js';
2
+ import { spawn } from 'node:child_process';
3
+
4
+ interface VectorBackfillRequest {
5
+ projectId: string;
6
+ projectRoot: string;
7
+ dataDir: string;
8
+ }
9
+ interface VectorBackfillLauncherOptions {
10
+ runnerPath?: string;
11
+ exists?: (path: string) => boolean;
12
+ spawn?: typeof spawn;
13
+ }
14
+ /** Resolve the standalone worker next to either the library or CLI bundle. */
15
+ declare function resolveVectorBackfillRunnerPath(moduleUrl?: string): string;
16
+ /** Parse the internal request passed from a short-lived CLI process. */
17
+ declare function parseVectorBackfillRequest(raw: string): VectorBackfillRequest;
18
+ /**
19
+ * Start a detached one-shot worker. The caller has already persisted the
20
+ * observation and durable vector job, so failure to start is recoverable by a
21
+ * later MCP or control-plane session.
22
+ */
23
+ declare function launchDetachedVectorBackfill(request: VectorBackfillRequest, options?: VectorBackfillLauncherOptions): boolean;
24
+ /** Run one durable vector-backfill job without sharing the CLI event loop. */
25
+ declare function executeVectorBackfill(request: VectorBackfillRequest): Promise<{
26
+ state: "idle" | "busy" | "completed" | "rescheduled" | "failed";
27
+ job?: MaintenanceJob;
28
+ }>;
29
+ declare function main(): Promise<void>;
30
+
31
+ export { type VectorBackfillLauncherOptions, type VectorBackfillRequest, executeVectorBackfill, launchDetachedVectorBackfill, main, parseVectorBackfillRequest, resolveVectorBackfillRunnerPath };