@linkshell/gateway 0.5.1 → 0.5.3

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@linkshell/gateway",
3
- "version": "0.5.1",
3
+ "version": "0.5.3",
4
4
  "type": "module",
5
5
  "main": "dist/gateway/src/index.js",
6
6
  "exports": {
@@ -29,8 +29,8 @@
29
29
  "zod": "^3.24.3",
30
30
  "ws": "^8.18.1",
31
31
  "@linkshell/protocol": "0.4.10",
32
- "@linkshell/wire": "0.1.1",
33
- "@linkshell/gateway-v2": "0.1.1"
32
+ "@linkshell/wire": "0.1.3",
33
+ "@linkshell/gateway-v2": "0.1.3"
34
34
  },
35
35
  "devDependencies": {
36
36
  "@types/ws": "^8.5.14",
package/src/index.ts CHANGED
@@ -286,7 +286,8 @@ async function handleRequest(
286
286
 
287
287
  // Health check
288
288
  if (method === "GET" && url.pathname === "/healthz") {
289
- json(res, 200, { ok: true, version: GATEWAY_VERSION, relay: relay.connected });
289
+ // memoryMb: what the process holds, to watch against the container's limit.
290
+ json(res, 200, { ok: true, version: GATEWAY_VERSION, relay: relay.connected, memoryMb: Math.round(process.memoryUsage.rss() / 1048576) });
290
291
  return;
291
292
  }
292
293