codeam-cli 2.12.9 → 2.12.10

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 +16 -17
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1394,19 +1394,9 @@ var import_picocolors2 = __toESM(require("picocolors"));
1394
1394
 
1395
1395
  // ../../packages/shared/src/protocol/renderToLines.ts
1396
1396
  function renderToLines(raw) {
1397
- const scrollback = [];
1398
1397
  const screen = [""];
1399
1398
  let row = 0;
1400
1399
  let col = 0;
1401
- function commitToScrollback() {
1402
- let end = screen.length;
1403
- while (end > 0 && screen[end - 1].trim() === "") end--;
1404
- for (let i2 = 0; i2 < end; i2++) scrollback.push(screen[i2]);
1405
- screen.length = 1;
1406
- screen[0] = "";
1407
- row = 0;
1408
- col = 0;
1409
- }
1410
1400
  function ensureRow() {
1411
1401
  while (screen.length <= row) screen.push("");
1412
1402
  }
@@ -1450,7 +1440,10 @@ function renderToLines(raw) {
1450
1440
  ensureRow();
1451
1441
  } else if (cmd === "J") {
1452
1442
  if (param === "2" || param === "3") {
1453
- commitToScrollback();
1443
+ screen.length = 1;
1444
+ screen[0] = "";
1445
+ row = 0;
1446
+ col = 0;
1454
1447
  } else if (param === "1") {
1455
1448
  for (let r = 0; r < row; r++) screen[r] = "";
1456
1449
  screen[row] = " ".repeat(col) + screen[row].slice(col);
@@ -1464,9 +1457,15 @@ function renderToLines(raw) {
1464
1457
  else if (param === "1") screen[row] = " ".repeat(col) + screen[row].slice(col);
1465
1458
  else if (param === "2") screen[row] = "";
1466
1459
  } else if (cmd === "h" && (param === "?1049" || param === "?47")) {
1467
- commitToScrollback();
1460
+ screen.length = 1;
1461
+ screen[0] = "";
1462
+ row = 0;
1463
+ col = 0;
1468
1464
  } else if (cmd === "l" && (param === "?1049" || param === "?47")) {
1469
- commitToScrollback();
1465
+ screen.length = 1;
1466
+ screen[0] = "";
1467
+ row = 0;
1468
+ col = 0;
1470
1469
  }
1471
1470
  } else if (raw[i] === "]") {
1472
1471
  i++;
@@ -1497,7 +1496,7 @@ function renderToLines(raw) {
1497
1496
  }
1498
1497
  i++;
1499
1498
  }
1500
- return [...scrollback, ...screen];
1499
+ return screen;
1501
1500
  }
1502
1501
 
1503
1502
  // ../../packages/shared/src/models/pricing.ts
@@ -1683,7 +1682,7 @@ var import_qrcode_terminal = __toESM(require("qrcode-terminal"));
1683
1682
  // package.json
1684
1683
  var package_default = {
1685
1684
  name: "codeam-cli",
1686
- version: "2.12.9",
1685
+ version: "2.12.10",
1687
1686
  description: "Remote control Claude Code (and other AI coding agents) from your mobile phone. Pair your device, send prompts, stream responses in real-time, and approve commands \u2014 from anywhere.",
1688
1687
  type: "commonjs",
1689
1688
  main: "dist/index.js",
@@ -10143,7 +10142,7 @@ async function stopWorkspaceFromLocal(target) {
10143
10142
  // src/commands/version.ts
10144
10143
  var import_picocolors11 = __toESM(require("picocolors"));
10145
10144
  function version() {
10146
- const v = true ? "2.12.9" : "unknown";
10145
+ const v = true ? "2.12.10" : "unknown";
10147
10146
  console.log(`${import_picocolors11.default.bold("codeam-cli")} ${import_picocolors11.default.cyan(v)}`);
10148
10147
  }
10149
10148
 
@@ -10278,7 +10277,7 @@ function checkForUpdates() {
10278
10277
  if (process.env.CODEAM_DISABLE_UPDATE_CHECK === "1") return;
10279
10278
  if (process.env.CI) return;
10280
10279
  if (!process.stdout.isTTY) return;
10281
- const current = true ? "2.12.9" : null;
10280
+ const current = true ? "2.12.10" : null;
10282
10281
  if (!current) return;
10283
10282
  const cache = readCache();
10284
10283
  const fresh = cache && Date.now() - cache.fetchedAt < TTL_MS;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeam-cli",
3
- "version": "2.12.9",
3
+ "version": "2.12.10",
4
4
  "description": "Remote control Claude Code (and other AI coding agents) from your mobile phone. Pair your device, send prompts, stream responses in real-time, and approve commands — from anywhere.",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",