codeam-cli 1.0.1 → 1.0.2

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.
Files changed (2) hide show
  1. package/dist/index.js +6 -11
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -469,29 +469,24 @@ var ClaudeService = class {
469
469
  this.proc.kill();
470
470
  this.proc = null;
471
471
  }
472
- const claudePath = findInPath("claude") ?? findInPath("claude-code");
473
- if (!claudePath) {
472
+ if (!findInPath("claude") && !findInPath("claude-code")) {
474
473
  console.error(
475
474
  "\n \u2717 claude not found in PATH.\n Install it with: npm install -g @anthropic-ai/claude-code\n"
476
475
  );
477
476
  process.exit(1);
478
477
  }
478
+ const claudeCmd = findInPath("claude") ? "claude" : "claude-code";
479
479
  try {
480
- this.proc = pty.spawn(claudePath, [], {
480
+ this.proc = pty.spawn(claudeCmd, [], {
481
481
  name: "xterm-256color",
482
- cols: process.stdout.columns ?? 80,
483
- rows: process.stdout.rows ?? 24,
482
+ cols: process.stdout.columns || 80,
483
+ rows: process.stdout.rows || 24,
484
484
  cwd: this.opts.cwd,
485
485
  env: process.env
486
486
  });
487
487
  } catch {
488
488
  console.error(
489
- `
490
- \u2717 Failed to launch Claude Code.
491
- Tried: ${claudePath}
492
- Make sure claude is correctly installed: npm install -g @anthropic-ai/claude-code
493
- If the issue persists, try: npm rebuild node-pty
494
- `
489
+ "\n \u2717 Failed to launch Claude Code.\n Make sure claude is correctly installed: npm install -g @anthropic-ai/claude-code\n If the issue persists, try: npm rebuild node-pty\n"
495
490
  );
496
491
  process.exit(1);
497
492
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeam-cli",
3
- "version": "1.0.1",
3
+ "version": "1.0.2",
4
4
  "description": "Remote control Claude Code from your mobile device",
5
5
  "main": "dist/index.js",
6
6
  "bin": {