MCPcopy Create free account
hub / github.com/MatterAIOrg/OrbCode / resolveWorkspacePath

Function resolveWorkspacePath

src/tools/types.ts:20–23  ·  view source on GitHub ↗
(cwd: string, p: string)

Source from the content-addressed store, hash-verified

18
19/** Resolve a possibly-relative path against the workspace. */
20export function resolveWorkspacePath(cwd: string, p: string): string {
21 if (!p) return cwd
22 return path.isAbsolute(p) ? p : path.resolve(cwd, p)
23}

Callers 8

executeCommandFunction · 0.85
searchFilesFunction · 0.85
readFileFunction · 0.85
fileWriteFunction · 0.85
editOneFileFunction · 0.85
previewFileChangeFunction · 0.85
multiFileEditFunction · 0.85
listFilesFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected