You can already most definitely do this in replit without an extension, but a visual would be nice, although this would be impossible without a backend for the extension.
For a backend, couldn’t you just have a service inside the repl that watches for changes to a file and adds its output to another file for the extension to see, so then some kind of API could be used?
The extension could just install unzip via Nix and then uncompress in /tmp (temporary files) to not take up the Repl’s storage. No need for JS libraries.
The thing is, extensions only run client side right now. Replit provides client side APIs that allow them to read/write files and directories directly, so using a client side JS API is probably simplest IMO
The only solution that doesn’t involve downloading it and reuploading the extracted files would be one that directly interfaces with the Repl’s command line and runs entirely on the repl. Hopefully we will see this capability for extensions in the near future…
I’m not saying a client side extraction library is efficient or anything - it’s just the simplest solution we have right now.
There is no official way to run commands on a Repl. But it’s possible. It’s just very very very slow. But you can write to the Repl’s bashrc file located in .config/bashrc and then it will (eventually) get run. Haven’t tested it though.
Probably. Write to the bashrc and make it install a back door for running commands in the future and then use the layout pane to open and close a shell, which will run the bashrc. Genius