@tiflis-io/tiflis-code-workstation 0.3.18 → 0.3.19

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.
Files changed (2) hide show
  1. package/dist/main.js +9 -0
  2. package/package.json +1 -1
package/dist/main.js CHANGED
@@ -1503,6 +1503,10 @@ var TunnelClient = class {
1503
1503
  disconnect() {
1504
1504
  this.clearTimers();
1505
1505
  if (this.ws) {
1506
+ this.ws.removeAllListeners("open");
1507
+ this.ws.removeAllListeners("message");
1508
+ this.ws.removeAllListeners("close");
1509
+ this.ws.removeAllListeners("error");
1506
1510
  this.ws.close();
1507
1511
  this.ws = null;
1508
1512
  }
@@ -2758,6 +2762,7 @@ var TerminalSession = class extends Session {
2758
2762
  if (this._status === "terminated") {
2759
2763
  return;
2760
2764
  }
2765
+ this._outputCallbacks.clear();
2761
2766
  return new Promise((resolve2) => {
2762
2767
  const timeout = setTimeout(() => {
2763
2768
  this._pty.kill("SIGKILL");
@@ -11353,6 +11358,10 @@ async function bootstrap() {
11353
11358
  try {
11354
11359
  logger.info("Disconnecting from tunnel...");
11355
11360
  tunnelClient.disconnect();
11361
+ logger.info("Removing event listeners...");
11362
+ agentSessionManager.removeAllListeners();
11363
+ supervisorAgent.removeAllListeners();
11364
+ sessionManager.removeAllListeners();
11356
11365
  logger.info("Cleaning up agent sessions...");
11357
11366
  agentSessionManager.cleanup();
11358
11367
  logger.info("Terminating all sessions...");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@tiflis-io/tiflis-code-workstation",
3
- "version": "0.3.18",
3
+ "version": "0.3.19",
4
4
  "description": "Workstation server for tiflis-code - manages agent sessions and terminal access",
5
5
  "author": "Roman Barinov <rbarinov@gmail.com>",
6
6
  "license": "FSL-1.1-NC",