codeam-cli 1.4.49 → 1.4.51
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 -5
- 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.
|
|
119
|
+
version: "1.4.51",
|
|
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) {
|
|
@@ -940,13 +941,13 @@ function parseChromeLine(line) {
|
|
|
940
941
|
return { tool: "thinking", label: "Thinking\u2026", status: "running" };
|
|
941
942
|
}
|
|
942
943
|
if (TREE_LINE_RE.test(t)) return null;
|
|
943
|
-
if (STATUS_LINE_RE.test(t)
|
|
944
|
-
const label = t.slice(2).replace(/\s*\(
|
|
944
|
+
if (STATUS_LINE_RE.test(t)) {
|
|
945
|
+
const label = t.slice(2).replace(/\s*\([^)]*\)\s*$/, "").replace(/…$/, "").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*\([^)]*\)\s*$/, "").replace(/…$/, "").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();
|