@melandlabs/memory-store 1.3.7 → 1.4.0
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/README.md +5 -0
- package/dist/config-Cnk2b7fH.d.ts +571 -0
- package/dist/contracts.d.ts +3 -1
- package/dist/evidence-selector-C_ZUQsio.d.ts +626 -0
- package/dist/http.d.ts +2 -1
- package/dist/http.js +981 -214
- package/dist/index.d.ts +6 -4
- package/dist/index.js +1066 -208
- package/dist/mcp.d.ts +2 -1
- package/dist/mcp.js +990 -216
- package/dist/search/derive.d.ts +2 -1
- package/dist/search/derive.js +6 -2
- package/dist/search/distill.d.ts +2 -1
- package/dist/search/evidence-selector.d.ts +4 -0
- package/dist/search/evidence-selector.js +153 -0
- package/dist/search/unified-search.d.ts +3 -2
- package/dist/search/unified-search.js +887 -196
- package/dist/server/cli-http.js +1455 -332
- package/dist/server/cli-mcp.js +1464 -334
- package/dist/server/cli-shared.d.ts +18 -2
- package/dist/server/cli-shared.js +493 -119
- package/dist/storage/postgres-raw-message-factory.d.ts +2 -1
- package/dist/storage/raw-message-store.d.ts +10 -2
- package/dist/storage/sqlite-raw-message-store.d.ts +2 -1
- package/dist/storage/sqlite-vector-index.d.ts +2 -1
- package/dist/{unified-search-CtFFRj2O.d.ts → unified-search-DfAYG3S9.d.ts} +3 -2
- package/package.json +16 -14
- package/dist/config-BuWr-nvt.d.ts +0 -988
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { a as MemoryStoreEnv } from '../config-
|
|
1
|
+
import { a as MemoryStoreEnv } from '../config-Cnk2b7fH.js';
|
|
2
2
|
import '@melandlabs/memory-consolidation';
|
|
3
3
|
import '@melandlabs/contracts/peer';
|
|
4
|
+
import '../evidence-selector-C_ZUQsio.js';
|
|
4
5
|
import '@melandlabs/contracts';
|
|
5
6
|
import '@melandlabs/contracts/derived-fact';
|
|
6
7
|
import '@melandlabs/contracts/entity-edge';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { RawMessageStorageManager, RawMessageSearchChunk, RawMessageSearchIndexStats } from '@melandlabs/indexeddb';
|
|
2
|
-
import { a as MemoryStoreEnv, M as MemoryStoreConfig } from '../config-
|
|
1
|
+
import { RawMessageStorageManager, RawMessage, RawMessageSearchChunk, RawMessageSearchIndexStats } from '@melandlabs/indexeddb';
|
|
2
|
+
import { a as MemoryStoreEnv, M as MemoryStoreConfig } from '../config-Cnk2b7fH.js';
|
|
3
3
|
import '@melandlabs/memory-consolidation';
|
|
4
4
|
import '@melandlabs/contracts/peer';
|
|
5
|
+
import '../evidence-selector-C_ZUQsio.js';
|
|
5
6
|
import '@melandlabs/contracts';
|
|
6
7
|
import '@melandlabs/contracts/derived-fact';
|
|
7
8
|
import '@melandlabs/contracts/entity-edge';
|
|
@@ -24,6 +25,13 @@ import '@melandlabs/contracts/entity-edge';
|
|
|
24
25
|
|
|
25
26
|
type RawMessageStorageBackend = "sqlite" | "postgres";
|
|
26
27
|
type RawMessageStorageManagerWithSearch = RawMessageStorageManager & {
|
|
28
|
+
getRawMessageSessionNeighbors?: (input: {
|
|
29
|
+
userId: string;
|
|
30
|
+
sessionId: string;
|
|
31
|
+
messageSequences: number[];
|
|
32
|
+
window: number;
|
|
33
|
+
includeDeprecated?: boolean;
|
|
34
|
+
}) => Promise<RawMessage[]>;
|
|
27
35
|
getRawMessageSearchChunks?: (input: {
|
|
28
36
|
chunkIds?: string[];
|
|
29
37
|
messageIds?: string[];
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { SQLiteRawMessageManager } from '@melandlabs/sqlite';
|
|
2
|
-
import { a as MemoryStoreEnv } from '../config-
|
|
2
|
+
import { a as MemoryStoreEnv } from '../config-Cnk2b7fH.js';
|
|
3
3
|
import '@melandlabs/memory-consolidation';
|
|
4
4
|
import '@melandlabs/contracts/peer';
|
|
5
|
+
import '../evidence-selector-C_ZUQsio.js';
|
|
5
6
|
import '@melandlabs/contracts';
|
|
6
7
|
import '@melandlabs/contracts/derived-fact';
|
|
7
8
|
import '@melandlabs/contracts/entity-edge';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { VectorSearchResult } from '@melandlabs/rag/vector-service';
|
|
2
|
-
import { a as MemoryStoreEnv } from '../config-
|
|
2
|
+
import { a as MemoryStoreEnv } from '../config-Cnk2b7fH.js';
|
|
3
3
|
import '@melandlabs/memory-consolidation';
|
|
4
4
|
import '@melandlabs/contracts/peer';
|
|
5
|
+
import '../evidence-selector-C_ZUQsio.js';
|
|
5
6
|
import '@melandlabs/contracts';
|
|
6
7
|
import '@melandlabs/contracts/derived-fact';
|
|
7
8
|
import '@melandlabs/contracts/entity-edge';
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { U as UnifiedSearchDeps } from './config-Cnk2b7fH.js';
|
|
2
2
|
import { MemoryApplicabilityContext, OwnerScope, MemoryConsolidationPlan, ReflectApplyClusterKeyFn, MemoryStorageAdapterLike, MemoryGraphStoreWithOperationHistory, MemoryGraphUpdateResult } from '@melandlabs/memory-consolidation';
|
|
3
3
|
import { MemoryStorageAdapter } from '@melandlabs/ai/memory';
|
|
4
4
|
import { Peer } from '@melandlabs/contracts/peer';
|
|
5
|
+
import { S as SearchTier, U as UnifiedMemorySearchWarning, a as SearchEvidence, b as SearchInput, c as SearchOutput, d as UnifiedMemorySearchInput, e as UnifiedMemorySearchOutput, f as UnifiedMemorySearchResult } from './evidence-selector-C_ZUQsio.js';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* Trusted, in-process context for one `search()` call. Hosts must derive these
|
|
@@ -128,6 +129,6 @@ interface UnifiedSearch {
|
|
|
128
129
|
*/
|
|
129
130
|
consolidate(input: ApplyConsolidateInput): Promise<ApplyConsolidateOutput>;
|
|
130
131
|
}
|
|
131
|
-
declare function createUnifiedSearch(
|
|
132
|
+
declare function createUnifiedSearch(inputDeps?: UnifiedSearchDeps): UnifiedSearch;
|
|
132
133
|
|
|
133
134
|
export { type ApplyConsolidateInput as A, type SearchRuntimeContext as S, type UnifiedSearch as U, type ApplyConsolidateOutput as a, applyReflectedPlan as b, createUnifiedSearch as c };
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@melandlabs/memory-store",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.4.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
"import": "./dist/server/cli-shared.js"
|
|
34
34
|
},
|
|
35
35
|
"./unified-search": "./dist/search/unified-search.js",
|
|
36
|
+
"./evidence-selector": "./dist/search/evidence-selector.js",
|
|
36
37
|
"./memory-graph-write-policy": "./dist/policies/memory-graph-write-policy.js",
|
|
37
38
|
"./memory-graph-correction-policy": "./dist/policies/memory-graph-correction-policy.js"
|
|
38
39
|
},
|
|
@@ -64,19 +65,19 @@
|
|
|
64
65
|
"@modelcontextprotocol/sdk": "^1.25.3",
|
|
65
66
|
"hono": "^4.6.14",
|
|
66
67
|
"zod": "^4.3.6",
|
|
67
|
-
"@melandlabs/ai": "1.0
|
|
68
|
-
"@melandlabs/contracts": "0.8.
|
|
69
|
-
"@melandlabs/
|
|
70
|
-
"@melandlabs/okf": "0.3.
|
|
71
|
-
"@melandlabs/
|
|
72
|
-
"@melandlabs/
|
|
73
|
-
"@melandlabs/
|
|
74
|
-
"@melandlabs/
|
|
75
|
-
"@melandlabs/
|
|
68
|
+
"@melandlabs/ai": "1.1.0",
|
|
69
|
+
"@melandlabs/contracts": "0.8.1",
|
|
70
|
+
"@melandlabs/env-config": "0.4.1",
|
|
71
|
+
"@melandlabs/okf": "0.3.5",
|
|
72
|
+
"@melandlabs/memory-consolidation": "0.5.4",
|
|
73
|
+
"@melandlabs/rag": "0.3.4",
|
|
74
|
+
"@melandlabs/shared": "0.4.3",
|
|
75
|
+
"@melandlabs/sqlite": "0.5.5",
|
|
76
|
+
"@melandlabs/vsa": "0.3.1"
|
|
76
77
|
},
|
|
77
78
|
"peerDependencies": {
|
|
78
|
-
"@melandlabs/ai-rag": "0.2.
|
|
79
|
-
"@melandlabs/indexeddb": "0.5.
|
|
79
|
+
"@melandlabs/ai-rag": "0.2.13",
|
|
80
|
+
"@melandlabs/indexeddb": "0.5.11"
|
|
80
81
|
},
|
|
81
82
|
"peerDependenciesMeta": {
|
|
82
83
|
"@melandlabs/ai-rag": {
|
|
@@ -89,8 +90,9 @@
|
|
|
89
90
|
"devDependencies": {
|
|
90
91
|
"@types/node": "^22.13.10",
|
|
91
92
|
"typescript": "^5.6.3",
|
|
92
|
-
"@melandlabs/
|
|
93
|
-
"@melandlabs/
|
|
93
|
+
"@melandlabs/ai-rag": "0.2.13",
|
|
94
|
+
"@melandlabs/config": "0.3.1",
|
|
95
|
+
"@melandlabs/workspace": "0.9.0"
|
|
94
96
|
},
|
|
95
97
|
"scripts": {
|
|
96
98
|
"build": "tsup",
|