@kaitranntt/ccs 7.13.1-dev.2 → 7.13.1-dev.3

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.
@@ -154,7 +154,10 @@ process.stdin.on('error', () => {
154
154
  */
155
155
  function isCliAvailable(cmd) {
156
156
  try {
157
- const result = spawnSync('which', [cmd], {
157
+ const isWindows = process.platform === 'win32';
158
+ const whichCmd = isWindows ? 'where.exe' : 'which';
159
+
160
+ const result = spawnSync(whichCmd, [cmd], {
158
161
  encoding: 'utf8',
159
162
  timeout: 2000,
160
163
  stdio: ['pipe', 'pipe', 'pipe'],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kaitranntt/ccs",
3
- "version": "7.13.1-dev.2",
3
+ "version": "7.13.1-dev.3",
4
4
  "description": "Claude Code Switch - Instant profile switching between Claude Sonnet 4.5 and GLM 4.6",
5
5
  "keywords": [
6
6
  "cli",