@tenphi/akno-protocol 0.6.0 → 0.8.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 (42) hide show
  1. package/README.md +1 -1
  2. package/dist/common.d.ts +337 -0
  3. package/dist/common.d.ts.map +1 -1
  4. package/dist/common.js +63 -1
  5. package/dist/common.js.map +1 -1
  6. package/dist/ops/answer.d.ts +123 -0
  7. package/dist/ops/answer.d.ts.map +1 -1
  8. package/dist/ops/answer.js +28 -1
  9. package/dist/ops/answer.js.map +1 -1
  10. package/dist/ops/context.d.ts +141 -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 +60 -2
  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 +71 -0
  25. package/dist/ops/read.d.ts.map +1 -1
  26. package/dist/ops/recall.d.ts +90 -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 +6 -3
  31. package/dist/ops/retain.d.ts.map +1 -1
  32. package/dist/ops/timeline.d.ts +4 -3
  33. package/dist/ops/timeline.d.ts.map +1 -1
  34. package/dist/ops/write.d.ts +1 -0
  35. package/dist/ops/write.d.ts.map +1 -1
  36. package/dist/registry.d.ts +399 -5
  37. package/dist/registry.d.ts.map +1 -1
  38. package/dist/version.d.ts +1 -1
  39. package/dist/version.d.ts.map +1 -1
  40. package/dist/version.js +5 -3
  41. package/dist/version.js.map +1 -1
  42. package/package.json +1 -1
@@ -40,6 +40,15 @@ export declare const ContextInput: z.ZodObject<{
40
40
  question: "question";
41
41
  explore: "explore";
42
42
  }>>;
43
+ memory_view: z.ZodOptional<z.ZodEnum<{
44
+ factual: "factual";
45
+ history: "history";
46
+ planning: "planning";
47
+ reports: "reports";
48
+ questions: "questions";
49
+ discussion: "discussion";
50
+ all: "all";
51
+ }>>;
43
52
  include: z.ZodOptional<z.ZodArray<z.ZodEnum<{
44
53
  knowledge: "knowledge";
45
54
  source: "source";
@@ -100,6 +109,7 @@ export declare const ContextOutput: z.ZodObject<{
100
109
  retain_verification_failed: "retain_verification_failed";
101
110
  retain_apply_failed: "retain_apply_failed";
102
111
  partial_temporal_index: "partial_temporal_index";
112
+ partial_memory_index: "partial_memory_index";
103
113
  timeline_range_limited: "timeline_range_limited";
104
114
  expansion_failed: "expansion_failed";
105
115
  no_vector_index: "no_vector_index";
@@ -261,6 +271,37 @@ export declare const ContextOutput: z.ZodObject<{
261
271
  id: z.ZodString;
262
272
  answer_eligible: z.ZodLiteral<false>;
263
273
  }, z.core.$strip>], "status">>;
274
+ observation: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
275
+ status: z.ZodLiteral<"eligible">;
276
+ id: z.ZodString;
277
+ level: z.ZodLiteral<2>;
278
+ subject: z.ZodString;
279
+ disposition: z.ZodEnum<{
280
+ active: "active";
281
+ superseded: "superseded";
282
+ weakened: "weakened";
283
+ retracted: "retracted";
284
+ }>;
285
+ proof_count: z.ZodNumber;
286
+ evidence: z.ZodArray<z.ZodObject<{
287
+ fact: z.ZodString;
288
+ slug: z.ZodString;
289
+ line: z.ZodNumber;
290
+ line_hash: z.ZodString;
291
+ proof_groups: z.ZodArray<z.ZodString>;
292
+ }, z.core.$strip>>;
293
+ }, z.core.$strip>, z.ZodObject<{
294
+ status: z.ZodLiteral<"ineligible">;
295
+ id: z.ZodString;
296
+ level: z.ZodLiteral<2>;
297
+ disposition: z.ZodEnum<{
298
+ active: "active";
299
+ superseded: "superseded";
300
+ weakened: "weakened";
301
+ retracted: "retracted";
302
+ }>;
303
+ reason: z.ZodString;
304
+ }, z.core.$strip>], "status">>;
264
305
  fact: z.ZodOptional<z.ZodString>;
265
306
  }, z.core.$strip>>;
