codeam-cli 1.4.50 → 1.4.52

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 +5 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -116,7 +116,7 @@ var import_qrcode_terminal = __toESM(require("qrcode-terminal"));
116
116
  // package.json
117
117
  var package_default = {
118
118
  name: "codeam-cli",
119
- version: "1.4.50",
119
+ version: "1.4.52",
120
120
  description: "Remote control Claude Code from your mobile device",
121
121
  main: "dist/index.js",
122
122
  bin: {
@@ -920,8 +920,9 @@ function isChromeLine(line) {
920
920
  if (t.replace(/\s/g, "").length === 1) return true;
921
921
  if ((t.match(/─/g)?.length ?? 0) >= 6) return true;
922
922
  if (/ctrl\+?o\s+to\s+expand/i.test(t)) return true;
923
+ const hasBoxPrefix = /^[│╭╰╮╯┌└┐┘├┤┬┴┼]/.test(t);
923
924
  const stripped = t.replace(/^[│╭╰╮╯┌└┐┘├┤┬┴┼]\s?/, "");
924
- if (/^[❯>]\s+\S/.test(stripped) && !/^[❯>]\s*\d+\./.test(stripped)) return true;
925
+ if (hasBoxPrefix && /^[❯>]\s+\S/.test(stripped) && !/^[❯>]\s*\d+\./.test(stripped)) return true;
925
926
  return false;
926
927
  }
927
928
  function parseChromeLine(line) {
@@ -941,12 +942,12 @@ function parseChromeLine(line) {
941
942
  }
942
943
  if (TREE_LINE_RE.test(t)) return null;
943
944
  if (STATUS_LINE_RE.test(t)) {
944
- const label = t.slice(2).replace(/\s*\([^)]*\)\s*$/, "").replace(/…$/, "").trim() || "Thinking\u2026";
945
+ const label = t.slice(2).replace(/….*/s, "").trim() || "Thinking\u2026";
945
946
  return { tool: "thinking", label, status: "running" };
946
947
  }
947
948
  let text = t;
948
949
  if (SPINNER_RE.test(t)) {
949
- text = t.slice(2).trim();
950
+ text = t.slice(2).trim().replace(/….*/s, "").trim();
950
951
  } else if (BULLET_TOOL_RE.test(t)) {
951
952
  text = t.slice(2).trim();
952
953
  text = text.replace(/\s*\(ctrl\+?o[^)]*\)/gi, "").replace(/,\s*reading\s+\d+\s+files?\s*…?/gi, "").replace(/,\s*\d+\s+files?\s*…?/gi, "").replace(/…$/, "").trim();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeam-cli",
3
- "version": "1.4.50",
3
+ "version": "1.4.52",
4
4
  "description": "Remote control Claude Code from your mobile device",
5
5
  "main": "dist/index.js",
6
6
  "bin": {