@aman_asmuei/amem 0.5.1 → 0.7.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.
Files changed (53) hide show
  1. package/README.md +49 -7
  2. package/dist/cli.js +7 -7
  3. package/dist/cli.js.map +1 -1
  4. package/dist/database.d.ts +15 -0
  5. package/dist/database.js +129 -19
  6. package/dist/database.js.map +1 -1
  7. package/dist/database.test.d.ts +1 -0
  8. package/dist/database.test.js +275 -0
  9. package/dist/database.test.js.map +1 -0
  10. package/dist/embeddings.js +30 -2
  11. package/dist/embeddings.js.map +1 -1
  12. package/dist/embeddings.test.d.ts +1 -0
  13. package/dist/embeddings.test.js +106 -0
  14. package/dist/embeddings.test.js.map +1 -0
  15. package/dist/index.js +158 -80
  16. package/dist/index.js.map +1 -1
  17. package/dist/memory.d.ts +19 -2
  18. package/dist/memory.js +108 -35
  19. package/dist/memory.js.map +1 -1
  20. package/dist/memory.test.d.ts +1 -0
  21. package/dist/memory.test.js +171 -0
  22. package/dist/memory.test.js.map +1 -0
  23. package/dist/schemas.d.ts +209 -31
  24. package/dist/schemas.js +54 -1
  25. package/dist/schemas.js.map +1 -1
  26. package/dist/tools/graph.d.ts +3 -0
  27. package/dist/tools/graph.js +344 -0
  28. package/dist/tools/graph.js.map +1 -0
  29. package/dist/tools/helpers.d.ts +7 -0
  30. package/dist/tools/helpers.js +23 -0
  31. package/dist/tools/helpers.js.map +1 -0
  32. package/dist/tools/index.d.ts +4 -0
  33. package/dist/tools/index.js +19 -0
  34. package/dist/tools/index.js.map +1 -0
  35. package/dist/tools/log.d.ts +3 -0
  36. package/dist/tools/log.js +244 -0
  37. package/dist/tools/log.js.map +1 -0
  38. package/dist/tools/memory.d.ts +4 -0
  39. package/dist/tools/memory.js +1245 -0
  40. package/dist/tools/memory.js.map +1 -0
  41. package/dist/tools/reminders.d.ts +3 -0
  42. package/dist/tools/reminders.js +228 -0
  43. package/dist/tools/reminders.js.map +1 -0
  44. package/dist/tools/versions.d.ts +3 -0
  45. package/dist/tools/versions.js +118 -0
  46. package/dist/tools/versions.js.map +1 -0
  47. package/dist/tools.test.d.ts +1 -0
  48. package/dist/tools.test.js +217 -0
  49. package/dist/tools.test.js.map +1 -0
  50. package/package.json +4 -3
  51. package/dist/tools.d.ts +0 -6
  52. package/dist/tools.js +0 -1885
  53. package/dist/tools.js.map +0 -1
