MCPcopy Index your code
hub / github.com/codeaashu/claude-code / installVersion

Function installVersion

src/utils/nativeInstaller/installer.ts:424–435  ·  view source on GitHub ↗
(
  stagingPath: string,
  installPath: string,
  downloadType: 'npm' | 'binary',
)

Source from the content-addressed store, hash-verified

422}
423
424async function installVersion(
425 stagingPath: string,
426 installPath: string,
427 downloadType: 'npm' | 'binary',
428) {
429 // Use the explicit download type instead of guessing
430 if (downloadType === 'npm') {
431 await installVersionFromPackage(stagingPath, installPath)
432 } else {
433 await installVersionFromBinary(stagingPath, installPath)
434 }
435}
436
437/**
438 * Performs the core update operation: download (if needed), install, and update symlink.

Callers 1

performVersionUpdateFunction · 0.85

Calls 2

installVersionFromBinaryFunction · 0.85

Tested by

no test coverage detected