codeam-cli 1.4.2 → 1.4.4
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/dist/index.js +15 -3
- package/package.json +3 -1
package/dist/index.js
CHANGED
|
@@ -110,11 +110,12 @@ var { getConfig, ensurePluginId, addSession, removeSession, setActiveSession, ge
|
|
|
110
110
|
|
|
111
111
|
// src/ui/banner.ts
|
|
112
112
|
var import_picocolors = __toESM(require("picocolors"));
|
|
113
|
+
var import_qrcode_terminal = __toESM(require("qrcode-terminal"));
|
|
113
114
|
|
|
114
115
|
// package.json
|
|
115
116
|
var package_default = {
|
|
116
117
|
name: "codeam-cli",
|
|
117
|
-
version: "1.4.
|
|
118
|
+
version: "1.4.4",
|
|
118
119
|
description: "Remote control Claude Code from your mobile device",
|
|
119
120
|
main: "dist/index.js",
|
|
120
121
|
bin: {
|
|
@@ -152,10 +153,12 @@ var package_default = {
|
|
|
152
153
|
dependencies: {
|
|
153
154
|
"@clack/prompts": "^0.10.0",
|
|
154
155
|
picocolors: "^1.1.0",
|
|
156
|
+
"qrcode-terminal": "^0.12.0",
|
|
155
157
|
ws: "^8.18.0"
|
|
156
158
|
},
|
|
157
159
|
devDependencies: {
|
|
158
160
|
"@types/node": "^22.0.0",
|
|
161
|
+
"@types/qrcode-terminal": "^0.12.0",
|
|
159
162
|
"@types/ws": "^8.5.0",
|
|
160
163
|
tsup: "^8.0.0",
|
|
161
164
|
typescript: "^5.0.0",
|
|
@@ -189,6 +192,10 @@ function showPairingCode(code, expiresAt) {
|
|
|
189
192
|
console.log(` \u2502 Expires in: ${import_picocolors.default.dim(timer)}${timerPad}\u2502`);
|
|
190
193
|
console.log(" \u2514\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2500\u2518");
|
|
191
194
|
console.log("");
|
|
195
|
+
import_qrcode_terminal.default.generate(code, { small: true }, (qr) => {
|
|
196
|
+
qr.split("\n").forEach((line) => console.log(" " + line));
|
|
197
|
+
});
|
|
198
|
+
console.log("");
|
|
192
199
|
}
|
|
193
200
|
|
|
194
201
|
// src/services/websocket.service.ts
|
|
@@ -676,7 +683,12 @@ var UnixPtyStrategy = class {
|
|
|
676
683
|
this.proc?.stdin?.write(data);
|
|
677
684
|
}
|
|
678
685
|
kill() {
|
|
679
|
-
this.proc
|
|
686
|
+
const proc = this.proc;
|
|
687
|
+
this.proc = null;
|
|
688
|
+
if (proc) {
|
|
689
|
+
proc.removeAllListeners("exit");
|
|
690
|
+
proc.kill();
|
|
691
|
+
}
|
|
680
692
|
this.removeTempFile();
|
|
681
693
|
this.dispose();
|
|
682
694
|
}
|
|
@@ -1624,7 +1636,7 @@ async function pair() {
|
|
|
1624
1636
|
}
|
|
1625
1637
|
spin.stop("Got pairing code");
|
|
1626
1638
|
showPairingCode(result.code, result.expiresAt);
|
|
1627
|
-
console.log(import_picocolors3.default.dim("
|
|
1639
|
+
console.log(import_picocolors3.default.dim(" Scan the QR code or enter the code in CodeAgent Mobile."));
|
|
1628
1640
|
console.log("");
|
|
1629
1641
|
const waitSpin = p.spinner();
|
|
1630
1642
|
waitSpin.start("Waiting for mobile app...");
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codeam-cli",
|
|
3
|
-
"version": "1.4.
|
|
3
|
+
"version": "1.4.4",
|
|
4
4
|
"description": "Remote control Claude Code from your mobile device",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -38,10 +38,12 @@
|
|
|
38
38
|
"dependencies": {
|
|
39
39
|
"@clack/prompts": "^0.10.0",
|
|
40
40
|
"picocolors": "^1.1.0",
|
|
41
|
+
"qrcode-terminal": "^0.12.0",
|
|
41
42
|
"ws": "^8.18.0"
|
|
42
43
|
},
|
|
43
44
|
"devDependencies": {
|
|
44
45
|
"@types/node": "^22.0.0",
|
|
46
|
+
"@types/qrcode-terminal": "^0.12.0",
|
|
45
47
|
"@types/ws": "^8.5.0",
|
|
46
48
|
"tsup": "^8.0.0",
|
|
47
49
|
"typescript": "^5.0.0",
|