266
307
  superseded: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -306,6 +347,8 @@ export declare const ContextOutput: z.ZodObject<{
306
347
  kind: z.ZodEnum<{
307
348
  event: "event";
308
349
  fact: "fact";
350
+ memory: "memory";
351
+ observation: "observation";
309
352
  entity: "entity";
310
353
  page: "page";
311
354
  document: "document";
@@ -331,6 +374,8 @@ export declare const ContextOutput: z.ZodObject<{
331
374
  document: z.ZodOptional<z.ZodString>;
332
375
  fact: z.ZodOptional<z.ZodString>;
333
376
  event: z.ZodOptional<z.ZodString>;
377
+ memory: z.ZodOptional<z.ZodString>;
378
+ observation: z.ZodOptional<z.ZodString>;
334
379
  date: z.ZodOptional<z.ZodString>;
335
380
  line_start: z.ZodOptional<z.ZodNumber>;
336
381
  line_end: z.ZodOptional<z.ZodNumber>;
@@ -345,6 +390,8 @@ export declare const ContextOutput: z.ZodObject<{
345
390
  kind: z.ZodEnum<{
346
391
  event: "event";
347
392
  fact: "fact";
393
+ memory: "memory";
394
+ observation: "observation";
348
395
  entity: "entity";
349
396
  page: "page";
350
397
  document: "document";
@@ -370,6 +417,8 @@ export declare const ContextOutput: z.ZodObject<{
370
417
  document: z.ZodOptional<z.ZodString>;
371
418
  fact: z.ZodOptional<z.ZodString>;
372
419
  event: z.ZodOptional<z.ZodString>;
420
+ memory: z.ZodOptional<z.ZodString>;
421
+ observation: z.ZodOptional<z.ZodString>;
373
422
  date: z.ZodOptional<z.ZodString>;
374
423
  line_start: z.ZodOptional<z.ZodNumber>;
375
424
  line_end: z.ZodOptional<z.ZodNumber>;
@@ -384,6 +433,8 @@ export declare const ContextOutput: z.ZodObject<{
384
433
  kind: z.ZodEnum<{
385
434
  event: "event";
386
435
  fact: "fact";
436
+ memory: "memory";
437
+ observation: "observation";
387
438
  entity: "entity";
388
439
  page: "page";
389
440
  document: "document";
@@ -409,6 +460,8 @@ export declare const ContextOutput: z.ZodObject<{
409
460
  document: z.ZodOptional<z.ZodString>;
410
461
  fact: z.ZodOptional<z.ZodString>;
411
462
  event: z.ZodOptional<z.ZodString>;
463
+ memory: z.ZodOptional<z.ZodString>;
464
+ observation: z.ZodOptional<z.ZodString>;
412
465
  date: z.ZodOptional<z.ZodString>;
413
466
  line_start: z.ZodOptional<z.ZodNumber>;
414
467
  line_end: z.ZodOptional<z.ZodNumber>;
@@ -427,6 +480,13 @@ export declare const ContextOutput: z.ZodObject<{
427
480
  related_entity: "related_entity";
428
481
  owns_document: "owns_document";
429
482
  participates_in: "participates_in";
483
+ derived_from: "derived_from";
484
+ corrects: "corrects";
485
+ supersedes: "supersedes";
486
+ contradicts: "contradicts";
487
+ fulfills: "fulfills";
488
+ answers: "answers";
489
+ caused_by: "caused_by";
430
490
  }>>;
431
491
  hops: z.ZodNumber;
432
492
  confidence: z.ZodNumber;
@@ -441,6 +501,7 @@ export declare const ContextOutput: z.ZodObject<{
441
501
  document: z.ZodOptional<z.ZodString>;
442
502
  event: z.ZodOptional<z.ZodString>;
443
503
  fact: z.ZodOptional<z.ZodString>;
504
+ memory: z.ZodOptional<z.ZodString>;
444
505
  line_start: z.ZodOptional<z.ZodNumber>;
445
506
  line_end: z.ZodOptional<z.ZodNumber>;
446
507
  field: z.ZodOptional<z.ZodString>;
@@ -575,6 +636,37 @@ export declare const ContextOutput: z.ZodObject<{
575
636
  id: z.ZodString;
576
637
  answer_eligible: z.ZodLiteral<false>;
577
638
  }, z.core.$strip>], "status">>;
639
+ observation: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
640
+ status: z.ZodLiteral<"eligible">;
641
+ id: z.ZodString;
642
+ level: z.ZodLiteral<2>;
643
+ subject: z.ZodString;
644
+ disposition: z.ZodEnum<{
645
+ active: "active";
646
+ superseded: "superseded";
647
+ weakened: "weakened";
648
+ retracted: "retracted";
649
+ }>;
650
+ proof_count: z.ZodNumber;
651
+ evidence: z.ZodArray<z.ZodObject<{
652
+ fact: z.ZodString;
653
+ slug: z.ZodString;
654
+ line: z.ZodNumber;
655
+ line_hash: z.ZodString;
656
+ proof_groups: z.ZodArray<z.ZodString>;
657
+ }, z.core.$strip>>;
658
+ }, z.core.$strip>, z.ZodObject<{
659
+ status: z.ZodLiteral<"ineligible">;
660
+ id: z.ZodString;
661
+ level: z.ZodLiteral<2>;
662
+ disposition: z.ZodEnum<{
663
+ active: "active";
664
+ superseded: "superseded";
665
+ weakened: "weakened";
666
+ retracted: "retracted";
667
+ }>;
668
+ reason: z.ZodString;
669
+ }, z.core.$strip>], "status">>;
578
670
  fact: z.ZodOptional<z.ZodString>;
579
671
  }, z.core.$strip>>;
580
672
  superseded: z.ZodOptional<z.ZodArray<z.ZodObject<{
@@ -620,6 +712,8 @@ export declare const ContextOutput: z.ZodObject<{
620
712
  kind: z.ZodEnum<{
621
713
  event: "event";
622
714
  fact: "fact";
715
+ memory: "memory";
716
+ observation: "observation";
623
717
  entity: "entity";
624
718
  page: "page";
625
719
  document: "document";
@@ -645,6 +739,8 @@ export declare const ContextOutput: z.ZodObject<{
645
739
  document: z.ZodOptional<z.ZodString>;
646
740
  fact: z.ZodOptional<z.ZodString>;
647
741
  event: z.ZodOptional<z.ZodString>;
742
+ memory: z.ZodOptional<z.ZodString>;
743
+ observation: z.ZodOptional<z.ZodString>;
648
744
  date: z.ZodOptional<z.ZodString>;
649
745
  line_start: z.ZodOptional<z.ZodNumber>;
650
746
  line_end: z.ZodOptional<z.ZodNumber>;
@@ -659,6 +755,8 @@ export declare const ContextOutput: z.ZodObject<{
659
755
  kind: z.ZodEnum<{
660
756
  event: "event";
661
757
  fact: "fact";
758
+ memory: "memory";
759
+ observation: "observation";
662
760
  entity: "entity";
663
761
  page: "page";
664
762
  document: "document";
@@ -684,6 +782,8 @@ export declare const ContextOutput: z.ZodObject<{
684
782
  document: z.ZodOptional<z.ZodString>;
685
783
  fact: z.ZodOptional<z.ZodString>;
686
784
  event: z.ZodOptional<z.ZodString>;
785
+ memory: z.ZodOptional<z.ZodString>;
786
+ observation: z.ZodOptional<z.ZodString>;
687
787
  date: z.ZodOptional<z.ZodString>;
688
788
  line_start: z.ZodOptional<z.ZodNumber>;
689
789
  line_end: z.ZodOptional<z.ZodNumber>;
@@ -698,6 +798,8 @@ export declare const ContextOutput: z.ZodObject<{
698
798
  kind: z.ZodEnum<{
699
799
  event: "event";
700
800
  fact: "fact";
801
+ memory: "memory";
802
+ observation: "observation";
701
803
  entity: "entity";
702
804
  page: "page";
703
805
  document: "document";
@@ -723,6 +825,8 @@ export declare const ContextOutput: z.ZodObject<{
723
825
  document: z.ZodOptional<z.ZodString>;
724
826
  fact: z.ZodOptional<z.ZodString>;
725
827
  event: z.ZodOptional<z.ZodString>;
828
+ memory: z.ZodOptional<z.ZodString>;
829
+ observation: z.ZodOptional<z.ZodString>;
726
830
  date: z.ZodOptional<z.ZodString>;
727
831
  line_start: z.ZodOptional<z.ZodNumber>;
728
832
  line_end: z.ZodOptional<z.ZodNumber>;
@@ -741,6 +845,13 @@ export declare const ContextOutput: z.ZodObject<{
741
845
  related_entity: "related_entity";
742
846
  owns_document: "owns_document";
743
847
  participates_in: "participates_in";
848
+ derived_from: "derived_from";
849
+ corrects: "corrects";
850
+ supersedes: "supersedes";
851
+ contradicts: "contradicts";
852
+ fulfills: "fulfills";
853
+ answers: "answers";
854
+ caused_by: "caused_by";
744
855
  }>>;
745
856
  hops: z.ZodNumber;
746
857
  confidence: z.ZodNumber;
@@ -755,6 +866,7 @@ export declare const ContextOutput: z.ZodObject<{
755
866
  document: z.ZodOptional<z.ZodString>;
756
867
  event: z.ZodOptional<z.ZodString>;
757
868
  fact: z.ZodOptional<z.ZodString>;
869
+ memory: z.ZodOptional<z.ZodString>;
758
870
  line_start: z.ZodOptional<z.ZodNumber>;
759
871
  line_end: z.ZodOptional<z.ZodNumber>;
760
872
  field: z.ZodOptional<z.ZodString>;
@@ -830,6 +942,8 @@ export declare const ContextOutput: z.ZodObject<{
830
942
  kind: z.ZodEnum<{
831
943
  event: "event";
832
944
  fact: "fact";
945
+ memory: "memory";
946
+ observation: "observation";
833
947
  entity: "entity";
834
948
  page: "page";
835
949
  document: "document";
@@ -855,6 +969,8 @@ export declare const ContextOutput: z.ZodObject<{
855
969
  document: z.ZodOptional<z.ZodString>;
856
970
  fact: z.ZodOptional<z.ZodString>;
857
971
  event: z.ZodOptional<z.ZodString>;
972
+ memory: z.ZodOptional<z.ZodString>;
973
+ observation: z.ZodOptional<z.ZodString>;
858
974
  date: z.ZodOptional<z.ZodString>;
859
975
  line_start: z.ZodOptional<z.ZodNumber>;
860
976
  line_end: z.ZodOptional<z.ZodNumber>;
@@ -869,6 +985,8 @@ export declare const ContextOutput: z.ZodObject<{
869
985
  kind: z.ZodEnum<{
870
986
  event: "event";
871
987
  fact: "fact";
988
+ memory: "memory";
989
+ observation: "observation";
872
990
  entity: "entity";
873
991
  page: "page";
874
992
  document: "document";
@@ -894,6 +1012,8 @@ export declare const ContextOutput: z.ZodObject<{
894
1012
  document: z.ZodOptional<z.ZodString>;
895
1013
  fact: z.ZodOptional<z.ZodString>;
896
1014
  event: z.ZodOptional<z.ZodString>;
1015
+ memory: z.ZodOptional<z.ZodString>;
1016
+ observation: z.ZodOptional<z.ZodString>;
897
1017
  date: z.ZodOptional<z.ZodString>;
898
1018
  line_start: z.ZodOptional<z.ZodNumber>;
899
1019
  line_end: z.ZodOptional<z.ZodNumber>;
@@ -908,6 +1028,8 @@ export declare const ContextOutput: z.ZodObject<{
908
1028
  kind: z.ZodEnum<{
909
1029
  event: "event";
910
1030
  fact: "fact";
1031
+ memory: "memory";
1032
+ observation: "observation";
911
1033
  entity: "entity";
912
1034
  page: "page";
913
1035
  document: "document";
@@ -933,6 +1055,8 @@ export declare const ContextOutput: z.ZodObject<{
933
1055
  document: z.ZodOptional<z.ZodString>;
934
1056
  fact: z.ZodOptional<z.ZodString>;
935
1057
  event: z.ZodOptional<z.ZodString>;
1058
+ memory: z.ZodOptional<z.ZodString>;
1059
+ observation: z.ZodOptional<z.ZodString>;
936
1060
  date: z.ZodOptional<z.ZodString>;
937
1061
  line_start: z.ZodOptional<z.ZodNumber>;
938
1062
  line_end: z.ZodOptional<z.ZodNumber>;
@@ -951,6 +1075,13 @@ export declare const ContextOutput: z.ZodObject<{
951
1075
  related_entity: "related_entity";
952
1076
  owns_document: "owns_document";
953
1077
  participates_in: "participates_in";
1078
+ derived_from: "derived_from";
1079
+ corrects: "corrects";
1080
+ supersedes: "supersedes";
1081
+ contradicts: "contradicts";
1082
+ fulfills: "fulfills";
1083
+ answers: "answers";
1084
+ caused_by: "caused_by";
954
1085
  }>>;
955
1086
  hops: z.ZodNumber;
956
1087
  confidence: z.ZodNumber;
@@ -965,6 +1096,7 @@ export declare const ContextOutput: z.ZodObject<{
965
1096
  document: z.ZodOptional<z.ZodString>;
966
1097
  event: z.ZodOptional<z.ZodString>;
967
1098
  fact: z.ZodOptional<z.ZodString>;
1099
+ memory: z.ZodOptional<z.ZodString>;
968
1100
  line_start: z.ZodOptional<z.ZodNumber>;
969
1101
  line_end: z.ZodOptional<z.ZodNumber>;
970
1102
  field: z.ZodOptional<z.ZodString>;
@@ -1175,6 +1307,15 @@ export declare const ContextOutput: z.ZodObject<{
1175
1307
  }, z.core.$strip>], "type">>;
1176
1308
  structure: z.ZodOptional<z.ZodString>;
1177
1309
  searched: z.ZodArray<z.ZodString>;
1310
+ memory_view: z.ZodOptional<z.ZodEnum<{
1311
+ factual: "factual";
1312
+ history: "history";
1313
+ planning: "planning";
1314
+ reports: "reports";
1315
+ questions: "questions";
1316
+ discussion: "discussion";
1317
+ all: "all";
1318
+ }>>;
1178
1319
  coverage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
1179
1320
  qualification: z.ZodOptional<z.ZodObject<{
1180
1321
  model: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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAyBxB,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC"}
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { Card, PageRole, RecallMode, RecallQualification, RecallResult, ResultEnvelope, SlugFilter, } from "../common.js";
2
+ import { Card, MemoryView, PageRole, RecallMode, RecallQualification, RecallResult, ResultEnvelope, SlugFilter, } from "../common.js";
3
3
  import { TimelineResult } from "./timeline.js";
4
4
  export const ContextProfile = z.enum(['default', 'auto_recall']);
5
5
  export const ConversationTurn = z.object({
@@ -28,6 +28,8 @@ export const ContextInput = z
28
28
  /** Include a folder outline so the agent knows what exists. Ignored by auto-recall. */
29
29
  structure: z.boolean().optional(),
30
30
  mode: RecallMode.optional(),
31
+ /** Override retained-memory intent for query-backed context. */
32
+ memory_view: MemoryView.optional(),
31
33
  include: z.array(PageRole).optional(),
32
34
  filter: SlugFilter.optional(),
33
35
  })
@@ -66,6 +68,8 @@ export const ContextOutput = ResultEnvelope.extend({
66
68
  timeline: z.array(TimelineResult),
67
69
  structure: z.string().optional(),
68
70
  searched: z.array(z.string()),
71
+ /** Present when a query-backed recall path selected a retained-memory view. */
72
+ memory_view: MemoryView.optional(),
69
73
  coverage: z.record(z.string(), z.boolean()).optional(),
70
74
  qualification: RecallQualification.optional(),
71
75
  budget_used: z.number().int().nonnegative(),
@@ -1 +1 @@
1
- {"version":3,"file":"context.js","sourceRoot":"","sources":["../../src/ops/context.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,IAAI,EACJ,QAAQ,EACR,UAAU,EACV,mBAAmB,EACnB,YAAY,EACZ,cAAc,EACd,UAAU,GACX,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAE/C,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,aAAa,CAAC,CAAC,CAAC;AAGjE,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC;IACnC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,IAAI,CAAC;CACrC,CAAC,CAAC;AAGH;;;;;GAKG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC;KAC1B,MAAM,CAAC;IACN,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACnC,6FAA6F;IAC7F,OAAO,EAAE,cAAc,CAA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C,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC7B,+EAA+E;IAC/E,WAAW,EAAE,UAAU,CAAC,QAAQ,EAAE;IAClC,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;IACtD,aAAa,EAAE,mBAAmB,CAAC,QAAQ,EAAE;IAC7C,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;IAC3C;mEAC+D;IAC/D,OAAO,EAAE,CAAC;SACP,MAAM,CAAC;QACN,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;QACtC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;QACvC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,WAAW,EAAE;KACzC,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAC"}
@@ -58,6 +58,7 @@ export declare const FolderOutput: z.ZodObject<{
58
58
  retain_verification_failed: "retain_verification_failed";
59
59
  retain_apply_failed: "retain_apply_failed";
60
60
  partial_temporal_index: "partial_temporal_index";
61
+ partial_memory_index: "partial_memory_index";
61
62
  timeline_range_limited: "timeline_range_limited";
62
63
  expansion_failed: "expansion_failed";
63
64
  no_vector_index: "no_vector_index";
@@ -1 +1 @@
1
- {"version":3,"file":"folder.d.ts","sourceRoot":"","sources":["../../src/ops/folder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;iBA0BtB,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAWvB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC"}
1
+ {"version":3,"file":"folder.d.ts","sourceRoot":"","sources":["../../src/ops/folder.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;iBA0BtB,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,WAAW,CAAC,CAAC;AAEtD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAWvB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC"}
@@ -24,10 +24,26 @@ export declare const GraphInput: z.ZodObject<{
24
24
  related_entity: "related_entity";
25
25
  owns_document: "owns_document";
26
26
  participates_in: "participates_in";
27
+ derived_from: "derived_from";
28
+ corrects: "corrects";
29
+ supersedes: "supersedes";
30
+ contradicts: "contradicts";
31
+ fulfills: "fulfills";
32
+ answers: "answers";
33
+ caused_by: "caused_by";
27
34
  }>>>;
28
35
  max_hops: z.ZodOptional<z.ZodUnion<readonly [z.ZodLiteral<1>, z.ZodLiteral<2>, z.ZodLiteral<3>]>>;
29
36
  limit: z.ZodOptional<z.ZodNumber>;
30
37
  include_history: z.ZodOptional<z.ZodBoolean>;
38
+ memory_view: z.ZodOptional<z.ZodEnum<{
39
+ factual: "factual";
40
+ history: "history";
41
+ planning: "planning";
42
+ reports: "reports";
43
+ questions: "questions";
44
+ discussion: "discussion";
45
+ all: "all";
46
+ }>>;
31
47
  }, z.core.$strip>;
32
48
  export type GraphInput = z.infer<typeof GraphInput>;
33
49
  export declare const GraphEdgeRef: z.ZodObject<{
@@ -43,11 +59,19 @@ export declare const GraphEdgeRef: z.ZodObject<{
43
59
  related_entity: "related_entity";
44
60
  owns_document: "owns_document";
45
61
  participates_in: "participates_in";
62
+ derived_from: "derived_from";
63
+ corrects: "corrects";
64
+ supersedes: "supersedes";
65
+ contradicts: "contradicts";
66
+ fulfills: "fulfills";
67
+ answers: "answers";
68
+ caused_by: "caused_by";
46
69
  }>;
47
70
  predicate: z.ZodOptional<z.ZodString>;
48
71
  confidence: z.ZodNumber;
49
72
  derivation: z.ZodEnum<{
50
73
  fact: "fact";
74
+ memory: "memory";
51
75
  structural: "structural";
52
76
  }>;
53
77
  resolution: z.ZodEnum<{
@@ -65,6 +89,7 @@ export declare const GraphEdgeRef: z.ZodObject<{
65
89
  document: z.ZodOptional<z.ZodString>;
66
90
  event: z.ZodOptional<z.ZodString>;
67
91
  fact: z.ZodOptional<z.ZodString>;
92
+ memory: z.ZodOptional<z.ZodString>;
68
93
  line_start: z.ZodOptional<z.ZodNumber>;
69
94
  line_end: z.ZodOptional<z.ZodNumber>;
70
95
  field: z.ZodOptional<z.ZodString>;
@@ -76,8 +101,8 @@ export declare const GraphEdgeRef: z.ZodObject<{
76
101
  export type GraphEdgeRef = z.infer<typeof GraphEdgeRef>;
77
102
  export declare const GraphSeed: z.ZodObject<{
78
103
  form: z.ZodEnum<{
79
- entity: "entity";
80
104
  slug: "slug";
105
+ entity: "entity";
81
106
  query: "query";
82
107
  }>;
83
108
  value: z.ZodString;
@@ -101,6 +126,7 @@ export declare const GraphPath: z.ZodObject<{
101
126
  document: z.ZodOptional<z.ZodString>;
102
127
  event: z.ZodOptional<z.ZodString>;
103
128
  fact: z.ZodOptional<z.ZodString>;
129
+ memory: z.ZodOptional<z.ZodString>;
104
130
  line_start: z.ZodOptional<z.ZodNumber>;
105
131
  line_end: z.ZodOptional<z.ZodNumber>;
106
132
  field: z.ZodOptional<z.ZodString>;
@@ -115,6 +141,8 @@ export declare const GraphAmbiguity: z.ZodObject<{
115
141
  kind: z.ZodEnum<{
116
142
  event: "event";
117
143
  fact: "fact";
144
+ memory: "memory";
145
+ observation: "observation";
118
146
  entity: "entity";
119
147
  page: "page";
120
148
  document: "document";
@@ -140,6 +168,8 @@ export declare const GraphAmbiguity: z.ZodObject<{
140
168
  document: z.ZodOptional<z.ZodString>;
141
169
  fact: z.ZodOptional<z.ZodString>;
142
170
  event: z.ZodOptional<z.ZodString>;
171
+ memory: z.ZodOptional<z.ZodString>;
172
+ observation: z.ZodOptional<z.ZodString>;
143
173
  date: z.ZodOptional<z.ZodString>;
144
174
  line_start: z.ZodOptional<z.ZodNumber>;
145
175
  line_end: z.ZodOptional<z.ZodNumber>;
@@ -169,6 +199,7 @@ export declare const GraphOutput: z.ZodObject<{
169
199
  retain_verification_failed: "retain_verification_failed";
170
200
  retain_apply_failed: "retain_apply_failed";
171
201
  partial_temporal_index: "partial_temporal_index";
202
+ partial_memory_index: "partial_memory_index";
172
203
  timeline_range_limited: "timeline_range_limited";
173
204
  expansion_failed: "expansion_failed";
174
205
  no_vector_index: "no_vector_index";
@@ -188,8 +219,8 @@ export declare const GraphOutput: z.ZodObject<{
188
219
  note: z.ZodOptional<z.ZodString>;
189
220
  seeds: z.ZodArray<z.ZodObject<{
190
221
  form: z.ZodEnum<{
191
- entity: "entity";
192
222
  slug: "slug";
223
+ entity: "entity";
193
224
  query: "query";
194
225
  }>;
195
226
  value: z.ZodString;
@@ -200,6 +231,8 @@ export declare const GraphOutput: z.ZodObject<{
200
231
  kind: z.ZodEnum<{
201
232
  event: "event";
202
233
  fact: "fact";
234
+ memory: "memory";
235
+ observation: "observation";
203
236
  entity: "entity";
204
237
  page: "page";
205
238
  document: "document";
@@ -225,6 +258,8 @@ export declare const GraphOutput: z.ZodObject<{
225
258
  document: z.ZodOptional<z.ZodString>;
226
259
  fact: z.ZodOptional<z.ZodString>;
227
260
  event: z.ZodOptional<z.ZodString>;
261
+ memory: z.ZodOptional<z.ZodString>;
262
+ observation: z.ZodOptional<z.ZodString>;
228
263
  date: z.ZodOptional<z.ZodString>;
229
264
  line_start: z.ZodOptional<z.ZodNumber>;
230
265
  line_end: z.ZodOptional<z.ZodNumber>;
@@ -247,11 +282,19 @@ export declare const GraphOutput: z.ZodObject<{
247
282
  related_entity: "related_entity";
248
283
  owns_document: "owns_document";
249
284
  participates_in: "participates_in";
285
+ derived_from: "derived_from";
286
+ corrects: "corrects";
287
+ supersedes: "supersedes";
288
+ contradicts: "contradicts";
289
+ fulfills: "fulfills";
290
+ answers: "answers";
291
+ caused_by: "caused_by";
250
292
  }>;
251
293
  predicate: z.ZodOptional<z.ZodString>;
252
294
  confidence: z.ZodNumber;
253
295
  derivation: z.ZodEnum<{
254
296
  fact: "fact";
297
+ memory: "memory";
255
298
  structural: "structural";
256
299
  }>;
257
300
  resolution: z.ZodEnum<{
@@ -269,6 +312,7 @@ export declare const GraphOutput: z.ZodObject<{
269
312
  document: z.ZodOptional<z.ZodString>;
270
313
  event: z.ZodOptional<z.ZodString>;
271
314
  fact: z.ZodOptional<z.ZodString>;
315
+ memory: z.ZodOptional<z.ZodString>;
272
316
  line_start: z.ZodOptional<z.ZodNumber>;
273
317
  line_end: z.ZodOptional<z.ZodNumber>;
274
318
  field: z.ZodOptional<z.ZodString>;
@@ -294,6 +338,7 @@ export declare const GraphOutput: z.ZodObject<{
294
338
  document: z.ZodOptional<z.ZodString>;
295
339
  event: z.ZodOptional<z.ZodString>;
296
340
  fact: z.ZodOptional<z.ZodString>;
341
+ memory: z.ZodOptional<z.ZodString>;
297
342
  line_start: z.ZodOptional<z.ZodNumber>;
298
343
  line_end: z.ZodOptional<z.ZodNumber>;
299
344
  field: z.ZodOptional<z.ZodString>;
@@ -307,6 +352,8 @@ export declare const GraphOutput: z.ZodObject<{
307
352
  kind: z.ZodEnum<{
308
353
  event: "event";
309
354
  fact: "fact";
355
+ memory: "memory";
356
+ observation: "observation";
310
357
  entity: "entity";
311
358
  page: "page";
312
359
  document: "document";
@@ -332,6 +379,8 @@ export declare const GraphOutput: z.ZodObject<{
332
379
  document: z.ZodOptional<z.ZodString>;
333
380
  fact: z.ZodOptional<z.ZodString>;
334
381
  event: z.ZodOptional<z.ZodString>;
382
+ memory: z.ZodOptional<z.ZodString>;
383
+ observation: z.ZodOptional<z.ZodString>;
335
384
  date: z.ZodOptional<z.ZodString>;
336
385
  line_start: z.ZodOptional<z.ZodNumber>;
337
386
  line_end: z.ZodOptional<z.ZodNumber>;
@@ -349,6 +398,15 @@ export declare const GraphOutput: z.ZodObject<{
349
398
  no_paths: "no_paths";
350
399
  graph_index_unreadable: "graph_index_unreadable";
351
400
  }>>;
401
+ memory_view: z.ZodEnum<{
402
+ factual: "factual";
403
+ history: "history";
404
+ planning: "planning";
405
+ reports: "reports";
406
+ questions: "questions";
407
+ discussion: "discussion";
408
+ all: "all";
409
+ }>;
352
410
  }, z.core.$strip>;
353
411
  export type GraphOutput = z.infer<typeof GraphOutput>;
354
412
  export { GraphEvidenceLocator, GraphNodeRef, GraphRelation } from '../common.ts';
@@ -1 +1 @@
1
- {"version":3,"file":"graph.d.ts","sourceRoot":"","sources":["../../src/ops/graph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,cAAc;;;;EAAgC,CAAC;AAC5D,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAE5D,mFAAmF;AACnF,eAAO,MAAM,UAAU;;;;;;;;;;;;;;;;;;;;;;iBAcnB,CAAC;AACL,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,UAAU,CAAC,CAAC;AAEpD,eAAO,MAAM,YAAY;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAavB,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OA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AAC"}
package/dist/ops/graph.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- import { GraphEvidenceLocator, GraphNodeRef, GraphRelation, ResultEnvelope } from "../common.js";
2
+ import { GraphEvidenceLocator, GraphNodeRef, GraphRelation, MemoryView, ResultEnvelope } from "../common.js";
3
3
  export const GraphDirection = z.enum(['out', 'in', 'both']);
4
4
  /** One exact seed form. Query seeds still resolve only evidence-declared names. */
5
5
  export const GraphInput = z
@@ -13,6 +13,8 @@ export const GraphInput = z
13
13
  /** Maximum returned paths. Nodes, edges, and per-node fan-out have separate hard caps. */
14
14
  limit: z.number().int().positive().max(100).optional(),
15
15
  include_history: z.boolean().optional(),
16
+ /** Restrict typed retained-memory relation edges. Inferred for query seeds, factual otherwise. */
17
+ memory_view: MemoryView.optional(),
16
18
  })
17
19
  .refine((value) => [value.slug, value.entity, value.query].filter(Boolean).length === 1, {
18
20
  message: 'graph requires exactly one of: slug, entity, query',
@@ -24,7 +26,7 @@ export const GraphEdgeRef = z.object({
24
26
  relation: GraphRelation,
25
27
  predicate: z.string().optional(),
26
28
  confidence: z.number().min(0).max(1),
27
- derivation: z.enum(['structural', 'fact']),
29
+ derivation: z.enum(['structural', 'fact', 'memory']),
28
30
  resolution: z.enum(['exact', 'contextual']),
29
31
  evidence: GraphEvidenceLocator,
30
32
  valid_from: z.string().optional(),
@@ -58,6 +60,7 @@ export const GraphOutput = ResultEnvelope.extend({
58
60
  total: z.number().int().nonnegative(),
59
61
  truncated: z.boolean(),
60
62
  reason: z.enum(['seed_not_found', 'no_paths', 'graph_index_unreadable']).optional(),
63
+ memory_view: MemoryView,
61
64
  });
62
65
  export { GraphEvidenceLocator, GraphNodeRef, GraphRelation } from "../common.js";
63
66
  //# sourceMappingURL=graph.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"graph.js","sourceRoot":"","sources":["../../src/ops/graph.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;A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