MCPcopy 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
3const normalize = (directory: string) => directory.replace(/[\\/]+$/, "")
4const key = (scope: ServerScope, directory: string) => ScopedKey.from(scope, normalize(directory))
5
6type State =
7 | {

Callers 5

getFunction · 0.70
pendingFunction · 0.70
readyFunction · 0.70
failedFunction · 0.70
waitFunction · 0.70

Calls 2

normalizeFunction · 0.70
fromMethod · 0.45

Tested by

no test coverage detected