dterm icon indicating copy to clipboard operation
dterm copied to clipboard

Include in Beaker 0.9?

Open pfrazee opened this issue 6 years ago • 4 comments

Hey, just wanted to check in on dterm's status and see what you would think of possibly bundling dterm in beaker 0.9? There's a browser sidebar that I think this could be really cool for.

pfrazee avatar Aug 11 '19 17:08 pfrazee

Yeah, I saw your demo on Twitter. It does look quite handy to have it in the sidebar like that, so I'm definitely interested.

As for the status of this project, I've been fiddling with the secure execution environment on my local machine (as discussed in https://github.com/dfurl/dterm/issues/8). I basically got the messaging in and out of the iframe sandbox working, including a shim of DatArchive.readFile and the cat command. I still have to finish all other DatArchive method shims to complete it, and then clean up the code a bit. Would this still be necessary though if we choose to bundle dterm as a sidebar app? Or do these have their own security sandbox already?

brechtcs avatar Aug 12 '19 18:08 brechtcs

Yeah sorry about that, I left this comment and then thought "heck I can just pull out my old webterm code." I ended up making it very simple and featureless, and I think that might be the right approach to launch: no composition, a solid set of builtins, and a way to shell out to scripts.

I don't have a secure execution solution yet so that's the dterm work I'd be most interested in. I'd be happy to credit you in the code and in the webterm startup message.

I'm thinking we just fallback from the builtin commands by looking for possible scripts to run. The .js on the script-path would be optional and we'd resolve against a user directory of saved scripts. So...

browserify ./main.js                -- saved script
./scripts/browserify ./main.js      -- relative script
dat://foo.com/browserify ./main.js  -- fully-qualified script

pfrazee avatar Aug 12 '19 18:08 pfrazee

With some small hacks I've managed to run the terminal view of beaker-sidebar-app in Beaker 0.8.8. So if you want I can create a WIP pull request over there with the iframe sandbox code to get things started. I've got a holiday coming up, so should be able to spend some time on it this week.

brechtcs avatar Aug 14 '19 11:08 brechtcs

Okay awesome, let me know how it goes

pfrazee avatar Aug 14 '19 17:08 pfrazee