ultravisor 1.3.8 → 1.3.9

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": "ultravisor",
3
- "version": "1.3.8",
3
+ "version": "1.3.9",
4
4
  "description": "Cyclic process execution with ai integration.",
5
5
  "main": "source/Ultravisor.cjs",
6
6
  "bin": {
@@ -65,7 +65,7 @@
65
65
  "pict": "^1.0.365",
66
66
  "pict-service-commandlineutility": "^1.0.19",
67
67
  "pict-serviceproviderbase": "^1.0.4",
68
- "ultravisor-beacon": "^0.0.14",
68
+ "ultravisor-beacon": "^0.0.15",
69
69
  "ultravisor-file-stream": "^0.0.1",
70
70
  "ws": "^8.20.0"
71
71
  },
@@ -4128,7 +4128,20 @@ class UltravisorAPIServer extends libPictService
4128
4128
  return;
4129
4129
  }
4130
4130
 
4131
- this._WebSocketServer = new libWebSocket.Server({ noServer: true });
4131
+ // maxPayload: at 250K-row scale a typed-op State edge ships
4132
+ // ~40-60 MB JSON over a single WS frame. The `ws` library's
4133
+ // default of 100 MB is silently violated by larger payloads,
4134
+ // throwing RangeError("Max payload size exceeded") which crashes
4135
+ // the UV process under restart-loop pressure. Default raised to
4136
+ // 256 MB; override via env UltravisorWebSocketMaxPayloadMB so an
4137
+ // operator can dial it up further without recompiling.
4138
+ let tmpMaxPayloadMB = parseInt(process.env.UltravisorWebSocketMaxPayloadMB, 10);
4139
+ if (!Number.isFinite(tmpMaxPayloadMB) || tmpMaxPayloadMB <= 0) tmpMaxPayloadMB = 256;
4140
+ this._WebSocketServer = new libWebSocket.Server(
4141
+ {
4142
+ noServer: true,
4143
+ maxPayload: tmpMaxPayloadMB * 1024 * 1024
4144
+ });
4132
4145
 
4133
4146
  // Handle HTTP upgrade requests for WebSocket
4134
4147
  tmpHTTPServer.on('upgrade',