MCPcopy Create free account
hub / github.com/anomalyco/opencode / hasServer

Function hasServer

packages/desktop/src/main/wsl/servers.ts:167–169  ·  view source on GitHub ↗
(id: string, distro: string)

Source from the content-addressed store, hash-verified

165 }
166
167 const hasServer = (id: string, distro: string) => {
168 return state.servers.some((item) => item.config.id === id && item.config.distro === distro)
169 }
170
171 const refreshOpencodeCheckBackground = (id: string, distro: string) => {
172 void checkOpencode(distro)

Callers 2

refreshOpencodeChecksFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected