swarm-mail 1.5.2 → 1.5.4

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.
@@ -26,6 +26,11 @@
26
26
  * - updated_at: ISO timestamp (default current datetime)
27
27
  * - decay_factor: Confidence decay multiplier (default 1.0)
28
28
  * - embedding: F32_BLOB(1024) vector for semantic search
29
+ * - valid_from: Temporal validity start (ISO timestamp, NULL = always valid)
30
+ * - valid_until: Temporal validity end (ISO timestamp, NULL = no expiry)
31
+ * - superseded_by: Link to superseding memory (NULL = not superseded)
32
+ * - auto_tags: LLM-generated tags (JSON array as TEXT)
33
+ * - keywords: Space-separated keywords for FTS boost
29
34
  */
30
35
  export declare const memories: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
31
36
  name: "memories";
@@ -200,6 +205,101 @@ export declare const memories: import("drizzle-orm/sqlite-core").SQLiteTableWith
200
205
  }, {}, {
201
206
  sqliteColumnBuilderBrand: "SQLiteCustomColumnBuilderBrand";
202
207
  }>;
208
+ valid_from: import("drizzle-orm/sqlite-core").SQLiteColumn<{
209
+ name: "valid_from";
210
+ tableName: "memories";
211
+ dataType: "string";
212
+ columnType: "SQLiteText";
213
+ data: string;
214
+ driverParam: string;
215
+ notNull: false;
216
+ hasDefault: false;
217
+ isPrimaryKey: false;
218
+ isAutoincrement: false;
219
+ hasRuntimeDefault: false;
220
+ enumValues: [string, ...string[]];
221
+ baseColumn: never;
222
+ identity: undefined;
223
+ generated: undefined;
224
+ }, {}, {
225
+ length: number | undefined;
226
+ }>;
227
+ valid_until: import("drizzle-orm/sqlite-core").SQLiteColumn<{
228
+ name: "valid_until";
229
+ tableName: "memories";
230
+ dataType: "string";
231
+ columnType: "SQLiteText";
232
+ data: string;
233
+ driverParam: string;
234
+ notNull: false;
235
+ hasDefault: false;
236
+ isPrimaryKey: false;
237
+ isAutoincrement: false;
238
+ hasRuntimeDefault: false;
239
+ enumValues: [string, ...string[]];
240
+ baseColumn: never;
241
+ identity: undefined;
242
+ generated: undefined;
243
+ }, {}, {
244
+ length: number | undefined;
245
+ }>;
246
+ superseded_by: import("drizzle-orm/sqlite-core").SQLiteColumn<{
247
+ name: "superseded_by";
248
+ tableName: "memories";
249
+ dataType: "string";
250
+ columnType: "SQLiteText";
251
+ data: string;
252
+ driverParam: string;
253
+ notNull: false;
254
+ hasDefault: false;
255
+ isPrimaryKey: false;
256
+ isAutoincrement: false;
257
+ hasRuntimeDefault: false;
258
+ enumValues: [string, ...string[]];
259
+ baseColumn: never;
260
+ identity: undefined;
261
+ generated: undefined;
262
+ }, {}, {
263
+ length: number | undefined;
264
+ }>;
265
+ auto_tags: import("drizzle-orm/sqlite-core").SQLiteColumn<{
266
+ name: "auto_tags";
267
+ tableName: "memories";
268
+ dataType: "string";
269
+ columnType: "SQLiteText";
270
+ data: string;
271
+ driverParam: string;
272
+ notNull: false;
273
+ hasDefault: false;
274
+ isPrimaryKey: false;
275
+ isAutoincrement: false;
276
+ hasRuntimeDefault: false;
277
+ enumValues: [string, ...string[]];
278
+ baseColumn: never;
279
+ identity: undefined;
280
+ generated: undefined;
281
+ }, {}, {
282
+ length: number | undefined;
283
+ }>;
284
+ keywords: import("drizzle-orm/sqlite-core").SQLiteColumn<{
285
+ name: "keywords";
286
+ tableName: "memories";
287
+ dataType: "string";
288
+ columnType: "SQLiteText";
289
+ data: string;
290
+ driverParam: string;
291
+ notNull: false;
292
+ hasDefault: false;
293
+ isPrimaryKey: false;
294
+ isAutoincrement: false;
295
+ hasRuntimeDefault: false;
296
+ enumValues: [string, ...string[]];
297
+ baseColumn: never;
298
+ identity: undefined;
299
+ generated: undefined;
300
+ }, {}, {
301
+ length: number | undefined;
302
+ }>;
203
303
  };
