codeam-cli 2.61.18 → 2.61.19

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.61.18] — 2026-07-18
8
+
9
+ ### Added
10
+
11
+ - **cli:** List_models reports the in-use model (currentModelId)
12
+ - **cli:** Native ACP model + mode list/switch (single source of truth, no hardcoded/hacky)
13
+
7
14
  ## [2.61.17] — 2026-07-18
8
15
 
9
16
  ### Fixed
package/dist/index.js CHANGED
@@ -277,6 +277,10 @@ function getContextWindow(model) {
277
277
  if (!model) return DEFAULT_CONTEXT_WINDOW;
278
278
  return longestPrefixMatch(MODEL_CONTEXT_WINDOW, model) ?? DEFAULT_CONTEXT_WINDOW;
279
279
  }
280
+ function tryGetContextWindow(model) {
281
+ if (!model) return void 0;
282
+ return longestPrefixMatch(MODEL_CONTEXT_WINDOW, model);
283
+ }
280
284
 
281
285
  // ../../packages/shared/src/agents/registry.ts
282
286
  var AGENT_REGISTRY = {
@@ -6024,7 +6028,7 @@ function readAnonId() {
6024
6028
  }
6025
6029
  function superProperties() {
6026
6030
  return {
6027
- cliVersion: true ? "2.61.18" : "0.0.0-dev",
6031
+ cliVersion: true ? "2.61.19" : "0.0.0-dev",
6028
6032
  nodeVersion: process.version,
6029
6033
  platform: process.platform,
6030
6034
  arch: process.arch,
@@ -6205,7 +6209,7 @@ var os4 = __toESM(require("os"));
6205
6209
  // package.json
6206
6210
  var package_default = {
6207
6211
  name: "codeam-cli",
6208
- version: "2.61.18",
6212
+ version: "2.61.19",
6209
6213
  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.",
6210
6214
  type: "commonjs",
6211
6215
  main: "dist/index.js",
@@ -7348,7 +7352,7 @@ var CommandRelayService = class _CommandRelayService {
7348
7352
  // fresh + clear the "CLI update available" banner after a self-update
7349
7353
  // (a codespace that reinstalls @latest reconnects via heartbeat, not
7350
7354
  // pair/reconnect). Older backends ignore the extra field.
7351
- ..."2.61.18" ? { ideVersion: "2.61.18" } : {}
7355
+ ..."2.61.19" ? { ideVersion: "2.61.19" } : {}
7352
7356
  }).then(() => log.trace("relay", `heartbeat ok online=${online}`)).catch((err) => log.trace("relay", `heartbeat failed online=${online}`, err));
7353
7357
  }
7354
7358
  /**
@@ -17949,7 +17953,7 @@ async function autoUpgradeBeforeCriticalCommand() {
17949
17953
  if (process.env.NODE_ENV === "test") return;
17950
17954
  if (process.env.CODEAM_DISABLE_UPDATE_CHECK === "1") return;
17951
17955
  if (process.env.CI) return;
17952
- const current = true ? "2.61.18" : null;
17956
+ const current = true ? "2.61.19" : null;
17953
17957
  if (!current) return;
17954
17958
  const cache = readCache();
17955
17959
  const fresh = cache && Date.now() - cache.fetchedAt < TTL_MS;
@@ -17966,7 +17970,7 @@ function checkForUpdates() {
17966
17970
  if (process.env.CODEAM_DISABLE_UPDATE_CHECK === "1") return;
17967
17971
  if (process.env.CI) return;
17968
17972
  if (!process.stdout.isTTY) return;
17969
- const current = true ? "2.61.18" : null;
17973
+ const current = true ? "2.61.19" : null;
17970
17974
  if (!current) return;
17971
17975
  const cache = readCache();
17972
17976
  const fresh = cache && Date.now() - cache.fetchedAt < TTL_MS;
@@ -17986,7 +17990,7 @@ var SELF_UPDATE_INTERVAL_MS = 60 * 60 * 1e3;
17986
17990
  var SELF_UPDATE_VIEW_TIMEOUT_MS = 3e4;
17987
17991
  var SELF_UPDATE_INSTALL_TIMEOUT_MS = 18e4;
17988
17992
  function currentCliVersion() {
17989
- return true ? "2.61.18" : null;
17993
+ return true ? "2.61.19" : null;
17990
17994
  }
17991
17995
  function runCmd(cmd, args2, timeoutMs) {
17992
17996
  return new Promise((resolve8) => {
@@ -29764,7 +29768,10 @@ var AcpClient = class {
29764
29768
  this.availableModels = flattenSelectOptions(modelOption.options).map((opt) => ({
29765
29769
  id: opt.value,
29766
29770
  label: opt.name,
29767
- contextWindow: getContextWindow(opt.value)
29771
+ // Only when it's a real catalog match — native ids are often opaque
29772
+ // aliases ("default"/"opus") or proxied (MiniMax house agent), for which a
29773
+ // default 200K is a fake; undefined → the UI omits the context sub-label.
29774
+ contextWindow: tryGetContextWindow(opt.value)
29768
29775
  }));
29769
29776
  }
29770
29777
  /**
@@ -37812,7 +37819,7 @@ function checkChokidar() {
37812
37819
  }
37813
37820
  async function doctor(args2 = []) {
37814
37821
  const json = args2.includes("--json");
37815
- const cliVersion = true ? "2.61.18" : "0.0.0-dev";
37822
+ const cliVersion = true ? "2.61.19" : "0.0.0-dev";
37816
37823
  const apiBase2 = resolveApiBaseUrl();
37817
37824
  const diagnosticId = (0, import_node_crypto12.randomUUID)();
37818
37825
  log.info("doctor", `run id=${diagnosticId} cli=${cliVersion}`);
@@ -38323,7 +38330,7 @@ async function mcpRun(args2) {
38323
38330
  // src/commands/version.ts
38324
38331
  var import_picocolors15 = __toESM(require("picocolors"));
38325
38332
  function version2() {
38326
- const v = true ? "2.61.18" : "unknown";
38333
+ const v = true ? "2.61.19" : "unknown";
38327
38334
  console.log(`${import_picocolors15.default.bold("codeam-cli")} ${import_picocolors15.default.cyan(v)}`);
38328
38335
  }
38329
38336
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeam-cli",
3
- "version": "2.61.18",
3
+ "version": "2.61.19",
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",