codeam-cli 2.4.34 → 2.4.35

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 +15 -4
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -1482,7 +1482,7 @@ var import_qrcode_terminal = __toESM(require("qrcode-terminal"));
1482
1482
  // package.json
1483
1483
  var package_default = {
1484
1484
  name: "codeam-cli",
1485
- version: "2.4.34",
1485
+ version: "2.4.35",
1486
1486
  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.",
1487
1487
  type: "commonjs",
1488
1488
  main: "dist/index.js",
@@ -5200,6 +5200,12 @@ var OutputService = class _OutputService {
5200
5200
  "outputSvc",
5201
5201
  `tick empty content (raw=${this.rawBuffer.length}B lines=${lines.length} elapsed=${elapsed}ms)`
5202
5202
  );
5203
+ if (lines.length > 0 && this.rawBuffer.length > 200) {
5204
+ const dump = lines.map((l, i) => `${i}: ${JSON.stringify(l)}`).join("\n");
5205
+ const preview = dump.length > 1500 ? dump.slice(0, 1500) + "\u2026(truncated)" : dump;
5206
+ log.trace("outputSvc", `lines dump:
5207
+ ${preview}`);
5208
+ }
5203
5209
  if (elapsed >= _OutputService.EMPTY_TIMEOUT_MS) this.finalize();
5204
5210
  return;
5205
5211
  }
@@ -5274,10 +5280,15 @@ var OutputService = class _OutputService {
5274
5280
  if (this.pluginAuthToken) {
5275
5281
  headers["X-Plugin-Auth-Token"] = this.pluginAuthToken;
5276
5282
  }
5283
+ const chunkType = body.type ?? "(clear)";
5277
5284
  log.trace(
5278
5285
  "outputSvc",
5279
- `postChunk type=${body.type ?? "(clear)"} done=${body.done === true} bytes=${payload.length}`
5286
+ `postChunk type=${chunkType} done=${body.done === true} bytes=${payload.length}`
5280
5287
  );
5288
+ if (chunkType === "select_prompt" || chunkType === "new_turn" || body.type === "text" && body.done === true) {
5289
+ const preview = payload.length > 2048 ? payload.slice(0, 2048) + "\u2026(truncated)" : payload;
5290
+ log.trace("outputSvc", `payload ${preview}`);
5291
+ }
5281
5292
  return new Promise((resolve2) => {
5282
5293
  const attempt = (attemptsLeft) => {
5283
5294
  _transport2.sendOutputChunk(`${API_BASE4}/api/commands/output`, headers, payload).then(({ statusCode, body: resBody }) => {
@@ -9035,7 +9046,7 @@ async function stopWorkspaceFromLocal(target) {
9035
9046
  // src/commands/version.ts
9036
9047
  var import_picocolors11 = __toESM(require("picocolors"));
9037
9048
  function version() {
9038
- const v = true ? "2.4.34" : "unknown";
9049
+ const v = true ? "2.4.35" : "unknown";
9039
9050
  console.log(`${import_picocolors11.default.bold("codeam-cli")} ${import_picocolors11.default.cyan(v)}`);
9040
9051
  }
9041
9052
 
@@ -9170,7 +9181,7 @@ function checkForUpdates() {
9170
9181
  if (process.env.CODEAM_DISABLE_UPDATE_CHECK === "1") return;
9171
9182
  if (process.env.CI) return;
9172
9183
  if (!process.stdout.isTTY) return;
9173
- const current = true ? "2.4.34" : null;
9184
+ const current = true ? "2.4.35" : null;
9174
9185
  if (!current) return;
9175
9186
  const cache = readCache();
9176
9187
  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.4.34",
3
+ "version": "2.4.35",
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",