codeam-cli 2.28.1 → 2.29.0

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.28.1] — 2026-06-06
8
+
9
+ ### Fixed
10
+
11
+ - **cli:** RequestCode times out at 10s instead of hanging forever
12
+
7
13
  ## [2.28.0] — 2026-06-06
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.28.1",
501
+ version: "2.29.0",
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",
@@ -693,7 +693,7 @@ function computePollDelay({ baseMs, failures }) {
693
693
  // src/services/pairing.service.ts
694
694
  var API_BASE = resolveApiBaseUrl();
695
695
  var REQUEST_CODE_TIMEOUT_MS = 1e4;
696
- async function requestCode(pluginId) {
696
+ async function requestCode(pluginId, options = {}) {
697
697
  try {
698
698
  const runtime = process.env.CODESPACES === "true" ? "github-codespaces" : "local";
699
699
  const codespaceName = process.env.CODESPACE_NAME;
@@ -705,7 +705,12 @@ async function requestCode(pluginId) {
705
705
  hostname: os2.hostname(),
706
706
  runtime,
707
707
  branch,
708
- ...codespaceName ? { codespaceName } : {}
708
+ ...codespaceName ? { codespaceName } : {},
709
+ ...options.originatorSessionId && options.originatorPluginId && options.originatorAuthToken ? {
710
+ originatorSessionId: options.originatorSessionId,
711
+ originatorPluginId: options.originatorPluginId,
712
+ originatorAuthToken: options.originatorAuthToken
713
+ } : {}
709
714
  });
710
715
  let timer;
711
716
  const timeoutSentinel = /* @__PURE__ */ Symbol("request-code-timeout");
@@ -5897,7 +5902,7 @@ function readAnonId() {
5897
5902
  }
5898
5903
  function superProperties() {
5899
5904
  return {
5900
- cliVersion: true ? "2.28.1" : "0.0.0-dev",
5905
+ cliVersion: true ? "2.29.0" : "0.0.0-dev",
5901
5906
  nodeVersion: process.version,
5902
5907
  platform: process.platform,
5903
5908
  arch: process.arch,
@@ -16381,7 +16386,12 @@ async function link(args2 = []) {
16381
16386
  const pluginId = (0, import_node_crypto6.randomUUID)();
16382
16387
  const spin = dist_exports.spinner();
16383
16388
  spin.start("Requesting pairing code...");
16384
- const pairing = await requestCode(pluginId);
16389
+ const originator = getActiveSession();
16390
+ const pairing = await requestCode(pluginId, {
16391
+ originatorSessionId: originator?.id,
16392
+ originatorPluginId: originator?.pluginId,
16393
+ originatorAuthToken: originator?.pluginAuthToken
16394
+ });
16385
16395
  if (!pairing) {
16386
16396
  spin.stop("Failed");
16387
16397
  showError("Could not reach the server. Check your connection and try again.");
@@ -24679,7 +24689,7 @@ function checkChokidar() {
24679
24689
  }
24680
24690
  async function doctor(args2 = []) {
24681
24691
  const json = args2.includes("--json");
24682
- const cliVersion = true ? "2.28.1" : "0.0.0-dev";
24692
+ const cliVersion = true ? "2.29.0" : "0.0.0-dev";
24683
24693
  const apiBase = resolveApiBaseUrl();
24684
24694
  const diagnosticId = (0, import_node_crypto8.randomUUID)();
24685
24695
  log.info("doctor", `run id=${diagnosticId} cli=${cliVersion}`);
@@ -24878,7 +24888,7 @@ async function completion(args2) {
24878
24888
  // src/commands/version.ts
24879
24889
  var import_picocolors13 = __toESM(require("picocolors"));
24880
24890
  function version2() {
24881
- const v = true ? "2.28.1" : "unknown";
24891
+ const v = true ? "2.29.0" : "unknown";
24882
24892
  console.log(`${import_picocolors13.default.bold("codeam-cli")} ${import_picocolors13.default.cyan(v)}`);
24883
24893
  }
24884
24894
 
@@ -25164,7 +25174,7 @@ function checkForUpdates() {
25164
25174
  if (process.env.CODEAM_DISABLE_UPDATE_CHECK === "1") return;
25165
25175
  if (process.env.CI) return;
25166
25176
  if (!process.stdout.isTTY) return;
25167
- const current = true ? "2.28.1" : null;
25177
+ const current = true ? "2.29.0" : null;
25168
25178
  if (!current) return;
25169
25179
  const cache = readCache();
25170
25180
  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.28.1",
3
+ "version": "2.29.0",
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",