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

オープン
#1,177 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
5/5
見積もり時間
1週間以上
初心者へのやさしさ
8/100
issue の種類
機能追加
明瞭さ
おおむね明確
活発さ
活発
技術スタック
android, ios, typescript

調査の方向性

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.

索引モデルが issue の本文から書いたものです。

説明

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.

主要言語
TypeScript
スター
705
フォーク
40
平均マージ
12時間 9分
マージ済み PR(30日)
376

環境構築

このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

callstackincubator/simlock のほかの issue

callstackincubator/simlock の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。