Dashboard › cli › Distillation
2924e582-b953-4c37-910b-06e827561119["lore_tm_v1_GUiOemKwsGHzeFbNGHn-889UzdNY7dsQg-3gux_8jHI","lore_tm_v1_RwmL0_gd3_5Dwi-3JjV3otnXAb_5UTqza1NF1QbECic","lore_tm_v1_2Yd2qM0nVobZo7OHiGTNfJbSJV-J8cvgjaCOXz7zm94","lore_tm_v1_yMs3B3J066K0aQyJhDwH4MDCNlbkul36u6wZYl047Zw","lore_tm_v1_ID90rAzGq-maQmO_oclQbBpka8VFGGaAh305JtrQBd0","lore_tm_v1_osuvQqnlfpwbN_U4smg3XAs2NKN3yNHjpBz8rTcnTTY"]
Date: Sep 10, 2026
validateMethod() in /home/byk/.local/share/opencode/worktree/0e8c2f3bbe145a3280d6fb6ed900a5121f382cf0/toolkit-bridge-upgrade/packages/cli/src/commands/cli/upgrade.ts.listTags() in /home/byk/.local/share/opencode/worktree/0e8c2f3bbe145a3280d6fb6ed900a5121f382cf0/toolkit-bridge-upgrade/packages/cli/src/lib/ghcr.ts repeatedly calls fetchTagPage(token, lastTag, signal, source), optionally filters tags with tag.startsWith(prefix), stops on an empty or short page (tags.length < TAGS_PAGE_SIZE), and advances pagination using lastTag = tags.at(-1).downloadLayerBlob(token, digest, signal?, source = PRIMARY_UPGRADE_SOURCE) in /home/byk/.local/share/opencode/worktree/0e8c2f3bbe145a3280d6fb6ed900a5121f382cf0/toolkit-bridge-upgrade/packages/cli/src/lib/ghcr.ts delegates to downloadNightlyBlob(token, digest, signal, source) and returns the fully buffered response.arrayBuffer(); it is intended for small patch payloads of 50–500 KB./home/byk/.local/share/opencode/worktree/0e8c2f3bbe145a3280d6fb6ed900a5121f382cf0/toolkit-bridge-upgrade/packages/cli/test/lib/ghcr.test.ts mock globalThis.fetch so GHCR/OCI unit tests make no network requests.getAnonymousToken() tests cover: successful token "test-token-abc"; selected source repository scope repository:getsentry/toolkit:pull returning "toolkit-token"; HTTP 401 mapped to UpgradeError message GHCR token exchange failed: HTTP 401; network TypeError("fetch failed") mapped to Failed to connect to GHCR: fetch failed; caller cancellation propagating AbortError with exactly 1 request and no retry; and a missing token field mapped to GHCR token exchange returned no token.fetchNightlyManifest() tests verify bearer authorization and OCI manifest accept headers, selected-source URL /v2/getsentry/toolkit/manifests/nightly, HTTP 404 mapped to Failed to fetch manifest for tag "nightly": HTTP 404, and network failure mapped to Failed to fetch manifest for tag "nightly": fetch failed.getNightlyVersion() tests verify extraction of "0.0.0-dev.1740000000" from OCI manifest annotations, rejection when the version annotation or annotations object is missing, and rejection of invalid nightly versions "not-semver", "1.2.3", and "1.2.3-dev.foo".