codeam-cli 2.32.5 → 2.32.6

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,13 @@ 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.4] — 2026-06-07
8
+
9
+ ### Fixed
10
+
11
+ - **cli:** Accumulate stdout for preview ready_pattern matching
12
+ - **cli:** Run npx normalization AFTER preflight install, not before
13
+
7
14
  ## [2.32.3] — 2026-06-07
8
15
 
9
16
  ### Fixed
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.5",
501
+ version: "2.32.6",
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.5" : "0.0.0-dev",
5872
+ cliVersion: true ? "2.32.6" : "0.0.0-dev",
5873
5873
  nodeVersion: process.version,
5874
5874
  platform: process.platform,
5875
5875
  arch: process.arch,
@@ -16878,7 +16878,7 @@ async function linkDryRunPreflight(ctx) {
16878
16878
  }
16879
16879
 
16880
16880
  // src/services/preview/cloudflared.ts
16881
- var import_promises = require("dns/promises");
16881
+ var import_promises = __toESM(require("dns/promises"));
16882
16882
  var import_fs = require("fs");
16883
16883
  var import_promises2 = __toESM(require("fs/promises"));
16884
16884
  var import_os6 = __toESM(require("os"));
@@ -16888,21 +16888,15 @@ var import_which = __toESM(require("which"));
16888
16888
  var CACHED_BINARY = import_path4.default.join(import_os6.default.homedir(), ".codeam", "bin", "cloudflared");
16889
16889
  async function waitForCloudflaredReady(url, timeoutMs = 6e4) {
16890
16890
  const hostname3 = new URL(url).hostname;
16891
- const resolver = new import_promises.Resolver();
16892
- resolver.setServers(["1.1.1.1", "1.0.0.1"]);
16891
+ const cares = new import_promises.Resolver();
16893
16892
  const start2 = Date.now();
16894
16893
  while (Date.now() - start2 < timeoutMs) {
16895
- const v4 = resolver.resolve4(hostname3).then(
16896
- (addrs) => addrs.length > 0,
16897
- () => false
16898
- );
16899
- const v6 = resolver.resolve6(hostname3).then(
16900
- (addrs) => addrs.length > 0,
16901
- () => false
16902
- );
16903
- const [ok4, ok6] = await Promise.all([v4, v6]);
16904
- if (ok4 || ok6) return;
16905
- await new Promise((r) => setTimeout(r, 500));
16894
+ const lookup = import_promises.default.lookup(hostname3, { all: true }).then((addrs) => addrs.length > 0, () => false);
16895
+ const v4 = cares.resolve4(hostname3).then((addrs) => addrs.length > 0, () => false);
16896
+ const v6 = cares.resolve6(hostname3).then((addrs) => addrs.length > 0, () => false);
16897
+ const results = await Promise.all([lookup, v4, v6]);
16898
+ if (results.some((ok) => ok)) return;
16899
+ await new Promise((r) => setTimeout(r, 1e3));
16906
16900
  }
16907
16901
  throw new Error(
16908
16902
  `DNS for ${hostname3} did not resolve within ${timeoutMs}ms (Cloudflare Quick Tunnel registration may have failed).`
@@ -24944,16 +24938,16 @@ function checkChokidar() {
24944
24938
  }
24945
24939
  async function doctor(args2 = []) {
24946
24940
  const json = args2.includes("--json");
24947
- const cliVersion = true ? "2.32.5" : "0.0.0-dev";
24941
+ const cliVersion = true ? "2.32.6" : "0.0.0-dev";
24948
24942
  const apiBase = resolveApiBaseUrl();
24949
24943
  const diagnosticId = (0, import_node_crypto8.randomUUID)();
24950
24944
  log.info("doctor", `run id=${diagnosticId} cli=${cliVersion}`);
24951
- const [dns, health] = await Promise.all([
24945
+ const [dns2, health] = await Promise.all([
24952
24946
  checkDns(apiBase),
24953
24947
  checkHealth(apiBase)
24954
24948
  ]);
24955
24949
  const checks = [
24956
- dns,
24950
+ dns2,
24957
24951
  health,
24958
24952
  checkConfigDir(),
24959
24953
  checkSessions(),
@@ -25143,7 +25137,7 @@ async function completion(args2) {
25143
25137
  // src/commands/version.ts
25144
25138
  var import_picocolors13 = __toESM(require("picocolors"));
25145
25139
  function version2() {
25146
- const v = true ? "2.32.5" : "unknown";
25140
+ const v = true ? "2.32.6" : "unknown";
25147
25141
  console.log(`${import_picocolors13.default.bold("codeam-cli")} ${import_picocolors13.default.cyan(v)}`);
25148
25142
  }
25149
25143
 
@@ -25429,7 +25423,7 @@ function checkForUpdates() {
25429
25423
  if (process.env.CODEAM_DISABLE_UPDATE_CHECK === "1") return;
25430
25424
  if (process.env.CI) return;
25431
25425
  if (!process.stdout.isTTY) return;
25432
- const current = true ? "2.32.5" : null;
25426
+ const current = true ? "2.32.6" : null;
25433
25427
  if (!current) return;
25434
25428
  const cache = readCache();
25435
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.5",
3
+ "version": "2.32.6",
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",