codeam-cli 2.5.1 → 2.5.3

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 +14 -10
  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.1",
1480
+ version: "2.5.3",
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",
@@ -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. Returns whether the buffer was active
5238
- * at the time (caller cares because rendering only matters for
5239
- * active frames) and whether this push triggered the
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
  };
@@ -6901,6 +6904,7 @@ async function start() {
6901
6904
  }
6902
6905
  process.once("SIGINT", sigintHandler);
6903
6906
  await claude.spawn();
6907
+ await outputSvc.startTerminalTurn();
6904
6908
  relay.start();
6905
6909
  setTimeout(() => {
6906
6910
  historySvc.detectCurrentConversation();
@@ -9228,7 +9232,7 @@ async function stopWorkspaceFromLocal(target) {
9228
9232
  // src/commands/version.ts
9229
9233
  var import_picocolors11 = __toESM(require("picocolors"));
9230
9234
  function version() {
9231
- const v = true ? "2.5.1" : "unknown";
9235
+ const v = true ? "2.5.3" : "unknown";
9232
9236
  console.log(`${import_picocolors11.default.bold("codeam-cli")} ${import_picocolors11.default.cyan(v)}`);
9233
9237
  }
9234
9238
 
@@ -9363,7 +9367,7 @@ function checkForUpdates() {
9363
9367
  if (process.env.CODEAM_DISABLE_UPDATE_CHECK === "1") return;
9364
9368
  if (process.env.CI) return;
9365
9369
  if (!process.stdout.isTTY) return;
9366
- const current = true ? "2.5.1" : null;
9370
+ const current = true ? "2.5.3" : null;
9367
9371
  if (!current) return;
9368
9372
  const cache = readCache();
9369
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.1",
3
+ "version": "2.5.3",
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",