codeam-cli 2.5.2 → 2.5.4
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 +16 -13
- 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.
|
|
1480
|
+
version: "2.5.4",
|
|
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,10 @@ 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) =>
|
|
4871
|
+
if (!clean.some((l) => /^[❯>]\s*\d+\./.test(l.trim()))) return null;
|
|
4872
4872
|
let optionStartIdx = -1;
|
|
4873
4873
|
for (let i = 0; i < clean.length; i++) {
|
|
4874
|
-
if (/^(
|
|
4874
|
+
if (/^(?:[❯>]\s*)?\d+\.\s/.test(clean[i].trim())) {
|
|
4875
4875
|
optionStartIdx = i;
|
|
4876
4876
|
break;
|
|
4877
4877
|
}
|
|
@@ -4894,7 +4894,7 @@ function detectSelector(lines) {
|
|
|
4894
4894
|
for (let i = optionStartIdx; i < clean.length; i++) {
|
|
4895
4895
|
const t2 = clean[i].trim();
|
|
4896
4896
|
if (!t2) continue;
|
|
4897
|
-
const m = t2.match(/^(
|
|
4897
|
+
const m = t2.match(/^(?:[❯>]\s*)?(\d+)\.\s+(.+)/);
|
|
4898
4898
|
if (m) {
|
|
4899
4899
|
const num = parseInt(m[1], 10);
|
|
4900
4900
|
if (!optionLabels.has(num)) {
|
|
@@ -5222,24 +5222,29 @@ var PtyBuffer = class {
|
|
|
5222
5222
|
}
|
|
5223
5223
|
activate() {
|
|
5224
5224
|
this.active = true;
|
|
5225
|
-
this.raw = "";
|
|
5226
5225
|
this.lastPushAt = 0;
|
|
5227
5226
|
this.terminalInputPending = false;
|
|
5228
5227
|
}
|
|
5229
5228
|
deactivate() {
|
|
5230
5229
|
this.active = false;
|
|
5230
|
+
this.raw = "";
|
|
5231
|
+
this.lastPushAt = 0;
|
|
5231
5232
|
}
|
|
5232
5233
|
reset() {
|
|
5233
5234
|
this.raw = "";
|
|
5234
5235
|
this.lastPushAt = 0;
|
|
5235
5236
|
}
|
|
5236
5237
|
/**
|
|
5237
|
-
* Ingest a raw PTY frame.
|
|
5238
|
-
*
|
|
5239
|
-
*
|
|
5240
|
-
* terminal-initiated-turn signal
|
|
5238
|
+
* Ingest a raw PTY frame. Always accumulates so cold-startup
|
|
5239
|
+
* frames aren't lost. Returns whether the buffer was active at
|
|
5240
|
+
* the time (caller may render now, vs. wait) and whether this
|
|
5241
|
+
* push triggered the terminal-initiated-turn signal — the latter
|
|
5242
|
+
* still only fires while inactive, so the orchestrator can kick
|
|
5243
|
+
* a turn for human local-terminal typing.
|
|
5241
5244
|
*/
|
|
5242
5245
|
push(raw) {
|
|
5246
|
+
this.raw += raw;
|
|
5247
|
+
if (hasPrintable(raw)) this.lastPushAt = Date.now();
|
|
5243
5248
|
if (!this.active) {
|
|
5244
5249
|
let terminalInputDetected = false;
|
|
5245
5250
|
if (!this.terminalInputPending && hasPrintable(raw)) {
|
|
@@ -5248,8 +5253,6 @@ var PtyBuffer = class {
|
|
|
5248
5253
|
}
|
|
5249
5254
|
return { active: false, terminalInputDetected };
|
|
5250
5255
|
}
|
|
5251
|
-
this.raw += raw;
|
|
5252
|
-
if (hasPrintable(raw)) this.lastPushAt = Date.now();
|
|
5253
5256
|
return { active: true, terminalInputDetected: false };
|
|
5254
5257
|
}
|
|
5255
5258
|
};
|
|
@@ -9229,7 +9232,7 @@ async function stopWorkspaceFromLocal(target) {
|
|
|
9229
9232
|
// src/commands/version.ts
|
|
9230
9233
|
var import_picocolors11 = __toESM(require("picocolors"));
|
|
9231
9234
|
function version() {
|
|
9232
|
-
const v = true ? "2.5.
|
|
9235
|
+
const v = true ? "2.5.4" : "unknown";
|
|
9233
9236
|
console.log(`${import_picocolors11.default.bold("codeam-cli")} ${import_picocolors11.default.cyan(v)}`);
|
|
9234
9237
|
}
|
|
9235
9238
|
|
|
@@ -9364,7 +9367,7 @@ function checkForUpdates() {
|
|
|
9364
9367
|
if (process.env.CODEAM_DISABLE_UPDATE_CHECK === "1") return;
|
|
9365
9368
|
if (process.env.CI) return;
|
|
9366
9369
|
if (!process.stdout.isTTY) return;
|
|
9367
|
-
const current = true ? "2.5.
|
|
9370
|
+
const current = true ? "2.5.4" : null;
|
|
9368
9371
|
if (!current) return;
|
|
9369
9372
|
const cache = readCache();
|
|
9370
9373
|
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
|
+
"version": "2.5.4",
|
|
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",
|