Reactor 3 ⇄Terminal ⛶
⬆ upExampleApp.swift
Pick a file in Files to edit it here.
Terminal
      199    cmd_build "$name" "$stream" "${sroot}/${sname}" "$size"
      200  }
      201  
      202 +# emu <name> <cmd> [args] — control emulators/simulators via emuctl.sh on the machine.                                              
      203 +# cmds: list | android [avd] | ios [dev] | shot | install <path> | launch <id> |                                                    
      204 +#       uninstall <id> | apps | kill | delete <avd>. `emu <name> shot` pulls the PNG here.                                          
      205 +cmd_emu(){                                                                                                                          
      206 +  local name="$1"; shift; _require_machine "$name"                                                                                  
      207 +  local sub="${1:-list}"                                                                                                            
      208 +  local repo emu; repo="$(_field "$name" repo_path "/Users/aiq/aiq/project_aiq_build_machine_one")"                                 
      209 +  emu="${repo}/platforms/mac/emuctl.sh"                                                                                             
      210 +  if [ "$sub" = "shot" ]; then                                                                                                      
      211 +    _ssh "$name" "bash '${emu}' shot /tmp/reactor-emu-shot.png" >/dev/null 2>&1 || die "emu shot failed (no emulator running?)"     
      212 +    local dest="${UPLOADS_SHARED}/${name}"; mkdir -p "$dest"                                                                        
      213 +    _scp "$name" "/tmp/reactor-emu-shot.png" "${dest}/emu-latest.png" || die "pull failed"                                          
      214 +    echo "${dest}/emu-latest.png"                                                                                                   
      215 +  else                                                                                                                              
      216 +    _ssh "$name" "bash '${emu}' $*"                                                                                                 
      217 +  fi                                                                                                                                
      218 +}                                                                                                                                   
      219 +                                                                                                                                    
      220  usage(){ sed -n '2,20p' "${BASH_SOURCE[0]}" | sed 's/^# \{0,1\}//'; }
      221  
      222  main(){

· Clauding… (9m 33s · ↓ 35.5k tokens · thinking with max effort)
  ⎿  Tip: Use /btw to ask a quick side question without interrupting Claude's current work

───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── continue-conversation ──
❯ 

⏵⏵ bypass permissions on (shift+tab to cycle) · ← for agents · esc to interrupt
FilesEditorTerminal