@remnic/core 9.35.3 → 9.35.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.
@@ -20,26 +20,26 @@ declare const ExportManifestV1Schema: z.ZodObject<{
20
20
  bytes: number;
21
21
  }>, "many">;
22
22
  }, "strip", z.ZodTypeAny, {
23
- format: "openclaw-engram-export";
23
+ schemaVersion: 1;
24
24
  createdAt: string;
25
- pluginVersion: string;
26
25
  files: {
27
26
  path: string;
28
27
  sha256: string;
29
28
  bytes: number;
30
29
  }[];
31
- schemaVersion: 1;
30
+ format: "openclaw-engram-export";
31
+ pluginVersion: string;
32
32
  includesTranscripts: boolean;
33
33
  }, {
34
- format: "openclaw-engram-export";
34
+ schemaVersion: 1;
35
35
  createdAt: string;
36
- pluginVersion: string;
37
36
  files: {
38
37
  path: string;
39
38
  sha256: string;
40
39
  bytes: number;
41
40
  }[];
42
- schemaVersion: 1;
41
+ format: "openclaw-engram-export";
42
+ pluginVersion: string;
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
- format: "openclaw-engram-export";
78
+ schemaVersion: 1;
79
79
  createdAt: string;
80
- pluginVersion: string;
81
80
  files: {
82
81
  path: string;
83
82
  sha256: string;
84
83
  bytes: number;
85
84
  }[];
86
- schemaVersion: 1;
85
+ format: "openclaw-engram-export";
86
+ pluginVersion: string;
87
87
  includesTranscripts: boolean;
88
88
  }, {
89
- format: "openclaw-engram-export";
89
+ schemaVersion: 1;
90
90
  createdAt: string;
91
- pluginVersion: string;
92
91
  files: {
93
92
  path: string;
94
93
  sha256: string;
95
94
  bytes: number;
96
95
  }[];
97
- schemaVersion: 1;
96
+ format: "openclaw-engram-export";
97
+ pluginVersion: string;
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
- format: "openclaw-engram-export";
112
+ schemaVersion: 1;
113
113
  createdAt: string;
114
- pluginVersion: string;
115
114
  files: {
116
115
  path: string;
117
116
  sha256: string;
118
117
  bytes: number;
119
118
  }[];
120
- schemaVersion: 1;
119
+ format: "openclaw-engram-export";
120
+ pluginVersion: string;
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
- format: "openclaw-engram-export";
129
+ schemaVersion: 1;
130
130
  createdAt: string;
131
- pluginVersion: string;
132
131
  files: {
133
132
  path: string;
134
133
  sha256: string;
135
134
  bytes: number;
136
135
  }[];
137
- schemaVersion: 1;
136
+ format: "openclaw-engram-export";
137
+ pluginVersion: string;
138
138
  includesTranscripts: boolean;
139
139
  };
