@rynx-ai/server 0.1.11-beta.5 → 0.2.0-beta.2

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.
@@ -298,13 +298,15 @@ function parseBrowserInput(data, isBinary) {
298
298
  throw new Error("Unknown or invalid terminal control frame");
299
299
  }
300
300
  async function applyBrowserInput(terminal, input) {
301
- if (input.type === "input") {
302
- // Defense in depth: tmux -r also blocks writes, but bytes never reach it.
303
- if (terminal.role === "owner")
304
- await terminal.write(input.data);
301
+ // Defense in depth: tmux -r also blocks writes, but neither keystrokes nor
302
+ // resize/SIGWINCH may reach a read-only Session. Resizing changes live TUI
303
+ // layout and is therefore a mutation, not a harmless viewer preference.
304
+ if (terminal.role !== "owner")
305
305
  return;
306
- }
307
- await terminal.resize(input.cols, input.rows);
306
+ if (input.type === "input")
307
+ await terminal.write(input.data);
308
+ else
309
+ await terminal.resize(input.cols, input.rows);
308
310
  }
309
311
  async function sendBinary(ws, data) {
310
312
  if (ws.readyState !== WebSocket.OPEN)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rynx-ai/server",
3
- "version": "0.1.11-beta.5",
3
+ "version": "0.2.0-beta.2",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://github.com/rynx-ai/rynx.git",
@@ -27,15 +27,15 @@
27
27
  "@koa/router": "^15.4.0",
28
28
  "koa": "^3.2.0",
29
29
  "ws": "^8.21.0",
30
- "@rynx-ai/core": "0.1.11-beta.5",
31
- "@rynx-ai/plugin-sdk": "0.1.11-beta.5",
32
- "@rynx-ai/protocol": "0.1.11-beta.5",
33
- "@rynx-ai/remote-runtime-e2ee": "0.1.11-beta.5",
34
- "@rynx-ai/runtime": "0.1.11-beta.5"
30
+ "@rynx-ai/plugin-sdk": "0.2.0-beta.2",
31
+ "@rynx-ai/protocol": "0.2.0-beta.2",
32
+ "@rynx-ai/core": "0.2.0-beta.2",
33
+ "@rynx-ai/remote-runtime-e2ee": "0.2.0-beta.2",
34
+ "@rynx-ai/runtime": "0.2.0-beta.2"
35
35
  },
36
36
  "devDependencies": {
37
37
  "@types/ws": "^8.18.1",
38
- "@rynx-ai/control-web": "0.1.11-beta.5"
38
+ "@rynx-ai/control-web": "0.2.0-beta.2"
39
39
  },
40
40
  "scripts": {
41
41
  "build": "rm -rf dist && tsc -p tsconfig.json && mkdir -p dist/control-web && cp -R ../control-web/dist/. dist/control-web/",