codeam-cli 2.5.3 → 2.5.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.
Files changed (2) hide show
  1. package/dist/index.js +10 -6
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1477,7 +1477,7 @@ var import_qrcode_terminal = __toESM(require("qrcode-terminal"));
1477
1477
  // package.json
1478
1478
  var package_default = {
1479
1479
  name: "codeam-cli",
1480
- version: "2.5.3",
1480
+ version: "2.5.5",
1481
1481
  description: "Remote control Claude Code (and other AI coding agents) from your mobile phone. Pair your device, send prompts, stream responses in real-time, and approve commands \u2014 from anywhere.",
1482
1482
  type: "commonjs",
1483
1483
  main: "dist/index.js",
@@ -4868,10 +4868,14 @@ function detectSelector(lines) {
4868
4868
  const clean = lines.map(
4869
4869
  (l) => l.replace(/^[│╭╰╮╯┌└┐┘├┤┬┴┼]\s?/, "").replace(/\s*[│╭╰╮╯┌└┐┘├┤┬┴┼─━═]+\s*$/, "")
4870
4870
  );
4871
- if (!clean.some((l) => /^❯\s*\d+\./.test(l.trim()))) return null;
4871
+ const hasCursor = clean.some((l) => /^[❯>]\s*\d+\./.test(l.trim()));
4872
+ const looksLikeTrust = clean.some(
4873
+ (l) => /\b(?:trust\s+the\s+files|trust\s+this\s+folder|safety\s+check)\b/i.test(l)
4874
+ );
4875
+ if (!hasCursor && !looksLikeTrust) return null;
4872
4876
  let optionStartIdx = -1;
4873
4877
  for (let i = 0; i < clean.length; i++) {
4874
- if (/^(?:❯\s*)?\d+\.\s/.test(clean[i].trim())) {
4878
+ if (/^(?:[❯>]\s*)?\d+\.\s/.test(clean[i].trim())) {
4875
4879
  optionStartIdx = i;
4876
4880
  break;
4877
4881
  }
@@ -4894,7 +4898,7 @@ function detectSelector(lines) {
4894
4898
  for (let i = optionStartIdx; i < clean.length; i++) {
4895
4899
  const t2 = clean[i].trim();
4896
4900
  if (!t2) continue;
4897
- const m = t2.match(/^(?:❯\s*)?(\d+)\.\s+(.+)/);
4901
+ const m = t2.match(/^(?:[❯>]\s*)?(\d+)\.\s+(.+)/);
4898
4902
  if (m) {
4899
4903
  const num = parseInt(m[1], 10);
4900
4904
  if (!optionLabels.has(num)) {
@@ -9232,7 +9236,7 @@ async function stopWorkspaceFromLocal(target) {
9232
9236
  // src/commands/version.ts
9233
9237
  var import_picocolors11 = __toESM(require("picocolors"));
9234
9238
  function version() {
9235
- const v = true ? "2.5.3" : "unknown";
9239
+ const v = true ? "2.5.5" : "unknown";
9236
9240
  console.log(`${import_picocolors11.default.bold("codeam-cli")} ${import_picocolors11.default.cyan(v)}`);
9237
9241
  }
9238
9242
 
@@ -9367,7 +9371,7 @@ function checkForUpdates() {
9367
9371
  if (process.env.CODEAM_DISABLE_UPDATE_CHECK === "1") return;
9368
9372
  if (process.env.CI) return;
9369
9373
  if (!process.stdout.isTTY) return;
9370
- const current = true ? "2.5.3" : null;
9374
+ const current = true ? "2.5.5" : null;
9371
9375
  if (!current) return;
9372
9376
  const cache = readCache();
9373
9377
  const fresh = cache && Date.now() - cache.fetchedAt < TTL_MS;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeam-cli",
3
- "version": "2.5.3",
3
+ "version": "2.5.5",
4
4
  "description": "Remote control Claude Code (and other AI coding agents) from your mobile phone. Pair your device, send prompts, stream responses in real-time, and approve commands — from anywhere.",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",