@leynier/ccst
Advanced tools
+2
-2
| { | ||
| "name": "@leynier/ccst", | ||
| "version": "0.5.0", | ||
| "version": "0.5.1", | ||
| "description": "Claude Code Switch Tools for managing contexts", | ||
@@ -59,2 +59,2 @@ "keywords": [ | ||
| } | ||
| } | ||
| } |
@@ -50,8 +50,14 @@ import { spawn } from "node:child_process"; | ||
| // Spawn detached process | ||
| const child = spawn(ccsPath, ["config"], { | ||
| detached: true, | ||
| stdio: ["ignore", logFd, logFd], | ||
| // On Windows, need shell: true for proper detachment and windowsHide to hide console | ||
| ...(process.platform === "win32" ? { shell: true, windowsHide: true } : {}), | ||
| }); | ||
| // On Windows, use "start /B" to run without a visible console window | ||
| const child = | ||
| process.platform === "win32" | ||
| ? spawn("cmd", ["/c", "start", "/B", ccsPath, "config"], { | ||
| detached: true, | ||
| stdio: ["ignore", logFd, logFd], | ||
| windowsHide: true, | ||
| }) | ||
| : spawn(ccsPath, ["config"], { | ||
| detached: true, | ||
| stdio: ["ignore", logFd, logFd], | ||
| }); | ||
| if (!child.pid) { | ||
@@ -58,0 +64,0 @@ console.log(pc.red("Failed to start CCS config daemon")); |
83288
0.12%2315
0.26%