Through a gateway, simlock adb and simctl take live input (an interactive mode)

Abierto
#1,177 0 comentarios 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
5/5
Tiempo estimado
Más de una semana
Aptitud para principiantes
8/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
android, ios, typescript

Línea de trabajo

The work spans the gateway exec path, the CLI terminal handling, and an ADR (ADR 0005 forbids a pseudo-terminal), and it depends on the unmerged relay stack from #1113. Read ADR 0005 and the existing input and tunnel WebSocket code before anything else. Done means a design decision is recorded and an interactive adb shell runs through a gateway, which is not a first-timer task.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

request:new

Through a gateway, simlock adb and simlock simctl can't take live input. device.exec sends stdin as one string and then closes it, so an interactive adb shell, a REPL or a prompt that waits for an answer can't be driven remotely. On a worker, simlock adb shell gets the caller's own terminal and works.

Found while specifying #1174 (--stdin, one-shot input). That feature leaves the names -i and --interactive free for this.

What it would likely take (from the #1174 spec session, not decided):

  • a lease WebSocket for exec, like the input and tunnel sockets, carrying input bytes, Ctrl-C and window size both ways;
  • the gateway relaying it over the two-way relay channel the tunnel feature adds (#1113), so this waits for that stack to merge;
  • the CLI putting the caller's terminal in raw mode and restoring it on exit;
  • for adb, adb shell -t, which gives the device its own terminal, so the worker needs no native pty; simctl spawn has no such option, so iOS would get live input without a terminal;
  • an ADR reversing ADR 0005's "no pseudo-terminal".

Written by an agent.

Lenguaje dominante
TypeScript
Estrellas
705
Forks
40
Merge medio
12 h 9 min
PR fusionados (30 d)
376

Preparar el entorno

Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de callstackincubator/simlock

Todos los issues de callstackincubator/simlock

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.