codeam-cli 1.4.5 → 1.4.7
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 +6 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -71,7 +71,7 @@ function makeConfig(baseDir) {
|
|
|
71
71
|
const c = load();
|
|
72
72
|
c.sessions = c.sessions.filter((s) => s.id !== session.id);
|
|
73
73
|
c.sessions.unshift(session);
|
|
74
|
-
|
|
74
|
+
c.activeSessionId = session.id;
|
|
75
75
|
save(c);
|
|
76
76
|
}
|
|
77
77
|
function removeSession2(sessionId) {
|
|
@@ -115,7 +115,7 @@ var import_qrcode_terminal = __toESM(require("qrcode-terminal"));
|
|
|
115
115
|
// package.json
|
|
116
116
|
var package_default = {
|
|
117
117
|
name: "codeam-cli",
|
|
118
|
-
version: "1.4.
|
|
118
|
+
version: "1.4.7",
|
|
119
119
|
description: "Remote control Claude Code from your mobile device",
|
|
120
120
|
main: "dist/index.js",
|
|
121
121
|
bin: {
|
|
@@ -1450,7 +1450,7 @@ async function start() {
|
|
|
1450
1450
|
`);
|
|
1451
1451
|
process.exit(0);
|
|
1452
1452
|
}
|
|
1453
|
-
const pluginId = ensurePluginId();
|
|
1453
|
+
const pluginId = session.pluginId ?? ensurePluginId();
|
|
1454
1454
|
showInfo(`${session.userName} \xB7 ${import_picocolors2.default.cyan(session.plan)}`);
|
|
1455
1455
|
showInfo("Launching Claude Code...\n");
|
|
1456
1456
|
const ws = new WebSocketService(session.id, pluginId);
|
|
@@ -1599,6 +1599,7 @@ async function start() {
|
|
|
1599
1599
|
}
|
|
1600
1600
|
|
|
1601
1601
|
// src/commands/pair.ts
|
|
1602
|
+
var import_crypto2 = require("crypto");
|
|
1602
1603
|
var import_picocolors3 = __toESM(require("picocolors"));
|
|
1603
1604
|
|
|
1604
1605
|
// src/ui/prompts.ts
|
|
@@ -1625,7 +1626,7 @@ async function selectSession(sessions2, activeId) {
|
|
|
1625
1626
|
// src/commands/pair.ts
|
|
1626
1627
|
async function pair() {
|
|
1627
1628
|
showIntro();
|
|
1628
|
-
const pluginId =
|
|
1629
|
+
const pluginId = (0, import_crypto2.randomUUID)();
|
|
1629
1630
|
const spin = p.spinner();
|
|
1630
1631
|
spin.start("Requesting pairing code...");
|
|
1631
1632
|
const result = await requestCode(pluginId);
|
|
@@ -1654,6 +1655,7 @@ async function pair() {
|
|
|
1654
1655
|
waitSpin.stop("Paired!");
|
|
1655
1656
|
addSession({
|
|
1656
1657
|
id: info.sessionId,
|
|
1658
|
+
pluginId,
|
|
1657
1659
|
userName: info.userName,
|
|
1658
1660
|
userEmail: info.userEmail,
|
|
1659
1661
|
plan: info.plan,
|