@tiflis-io/tiflis-code-workstation 0.3.23 → 0.3.25
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 +10 -2
- package/package.json +3 -2
package/dist/main.js
CHANGED
|
@@ -3044,7 +3044,7 @@ var HeadlessAgentExecutor = class extends EventEmitter {
|
|
|
3044
3044
|
const { command, args } = this.buildCommand(prompt);
|
|
3045
3045
|
const aliasEnvVars = this.getAliasEnvVars();
|
|
3046
3046
|
const shellEnv = getShellEnv();
|
|
3047
|
-
this.subprocess = spawn2(command, args, {
|
|
3047
|
+
this.subprocess = spawn2("setsid", [command, ...args], {
|
|
3048
3048
|
cwd: this.workingDir,
|
|
3049
3049
|
env: {
|
|
3050
3050
|
...shellEnv,
|
|
@@ -3057,8 +3057,11 @@ var HeadlessAgentExecutor = class extends EventEmitter {
|
|
|
3057
3057
|
},
|
|
3058
3058
|
stdio: ["ignore", "pipe", "pipe"],
|
|
3059
3059
|
// stdin ignored, stdout/stderr piped
|
|
3060
|
-
detached: true
|
|
3060
|
+
detached: true,
|
|
3061
3061
|
// Create new process group for clean termination
|
|
3062
|
+
// Ensure child doesn't interfere with parent's signal handling
|
|
3063
|
+
// @ts-ignore - Node.js 16+ option
|
|
3064
|
+
ignoreParentSignals: true
|
|
3062
3065
|
});
|
|
3063
3066
|
this.subprocess.stdout?.on("data", (data) => {
|
|
3064
3067
|
if (this.isKilled) return;
|
|
@@ -11370,6 +11373,11 @@ async function bootstrap() {
|
|
|
11370
11373
|
};
|
|
11371
11374
|
registerSignalHandlers(shutdown);
|
|
11372
11375
|
}
|
|
11376
|
+
if (process.stdin && !process.stdin.destroyed) {
|
|
11377
|
+
if (process.stdin.isPaused?.()) {
|
|
11378
|
+
process.stdin.resume();
|
|
11379
|
+
}
|
|
11380
|
+
}
|
|
11373
11381
|
bootstrap().catch((error) => {
|
|
11374
11382
|
console.error("Failed to bootstrap:", error);
|
|
11375
11383
|
process.exit(1);
|
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.25",
|
|
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",
|
|
@@ -67,7 +67,8 @@
|
|
|
67
67
|
"node": ">=24.0.0"
|
|
68
68
|
},
|
|
69
69
|
"scripts": {
|
|
70
|
-
"dev": "
|
|
70
|
+
"dev": "pnpm build && node --watch dist/main.js",
|
|
71
|
+
"dev:tsx": "tsx watch src/main.ts",
|
|
71
72
|
"build": "tsup",
|
|
72
73
|
"start": "node dist/main.js",
|
|
73
74
|
"test": "vitest run",
|