HeyPuter / phoenix

🔥 Puter's pure-javascript shell
https://puter.com/app/terminal
GNU Affero General Public License v3.0
87 stars 15 forks source link

Use coercion for stream checks #42

Open KernelDeimos opened 4 months ago

KernelDeimos commented 4 months ago

When checking if stream values are BLOB, string, ArrayBuffer, etc; instead adapt two of these to whichever type the respective command operates on. Eventually we'll factor this out and allow the model of a command to specify what kind of input it expects (ex: string, Uint8Array) and have automatic coercion for pipelines.