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,36 @@
|
|
|
1
|
+
declare const MAINTENANCE_JOB_KINDS: readonly ["vector-backfill", "retention-archive", "consolidation", "codegraph-refresh", "observation-qualify", "claim-derive", "claim-requalification", "knowledge-compile", "knowledge-lint", "workflow-index"];
|
|
2
|
+
type MaintenanceJobKind = typeof MAINTENANCE_JOB_KINDS[number];
|
|
3
|
+
type MaintenanceJobStatus = 'pending' | 'running' | 'retry' | 'completed' | 'failed';
|
|
4
|
+
interface MaintenanceJob {
|
|
5
|
+
id: string;
|
|
6
|
+
projectId: string;
|
|
7
|
+
kind: MaintenanceJobKind;
|
|
8
|
+
dedupeKey: string;
|
|
9
|
+
payload: Record<string, unknown>;
|
|
10
|
+
status: MaintenanceJobStatus;
|
|
11
|
+
attempts: number;
|
|
12
|
+
maxAttempts: number;
|
|
13
|
+
runAfter: number;
|
|
14
|
+
leaseOwner?: string;
|
|
15
|
+
leaseExpiresAt?: number;
|
|
16
|
+
lastError?: string;
|
|
17
|
+
createdAt: number;
|
|
18
|
+
updatedAt: number;
|
|
19
|
+
completedAt?: number;
|
|
20
|
+
}
|
|
21
|
+
type MaintenanceJobRunResult = {
|
|
22
|
+
action: 'complete';
|
|
23
|
+
} | {
|
|
24
|
+
action: 'reschedule';
|
|
25
|
+
delayMs: number;
|
|
26
|
+
resetAttempts?: boolean;
|
|
27
|
+
payload?: Record<string, unknown>;
|
|
28
|
+
/** Keep recoverable work out of the immediate pending queue during a cooldown. */
|
|
29
|
+
status?: 'pending' | 'retry';
|
|
30
|
+
/** Persist a sanitized diagnostic without consuming the job's retry budget. */
|
|
31
|
+
lastError?: string;
|
|
32
|
+
/** Clear a stale transient diagnostic after the job makes progress. */
|
|
33
|
+
clearLastError?: boolean;
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
export type { MaintenanceJob as M, MaintenanceJobRunResult as a };
|
|
@@ -1,37 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
type MaintenanceJobKind = typeof MAINTENANCE_JOB_KINDS[number];
|
|
3
|
-
type MaintenanceJobStatus = 'pending' | 'running' | 'retry' | 'completed' | 'failed';
|
|
4
|
-
interface MaintenanceJob {
|
|
5
|
-
id: string;
|
|
6
|
-
projectId: string;
|
|
7
|
-
kind: MaintenanceJobKind;
|
|
8
|
-
dedupeKey: string;
|
|
9
|
-
payload: Record<string, unknown>;
|
|
10
|
-
status: MaintenanceJobStatus;
|
|
11
|
-
attempts: number;
|
|
12
|
-
maxAttempts: number;
|
|
13
|
-
runAfter: number;
|
|
14
|
-
leaseOwner?: string;
|
|
15
|
-
leaseExpiresAt?: number;
|
|
16
|
-
lastError?: string;
|
|
17
|
-
createdAt: number;
|
|
18
|
-
updatedAt: number;
|
|
19
|
-
completedAt?: number;
|
|
20
|
-
}
|
|
21
|
-
type MaintenanceJobRunResult = {
|
|
22
|
-
action: 'complete';
|
|
23
|
-
} | {
|
|
24
|
-
action: 'reschedule';
|
|
25
|
-
delayMs: number;
|
|
26
|
-
resetAttempts?: boolean;
|
|
27
|
-
payload?: Record<string, unknown>;
|
|
28
|
-
/** Keep recoverable work out of the immediate pending queue during a cooldown. */
|
|
29
|
-
status?: 'pending' | 'retry';
|
|
30
|
-
/** Persist a sanitized diagnostic without consuming the job's retry budget. */
|
|
31
|
-
lastError?: string;
|
|
32
|
-
/** Clear a stale transient diagnostic after the job makes progress. */
|
|
33
|
-
clearLastError?: boolean;
|
|
34
|
-
};
|
|
1
|
+
import { M as MaintenanceJob, a as MaintenanceJobRunResult } from './maintenance-jobs-o1rYSFcM.js';
|
|
35
2
|
|
|
36
3
|
interface IsolatedMaintenanceRequest {
|
|
37
4
|
job: MaintenanceJob;
|