MCPcopy Index your code
hub / github.com/codeaashu/claude-code / getPaneBackendExecutor

Function getPaneBackendExecutor

src/utils/swarm/backends/registry.ts:442–451  ·  view source on GitHub ↗

* Gets the PaneBackendExecutor instance. * Creates and caches the instance on first call, detecting the appropriate pane backend.

()

Source from the content-addressed store, hash-verified

440 * Creates and caches the instance on first call, detecting the appropriate pane backend.
441 */
442async function getPaneBackendExecutor(): Promise<TeammateExecutor> {
443 if (!cachedPaneBackendExecutor) {
444 const detection = await detectAndGetBackend()
445 cachedPaneBackendExecutor = createPaneBackendExecutor(detection.backend)
446 logForDebugging(
447 `[BackendRegistry] Created PaneBackendExecutor wrapping ${detection.backend.type}`,
448 )
449 }
450 return cachedPaneBackendExecutor
451}
452
453/**
454 * Resets the backend detection cache.

Callers 1

getTeammateExecutorFunction · 0.85

Calls 3

detectAndGetBackendFunction · 0.85
logForDebuggingFunction · 0.85

Tested by

no test coverage detected