@leynier/ccst 0.5.0 → 0.5.1

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@leynier/ccst",
3
- "version": "0.5.0",
3
+ "version": "0.5.1",
4
4
  "description": "Claude Code Switch Tools for managing contexts",
5
5
  "keywords": [
6
6
  "claude",
@@ -56,4 +56,4 @@
56
56
  "publishConfig": {
57
57
  "access": "public"
58
58
  }
59
- }
59
+ }
@@ -47,12 +47,18 @@ export const ccsStartCommand = async (
47
47
  // Open log file for writing (append mode)
48
48
  const logFd = openSync(logPath, "a");
49
49
  // Spawn detached process
50
- const child = spawn(ccsPath, ["config"], {
51
- detached: true,
52
- stdio: ["ignore", logFd, logFd],
53
- // On Windows, need shell: true for proper detachment and windowsHide to hide console
54
- ...(process.platform === "win32" ? { shell: true, windowsHide: true } : {}),
55
- });
50
+ // On Windows, use "start /B" to run without a visible console window
51
+ const child =
52
+ process.platform === "win32"
53
+ ? spawn("cmd", ["/c", "start", "/B", ccsPath, "config"], {
54
+ detached: true,
55
+ stdio: ["ignore", logFd, logFd],
56
+ windowsHide: true,
57
+ })
58
+ : spawn(ccsPath, ["config"], {
59
+ detached: true,
60
+ stdio: ["ignore", logFd, logFd],
61
+ });
56
62
  if (!child.pid) {
57
63
  console.log(pc.red("Failed to start CCS config daemon"));
58
64
  return;