codeam-cli 1.1.8 → 1.1.9

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 +4 -7
  2. 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.8",
113
+ version: "1.1.9",
114
114
  description: "Remote control Claude Code from your mobile device",
115
115
  main: "dist/index.js",
116
116
  bin: {
@@ -845,15 +845,13 @@ function detectSelector(raw) {
845
845
  if (!stripped.includes("\u276F")) return null;
846
846
  const segments = stripped.split(/[\r\n]+/);
847
847
  const optionMap = /* @__PURE__ */ new Map();
848
- let hasHighlight = false;
849
848
  let question = "";
850
- const optRe = /(?:(❯)\s*)?(\d+)\.\s+((?:(?!\s*\d+\.\s).)+)/g;
849
+ const optRe = /(?:❯\s*)?(\d+)\.\s+((?:(?!\s*\d+\.\s).)+)/g;
851
850
  for (const seg of segments) {
852
851
  if (!seg.trim()) continue;
853
852
  for (const m of seg.matchAll(optRe)) {
854
- if (m[1] === "\u276F") hasHighlight = true;
855
- const num = parseInt(m[2], 10);
856
- const label = m[3].replace(/\s+/g, " ").trim();
853
+ const num = parseInt(m[1], 10);
854
+ const label = m[2].replace(/\s+/g, " ").trim();
857
855
  if (label && !optionMap.has(num)) optionMap.set(num, label);
858
856
  }
859
857
  const beforeOptions = seg.replace(/(?:❯\s*)?\d+\.\s+.*/g, "").trim();
@@ -862,7 +860,6 @@ function detectSelector(raw) {
862
860
  if (q) question = q[1].trim();
863
861
  }
864
862
  }
865
- if (!hasHighlight) return null;
866
863
  const keys = [...optionMap.keys()].sort((a, b) => a - b);
867
864
  if (keys.length < 2 || keys[0] !== 1) return null;
868
865
  return { question, options: keys.map((k) => optionMap.get(k)) };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeam-cli",
3
- "version": "1.1.8",
3
+ "version": "1.1.9",
4
4
  "description": "Remote control Claude Code from your mobile device",
5
5
  "main": "dist/index.js",
6
6
  "bin": {