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

Function normalize

packages/app/src/utils/worktree.ts:3–3  ·  view source on GitHub ↗
(directory: string)

Source from the content-addressed store, hash-verified

1import { ScopedKey, type ServerScope } from "@/utils/server-scope"
2
3const normalize = (directory: string) => directory.replace(/[\\/]+$/, "")
4const key = (scope: ServerScope, directory: string) => ScopedKey.from(scope, normalize(directory))
5
6type State =

Callers 1

keyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected