memorix 1.2.8 → 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.
- package/CHANGELOG.md +7 -0
- package/dist/cli/index.js +19355 -19126
- package/dist/cli/index.js.map +1 -1
- package/dist/cli/memcode.js +0 -0
- package/dist/index.js +7849 -7628
- package/dist/index.js.map +1 -1
- package/dist/maintenance-jobs-o1rYSFcM.d.ts +36 -0
- package/dist/maintenance-runner.d.ts +1 -34
- package/dist/maintenance-runner.js +5892 -5692
- package/dist/maintenance-runner.js.map +1 -1
- package/dist/memcode-runtime/CHANGELOG.md +7 -0
- package/dist/sdk.js +7782 -7561
- package/dist/sdk.js.map +1 -1
- package/dist/vector-backfill-runner.d.ts +31 -0
- package/dist/vector-backfill-runner.js +12670 -0
- package/dist/vector-backfill-runner.js.map +1 -0
- package/package.json +1 -1
- package/plugins/claude/memorix/.claude-plugin/plugin.json +1 -1
- package/plugins/codex/memorix/.codex-plugin/plugin.json +1 -1
- package/plugins/copilot/memorix/plugin.json +1 -1
- package/plugins/gemini/memorix/gemini-extension.json +1 -1
- package/plugins/omp/memorix/package.json +1 -1
- package/plugins/openclaw/memorix/.codex-plugin/plugin.json +1 -1
- package/plugins/pi/memorix/package.json +1 -1
- package/src/cli/commands/operator-shared.ts +4 -1
- package/src/cli/commands/serve-http.ts +44 -47
- package/src/dashboard/server.ts +43 -63
- package/src/memory/observations.ts +108 -79
- package/src/memory/retention.ts +106 -28
- package/src/memory/session.ts +71 -12
- package/src/runtime/vector-backfill-runner.ts +144 -0
- package/src/search/intent-detector.ts +39 -1
- 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 };
|