Dashboard › cli › Distillation
f962ec8e-4faf-4c12-865a-3fa9b0c4ef7f["lore_tm_v1_7rsL3ra3vhOax38_NbrSUaanALJvr03OGPyFQkofIq4","lore_tm_v1_K3AsajPzHNYJGTaP8jUV0L3AhgTKZY7nKZw0qStxanA","lore_tm_v1_Maz5ThGreEUd9_UM0l64QU7ww4b5S9STj92qAaAW-gY"]
packages/cli/test/lib/upgrade.test.ts now imports UPGRADE_SOURCES from ../../src/lib/binary.js and resolveExistingUpgradeVersion from ../../src/lib/upgrade.js.fetchLatestFromGitHub test fixtures now use GitHub release arrays with Toolkit-prefixed tags such as "cli@v2.0.0" instead of a single release object with "v2.0.0"; additional fixtures include malformed "cli@not-a-version" and unrelated "mcp@9.0.0" tags to exercise CLI-tag filtering.packages/cli/test/lib/upgrade.test.ts now mock Toolkit repository availability via https://api.github.com/repos/getsentry/toolkit before GHCR token and manifest requests.fetchLatestNightlyVersion() coverage adds source fallback behavior: Toolkit nightly manifest HTTP 404 falls back to the legacy source, while Toolkit HTTP 403 rejects with "HTTP 403" rather than falling back.versionExists coverage adds an explicit-source call versionExists("curl", "0.14.0-dev.1772661724", UPGRADE_SOURCES[0]) and verifies GHCR HTTP 403 is not classified as a missing nightly version.packages/cli/test/lib/delta-upgrade.test.ts now imports vi, UPGRADE_SOURCES, and useTestConfigDir; it defines LEGACY_UPGRADE_SOURCE = UPGRADE_SOURCES[1] and throws "Legacy upgrade source is not configured" if that source is absent.fetchRecentReleases fixtures in packages/cli/test/lib/delta-upgrade.test.ts changed stable tags from "0.14.0" and "0.13.0" to Toolkit tags "cli@0.14.0" and "cli@0.13.0", and add unrelated "mcp@9.0.0" to test source-specific tag handling.{ fromVersion: "0.13.0", toVersion: "0.14.0" }; two-hop steps are ordered 0.13.0 → 0.14.0, then 0.14.0 → 0.15.0, with patchA applied before patchB."getsentry/toolkit", ensuring explicit legacy resolution remains confined to the legacy upgrade source.getGitHubHeaders() is defined at line 472 of /home/byk/.local/share/opencode/worktree/0e8c2f3bbe145a3280d6fb6ed900a5121f382cf0/toolkit-bridge-upgrade/packages/cli/src/lib/binary.ts.