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

Function locationKey

packages/tui/src/context/data.tsx:50–52  ·  view source on GitHub ↗
(location: LocationRef)

Source from the content-addressed store, hash-verified

48}
49
50function locationKey(location: LocationRef) {
51 return JSON.stringify([location.directory, location.workspaceID])
52}
53
54function locationQuery(ref?: LocationRef) {
55 return ref ? { directory: ref.directory, workspace: ref.workspaceID } : undefined

Callers 2

refreshFunction · 0.85
listFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected