@tiflis-io/tiflis-code-workstation 0.3.25 → 0.3.26
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 +5 -1
- package/package.json +1 -1
package/dist/main.js
CHANGED
|
@@ -3010,6 +3010,7 @@ import { randomUUID as randomUUID2 } from "crypto";
|
|
|
3010
3010
|
|
|
3011
3011
|
// src/infrastructure/agents/headless-agent-executor.ts
|
|
3012
3012
|
import { spawn as spawn2 } from "child_process";
|
|
3013
|
+
import { platform } from "os";
|
|
3013
3014
|
import { EventEmitter } from "events";
|
|
3014
3015
|
var HeadlessAgentExecutor = class extends EventEmitter {
|
|
3015
3016
|
subprocess = null;
|
|
@@ -3044,7 +3045,10 @@ var HeadlessAgentExecutor = class extends EventEmitter {
|
|
|
3044
3045
|
const { command, args } = this.buildCommand(prompt);
|
|
3045
3046
|
const aliasEnvVars = this.getAliasEnvVars();
|
|
3046
3047
|
const shellEnv = getShellEnv();
|
|
3047
|
-
|
|
3048
|
+
const isUnix = platform() !== "win32";
|
|
3049
|
+
const spawnCommand = isUnix ? "setsid" : command;
|
|
3050
|
+
const spawnArgs = isUnix ? [command, ...args] : args;
|
|
3051
|
+
this.subprocess = spawn2(spawnCommand, spawnArgs, {
|
|
3048
3052
|
cwd: this.workingDir,
|
|
3049
3053
|
env: {
|
|
3050
3054
|
...shellEnv,
|
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.26",
|
|
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",
|