codeam-cli 1.3.6 → 1.3.7

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 +28 -15
  2. 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.3.6",
117
+ version: "1.3.7",
118
118
  description: "Remote control Claude Code from your mobile device",
119
119
  main: "dist/index.js",
120
120
  bin: {
@@ -924,21 +924,34 @@ function detectSelector(lines) {
924
924
  };
925
925
  }
926
926
  function filterChrome(lines) {
927
- return lines.filter((line) => {
927
+ const result = [];
928
+ let skipEchoContinuation = false;
929
+ for (const line of lines) {
928
930
  const t = line.trim();
929
- if (!t) return false;
930
- if (/^[─━—═─\-]{3,}$/.test(t)) return false;
931
- if (/^[✳✢✶✻✽✴✷✸✹⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏◐◑◒◓▁▂▃▄▅▆▇█]\s/.test(t)) return false;
932
- if (/esc.{0,5}to.{0,5}interrupt/i.test(t)) return false;
933
- if (/high\s*[·•]\s*\/effort/i.test(t)) return false;
934
- if (/^[❯>]\s*$/.test(t)) return false;
935
- if (/^[❯>]\s+\S/.test(t) && !/^[❯>]\s*\d+\./.test(t)) return false;
936
- if (/^\(thinking\)\s*$/.test(t)) return false;
937
- if (/^\?\s.*shortcut/i.test(t)) return false;
938
- if (/spending limit|usage limit/i.test(t) && t.length < 80) return false;
939
- if (/↑\s*\/?\s*↓\s*to\s*navigate/i.test(t)) return false;
940
- return true;
941
- });
931
+ if (!t) {
932
+ skipEchoContinuation = false;
933
+ continue;
934
+ }
935
+ if (/^[─━—═─\-]{3,}$/.test(t)) {
936
+ skipEchoContinuation = false;
937
+ continue;
938
+ }
939
+ if (/^[✳✢✶✻✽✴✷✸✹⠋⠙⠹⠸⠼⠴⠦⠧⠇⠏◐◑◒◓▁▂▃▄▅▆▇█]\s/.test(t)) continue;
940
+ if (/esc.{0,5}to.{0,5}interrupt/i.test(t)) continue;
941
+ if (/high\s*[·•]\s*\/effort/i.test(t)) continue;
942
+ if (/^[❯>]\s*$/.test(t)) continue;
943
+ if (/^\(thinking\)\s*$/.test(t)) continue;
944
+ if (/^\?\s.*shortcut/i.test(t)) continue;
945
+ if (/spending limit|usage limit/i.test(t) && t.length < 80) continue;
946
+ if (/↑\s*\/?\s*↓\s*to\s*navigate/i.test(t)) continue;
947
+ if (/^[❯>]\s+\S/.test(t) && !/^[❯>]\s*\d+\./.test(t)) {
948
+ skipEchoContinuation = true;
949
+ continue;
950
+ }
951
+ if (skipEchoContinuation) continue;
952
+ result.push(line);
953
+ }
954
+ return result;
942
955
  }
943
956
  var OutputService = class _OutputService {
944
957
  constructor(sessionId, pluginId) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeam-cli",
3
- "version": "1.3.6",
3
+ "version": "1.3.7",
4
4
  "description": "Remote control Claude Code from your mobile device",
5
5
  "main": "dist/index.js",
6
6
  "bin": {