MCPcopy
hub / github.com/anomalyco/opencode / from

Function from

packages/app/src/utils/server-scope.ts:39–41  ·  view source on GitHub ↗
(scope: ServerScope, route: SessionRouteKey)

Source from the content-addressed store, hash-verified

37
38export const SessionStateKey = {
39 from(scope: ServerScope, route: SessionRouteKey) {
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))

Callers

nothing calls this directly

Calls 1

composeFunction · 0.70

Tested by

no test coverage detected