Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/anomalyco/opencode
/ key
Function
key
packages/app/src/utils/worktree.ts:4–4 ·
view source on GitHub ↗
(scope: ServerScope, directory: string)
Source
from the content-addressed store, hash-verified
2
3
const
normalize = (directory: string) => directory.replace(/[\\/]+$/,
""
)
4
const
key = (scope: ServerScope, directory: string) => ScopedKey.from(scope, normalize(directory))
5
6
type
State =
7
| {
Callers
5
get
Function · 0.70
pending
Function · 0.70
ready
Function · 0.70
failed
Function · 0.70
wait
Function · 0.70
Calls
2
normalize
Function · 0.70
from
Method · 0.45
Tested by
no test coverage detected