codeam-cli 2.39.49 → 2.39.50

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.49] — 2026-06-19
8
+
9
+ ### Fixed
10
+
11
+ - **cli:** Load codespace-env.json + start savings reporter on serving daemon
12
+
7
13
  ## [2.39.48] — 2026-06-19
8
14
 
9
15
  ### Fixed
package/dist/index.js CHANGED
@@ -5388,7 +5388,7 @@ function readAnonId() {
5388
5388
  }
5389
5389
  function superProperties() {
5390
5390
  return {
5391
- cliVersion: true ? "2.39.49" : "0.0.0-dev",
5391
+ cliVersion: true ? "2.39.50" : "0.0.0-dev",
5392
5392
  nodeVersion: process.version,
5393
5393
  platform: process.platform,
5394
5394
  arch: process.arch,
@@ -5547,7 +5547,7 @@ var os4 = __toESM(require("os"));
5547
5547
  // package.json
5548
5548
  var package_default = {
5549
5549
  name: "codeam-cli",
5550
- version: "2.39.49",
5550
+ version: "2.39.50",
5551
5551
  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.",
5552
5552
  type: "commonjs",
5553
5553
  main: "dist/index.js",
@@ -17118,12 +17118,15 @@ function provisionAgentCredentials(publicAgentId, auth, homeDir2 = os30.homedir(
17118
17118
  // src/services/headroom/stats-reporter.ts
17119
17119
  var ZERO = { rawTokensEst: 0, sentTokensEst: 0, cachedTokens: 0, retrieveHops: 0 };
17120
17120
  function read(stats) {
17121
- const p2 = stats.persistent_savings ?? {};
17121
+ const totals = stats.agent_usage?.totals;
17122
+ const compression = stats.summary?.compression;
17123
+ const rawTokensEst = totals?.before_tokens ?? compression?.total_tokens_before_with_cli_filtering ?? 0;
17124
+ const sentTokensEst = totals?.after_tokens ?? rawTokensEst - (compression?.total_tokens_removed ?? 0);
17122
17125
  return {
17123
- rawTokensEst: p2.tokens_before ?? p2.input_tokens ?? p2.tokensBefore ?? 0,
17124
- sentTokensEst: p2.tokens_after ?? p2.output_tokens ?? p2.tokensAfter ?? 0,
17125
- cachedTokens: p2.cached_tokens ?? p2.cache_read_input_tokens ?? p2.cachedTokens ?? 0,
17126
- retrieveHops: p2.retrieve_hops ?? p2.retrieveHops ?? 0
17126
+ rawTokensEst,
17127
+ sentTokensEst,
17128
+ cachedTokens: 0,
17129
+ retrieveHops: stats.summary?.mcp?.retrievals ?? 0
17127
17130
  };
17128
17131
  }
17129
17132
  function mapStatsToSavings(stats, prev) {
@@ -27564,7 +27567,7 @@ function checkChokidar() {
27564
27567
  }
27565
27568
  async function doctor(args2 = []) {
27566
27569
  const json = args2.includes("--json");
27567
- const cliVersion = true ? "2.39.49" : "0.0.0-dev";
27570
+ const cliVersion = true ? "2.39.50" : "0.0.0-dev";
27568
27571
  const apiBase2 = resolveApiBaseUrl();
27569
27572
  const diagnosticId = (0, import_node_crypto8.randomUUID)();
27570
27573
  log.info("doctor", `run id=${diagnosticId} cli=${cliVersion}`);
@@ -27763,7 +27766,7 @@ async function completion(args2) {
27763
27766
  // src/commands/version.ts
27764
27767
  var import_picocolors13 = __toESM(require("picocolors"));
27765
27768
  function version2() {
27766
- const v = true ? "2.39.49" : "unknown";
27769
+ const v = true ? "2.39.50" : "unknown";
27767
27770
  console.log(`${import_picocolors13.default.bold("codeam-cli")} ${import_picocolors13.default.cyan(v)}`);
27768
27771
  }
27769
27772
 
@@ -28049,7 +28052,7 @@ function checkForUpdates() {
28049
28052
  if (process.env.CODEAM_DISABLE_UPDATE_CHECK === "1") return;
28050
28053
  if (process.env.CI) return;
28051
28054
  if (!process.stdout.isTTY) return;
28052
- const current = true ? "2.39.49" : null;
28055
+ const current = true ? "2.39.50" : null;
28053
28056
  if (!current) return;
28054
28057
  const cache = readCache();
28055
28058
  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.49",
3
+ "version": "2.39.50",
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",