codeam-cli 1.4.3 → 1.4.5

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 +11 -7
  2. 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.3",
118
+ version: "1.4.5",
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
@@ -1629,7 +1636,7 @@ async function pair() {
1629
1636
  }
1630
1637
  spin.stop("Got pairing code");
1631
1638
  showPairingCode(result.code, result.expiresAt);
1632
- console.log(import_picocolors3.default.dim(" Open CodeAgent Mobile and enter this code."));
1639
+ console.log(import_picocolors3.default.dim(" Scan the QR code or enter the code in CodeAgent Mobile."));
1633
1640
  console.log("");
1634
1641
  const waitSpin = p.spinner();
1635
1642
  waitSpin.start("Waiting for mobile app...");
@@ -1653,11 +1660,7 @@ async function pair() {
1653
1660
  pairedAt: Date.now()
1654
1661
  });
1655
1662
  showSuccess(`Paired with ${info.userName} (${info.plan})`);
1656
- console.log(
1657
- import_picocolors3.default.dim(`
1658
- Session saved. Run ${import_picocolors3.default.white("codeam")} to start.
1659
- `)
1660
- );
1663
+ console.log("");
1661
1664
  resolve();
1662
1665
  },
1663
1666
  () => {
@@ -1668,6 +1671,7 @@ async function pair() {
1668
1671
  );
1669
1672
  process.once("SIGINT", sigintHandler);
1670
1673
  });
1674
+ await start();
1671
1675
  }
1672
1676
 
1673
1677
  // src/commands/sessions.ts
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeam-cli",
3
- "version": "1.4.3",
3
+ "version": "1.4.5",
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",