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

Function getBackendByType

src/utils/swarm/backends/registry.ts:295–302  ·  view source on GitHub ↗
(type: PaneBackendType)

Source from the content-addressed store, hash-verified

293 * @throws If the requested backend type is not available
294 */
295export function getBackendByType(type: PaneBackendType): PaneBackend {
296 switch (type) {
297 case 'tmux':
298 return createTmuxBackend()
299 case 'iterm2':
300 return createITermBackend()
301 }
302}
303
304/**
305 * Gets the currently cached backend, if any.

Callers 4

killTeammateFunction · 0.85
useInboxPollerFunction · 0.85

Calls 2

createTmuxBackendFunction · 0.85
createITermBackendFunction · 0.85

Tested by

no test coverage detected