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

Function fromRoute

packages/app/src/utils/server-scope.ts:30–32  ·  view source on GitHub ↗
(dir: string | undefined, sessionID?: string)

Source from the content-addressed store, hash-verified

28
29export const SessionRouteKey = {
30 fromRoute(dir: string | undefined, sessionID?: string) {
31 return fragment("Session route", `${dir ?? ""}${sessionID ? "/" + sessionID : ""}`) as SessionRouteKey
32 },
33 fromLegacy(key: string) {
34 return fragment("Legacy session route", key) as SessionRouteKey
35 },

Callers

nothing calls this directly

Calls 1

fragmentFunction · 0.85

Tested by

no test coverage detected