codeam-cli 2.4.11 → 2.4.12

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 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.4.10] — 2026-05-03
8
+
9
+ ### Fixed
10
+
11
+ - **cli:** Ship ~/.claude.json so codespace skips onboarding (v2.4.10)
12
+
7
13
  ## [2.4.9] — 2026-05-03
8
14
 
9
15
  ### 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.11",
182
+ version: "2.4.12",
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: {
@@ -5908,13 +5908,33 @@ async function deploy() {
5908
5908
  "TAIL=$!",
5909
5909
  // Local Ctrl+C: kill ONLY the tail and exit — relay stays alive.
5910
5910
  "trap 'kill $TAIL 2>/dev/null; exit 130' INT TERM",
5911
- // Wait for the paired-marker, or codeam dying / timing out.
5911
+ // Phase 1 wait for the QR scan to complete.
5912
5912
  "SUCCESS=0",
5913
5913
  "while true; do",
5914
- ' if grep -q "Paired with" "$LOG" 2>/dev/null; then sleep 1; SUCCESS=1; break; fi',
5914
+ ' if grep -q "Paired with" "$LOG" 2>/dev/null; then SUCCESS=1; break; fi',
5915
5915
  ' if ! kill -0 "$PID" 2>/dev/null; then SUCCESS=0; break; fi',
5916
5916
  " sleep 1",
5917
5917
  "done",
5918
+ 'if [ "$SUCCESS" = "1" ]; then',
5919
+ " echo",
5920
+ ' echo "\u2713 Phone paired."',
5921
+ ' echo " Claude may ask first-time prompts ("trust this folder", model picker, etc.) \u2014 answer those on your phone."',
5922
+ ' echo " This terminal will disconnect once Claude is fully ready, or press Ctrl+C now to disconnect immediately."',
5923
+ " echo",
5924
+ // Phase 2 — wait until Claude is fully initialised. The
5925
+ // "? for shortcuts" line (from Claude\'s status bar) is the most
5926
+ // reliable "ready" marker — it only renders AFTER any trust /
5927
+ // onboarding prompts have been resolved. Cap at 3 minutes so we
5928
+ // never hang the local terminal forever if the user doesn\'t
5929
+ // resolve a prompt on their phone.
5930
+ " WAIT_START=$(date +%s)",
5931
+ " while true; do",
5932
+ ' if grep -q "for shortcuts" "$LOG" 2>/dev/null; then break; fi',
5933
+ ' if ! kill -0 "$PID" 2>/dev/null; then break; fi',
5934
+ " if [ $(($(date +%s) - WAIT_START)) -gt 180 ]; then break; fi",
5935
+ " sleep 1",
5936
+ " done",
5937
+ "fi",
5918
5938
  "trap - INT TERM",
5919
5939
  "kill $TAIL 2>/dev/null",
5920
5940
  "echo",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "codeam-cli",
3
- "version": "2.4.11",
3
+ "version": "2.4.12",
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": {