204
304
  dialect: "sqlite";
205
305
  }>;
@@ -211,4 +311,495 @@ export type Memory = typeof memories.$inferSelect;
211
311
  * TypeScript type for inserting Memory (inferred from schema).
212
312
  */
213
313
  export type NewMemory = typeof memories.$inferInsert;
314
+ /**
315
+ * Memory Links table - Zettelkasten-style bidirectional connections
316
+ *
317
+ * Enables:
318
+ * - Related memories discovery
319
+ * - Contradiction detection
320
+ * - Supersession chains
321
+ * - Elaboration relationships
322
+ *
323
+ * Link strength decays or reinforces based on usage.
324
+ */
325
+ export declare const memoryLinks: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
326
+ name: "memory_links";
327
+ schema: undefined;
328
+ columns: {
329
+ id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
330
+ name: "id";
331
+ tableName: "memory_links";
332
+ dataType: "string";
333
+ columnType: "SQLiteText";
334
+ data: string;
335
+ driverParam: string;
336
+ notNull: true;
337
+ hasDefault: false;
338
+ isPrimaryKey: true;
339
+ isAutoincrement: false;
340
+ hasRuntimeDefault: false;
341
+ enumValues: [string, ...string[]];
342
+ baseColumn: never;
343
+ identity: undefined;
344
+ generated: undefined;
345
+ }, {}, {
346
+ length: number | undefined;
347
+ }>;
348
+ source_id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
349
+ name: "source_id";
350
+ tableName: "memory_links";
351
+ dataType: "string";
352
+ columnType: "SQLiteText";
353
+ data: string;
354
+ driverParam: string;
355
+ notNull: true;
356
+ hasDefault: false;
357
+ isPrimaryKey: false;
358
+ isAutoincrement: false;
359
+ hasRuntimeDefault: false;
360
+ enumValues: [string, ...string[]];
361
+ baseColumn: never;
362
+ identity: undefined;
363
+ generated: undefined;
364
+ }, {}, {
365
+ length: number | undefined;
366
+ }>;
367
+ target_id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
368
+ name: "target_id";
369
+ tableName: "memory_links";
370
+ dataType: "string";
371
+ columnType: "SQLiteText";
372
+ data: string;
373
+ driverParam: string;
374
+ notNull: true;
375
+ hasDefault: false;
376
+ isPrimaryKey: false;
377
+ isAutoincrement: false;
378
+ hasRuntimeDefault: false;
379
+ enumValues: [string, ...string[]];
380
+ baseColumn: never;
381
+ identity: undefined;
382
+ generated: undefined;
383
+ }, {}, {
384
+ length: number | undefined;
385
+ }>;
386
+ link_type: import("drizzle-orm/sqlite-core").SQLiteColumn<{
387
+ name: "link_type";
388
+ tableName: "memory_links";
389
+ dataType: "string";
390
+ columnType: "SQLiteText";
391
+ data: string;
392
+ driverParam: string;
393
+ notNull: true;
394
+ hasDefault: false;
395
+ isPrimaryKey: false;
396
+ isAutoincrement: false;
397
+ hasRuntimeDefault: false;
398
+ enumValues: [string, ...string[]];
399
+ baseColumn: never;
400
+ identity: undefined;
401
+ generated: undefined;
402
+ }, {}, {
403
+ length: number | undefined;
404
+ }>;
405
+ strength: import("drizzle-orm/sqlite-core").SQLiteColumn<{
406
+ name: "strength";
407
+ tableName: "memory_links";
408
+ dataType: "number";
409
+ columnType: "SQLiteReal";
410
+ data: number;
411
+ driverParam: number;
412
+ notNull: false;
413
+ hasDefault: true;
414
+ isPrimaryKey: false;
415
+ isAutoincrement: false;
416
+ hasRuntimeDefault: false;
417
+ enumValues: undefined;
418
+ baseColumn: never;
419
+ identity: undefined;
420
+ generated: undefined;
421
+ }, {}, {}>;
422
+ created_at: import("drizzle-orm/sqlite-core").SQLiteColumn<{
423
+ name: "created_at";
424
+ tableName: "memory_links";
425
+ dataType: "string";
426
+ columnType: "SQLiteText";
427
+ data: string;
428
+ driverParam: string;
429
+ notNull: false;
430
+ hasDefault: true;
431
+ isPrimaryKey: false;
432
+ isAutoincrement: false;
433
+ hasRuntimeDefault: false;
434
+ enumValues: [string, ...string[]];
435
+ baseColumn: never;
436
+ identity: undefined;
437
+ generated: undefined;
438
+ }, {}, {
439
+ length: number | undefined;
440
+ }>;
441
+ };
442
+ dialect: "sqlite";
443
+ }>;
444
+ export type MemoryLink = typeof memoryLinks.$inferSelect;
445
+ export type NewMemoryLink = typeof memoryLinks.$inferInsert;
446
+ /**
447
+ * Entities table - Named entities extracted from memories
448
+ *
449
+ * Entity types:
450
+ * - person: Joel, Dan Abramov, etc.
451
+ * - project: Next.js, egghead, etc.
452
+ * - technology: React, TypeScript, etc.
453
+ * - concept: RSC, TDD, event sourcing, etc.
454
+ *
455
+ * canonical_name: normalized form for de-duplication
456
+ */
457
+ export declare const entities: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
458
+ name: "entities";
459
+ schema: undefined;
460
+ columns: {
461
+ id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
462
+ name: "id";
463
+ tableName: "entities";
464
+ dataType: "string";
465
+ columnType: "SQLiteText";
466
+ data: string;
467
+ driverParam: string;
468
+ notNull: true;
469
+ hasDefault: false;
470
+ isPrimaryKey: true;
471
+ isAutoincrement: false;
472
+ hasRuntimeDefault: false;
473
+ enumValues: [string, ...string[]];
474
+ baseColumn: never;
475
+ identity: undefined;
476
+ generated: undefined;
477
+ }, {}, {
478
+ length: number | undefined;
479
+ }>;
480
+ name: import("drizzle-orm/sqlite-core").SQLiteColumn<{
481
+ name: "name";
482
+ tableName: "entities";
483
+ dataType: "string";
484
+ columnType: "SQLiteText";
485
+ data: string;
486
+ driverParam: string;
487
+ notNull: true;
488
+ hasDefault: false;
489
+ isPrimaryKey: false;
490
+ isAutoincrement: false;
491
+ hasRuntimeDefault: false;
492
+ enumValues: [string, ...string[]];
493
+ baseColumn: never;
494
+ identity: undefined;
495
+ generated: undefined;
496
+ }, {}, {
497
+ length: number | undefined;
498
+ }>;
499
+ entity_type: import("drizzle-orm/sqlite-core").SQLiteColumn<{
500
+ name: "entity_type";
501
+ tableName: "entities";
502
+ dataType: "string";
503
+ columnType: "SQLiteText";
504
+ data: string;
505
+ driverParam: string;
506
+ notNull: true;
507
+ hasDefault: false;
508
+ isPrimaryKey: false;
509
+ isAutoincrement: false;
510
+ hasRuntimeDefault: false;
511
+ enumValues: [string, ...string[]];
512
+ baseColumn: never;
513
+ identity: undefined;
514
+ generated: undefined;
515
+ }, {}, {
516
+ length: number | undefined;
517
+ }>;
518
+ canonical_name: import("drizzle-orm/sqlite-core").SQLiteColumn<{
519
+ name: "canonical_name";
520
+ tableName: "entities";
521
+ dataType: "string";
522
+ columnType: "SQLiteText";
523
+ data: string;
524
+ driverParam: string;
525
+ notNull: false;
526
+ hasDefault: false;
527
+ isPrimaryKey: false;
528
+ isAutoincrement: false;
529
+ hasRuntimeDefault: false;
530
+ enumValues: [string, ...string[]];
531
+ baseColumn: never;
532
+ identity: undefined;
533
+ generated: undefined;
534
+ }, {}, {
535
+ length: number | undefined;
536
+ }>;
537
+ created_at: import("drizzle-orm/sqlite-core").SQLiteColumn<{
538
+ name: "created_at";
539
+ tableName: "entities";
540
+ dataType: "string";
541
+ columnType: "SQLiteText";
542
+ data: string;
543
+ driverParam: string;
544
+ notNull: false;
545
+ hasDefault: true;
546
+ isPrimaryKey: false;
547
+ isAutoincrement: false;
548
+ hasRuntimeDefault: false;
549
+ enumValues: [string, ...string[]];
550
+ baseColumn: never;
551
+ identity: undefined;
552
+ generated: undefined;
553
+ }, {}, {
554
+ length: number | undefined;
555
+ }>;
556
+ updated_at: import("drizzle-orm/sqlite-core").SQLiteColumn<{
557
+ name: "updated_at";
558
+ tableName: "entities";
559
+ dataType: "string";
560
+ columnType: "SQLiteText";
561
+ data: string;
562
+ driverParam: string;
563
+ notNull: false;
564
+ hasDefault: true;
565
+ isPrimaryKey: false;
566
+ isAutoincrement: false;
567
+ hasRuntimeDefault: false;
568
+ enumValues: [string, ...string[]];
569
+ baseColumn: never;
570
+ identity: undefined;
571
+ generated: undefined;
572
+ }, {}, {
573
+ length: number | undefined;
574
+ }>;
575
+ };
576
+ dialect: "sqlite";
577
+ }>;
578
+ export type Entity = typeof entities.$inferSelect;
579
+ export type NewEntity = typeof entities.$inferInsert;
580
+ /**
581
+ * Relationships table - Entity-entity triples (subject-predicate-object)
582
+ *
583
+ * Examples:
584
+ * - (Joel, prefers, TypeScript)
585
+ * - (Joel, works_on, egghead)
586
+ * - (Next.js, uses, React)
587
+ *
588
+ * memory_id: source memory that established this relationship (nullable)
589
+ * confidence: 0-1 score, decays over time
590
+ */
591
+ export declare const relationships: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
592
+ name: "relationships";
593
+ schema: undefined;
594
+ columns: {
595
+ id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
596
+ name: "id";
597
+ tableName: "relationships";
598
+ dataType: "string";
599
+ columnType: "SQLiteText";
600
+ data: string;
601
+ driverParam: string;
602
+ notNull: true;
603
+ hasDefault: false;
604
+ isPrimaryKey: true;
605
+ isAutoincrement: false;
606
+ hasRuntimeDefault: false;
607
+ enumValues: [string, ...string[]];
608
+ baseColumn: never;
609
+ identity: undefined;
610
+ generated: undefined;
611
+ }, {}, {
612
+ length: number | undefined;
613
+ }>;
614
+ subject_id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
615
+ name: "subject_id";
616
+ tableName: "relationships";
617
+ dataType: "string";
618
+ columnType: "SQLiteText";
619
+ data: string;
620
+ driverParam: string;
621
+ notNull: true;
622
+ hasDefault: false;
623
+ isPrimaryKey: false;
624
+ isAutoincrement: false;
625
+ hasRuntimeDefault: false;
626
+ enumValues: [string, ...string[]];
627
+ baseColumn: never;
628
+ identity: undefined;
629
+ generated: undefined;
630
+ }, {}, {
631
+ length: number | undefined;
632
+ }>;
633
+ predicate: import("drizzle-orm/sqlite-core").SQLiteColumn<{
634
+ name: "predicate";
635
+ tableName: "relationships";
636
+ dataType: "string";
637
+ columnType: "SQLiteText";
638
+ data: string;
639
+ driverParam: string;
640
+ notNull: true;
641
+ hasDefault: false;
642
+ isPrimaryKey: false;
643
+ isAutoincrement: false;
644
+ hasRuntimeDefault: false;
645
+ enumValues: [string, ...string[]];
646
+ baseColumn: never;
647
+ identity: undefined;
648
+ generated: undefined;
649
+ }, {}, {
650
+ length: number | undefined;
651
+ }>;
652
+ object_id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
653
+ name: "object_id";
654
+ tableName: "relationships";
655
+ dataType: "string";
656
+ columnType: "SQLiteText";
657
+ data: string;
658
+ driverParam: string;
659
+ notNull: true;
660
+ hasDefault: false;
661
+ isPrimaryKey: false;
662
+ isAutoincrement: false;
663
+ hasRuntimeDefault: false;
664
+ enumValues: [string, ...string[]];
665
+ baseColumn: never;
666
+ identity: undefined;
667
+ generated: undefined;
668
+ }, {}, {
669
+ length: number | undefined;
670
+ }>;
671
+ memory_id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
672
+ name: "memory_id";
673
+ tableName: "relationships";
674
+ dataType: "string";
675
+ columnType: "SQLiteText";
676
+ data: string;
677
+ driverParam: string;
678
+ notNull: false;
679
+ hasDefault: false;
680
+ isPrimaryKey: false;
681
+ isAutoincrement: false;
682
+ hasRuntimeDefault: false;
683
+ enumValues: [string, ...string[]];
684
+ baseColumn: never;
685
+ identity: undefined;
686
+ generated: undefined;
687
+ }, {}, {
688
+ length: number | undefined;
689
+ }>;
690
+ confidence: import("drizzle-orm/sqlite-core").SQLiteColumn<{
691
+ name: "confidence";
692
+ tableName: "relationships";
693
+ dataType: "number";
694
+ columnType: "SQLiteReal";
695
+ data: number;
696
+ driverParam: number;
697
+ notNull: false;
698
+ hasDefault: true;
699
+ isPrimaryKey: false;
700
+ isAutoincrement: false;
701
+ hasRuntimeDefault: false;
702
+ enumValues: undefined;
703
+ baseColumn: never;
704
+ identity: undefined;
705
+ generated: undefined;
706
+ }, {}, {}>;
707
+ created_at: import("drizzle-orm/sqlite-core").SQLiteColumn<{
708
+ name: "created_at";
709
+ tableName: "relationships";
710
+ dataType: "string";
711
+ columnType: "SQLiteText";
712
+ data: string;
713
+ driverParam: string;
714
+ notNull: false;
715
+ hasDefault: true;
716
+ isPrimaryKey: false;
717
+ isAutoincrement: false;
718
+ hasRuntimeDefault: false;
719
+ enumValues: [string, ...string[]];
720
+ baseColumn: never;
721
+ identity: undefined;
722
+ generated: undefined;
723
+ }, {}, {
724
+ length: number | undefined;
725
+ }>;
726
+ };
727
+ dialect: "sqlite";
728
+ }>;
729
+ export type Relationship = typeof relationships.$inferSelect;
730
+ export type NewRelationship = typeof relationships.$inferInsert;
731
+ /**
732
+ * Memory-Entities junction table
733
+ *
734
+ * Links memories to entities with role annotation:
735
+ * - subject: main entity the memory is about
736
+ * - object: secondary entity mentioned
737
+ * - mentioned: entity appears but not central
738
+ */
739
+ export declare const memoryEntities: import("drizzle-orm/sqlite-core").SQLiteTableWithColumns<{
740
+ name: "memory_entities";
741
+ schema: undefined;
742
+ columns: {
743
+ memory_id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
744
+ name: "memory_id";
745
+ tableName: "memory_entities";
746
+ dataType: "string";
747
+ columnType: "SQLiteText";
748
+ data: string;
749
+ driverParam: string;
750
+ notNull: true;
751
+ hasDefault: false;
752
+ isPrimaryKey: false;
753
+ isAutoincrement: false;
754
+ hasRuntimeDefault: false;
755
+ enumValues: [string, ...string[]];
756
+ baseColumn: never;
757
+ identity: undefined;
758
+ generated: undefined;
759
+ }, {}, {
760
+ length: number | undefined;
761
+ }>;
762
+ entity_id: import("drizzle-orm/sqlite-core").SQLiteColumn<{
763
+ name: "entity_id";
764
+ tableName: "memory_entities";
765
+ dataType: "string";
766
+ columnType: "SQLiteText";
767
+ data: string;
768
+ driverParam: string;
769
+ notNull: true;
770
+ hasDefault: false;
771
+ isPrimaryKey: false;
772
+ isAutoincrement: false;
773
+ hasRuntimeDefault: false;
774
+ enumValues: [string, ...string[]];
775
+ baseColumn: never;
776
+ identity: undefined;
777
+ generated: undefined;
778
+ }, {}, {
779
+ length: number | undefined;
780
+ }>;
781
+ role: import("drizzle-orm/sqlite-core").SQLiteColumn<{
782
+ name: "role";
783
+ tableName: "memory_entities";
784
+ dataType: "string";
785
+ columnType: "SQLiteText";
786
+ data: string;
787
+ driverParam: string;
788
+ notNull: false;
789
+ hasDefault: false;
790
+ isPrimaryKey: false;
791
+ isAutoincrement: false;
792
+ hasRuntimeDefault: false;
793
+ enumValues: [string, ...string[]];
794
+ baseColumn: never;
795
+ identity: undefined;
796
+ generated: undefined;
797
+ }, {}, {
798
+ length: number | undefined;
799
+ }>;
800
+ };
801
+ dialect: "sqlite";
802
+ }>;
803
+ export type MemoryEntity = typeof memoryEntities.$inferSelect;
804
+ export type NewMemoryEntity = typeof memoryEntities.$inferInsert;
214
805
  //# sourceMappingURL=memory.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../../src/db/schema/memory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAyBH;;;;;;;;;;;;;;;GAeG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUnB,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,OAAO,QAAQ,CAAC,YAAY,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,OAAO,QAAQ,CAAC,YAAY,CAAC"}