140
140
  records: {
@@ -319,10 +319,10 @@ declare const CapsuleBlockSchema: z.ZodObject<{
319
319
  identityAnchors: boolean;
320
320
  peerProfiles: boolean;
321
321
  };
322
- description: string;
323
- id: string;
324
322
  schemaVersion: string;
323
+ id: string;
325
324
  version: string;
325
+ description: string;
326
326
  parentCapsule: string | null;
327
327
  parent: {
328
328
  version: string;
@@ -340,10 +340,10 @@ declare const CapsuleBlockSchema: z.ZodObject<{
340
340
  identityAnchors: boolean;
341
341
  peerProfiles: boolean;
342
342
  };
343
- description: string;
344
- id: string;
345
343
  schemaVersion: string;
344
+ id: string;
346
345
  version: string;
346
+ description: string;
347
347
  parentCapsule: string | null;
348
348
  retrievalPolicy: {
349
349
  tierWeights: Record<string, number>;
@@ -470,10 +470,10 @@ declare const ExportManifestV2Schema: z.ZodObject<{
470
470
  identityAnchors: boolean;
471
471
  peerProfiles: boolean;
472
472
  };
473
- description: string;
474
- id: string;
475
473
  schemaVersion: string;
474
+ id: string;
476
475
  version: string;
476
+ description: string;
477
477
  parentCapsule: string | null;
478
478
  parent: {
479
479
  version: string;
@@ -491,10 +491,10 @@ declare const ExportManifestV2Schema: z.ZodObject<{
491
491
  identityAnchors: boolean;
492
492
  peerProfiles: boolean;
493
493
  };
494
- description: string;
495
- id: string;
496
494
  schemaVersion: string;
495
+ id: string;
497
496
  version: string;
497
+ description: string;
498
498
  parentCapsule: string | null;
499
499
  retrievalPolicy: {
500
500
  tierWeights: Record<string, number>;
@@ -507,14 +507,16 @@ declare const ExportManifestV2Schema: z.ZodObject<{
507
507
  } | null | undefined;
508
508
  }>;
509
509
  }, "strip", z.ZodTypeAny, {
510
- format: "openclaw-engram-export";
510
+ schemaVersion: 2;
511
511
  createdAt: string;
512
- pluginVersion: string;
513
512
  files: {
514
513
  path: string;
515
514
  sha256: string;
516
515
  bytes: number;
517
516
  }[];
517
+ format: "openclaw-engram-export";
518
+ pluginVersion: string;
519
+ includesTranscripts: boolean;
518
520
  capsule: {
519
521
  includes: {
520
522
  procedural: boolean;
@@ -522,10 +524,10 @@ declare const ExportManifestV2Schema: z.ZodObject<{
522
524
  identityAnchors: boolean;
523
525
  peerProfiles: boolean;
524
526
  };
525
- description: string;
526
- id: string;
527
527
  schemaVersion: string;
528
+ id: string;
528
529
  version: string;
530
+ description: string;
529
531
  parentCapsule: string | null;
530
532
  parent: {
531
533
  version: string;
@@ -537,17 +539,17 @@ declare const ExportManifestV2Schema: z.ZodObject<{
537
539
  directAnswerEnabled: boolean;
538
540
  };
539
541
  };
540
- schemaVersion: 2;
541
- includesTranscripts: boolean;
542
542
  }, {
543
- format: "openclaw-engram-export";
543
+ schemaVersion: 2;
544
544
  createdAt: string;
545
- pluginVersion: string;
546
545
  files: {
547
546
  path: string;
548
547
  sha256: string;
549
548
  bytes: number;
550
549
  }[];
550
+ format: "openclaw-engram-export";
551
+ pluginVersion: string;
552
+ includesTranscripts: boolean;
551
553
  capsule: {
552
554
  includes: {
553
555
  procedural: boolean;
@@ -555,10 +557,10 @@ declare const ExportManifestV2Schema: z.ZodObject<{
555
557
  identityAnchors: boolean;
556
558
  peerProfiles: boolean;
557
559
  };
558
- description: string;
559
- id: string;
560
560
  schemaVersion: string;
561
+ id: string;
561
562
  version: string;
563
+ description: string;
562
564
  parentCapsule: string | null;
563
565
  retrievalPolicy: {
564
566
  tierWeights: Record<string, number>;
@@ -570,8 +572,6 @@ declare const ExportManifestV2Schema: z.ZodObject<{
570
572
  forkRoot: string;
571
573
  } | null | undefined;
572
574
  };
573
- schemaVersion: 2;
574
- includesTranscripts: boolean;
575
575
  }>;
576
576
  type ExportManifestV2 = z.infer<typeof ExportManifestV2Schema>;
577
577
  declare const ExportBundleV2Schema: z.ZodObject<{
@@ -689,10 +689,10 @@ declare const ExportBundleV2Schema: z.ZodObject<{
689
689
  identityAnchors: boolean;
690
690
  peerProfiles: boolean;
691
691
  };
692
- description: string;
693
- id: string;
694
692
  schemaVersion: string;
693
+ id: string;
695
694
  version: string;
695
+ description: string;
696
696
  parentCapsule: string | null;
697
697
  parent: {
698
698
  version: string;
@@ -710,10 +710,10 @@ declare const ExportBundleV2Schema: z.ZodObject<{
710
710
  identityAnchors: boolean;
711
711
  peerProfiles: boolean;
712
712
  };
713
- description: string;
714
- id: string;
715
713
  schemaVersion: string;
714
+ id: string;
716
715
  version: string;
716
+ description: string;
717
717
  parentCapsule: string | null;
718
718
  retrievalPolicy: {
719
719
  tierWeights: Record<string, number>;
@@ -726,14 +726,16 @@ declare const ExportBundleV2Schema: z.ZodObject<{
726
726
  } | null | undefined;
727
727
  }>;
728
728
  }, "strip", z.ZodTypeAny, {
729
- format: "openclaw-engram-export";
729
+ schemaVersion: 2;
730
730
  createdAt: string;
731
- pluginVersion: string;
732
731
  files: {
733
732
  path: string;
734
733
  sha256: string;
735
734
  bytes: number;
736
735
  }[];
736
+ format: "openclaw-engram-export";
737
+ pluginVersion: string;
738
+ includesTranscripts: boolean;
737
739
  capsule: {
738
740
  includes: {
739
741
  procedural: boolean;
@@ -741,10 +743,10 @@ declare const ExportBundleV2Schema: z.ZodObject<{
741
743
  identityAnchors: boolean;
742
744
  peerProfiles: boolean;
743
745
  };
744
- description: string;
745
- id: string;
746
746
  schemaVersion: string;
747
+ id: string;
747
748
  version: string;
749
+ description: string;
748
750
  parentCapsule: string | null;
749
751
  parent: {
750
752
  version: string;
@@ -756,17 +758,17 @@ declare const ExportBundleV2Schema: z.ZodObject<{
756
758
  directAnswerEnabled: boolean;
757
759
  };
758
760
  };
759
- schemaVersion: 2;
760
- includesTranscripts: boolean;
761
761
  }, {
762
- format: "openclaw-engram-export";
762
+ schemaVersion: 2;
763
763
  createdAt: string;
764
- pluginVersion: string;
765
764
  files: {
766
765
  path: string;
767
766
  sha256: string;
768
767
  bytes: number;
769
768
  }[];
769
+ format: "openclaw-engram-export";
770
+ pluginVersion: string;
771
+ includesTranscripts: boolean;
770
772
  capsule: {
771
773
  includes: {
772
774
  procedural: boolean;
@@ -774,10 +776,10 @@ declare const ExportBundleV2Schema: z.ZodObject<{
774
776
  identityAnchors: boolean;
775
777
  peerProfiles: boolean;
776
778
  };
777
- description: string;
778
- id: string;
779
779
  schemaVersion: string;
780
+ id: string;
780
781
  version: string;
782
+ description: string;
781
783
  parentCapsule: string | null;
782
784
  retrievalPolicy: {
783
785
  tierWeights: Record<string, number>;
@@ -789,8 +791,6 @@ declare const ExportBundleV2Schema: z.ZodObject<{
789
791
  forkRoot: string;
790
792
  } | null | undefined;
791
793
  };
792
- schemaVersion: 2;
793
- includesTranscripts: boolean;
794
794
  }>;
795
795
  records: z.ZodArray<z.ZodObject<{
796
796
  path: z.ZodString;
@@ -804,14 +804,16 @@ declare const ExportBundleV2Schema: z.ZodObject<{
804
804
  }>, "many">;
805
805
  }, "strip", z.ZodTypeAny, {
806
806
  manifest: {
807
- format: "openclaw-engram-export";
807
+ schemaVersion: 2;
808
808
  createdAt: string;
809
- pluginVersion: string;
810
809
  files: {
811
810
  path: string;
812
811
  sha256: string;
813
812
  bytes: number;
814
813
  }[];
814
+ format: "openclaw-engram-export";
815
+ pluginVersion: string;
816
+ includesTranscripts: boolean;
815
817
  capsule: {
816
818
  includes: {
817
819
  procedural: boolean;
@@ -819,10 +821,10 @@ declare const ExportBundleV2Schema: z.ZodObject<{
819
821
  identityAnchors: boolean;
820
822
  peerProfiles: boolean;
821
823
  };
822
- description: string;
823
- id: string;
824
824
  schemaVersion: string;
825
+ id: string;
825
826
  version: string;
827
+ description: string;
826
828
  parentCapsule: string | null;
827
829
  parent: {
828
830
  version: string;
@@ -834,8 +836,6 @@ declare const ExportBundleV2Schema: z.ZodObject<{
834
836
  directAnswerEnabled: boolean;
835
837
  };
836
838
  };
837
- schemaVersion: 2;
838
- includesTranscripts: boolean;
839
839
  };
840
840
  records: {
841
841
  content: string;
@@ -843,14 +843,16 @@ declare const ExportBundleV2Schema: z.ZodObject<{
843
843
  }[];
844
844
  }, {
845
845
  manifest: {
846
- format: "openclaw-engram-export";
846
+ schemaVersion: 2;
847
847
  createdAt: string;
848
- pluginVersion: string;
849
848
  files: {
850
849
  path: string;
851
850
  sha256: string;
852
851
  bytes: number;
853
852
  }[];
853
+ format: "openclaw-engram-export";
854
+ pluginVersion: string;
855
+ includesTranscripts: boolean;
854
856
  capsule: {
855
857
  includes: {
856
858
  procedural: boolean;
@@ -858,10 +860,10 @@ declare const ExportBundleV2Schema: z.ZodObject<{
858
860
  identityAnchors: boolean;
859
861
  peerProfiles: boolean;
860
862
  };
861
- description: string;
862
- id: string;
863
863
  schemaVersion: string;
864
+ id: string;
864
865
  version: string;
866
+ description: string;
865
867
  parentCapsule: string | null;
866
868
  retrievalPolicy: {
867
869
  tierWeights: Record<string, number>;
@@ -873,8 +875,6 @@ declare const ExportBundleV2Schema: z.ZodObject<{
873
875
  forkRoot: string;
874
876
  } | null | undefined;
875
877
  };
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.35.3",
3
+ "version": "9.35.4",
4
4
  "description": "Framework-agnostic Remnic memory engine — orchestrator, storage, extraction, search, trust zones",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -3086,7 +3086,7 @@
3086
3086
  "core"
3087
3087
  ],
3088
3088
  "peerDependencies": {
3089
- "@remnic/coding-graph": "^9.35.3"
3089
+ "@remnic/coding-graph": "^9.35.4"
3090
3090
  },
3091
3091
  "peerDependenciesMeta": {
3092
3092
  "@remnic/coding-graph": {
@@ -66,6 +66,12 @@ export interface AccessHttpReadinessState {
66
66
  ready: boolean;
67
67
  warmupAttempts: number;
68
68
  lastError?: string | null;
69
+ /**
70
+ * True when the standalone init gate opened before search warm-up completed
71
+ * (issue #2215): the service is functional (recall serves via fallback
72
+ * retrieval), so health answers 200 with degraded info instead of 503.
73
+ */
74
+ degraded?: boolean;
69
75
  }
70
76
 
71
77
  export interface EngramAccessHttpServerOptions {
@@ -801,18 +807,13 @@ export class EngramAccessHttpServer {
801
807
  }
802
808
 
803
809
  if (req.method === "GET" && pathname === "/engram/v1/health") {
804
- const readiness = this.readiness();
805
- if (!readiness.ready) {
810
+ const { ready, warmupAttempts, lastError } = this.readiness();
811
+ if (!ready) {
806
812
  this.respondJson(res, 503, {
807
- ok: false,
808
- ready: false,
809
- warmupAttempts: readiness.warmupAttempts,
810
- lastError: readiness.lastError ?? null,
811
- code: "not_ready",
813
+ ok: false, ready: false, warmupAttempts, lastError: lastError ?? null, code: "not_ready",
812
814
  });
813
815
  return;
814
816
  }
815
-
816
817
  }
817
818
 
818
819
  // Run any host-supplied pre-auth request handler. It runs AFTER the
@@ -888,7 +889,11 @@ export class EngramAccessHttpServer {
888
889
  }
889
890
 
890
891
  if (req.method === "GET" && pathname === "/engram/v1/health") {
891
- this.respondJson(res, 200, await this.service.health());
892
+ const { degraded, warmupAttempts, lastError } = this.readiness();
893
+ const health = await this.service.health();
894
+ this.respondJson(res, 200, degraded !== true ? health : {
895
+ ...health, degraded: true, warmupAttempts, lastError: lastError ?? null,
896
+ });
892
897
  return;
893
898
  }
894
899
  if (req.method === "GET" && pathname === "/engram/v1/capabilities") return respondLcmCompactionCapabilitiesHttp(res);