Dashboard › cli › Distillation
437b26a9-4732-4c3f-9591-66eafb64b4d9["lore_tm_v1_k8woNNF-ThsRIfYdFFQjGLanznoIKh604JG5SXmv3E0","lore_tm_v1_IXdWxfNN6Rw-V5YAfUFnNqqj3XM1bG0Tr52TfyUEZ9Q","lore_tm_v1_IuVYdXUtRsWdZDEWNW2ysrShc_SiwkuH4jhQPOm3o6I","lore_tm_v1_-niN-7NOr52b4b8Ae2R7DCv8B5z93Gc23qzjYq1q6rc","lore_tm_v1_WA6KsgLEF5O7pgwadSXrijhXTvFDtvexddOMX1Ckx-E","lore_tm_v1_jfS2Ef_C9pFvTp0LtxP9Nu3igCl3GMBSg9PMLd7Ae2c","lore_tm_v1_BIIoWXoUFALHJbGSOimeUw1ysgVgxoyjj0kNn7tjGW8","lore_tm_v1_RDxzDdspnmd4CZwbG6OsRKTjBMjtOHjKJ1TCrEjwotU","lore_tm_v1_x8Cf_3ePOJ2huWHJHRxFmJT-uVUWDnc6rF9iYv3UWj4","lore_tm_v1_-W44zEUI-gRscO16sxNa81heKAG4jiKwYOXCOm3p4ys","lore_tm_v1_roRh5E1cQ6-wiU9X5rCb79Lv04txuFNzIFE-Y_70dUo","lore_tm_v1_viKWjyVAtigTzpm2Q1mtE5haMHL3EYahjnSLMwafXi4"]
GHCR_REPO matches: 6 in packages/cli/test/lib/ghcr.test.ts (lines 17, 83, 152, 404, 447, 569), 4 in packages/cli/src/lib/delta-upgrade.ts (lines 44, 72, 135, 288), and 5 in packages/cli/src/lib/ghcr.ts (lines 134, 193, 232, 337, 432). packages/cli/src/lib/ghcr.ts:134 defines GHCR_REPO = "getsentry/cli"; token, manifest, blob, and paginated tag-list URLs all use that repository.token=403 manifest=not-requested.doesnotexist123456789 and toolkit.packages/cli/test/lib/upgrade.test.ts, packages/cli/test/commands/cli/upgrade.test.ts, packages/cli/test/lib/delta-upgrade.test.ts, and packages/cli/test/lib/delta-upgrade.mocked.test.ts.packages/cli/test/lib/upgrade.test.ts:190-283 tests fetchLatestFromGitHub(): returns 1.2.3 from tag v1.2.3; strips the v from v0.5.0; accepts unprefixed 1.0.0; maps HTTP 404 to UpgradeError message Failed to fetch from GitHub: 404; maps TypeError("fetch failed") to Failed to connect to GitHub: fetch failed; and rejects a response without tag_name with No version found in GitHub release.packages/cli/test/lib/upgrade.test.ts:533-544 verifies fetchLatestVersion("curl") defaults to the stable channel and GitHub, converting tag v3.0.0 to version 3.0.0.packages/cli/test/lib/upgrade.test.ts:547-705 verifies versionExists(): stable curl and brew use GitHub; npm, pnpm, bun, and yarn use npm; HTTP 200 means true and 404 means false; network failures throw UpgradeError with GitHub- or npm-specific connection messages.packages/cli/test/lib/upgrade.test.ts:633-703 verifies nightly versionExists() behavior: version 0.14.0-dev.1772661724 checks GHCR and returns true when its nightly- manifest exists; 0.14.0-dev.9999999999 returns false on manifest 404; nightly versions use GHCR regardless of installation method, including npm; network failures and GHCR HTTP 500 responses throw UpgradeError.packages/cli/test/lib/upgrade.test.ts:1501-1513 defines nightly detection expectations: isNightlyVersion() returns true for 0.0.0-dev.1740000000 and 0.0.0-dev.1, but false for 1.0.0, 0.13.0, 2.0.0-beta.1, and incomplete 0.0.0-dev.packages/cli/test/lib/upgrade.test.ts:1515-1586 tests fetchLatestNightlyVersion(): performs exactly 2 requests (GHCR token exchange plus nightly manifest), reads version 0.0.0-dev.1740000000 from the manifestβs annotations.version, maps token HTTP 401 to UpgradeError: GHCR token exchange failed: HTTP 401, rejects a missing version annotation with Nightly manifest has no version annotation, and immediately raises an AbortError when passed an already-aborted signal.packages/cli/test/lib/upgrade.test.ts:1588-1676 tests executeUpgrade("curl", "0.0.0-dev.1740000000"): mocks GHCR token, manifest, and blob requests; selects artifact title sentry-${os}-${arch}${suffix}.gz using linux/darwin/windows, arm64 or x64, and .exe on Windows; downloads a gzip layer with digest sha256:blobdigest; and verifies the resulting tempBinaryPath contains decompressed ELF bytes [0x7f, 0x45, 0x4c, 0x46].packages/cli/test/lib/upgrade.test.ts:1678-1737 tests downloadBinaryToTemp("0.26.1") offline failures: mode "explicit" throws UpgradeError with reason offline_cache_miss, mentions in offline mode and without \--offline`, and does not mention cached patches; mode "network-fallback"uses the same reason, mentionsnetwork is unavailableandCheck your internet connection, and also does not mention cached patches`.packages/cli/src/lib/release-notes.ts:662 uses https://api.github.com/repos/getsentry/cli/commits?sha=main&since=${sinceDate}&until=${untilDate}&per_page=100.#1254, chore: pre-shape repo into pnpm-workspace monorepo layout, branch chore/preshape-monorepo, URL https://github.com/getsentry/cli/pull/1254, updated 2026-07-31T13:58:04Z; a second query returned no results.#1244, toolkit merge: bridge CLI release + dual-source upgrade compatibility, URL https://github.com/getsentry/cli/issues/1244, updated 2026-09-08T19:17:06Z. (meaning September 8, 2026)#1248, Merge sentry-cli + sentry-mcp into getsentry/toolkit monorepo (master), URL https://github.com/getsentry/cli/issues/1248, updated 2026-09-08T19:20:09Z. (meaning September 8, 2026)