1
+ {"version":3,"file":"memory.d.ts","sourceRoot":"","sources":["../../../src/db/schema/memory.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAyBH;;;;;;;;;;;;;;;;;;;;GAoBG;AACH,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBnB,CAAC;AAEH;;GAEG;AACH,MAAM,MAAM,MAAM,GAAG,OAAO,QAAQ,CAAC,YAAY,CAAC;AAElD;;GAEG;AACH,MAAM,MAAM,SAAS,GAAG,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AAe,GAAG,OAAO,cAAc,CAAC,YAAY,CAAC"}
package/dist/index.d.ts CHANGED
@@ -51,6 +51,14 @@ export { createMemoryStore, EMBEDDING_DIM, } from "./memory/store";
51
51
  export type { ExportOptions as MemoryExportOptions, ImportOptions as MemoryImportOptions, MemoryExport, MemoryImportResult, } from "./memory/sync";
52
52
  export { exportMemories, importMemories, parseMemoryJSONL, serializeMemoryToJSONL, syncMemories, } from "./memory/sync";
53
53
  export { createTestMemoryDb } from "./memory/test-utils";
54
+ export { analyzeMemoryOperation } from "./memory/memory-operations";
55
+ export type { MemoryOperation, MemoryOperationConfig, } from "./memory/memory-operations";
56
+ export { generateTags } from "./memory/auto-tagger";
57
+ export type { AutoTagConfig, AutoTagResult, } from "./memory/auto-tagger";
58
+ export { autoLinkMemory, createLink, findRelatedMemories, getLinks, updateLinkStrength, } from "./memory/memory-linking";
59
+ export type { LinkingConfig, MemoryLink, } from "./memory/memory-linking";
60
+ export { extractEntitiesAndRelationships, getEntitiesByType, getRelationshipsForEntity, linkMemoryToEntities, storeEntities, storeRelationships, } from "./memory/entity-extraction";
61
+ export type { Entity, ExtractionResult, Relationship, } from "./memory/entity-extraction";
54
62
  export type { SwarmDb } from "./db";
55
63
  export { closeDb, createInMemoryDb, getDb } from "./db";
56
64
  export { createDrizzleClient } from "./db/drizzle";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,eAAO,MAAM,kBAAkB,UAAU,CAAC;AAM1C,OAAO,EAAE,GAAG,IAAI,QAAQ,EAAE,MAAM,SAAS,CAAC;AAM1C,OAAO,EAAE,sBAAsB,EAAE,MAAM,WAAW,CAAC;AACnD,YAAY,EACX,YAAY,EACZ,QAAQ,EACR,eAAe,EACf,iBAAiB,EACjB,YAAY,EACZ,OAAO,EACP,gBAAgB,EAChB,iBAAiB,EACjB,WAAW,EACX,kBAAkB,EAClB,aAAa,E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