codeam-cli 2.39.10 → 2.39.11

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,12 @@ 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.39.10] — 2026-06-13
8
+
9
+ ### Fixed
10
+
11
+ - **cli:** Pre-complete Claude onboarding + persist on-demand preview detect
12
+
7
13
  ## [2.39.9] — 2026-06-13
8
14
 
9
15
  ### Added
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.39.10",
501
+ version: "2.39.11",
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",
@@ -5900,13 +5900,29 @@ function readAnonId() {
5900
5900
  }
5901
5901
  function superProperties() {
5902
5902
  return {
5903
- cliVersion: true ? "2.39.10" : "0.0.0-dev",
5903
+ cliVersion: true ? "2.39.11" : "0.0.0-dev",
5904
5904
  nodeVersion: process.version,
5905
5905
  platform: process.platform,
5906
5906
  arch: process.arch,
5907
5907
  osRelease: os4.release()
5908
5908
  };
5909
5909
  }
5910
+ var resilientFetch = async (url, options) => {
5911
+ try {
5912
+ return await fetch(url, options);
5913
+ } catch (err) {
5914
+ log.trace(
5915
+ "telemetry",
5916
+ `posthog transport failed \u2014 dropping batch (network unreachable): ${err instanceof Error ? err.message : String(err)}`
5917
+ );
5918
+ return {
5919
+ status: 200,
5920
+ text: async () => "",
5921
+ json: async () => ({}),
5922
+ body: null
5923
+ };
5924
+ }
5925
+ };
5910
5926
  function initTelemetry() {
5911
5927
  if (client) return true;
5912
5928
  if (isOptedOut()) {
@@ -5926,7 +5942,14 @@ function initTelemetry() {
5926
5942
  // and we shutdown() before exit anyway. Per-batch size caps
5927
5943
  // memory growth on long-lived `codeam start` sessions.
5928
5944
  flushAt: 20,
5929
- flushInterval: 1e4
5945
+ flushInterval: 1e4,
5946
+ // Network failures resolve to a synthetic 200 instead of throwing —
5947
+ // keeps a flaky/offline network from crashing the CLI or spamming the
5948
+ // session PTY. See resilientFetch above.
5949
+ fetch: resilientFetch
5950
+ });
5951
+ client.on("error", (err) => {
5952
+ log.trace("telemetry", "posthog error (ignored)", err);
5930
5953
  });
5931
5954
  client.register(superProperties());
5932
5955
  log.trace("telemetry", `posthog client initialised host=${host} distinctId=${distinctId}`);
@@ -26969,7 +26992,7 @@ function checkChokidar() {
26969
26992
  }
26970
26993
  async function doctor(args2 = []) {
26971
26994
  const json = args2.includes("--json");
26972
- const cliVersion = true ? "2.39.10" : "0.0.0-dev";
26995
+ const cliVersion = true ? "2.39.11" : "0.0.0-dev";
26973
26996
  const apiBase = resolveApiBaseUrl();
26974
26997
  const diagnosticId = (0, import_node_crypto8.randomUUID)();
26975
26998
  log.info("doctor", `run id=${diagnosticId} cli=${cliVersion}`);
@@ -27168,7 +27191,7 @@ async function completion(args2) {
27168
27191
  // src/commands/version.ts
27169
27192
  var import_picocolors13 = __toESM(require("picocolors"));
27170
27193
  function version2() {
27171
- const v = true ? "2.39.10" : "unknown";
27194
+ const v = true ? "2.39.11" : "unknown";
27172
27195
  console.log(`${import_picocolors13.default.bold("codeam-cli")} ${import_picocolors13.default.cyan(v)}`);
27173
27196
  }
27174
27197
 
@@ -27454,7 +27477,7 @@ function checkForUpdates() {
27454
27477
  if (process.env.CODEAM_DISABLE_UPDATE_CHECK === "1") return;
27455
27478
  if (process.env.CI) return;
27456
27479
  if (!process.stdout.isTTY) return;
27457
- const current = true ? "2.39.10" : null;
27480
+ const current = true ? "2.39.11" : null;
27458
27481
  if (!current) return;
27459
27482
  const cache = readCache();
27460
27483
  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.39.10",
3
+ "version": "2.39.11",
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",