codeam-cli 2.60.3 → 2.60.4

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.
Files changed (2) hide show
  1. package/dist/index.js +20 -9
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -5653,7 +5653,7 @@ function readAnonId() {
5653
5653
  }
5654
5654
  function superProperties() {
5655
5655
  return {
5656
- cliVersion: true ? "2.60.3" : "0.0.0-dev",
5656
+ cliVersion: true ? "2.60.4" : "0.0.0-dev",
5657
5657
  nodeVersion: process.version,
5658
5658
  platform: process.platform,
5659
5659
  arch: process.arch,
@@ -5834,7 +5834,7 @@ var os4 = __toESM(require("os"));
5834
5834
  // package.json
5835
5835
  var package_default = {
5836
5836
  name: "codeam-cli",
5837
- version: "2.60.3",
5837
+ version: "2.60.4",
5838
5838
  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.",
5839
5839
  type: "commonjs",
5840
5840
  main: "dist/index.js",
@@ -6905,7 +6905,7 @@ var CommandRelayService = class {
6905
6905
  // fresh + clear the "CLI update available" banner after a self-update
6906
6906
  // (a codespace that reinstalls @latest reconnects via heartbeat, not
6907
6907
  // pair/reconnect). Older backends ignore the extra field.
6908
- ..."2.60.3" ? { ideVersion: "2.60.3" } : {}
6908
+ ..."2.60.4" ? { ideVersion: "2.60.4" } : {}
6909
6909
  }).then(() => log.trace("relay", `heartbeat ok online=${online}`)).catch((err) => log.trace("relay", `heartbeat failed online=${online}`, err));
6910
6910
  }
6911
6911
  /**
@@ -15921,7 +15921,7 @@ async function autoUpgradeBeforeCriticalCommand() {
15921
15921
  if (process.env.NODE_ENV === "test") return;
15922
15922
  if (process.env.CODEAM_DISABLE_UPDATE_CHECK === "1") return;
15923
15923
  if (process.env.CI) return;
15924
- const current = true ? "2.60.3" : null;
15924
+ const current = true ? "2.60.4" : null;
15925
15925
  if (!current) return;
15926
15926
  const cache = readCache();
15927
15927
  const fresh = cache && Date.now() - cache.fetchedAt < TTL_MS;
@@ -15938,7 +15938,7 @@ function checkForUpdates() {
15938
15938
  if (process.env.CODEAM_DISABLE_UPDATE_CHECK === "1") return;
15939
15939
  if (process.env.CI) return;
15940
15940
  if (!process.stdout.isTTY) return;
15941
- const current = true ? "2.60.3" : null;
15941
+ const current = true ? "2.60.4" : null;
15942
15942
  if (!current) return;
15943
15943
  const cache = readCache();
15944
15944
  const fresh = cache && Date.now() - cache.fetchedAt < TTL_MS;
@@ -15958,7 +15958,7 @@ var SELF_UPDATE_INTERVAL_MS = 60 * 60 * 1e3;
15958
15958
  var SELF_UPDATE_VIEW_TIMEOUT_MS = 3e4;
15959
15959
  var SELF_UPDATE_INSTALL_TIMEOUT_MS = 18e4;
15960
15960
  function currentCliVersion() {
15961
- return true ? "2.60.3" : null;
15961
+ return true ? "2.60.4" : null;
15962
15962
  }
15963
15963
  function runCmd(cmd, args2, timeoutMs) {
15964
15964
  return new Promise((resolve7) => {
@@ -29595,6 +29595,16 @@ function makeMirrorOnNewMessages(deps) {
29595
29595
  isFirstEmit = false;
29596
29596
  };
29597
29597
  }
29598
+ function makeSerializedBatonPoster(post2) {
29599
+ let chain = Promise.resolve();
29600
+ return (args2) => {
29601
+ chain = chain.then(() => post2(args2)).then(
29602
+ () => void 0,
29603
+ () => void 0
29604
+ );
29605
+ void chain;
29606
+ };
29607
+ }
29598
29608
  async function runBatonSession(opts) {
29599
29609
  const publisher = new AcpPublisher({
29600
29610
  sessionId: opts.sessionId,
@@ -29690,11 +29700,12 @@ async function runBatonSession(opts) {
29690
29700
  });
29691
29701
  mirror.start();
29692
29702
  };
29703
+ const postBatonState = makeSerializedBatonPoster(postBatonEvent);
29693
29704
  const controller = new BatonController({
29694
29705
  local: nativeDriver,
29695
29706
  mobile: mobileDriver,
29696
29707
  publishState: (state, driver, conversationId) => {
29697
- void postBatonEvent({
29708
+ postBatonState({
29698
29709
  sessionId: opts.sessionId,
29699
29710
  pluginId: opts.pluginId,
29700
29711
  pluginAuthToken: opts.pluginAuthToken,
@@ -32661,7 +32672,7 @@ function checkChokidar() {
32661
32672
  }
32662
32673
  async function doctor(args2 = []) {
32663
32674
  const json = args2.includes("--json");
32664
- const cliVersion = true ? "2.60.3" : "0.0.0-dev";
32675
+ const cliVersion = true ? "2.60.4" : "0.0.0-dev";
32665
32676
  const apiBase2 = resolveApiBaseUrl();
32666
32677
  const diagnosticId = (0, import_node_crypto9.randomUUID)();
32667
32678
  log.info("doctor", `run id=${diagnosticId} cli=${cliVersion}`);
@@ -32860,7 +32871,7 @@ async function completion(args2) {
32860
32871
  // src/commands/version.ts
32861
32872
  var import_picocolors15 = __toESM(require("picocolors"));
32862
32873
  function version2() {
32863
- const v = true ? "2.60.3" : "unknown";
32874
+ const v = true ? "2.60.4" : "unknown";
32864
32875
  console.log(`${import_picocolors15.default.bold("codeam-cli")} ${import_picocolors15.default.cyan(v)}`);
32865
32876
  }
32866
32877
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeam-cli",
3
- "version": "2.60.3",
3
+ "version": "2.60.4",
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",