Dashboard › cli › Distillation
b8228bde-23f9-423a-81fd-8290065679e3["lore_tm_v1_PpPFSpSPCKWG5OaFbnD5rA1KyquRU71FYiYgdf2AvSw","lore_tm_v1_BKnEyOUsS0RpHIGZRtZ4BGSPXM7oLeN0mjyh-0AAuLE"]
Date: September 10, 2026
packages/cli/src/lib/upgrade.ts at line 454.packages/cli/src/lib/upgrade.ts documents that upgrade installation detection begins around line 443 and falls back to detectLegacyInstallationMethod() at line 468 after the Homebrew-first check.fetchLatestFromNpm() in packages/cli/src/lib/upgrade.ts requests ${NPM_REGISTRY_URL}/latest through fetchWithUpgradeError, sends Accept: application/json, and identifies the remote as "npm registry".fetchLatestFromNpm() throws new UpgradeError("network_error", \Failed to fetch from npm: ${response.status}`)`.fetchLatestFromNpm() parses the response with parseUpgradeJson(response, undefined, "npm registry returned invalid metadata").new UpgradeError("network_error", \No version found in ${source}`)` when fetched metadata contains no usable version.UpgradeError message Failed to fetch from GitHub: HTTP ${response.status}.getBinaryDownloadUrl(version, source); the relevant source: UpgradeSource parameter defaults to PRIMARY_UPGRADE_SOURCE.