codeam-cli 2.36.2 → 2.36.3

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.36.2] — 2026-06-11
8
+
9
+ ### Fixed
10
+
11
+ - **cli:** Drop BEADS_DIR so shared-server resolves the workspace from cwd
12
+
7
13
  ## [2.36.1] — 2026-06-11
8
14
 
9
15
  ### Fixed
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.36.2",
501
+ version: "2.36.3",
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",
@@ -5900,7 +5900,7 @@ function readAnonId() {
5900
5900
  }
5901
5901
  function superProperties() {
5902
5902
  return {
5903
- cliVersion: true ? "2.36.2" : "0.0.0-dev",
5903
+ cliVersion: true ? "2.36.3" : "0.0.0-dev",
5904
5904
  nodeVersion: process.version,
5905
5905
  platform: process.platform,
5906
5906
  arch: process.arch,
@@ -21143,6 +21143,9 @@ var StreamingState = class {
21143
21143
  }
21144
21144
  };
21145
21145
  var PERMISSION_TIMEOUT_MS = 5 * 60 * 1e3;
21146
+ function pickAllowOption(options) {
21147
+ return options.find((o) => o.kind === "allow_always") ?? options.find((o) => o.kind === "allow_once") ?? null;
21148
+ }
21146
21149
  var AcpHistory = class {
21147
21150
  constructor(publisher, opts) {
21148
21151
  this.publisher = publisher;
@@ -21252,6 +21255,17 @@ async function runAcpSession(opts) {
21252
21255
  }
21253
21256
  },
21254
21257
  onRequestPermission: async (request) => {
21258
+ if (opts.autoApprovePermissions) {
21259
+ const allow = pickAllowOption(request.options);
21260
+ if (allow) {
21261
+ log.info(
21262
+ "acpRunner",
21263
+ `AUTO mode \u2014 auto-approving permission (${allow.kind}) optionId=${allow.optionId}`
21264
+ );
21265
+ return { outcome: { outcome: "selected", optionId: allow.optionId } };
21266
+ }
21267
+ log.warn("acpRunner", "AUTO mode \u2014 no allow option offered; falling back to interactive");
21268
+ }
21255
21269
  const { event, optionIdByLabel } = mapPermissionRequest(request);
21256
21270
  await publisher.publishAwaitingAnswer(event);
21257
21271
  return streaming.registerPermission({
@@ -23525,7 +23539,11 @@ async function start(requestedAgent) {
23525
23539
  pluginAuthToken: session.pluginAuthToken,
23526
23540
  adapter,
23527
23541
  cwd,
23528
- getBeads
23542
+ getBeads,
23543
+ // AUTO mode in a headless GitHub Codespace: no human at the phone to
23544
+ // answer permission prompts, so auto-approve them rather than stall the
23545
+ // turn (the agent-agnostic equivalent of --dangerously-skip-permissions).
23546
+ autoApprovePermissions: process.env.CODESPACES === "true"
23529
23547
  });
23530
23548
  return;
23531
23549
  }
@@ -26473,7 +26491,7 @@ function checkChokidar() {
26473
26491
  }
26474
26492
  async function doctor(args2 = []) {
26475
26493
  const json = args2.includes("--json");
26476
- const cliVersion = true ? "2.36.2" : "0.0.0-dev";
26494
+ const cliVersion = true ? "2.36.3" : "0.0.0-dev";
26477
26495
  const apiBase = resolveApiBaseUrl();
26478
26496
  const diagnosticId = (0, import_node_crypto8.randomUUID)();
26479
26497
  log.info("doctor", `run id=${diagnosticId} cli=${cliVersion}`);
@@ -26672,7 +26690,7 @@ async function completion(args2) {
26672
26690
  // src/commands/version.ts
26673
26691
  var import_picocolors13 = __toESM(require("picocolors"));
26674
26692
  function version2() {
26675
- const v = true ? "2.36.2" : "unknown";
26693
+ const v = true ? "2.36.3" : "unknown";
26676
26694
  console.log(`${import_picocolors13.default.bold("codeam-cli")} ${import_picocolors13.default.cyan(v)}`);
26677
26695
  }
26678
26696
 
@@ -26958,7 +26976,7 @@ function checkForUpdates() {
26958
26976
  if (process.env.CODEAM_DISABLE_UPDATE_CHECK === "1") return;
26959
26977
  if (process.env.CI) return;
26960
26978
  if (!process.stdout.isTTY) return;
26961
- const current = true ? "2.36.2" : null;
26979
+ const current = true ? "2.36.3" : null;
26962
26980
  if (!current) return;
26963
26981
  const cache = readCache();
26964
26982
  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.36.2",
3
+ "version": "2.36.3",
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",