MCPcopy Create free account
hub / github.com/SplootCode/splootcode / initialize

Function initialize

packages/runtime-python/src/runtime/index.ts:321–337  ·  view source on GitHub ↗
(
  editorDomainRegex: string,
  RuntimeWorker: new () => Worker,
  AutocompleteWorker: new () => Worker,
  staticURLs: StaticURLs,
  requestHandler: FetchHandler = defaultFetchHandler
)

Source from the content-addressed store, hash-verified

319}
320
321export function initialize(
322 editorDomainRegex: string,
323 RuntimeWorker: new () => Worker,
324 AutocompleteWorker: new () => Worker,
325 staticURLs: StaticURLs,
326 requestHandler: FetchHandler = defaultFetchHandler
327) {
328 runtimeStateManager = new RuntimeStateManager(
329 editorDomainRegex,
330 RuntimeWorker,
331 AutocompleteWorker,
332 requestHandler,
333 staticURLs
334 )
335 window.addEventListener('message', runtimeStateManager.handleMessage, false)
336 runtimeStateManager.initialiseWorkerManagers()
337}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected