codeam-cli 2.4.21 → 2.4.22
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 +12 -0
- package/dist/index.js +79 -25
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -4,6 +4,18 @@ 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.4.21] — 2026-05-03
|
|
8
|
+
|
|
9
|
+
### Fixed
|
|
10
|
+
|
|
11
|
+
- **cli:** Only run keep-alive heartbeat inside a Codespace (v2.4.21)
|
|
12
|
+
|
|
13
|
+
## [2.4.20] — 2026-05-03
|
|
14
|
+
|
|
15
|
+
### Added
|
|
16
|
+
|
|
17
|
+
- **cli:** Handle set_keep_alive command from apps' Settings modal (v2.4.20)
|
|
18
|
+
|
|
7
19
|
## [2.4.19] — 2026-05-03
|
|
8
20
|
|
|
9
21
|
### Added
|
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.22",
|
|
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: {
|
|
@@ -5383,6 +5383,40 @@ var GitHubCodespacesProvider = class {
|
|
|
5383
5383
|
if (ok) O2.success("gh installed");
|
|
5384
5384
|
else O2.error("gh install failed");
|
|
5385
5385
|
}
|
|
5386
|
+
/**
|
|
5387
|
+
* Re-run `gh auth refresh` with broader scopes so `gh repo list`
|
|
5388
|
+
* can return repos in orgs the user belongs to (and team repos
|
|
5389
|
+
* accessible via membership). The default codespace scope set
|
|
5390
|
+
* (`codespace,repo,read:user`) already covers the user's own
|
|
5391
|
+
* repos and most personal collaborator repos, but org repos and
|
|
5392
|
+
* private team repos require `read:org`. We add `read:org` here
|
|
5393
|
+
* and re-issue.
|
|
5394
|
+
*/
|
|
5395
|
+
async expandListScopes() {
|
|
5396
|
+
wt(
|
|
5397
|
+
[
|
|
5398
|
+
"We'll re-authorize `gh` with broader scopes so org and team",
|
|
5399
|
+
"repositories show up in the list. A browser will open for",
|
|
5400
|
+
"a one-tap approval."
|
|
5401
|
+
].join("\n"),
|
|
5402
|
+
"Expanding GitHub scopes"
|
|
5403
|
+
);
|
|
5404
|
+
resetStdinForChild();
|
|
5405
|
+
await new Promise((resolve2, reject) => {
|
|
5406
|
+
const proc = (0, import_child_process5.spawn)(
|
|
5407
|
+
"gh",
|
|
5408
|
+
["auth", "refresh", "-h", "github.com", "-s", "repo,read:org"],
|
|
5409
|
+
{ stdio: "inherit" }
|
|
5410
|
+
);
|
|
5411
|
+
proc.on("exit", (code) => {
|
|
5412
|
+
if (code === 0) resolve2();
|
|
5413
|
+
else reject(new Error(
|
|
5414
|
+
"gh auth refresh failed. Re-run `gh auth refresh -h github.com -s repo,read:org` manually."
|
|
5415
|
+
));
|
|
5416
|
+
});
|
|
5417
|
+
proc.on("error", reject);
|
|
5418
|
+
});
|
|
5419
|
+
}
|
|
5386
5420
|
async listProjects() {
|
|
5387
5421
|
const { stdout } = await execFileP2(
|
|
5388
5422
|
"gh",
|
|
@@ -5674,34 +5708,54 @@ async function deploy() {
|
|
|
5674
5708
|
pt(err instanceof Error ? err.message : String(err));
|
|
5675
5709
|
process.exit(1);
|
|
5676
5710
|
}
|
|
5677
|
-
const
|
|
5678
|
-
|
|
5679
|
-
|
|
5680
|
-
|
|
5681
|
-
|
|
5682
|
-
|
|
5683
|
-
|
|
5684
|
-
|
|
5685
|
-
|
|
5686
|
-
|
|
5687
|
-
|
|
5688
|
-
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
const projectId = await _t({
|
|
5693
|
-
message: "Select a project to deploy:",
|
|
5694
|
-
options: projects.slice(0, 50).map((proj) => ({
|
|
5711
|
+
const EXPAND_SCOPES = "__expand_scopes__";
|
|
5712
|
+
let project = null;
|
|
5713
|
+
while (!project) {
|
|
5714
|
+
const listStep = fe();
|
|
5715
|
+
listStep.start("Loading your projects\u2026");
|
|
5716
|
+
let projects = [];
|
|
5717
|
+
try {
|
|
5718
|
+
projects = await provider.listProjects();
|
|
5719
|
+
listStep.stop(`\u2713 ${projects.length} project${projects.length === 1 ? "" : "s"} available`);
|
|
5720
|
+
} catch (err) {
|
|
5721
|
+
listStep.stop(`\u2717 Could not list projects`);
|
|
5722
|
+
pt(err instanceof Error ? err.message : String(err));
|
|
5723
|
+
process.exit(1);
|
|
5724
|
+
}
|
|
5725
|
+
const options = projects.slice(0, 50).map((proj) => ({
|
|
5695
5726
|
value: proj.id,
|
|
5696
5727
|
label: proj.fullName,
|
|
5697
5728
|
hint: proj.description ? proj.description.slice(0, 80) : proj.private ? "private" : "public"
|
|
5698
|
-
}))
|
|
5699
|
-
|
|
5700
|
-
|
|
5701
|
-
|
|
5702
|
-
|
|
5729
|
+
}));
|
|
5730
|
+
if (provider.expandListScopes) {
|
|
5731
|
+
options.push({
|
|
5732
|
+
value: EXPAND_SCOPES,
|
|
5733
|
+
label: import_picocolors8.default.cyan("+ Don't see your project? Expand scopes\u2026"),
|
|
5734
|
+
hint: "Re-authorize with broader scopes (org / team repos)"
|
|
5735
|
+
});
|
|
5736
|
+
}
|
|
5737
|
+
if (options.length === 0) {
|
|
5738
|
+
pt("No projects found on the account.");
|
|
5739
|
+
process.exit(0);
|
|
5740
|
+
}
|
|
5741
|
+
const projectId = await _t({
|
|
5742
|
+
message: "Select a project to deploy:",
|
|
5743
|
+
options
|
|
5744
|
+
});
|
|
5745
|
+
if (q(projectId) || typeof projectId !== "string") {
|
|
5746
|
+
pt("Cancelled.");
|
|
5747
|
+
process.exit(0);
|
|
5748
|
+
}
|
|
5749
|
+
if (projectId === EXPAND_SCOPES) {
|
|
5750
|
+
try {
|
|
5751
|
+
await provider.expandListScopes();
|
|
5752
|
+
} catch (err) {
|
|
5753
|
+
O2.warn(err instanceof Error ? err.message : String(err));
|
|
5754
|
+
}
|
|
5755
|
+
continue;
|
|
5756
|
+
}
|
|
5757
|
+
project = projects.find((proj) => proj.id === projectId) ?? null;
|
|
5703
5758
|
}
|
|
5704
|
-
const project = projects.find((proj) => proj.id === projectId);
|
|
5705
5759
|
let workspace = null;
|
|
5706
5760
|
if (provider.listExistingWorkspaces && provider.startWorkspace) {
|
|
5707
5761
|
const existingStep = fe();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "codeam-cli",
|
|
3
|
-
"version": "2.4.
|
|
3
|
+
"version": "2.4.22",
|
|
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": {
|