@melandlabs/memory-store 1.1.0 → 1.1.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.
@@ -1,5 +1,6 @@
1
- import { MemoryRecord } from '@melandlabs/ai/memory';
1
+ import { FactType } from '@melandlabs/contracts';
2
2
  export { StoreVsaFactInput, StoreVsaFactOutput, VsaFact, VsaFactStorage, VsaFactSummary, VsaForgetInput, VsaForgetOutput, VsaListInput, VsaRecallInput, VsaRecallOutput, VsaRecallScore, VsaVocabularyEntry, vsaAssertSameDim, vsaNormalizeVector } from '@melandlabs/contracts';
3
+ import { MemoryRecord } from '@melandlabs/ai/memory';
3
4
 
4
5
  /**
5
6
  * Memory-store contracts — types and constants that were originally re-exported
@@ -61,6 +62,15 @@ interface RawMessage {
61
62
  * whole episodes atomically.
62
63
  */
63
64
  sourceEpisodeId?: string;
65
+ /**
66
+ * Optional fact-type classification. Mirrors `factType` on the
67
+ * IndexedDB {@link RawMessage} and on `MemoryRecord` in
68
+ * `@melandlabs/ai`. Persisted to the SQLite `fact_type` column by
69
+ * the storage adapter so retrieval-side filters (`RawMessageQuery.factTypes`,
70
+ * `search --kind`) can narrow to a single class without re-classifying
71
+ * at query time.
72
+ */
73
+ factType?: FactType;
64
74
  }
65
75
  /** Convert a RawMessage to a MemoryRecord for embedding. Local copy of the
66
76
  * helper that previously lived in `@melandlabs/indexeddb/embedding` and pulled
@@ -1,7 +1,7 @@
1
1
  import { MemoryGraphWriteEnvironment, MemoryGraphWritePolicyDecision } from './memory-graph-write-policy.js';
2
2
  import '../contracts.js';
3
- import '@melandlabs/ai/memory';
4
3
  import '@melandlabs/contracts';
4
+ import '@melandlabs/ai/memory';
5
5
 
6
6
  /**
7
7
  * Memory-graph correction policy.
@@ -1,6 +1,6 @@
1
1
  export { CHAT_MEMORY_EVIDENCE_ID_PREFIX } from '../contracts.js';
2
- import '@melandlabs/ai/memory';
3
2
  import '@melandlabs/contracts';
3
+ import '@melandlabs/ai/memory';
4
4
 
5
5
  /**
6
6
  * Memory-graph write policy.
@@ -1,6 +1,6 @@
1
1
  import { RawMessage } from '../contracts.js';
2
- import '@melandlabs/ai/memory';
3
2
  import '@melandlabs/contracts';
3
+ import '@melandlabs/ai/memory';
4
4
 
5
5
  /**
6
6
  * Chroma-backed raw-message + insight vector index.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@melandlabs/memory-store",
3
- "version": "1.1.0",
3
+ "version": "1.1.1",
4
4
  "type": "module",
5
5
  "files": [
6
6
  "dist",
@@ -61,14 +61,14 @@
61
61
  "hono": "^4.6.14",
62
62
  "zod": "^4.3.6",
63
63
  "@melandlabs/ai": "0.7.0",
64
- "@melandlabs/env-config": "0.4.0",
65
64
  "@melandlabs/contracts": "0.6.0",
66
- "@melandlabs/okf": "0.2.0",
67
65
  "@melandlabs/memory-consolidation": "0.5.0",
68
- "@melandlabs/rag": "0.3.0",
66
+ "@melandlabs/env-config": "0.4.0",
67
+ "@melandlabs/okf": "0.2.0",
69
68
  "@melandlabs/sqlite": "0.5.1",
70
- "@melandlabs/shared": "0.4.0",
71
- "@melandlabs/vsa": "0.3.0"
69
+ "@melandlabs/rag": "0.3.0",
70
+ "@melandlabs/vsa": "0.3.0",
71
+ "@melandlabs/shared": "0.4.0"
72
72
  },
73
73
  "peerDependencies": {
74
74
  "@melandlabs/ai-rag": "0.2.9",