@tiflis-io/tiflis-code-workstation 0.3.21 → 0.3.22
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 +16 -0
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -2965,6 +2965,9 @@ var TerminalOutputBatcher = class {
|
|
|
2965
2965
|
if (this.timeout === null) {
|
|
2966
2966
|
const adaptiveInterval = this.outputRate > 1e3 ? this.batchIntervalMs : Math.min(8, this.batchIntervalMs);
|
|
2967
2967
|
this.timeout = setTimeout(() => this.flush(), adaptiveInterval);
|
|
2968
|
+
if (this.timeout.unref) {
|
|
2969
|
+
this.timeout.unref();
|
|
2970
|
+
}
|
|
2968
2971
|
}
|
|
2969
2972
|
}
|
|
2970
2973
|
/**
|
|
@@ -9186,6 +9189,19 @@ function handleAuthMessageViaTunnel(data, tunnelClient, authenticateClient, logg
|
|
|
9186
9189
|
tunnelClient.send(JSON.stringify(errorResponse));
|
|
9187
9190
|
}
|
|
9188
9191
|
}
|
|
9192
|
+
var emergencySignalCount = 0;
|
|
9193
|
+
process.on("SIGINT", () => {
|
|
9194
|
+
emergencySignalCount++;
|
|
9195
|
+
console.log("\n[SIGINT received]");
|
|
9196
|
+
if (emergencySignalCount >= 2) {
|
|
9197
|
+
console.log("[Force exit on repeated Ctrl+C]");
|
|
9198
|
+
process.exit(1);
|
|
9199
|
+
}
|
|
9200
|
+
});
|
|
9201
|
+
process.on("SIGTERM", () => {
|
|
9202
|
+
console.log("\n[SIGTERM received]");
|
|
9203
|
+
process.exit(1);
|
|
9204
|
+
});
|
|
9189
9205
|
async function bootstrap() {
|
|
9190
9206
|
const workstationVersion = getWorkstationVersion();
|
|
9191
9207
|
const protocolVersion = getProtocolVersion();
|
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.22",
|
|
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",
|