codeam-cli 1.4.0 → 1.4.1
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 +5 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -114,7 +114,7 @@ var import_picocolors = __toESM(require("picocolors"));
|
|
|
114
114
|
// package.json
|
|
115
115
|
var package_default = {
|
|
116
116
|
name: "codeam-cli",
|
|
117
|
-
version: "1.4.
|
|
117
|
+
version: "1.4.1",
|
|
118
118
|
description: "Remote control Claude Code from your mobile device",
|
|
119
119
|
main: "dist/index.js",
|
|
120
120
|
bin: {
|
|
@@ -982,9 +982,10 @@ function detectSelector(lines) {
|
|
|
982
982
|
if (/^[─━—═\-]{3,}$/.test(t)) continue;
|
|
983
983
|
if (/^\[.*\]$/.test(t)) continue;
|
|
984
984
|
if (/^[>❯]\s/.test(t)) continue;
|
|
985
|
+
if (!t.includes(" ") && t.length > 15) continue;
|
|
985
986
|
questionParts.push(t);
|
|
986
987
|
}
|
|
987
|
-
const question = questionParts.join("
|
|
988
|
+
const question = questionParts.filter((line, i, arr) => !arr.some((other, j) => j !== i && other.includes(line))).join("\n").trim();
|
|
988
989
|
const optionLabels = /* @__PURE__ */ new Map();
|
|
989
990
|
const optionDescs = /* @__PURE__ */ new Map();
|
|
990
991
|
let currentNum = -1;
|
|
@@ -1039,9 +1040,10 @@ function detectListSelector(lines) {
|
|
|
1039
1040
|
}
|
|
1040
1041
|
if (/^[>❯]\s/.test(t)) continue;
|
|
1041
1042
|
if (/[↑↓].*navigate/i.test(t)) continue;
|
|
1043
|
+
if (!t.includes(" ") && t.length > 15) continue;
|
|
1042
1044
|
questionParts.push(t);
|
|
1043
1045
|
}
|
|
1044
|
-
const question = questionParts.join("
|
|
1046
|
+
const question = questionParts.filter((line, i, arr) => !arr.some((other, j) => j !== i && other.includes(line))).join("\n").trim();
|
|
1045
1047
|
const options = [];
|
|
1046
1048
|
let currentIndex = 0;
|
|
1047
1049
|
for (const line of lines.slice(optionStartIdx)) {
|