MCPcopy
hub / github.com/anomalyco/opencode / absolute

Function absolute

packages/app/src/context/directory-sync.ts:29–29  ·  view source on GitHub ↗
(path: string)

Source from the content-addressed store, hash-verified

27 const client = serverSDK.createClient({ directory, throwOnError: true })
28 const current = createMemo(() => serverSync.child(directory, { mcp: true }))
29 const absolute = (path: string) => (current()[0].path.directory + "/" + path).replace("//", "/")
30 const data = new Proxy({} as State, {
31 get(_, property: keyof State) {
32 if (property === "session_working") return serverSync.session.data.session_working.bind(serverSync.session.data)

Callers

nothing calls this directly

Calls 1

currentFunction · 0.70

Tested by

no test coverage detected