codeam-cli 2.61.39 → 2.61.40
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.61.39] — 2026-07-25
|
|
8
|
+
|
|
9
|
+
### Performance
|
|
10
|
+
|
|
11
|
+
- **cli:** Un-gate the agent spawn from beads provisioning (codespace)
|
|
12
|
+
|
|
7
13
|
## [2.61.38] — 2026-07-24
|
|
8
14
|
|
|
9
15
|
### Fixed
|
package/dist/index.js
CHANGED
|
@@ -6355,7 +6355,7 @@ function readAnonId() {
|
|
|
6355
6355
|
}
|
|
6356
6356
|
function superProperties() {
|
|
6357
6357
|
return {
|
|
6358
|
-
cliVersion: true ? "2.61.
|
|
6358
|
+
cliVersion: true ? "2.61.40" : "0.0.0-dev",
|
|
6359
6359
|
nodeVersion: process.version,
|
|
6360
6360
|
platform: process.platform,
|
|
6361
6361
|
arch: process.arch,
|
|
@@ -6536,7 +6536,7 @@ var os4 = __toESM(require("os"));
|
|
|
6536
6536
|
// package.json
|
|
6537
6537
|
var package_default = {
|
|
6538
6538
|
name: "codeam-cli",
|
|
6539
|
-
version: "2.61.
|
|
6539
|
+
version: "2.61.40",
|
|
6540
6540
|
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.",
|
|
6541
6541
|
type: "commonjs",
|
|
6542
6542
|
main: "dist/index.js",
|
|
@@ -7707,7 +7707,7 @@ var CommandRelayService = class _CommandRelayService {
|
|
|
7707
7707
|
// fresh + clear the "CLI update available" banner after a self-update
|
|
7708
7708
|
// (a codespace that reinstalls @latest reconnects via heartbeat, not
|
|
7709
7709
|
// pair/reconnect). Older backends ignore the extra field.
|
|
7710
|
-
..."2.61.
|
|
7710
|
+
..."2.61.40" ? { ideVersion: "2.61.40" } : {}
|
|
7711
7711
|
}).then(() => log.trace("relay", `heartbeat ok online=${online}`)).catch((err) => log.trace("relay", `heartbeat failed online=${online}`, err));
|
|
7712
7712
|
}
|
|
7713
7713
|
/**
|
|
@@ -18691,7 +18691,7 @@ async function autoUpgradeBeforeCriticalCommand() {
|
|
|
18691
18691
|
if (process.env.NODE_ENV === "test") return;
|
|
18692
18692
|
if (process.env.CODEAM_DISABLE_UPDATE_CHECK === "1") return;
|
|
18693
18693
|
if (process.env.CI) return;
|
|
18694
|
-
const current = true ? "2.61.
|
|
18694
|
+
const current = true ? "2.61.40" : null;
|
|
18695
18695
|
if (!current) return;
|
|
18696
18696
|
const cache = readCache();
|
|
18697
18697
|
const fresh = cache && Date.now() - cache.fetchedAt < TTL_MS;
|
|
@@ -18708,7 +18708,7 @@ function checkForUpdates() {
|
|
|
18708
18708
|
if (process.env.CODEAM_DISABLE_UPDATE_CHECK === "1") return;
|
|
18709
18709
|
if (process.env.CI) return;
|
|
18710
18710
|
if (!process.stdout.isTTY) return;
|
|
18711
|
-
const current = true ? "2.61.
|
|
18711
|
+
const current = true ? "2.61.40" : null;
|
|
18712
18712
|
if (!current) return;
|
|
18713
18713
|
const cache = readCache();
|
|
18714
18714
|
const fresh = cache && Date.now() - cache.fetchedAt < TTL_MS;
|
|
@@ -18728,7 +18728,7 @@ var SELF_UPDATE_INTERVAL_MS = 60 * 60 * 1e3;
|
|
|
18728
18728
|
var SELF_UPDATE_VIEW_TIMEOUT_MS = 3e4;
|
|
18729
18729
|
var SELF_UPDATE_INSTALL_TIMEOUT_MS = 18e4;
|
|
18730
18730
|
function currentCliVersion() {
|
|
18731
|
-
return true ? "2.61.
|
|
18731
|
+
return true ? "2.61.40" : null;
|
|
18732
18732
|
}
|
|
18733
18733
|
function runCmd(cmd, args2, timeoutMs) {
|
|
18734
18734
|
return new Promise((resolve8) => {
|
|
@@ -19812,6 +19812,13 @@ var HostAgentSupervisor = class {
|
|
|
19812
19812
|
report("failed", detail ? `agent exited (${code}): ${detail}` : `agent exited (${code})`);
|
|
19813
19813
|
}
|
|
19814
19814
|
});
|
|
19815
|
+
proc.once("error", (err) => {
|
|
19816
|
+
const tracked = this.children.get(payload.deployId)?.proc === proc;
|
|
19817
|
+
if (tracked) this.children.delete(payload.deployId);
|
|
19818
|
+
if (tracked) {
|
|
19819
|
+
report("failed", `agent failed to start: ${err instanceof Error ? err.message : String(err)}`);
|
|
19820
|
+
}
|
|
19821
|
+
});
|
|
19815
19822
|
} catch (err) {
|
|
19816
19823
|
const message = err instanceof Error ? err.message : String(err);
|
|
19817
19824
|
log.warn("host-agent", `deploy ${payload.deployId.slice(0, 8)} failed: ${message}`);
|
|
@@ -24688,7 +24695,7 @@ async function pairAuto(args2) {
|
|
|
24688
24695
|
`agent "${claimed.agent}" is not supported in this codeam-cli version. Upgrade with 'npm i -g codeam-cli@latest'.`
|
|
24689
24696
|
);
|
|
24690
24697
|
}
|
|
24691
|
-
|
|
24698
|
+
const claimedSession = {
|
|
24692
24699
|
id: claimed.sessionId,
|
|
24693
24700
|
pluginId,
|
|
24694
24701
|
userName: claimed.user.name,
|
|
@@ -24699,7 +24706,8 @@ async function pairAuto(args2) {
|
|
|
24699
24706
|
// SEC crit1 (#813): persist so boot-time /reconnect proves possession.
|
|
24700
24707
|
pollSecret,
|
|
24701
24708
|
agent: claimed.agent
|
|
24702
|
-
}
|
|
24709
|
+
};
|
|
24710
|
+
addSession(claimedSession);
|
|
24703
24711
|
identifyUser({
|
|
24704
24712
|
userId: claimed.user.email,
|
|
24705
24713
|
email: claimed.user.email,
|
|
@@ -24738,7 +24746,7 @@ async function pairAuto(args2) {
|
|
|
24738
24746
|
process.once("exit", () => {
|
|
24739
24747
|
headroomReporter?.stop();
|
|
24740
24748
|
});
|
|
24741
|
-
await start();
|
|
24749
|
+
await start(void 0, claimedSession);
|
|
24742
24750
|
}
|
|
24743
24751
|
|
|
24744
24752
|
// src/services/headroom/wrap-launch.ts
|
|
@@ -35915,10 +35923,10 @@ function ensureClaudeOnboarded(cwd) {
|
|
|
35915
35923
|
}
|
|
35916
35924
|
|
|
35917
35925
|
// src/commands/start.ts
|
|
35918
|
-
async function start(requestedAgent) {
|
|
35926
|
+
async function start(requestedAgent, presetSession) {
|
|
35919
35927
|
installRelayCrashGuards();
|
|
35920
35928
|
showIntro();
|
|
35921
|
-
const session = requestedAgent ? getActiveSessionForAgent(requestedAgent) : getActiveSession();
|
|
35929
|
+
const session = presetSession ? presetSession : requestedAgent ? getActiveSessionForAgent(requestedAgent) : getActiveSession();
|
|
35922
35930
|
if (!session) {
|
|
35923
35931
|
if (requestedAgent) {
|
|
35924
35932
|
const displayName = AGENT_REGISTRY[requestedAgent]?.displayName ?? requestedAgent;
|
|
@@ -38836,7 +38844,7 @@ function checkChokidar() {
|
|
|
38836
38844
|
}
|
|
38837
38845
|
async function doctor(args2 = []) {
|
|
38838
38846
|
const json = args2.includes("--json");
|
|
38839
|
-
const cliVersion = true ? "2.61.
|
|
38847
|
+
const cliVersion = true ? "2.61.40" : "0.0.0-dev";
|
|
38840
38848
|
const apiBase2 = resolveApiBaseUrl();
|
|
38841
38849
|
const diagnosticId = (0, import_node_crypto13.randomUUID)();
|
|
38842
38850
|
log.info("doctor", `run id=${diagnosticId} cli=${cliVersion}`);
|
|
@@ -39347,7 +39355,7 @@ async function mcpRun(args2) {
|
|
|
39347
39355
|
// src/commands/version.ts
|
|
39348
39356
|
var import_picocolors15 = __toESM(require("picocolors"));
|
|
39349
39357
|
function version2() {
|
|
39350
|
-
const v = true ? "2.61.
|
|
39358
|
+
const v = true ? "2.61.40" : "unknown";
|
|
39351
39359
|
console.log(`${import_picocolors15.default.bold("codeam-cli")} ${import_picocolors15.default.cyan(v)}`);
|
|
39352
39360
|
}
|
|
39353
39361
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codeam-cli",
|
|
3
|
-
"version": "2.61.
|
|
3
|
+
"version": "2.61.40",
|
|
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",
|