@traqr/memory 0.2.1 → 0.2.2

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.
@@ -63,7 +63,7 @@ app.post('/', async (c) => {
63
63
  sourceType: 'bootstrap',
64
64
  sourceRef: section.sourceRef,
65
65
  sourceProject,
66
- confidence: section.confidence ?? 0.8,
66
+ confidence: section.confidence ?? 0.7,
67
67
  });
68
68
  if (result.deduplicated) {
69
69
  deduplicated++;
@@ -110,7 +110,7 @@ app.post('/', async (c) => {
110
110
  sourceType: 'manual',
111
111
  sourceRef: link || undefined,
112
112
  sourceProject: getSourceProject(),
113
- confidence: 0.8,
113
+ confidence: 0.6,
114
114
  relatedTo: [],
115
115
  isContradiction: false,
116
116
  };
@@ -39,7 +39,7 @@ app.post('/', async (c) => {
39
39
  sourceType: 'session',
40
40
  sourceRef,
41
41
  sourceProject,
42
- confidence: learning.confidence ?? 0.8,
42
+ confidence: learning.confidence ?? 0.6,
43
43
  sourceTool: 'capture-session',
44
44
  });
45
45
  if (result.deduplicated) {
@@ -63,7 +63,7 @@ app.post('/', async (c) => {
63
63
  sourceType: 'session',
64
64
  sourceRef: capAny.sourceRef || `pulse:${slot}`,
65
65
  sourceProject,
66
- confidence: 0.8,
66
+ confidence: 0.6,
67
67
  relatedTo: [],
68
68
  isContradiction: false,
69
69
  domain: derived.domain,
@@ -31,6 +31,7 @@ export interface MemoryInput {
31
31
  validAt?: Date;
32
32
  forgetAfter?: Date;
33
33
  sourceTool?: string;
34
+ sourceReliability?: 'direct-user' | 'deliberate-store' | 'granola-single' | 'granola-multi' | 'inferred' | 'auto-derived';
34
35
  precomputedEmbedding?: string;
35
36
  }
36
37
  export interface Memory {
@@ -1 +1 @@
1
- {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/vectordb/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAkTH,8BAA8B;AAC9B,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,YAAY,EAAE,GAAG;IACjB,kBAAkB,EAAE,GAAG;IACvB,WAAW,EAAE,GAAG;IAChB,mBAAmB,EAAE,IAAI;IACzB,cAAc,EAAE,GAAG;IACnB,MAAM,EAAE,GAAG;IACX,EAAE,EAAE,GAAG;CACC,CAAA;AAEV,yEAAyE;AACzE,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,qBAAqB,EAAE,GAAG,EAAG,kCAAkC;IAC/D,YAAY,EAAE,GAAG,EAAY,wCAAwC;IACrE,cAAc,EAAE,GAAG,EAAU,uBAAuB;IACpD,eAAe,EAAE,IAAI,EAAQ,6BAA6B;IAC1D,iBAAiB,EAAE,GAAG;IACtB,KAAK,EAAE,GAAG;IACV,kBAAkB,EAAE,EAAE,EAAO,4CAA4C;CACjE,CAAA"}
1
+ {"version":3,"file":"types.js","sourceRoot":"","sources":["../../src/vectordb/types.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAqTH,8BAA8B;AAC9B,MAAM,CAAC,MAAM,oBAAoB,GAAG;IAClC,YAAY,EAAE,GAAG;IACjB,kBAAkB,EAAE,GAAG;IACvB,WAAW,EAAE,GAAG;IAChB,mBAAmB,EAAE,IAAI;IACzB,cAAc,EAAE,GAAG;IACnB,MAAM,EAAE,GAAG;IACX,EAAE,EAAE,GAAG;CACC,CAAA;AAEV,yEAAyE;AACzE,MAAM,CAAC,MAAM,YAAY,GAAG;IAC1B,qBAAqB,EAAE,GAAG,EAAG,kCAAkC;IAC/D,YAAY,EAAE,GAAG,EAAY,wCAAwC;IACrE,cAAc,EAAE,GAAG,EAAU,uBAAuB;IACpD,eAAe,EAAE,IAAI,EAAQ,6BAA6B;IAC1D,iBAAiB,EAAE,GAAG;IACtB,KAAK,EAAE,GAAG;IACV,kBAAkB,EAAE,EAAE,EAAO,4CAA4C;CACjE,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@traqr/memory",
3
- "version": "0.2.1",
3
+ "version": "0.2.2",
4
4
  "description": "Persistent memory for AI agents. Multi-strategy retrieval (semantic + BM25 + RRF), 3-zone cosine triage, type-aware lifecycle, entity canonicalization. Postgres + pgvector.",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",