@tiflis-io/tiflis-code-workstation 0.3.17 → 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.
- package/dist/main.js +18 -0
- 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
|
}
|
|
@@ -1606,6 +1610,9 @@ var TunnelClient = class {
|
|
|
1606
1610
|
this.handleRegistrationTimeout();
|
|
1607
1611
|
}
|
|
1608
1612
|
}, CONNECTION_TIMING.REGISTRATION_TIMEOUT_MS);
|
|
1613
|
+
if (this.registrationTimeout.unref) {
|
|
1614
|
+
this.registrationTimeout.unref();
|
|
1615
|
+
}
|
|
1609
1616
|
}
|
|
1610
1617
|
/**
|
|
1611
1618
|
* Handles registration timeout.
|
|
@@ -1729,6 +1736,9 @@ var TunnelClient = class {
|
|
|
1729
1736
|
this.sendToTunnel(ping);
|
|
1730
1737
|
}
|
|
1731
1738
|
}, CONNECTION_TIMING.PING_INTERVAL_MS);
|
|
1739
|
+
if (this.pingInterval.unref) {
|
|
1740
|
+
this.pingInterval.unref();
|
|
1741
|
+
}
|
|
1732
1742
|
}
|
|
1733
1743
|
/**
|
|
1734
1744
|
* Schedules a reconnection attempt.
|
|
@@ -1749,6 +1759,9 @@ var TunnelClient = class {
|
|
|
1749
1759
|
this.scheduleReconnect();
|
|
1750
1760
|
});
|
|
1751
1761
|
}, delay);
|
|
1762
|
+
if (this.reconnectTimeout.unref) {
|
|
1763
|
+
this.reconnectTimeout.unref();
|
|
1764
|
+
}
|
|
1752
1765
|
}
|
|
1753
1766
|
/**
|
|
1754
1767
|
* Flushes buffered messages after reconnection.
|
|
@@ -2749,6 +2762,7 @@ var TerminalSession = class extends Session {
|
|
|
2749
2762
|
if (this._status === "terminated") {
|
|
2750
2763
|
return;
|
|
2751
2764
|
}
|
|
2765
|
+
this._outputCallbacks.clear();
|
|
2752
2766
|
return new Promise((resolve2) => {
|
|
2753
2767
|
const timeout = setTimeout(() => {
|
|
2754
2768
|
this._pty.kill("SIGKILL");
|
|
@@ -11344,6 +11358,10 @@ async function bootstrap() {
|
|
|
11344
11358
|
try {
|
|
11345
11359
|
logger.info("Disconnecting from tunnel...");
|
|
11346
11360
|
tunnelClient.disconnect();
|
|
11361
|
+
logger.info("Removing event listeners...");
|
|
11362
|
+
agentSessionManager.removeAllListeners();
|
|
11363
|
+
supervisorAgent.removeAllListeners();
|
|
11364
|
+
sessionManager.removeAllListeners();
|
|
11347
11365
|
logger.info("Cleaning up agent sessions...");
|
|
11348
11366
|
agentSessionManager.cleanup();
|
|
11349
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.
|
|
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",
|