@remnic/core 9.6.5 → 9.6.6
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.
- package/dist/access-admin-ops-surface.d.ts +2 -2
- package/dist/access-boundary.d.ts +2 -2
- package/dist/access-cli.js +2 -2
- package/dist/access-http.d.ts +2 -2
- package/dist/access-identity-continuity-surface.d.ts +1 -1
- package/dist/access-lcm-surface.d.ts +2 -2
- package/dist/access-mcp.d.ts +2 -2
- package/dist/access-observe-write-surface.d.ts +2 -2
- package/dist/access-operations.d.ts +5 -5
- package/dist/access-recall-surface.d.ts +2 -2
- package/dist/access-schema.d.ts +64 -64
- package/dist/{access-service-BjiJMXBo.d.ts → access-service-DVrdUFNx.d.ts} +1 -1
- package/dist/access-service.d.ts +2 -2
- package/dist/access-surface-catalog.d.ts +2 -2
- package/dist/bootstrap.d.ts +1 -1
- package/dist/{chunk-DTL3OPAJ.js → chunk-BQUE75AB.js} +16 -6
- package/dist/chunk-BQUE75AB.js.map +1 -0
- package/dist/{chunk-IVE2J73I.js → chunk-MVAQLXM2.js} +1 -11
- package/dist/chunk-MVAQLXM2.js.map +1 -0
- package/dist/{cli-BkZQIerV.d.ts → cli-Dzh-d4Y3.d.ts} +32 -14
- package/dist/cli.d.ts +9 -9
- package/dist/cli.js +1 -1
- package/dist/explicit-capture.d.ts +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/index.js +2 -2
- package/dist/mcp-memory-inspector-app.d.ts +2 -2
- package/dist/{orchestrator-BTbvvmgN.d.ts → orchestrator-DiFog4aM.d.ts} +8 -15
- package/dist/orchestrator.d.ts +1 -1
- package/dist/orchestrator.js +2 -2
- package/dist/schemas.d.ts +74 -74
- package/dist/shared-context/manager.d.ts +8 -8
- package/dist/transfer/types.d.ts +66 -66
- package/package.json +2 -2
- package/src/cli.ts +65 -9
- package/src/orchestration/tier-migration-coordinator.ts +7 -9
- package/src/orchestrator.ts +0 -16
- package/dist/chunk-DTL3OPAJ.js.map +0 -1
- package/dist/chunk-IVE2J73I.js.map +0 -1
package/dist/transfer/types.d.ts
CHANGED
|
@@ -20,26 +20,26 @@ declare const ExportManifestV1Schema: z.ZodObject<{
|
|
|
20
20
|
bytes: number;
|
|
21
21
|
}>, "many">;
|
|
22
22
|
}, "strip", z.ZodTypeAny, {
|
|
23
|
-
|
|
23
|
+
format: "openclaw-engram-export";
|
|
24
24
|
createdAt: string;
|
|
25
|
+
pluginVersion: string;
|
|
25
26
|
files: {
|
|
26
27
|
path: string;
|
|
27
28
|
sha256: string;
|
|
28
29
|
bytes: number;
|
|
29
30
|
}[];
|
|
30
|
-
|
|
31
|
-
pluginVersion: string;
|
|
31
|
+
schemaVersion: 1;
|
|
32
32
|
includesTranscripts: boolean;
|
|
33
33
|
}, {
|
|
34
|
-
|
|
34
|
+
format: "openclaw-engram-export";
|
|
35
35
|
createdAt: string;
|
|
36
|
+
pluginVersion: string;
|
|
36
37
|
files: {
|
|
37
38
|
path: string;
|
|
38
39
|
sha256: string;
|
|
39
40
|
bytes: number;
|
|
40
41
|
}[];
|
|
41
|
-
|
|
42
|
-
pluginVersion: string;
|
|
42
|
+
schemaVersion: 1;
|
|
43
43
|
includesTranscripts: boolean;
|
|
44
44
|
}>;
|
|
45
45
|
type ExportManifestV1 = z.infer<typeof ExportManifestV1Schema>;
|
|
@@ -75,26 +75,26 @@ declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
75
75
|
bytes: number;
|
|
76
76
|
}>, "many">;
|
|
77
77
|
}, "strip", z.ZodTypeAny, {
|
|
78
|
-
|
|
78
|
+
format: "openclaw-engram-export";
|
|
79
79
|
createdAt: string;
|
|
80
|
+
pluginVersion: string;
|
|
80
81
|
files: {
|
|
81
82
|
path: string;
|
|
82
83
|
sha256: string;
|
|
83
84
|
bytes: number;
|
|
84
85
|
}[];
|
|
85
|
-
|
|
86
|
-
pluginVersion: string;
|
|
86
|
+
schemaVersion: 1;
|
|
87
87
|
includesTranscripts: boolean;
|
|
88
88
|
}, {
|
|
89
|
-
|
|
89
|
+
format: "openclaw-engram-export";
|
|
90
90
|
createdAt: string;
|
|
91
|
+
pluginVersion: string;
|
|
91
92
|
files: {
|
|
92
93
|
path: string;
|
|
93
94
|
sha256: string;
|
|
94
95
|
bytes: number;
|
|
95
96
|
}[];
|
|
96
|
-
|
|
97
|
-
pluginVersion: string;
|
|
97
|
+
schemaVersion: 1;
|
|
98
98
|
includesTranscripts: boolean;
|
|
99
99
|
}>;
|
|
100
100
|
records: z.ZodArray<z.ZodObject<{
|
|
@@ -109,15 +109,15 @@ declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
109
109
|
}>, "many">;
|
|
110
110
|
}, "strip", z.ZodTypeAny, {
|
|
111
111
|
manifest: {
|
|
112
|
-
|
|
112
|
+
format: "openclaw-engram-export";
|
|
113
113
|
createdAt: string;
|
|
114
|
+
pluginVersion: string;
|
|
114
115
|
files: {
|
|
115
116
|
path: string;
|
|
116
117
|
sha256: string;
|
|
117
118
|
bytes: number;
|
|
118
119
|
}[];
|
|
119
|
-
|
|
120
|
-
pluginVersion: string;
|
|
120
|
+
schemaVersion: 1;
|
|
121
121
|
includesTranscripts: boolean;
|
|
122
122
|
};
|
|
123
123
|
records: {
|
|
@@ -126,15 +126,15 @@ declare const ExportBundleV1Schema: z.ZodObject<{
|
|
|
126
126
|
}[];
|
|
127
127
|
}, {
|
|
128
128
|
manifest: {
|
|
129
|
-
|
|
129
|
+
format: "openclaw-engram-export";
|
|
130
130
|
createdAt: string;
|
|
131
|
+
pluginVersion: string;
|
|
131
132
|
files: {
|
|
132
133
|
path: string;
|
|
133
134
|
sha256: string;
|
|
134
135
|
bytes: number;
|
|
135
136
|
}[];
|
|
136
|
-
|
|
137
|
-
pluginVersion: string;
|
|
137
|
+
schemaVersion: 1;
|
|
138
138
|
includesTranscripts: boolean;
|
|
139
139
|
};
|
|
140
140
|
records: {
|
|
@@ -313,16 +313,16 @@ declare const CapsuleBlockSchema: z.ZodObject<{
|
|
|
313
313
|
peerProfiles: boolean;
|
|
314
314
|
}>;
|
|
315
315
|
}, "strip", z.ZodTypeAny, {
|
|
316
|
-
schemaVersion: string;
|
|
317
316
|
includes: {
|
|
318
317
|
procedural: boolean;
|
|
319
318
|
taxonomy: boolean;
|
|
320
319
|
identityAnchors: boolean;
|
|
321
320
|
peerProfiles: boolean;
|
|
322
321
|
};
|
|
322
|
+
description: string;
|
|
323
323
|
id: string;
|
|
324
|
+
schemaVersion: string;
|
|
324
325
|
version: string;
|
|
325
|
-
description: string;
|
|
326
326
|
parentCapsule: string | null;
|
|
327
327
|
retrievalPolicy: {
|
|
328
328
|
tierWeights: Record<string, number>;
|
|
@@ -334,16 +334,16 @@ declare const CapsuleBlockSchema: z.ZodObject<{
|
|
|
334
334
|
forkRoot: string;
|
|
335
335
|
} | null;
|
|
336
336
|
}, {
|
|
337
|
-
schemaVersion: string;
|
|
338
337
|
includes: {
|
|
339
338
|
procedural: boolean;
|
|
340
339
|
taxonomy: boolean;
|
|
341
340
|
identityAnchors: boolean;
|
|
342
341
|
peerProfiles: boolean;
|
|
343
342
|
};
|
|
343
|
+
description: string;
|
|
344
344
|
id: string;
|
|
345
|
+
schemaVersion: string;
|
|
345
346
|
version: string;
|
|
346
|
-
description: string;
|
|
347
347
|
parentCapsule: string | null;
|
|
348
348
|
retrievalPolicy: {
|
|
349
349
|
tierWeights: Record<string, number>;
|
|
@@ -464,16 +464,16 @@ declare const ExportManifestV2Schema: z.ZodObject<{
|
|
|
464
464
|
peerProfiles: boolean;
|
|
465
465
|
}>;
|
|
466
466
|
}, "strip", z.ZodTypeAny, {
|
|
467
|
-
schemaVersion: string;
|
|
468
467
|
includes: {
|
|
469
468
|
procedural: boolean;
|
|
470
469
|
taxonomy: boolean;
|
|
471
470
|
identityAnchors: boolean;
|
|
472
471
|
peerProfiles: boolean;
|
|
473
472
|
};
|
|
473
|
+
description: string;
|
|
474
474
|
id: string;
|
|
475
|
+
schemaVersion: string;
|
|
475
476
|
version: string;
|
|
476
|
-
description: string;
|
|
477
477
|
parentCapsule: string | null;
|
|
478
478
|
retrievalPolicy: {
|
|
479
479
|
tierWeights: Record<string, number>;
|
|
@@ -485,16 +485,16 @@ declare const ExportManifestV2Schema: z.ZodObject<{
|
|
|
485
485
|
forkRoot: string;
|
|
486
486
|
} | null;
|
|
487
487
|
}, {
|
|
488
|
-
schemaVersion: string;
|
|
489
488
|
includes: {
|
|
490
489
|
procedural: boolean;
|
|
491
490
|
taxonomy: boolean;
|
|
492
491
|
identityAnchors: boolean;
|
|
493
492
|
peerProfiles: boolean;
|
|
494
493
|
};
|
|
494
|
+
description: string;
|
|
495
495
|
id: string;
|
|
496
|
+
schemaVersion: string;
|
|
496
497
|
version: string;
|
|
497
|
-
description: string;
|
|
498
498
|
parentCapsule: string | null;
|
|
499
499
|
retrievalPolicy: {
|
|
500
500
|
tierWeights: Record<string, number>;
|
|
@@ -507,27 +507,25 @@ declare const ExportManifestV2Schema: z.ZodObject<{
|
|
|
507
507
|
} | null | undefined;
|
|
508
508
|
}>;
|
|
509
509
|
}, "strip", z.ZodTypeAny, {
|
|
510
|
-
|
|
510
|
+
format: "openclaw-engram-export";
|
|
511
511
|
createdAt: string;
|
|
512
|
+
pluginVersion: string;
|
|
512
513
|
files: {
|
|
513
514
|
path: string;
|
|
514
515
|
sha256: string;
|
|
515
516
|
bytes: number;
|
|
516
517
|
}[];
|
|
517
|
-
format: "openclaw-engram-export";
|
|
518
|
-
pluginVersion: string;
|
|
519
|
-
includesTranscripts: boolean;
|
|
520
518
|
capsule: {
|
|
521
|
-
schemaVersion: string;
|
|
522
519
|
includes: {
|
|
523
520
|
procedural: boolean;
|
|
524
521
|
taxonomy: boolean;
|
|
525
522
|
identityAnchors: boolean;
|
|
526
523
|
peerProfiles: boolean;
|
|
527
524
|
};
|
|
525
|
+
description: string;
|
|
528
526
|
id: string;
|
|
527
|
+
schemaVersion: string;
|
|
529
528
|
version: string;
|
|
530
|
-
description: string;
|
|
531
529
|
parentCapsule: string | null;
|
|
532
530
|
retrievalPolicy: {
|
|
533
531
|
tierWeights: Record<string, number>;
|
|
@@ -539,28 +537,28 @@ declare const ExportManifestV2Schema: z.ZodObject<{
|
|
|
539
537
|
forkRoot: string;
|
|
540
538
|
} | null;
|
|
541
539
|
};
|
|
542
|
-
}, {
|
|
543
540
|
schemaVersion: 2;
|
|
541
|
+
includesTranscripts: boolean;
|
|
542
|
+
}, {
|
|
543
|
+
format: "openclaw-engram-export";
|
|
544
544
|
createdAt: string;
|
|
545
|
+
pluginVersion: string;
|
|
545
546
|
files: {
|
|
546
547
|
path: string;
|
|
547
548
|
sha256: string;
|
|
548
549
|
bytes: number;
|
|
549
550
|
}[];
|
|
550
|
-
format: "openclaw-engram-export";
|
|
551
|
-
pluginVersion: string;
|
|
552
|
-
includesTranscripts: boolean;
|
|
553
551
|
capsule: {
|
|
554
|
-
schemaVersion: string;
|
|
555
552
|
includes: {
|
|
556
553
|
procedural: boolean;
|
|
557
554
|
taxonomy: boolean;
|
|
558
555
|
identityAnchors: boolean;
|
|
559
556
|
peerProfiles: boolean;
|
|
560
557
|
};
|
|
558
|
+
description: string;
|
|
561
559
|
id: string;
|
|
560
|
+
schemaVersion: string;
|
|
562
561
|
version: string;
|
|
563
|
-
description: string;
|
|
564
562
|
parentCapsule: string | null;
|
|
565
563
|
retrievalPolicy: {
|
|
566
564
|
tierWeights: Record<string, number>;
|
|
@@ -572,6 +570,8 @@ declare const ExportManifestV2Schema: z.ZodObject<{
|
|
|
572
570
|
forkRoot: string;
|
|
573
571
|
} | null | undefined;
|
|
574
572
|
};
|
|
573
|
+
schemaVersion: 2;
|
|
574
|
+
includesTranscripts: boolean;
|
|
575
575
|
}>;
|
|
576
576
|
type ExportManifestV2 = z.infer<typeof ExportManifestV2Schema>;
|
|
577
577
|
declare const ExportBundleV2Schema: z.ZodObject<{
|
|
@@ -683,16 +683,16 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
683
683
|
peerProfiles: boolean;
|
|
684
684
|
}>;
|
|
685
685
|
}, "strip", z.ZodTypeAny, {
|
|
686
|
-
schemaVersion: string;
|
|
687
686
|
includes: {
|
|
688
687
|
procedural: boolean;
|
|
689
688
|
taxonomy: boolean;
|
|
690
689
|
identityAnchors: boolean;
|
|
691
690
|
peerProfiles: boolean;
|
|
692
691
|
};
|
|
692
|
+
description: string;
|
|
693
693
|
id: string;
|
|
694
|
+
schemaVersion: string;
|
|
694
695
|
version: string;
|
|
695
|
-
description: string;
|
|
696
696
|
parentCapsule: string | null;
|
|
697
697
|
retrievalPolicy: {
|
|
698
698
|
tierWeights: Record<string, number>;
|
|
@@ -704,16 +704,16 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
704
704
|
forkRoot: string;
|
|
705
705
|
} | null;
|
|
706
706
|
}, {
|
|
707
|
-
schemaVersion: string;
|
|
708
707
|
includes: {
|
|
709
708
|
procedural: boolean;
|
|
710
709
|
taxonomy: boolean;
|
|
711
710
|
identityAnchors: boolean;
|
|
712
711
|
peerProfiles: boolean;
|
|
713
712
|
};
|
|
713
|
+
description: string;
|
|
714
714
|
id: string;
|
|
715
|
+
schemaVersion: string;
|
|
715
716
|
version: string;
|
|
716
|
-
description: string;
|
|
717
717
|
parentCapsule: string | null;
|
|
718
718
|
retrievalPolicy: {
|
|
719
719
|
tierWeights: Record<string, number>;
|
|
@@ -726,27 +726,25 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
726
726
|
} | null | undefined;
|
|
727
727
|
}>;
|
|
728
728
|
}, "strip", z.ZodTypeAny, {
|
|
729
|
-
|
|
729
|
+
format: "openclaw-engram-export";
|
|
730
730
|
createdAt: string;
|
|
731
|
+
pluginVersion: string;
|
|
731
732
|
files: {
|
|
732
733
|
path: string;
|
|
733
734
|
sha256: string;
|
|
734
735
|
bytes: number;
|
|
735
736
|
}[];
|
|
736
|
-
format: "openclaw-engram-export";
|
|
737
|
-
pluginVersion: string;
|
|
738
|
-
includesTranscripts: boolean;
|
|
739
737
|
capsule: {
|
|
740
|
-
schemaVersion: string;
|
|
741
738
|
includes: {
|
|
742
739
|
procedural: boolean;
|
|
743
740
|
taxonomy: boolean;
|
|
744
741
|
identityAnchors: boolean;
|
|
745
742
|
peerProfiles: boolean;
|
|
746
743
|
};
|
|
744
|
+
description: string;
|
|
747
745
|
id: string;
|
|
746
|
+
schemaVersion: string;
|
|
748
747
|
version: string;
|
|
749
|
-
description: string;
|
|
750
748
|
parentCapsule: string | null;
|
|
751
749
|
retrievalPolicy: {
|
|
752
750
|
tierWeights: Record<string, number>;
|
|
@@ -758,28 +756,28 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
758
756
|
forkRoot: string;
|
|
759
757
|
} | null;
|
|
760
758
|
};
|
|
761
|
-
}, {
|
|
762
759
|
schemaVersion: 2;
|
|
760
|
+
includesTranscripts: boolean;
|
|
761
|
+
}, {
|
|
762
|
+
format: "openclaw-engram-export";
|
|
763
763
|
createdAt: string;
|
|
764
|
+
pluginVersion: string;
|
|
764
765
|
files: {
|
|
765
766
|
path: string;
|
|
766
767
|
sha256: string;
|
|
767
768
|
bytes: number;
|
|
768
769
|
}[];
|
|
769
|
-
format: "openclaw-engram-export";
|
|
770
|
-
pluginVersion: string;
|
|
771
|
-
includesTranscripts: boolean;
|
|
772
770
|
capsule: {
|
|
773
|
-
schemaVersion: string;
|
|
774
771
|
includes: {
|
|
775
772
|
procedural: boolean;
|
|
776
773
|
taxonomy: boolean;
|
|
777
774
|
identityAnchors: boolean;
|
|
778
775
|
peerProfiles: boolean;
|
|
779
776
|
};
|
|
777
|
+
description: string;
|
|
780
778
|
id: string;
|
|
779
|
+
schemaVersion: string;
|
|
781
780
|
version: string;
|
|
782
|
-
description: string;
|
|
783
781
|
parentCapsule: string | null;
|
|
784
782
|
retrievalPolicy: {
|
|
785
783
|
tierWeights: Record<string, number>;
|
|
@@ -791,6 +789,8 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
791
789
|
forkRoot: string;
|
|
792
790
|
} | null | undefined;
|
|
793
791
|
};
|
|
792
|
+
schemaVersion: 2;
|
|
793
|
+
includesTranscripts: boolean;
|
|
794
794
|
}>;
|
|
795
795
|
records: z.ZodArray<z.ZodObject<{
|
|
796
796
|
path: z.ZodString;
|
|
@@ -804,27 +804,25 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
804
804
|
}>, "many">;
|
|
805
805
|
}, "strip", z.ZodTypeAny, {
|
|
806
806
|
manifest: {
|
|
807
|
-
|
|
807
|
+
format: "openclaw-engram-export";
|
|
808
808
|
createdAt: string;
|
|
809
|
+
pluginVersion: string;
|
|
809
810
|
files: {
|
|
810
811
|
path: string;
|
|
811
812
|
sha256: string;
|
|
812
813
|
bytes: number;
|
|
813
814
|
}[];
|
|
814
|
-
format: "openclaw-engram-export";
|
|
815
|
-
pluginVersion: string;
|
|
816
|
-
includesTranscripts: boolean;
|
|
817
815
|
capsule: {
|
|
818
|
-
schemaVersion: string;
|
|
819
816
|
includes: {
|
|
820
817
|
procedural: boolean;
|
|
821
818
|
taxonomy: boolean;
|
|
822
819
|
identityAnchors: boolean;
|
|
823
820
|
peerProfiles: boolean;
|
|
824
821
|
};
|
|
822
|
+
description: string;
|
|
825
823
|
id: string;
|
|
824
|
+
schemaVersion: string;
|
|
826
825
|
version: string;
|
|
827
|
-
description: string;
|
|
828
826
|
parentCapsule: string | null;
|
|
829
827
|
retrievalPolicy: {
|
|
830
828
|
tierWeights: Record<string, number>;
|
|
@@ -836,6 +834,8 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
836
834
|
forkRoot: string;
|
|
837
835
|
} | null;
|
|
838
836
|
};
|
|
837
|
+
schemaVersion: 2;
|
|
838
|
+
includesTranscripts: boolean;
|
|
839
839
|
};
|
|
840
840
|
records: {
|
|
841
841
|
content: string;
|
|
@@ -843,27 +843,25 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
843
843
|
}[];
|
|
844
844
|
}, {
|
|
845
845
|
manifest: {
|
|
846
|
-
|
|
846
|
+
format: "openclaw-engram-export";
|
|
847
847
|
createdAt: string;
|
|
848
|
+
pluginVersion: string;
|
|
848
849
|
files: {
|
|
849
850
|
path: string;
|
|
850
851
|
sha256: string;
|
|
851
852
|
bytes: number;
|
|
852
853
|
}[];
|
|
853
|
-
format: "openclaw-engram-export";
|
|
854
|
-
pluginVersion: string;
|
|
855
|
-
includesTranscripts: boolean;
|
|
856
854
|
capsule: {
|
|
857
|
-
schemaVersion: string;
|
|
858
855
|
includes: {
|
|
859
856
|
procedural: boolean;
|
|
860
857
|
taxonomy: boolean;
|
|
861
858
|
identityAnchors: boolean;
|
|
862
859
|
peerProfiles: boolean;
|
|
863
860
|
};
|
|
861
|
+
description: string;
|
|
864
862
|
id: string;
|
|
863
|
+
schemaVersion: string;
|
|
865
864
|
version: string;
|
|
866
|
-
description: string;
|
|
867
865
|
parentCapsule: string | null;
|
|
868
866
|
retrievalPolicy: {
|
|
869
867
|
tierWeights: Record<string, number>;
|
|
@@ -875,6 +873,8 @@ declare const ExportBundleV2Schema: z.ZodObject<{
|
|
|
875
873
|
forkRoot: string;
|
|
876
874
|
} | null | undefined;
|
|
877
875
|
};
|
|
876
|
+
schemaVersion: 2;
|
|
877
|
+
includesTranscripts: boolean;
|
|
878
878
|
};
|
|
879
879
|
records: {
|
|
880
880
|
content: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@remnic/core",
|
|
3
|
-
"version": "9.6.
|
|
3
|
+
"version": "9.6.6",
|
|
4
4
|
"description": "Framework-agnostic Remnic memory engine — orchestrator, storage, extraction, search, trust zones",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -3000,7 +3000,7 @@
|
|
|
3000
3000
|
"core"
|
|
3001
3001
|
],
|
|
3002
3002
|
"peerDependencies": {
|
|
3003
|
-
"@remnic/coding-graph": "^9.6.
|
|
3003
|
+
"@remnic/coding-graph": "^9.6.6"
|
|
3004
3004
|
},
|
|
3005
3005
|
"peerDependenciesMeta": {
|
|
3006
3006
|
"@remnic/coding-graph": {
|
package/src/cli.ts
CHANGED
|
@@ -217,6 +217,8 @@ import {
|
|
|
217
217
|
planSessionTranscriptMigration,
|
|
218
218
|
} from "./session-transcript-migration.js";
|
|
219
219
|
import type { TierMigrationCycleSummary, TierMigrationStatusSnapshot } from "./recall-state.js";
|
|
220
|
+
import type { TierMigrationCoordinator } from "./orchestration/tier-migration-coordinator.js";
|
|
221
|
+
import type { StorageManager } from "./index.js";
|
|
220
222
|
import {
|
|
221
223
|
readRuntimePolicySnapshot as readPolicyRuntimeSnapshot,
|
|
222
224
|
sanitizeRuntimePolicyValues,
|
|
@@ -689,11 +691,6 @@ export interface SessionRepairCliCommandOptions {
|
|
|
689
691
|
sessionFilesDir?: string;
|
|
690
692
|
}
|
|
691
693
|
|
|
692
|
-
export interface TierMigrationCliOrchestrator {
|
|
693
|
-
getTierMigrationStatus(): Promise<TierMigrationStatusSnapshot>;
|
|
694
|
-
runTierMigrationNow(options?: { dryRun?: boolean; limit?: number }): Promise<TierMigrationCycleSummary>;
|
|
695
|
-
}
|
|
696
|
-
|
|
697
694
|
export interface MemoryActionAuditCliCommandOptions {
|
|
698
695
|
namespace?: string;
|
|
699
696
|
limit?: number;
|
|
@@ -1870,17 +1867,76 @@ export async function runSessionRepairCliCommand(
|
|
|
1870
1867
|
return { report, plan, applyResult };
|
|
1871
1868
|
}
|
|
1872
1869
|
|
|
1870
|
+
// ---------------------------------------------------------------------------
|
|
1871
|
+
// Tier migration CLI adapters
|
|
1872
|
+
//
|
|
1873
|
+
// The public exports below accept two adapter shapes and normalize at this
|
|
1874
|
+
// boundary; registerCli always passes the coordinator shape internally.
|
|
1875
|
+
// 1. Coordinator shape — the orchestrator exposes the extracted
|
|
1876
|
+
// TierMigrationCoordinator directly (current wiring).
|
|
1877
|
+
// 2. Legacy shape — the orchestrator formerly forwarded via
|
|
1878
|
+
// getTierMigrationStatus / runTierMigrationNow delegates. External
|
|
1879
|
+
// callers (tests, integrations) that still pass the old shape keep
|
|
1880
|
+
// working.
|
|
1881
|
+
// ---------------------------------------------------------------------------
|
|
1882
|
+
|
|
1883
|
+
/** Coordinator-shaped adapter for tier-status reads. */
|
|
1884
|
+
export interface TierStatusCoordinatorCliAdapter {
|
|
1885
|
+
readonly tierMigrationCoordinator: Pick<TierMigrationCoordinator, "getStatus">;
|
|
1886
|
+
}
|
|
1887
|
+
|
|
1888
|
+
/** Legacy adapter shape for tier-status reads (former orchestrator delegate). */
|
|
1889
|
+
export interface TierStatusLegacyCliAdapter {
|
|
1890
|
+
getTierMigrationStatus():
|
|
1891
|
+
| Promise<TierMigrationStatusSnapshot>
|
|
1892
|
+
| TierMigrationStatusSnapshot;
|
|
1893
|
+
}
|
|
1894
|
+
|
|
1895
|
+
/** Accepted input for {@link runTierStatusCliCommand}. */
|
|
1896
|
+
export type TierStatusCliAdapter =
|
|
1897
|
+
| TierStatusCoordinatorCliAdapter
|
|
1898
|
+
| TierStatusLegacyCliAdapter;
|
|
1899
|
+
|
|
1900
|
+
/** Coordinator-shaped adapter for tier-migrate runs. */
|
|
1901
|
+
export interface TierMigrateCoordinatorCliAdapter {
|
|
1902
|
+
readonly tierMigrationCoordinator: Pick<TierMigrationCoordinator, "runCycle">;
|
|
1903
|
+
readonly storage: StorageManager;
|
|
1904
|
+
}
|
|
1905
|
+
|
|
1906
|
+
/** Legacy adapter shape for tier-migrate runs (former orchestrator delegate). */
|
|
1907
|
+
export interface TierMigrateLegacyCliAdapter {
|
|
1908
|
+
runTierMigrationNow(options?: {
|
|
1909
|
+
dryRun?: boolean;
|
|
1910
|
+
limit?: number;
|
|
1911
|
+
}): Promise<TierMigrationCycleSummary>;
|
|
1912
|
+
}
|
|
1913
|
+
|
|
1914
|
+
/** Accepted input for {@link runTierMigrateCliCommand}. */
|
|
1915
|
+
export type TierMigrateCliAdapter =
|
|
1916
|
+
| TierMigrateCoordinatorCliAdapter
|
|
1917
|
+
| TierMigrateLegacyCliAdapter;
|
|
1918
|
+
|
|
1873
1919
|
export async function runTierStatusCliCommand(
|
|
1874
|
-
|
|
1920
|
+
adapter: TierStatusCliAdapter,
|
|
1875
1921
|
): Promise<TierMigrationStatusSnapshot> {
|
|
1876
|
-
|
|
1922
|
+
if ("tierMigrationCoordinator" in adapter && typeof adapter.tierMigrationCoordinator.getStatus === "function") {
|
|
1923
|
+
return adapter.tierMigrationCoordinator.getStatus();
|
|
1924
|
+
}
|
|
1925
|
+
return (adapter as TierStatusLegacyCliAdapter).getTierMigrationStatus();
|
|
1877
1926
|
}
|
|
1878
1927
|
|
|
1879
1928
|
export async function runTierMigrateCliCommand(
|
|
1880
|
-
|
|
1929
|
+
adapter: TierMigrateCliAdapter,
|
|
1881
1930
|
options: { dryRun?: boolean; limit?: number } = {},
|
|
1882
1931
|
): Promise<TierMigrationCycleSummary> {
|
|
1883
|
-
|
|
1932
|
+
if ("tierMigrationCoordinator" in adapter && typeof adapter.tierMigrationCoordinator.runCycle === "function") {
|
|
1933
|
+
return adapter.tierMigrationCoordinator.runCycle(
|
|
1934
|
+
adapter.storage,
|
|
1935
|
+
"manual",
|
|
1936
|
+
{ dryRun: options.dryRun === true, limitOverride: options.limit, force: false },
|
|
1937
|
+
);
|
|
1938
|
+
}
|
|
1939
|
+
return (adapter as TierMigrateLegacyCliAdapter).runTierMigrationNow({
|
|
1884
1940
|
dryRun: options.dryRun === true,
|
|
1885
1941
|
limit: options.limit,
|
|
1886
1942
|
});
|
|
@@ -8,15 +8,13 @@
|
|
|
8
8
|
* - promotion/demotion execution via TierMigrationExecutor
|
|
9
9
|
* - status recording through TierMigrationStatusStore
|
|
10
10
|
*
|
|
11
|
-
* The orchestrator constructs one instance and
|
|
12
|
-
*
|
|
13
|
-
* `
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
*
|
|
17
|
-
*
|
|
18
|
-
* orchestrator keeps thin delegating methods so existing call sites and
|
|
19
|
-
* tests that exercise the public API continue to work.
|
|
11
|
+
* The orchestrator constructs one instance and exposes it as the public
|
|
12
|
+
* `tierMigrationCoordinator` field. CLI commands and maintenance paths call
|
|
13
|
+
* `getStatus`/`runCycle` directly; the orchestrator keeps a private
|
|
14
|
+
* `runTierMigrationCycle` wrapper for the extraction-run dependency.
|
|
15
|
+
* Storage is passed per-call so extraction (which writes to a namespace-
|
|
16
|
+
* scoped storage) and maintenance/manual (which use the default storage)
|
|
17
|
+
* share one coordinator.
|
|
20
18
|
*/
|
|
21
19
|
|
|
22
20
|
import path from "node:path";
|
package/src/orchestrator.ts
CHANGED
|
@@ -236,7 +236,6 @@ import {
|
|
|
236
236
|
type GraphRecallExpandedEntry,
|
|
237
237
|
type LastRecallSnapshot,
|
|
238
238
|
type TierMigrationCycleSummary,
|
|
239
|
-
type TierMigrationStatusSnapshot,
|
|
240
239
|
} from "./recall-state.js";
|
|
241
240
|
import {
|
|
242
241
|
buildHandleIndexForResults,
|
|
@@ -3033,21 +3032,6 @@ export class Orchestrator {
|
|
|
3033
3032
|
return this.tierMigrationCoordinator.runCycle(storage, trigger, options);
|
|
3034
3033
|
}
|
|
3035
3034
|
|
|
3036
|
-
async getTierMigrationStatus(): Promise<TierMigrationStatusSnapshot> {
|
|
3037
|
-
return this.tierMigrationStatus.get();
|
|
3038
|
-
}
|
|
3039
|
-
|
|
3040
|
-
async runTierMigrationNow(options?: {
|
|
3041
|
-
dryRun?: boolean;
|
|
3042
|
-
limit?: number;
|
|
3043
|
-
}): Promise<TierMigrationCycleSummary> {
|
|
3044
|
-
return this.runTierMigrationCycle(this.storage, "manual", {
|
|
3045
|
-
dryRun: options?.dryRun === true,
|
|
3046
|
-
limitOverride: options?.limit,
|
|
3047
|
-
force: false,
|
|
3048
|
-
});
|
|
3049
|
-
}
|
|
3050
|
-
|
|
3051
3035
|
private maybeScheduleConsolidation(nonZeroExtraction: boolean): void {
|
|
3052
3036
|
this.maintenanceScheduler.maybeScheduleConsolidation(
|
|
3053
3037
|
nonZeroExtraction,
|