codeam-cli 1.0.0 → 1.0.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/README.md +2 -2
- package/dist/index.js +19 -7
- 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
|
@@ -476,13 +476,25 @@ var ClaudeService = class {
|
|
|
476
476
|
);
|
|
477
477
|
process.exit(1);
|
|
478
478
|
}
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
479
|
+
try {
|
|
480
|
+
this.proc = pty.spawn(claudePath, [], {
|
|
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
|
+
`
|
|
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
|
+
`
|
|
495
|
+
);
|
|
496
|
+
process.exit(1);
|
|
497
|
+
}
|
|
486
498
|
this.proc.onData((data) => {
|
|
487
499
|
process.stdout.write(data);
|
|
488
500
|
this.opts.onData?.(data);
|