@sqlrooms/webcontainer / createWebContainerSandbox
Function: createWebContainerSandbox()
createWebContainerSandbox(
getState):Sandbox
Adapts the WebContainer slice into the Sandbox interface.
readFileprefers in-memory editor content (dirty files) so the LLM always sees what the user sees.writeFilesroutes throughupdateFileContent+saveAllOpenFilesso changes flow through the editor state and trigger proper UI updates.executeCommanddelegates toexecuteBashCommandwhich handlesjust-bashlifecycle, terminal output logging, and filesystem sync.
Parameters
| Parameter | Type |
|---|---|
getState | () => WebContainerSliceState |
