codeam-cli 2.23.12 → 2.23.13
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 +35 -14
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -441,7 +441,7 @@ var import_qrcode_terminal = __toESM(require("qrcode-terminal"));
|
|
|
441
441
|
// package.json
|
|
442
442
|
var package_default = {
|
|
443
443
|
name: "codeam-cli",
|
|
444
|
-
version: "2.23.
|
|
444
|
+
version: "2.23.13",
|
|
445
445
|
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.",
|
|
446
446
|
type: "commonjs",
|
|
447
447
|
main: "dist/index.js",
|
|
@@ -5774,7 +5774,7 @@ function readAnonId() {
|
|
|
5774
5774
|
}
|
|
5775
5775
|
function superProperties() {
|
|
5776
5776
|
return {
|
|
5777
|
-
cliVersion: true ? "2.23.
|
|
5777
|
+
cliVersion: true ? "2.23.13" : "0.0.0-dev",
|
|
5778
5778
|
nodeVersion: process.version,
|
|
5779
5779
|
platform: process.platform,
|
|
5780
5780
|
arch: process.arch,
|
|
@@ -5869,14 +5869,16 @@ var API_BASE2 = resolveApiBaseUrl();
|
|
|
5869
5869
|
var SSE_LIVENESS_TIMEOUT_MS = 45e3;
|
|
5870
5870
|
var SSE_WATCHDOG_INTERVAL_MS = 1e4;
|
|
5871
5871
|
var CommandRelayService = class {
|
|
5872
|
-
constructor(pluginId, onCommand, agentMeta) {
|
|
5872
|
+
constructor(pluginId, onCommand, agentMeta, agentsOverride) {
|
|
5873
5873
|
this.pluginId = pluginId;
|
|
5874
5874
|
this.onCommand = onCommand;
|
|
5875
5875
|
this.agentMeta = agentMeta;
|
|
5876
|
+
this.agentsOverride = agentsOverride;
|
|
5876
5877
|
}
|
|
5877
5878
|
pluginId;
|
|
5878
5879
|
onCommand;
|
|
5879
5880
|
agentMeta;
|
|
5881
|
+
agentsOverride;
|
|
5880
5882
|
_running = false;
|
|
5881
5883
|
heartbeatTimer = null;
|
|
5882
5884
|
agentsTimer = null;
|
|
@@ -6142,16 +6144,17 @@ var CommandRelayService = class {
|
|
|
6142
6144
|
}).then(() => log.trace("relay", `heartbeat ok online=${online}`)).catch((err) => log.trace("relay", `heartbeat failed online=${online}`, err));
|
|
6143
6145
|
}
|
|
6144
6146
|
reportAgents() {
|
|
6147
|
+
const agents = this.agentsOverride ? [...this.agentsOverride] : [
|
|
6148
|
+
{
|
|
6149
|
+
id: this.agentMeta.id,
|
|
6150
|
+
name: this.agentMeta.displayName,
|
|
6151
|
+
icon: this.agentMeta.id,
|
|
6152
|
+
installed: true
|
|
6153
|
+
}
|
|
6154
|
+
];
|
|
6145
6155
|
_postJson(`${API_BASE2}/api/plugin/agents`, {
|
|
6146
6156
|
pluginId: this.pluginId,
|
|
6147
|
-
agents
|
|
6148
|
-
{
|
|
6149
|
-
id: this.agentMeta.id,
|
|
6150
|
-
name: this.agentMeta.displayName,
|
|
6151
|
-
icon: this.agentMeta.id,
|
|
6152
|
-
installed: true
|
|
6153
|
-
}
|
|
6154
|
-
]
|
|
6157
|
+
agents
|
|
6155
6158
|
}).then(() => {
|
|
6156
6159
|
this.agentsRegistered = true;
|
|
6157
6160
|
}).catch(() => {
|
|
@@ -16317,6 +16320,24 @@ async function pairAuto(args2) {
|
|
|
16317
16320
|
console.log(
|
|
16318
16321
|
" Skipping agent launch \u2014 install an agent from the dashboard to start chatting."
|
|
16319
16322
|
);
|
|
16323
|
+
const heartbeatRelay = new CommandRelayService(
|
|
16324
|
+
pluginId,
|
|
16325
|
+
async () => {
|
|
16326
|
+
},
|
|
16327
|
+
AGENT_REGISTRY[claimed.agent],
|
|
16328
|
+
[]
|
|
16329
|
+
// empty agents list
|
|
16330
|
+
);
|
|
16331
|
+
heartbeatRelay.start();
|
|
16332
|
+
const sigHandler = () => {
|
|
16333
|
+
heartbeatRelay.stop();
|
|
16334
|
+
process.exit(0);
|
|
16335
|
+
};
|
|
16336
|
+
process.once("SIGINT", sigHandler);
|
|
16337
|
+
process.once("SIGTERM", sigHandler);
|
|
16338
|
+
process.once("SIGHUP", sigHandler);
|
|
16339
|
+
await new Promise(() => {
|
|
16340
|
+
});
|
|
16320
16341
|
return;
|
|
16321
16342
|
}
|
|
16322
16343
|
console.log(" Starting agent loop\u2026");
|
|
@@ -18565,7 +18586,7 @@ function checkChokidar() {
|
|
|
18565
18586
|
}
|
|
18566
18587
|
async function doctor(args2 = []) {
|
|
18567
18588
|
const json = args2.includes("--json");
|
|
18568
|
-
const cliVersion = true ? "2.23.
|
|
18589
|
+
const cliVersion = true ? "2.23.13" : "0.0.0-dev";
|
|
18569
18590
|
const apiBase = resolveApiBaseUrl();
|
|
18570
18591
|
const diagnosticId = (0, import_node_crypto5.randomUUID)();
|
|
18571
18592
|
log.info("doctor", `run id=${diagnosticId} cli=${cliVersion}`);
|
|
@@ -18764,7 +18785,7 @@ async function completion(args2) {
|
|
|
18764
18785
|
// src/commands/version.ts
|
|
18765
18786
|
var import_picocolors13 = __toESM(require("picocolors"));
|
|
18766
18787
|
function version2() {
|
|
18767
|
-
const v = true ? "2.23.
|
|
18788
|
+
const v = true ? "2.23.13" : "unknown";
|
|
18768
18789
|
console.log(`${import_picocolors13.default.bold("codeam-cli")} ${import_picocolors13.default.cyan(v)}`);
|
|
18769
18790
|
}
|
|
18770
18791
|
|
|
@@ -18992,7 +19013,7 @@ function checkForUpdates() {
|
|
|
18992
19013
|
if (process.env.CODEAM_DISABLE_UPDATE_CHECK === "1") return;
|
|
18993
19014
|
if (process.env.CI) return;
|
|
18994
19015
|
if (!process.stdout.isTTY) return;
|
|
18995
|
-
const current = true ? "2.23.
|
|
19016
|
+
const current = true ? "2.23.13" : null;
|
|
18996
19017
|
if (!current) return;
|
|
18997
19018
|
const cache = readCache();
|
|
18998
19019
|
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.23.
|
|
3
|
+
"version": "2.23.13",
|
|
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",
|