codeam-cli 2.52.10 → 2.52.11
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 +6 -0
- package/dist/index.js +21 -13
- package/package.json +1 -1
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.52.10] — 2026-07-04
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- **cli:** Self-update installs into the RUNNING prefix — no more manual-update fallback
|
|
12
|
+
|
|
7
13
|
## [2.52.9] — 2026-07-04
|
|
8
14
|
|
|
9
15
|
### Fixed
|
package/dist/index.js
CHANGED
|
@@ -5397,7 +5397,7 @@ function readAnonId() {
|
|
|
5397
5397
|
}
|
|
5398
5398
|
function superProperties() {
|
|
5399
5399
|
return {
|
|
5400
|
-
cliVersion: true ? "2.52.
|
|
5400
|
+
cliVersion: true ? "2.52.11" : "0.0.0-dev",
|
|
5401
5401
|
nodeVersion: process.version,
|
|
5402
5402
|
platform: process.platform,
|
|
5403
5403
|
arch: process.arch,
|
|
@@ -5578,7 +5578,7 @@ var os4 = __toESM(require("os"));
|
|
|
5578
5578
|
// package.json
|
|
5579
5579
|
var package_default = {
|
|
5580
5580
|
name: "codeam-cli",
|
|
5581
|
-
version: "2.52.
|
|
5581
|
+
version: "2.52.11",
|
|
5582
5582
|
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.",
|
|
5583
5583
|
type: "commonjs",
|
|
5584
5584
|
main: "dist/index.js",
|
|
@@ -14928,7 +14928,7 @@ async function autoUpgradeBeforeCriticalCommand() {
|
|
|
14928
14928
|
if (process.env.NODE_ENV === "test") return;
|
|
14929
14929
|
if (process.env.CODEAM_DISABLE_UPDATE_CHECK === "1") return;
|
|
14930
14930
|
if (process.env.CI) return;
|
|
14931
|
-
const current = true ? "2.52.
|
|
14931
|
+
const current = true ? "2.52.11" : null;
|
|
14932
14932
|
if (!current) return;
|
|
14933
14933
|
const cache = readCache();
|
|
14934
14934
|
const fresh = cache && Date.now() - cache.fetchedAt < TTL_MS;
|
|
@@ -14945,7 +14945,7 @@ function checkForUpdates() {
|
|
|
14945
14945
|
if (process.env.CODEAM_DISABLE_UPDATE_CHECK === "1") return;
|
|
14946
14946
|
if (process.env.CI) return;
|
|
14947
14947
|
if (!process.stdout.isTTY) return;
|
|
14948
|
-
const current = true ? "2.52.
|
|
14948
|
+
const current = true ? "2.52.11" : null;
|
|
14949
14949
|
if (!current) return;
|
|
14950
14950
|
const cache = readCache();
|
|
14951
14951
|
const fresh = cache && Date.now() - cache.fetchedAt < TTL_MS;
|
|
@@ -15647,7 +15647,7 @@ var defaultSpawner = (env, cwd, args2 = []) => (0, import_node_child_process15.s
|
|
|
15647
15647
|
detached: false
|
|
15648
15648
|
});
|
|
15649
15649
|
function currentCliVersion() {
|
|
15650
|
-
return true ? "2.52.
|
|
15650
|
+
return true ? "2.52.11" : null;
|
|
15651
15651
|
}
|
|
15652
15652
|
function runCmd(cmd, args2, timeoutMs) {
|
|
15653
15653
|
return new Promise((resolve7) => {
|
|
@@ -26656,6 +26656,14 @@ ${opts.recentStderr}`;
|
|
|
26656
26656
|
if (!opts.hadText) return TURN_FAILURE_MESSAGE;
|
|
26657
26657
|
return null;
|
|
26658
26658
|
}
|
|
26659
|
+
var WINDOWS_CONTROL_C_EXIT = 3221225786;
|
|
26660
|
+
function adapterExitMessage(opts) {
|
|
26661
|
+
if (opts.code === WINDOWS_CONTROL_C_EXIT) return null;
|
|
26662
|
+
if (opts.signal === "SIGINT") return null;
|
|
26663
|
+
if (opts.authFail) return AUTH_FAILURE_MESSAGE;
|
|
26664
|
+
if (opts.outageFail) return providerOutageMessage(opts.agent);
|
|
26665
|
+
return `Agent adapter exited unexpectedly (code=${opts.code ?? "null"} signal=${opts.signal ?? "null"}).`;
|
|
26666
|
+
}
|
|
26659
26667
|
async function reportCredentialInvalid(opts, fetchImpl = fetch) {
|
|
26660
26668
|
const url = `${resolveApiBaseUrl()}/api/plugin/agents/${encodeURIComponent(opts.agent)}/credential-invalid`;
|
|
26661
26669
|
const body = JSON.stringify({ sessionId: opts.sessionId, pluginId: opts.pluginId });
|
|
@@ -26805,6 +26813,8 @@ async function runAcpSession(opts) {
|
|
|
26805
26813
|
log.warn("acpRunner", `adapter died code=${code} signal=${signal}; shutting down session`);
|
|
26806
26814
|
const authFail = looksLikeAuthFailure(recentStderr.join("\n"));
|
|
26807
26815
|
const outageFail = !authFail && looksLikeProviderOutage(recentStderr.join("\n"));
|
|
26816
|
+
const message = adapterExitMessage({ code, signal, authFail, outageFail, agent: opts.agent });
|
|
26817
|
+
const benign = message === null;
|
|
26808
26818
|
if (authFail) {
|
|
26809
26819
|
void reportCredentialInvalid(opts);
|
|
26810
26820
|
}
|
|
@@ -26812,15 +26822,13 @@ async function runAcpSession(opts) {
|
|
|
26812
26822
|
await withTimeout(
|
|
26813
26823
|
(async () => {
|
|
26814
26824
|
await streaming.closeAll();
|
|
26815
|
-
|
|
26816
|
-
type: "text",
|
|
26817
|
-
|
|
26818
|
-
done: true
|
|
26819
|
-
});
|
|
26825
|
+
if (message !== null) {
|
|
26826
|
+
await publisher.publishOutput({ type: "text", content: message, done: true });
|
|
26827
|
+
}
|
|
26820
26828
|
})(),
|
|
26821
26829
|
5e3
|
|
26822
26830
|
);
|
|
26823
|
-
process.exit(1);
|
|
26831
|
+
process.exit(benign ? 0 : 1);
|
|
26824
26832
|
})();
|
|
26825
26833
|
}
|
|
26826
26834
|
};
|
|
@@ -31404,7 +31412,7 @@ function checkChokidar() {
|
|
|
31404
31412
|
}
|
|
31405
31413
|
async function doctor(args2 = []) {
|
|
31406
31414
|
const json = args2.includes("--json");
|
|
31407
|
-
const cliVersion = true ? "2.52.
|
|
31415
|
+
const cliVersion = true ? "2.52.11" : "0.0.0-dev";
|
|
31408
31416
|
const apiBase2 = resolveApiBaseUrl();
|
|
31409
31417
|
const diagnosticId = (0, import_node_crypto8.randomUUID)();
|
|
31410
31418
|
log.info("doctor", `run id=${diagnosticId} cli=${cliVersion}`);
|
|
@@ -31603,7 +31611,7 @@ async function completion(args2) {
|
|
|
31603
31611
|
// src/commands/version.ts
|
|
31604
31612
|
var import_picocolors15 = __toESM(require("picocolors"));
|
|
31605
31613
|
function version2() {
|
|
31606
|
-
const v = true ? "2.52.
|
|
31614
|
+
const v = true ? "2.52.11" : "unknown";
|
|
31607
31615
|
console.log(`${import_picocolors15.default.bold("codeam-cli")} ${import_picocolors15.default.cyan(v)}`);
|
|
31608
31616
|
}
|
|
31609
31617
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codeam-cli",
|
|
3
|
-
"version": "2.52.
|
|
3
|
+
"version": "2.52.11",
|
|
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",
|