@tenphi/akno-protocol 0.7.0 → 0.9.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.
Files changed (44) hide show
  1. package/README.md +11 -1
  2. package/dist/common.d.ts +109 -0
  3. package/dist/common.d.ts.map +1 -1
  4. package/dist/common.js +29 -1
  5. package/dist/common.js.map +1 -1
  6. package/dist/ops/answer.d.ts +19 -0
  7. package/dist/ops/answer.d.ts.map +1 -1
  8. package/dist/ops/answer.js +4 -1
  9. package/dist/ops/answer.js.map +1 -1
  10. package/dist/ops/context.d.ts +58 -0
  11. package/dist/ops/context.d.ts.map +1 -1
  12. package/dist/ops/context.js +5 -1
  13. package/dist/ops/context.js.map +1 -1
  14. package/dist/ops/folder.d.ts +1 -0
  15. package/dist/ops/folder.d.ts.map +1 -1
  16. package/dist/ops/graph.d.ts +49 -0
  17. package/dist/ops/graph.d.ts.map +1 -1
  18. package/dist/ops/graph.js +5 -2
  19. package/dist/ops/graph.js.map +1 -1
  20. package/dist/ops/list.d.ts +1 -0
  21. package/dist/ops/list.d.ts.map +1 -1
  22. package/dist/ops/mutate.d.ts +6 -0
  23. package/dist/ops/mutate.d.ts.map +1 -1
  24. package/dist/ops/read.d.ts +1 -0
  25. package/dist/ops/read.d.ts.map +1 -1
  26. package/dist/ops/recall.d.ts +45 -0
  27. package/dist/ops/recall.d.ts.map +1 -1
  28. package/dist/ops/recall.js +4 -1
  29. package/dist/ops/recall.js.map +1 -1
  30. package/dist/ops/retain.d.ts +80 -0
  31. package/dist/ops/retain.d.ts.map +1 -1
  32. package/dist/ops/retain.js +50 -4
  33. package/dist/ops/retain.js.map +1 -1
  34. package/dist/ops/timeline.d.ts +4 -3
  35. package/dist/ops/timeline.d.ts.map +1 -1
  36. package/dist/ops/write.d.ts +1 -0
  37. package/dist/ops/write.d.ts.map +1 -1
  38. package/dist/registry.d.ts +204 -3
  39. package/dist/registry.d.ts.map +1 -1
  40. package/dist/version.d.ts +1 -1
  41. package/dist/version.d.ts.map +1 -1
  42. package/dist/version.js +3 -1
  43. package/dist/version.js.map +1 -1
  44. package/package.json +1 -1
package/README.md CHANGED
@@ -16,12 +16,22 @@ This package exists so `@tenphi/akno-client` can share schemas with `@tenphi/akn
16
16
  ```ts
17
17
  import { OPS, OP_NAMES, AknoError } from '@tenphi/akno-protocol';
18
18
 
19
- OPS.recall.input.parse({ query: 'car insurance renewal' });
19
+ OPS.recall.input.parse({ query: 'What is planned?', memory_view: 'planning' });
20
20
  OPS.timeline.input.parse({
21
21
  as_of: '2031-04-12T10:00:00+02:00',
22
22
  timezone: 'Europe/Amsterdam',
23
23
  view: 'actionable',
24
24
  });
