MCPcopy Index your code
hub / github.com/ChatLab/ChatLab / resolveCliPath

Function resolveCliPath

apps/cli/src/paths.ts:4–8  ·  view source on GitHub ↗
(...segments: string[])

Source from the content-addressed store, hash-verified

2import { fileURLToPath } from 'url'
3
4export function resolveCliPath(...segments: string[]): string {
5 const moduleDir = path.dirname(fileURLToPath(import.meta.url))
6 const packageRoot = path.basename(moduleDir) === 'dist' ? path.dirname(moduleDir) : path.resolve(moduleDir, '..')
7 return path.resolve(packageRoot, ...segments)
8}

Callers 8

resolveNativeBindingFunction · 0.90
getVersionFunction · 0.90
cli.tsFile · 0.90
resolveNativeBindingFunction · 0.90
resolveNativeBindingFunction · 0.90
resolveNativeBindingFunction · 0.90
buildPlistFunction · 0.90
buildUnitFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected