MCPcopy Create free account
hub / github.com/Noumena-Network/code / installVersion

Function installVersion

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

Source from the content-addressed store, hash-verified

410}
411
412async function installVersion(
413 stagingPath: string,
414 installPath: string,
415 downloadType: 'npm' | 'binary',
416) {
417 // Use the explicit download type instead of guessing
418 if (downloadType === 'npm') {
419 await installVersionFromPackage(stagingPath, installPath)
420 } else {
421 await installVersionFromBinary(stagingPath, installPath)
422 }
423}
424
425/**
426 * 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