25
+ OPS.retain.input.parse({
26
+ sources: [
27
+ {
28
+ source_id: 'manual:1111',
29
+ revision: '1',
30
+ input: { page_slug: 'sources/zephyr-manual' },
31
+ retention: { mode: 'extract' },
32
+ },
33
+ ],
34
+ });
25
35
  ```
26
36
 
27
37
  Full documentation: [github.com/tenphi/akno](https://github.com/tenphi/akno#readme)
package/dist/common.d.ts CHANGED
@@ -56,6 +56,25 @@ export declare const RecallMode: z.ZodEnum<{
56
56
  explore: "explore";
57
57
  }>;
58
58
  export type RecallMode = z.infer<typeof RecallMode>;
59
+ /**
60
+ * Which semantic form of retained memory is useful for this read.
61
+ *
62
+ * This is deliberately separate from `RecallMode`: lookup/question/explore controls how Akno
63
+ * searches, while this value controls whether a matching retained sentence may be used as a
64
+ * current fact, attributed report, plan, historical record, unresolved question, or explicitly
65
+ * noncanonical discussion. When omitted, the query is resolved conservatively and ordinary
66
+ * factual memory wins.
67
+ */
68
+ export declare const MemoryView: z.ZodEnum<{
69
+ factual: "factual";
70
+ history: "history";
71
+ planning: "planning";
72
+ reports: "reports";
73
+ questions: "questions";
74
+ discussion: "discussion";
75
+ all: "all";
76
+ }>;
77
+ export type MemoryView = z.infer<typeof MemoryView>;
59
78
  /** How much of a page body a card carries back. */
60
79
  export declare const Depth: z.ZodEnum<{
61
80
  summary: "summary";
@@ -538,11 +557,18 @@ export declare const GraphRelation: z.ZodEnum<{
538
557
  owns_document: "owns_document";
539
558
  participates_in: "participates_in";
540
559
  derived_from: "derived_from";
560
+ corrects: "corrects";
561
+ supersedes: "supersedes";
562
+ contradicts: "contradicts";
563
+ fulfills: "fulfills";
564
+ answers: "answers";
565
+ caused_by: "caused_by";
541
566
  }>;
542
567
  export type GraphRelation = z.infer<typeof GraphRelation>;
543
568
  export declare const GraphNodeKind: z.ZodEnum<{
544
569
  event: "event";
545
570
  fact: "fact";
571
+ memory: "memory";
546
572
  observation: "observation";
547
573
  entity: "entity";
548
574
  page: "page";
@@ -555,6 +581,7 @@ export declare const GraphNodeRef: z.ZodObject<{
555
581
  kind: z.ZodEnum<{
556
582
  event: "event";
557
583
  fact: "fact";
584
+ memory: "memory";
558
585
  observation: "observation";
559
586
  entity: "entity";
560
587
  page: "page";
@@ -581,6 +608,7 @@ export declare const GraphNodeRef: z.ZodObject<{
581
608
  document: z.ZodOptional<z.ZodString>;
582
609
  fact: z.ZodOptional<z.ZodString>;
583
610
  event: z.ZodOptional<z.ZodString>;
611
+ memory: z.ZodOptional<z.ZodString>;
584
612
  observation: z.ZodOptional<z.ZodString>;
585
613
  date: z.ZodOptional<z.ZodString>;
586
614
  line_start: z.ZodOptional<z.ZodNumber>;
@@ -604,6 +632,7 @@ export declare const GraphEvidenceLocator: z.ZodObject<{
604
632
  document: z.ZodOptional<z.ZodString>;
605
633
  event: z.ZodOptional<z.ZodString>;
606
634
  fact: z.ZodOptional<z.ZodString>;
635
+ memory: z.ZodOptional<z.ZodString>;
607
636
  line_start: z.ZodOptional<z.ZodNumber>;
608
637
  line_end: z.ZodOptional<z.ZodNumber>;
609
638
  field: z.ZodOptional<z.ZodString>;
@@ -623,6 +652,7 @@ export declare const RecallGraphPath: z.ZodObject<{
623
652
  kind: z.ZodEnum<{
624
653
  event: "event";
625
654
  fact: "fact";
655
+ memory: "memory";
626
656
  observation: "observation";
627
657
  entity: "entity";
628
658
  page: "page";
@@ -649,6 +679,7 @@ export declare const RecallGraphPath: z.ZodObject<{
649
679
  document: z.ZodOptional<z.ZodString>;
650
680
  fact: z.ZodOptional<z.ZodString>;
651
681
  event: z.ZodOptional<z.ZodString>;
682
+ memory: z.ZodOptional<z.ZodString>;
652
683
  observation: z.ZodOptional<z.ZodString>;
653
684
  date: z.ZodOptional<z.ZodString>;
654
685
  line_start: z.ZodOptional<z.ZodNumber>;
@@ -664,6 +695,7 @@ export declare const RecallGraphPath: z.ZodObject<{
664
695
  kind: z.ZodEnum<{
665
696
  event: "event";
666
697
  fact: "fact";
698
+ memory: "memory";
667
699
  observation: "observation";
668
700
  entity: "entity";
669
701
  page: "page";
@@ -690,6 +722,7 @@ export declare const RecallGraphPath: z.ZodObject<{
690
722
  document: z.ZodOptional<z.ZodString>;
691
723
  fact: z.ZodOptional<z.ZodString>;
692
724
  event: z.ZodOptional<z.ZodString>;
725
+ memory: z.ZodOptional<z.ZodString>;
693
726
  observation: z.ZodOptional<z.ZodString>;
694
727
  date: z.ZodOptional<z.ZodString>;
695
728
  line_start: z.ZodOptional<z.ZodNumber>;
@@ -705,6 +738,7 @@ export declare const RecallGraphPath: z.ZodObject<{
705
738
  kind: z.ZodEnum<{
706
739
  event: "event";
707
740
  fact: "fact";
741
+ memory: "memory";
708
742
  observation: "observation";
709
743
  entity: "entity";
710
744
  page: "page";
@@ -731,6 +765,7 @@ export declare const RecallGraphPath: z.ZodObject<{
731
765
  document: z.ZodOptional<z.ZodString>;
732
766
  fact: z.ZodOptional<z.ZodString>;
733
767
  event: z.ZodOptional<z.ZodString>;
768
+ memory: z.ZodOptional<z.ZodString>;
734
769
  observation: z.ZodOptional<z.ZodString>;
735
770
  date: z.ZodOptional<z.ZodString>;
736
771
  line_start: z.ZodOptional<z.ZodNumber>;
@@ -751,6 +786,12 @@ export declare const RecallGraphPath: z.ZodObject<{
751
786
  owns_document: "owns_document";
752
787
  participates_in: "participates_in";
753
788
  derived_from: "derived_from";
789
+ corrects: "corrects";
790
+ supersedes: "supersedes";
791
+ contradicts: "contradicts";
792
+ fulfills: "fulfills";
793
+ answers: "answers";
794
+ caused_by: "caused_by";
754
795
  }>>;
755
796
  hops: z.ZodNumber;
756
797
  confidence: z.ZodNumber;
@@ -765,6 +806,7 @@ export declare const RecallGraphPath: z.ZodObject<{
765
806
  document: z.ZodOptional<z.ZodString>;
766
807
  event: z.ZodOptional<z.ZodString>;
767
808
  fact: z.ZodOptional<z.ZodString>;
809
+ memory: z.ZodOptional<z.ZodString>;
768
810
  line_start: z.ZodOptional<z.ZodNumber>;
769
811
  line_end: z.ZodOptional<z.ZodNumber>;
770
812
  field: z.ZodOptional<z.ZodString>;
@@ -1033,6 +1075,7 @@ export declare const Card: z.ZodObject<{
1033
1075
  kind: z.ZodEnum<{
1034
1076
  event: "event";
1035
1077
  fact: "fact";
1078
+ memory: "memory";
1036
1079
  observation: "observation";
1037
1080
  entity: "entity";
1038
1081
  page: "page";
@@ -1059,6 +1102,7 @@ export declare const Card: z.ZodObject<{
1059
1102
  document: z.ZodOptional<z.ZodString>;
1060
1103
  fact: z.ZodOptional<z.ZodString>;
1061
1104
  event: z.ZodOptional<z.ZodString>;
1105
+ memory: z.ZodOptional<z.ZodString>;
1062
1106
  observation: z.ZodOptional<z.ZodString>;
1063
1107
  date: z.ZodOptional<z.ZodString>;
1064
1108
  line_start: z.ZodOptional<z.ZodNumber>;
@@ -1074,6 +1118,7 @@ export declare const Card: z.ZodObject<{
1074
1118
  kind: z.ZodEnum<{
1075
1119
  event: "event";
1076
1120
  fact: "fact";
1121
+ memory: "memory";
1077
1122
  observation: "observation";
1078
1123
  entity: "entity";
1079
1124
  page: "page";
@@ -1100,6 +1145,7 @@ export declare const Card: z.ZodObject<{
1100
1145
  document: z.ZodOptional<z.ZodString>;
1101
1146
  fact: z.ZodOptional<z.ZodString>;
1102
1147
  event: z.ZodOptional<z.ZodString>;
1148
+ memory: z.ZodOptional<z.ZodString>;
1103
1149
  observation: z.ZodOptional<z.ZodString>;
1104
1150
  date: z.ZodOptional<z.ZodString>;
1105
1151
  line_start: z.ZodOptional<z.ZodNumber>;
@@ -1115,6 +1161,7 @@ export declare const Card: z.ZodObject<{
1115
1161
  kind: z.ZodEnum<{
1116
1162
  event: "event";
1117
1163
  fact: "fact";
1164
+ memory: "memory";
1118
1165
  observation: "observation";
1119
1166
  entity: "entity";
1120
1167
  page: "page";
@@ -1141,6 +1188,7 @@ export declare const Card: z.ZodObject<{
1141
1188
  document: z.ZodOptional<z.ZodString>;
1142
1189
  fact: z.ZodOptional<z.ZodString>;
1143
1190
  event: z.ZodOptional<z.ZodString>;
1191
+ memory: z.ZodOptional<z.ZodString>;
1144
1192
  observation: z.ZodOptional<z.ZodString>;
1145
1193
  date: z.ZodOptional<z.ZodString>;
1146
1194
  line_start: z.ZodOptional<z.ZodNumber>;
@@ -1161,6 +1209,12 @@ export declare const Card: z.ZodObject<{
1161
1209
  owns_document: "owns_document";
1162
1210
  participates_in: "participates_in";
1163
1211
  derived_from: "derived_from";
1212
+ corrects: "corrects";
1213
+ supersedes: "supersedes";
1214
+ contradicts: "contradicts";
1215
+ fulfills: "fulfills";
1216
+ answers: "answers";
1217
+ caused_by: "caused_by";
1164
1218
  }>>;
1165
1219
  hops: z.ZodNumber;
1166
1220
  confidence: z.ZodNumber;
@@ -1175,6 +1229,7 @@ export declare const Card: z.ZodObject<{
1175
1229
  document: z.ZodOptional<z.ZodString>;
1176
1230
  event: z.ZodOptional<z.ZodString>;
1177
1231
  fact: z.ZodOptional<z.ZodString>;
1232
+ memory: z.ZodOptional<z.ZodString>;
1178
1233
  line_start: z.ZodOptional<z.ZodNumber>;
1179
1234
  line_end: z.ZodOptional<z.ZodNumber>;
1180
1235
  field: z.ZodOptional<z.ZodString>;
@@ -1387,6 +1442,7 @@ export declare const PageCard: z.ZodObject<{
1387
1442
  kind: z.ZodEnum<{
1388
1443
  event: "event";
1389
1444
  fact: "fact";
1445
+ memory: "memory";
1390
1446
  observation: "observation";
1391
1447
  entity: "entity";
1392
1448
  page: "page";
@@ -1413,6 +1469,7 @@ export declare const PageCard: z.ZodObject<{
1413
1469
  document: z.ZodOptional<z.ZodString>;
1414
1470
  fact: z.ZodOptional<z.ZodString>;
1415
1471
  event: z.ZodOptional<z.ZodString>;
1472
+ memory: z.ZodOptional<z.ZodString>;
1416
1473
  observation: z.ZodOptional<z.ZodString>;
1417
1474
  date: z.ZodOptional<z.ZodString>;
1418
1475
  line_start: z.ZodOptional<z.ZodNumber>;
@@ -1428,6 +1485,7 @@ export declare const PageCard: z.ZodObject<{
1428
1485
  kind: z.ZodEnum<{
1429
1486
  event: "event";
1430
1487
  fact: "fact";
1488
+ memory: "memory";
1431
1489
  observation: "observation";
1432
1490
  entity: "entity";
1433
1491
  page: "page";
@@ -1454,6 +1512,7 @@ export declare const PageCard: z.ZodObject<{
1454
1512
  document: z.ZodOptional<z.ZodString>;
1455
1513
  fact: z.ZodOptional<z.ZodString>;
1456
1514
  event: z.ZodOptional<z.ZodString>;
1515
+ memory: z.ZodOptional<z.ZodString>;
1457
1516
  observation: z.ZodOptional<z.ZodString>;
1458
1517
  date: z.ZodOptional<z.ZodString>;
1459
1518
  line_start: z.ZodOptional<z.ZodNumber>;
@@ -1469,6 +1528,7 @@ export declare const PageCard: z.ZodObject<{
1469
1528
  kind: z.ZodEnum<{
1470
1529
  event: "event";
1471
1530
  fact: "fact";
1531
+ memory: "memory";
1472
1532
  observation: "observation";
1473
1533
  entity: "entity";
1474
1534
  page: "page";
@@ -1495,6 +1555,7 @@ export declare const PageCard: z.ZodObject<{
1495
1555
  document: z.ZodOptional<z.ZodString>;
1496
1556
  fact: z.ZodOptional<z.ZodString>;
1497
1557
  event: z.ZodOptional<z.ZodString>;
1558
+ memory: z.ZodOptional<z.ZodString>;
1498
1559
  observation: z.ZodOptional<z.ZodString>;
1499
1560
  date: z.ZodOptional<z.ZodString>;
1500
1561
  line_start: z.ZodOptional<z.ZodNumber>;
@@ -1515,6 +1576,12 @@ export declare const PageCard: z.ZodObject<{
1515
1576
  owns_document: "owns_document";
1516
1577
  participates_in: "participates_in";
1517
1578
  derived_from: "derived_from";
1579
+ corrects: "corrects";
1580
+ supersedes: "supersedes";
1581
+ contradicts: "contradicts";
1582
+ fulfills: "fulfills";
1583
+ answers: "answers";
1584
+ caused_by: "caused_by";
1518
1585
  }>>;
1519
1586
  hops: z.ZodNumber;
1520
1587
  confidence: z.ZodNumber;
@@ -1529,6 +1596,7 @@ export declare const PageCard: z.ZodObject<{
1529
1596
  document: z.ZodOptional<z.ZodString>;
1530
1597
  event: z.ZodOptional<z.ZodString>;
1531
1598
  fact: z.ZodOptional<z.ZodString>;
1599
+ memory: z.ZodOptional<z.ZodString>;
1532
1600
  line_start: z.ZodOptional<z.ZodNumber>;
1533
1601
  line_end: z.ZodOptional<z.ZodNumber>;
1534
1602
  field: z.ZodOptional<z.ZodString>;
@@ -1607,6 +1675,7 @@ export declare const DocumentCard: z.ZodObject<{
1607
1675
  kind: z.ZodEnum<{
1608
1676
  event: "event";
1609
1677
  fact: "fact";
1678
+ memory: "memory";
1610
1679
  observation: "observation";
1611
1680
  entity: "entity";
1612
1681
  page: "page";
@@ -1633,6 +1702,7 @@ export declare const DocumentCard: z.ZodObject<{
1633
1702
  document: z.ZodOptional<z.ZodString>;
1634
1703
  fact: z.ZodOptional<z.ZodString>;
1635
1704
  event: z.ZodOptional<z.ZodString>;
1705
+ memory: z.ZodOptional<z.ZodString>;
1636
1706
  observation: z.ZodOptional<z.ZodString>;
1637
1707
  date: z.ZodOptional<z.ZodString>;
1638
1708
  line_start: z.ZodOptional<z.ZodNumber>;
@@ -1648,6 +1718,7 @@ export declare const DocumentCard: z.ZodObject<{
1648
1718
  kind: z.ZodEnum<{
1649
1719
  event: "event";
1650
1720
  fact: "fact";
1721
+ memory: "memory";
1651
1722
  observation: "observation";
1652
1723
  entity: "entity";
1653
1724
  page: "page";
@@ -1674,6 +1745,7 @@ export declare const DocumentCard: z.ZodObject<{
1674
1745
  document: z.ZodOptional<z.ZodString>;
1675
1746
  fact: z.ZodOptional<z.ZodString>;
1676
1747
  event: z.ZodOptional<z.ZodString>;
1748
+ memory: z.ZodOptional<z.ZodString>;
1677
1749
  observation: z.ZodOptional<z.ZodString>;
1678
1750
  date: z.ZodOptional<z.ZodString>;
1679
1751
  line_start: z.ZodOptional<z.ZodNumber>;
@@ -1689,6 +1761,7 @@ export declare const DocumentCard: z.ZodObject<{
1689
1761
  kind: z.ZodEnum<{
1690
1762
  event: "event";
1691
1763
  fact: "fact";
1764
+ memory: "memory";
1692
1765
  observation: "observation";
1693
1766
  entity: "entity";
1694
1767
  page: "page";
@@ -1715,6 +1788,7 @@ export declare const DocumentCard: z.ZodObject<{
1715
1788
  document: z.ZodOptional<z.ZodString>;
1716
1789
  fact: z.ZodOptional<z.ZodString>;
1717
1790
  event: z.ZodOptional<z.ZodString>;
1791
+ memory: z.ZodOptional<z.ZodString>;
1718
1792
  observation: z.ZodOptional<z.ZodString>;
1719
1793
  date: z.ZodOptional<z.ZodString>;
1720
1794
  line_start: z.ZodOptional<z.ZodNumber>;
@@ -1735,6 +1809,12 @@ export declare const DocumentCard: z.ZodObject<{
1735
1809
  owns_document: "owns_document";
1736
1810
  participates_in: "participates_in";
1737
1811
  derived_from: "derived_from";
1812
+ corrects: "corrects";
1813
+ supersedes: "supersedes";
1814
+ contradicts: "contradicts";
1815
+ fulfills: "fulfills";
1816
+ answers: "answers";
1817
+ caused_by: "caused_by";
1738
1818
  }>>;
1739
1819
  hops: z.ZodNumber;
1740
1820
  confidence: z.ZodNumber;
@@ -1749,6 +1829,7 @@ export declare const DocumentCard: z.ZodObject<{
1749
1829
  document: z.ZodOptional<z.ZodString>;
1750
1830
  event: z.ZodOptional<z.ZodString>;
1751
1831
  fact: z.ZodOptional<z.ZodString>;
1832
+ memory: z.ZodOptional<z.ZodString>;
1752
1833
  line_start: z.ZodOptional<z.ZodNumber>;
1753
1834
  line_end: z.ZodOptional<z.ZodNumber>;
1754
1835
  field: z.ZodOptional<z.ZodString>;
@@ -1960,6 +2041,7 @@ export declare const RecallResult: z.ZodDiscriminatedUnion<[z.ZodObject<{
1960
2041
  kind: z.ZodEnum<{
1961
2042
  event: "event";
1962
2043
  fact: "fact";
2044
+ memory: "memory";
1963
2045
  observation: "observation";
1964
2046
  entity: "entity";
1965
2047
  page: "page";
@@ -1986,6 +2068,7 @@ export declare const RecallResult: z.ZodDiscriminatedUnion<[z.ZodObject<{
1986
2068
  document: z.ZodOptional<z.ZodString>;
1987
2069
  fact: z.ZodOptional<z.ZodString>;
1988
2070
  event: z.ZodOptional<z.ZodString>;
2071
+ memory: z.ZodOptional<z.ZodString>;
1989
2072
  observation: z.ZodOptional<z.ZodString>;
1990
2073
  date: z.ZodOptional<z.ZodString>;
1991
2074
  line_start: z.ZodOptional<z.ZodNumber>;
@@ -2001,6 +2084,7 @@ export declare const RecallResult: z.ZodDiscriminatedUnion<[z.ZodObject<{
2001
2084
  kind: z.ZodEnum<{
2002
2085
  event: "event";
2003
2086
  fact: "fact";
2087
+ memory: "memory";
2004
2088
  observation: "observation";
2005
2089
  entity: "entity";
2006
2090
  page: "page";
@@ -2027,6 +2111,7 @@ export declare const RecallResult: z.ZodDiscriminatedUnion<[z.ZodObject<{
2027
2111
  document: z.ZodOptional<z.ZodString>;
2028
2112
  fact: z.ZodOptional<z.ZodString>;
2029
2113
  event: z.ZodOptional<z.ZodString>;
2114
+ memory: z.ZodOptional<z.ZodString>;
2030
2115
  observation: z.ZodOptional<z.ZodString>;
2031
2116
  date: z.ZodOptional<z.ZodString>;
2032
2117
  line_start: z.ZodOptional<z.ZodNumber>;
@@ -2042,6 +2127,7 @@ export declare const RecallResult: z.ZodDiscriminatedUnion<[z.ZodObject<{
2042
2127
  kind: z.ZodEnum<{
2043
2128
  event: "event";
2044
2129
  fact: "fact";
2130
+ memory: "memory";
2045
2131
  observation: "observation";
2046
2132
  entity: "entity";
2047
2133
  page: "page";
@@ -2068,6 +2154,7 @@ export declare const RecallResult: z.ZodDiscriminatedUnion<[z.ZodObject<{
2068
2154
  document: z.ZodOptional<z.ZodString>;
2069
2155
  fact: z.ZodOptional<z.ZodString>;
2070
2156
  event: z.ZodOptional<z.ZodString>;
2157
+ memory: z.ZodOptional<z.ZodString>;
2071
2158
  observation: z.ZodOptional<z.ZodString>;
2072
2159
  date: z.ZodOptional<z.ZodString>;
2073
2160
  line_start: z.ZodOptional<z.ZodNumber>;
@@ -2088,6 +2175,12 @@ export declare const RecallResult: z.ZodDiscriminatedUnion<[z.ZodObject<{
2088
2175
  owns_document: "owns_document";
2089
2176
  participates_in: "participates_in";
2090
2177
  derived_from: "derived_from";
2178
+ corrects: "corrects";
2179
+ supersedes: "supersedes";
2180
+ contradicts: "contradicts";
2181
+ fulfills: "fulfills";
2182
+ answers: "answers";
2183
+ caused_by: "caused_by";
2091
2184
  }>>;
2092
2185
  hops: z.ZodNumber;
2093
2186
  confidence: z.ZodNumber;
@@ -2102,6 +2195,7 @@ export declare const RecallResult: z.ZodDiscriminatedUnion<[z.ZodObject<{
2102
2195
  document: z.ZodOptional<z.ZodString>;
2103
2196
  event: z.ZodOptional<z.ZodString>;
2104
2197
  fact: z.ZodOptional<z.ZodString>;
2198
+ memory: z.ZodOptional<z.ZodString>;
2105
2199
  line_start: z.ZodOptional<z.ZodNumber>;
2106
2200
  line_end: z.ZodOptional<z.ZodNumber>;
2107
2201
  field: z.ZodOptional<z.ZodString>;
@@ -2177,6 +2271,7 @@ export declare const RecallResult: z.ZodDiscriminatedUnion<[z.ZodObject<{
2177
2271
  kind: z.ZodEnum<{
2178
2272
  event: "event";
2179
2273
  fact: "fact";
2274
+ memory: "memory";
2180
2275
  observation: "observation";
2181
2276
  entity: "entity";
2182
2277
  page: "page";
@@ -2203,6 +2298,7 @@ export declare const RecallResult: z.ZodDiscriminatedUnion<[z.ZodObject<{
2203
2298
  document: z.ZodOptional<z.ZodString>;
2204
2299
  fact: z.ZodOptional<z.ZodString>;
2205
2300
  event: z.ZodOptional<z.ZodString>;
2301
+ memory: z.ZodOptional<z.ZodString>;
2206
2302
  observation: z.ZodOptional<z.ZodString>;
2207
2303
  date: z.ZodOptional<z.ZodString>;
2208
2304
  line_start: z.ZodOptional<z.ZodNumber>;
@@ -2218,6 +2314,7 @@ export declare const RecallResult: z.ZodDiscriminatedUnion<[z.ZodObject<{
2218
2314
  kind: z.ZodEnum<{
2219
2315
  event: "event";
2220
2316
  fact: "fact";
2317
+ memory: "memory";
2221
2318
  observation: "observation";
2222
2319
  entity: "entity";
2223
2320
  page: "page";
@@ -2244,6 +2341,7 @@ export declare const RecallResult: z.ZodDiscriminatedUnion<[z.ZodObject<{
2244
2341
  document: z.ZodOptional<z.ZodString>;
2245
2342
  fact: z.ZodOptional<z.ZodString>;
2246
2343
  event: z.ZodOptional<z.ZodString>;
2344
+ memory: z.ZodOptional<z.ZodString>;
2247
2345
  observation: z.ZodOptional<z.ZodString>;
2248
2346
  date: z.ZodOptional<z.ZodString>;
2249
2347
  line_start: z.ZodOptional<z.ZodNumber>;
@@ -2259,6 +2357,7 @@ export declare const RecallResult: z.ZodDiscriminatedUnion<[z.ZodObject<{
2259
2357
  kind: z.ZodEnum<{
2260
2358
  event: "event";
2261
2359
  fact: "fact";
2360
+ memory: "memory";
2262
2361
  observation: "observation";
2263
2362
  entity: "entity";
2264
2363
  page: "page";
@@ -2285,6 +2384,7 @@ export declare const RecallResult: z.ZodDiscriminatedUnion<[z.ZodObject<{
2285
2384
  document: z.ZodOptional<z.ZodString>;
2286
2385
  fact: z.ZodOptional<z.ZodString>;
2287
2386
  event: z.ZodOptional<z.ZodString>;
2387
+ memory: z.ZodOptional<z.ZodString>;
2288
2388
  observation: z.ZodOptional<z.ZodString>;
2289
2389
  date: z.ZodOptional<z.ZodString>;
2290
2390
  line_start: z.ZodOptional<z.ZodNumber>;
@@ -2305,6 +2405,12 @@ export declare const RecallResult: z.ZodDiscriminatedUnion<[z.ZodObject<{
2305
2405
  owns_document: "owns_document";
2306
2406
  participates_in: "participates_in";
2307
2407
  derived_from: "derived_from";
2408
+ corrects: "corrects";
2409
+ supersedes: "supersedes";
2410
+ contradicts: "contradicts";
2411
+ fulfills: "fulfills";
2412
+ answers: "answers";
2413
+ caused_by: "caused_by";
2308
2414
  }>>;
2309
2415
  hops: z.ZodNumber;
2310
2416
  confidence: z.ZodNumber;
@@ -2319,6 +2425,7 @@ export declare const RecallResult: z.ZodDiscriminatedUnion<[z.ZodObject<{
2319
2425
  document: z.ZodOptional<z.ZodString>;
2320
2426
  event: z.ZodOptional<z.ZodString>;
2321
2427
  fact: z.ZodOptional<z.ZodString>;
2428
+ memory: z.ZodOptional<z.ZodString>;
2322
2429
  line_start: z.ZodOptional<z.ZodNumber>;
2323
2430
  line_end: z.ZodOptional<z.ZodNumber>;
2324
2431
  field: z.ZodOptional<z.ZodString>;
@@ -2343,6 +2450,7 @@ export declare const DegradedReason: z.ZodEnum<{
2343
2450
  retain_verification_failed: "retain_verification_failed";
2344
2451
  retain_apply_failed: "retain_apply_failed";
2345
2452
  partial_temporal_index: "partial_temporal_index";
2453
+ partial_memory_index: "partial_memory_index";
2346
2454
  timeline_range_limited: "timeline_range_limited";
2347
2455
  expansion_failed: "expansion_failed";
2348
2456
  no_vector_index: "no_vector_index";
@@ -2379,6 +2487,7 @@ export declare const ResultEnvelope: z.ZodObject<{
2379
2487
  retain_verification_failed: "retain_verification_failed";
2380
2488
  retain_apply_failed: "retain_apply_failed";
2381
2489
  partial_temporal_index: "partial_temporal_index";
2490
+ partial_memory_index: "partial_memory_index";
2382
2491
  timeline_range_limited: "timeline_range_limited";
2383
2492
  expansion_failed: "expansion_failed";
2384
2493
  no_vector_index: "no_vector_index";
@@ -1 +1 @@
1
- {"version":3,"file":"common.d.ts","sourceRoot":"","sources":["../src/common.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,eAAO,MAAM,QAAQ;;;;;EAA0D,CAAC;AAChF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ASrB,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAEpD,qFAAqF;AACrF,eAAO,MAAM,UAAU,aAGgD,CAAC"}
package/dist/common.js CHANGED
@@ -21,6 +21,24 @@ export const PageManagement = z.object({
21
21
  * different ops. Inferred from the query unless passed explicitly.
22
22
  */
23
23
  export const RecallMode = z.enum(['lookup', 'question', 'explore']);
24
+ /**
25
+ * Which semantic form of retained memory is useful for this read.
26
+ *
27
+ * This is deliberately separate from `RecallMode`: lookup/question/explore controls how Akno
28
+ * searches, while this value controls whether a matching retained sentence may be used as a
29
+ * current fact, attributed report, plan, historical record, unresolved question, or explicitly
30
+ * noncanonical discussion. When omitted, the query is resolved conservatively and ordinary
31
+ * factual memory wins.
32
+ */
33
+ export const MemoryView = z.enum([
34
+ 'factual',
35
+ 'history',
36
+ 'planning',
37
+ 'reports',
38
+ 'questions',
39
+ 'discussion',
40
+ 'all',
41
+ ]);
24
42
  /** How much of a page body a card carries back. */
25
43
  export const Depth = z.enum(['summary', 'lines', 'full']);
26
44
  /**
@@ -318,8 +336,14 @@ export const GraphRelation = z.enum([
318
336
  'owns_document',
319
337
  'participates_in',
320
338
  'derived_from',
339
+ 'corrects',
340
+ 'supersedes',
341
+ 'contradicts',
342
+ 'fulfills',
343
+ 'answers',
344
+ 'caused_by',
321
345
  ]);
322
- export const GraphNodeKind = z.enum(['entity', 'page', 'document', 'fact', 'event', 'observation']);
346
+ export const GraphNodeKind = z.enum(['entity', 'page', 'document', 'fact', 'event', 'memory', 'observation']);
323
347
  /** Compact identity only. Read the referenced page or document for content. */
324
348
  export const GraphNodeRef = z.object({
325
349
  id: z.string(),
@@ -332,6 +356,7 @@ export const GraphNodeRef = z.object({
332
356
  document: z.string().optional(),
333
357
  fact: z.string().optional(),
334
358
  event: z.string().optional(),
359
+ memory: z.string().optional(),
335
360
  observation: z.string().optional(),
336
361
  date: z.string().optional(),
337
362
  line_start: z.number().int().positive().optional(),
@@ -345,6 +370,7 @@ export const GraphEvidenceLocator = z.object({
345
370
  document: z.string().optional(),
346
371
  event: z.string().optional(),
347
372
  fact: z.string().optional(),
373
+ memory: z.string().optional(),
348
374
  line_start: z.number().int().positive().optional(),
349
375
  line_end: z.number().int().positive().optional(),
350
376
  field: z.string().optional(),
@@ -485,6 +511,8 @@ export const DegradedReason = z.enum([
485
511
  'retain_apply_failed',
486
512
  /** Retained temporal rows are absent, stale, or excluded by malformed temporal metadata. */
487
513
  'partial_temporal_index',
514
+ /** Retained-memory discourse projection is absent, stale, ambiguous, or malformed. */
515
+ 'partial_memory_index',
488
516
  /** A bounded recurrence/range guard stopped timeline expansion. */
489
517
  'timeline_range_limited',
490
518
  'expansion_failed',