MCPcopy Create free account
hub / github.com/Zoo-Code-Org/Zoo-Code / resolveWorkspacePath

Function resolveWorkspacePath

apps/cli/src/commands/cli/list.ts:45–53  ·  view source on GitHub ↗
(workspace: string | undefined)

Source from the content-addressed store, hash-verified

43}
44
45function resolveWorkspacePath(workspace: string | undefined): string {
46 const resolved = workspace ? path.resolve(workspace) : process.cwd()
47
48 if (!fs.existsSync(resolved)) {
49 throw new Error(`Workspace path does not exist: ${resolved}`)
50 }
51
52 return resolved
53}
54
55function resolveExtensionPath(extension: string | undefined): string {
56 const resolved = path.resolve(extension || getDefaultExtensionPath(__dirname))

Callers 2

createListHostFunction · 0.70
listSessionsFunction · 0.70

Calls 1

cwdMethod · 0.45

Tested by

no test coverage detected