MCPcopy
hub / github.com/claude-code-best/claude-code / findLocalBinary

Function findLocalBinary

src/ssh/SSHDeploy.ts:42–53  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

40}
41
42function findLocalBinary(): string {
43 const projectRoot = resolve(import.meta.dir, '../..')
44 const distPath = resolve(projectRoot, 'dist/cli.js')
45 if (existsSync(distPath)) return distPath
46
47 const devPath = resolve(projectRoot, 'src/entrypoints/cli.tsx')
48 if (existsSync(devPath)) return devPath
49
50 throw new Error(
51 'Cannot find local CLI binary to deploy. Run `bun run build` first.',
52 )
53}
54
55export async function deployBinary(options: DeployOptions): Promise<string> {
56 const { host, remotePlatform, remoteArch, localVersion, onProgress } = options

Callers 1

deployBinaryFunction · 0.85

Calls 2

existsSyncFunction · 0.90
resolveFunction · 0.50

Tested by

no test coverage detected