Dashboard › cli › Distillation
d50e3fe6-4afd-4a73-a43f-7768aad67f2f["lore_tm_v1_kj9YtciUvYztLdikVRhtHB0ZLVtju8MeENUFEXDaPFc"]
packages/cli/test/lib/upgrade.test.ts now imports UPGRADE_SOURCES from packages/cli/src/lib/binary.js and dynamically imports resolveExistingUpgradeVersion from packages/cli/src/lib/upgrade.js.fetchLatestFromGitHub tests to use release-list responses with CLI-prefixed tags such as cli@1.2.3, follow GitHub Link pagination such as https://api.github.com/repositories/1114546946/releases?per_page=100&page=2, and reject invalid release pagination URLs with UpgradeError message GitHub returned an invalid release pagination URL.mcp@9.0.0 and include handling for a mismatched release payload { tag_name: "mcp@1.0.0" }.No CLI upgrade source was found: every source returned HTTP 404.ghcr.io/token and /v2/getsentry/toolkit/manifests/nightly, plus GitHub fallback involving https://api.github.com/repos/getsentry/toolkit.UpgradeError with message GHCR token exchange failed: HTTP 401.buildKnownCurlPaths test in packages/cli/test/lib/upgrade.test.ts that passes XDG_BIN_HOME: xdgBin + sep and requires normalization to exactly xdgBin + sep.process.execPath.startsWith() directory-boundary checks.paths.some((p) => p.includes(sep + sep)) is false.