MCPcopy Create free account
hub / github.com/claude-code-best/claude-code / launchRepl

Function launchRepl

src/replLauncher.tsx:14–31  ·  view source on GitHub ↗
(
  root: Root,
  appProps: AppWrapperProps,
  replProps: REPLProps,
  renderAndRun: (root: Root, element: React.ReactNode) => Promise<void>,
)

Source from the content-addressed store, hash-verified

12};
13
14export async function launchRepl(
15 root: Root,
16 appProps: AppWrapperProps,
17 replProps: REPLProps,
18 renderAndRun: (root: Root, element: React.ReactNode) => Promise<void>,
19): Promise<void> {
20 const { App } = await import('./components/App.js');
21 const { SentryErrorBoundary } = await import('./components/SentryErrorBoundary.js');
22 const { REPL } = await import('./screens/REPL.js');
23 await renderAndRun(
24 root,
25 <SentryErrorBoundary name="RootREPLBoundary">
26 <App {...appProps}>
27 <REPL {...replProps} />
28 </App>
29 </SentryErrorBoundary>,
30 );
31}

Callers 1

runFunction · 0.85

Calls 1

renderAndRunFunction · 0.85

Tested by

no test coverage detected