puter/packages
Sam Atkins 3526d5d9eb Phoenix: Wait for apps to finish executing, and connect stdio to them
After launching an app, if successful, we connect stdio streams to it,
and wait for it to exit before we return to the prompt.

stdio is implemented as regular AppConnection messages:
- stdin:  `{ $: 'stdin',  data: Uint8Array }` from phoenix -> child
- stdout: `{ $: 'stdout', data: Uint8Array }` from child -> phoenix

Terminal and Phoenix now communicate with each other using the same
style, instead of 'input' and 'output' messages. This will help with
eventually running subshells.

SIGINT currently is not sent. We also suffer from the same "one more
read from stdin happens after app exits" bug that's in
PathCommandProvider where I copied the stdin code from.
2024-04-18 15:00:38 +01:00
..
backend Fix last_activity_ts 2024-04-16 19:30:30 -04:00
phoenix Phoenix: Wait for apps to finish executing, and connect stdio to them 2024-04-18 15:00:38 +01:00
puter-js Let AppConnection know if its target app uses the Puter SDK 2024-04-18 15:00:38 +01:00
puter-js-common Release backend 2024-03-30 19:08:03 -04:00
terminal Phoenix: Wait for apps to finish executing, and connect stdio to them 2024-04-18 15:00:38 +01:00