@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.
- package/dist/access-cli.js +3 -3
- package/dist/access-http.d.ts +6 -0
- package/dist/access-http.js +1 -1
- package/dist/access-operations.d.ts +3 -3
- package/dist/access-schema.d.ts +84 -84
- package/dist/{chunk-WL2S2UBB.js → chunk-IE2CS5BM.js} +13 -6
- package/dist/chunk-IE2CS5BM.js.map +1 -0
- package/dist/{chunk-LH3KXIBJ.js → chunk-Y2UUEB4I.js} +2 -2
- package/dist/{chunk-AKELMJO2.js → chunk-ZJMVZLPK.js} +3 -3
- package/dist/cli.js +2 -2
- package/dist/index.d.ts +386 -386
- package/dist/index.js +3 -3
- package/dist/orchestrator.js +3 -3
- package/dist/schemas.d.ts +54 -54
- package/dist/shared-context/manager.d.ts +8 -8
- package/dist/transfer/types.d.ts +66 -66
- package/package.json +2 -2
- package/src/access-http.ts +14 -9
- package/dist/chunk-WL2S2UBB.js.map +0 -1
- /package/dist/{chunk-LH3KXIBJ.js.map → chunk-Y2UUEB4I.js.map} +0 -0
- /package/dist/{chunk-AKELMJO2.js.map → chunk-ZJMVZLPK.js.map} +0 -0
|
@@ -826,13 +826,13 @@ var EngramAccessHttpServer = class {
|
|
|
826
826
|
return;
|
|
827
827
|
}
|
|
828
828
|
if (req.method === "GET" && pathname === "/engram/v1/health") {
|
|
829
|
-
const
|
|
830
|
-
if (!
|
|
829
|
+
const { ready, warmupAttempts, lastError } = this.readiness();
|
|
830
|
+
if (!ready) {
|
|
831
831
|
this.respondJson(res, 503, {
|
|
832
832
|
ok: false,
|
|
833
833
|
ready: false,
|
|
834
|
-
warmupAttempts
|
|
835
|
-
lastError:
|
|
834
|
+
warmupAttempts,
|
|
835
|
+
lastError: lastError ?? null,
|
|
836
836
|
code: "not_ready"
|
|
837
837
|
});
|
|
838
838
|
return;
|
|
@@ -875,7 +875,14 @@ var EngramAccessHttpServer = class {
|
|
|
875
875
|
return;
|
|
876
876
|
}
|
|
877
877
|
if (req.method === "GET" && pathname === "/engram/v1/health") {
|
|
878
|
-
|
|
878
|
+
const { degraded, warmupAttempts, lastError } = this.readiness();
|
|
879
|
+
const health = await this.service.health();
|
|
880
|
+
this.respondJson(res, 200, degraded !== true ? health : {
|
|
881
|
+
...health,
|
|
882
|
+
degraded: true,
|
|
883
|
+
warmupAttempts,
|
|
884
|
+
lastError: lastError ?? null
|
|
885
|
+
});
|
|
879
886
|
return;
|
|
880
887
|
}
|
|
881
888
|
if (req.method === "GET" && pathname === "/engram/v1/capabilities") return respondLcmCompactionCapabilitiesHttp(res);
|
|
@@ -3218,4 +3225,4 @@ export {
|
|
|
3218
3225
|
MeetingsInputError,
|
|
3219
3226
|
EngramAccessHttpServer
|
|
3220
3227
|
};
|
|
3221
|
-
//# sourceMappingURL=chunk-
|
|
3228
|
+
//# sourceMappingURL=chunk-IE2CS5BM.js.map
|