Dashboard › cli › Distillation
f757102f-6f98-46bb-8ab2-0eb1eb4ae7dd["lore_tm_v1_xunoAVamBgTOd3EzMOM2jcRdYj0ZkP3DVQatBEuKgtc","lore_tm_v1_SfCdz545Ar8BDE-m8sksd4265N47BFuCgMIKsy-C0zM","lore_tm_v1_8XK3sH_yzL0QdK5hPL9etWp4n6STxXwSgAO-4DhJ6EE"]
packages/cli/test/lib/release-notes.test.ts to import afterEach, beforeEach, UPGRADE_SOURCES, fetchRecentReleases, fetchChangelog, and mockFetch, adding source-aware changelog/release-fetch coverage alongside the existing release-note parsing tests.packages/cli/test/lib/release-notes.test.ts test named "rejects normalized releases from another source" and uses Toolkit and legacy entries from UPGRADE_SOURCES to verify release-source isolation.[{ tag_name: "cli@99.0.0", draft: false }] and records requested URLs to verify source-specific access."passes the Toolkit source from nightly discovery to patch prefetch without legacy access"; nightly metadata includes annotations: { version: "99.0.0-dev.200" }, deltaUpgrade.prefetchNightlyPatches is spied on, and any legacy-source URL causes Unexpected legacy access: ${url}.878459c490576dbb7abb76d3a3dc1b5d9fc62c1f: packages/cli/test/lib/binary.test.ts verifies a native AbortError is rethrown unchanged and an arbitrary external abort reason { kind: "cancelled" } is preserved by identity.packages/cli/test/lib/ghcr.test.ts: a normal abort rejects with { name: "AbortError" }; primitive reason "cancelled", new Error("cancelled"), and object reason { kind: "cancelled" } are preserved without being replaced by a generated DOMException.packages/cli/test/lib/upgrade.test.ts coverage asserting UpgradeError.reason values including "unknown_method", "network_error", "execution_failed", "version_not_found", "unsupported_operation", and "offline_cache_miss".packages/cli/test/lib/upgrade.test.ts: "preserves an already-aborted signal reason" uses { kind: "cancelled" }, while "aborts early if signal is already aborted" expects an error with name: "AbortError".packages/cli/src/lib/binary.ts: around lines 319β325, requests receive options.signal, an aborted signal causes throw options.signal.reason, and fetched AbortError instances are detected by error instanceof Error && error.name === "AbortError"; fetchWithUpgradeError() has additional abort handling around lines 496β505.fetchWithUpgradeError() call sites in packages/cli/src/lib/upgrade.ts around lines 523, 557, 797, 840, and 1067; the line-1067 call is fetchWithUpgradeError(url, { headers }, "GitHub").packages/cli/test/lib/upgrade.test.ts: "follows Toolkit release pagination to find the latest CLI release", "rejects GitHub release pagination outside the selected source", "classifies malformed GitHub release pagination as a network error", and "rejects cyclic GitHub release pagination"."GitHub returned an invalid release pagination URL"; malformed pagination is classified with reason: "network_error", while cyclic pagination uses "GitHub returned cyclic release pagination".