codeam-cli 2.27.14 → 2.27.15
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/dist/index.js +27 -13
- package/package.json +1 -1
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.27.
|
|
501
|
+
version: "2.27.15",
|
|
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",
|
|
@@ -5873,7 +5873,7 @@ function readAnonId() {
|
|
|
5873
5873
|
}
|
|
5874
5874
|
function superProperties() {
|
|
5875
5875
|
return {
|
|
5876
|
-
cliVersion: true ? "2.27.
|
|
5876
|
+
cliVersion: true ? "2.27.15" : "0.0.0-dev",
|
|
5877
5877
|
nodeVersion: process.version,
|
|
5878
5878
|
platform: process.platform,
|
|
5879
5879
|
arch: process.arch,
|
|
@@ -14549,8 +14549,11 @@ var AcpClient = class {
|
|
|
14549
14549
|
sessionId = null;
|
|
14550
14550
|
/**
|
|
14551
14551
|
* Spawn the adapter + perform the initial handshake (initialize
|
|
14552
|
-
* → newSession). Returns the ACP-assigned sessionId so the
|
|
14553
|
-
*
|
|
14552
|
+
* → newSession). Returns the ACP-assigned sessionId so the caller
|
|
14553
|
+
* can route subsequent prompts, plus optional model + tier that
|
|
14554
|
+
* some adapters (codex-acp today) surface on the newSession
|
|
14555
|
+
* response — used by the runner to enrich the welcome card
|
|
14556
|
+
* subtitle without an extra round-trip.
|
|
14554
14557
|
*/
|
|
14555
14558
|
async start() {
|
|
14556
14559
|
if (this.child) throw new Error("AcpClient already started");
|
|
@@ -14610,7 +14613,12 @@ var AcpClient = class {
|
|
|
14610
14613
|
"acpClient",
|
|
14611
14614
|
`newSession \u2190 ok sessionId=${newSession.sessionId.slice(0, 8)} model=${newSessionMeta.currentModelId ?? "?"} tier=${newSessionMeta.currentServiceTier ?? "?"}`
|
|
14612
14615
|
);
|
|
14613
|
-
return {
|
|
14616
|
+
return {
|
|
14617
|
+
sessionId: newSession.sessionId,
|
|
14618
|
+
initialize,
|
|
14619
|
+
model: newSessionMeta.currentModelId,
|
|
14620
|
+
tier: newSessionMeta.currentServiceTier
|
|
14621
|
+
};
|
|
14614
14622
|
}
|
|
14615
14623
|
/**
|
|
14616
14624
|
* Send a user prompt to the active session. Returns the
|
|
@@ -18218,7 +18226,12 @@ async function runAcpSession(opts) {
|
|
|
18218
18226
|
}
|
|
18219
18227
|
});
|
|
18220
18228
|
showInfo(`Starting ${opts.agent} via ACP adapter (${opts.adapter.requiresAgentBinary})\u2026`);
|
|
18221
|
-
const {
|
|
18229
|
+
const {
|
|
18230
|
+
sessionId: acpSessionId,
|
|
18231
|
+
initialize,
|
|
18232
|
+
model: handshakeModel,
|
|
18233
|
+
tier: handshakeTier
|
|
18234
|
+
} = await client2.start();
|
|
18222
18235
|
log.trace(
|
|
18223
18236
|
"acpRunner",
|
|
18224
18237
|
`adapter handshake ok protocolVersion=${initialize.protocolVersion} sessionId=${acpSessionId.slice(0, 8)}`
|
|
@@ -18235,7 +18248,7 @@ async function runAcpSession(opts) {
|
|
|
18235
18248
|
// (codex-acp returns `currentModelId` on newSession; claude /
|
|
18236
18249
|
// gemini adapters omit it). Falls back to `<display name>`
|
|
18237
18250
|
// alone so the card never renders with a dangling separator.
|
|
18238
|
-
subtitle: buildBannerSubtitle(opts.agent, acpSessionId,
|
|
18251
|
+
subtitle: buildBannerSubtitle(opts.agent, acpSessionId, handshakeModel, handshakeTier),
|
|
18239
18252
|
// The cwd — same field the legacy banner pulled from Claude's
|
|
18240
18253
|
// footer line under the ASCII art.
|
|
18241
18254
|
path: opts.cwd,
|
|
@@ -18513,11 +18526,12 @@ function describeError(err) {
|
|
|
18513
18526
|
if (err instanceof Error) return err.message;
|
|
18514
18527
|
return String(err);
|
|
18515
18528
|
}
|
|
18516
|
-
function buildBannerSubtitle(agentId, acpSessionId,
|
|
18529
|
+
function buildBannerSubtitle(agentId, acpSessionId, model, tier) {
|
|
18517
18530
|
const meta = AGENT_REGISTRY[agentId];
|
|
18518
18531
|
const displayName = meta?.displayName ?? agentId;
|
|
18519
|
-
|
|
18520
|
-
return `${displayName} \xB7
|
|
18532
|
+
if (model && tier) return `${displayName} \xB7 ${model} \xB7 ${tier}`;
|
|
18533
|
+
if (model) return `${displayName} \xB7 ${model}`;
|
|
18534
|
+
return `${displayName} \xB7 ACP \xB7 ${acpSessionId.slice(0, 8)}`;
|
|
18521
18535
|
}
|
|
18522
18536
|
function buildLegacyContextForACP(opts, relay, runtime) {
|
|
18523
18537
|
return {
|
|
@@ -24425,7 +24439,7 @@ function checkChokidar() {
|
|
|
24425
24439
|
}
|
|
24426
24440
|
async function doctor(args2 = []) {
|
|
24427
24441
|
const json = args2.includes("--json");
|
|
24428
|
-
const cliVersion = true ? "2.27.
|
|
24442
|
+
const cliVersion = true ? "2.27.15" : "0.0.0-dev";
|
|
24429
24443
|
const apiBase = resolveApiBaseUrl();
|
|
24430
24444
|
const diagnosticId = (0, import_node_crypto8.randomUUID)();
|
|
24431
24445
|
log.info("doctor", `run id=${diagnosticId} cli=${cliVersion}`);
|
|
@@ -24624,7 +24638,7 @@ async function completion(args2) {
|
|
|
24624
24638
|
// src/commands/version.ts
|
|
24625
24639
|
var import_picocolors13 = __toESM(require("picocolors"));
|
|
24626
24640
|
function version2() {
|
|
24627
|
-
const v = true ? "2.27.
|
|
24641
|
+
const v = true ? "2.27.15" : "unknown";
|
|
24628
24642
|
console.log(`${import_picocolors13.default.bold("codeam-cli")} ${import_picocolors13.default.cyan(v)}`);
|
|
24629
24643
|
}
|
|
24630
24644
|
|
|
@@ -24852,7 +24866,7 @@ function checkForUpdates() {
|
|
|
24852
24866
|
if (process.env.CODEAM_DISABLE_UPDATE_CHECK === "1") return;
|
|
24853
24867
|
if (process.env.CI) return;
|
|
24854
24868
|
if (!process.stdout.isTTY) return;
|
|
24855
|
-
const current = true ? "2.27.
|
|
24869
|
+
const current = true ? "2.27.15" : null;
|
|
24856
24870
|
if (!current) return;
|
|
24857
24871
|
const cache = readCache();
|
|
24858
24872
|
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.27.
|
|
3
|
+
"version": "2.27.15",
|
|
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",
|