codeam-cli 2.23.7 → 2.23.8

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,18 @@ 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.23.7] — 2026-05-26
8
+
9
+ ### Added
10
+
11
+ - **cli:** Emit typed agent_banner chunk for Claude startup splash (#195)
12
+
13
+ ## [2.23.6] — 2026-05-26
14
+
15
+ ### Fixed
16
+
17
+ - **cli:** Raise listProjectFiles cap from 5000 to 50000 (#194)
18
+
7
19
  ## [2.23.5] — 2026-05-25
8
20
 
9
21
  ### Added
package/dist/index.js CHANGED
@@ -441,7 +441,7 @@ var import_qrcode_terminal = __toESM(require("qrcode-terminal"));
441
441
  // package.json
442
442
  var package_default = {
443
443
  name: "codeam-cli",
444
- version: "2.23.7",
444
+ version: "2.23.8",
445
445
  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.",
446
446
  type: "commonjs",
447
447
  main: "dist/index.js",
@@ -718,6 +718,9 @@ async function postLinkCredential(input) {
718
718
  if (input.modelPreference) {
719
719
  body.modelPreference = input.modelPreference;
720
720
  }
721
+ if (input.agentState) {
722
+ body.agentState = input.agentState;
723
+ }
721
724
  try {
722
725
  await _transport.postJsonAuthed(
723
726
  `${API_BASE}/api/plugin/agents/${input.agentId}/link`,
@@ -5768,7 +5771,7 @@ function readAnonId() {
5768
5771
  }
5769
5772
  function superProperties() {
5770
5773
  return {
5771
- cliVersion: true ? "2.23.7" : "0.0.0-dev",
5774
+ cliVersion: true ? "2.23.8" : "0.0.0-dev",
5772
5775
  nodeVersion: process.version,
5773
5776
  platform: process.platform,
5774
5777
  arch: process.arch,
@@ -9036,11 +9039,12 @@ function claudeCredentialsPaths() {
9036
9039
  ];
9037
9040
  }
9038
9041
  async function extractLocalClaudeToken() {
9042
+ const agentState = readClaudeAgentState();
9039
9043
  for (const flat of claudeCredentialsPaths()) {
9040
9044
  if (!fs7.existsSync(flat)) continue;
9041
9045
  const credential = fs7.readFileSync(flat, "utf8").trim();
9042
9046
  if (credential.length > 0) {
9043
- return { method: "oauth", credential, source: "flat-file" };
9047
+ return { method: "oauth", credential, source: "flat-file", agentState };
9044
9048
  }
9045
9049
  }
9046
9050
  if (process.platform === "darwin") {
@@ -9053,7 +9057,7 @@ async function extractLocalClaudeToken() {
9053
9057
  );
9054
9058
  const credential = stdout.trim();
9055
9059
  if (credential.length > 0) {
9056
- return { method: "oauth", credential, source: "macos-keychain" };
9060
+ return { method: "oauth", credential, source: "macos-keychain", agentState };
9057
9061
  }
9058
9062
  } catch {
9059
9063
  }
@@ -9061,6 +9065,19 @@ async function extractLocalClaudeToken() {
9061
9065
  }
9062
9066
  return null;
9063
9067
  }
9068
+ function readClaudeAgentState() {
9069
+ const STATE_MAX_BYTES = 256 * 1024;
9070
+ const candidate = path10.join(os9.homedir(), ".claude.json");
9071
+ try {
9072
+ if (!fs7.existsSync(candidate)) return void 0;
9073
+ const buf = fs7.readFileSync(candidate);
9074
+ if (buf.length === 0 || buf.length > STATE_MAX_BYTES) return void 0;
9075
+ const text = buf.toString("utf8").trim();
9076
+ return text.length > 0 ? text : void 0;
9077
+ } catch {
9078
+ return void 0;
9079
+ }
9080
+ }
9064
9081
 
9065
9082
  // src/agents/claude/link.ts
9066
9083
  function claudeCredentialLocator() {
@@ -15251,7 +15268,8 @@ async function uploadAndSucceed(ctx, paired, pluginId, token) {
15251
15268
  pluginId,
15252
15269
  pluginAuthToken: paired.pluginAuthToken,
15253
15270
  method: token.method,
15254
- credential: token.credential
15271
+ credential: token.credential,
15272
+ agentState: token.agentState
15255
15273
  });
15256
15274
  if (!result.ok) {
15257
15275
  uploadSpin.stop("Failed");
@@ -18482,7 +18500,7 @@ function checkChokidar() {
18482
18500
  }
18483
18501
  async function doctor(args2 = []) {
18484
18502
  const json = args2.includes("--json");
18485
- const cliVersion = true ? "2.23.7" : "0.0.0-dev";
18503
+ const cliVersion = true ? "2.23.8" : "0.0.0-dev";
18486
18504
  const apiBase = resolveApiBaseUrl();
18487
18505
  const diagnosticId = (0, import_node_crypto5.randomUUID)();
18488
18506
  log.info("doctor", `run id=${diagnosticId} cli=${cliVersion}`);
@@ -18681,7 +18699,7 @@ async function completion(args2) {
18681
18699
  // src/commands/version.ts
18682
18700
  var import_picocolors13 = __toESM(require("picocolors"));
18683
18701
  function version2() {
18684
- const v = true ? "2.23.7" : "unknown";
18702
+ const v = true ? "2.23.8" : "unknown";
18685
18703
  console.log(`${import_picocolors13.default.bold("codeam-cli")} ${import_picocolors13.default.cyan(v)}`);
18686
18704
  }
18687
18705
 
@@ -18909,7 +18927,7 @@ function checkForUpdates() {
18909
18927
  if (process.env.CODEAM_DISABLE_UPDATE_CHECK === "1") return;
18910
18928
  if (process.env.CI) return;
18911
18929
  if (!process.stdout.isTTY) return;
18912
- const current = true ? "2.23.7" : null;
18930
+ const current = true ? "2.23.8" : null;
18913
18931
  if (!current) return;
18914
18932
  const cache = readCache();
18915
18933
  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.23.7",
3
+ "version": "2.23.8",
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",