codeam-cli 2.4.20 → 2.4.21
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 +9 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -179,7 +179,7 @@ var import_qrcode_terminal = __toESM(require("qrcode-terminal"));
|
|
|
179
179
|
// package.json
|
|
180
180
|
var package_default = {
|
|
181
181
|
name: "codeam-cli",
|
|
182
|
-
version: "2.4.
|
|
182
|
+
version: "2.4.21",
|
|
183
183
|
description: "Remote control Claude Code (and other AI coding agents) from your mobile phone. Pair your device, send prompts, stream responses in real-time, and approve commands \u2014 from anywhere.",
|
|
184
184
|
main: "dist/index.js",
|
|
185
185
|
bin: {
|
|
@@ -2772,9 +2772,14 @@ except Exception:sys.exit(0)
|
|
|
2772
2772
|
break;
|
|
2773
2773
|
case "set_keep_alive": {
|
|
2774
2774
|
const enabled = !!cmd.payload.enabled;
|
|
2775
|
+
const inCodespaceEnv = process.env.CODESPACES === "true";
|
|
2775
2776
|
setKeepAlive(enabled);
|
|
2776
2777
|
try {
|
|
2777
|
-
await relay.sendResult(
|
|
2778
|
+
await relay.sendResult(
|
|
2779
|
+
cmd.id,
|
|
2780
|
+
"success",
|
|
2781
|
+
{ enabled, applied: enabled && inCodespaceEnv, runtime: inCodespaceEnv ? "github-codespaces" : "local" }
|
|
2782
|
+
);
|
|
2778
2783
|
} catch {
|
|
2779
2784
|
}
|
|
2780
2785
|
break;
|
|
@@ -3023,13 +3028,14 @@ except Exception:sys.exit(0)
|
|
|
3023
3028
|
setTimeout(() => {
|
|
3024
3029
|
fetchQuotaUsage();
|
|
3025
3030
|
}, 5e3);
|
|
3031
|
+
const inCodespace = process.env.CODESPACES === "true";
|
|
3026
3032
|
let keepAliveTimer = null;
|
|
3027
3033
|
function setKeepAlive(enabled) {
|
|
3028
3034
|
if (keepAliveTimer) {
|
|
3029
3035
|
clearInterval(keepAliveTimer);
|
|
3030
3036
|
keepAliveTimer = null;
|
|
3031
3037
|
}
|
|
3032
|
-
if (!enabled) return;
|
|
3038
|
+
if (!enabled || !inCodespace) return;
|
|
3033
3039
|
const ping = () => {
|
|
3034
3040
|
const proc = (0, import_child_process4.spawn)("bash", ["-lc", "gh codespace list >/dev/null 2>&1 || true"], {
|
|
3035
3041
|
stdio: "ignore",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codeam-cli",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.21",
|
|
4
4
|
"description": "Remote control Claude Code (and other AI coding agents) from your mobile phone. Pair your device, send prompts, stream responses in real-time, and approve commands — from anywhere.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|