codeam-cli 1.1.4 → 1.1.5
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 +4 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -110,7 +110,7 @@ var import_picocolors = __toESM(require("picocolors"));
|
|
|
110
110
|
// package.json
|
|
111
111
|
var package_default = {
|
|
112
112
|
name: "codeam-cli",
|
|
113
|
-
version: "1.1.
|
|
113
|
+
version: "1.1.5",
|
|
114
114
|
description: "Remote control Claude Code from your mobile device",
|
|
115
115
|
main: "dist/index.js",
|
|
116
116
|
bin: {
|
|
@@ -842,7 +842,8 @@ function renderToLines(raw) {
|
|
|
842
842
|
}
|
|
843
843
|
function detectSelector(raw) {
|
|
844
844
|
const stripped = raw.replace(/\x1B\[[^@-~]*[@-~]/g, "").replace(/\x1B\][^\x07\x1B]*(?:\x07|\x1B\\)/g, "").replace(/\x1B[@-Z\\-_]/g, "");
|
|
845
|
-
|
|
845
|
+
const hasNavHint = /Enter to (?:select|enter)/i.test(stripped) || /↑\s*\/\s*↓\s*to\s*navigate/i.test(stripped);
|
|
846
|
+
if (!hasNavHint) return null;
|
|
846
847
|
const segments = stripped.split(/[\r\n]+/);
|
|
847
848
|
const optionMap = /* @__PURE__ */ new Map();
|
|
848
849
|
for (const seg of segments) {
|
|
@@ -879,7 +880,7 @@ function filterChrome(lines) {
|
|
|
879
880
|
if (/^\(thinking\)\s*$/.test(t)) return false;
|
|
880
881
|
if (/^\?\s.*shortcut/i.test(t)) return false;
|
|
881
882
|
if (/spending limit|usage limit/i.test(t) && t.length < 80) return false;
|
|
882
|
-
if (/Enter to select/i.test(t)) return false;
|
|
883
|
+
if (/Enter to (?:select|enter)/i.test(t)) return false;
|
|
883
884
|
if (/↑\s*\/\s*↓\s*to\s*navigate/i.test(t)) return false;
|
|
884
885
|
return true;
|
|
885
886
|
});
|