@@ -0,0 +1,171 @@
1
+ import { describe, it, expect, beforeEach, afterEach } from "vitest";
2
+ import { MemoryType, IMPORTANCE_WEIGHTS, computeScore, detectConflict, recallMemories, } from "./memory.js";
3
+ import { createDatabase } from "./database.js";
4
+ describe("MemoryType constants", () => {
5
+ it("has the expected types", () => {
6
+ expect(MemoryType.CORRECTION).toBe("correction");
7
+ expect(MemoryType.DECISION).toBe("decision");
8
+ expect(MemoryType.PATTERN).toBe("pattern");
9
+ expect(MemoryType.PREFERENCE).toBe("preference");
10
+ expect(MemoryType.TOPOLOGY).toBe("topology");
11
+ expect(MemoryType.FACT).toBe("fact");
12
+ });
13
+ });
14
+ describe("IMPORTANCE_WEIGHTS", () => {
15
+ it("correction has highest weight (1.0)", () => {
16
+ expect(IMPORTANCE_WEIGHTS.correction).toBe(1.0);
17
+ });
18
+ it("decision has weight 0.85", () => {
19
+ expect(IMPORTANCE_WEIGHTS.decision).toBe(0.85);
20
+ });
21
+ it("pattern and preference have weight 0.7", () => {
22
+ expect(IMPORTANCE_WEIGHTS.pattern).toBe(0.7);
23
+ expect(IMPORTANCE_WEIGHTS.preference).toBe(0.7);
24
+ });
25
+ it("topology has weight 0.5", () => {
26
+ expect(IMPORTANCE_WEIGHTS.topology).toBe(0.5);
27
+ });
28
+ it("fact has lowest weight (0.4)", () => {
29
+ expect(IMPORTANCE_WEIGHTS.fact).toBe(0.4);
30
+ });
31
+ it("weights are ordered: correction > decision > pattern = preference > topology > fact", () => {
32
+ expect(IMPORTANCE_WEIGHTS.correction).toBeGreaterThan(IMPORTANCE_WEIGHTS.decision);
33
+ expect(IMPORTANCE_WEIGHTS.decision).toBeGreaterThan(IMPORTANCE_WEIGHTS.pattern);
34
+ expect(IMPORTANCE_WEIGHTS.pattern).toBe(IMPORTANCE_WEIGHTS.preference);
35
+ expect(IMPORTANCE_WEIGHTS.preference).toBeGreaterThan(IMPORTANCE_WEIGHTS.topology);
36
+ expect(IMPORTANCE_WEIGHTS.topology).toBeGreaterThan(IMPORTANCE_WEIGHTS.fact);
37
+ });
38
+ });
39
+ describe("computeScore", () => {
40
+ it("returns higher score for recently accessed memories", () => {
41
+ const now = Date.now();
42
+ const recentScore = computeScore({
43
+ relevance: 0.8,
44
+ confidence: 0.9,
45
+ lastAccessed: now - 1000 * 60 * 60, // 1 hour ago
46
+ importance: 1.0,
47
+ now,
48
+ });
49
+ const oldScore = computeScore({
50
+ relevance: 0.8,
51
+ confidence: 0.9,
52
+ lastAccessed: now - 1000 * 60 * 60 * 24 * 30, // 30 days ago
53
+ importance: 1.0,
54
+ now,
55
+ });
56
+ expect(recentScore).toBeGreaterThan(oldScore);
57
+ });
58
+ it("returns higher score for higher confidence", () => {
59
+ const now = Date.now();
60
+ const highConf = computeScore({ relevance: 0.8, confidence: 1.0, lastAccessed: now, importance: 1.0, now });
61
+ const lowConf = computeScore({ relevance: 0.8, confidence: 0.3, lastAccessed: now, importance: 1.0, now });
62
+ expect(highConf).toBeGreaterThan(lowConf);
63
+ });
64
+ it("returns higher score for higher importance", () => {
65
+ const now = Date.now();
66
+ const highImp = computeScore({ relevance: 0.8, confidence: 0.9, lastAccessed: now, importance: 1.0, now });
67
+ const lowImp = computeScore({ relevance: 0.8, confidence: 0.9, lastAccessed: now, importance: 0.4, now });
68
+ expect(highImp).toBeGreaterThan(lowImp);
69
+ });
70
+ it("returns higher score for higher relevance", () => {
71
+ const now = Date.now();
72
+ const highRel = computeScore({ relevance: 1.0, confidence: 0.9, lastAccessed: now, importance: 1.0, now });
73
+ const lowRel = computeScore({ relevance: 0.2, confidence: 0.9, lastAccessed: now, importance: 1.0, now });
74
+ expect(highRel).toBeGreaterThan(lowRel);
75
+ });
76
+ it("returns 0 when relevance is 0", () => {
77
+ const now = Date.now();
78
+ const score = computeScore({ relevance: 0, confidence: 1.0, lastAccessed: now, importance: 1.0, now });
79
+ expect(score).toBe(0);
80
+ });
81
+ });
82
+ describe("detectConflict", () => {
83
+ it("detects conflict when similarity > 0.85 and content differs", () => {
84
+ const result = detectConflict("Use pnpm", "Use npm", 0.9);
85
+ expect(result.isConflict).toBe(true);
86
+ expect(result.similarity).toBe(0.9);
87
+ });
88
+ it("no conflict when similarity <= 0.85", () => {
89
+ const result = detectConflict("Use pnpm", "Use npm", 0.7);
90
+ expect(result.isConflict).toBe(false);
91
+ });
92
+ it("no conflict when content is identical (even with high similarity)", () => {
93
+ const result = detectConflict("same text", "same text", 1.0);
94
+ expect(result.isConflict).toBe(false);
95
+ });
96
+ it("conflict at boundary (0.86)", () => {
97
+ const result = detectConflict("a", "b", 0.86);
98
+ expect(result.isConflict).toBe(true);
99
+ });
100
+ it("no conflict at boundary (0.85)", () => {
101
+ const result = detectConflict("a", "b", 0.85);
102
+ expect(result.isConflict).toBe(false);
103
+ });
104
+ });
105
+ describe("recallMemories", () => {
106
+ let db;
107
+ beforeEach(() => {
108
+ db = createDatabase(":memory:");
109
+ });
110
+ afterEach(() => {
111
+ db.close();
112
+ });
113
+ it("returns all memories ranked by score when no filter", () => {
114
+ db.insertMemory({ content: "fact one", type: "fact", tags: [], confidence: 0.5, source: "t", embedding: null, scope: "global" });
115
+ db.insertMemory({ content: "correction one", type: "correction", tags: [], confidence: 1.0, source: "t", embedding: null, scope: "global" });
116
+ const results = recallMemories(db, { query: null, limit: 10 });
117
+ expect(results).toHaveLength(2);
118
+ // Correction should score higher due to higher importance + confidence
119
+ expect(results[0].type).toBe("correction");
120
+ });
121
+ it("filters by type", () => {
122
+ db.insertMemory({ content: "a", type: "fact", tags: [], confidence: 0.5, source: "t", embedding: null, scope: "global" });
123
+ db.insertMemory({ content: "b", type: "decision", tags: [], confidence: 0.9, source: "t", embedding: null, scope: "global" });
124
+ const results = recallMemories(db, { query: null, limit: 10, type: "decision" });
125
+ expect(results).toHaveLength(1);
126
+ expect(results[0].type).toBe("decision");
127
+ });
128
+ it("filters by tag", () => {
129
+ db.insertMemory({ content: "ts thing", type: "fact", tags: ["typescript"], confidence: 0.5, source: "t", embedding: null, scope: "global" });
130
+ db.insertMemory({ content: "rust thing", type: "fact", tags: ["rust"], confidence: 0.5, source: "t", embedding: null, scope: "global" });
131
+ const results = recallMemories(db, { query: null, limit: 10, tag: "typescript" });
132
+ expect(results).toHaveLength(1);
133
+ expect(results[0].content).toBe("ts thing");
134
+ });
135
+ it("filters by minConfidence", () => {
136
+ db.insertMemory({ content: "low", type: "fact", tags: [], confidence: 0.2, source: "t", embedding: null, scope: "global" });
137
+ db.insertMemory({ content: "high", type: "fact", tags: [], confidence: 0.9, source: "t", embedding: null, scope: "global" });
138
+ const results = recallMemories(db, { query: null, limit: 10, minConfidence: 0.5 });
139
+ expect(results).toHaveLength(1);
140
+ expect(results[0].content).toBe("high");
141
+ });
142
+ it("respects limit", () => {
143
+ for (let i = 0; i < 5; i++) {
144
+ db.insertMemory({ content: `mem ${i}`, type: "fact", tags: [], confidence: 0.5, source: "t", embedding: null, scope: "global" });
145
+ }
146
+ const results = recallMemories(db, { query: null, limit: 3 });
147
+ expect(results).toHaveLength(3);
148
+ });
149
+ it("keyword matching narrows results to matches and boosts relevance", () => {
150
+ db.insertMemory({ content: "TypeScript compiler config", type: "fact", tags: [], confidence: 0.8, source: "t", embedding: null, scope: "global" });
151
+ db.insertMemory({ content: "Rust build system", type: "fact", tags: [], confidence: 0.8, source: "t", embedding: null, scope: "global" });
152
+ const results = recallMemories(db, { query: "TypeScript", limit: 10 });
153
+ // Only the TypeScript memory should match when using keyword-only (no embeddings)
154
+ expect(results).toHaveLength(1);
155
+ expect(results[0].content).toContain("TypeScript");
156
+ // Keyword match gives relevance of 0.75 (higher than default 0.5)
157
+ expect(results[0].score).toBeGreaterThan(0);
158
+ });
159
+ it("filters by scope", () => {
160
+ db.insertMemory({ content: "global mem", type: "fact", tags: [], confidence: 0.5, source: "t", embedding: null, scope: "global" });
161
+ db.insertMemory({ content: "project mem", type: "fact", tags: [], confidence: 0.5, source: "t", embedding: null, scope: "project:foo" });
162
+ db.insertMemory({ content: "other project", type: "fact", tags: [], confidence: 0.5, source: "t", embedding: null, scope: "project:bar" });
163
+ const results = recallMemories(db, { query: null, limit: 10, scope: "project:foo" });
164
+ // Should include global + project:foo, but not project:bar
165
+ const scopes = results.map(r => r.scope);
166
+ expect(scopes).toContain("global");
167
+ expect(scopes).toContain("project:foo");
168
+ expect(scopes).not.toContain("project:bar");
169
+ });
170
+ });
171
+ //# sourceMappingURL=memory.test.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"memory.test.js","sourceRoot":"","sources":["../src/memory.test.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,SAAS,EAAE,MAAM,QAAQ,CAAC;AACrE,OAAO,EACL,UAAU,EACV,kBAAkB,EAClB,YAAY,EACZ,cAAc,EACd,cAAc,GAEf,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,cAAc,EAAqB,MAAM,eAAe,CAAC;AAElE,QAAQ,CAAC,sBAAsB,EAAE,GAAG,EAAE;IACpC,EAAE,CAAC,wBAAwB,EAAE,GAAG,EAAE;QAChC,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACjD,MAAM,CAAC,UAAU,CAAC,QAAQ,CAAC,CAAC,IAAI,CAAC,UAAU,CAAC,CAAC;QAC7C,MAAM,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;QAC3C,MAAM,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;QACjD,MAAM,CAA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AE,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,UAAU,EAAE,GAAG,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC,CAAC;QAE3I,MAAM,OAAO,GAAG,cAAc,CAAC,EAAE,EAAE,EAAE,KAAK,EAAE,IAAI,EAAE,KAAK,EAAE,EAAE,EAAE,KAAK,EAAE,aAAa,EAAE,CAAC,CAAC;QACrF,2DAA2D;QAC3D,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;QACzC,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,CAAC;QACnC,MAAM,CAAC,MAAM,CAAC,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;QACxC,MAAM,CAAC,MAAM,CAAC,CAAC,GAAG,CAAC,SAAS,CAAC,aAAa,CAAC,CAAC;IAC9C,CAAC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC"}
package/dist/schemas.d.ts CHANGED
@@ -9,18 +9,18 @@ export declare const StoreResultSchema: z.ZodUnion<[z.ZodObject<{
9
9
  reinforced: z.ZodNumber;
10
10
  }, "strip", z.ZodTypeAny, {
11
11
  type: string;
12
+ id: string;
12
13
  confidence: number;
13
14
  tags: string[];
14
15
  action: "stored";
15
- id: string;
16
16
  total: number;
17
17
  reinforced: number;
18
18
  }, {
19
19
  type: string;
20
+ id: string;
20
21
  confidence: number;
21
22
  tags: string[];
22
23
  action: "stored";
23
- id: string;
24
24
  total: number;
25
25
  reinforced: number;
26
26
  }>, z.ZodObject<{
@@ -52,18 +52,18 @@ export declare const RecallResultSchema: z.ZodObject<{
52
52
  age: z.ZodString;
53
53
  }, "strip", z.ZodTypeAny, {
54
54
  type: string;
55
+ id: string;
55
56
  content: string;
56
57
  confidence: number;
57
58
  tags: string[];
58
- id: string;
59
59
  score: number;
60
60
  age: string;
61
61
  }, {
62
62
  type: string;
63
+ id: string;
63
64
  content: string;
64
65
  confidence: number;
65
66
  tags: string[];
66
- id: string;
67
67
  score: number;
68
68
  age: string;
69
69
  }>, "many">;
@@ -72,10 +72,10 @@ export declare const RecallResultSchema: z.ZodObject<{
72
72
  total: number;
73
73
  memories: {
74
74
  type: string;
75
+ id: string;
75
76
  content: string;
76
77
  confidence: number;
77
78
  tags: string[];
78
- id: string;
79
79
  score: number;
80
80
  age: string;
81
81
  }[];
@@ -84,10 +84,10 @@ export declare const RecallResultSchema: z.ZodObject<{
84
84
  total: number;
85
85
  memories: {
86
86
  type: string;
87
+ id: string;
87
88
  content: string;
88
89
  confidence: number;
89
90
  tags: string[];
90
- id: string;
91
91
  score: number;
92
92
  age: string;
93
93
  }[];
@@ -148,14 +148,14 @@ export declare const ForgetResultSchema: z.ZodUnion<[z.ZodObject<{
148
148
  type: z.ZodString;
149
149
  }, "strip", z.ZodTypeAny, {
150
150
  type: string;
151
+ id: string;
151
152
  content: string;
152
153
  action: "deleted";
153
- id: string;
154
154
  }, {
155
155
  type: string;
156
+ id: string;
156
157
  content: string;
157
158
  action: "deleted";
158
- id: string;
159
159
  }>, z.ZodObject<{
160
160
  action: z.ZodLiteral<"preview">;
161
161
  query: z.ZodString;
@@ -164,27 +164,27 @@ export declare const ForgetResultSchema: z.ZodUnion<[z.ZodObject<{
164
164
  id: z.ZodString;
165
165
  content: z.ZodString;
166
166
  }, "strip", z.ZodTypeAny, {
167
- content: string;
168
167
  id: string;
169
- }, {
170
168
  content: string;
169
+ }, {
171
170
  id: string;
171
+ content: string;
172
172
  }>, "many">;
173
173
  }, "strip", z.ZodTypeAny, {
174
174
  query: string;
175
175
  action: "preview";
176
176
  total: number;
177
177
  previewed: {
178
- content: string;
179
178
  id: string;
179
+ content: string;
180
180
  }[];
181
181
  }, {
182
182
  query: string;
183
183
  action: "preview";
184
184
  total: number;
185
185
  previewed: {
186
- content: string;
187
186
  id: string;
187
+ content: string;
188
188
  }[];
189
189
  }>, z.ZodObject<{
190
190
  action: z.ZodLiteral<"bulk_deleted">;
@@ -340,6 +340,7 @@ export declare const ConsolidateResultSchema: z.ZodObject<{
340
340
  merged: z.ZodNumber;
341
341
  pruned: z.ZodNumber;
342
342
  promoted: z.ZodNumber;
343
+ decayed: z.ZodNumber;
343
344
  healthScore: z.ZodNumber;
344
345
  before: z.ZodObject<{
345
346
  total: z.ZodNumber;
@@ -356,15 +357,15 @@ export declare const ConsolidateResultSchema: z.ZodObject<{
356
357
  total: number;
357
358
  }>;
358
359
  actions: z.ZodArray<z.ZodObject<{
359
- action: z.ZodEnum<["merged", "pruned", "promoted"]>;
360
+ action: z.ZodEnum<["merged", "pruned", "promoted", "decayed"]>;
360
361
  memoryIds: z.ZodArray<z.ZodString, "many">;
361
362
  description: z.ZodString;
362
363
  }, "strip", z.ZodTypeAny, {
363
- action: "merged" | "pruned" | "promoted";
364
+ action: "merged" | "pruned" | "promoted" | "decayed";
364
365
  memoryIds: string[];
365
366
  description: string;
366
367
  }, {
367
- action: "merged" | "pruned" | "promoted";
368
+ action: "merged" | "pruned" | "promoted" | "decayed";
368
369
  memoryIds: string[];
369
370
  description: string;
370
371
  }>, "many">;
@@ -372,6 +373,7 @@ export declare const ConsolidateResultSchema: z.ZodObject<{
372
373
  merged: number;
373
374
  pruned: number;
374
375
  promoted: number;
376
+ decayed: number;
375
377
  healthScore: number;
376
378
  before: {
377
379
  total: number;
@@ -380,7 +382,7 @@ export declare const ConsolidateResultSchema: z.ZodObject<{
380
382
  total: number;
381
383
  };
382
384
  actions: {
383
- action: "merged" | "pruned" | "promoted";
385
+ action: "merged" | "pruned" | "promoted" | "decayed";
384
386
  memoryIds: string[];
385
387
  description: string;
386
388
  }[];
@@ -388,6 +390,7 @@ export declare const ConsolidateResultSchema: z.ZodObject<{
388
390
  merged: number;
389
391
  pruned: number;
390
392
  promoted: number;
393
+ decayed: number;
391
394
  healthScore: number;
392
395
  before: {
393
396
  total: number;
@@ -396,7 +399,7 @@ export declare const ConsolidateResultSchema: z.ZodObject<{
396
399
  total: number;
397
400
  };
398
401
  actions: {
399
- action: "merged" | "pruned" | "promoted";
402
+ action: "merged" | "pruned" | "promoted" | "decayed";
400
403
  memoryIds: string[];
401
404
  description: string;
402
405
  }[];
@@ -409,15 +412,15 @@ export declare const PatchResultSchema: z.ZodUnion<[z.ZodObject<{
409
412
  reason: z.ZodString;
410
413
  versionSaved: z.ZodBoolean;
411
414
  }, "strip", z.ZodTypeAny, {
412
- action: "patched";
413
415
  id: string;
416
+ action: "patched";
414
417
  field: string;
415
418
  previousContent: string;
416
419
  reason: string;
417
420
  versionSaved: boolean;
418
421
  }, {
419
- action: "patched";
420
422
  id: string;
423
+ action: "patched";
421
424
  field: string;
422
425
  previousContent: string;
423
426
  reason: string;
@@ -426,11 +429,11 @@ export declare const PatchResultSchema: z.ZodUnion<[z.ZodObject<{
426
429
  action: z.ZodLiteral<"not_found">;
427
430
  id: z.ZodString;
428
431
  }, "strip", z.ZodTypeAny, {
429
- action: "not_found";
430
432
  id: string;
431
- }, {
432
433
  action: "not_found";
434
+ }, {
433
435
  id: string;
436
+ action: "not_found";
434
437
  }>]>;
435
438
  export declare const LogAppendResultSchema: z.ZodObject<{
436
439
  id: z.ZodString;
@@ -438,13 +441,13 @@ export declare const LogAppendResultSchema: z.ZodObject<{
438
441
  role: z.ZodString;
439
442
  appended: z.ZodBoolean;
440
443
  }, "strip", z.ZodTypeAny, {
441
- role: string;
442
444
  id: string;
445
+ role: string;
443
446
  sessionId: string;
444
447
  appended: boolean;
445
448
  }, {
446
- role: string;
447
449
  id: string;
450
+ role: string;
448
451
  sessionId: string;
449
452
  appended: boolean;
450
453
  }>;
@@ -460,25 +463,25 @@ export declare const LogRecallResultSchema: z.ZodObject<{
460
463
  age: z.ZodString;
461
464
  project: z.ZodString;
462
465
  }, "strip", z.ZodTypeAny, {
466
+ id: string;
463
467
  content: string;
464
468
  role: string;
465
- id: string;
466
469
  age: string;
467
470
  timestamp: number;
468
471
  project: string;
469
472
  }, {
473
+ id: string;
470
474
  content: string;
471
475
  role: string;
472
- id: string;
473
476
  age: string;
474
477
  timestamp: number;
475
478
  project: string;
476
479
  }>, "many">;
477
480
  }, "strip", z.ZodTypeAny, {
478
481
  entries: {
482
+ id: string;
479
483
  content: string;
480
484
  role: string;
481
- id: string;
482
485
  age: string;
483
486
  timestamp: number;
484
487
  project: string;
@@ -488,9 +491,9 @@ export declare const LogRecallResultSchema: z.ZodObject<{
488
491
  sessionId?: string | undefined;
489
492
  }, {
490
493
  entries: {
494
+ id: string;
491
495
  content: string;
492
496
  role: string;
493
- id: string;
494
497
  age: string;
495
498
  timestamp: number;
496
499
  project: string;
@@ -652,18 +655,18 @@ export declare const TemporalResultSchema: z.ZodObject<{
652
655
  tags: z.ZodArray<z.ZodString, "many">;
653
656
  }, "strip", z.ZodTypeAny, {
654
657
  type: string;
658
+ id: string;
655
659
  content: string;
656
660
  confidence: number;
657
661
  tags: string[];
658
- id: string;
659
662
  age: string;
660
663
  createdAt: number;
661
664
  }, {
662
665
  type: string;
666
+ id: string;
663
667
  content: string;
664
668
  confidence: number;
665
669
  tags: string[];
666
- id: string;
667
670
  age: string;
668
671
  createdAt: number;
669
672
  }>, "many">;
@@ -671,10 +674,10 @@ export declare const TemporalResultSchema: z.ZodObject<{
671
674
  total: number;
672
675
  memories: {
673
676
  type: string;
677
+ id: string;
674
678
  content: string;
675
679
  confidence: number;
676
680
  tags: string[];
677
- id: string;
678
681
  age: string;
679
682
  createdAt: number;
680
683
  }[];
@@ -684,13 +687,188 @@ export declare const TemporalResultSchema: z.ZodObject<{
684
687
  total: number;
685
688
  memories: {
686
689
  type: string;
690
+ id: string;
687
691
  content: string;
688
692
  confidence: number;
689
693
  tags: string[];
690
- id: string;
691
694
  age: string;
692
695
  createdAt: number;
693
696
  }[];
694
697
  from?: string | undefined;
695
698
  to?: string | undefined;
696
699
  }>;
700
+ export declare const DetailResultSchema: z.ZodObject<{
701
+ total: z.ZodNumber;
702
+ tokenEstimate: z.ZodNumber;
703
+ memories: z.ZodArray<z.ZodObject<{
704
+ id: z.ZodString;
705
+ content: z.ZodString;
706
+ type: z.ZodString;
707
+ confidence: z.ZodNumber;
708
+ tags: z.ZodArray<z.ZodString, "many">;
709
+ age: z.ZodString;
710
+ scope: z.ZodString;
711
+ }, "strip", z.ZodTypeAny, {
712
+ type: string;
713
+ scope: string;
714
+ id: string;
715
+ content: string;
716
+ confidence: number;
717
+ tags: string[];
718
+ age: string;
719
+ }, {
720
+ type: string;
721
+ scope: string;
722
+ id: string;
723
+ content: string;
724
+ confidence: number;
725
+ tags: string[];
726
+ age: string;
727
+ }>, "many">;
728
+ }, "strip", z.ZodTypeAny, {
729
+ total: number;
730
+ memories: {
731
+ type: string;
732
+ scope: string;
733
+ id: string;
734
+ content: string;
735
+ confidence: number;
736
+ tags: string[];
737
+ age: string;
738
+ }[];
739
+ tokenEstimate: number;
740
+ }, {
741
+ total: number;
742
+ memories: {
743
+ type: string;
744
+ scope: string;
745
+ id: string;
746
+ content: string;
747
+ confidence: number;
748
+ tags: string[];
749
+ age: string;
750
+ }[];
751
+ tokenEstimate: number;
752
+ }>;
753
+ export declare const ReminderSetResultSchema: z.ZodObject<{
754
+ id: z.ZodString;
755
+ content: z.ZodString;
756
+ dueAt: z.ZodNullable<z.ZodNumber>;
757
+ scope: z.ZodString;
758
+ }, "strip", z.ZodTypeAny, {
759
+ scope: string;
760
+ id: string;
761
+ content: string;
762
+ dueAt: number | null;
763
+ }, {
764
+ scope: string;
765
+ id: string;
766
+ content: string;
767
+ dueAt: number | null;
768
+ }>;
769
+ export declare const ReminderListResultSchema: z.ZodObject<{
770
+ total: z.ZodNumber;
771
+ reminders: z.ZodArray<z.ZodObject<{
772
+ id: z.ZodString;
773
+ content: z.ZodString;
774
+ dueAt: z.ZodNullable<z.ZodNumber>;
775
+ completed: z.ZodBoolean;
776
+ scope: z.ZodString;
777
+ }, "strip", z.ZodTypeAny, {
778
+ scope: string;
779
+ id: string;
780
+ content: string;
781
+ dueAt: number | null;
782
+ completed: boolean;
783
+ }, {
784
+ scope: string;
785
+ id: string;
786
+ content: string;
787
+ dueAt: number | null;
788
+ completed: boolean;
789
+ }>, "many">;
790
+ }, "strip", z.ZodTypeAny, {
791
+ total: number;
792
+ reminders: {
793
+ scope: string;
794
+ id: string;
795
+ content: string;
796
+ dueAt: number | null;
797
+ completed: boolean;
798
+ }[];
799
+ }, {
800
+ total: number;
801
+ reminders: {
802
+ scope: string;
803
+ id: string;
804
+ content: string;
805
+ dueAt: number | null;
806
+ completed: boolean;
807
+ }[];
808
+ }>;
809
+ export declare const ReminderCheckResultSchema: z.ZodObject<{
810
+ total: z.ZodNumber;
811
+ reminders: z.ZodArray<z.ZodObject<{
812
+ id: z.ZodString;
813
+ content: z.ZodString;
814
+ dueAt: z.ZodNullable<z.ZodNumber>;
815
+ status: z.ZodEnum<["overdue", "today", "upcoming"]>;
816
+ scope: z.ZodString;
817
+ }, "strip", z.ZodTypeAny, {
818
+ scope: string;
819
+ id: string;
820
+ content: string;
821
+ status: "overdue" | "today" | "upcoming";
822
+ dueAt: number | null;
823
+ }, {
824
+ scope: string;
825
+ id: string;
826
+ content: string;
827
+ status: "overdue" | "today" | "upcoming";
828
+ dueAt: number | null;
829
+ }>, "many">;
830
+ }, "strip", z.ZodTypeAny, {
831
+ total: number;
832
+ reminders: {
833
+ scope: string;
834
+ id: string;
835
+ content: string;
836
+ status: "overdue" | "today" | "upcoming";
837
+ dueAt: number | null;
838
+ }[];
839
+ }, {
840
+ total: number;
841
+ reminders: {
842
+ scope: string;
843
+ id: string;
844
+ content: string;
845
+ status: "overdue" | "today" | "upcoming";
846
+ dueAt: number | null;
847
+ }[];
848
+ }>;
849
+ export declare const ReminderCompleteResultSchema: z.ZodObject<{
850
+ id: z.ZodString;
851
+ completed: z.ZodBoolean;
852
+ content: z.ZodOptional<z.ZodString>;
853
+ }, "strip", z.ZodTypeAny, {
854
+ id: string;
855
+ completed: boolean;
856
+ content?: string | undefined;
857
+ }, {
858
+ id: string;
859
+ completed: boolean;
860
+ content?: string | undefined;
861
+ }>;
862
+ export declare const LogCleanupResultSchema: z.ZodObject<{
863
+ deleted: z.ZodNumber;
864
+ remaining: z.ZodNumber;
865
+ cutoffDate: z.ZodString;
866
+ }, "strip", z.ZodTypeAny, {
867
+ deleted: number;
868
+ remaining: number;
869
+ cutoffDate: string;
870
+ }, {
871
+ deleted: number;
872
+ remaining: number;
873
+ cutoffDate: string;
874
+ }>;