MCPcopy Index your code
hub / github.com/anomalyco/opencode / fromServerKey

Function fromServerKey

packages/app/src/utils/server-scope.ts:21–26  ·  view source on GitHub ↗
(key: ServerConnection.Key, canonicalLocalServer?: ServerConnection.Key)

Source from the content-addressed store, hash-verified

19export const ServerScope = {
20 local: "local" as ServerScope,
21 fromServerKey(key: ServerConnection.Key, canonicalLocalServer?: ServerConnection.Key) {
22 return fragment(
23 "Server scope",
24 key === "sidecar" || key === canonicalLocalServer ? ServerScope.local : key,
25 ) as ServerScope
26 },
27}
28
29export const SessionRouteKey = {

Callers

nothing calls this directly

Calls 1

fragmentFunction · 0.85

Tested by

no test coverage detected