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 +2 -2
- package/dist/index.js +16 -9
- package/package.json +1 -1
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://
|
|
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://
|
|
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
|
-
|
|
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
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
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);
|