codeam-cli 1.0.0 → 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.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # codeam-cli
2
2
 
3
- Remote control [Claude Code](https://claude.ai/code) from your mobile device using [CodeAgent Mobile](https://codeagentmobile.com).
3
+ Remote control [Claude Code](https://claude.ai/code) from your mobile device using [CodeAgent Mobile](https://www.codeagent-mobile.com).
4
4
 
5
5
  ## Install
6
6
 
@@ -22,4 +22,4 @@ codeam logout # Remove all sessions
22
22
 
23
23
  - Node.js 18+
24
24
  - Claude Code installed (`npm install -g @anthropic-ai/claude-code`)
25
- - [CodeAgent Mobile](https://codeagentmobile.com) app on your phone
25
+ - [CodeAgent Mobile](https://www.codeagent-mobile.com) app on your phone
package/dist/index.js CHANGED
@@ -469,20 +469,27 @@ 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
  }
479
- this.proc = pty.spawn(claudePath, [], {
480
- name: "xterm-256color",
481
- cols: process.stdout.columns ?? 80,
482
- rows: process.stdout.rows ?? 24,
483
- cwd: this.opts.cwd,
484
- env: process.env
485
- });
478
+ const claudeCmd = findInPath("claude") ? "claude" : "claude-code";
479
+ try {
480
+ this.proc = pty.spawn(claudeCmd, [], {
481
+ name: "xterm-256color",
482
+ cols: process.stdout.columns || 80,
483
+ rows: process.stdout.rows || 24,
484
+ cwd: this.opts.cwd,
485
+ env: process.env
486
+ });
487
+ } catch {
488
+ console.error(
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"
490
+ );
491
+ process.exit(1);
492
+ }
486
493
  this.proc.onData((data) => {
487
494
  process.stdout.write(data);
488
495
  this.opts.onData?.(data);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeam-cli",
3
- "version": "1.0.0",
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": {