codeam-cli 2.39.1 → 2.39.2

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.1] — 2026-06-12
8
+
9
+ ### Fixed
10
+
11
+ - **cli:** Disable in-session auto-provision — it starved/killed sessions ⚠️ BREAKING CHANGE
12
+
7
13
  ## [2.39.0] — 2026-06-12
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.1",
501
+ version: "2.39.2",
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,7 +5900,7 @@ function readAnonId() {
5900
5900
  }
5901
5901
  function superProperties() {
5902
5902
  return {
5903
- cliVersion: true ? "2.39.1" : "0.0.0-dev",
5903
+ cliVersion: true ? "2.39.2" : "0.0.0-dev",
5904
5904
  nodeVersion: process.version,
5905
5905
  platform: process.platform,
5906
5906
  arch: process.arch,
@@ -19272,6 +19272,28 @@ var requestPreviewDetectH = (ctx) => {
19272
19272
  });
19273
19273
  })();
19274
19274
  };
19275
+ var previewPrewarmStarted = false;
19276
+ function prewarmPreviewDetection(runtime) {
19277
+ if (previewPrewarmStarted) return;
19278
+ previewPrewarmStarted = true;
19279
+ if (typeof runtime.generateOneShot !== "function") return;
19280
+ void (async () => {
19281
+ try {
19282
+ const cwd = process.cwd();
19283
+ if (await readPreviewConfig(cwd)) return;
19284
+ const raw = await runtime.generateOneShot(PREVIEW_DETECT_PROMPT).catch(() => null);
19285
+ const detection = safeParseDetection(raw);
19286
+ if (!detection || detection.framework === "unsupported") return;
19287
+ await writePreviewConfig(cwd, detection);
19288
+ log.info(
19289
+ "preview",
19290
+ `prewarm: cached detection (${detection.framework} on :${detection.port})`
19291
+ );
19292
+ } catch (err) {
19293
+ log.info("preview", `prewarm: skipped (${String(err)})`);
19294
+ }
19295
+ })();
19296
+ }
19275
19297
  function compileReadyPattern(pattern) {
19276
19298
  return new RegExp(pattern, "i");
19277
19299
  }
@@ -21541,8 +21563,10 @@ async function runAcpSession(opts) {
21541
21563
  { id: opts.agent, name: opts.agent, displayName: opts.agent }
21542
21564
  );
21543
21565
  relay.start();
21566
+ const prewarmTimer = setTimeout(() => prewarmPreviewDetection(runtime), 2e4);
21544
21567
  const shutdown = async (signal) => {
21545
21568
  showInfo(`Shutting down ACP session (${signal})\u2026`);
21569
+ clearTimeout(prewarmTimer);
21546
21570
  relay.stop();
21547
21571
  void fileWatcher.stop();
21548
21572
  turnFiles.stop();
@@ -26657,7 +26681,7 @@ function checkChokidar() {
26657
26681
  }
26658
26682
  async function doctor(args2 = []) {
26659
26683
  const json = args2.includes("--json");
26660
- const cliVersion = true ? "2.39.1" : "0.0.0-dev";
26684
+ const cliVersion = true ? "2.39.2" : "0.0.0-dev";
26661
26685
  const apiBase = resolveApiBaseUrl();
26662
26686
  const diagnosticId = (0, import_node_crypto8.randomUUID)();
26663
26687
  log.info("doctor", `run id=${diagnosticId} cli=${cliVersion}`);
@@ -26856,7 +26880,7 @@ async function completion(args2) {
26856
26880
  // src/commands/version.ts
26857
26881
  var import_picocolors13 = __toESM(require("picocolors"));
26858
26882
  function version2() {
26859
- const v = true ? "2.39.1" : "unknown";
26883
+ const v = true ? "2.39.2" : "unknown";
26860
26884
  console.log(`${import_picocolors13.default.bold("codeam-cli")} ${import_picocolors13.default.cyan(v)}`);
26861
26885
  }
26862
26886
 
@@ -27142,7 +27166,7 @@ function checkForUpdates() {
27142
27166
  if (process.env.CODEAM_DISABLE_UPDATE_CHECK === "1") return;
27143
27167
  if (process.env.CI) return;
27144
27168
  if (!process.stdout.isTTY) return;
27145
- const current = true ? "2.39.1" : null;
27169
+ const current = true ? "2.39.2" : null;
27146
27170
  if (!current) return;
27147
27171
  const cache = readCache();
27148
27172
  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.1",
3
+ "version": "2.39.2",
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",