codeam-cli 2.32.1 → 2.32.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.
package/CHANGELOG.md CHANGED
@@ -4,6 +4,18 @@ All notable changes to `codeam-cli` are documented here.
4
4
 
5
5
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## [2.32.1] — 2026-06-07
8
+
9
+ ### Fixed
10
+
11
+ - **cli:** Gemini ACP adapter passes --skip-trust
12
+
13
+ ## [2.32.0] — 2026-06-07
14
+
15
+ ### Added
16
+
17
+ - **cli:** Surface HTTP errors from requestCode + PATH-augment agent spawns
18
+
7
19
  ## [2.31.0] — 2026-06-07
8
20
 
9
21
  ### Chore
package/dist/index.js CHANGED
@@ -498,7 +498,7 @@ var import_qrcode_terminal = __toESM(require("qrcode-terminal"));
498
498
  // package.json
499
499
  var package_default = {
500
500
  name: "codeam-cli",
501
- version: "2.32.1",
501
+ version: "2.32.3",
502
502
  description: "Workflow-continuity bridge for AI coding agents. Wrap Claude Code or Codex in a PTY and supervise, approve, and redirect the session from any device \u2014 async. The terminal companion for CodeAgent Mobile.",
503
503
  type: "commonjs",
504
504
  main: "dist/index.js",
@@ -5869,7 +5869,7 @@ function readAnonId() {
5869
5869
  }
5870
5870
  function superProperties() {
5871
5871
  return {
5872
- cliVersion: true ? "2.32.1" : "0.0.0-dev",
5872
+ cliVersion: true ? "2.32.3" : "0.0.0-dev",
5873
5873
  nodeVersion: process.version,
5874
5874
  platform: process.platform,
5875
5875
  arch: process.arch,
@@ -17738,16 +17738,31 @@ var requestPreviewDetectH = (ctx) => {
17738
17738
  });
17739
17739
  })();
17740
17740
  };
17741
+ function normalizeDetectionForSpawn(detection, cwd) {
17742
+ if (detection.command !== "npx") return detection;
17743
+ const args2 = detection.args ?? [];
17744
+ if (args2.length === 0) return detection;
17745
+ const binName = args2[0];
17746
+ if (binName.startsWith("-")) return detection;
17747
+ const binPath = path35.join(cwd, "node_modules", ".bin", binName);
17748
+ if (!fs29.existsSync(binPath)) return detection;
17749
+ return {
17750
+ ...detection,
17751
+ command: binPath,
17752
+ args: args2.slice(1)
17753
+ };
17754
+ }
17741
17755
  var previewStartH = (ctx, _cmd, parsed) => {
17742
17756
  if (!ctx.pluginAuthToken) {
17743
17757
  log.info("preview", "no pluginAuthToken \u2014 skipping start");
17744
17758
  return;
17745
17759
  }
17746
- const detection = parsed.detection;
17747
- if (!detection) {
17760
+ const rawDetection = parsed.detection;
17761
+ if (!rawDetection) {
17748
17762
  log.info("preview", "start: no detection in payload");
17749
17763
  return;
17750
17764
  }
17765
+ const detection = normalizeDetectionForSpawn(rawDetection, process.cwd());
17751
17766
  const pluginAuthToken = ctx.pluginAuthToken;
17752
17767
  const emitProgress = (step, message) => {
17753
17768
  void postPreviewEvent({
@@ -17829,9 +17844,17 @@ var previewStartH = (ctx, _cmd, parsed) => {
17829
17844
  let readyMatched = false;
17830
17845
  let expoUrl = null;
17831
17846
  const readyRe = new RegExp(detection.ready_pattern);
17847
+ const READY_BUFFER_MAX = 32768;
17848
+ let readyBuffer = "";
17832
17849
  const onChunk = (chunk) => {
17833
17850
  const s = chunk.toString();
17834
- if (!readyMatched && readyRe.test(s)) readyMatched = true;
17851
+ if (!readyMatched) {
17852
+ readyBuffer += s;
17853
+ if (readyBuffer.length > READY_BUFFER_MAX) {
17854
+ readyBuffer = readyBuffer.slice(-READY_BUFFER_MAX);
17855
+ }
17856
+ if (readyRe.test(readyBuffer)) readyMatched = true;
17857
+ }
17835
17858
  if (!expoUrl && detection.framework === "Expo") expoUrl = parseExpoUrl(s);
17836
17859
  };
17837
17860
  devServer.stdout.on("data", onChunk);
@@ -24915,7 +24938,7 @@ function checkChokidar() {
24915
24938
  }
24916
24939
  async function doctor(args2 = []) {
24917
24940
  const json = args2.includes("--json");
24918
- const cliVersion = true ? "2.32.1" : "0.0.0-dev";
24941
+ const cliVersion = true ? "2.32.3" : "0.0.0-dev";
24919
24942
  const apiBase = resolveApiBaseUrl();
24920
24943
  const diagnosticId = (0, import_node_crypto8.randomUUID)();
24921
24944
  log.info("doctor", `run id=${diagnosticId} cli=${cliVersion}`);
@@ -25114,7 +25137,7 @@ async function completion(args2) {
25114
25137
  // src/commands/version.ts
25115
25138
  var import_picocolors13 = __toESM(require("picocolors"));
25116
25139
  function version2() {
25117
- const v = true ? "2.32.1" : "unknown";
25140
+ const v = true ? "2.32.3" : "unknown";
25118
25141
  console.log(`${import_picocolors13.default.bold("codeam-cli")} ${import_picocolors13.default.cyan(v)}`);
25119
25142
  }
25120
25143
 
@@ -25400,7 +25423,7 @@ function checkForUpdates() {
25400
25423
  if (process.env.CODEAM_DISABLE_UPDATE_CHECK === "1") return;
25401
25424
  if (process.env.CI) return;
25402
25425
  if (!process.stdout.isTTY) return;
25403
- const current = true ? "2.32.1" : null;
25426
+ const current = true ? "2.32.3" : null;
25404
25427
  if (!current) return;
25405
25428
  const cache = readCache();
25406
25429
  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.32.1",
3
+ "version": "2.32.3",
4
4
  "description": "Workflow-continuity bridge for AI coding agents. Wrap Claude Code or Codex in a PTY and supervise, approve, and redirect the session from any device — async. The terminal companion for CodeAgent Mobile.",
5
5
  "type": "commonjs",
6
6
  "main": "dist/index.js",