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

Function scope

packages/app/src/utils/server-scope.ts:46–50  ·  view source on GitHub ↗
(key: string)

Source from the content-addressed store, hash-verified

44 return SessionRouteKey.fromLegacy(split === -1 ? key : key.slice(split + 1))
45 },
46 scope(key: string) {
47 const split = key.indexOf(separator)
48 if (split === -1) return ServerScope.local
49 return fragment("Stored server scope", key.slice(0, split)) as ServerScope
50 },
51}
52
53export const ScopedKey = {

Callers

nothing calls this directly

Calls 1

fragmentFunction · 0.85

Tested by

no test coverage detected