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

Function route

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

Source from the content-addressed store, hash-verified

40 return compose(scope, [route]) as SessionStateKey
41 },
42 route(key: string) {
43 const split = key.lastIndexOf(separator)
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

Callers 1

LegacyLayoutFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected