MCPcopy Create free account
hub / github.com/Sandpack/nodebox-runtime / shell

Method shell

packages/nodebox/src/Nodebox.ts:140–152  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

138 }
139
140 get shell(): ShellApi {
141 invariant(
142 this.isConnected,
143 'Failed to access the Shell API: consumer is not connected. Did you forget to run "connect()"?'
144 );
145
146 if (this.shellApi) {
147 return this.shellApi;
148 }
149
150 this.shellApi = new ShellApi(this.channel);
151 return this.shellApi;
152 }
153
154 get preview(): PreviewApi {
155 invariant(

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected