Dashboard › cli › Distillation
fa5614bf-ed0e-45e2-91cd-c5751be06a14["lore_tm_v1_LsFWVDk65scZUU86tVsC1uSV-njQtFs2tPke0Ho6CYc","lore_tm_v1_0xRt1cGZExo2wPzxtkV0asJl50e1yRa7uh5rW6gQoo4","lore_tm_v1_UjG_hpIuiaDUXoPJwVfgoQd87q6PblGIMfXPXG0mqEA"]
checkForUpdateInBackgroundImpl() never throws; errors are caught and reported to Sentry.getUpdateNotification returns null when up-to-date, cached version information is unavailable, rate-limited, stderr is non-TTY, or an error occurs; it never throws because errors are caught.pendingAbortController: AbortController | null; abortPendingVersionCheck() can cancel the pending check.prefetchNightlyPatches(latestVersion, signal, source) and subsequently run cleanupPatchCache().marked with Token and Tokens, maps normalized headings through HEADING_TO_CATEGORY, strips emoji/symbols and extra whitespace from headings, and lowercases heading text for category matching.list.items.length; truncation returns { totalItems, truncated: totalItems < originalCount }.feat:, fix:, and perf:.since value by +1s to exclude the current boundary.packages/cli/test/commands/cli.test.ts was updated so curl-upgrade tests mock the Toolkit GitHub releases list using product-prefixed tags such as [{ tag_name: "cli@99.0.0" }], replacing the prior single-release payload { tag_name: "v99.0.0" }.packages/cli/test/commands/cli.test.ts, the “shows installation info with specified method” and “already on target” tests now use [{ tag_name: "cli@0.0.0-dev" }]; expected method remains "curl" and matching current/target versions produce no warnings.packages/cli/test/commands/cli.test.ts, the update-available test expects action: "checked", targetVersion: "99.0.0", and warning Run 'sentry cli upgrade' to update. from a cli@99.0.0 Toolkit release-list response.packages/cli/test/commands/cli.test.ts, version-specific checking for 2.0.0 recognizes the encoded exact-tag URL fragment /releases/tags/cli%402.0.0, returns { tag_name: "cli@2.0.0" }, and expects warning Run 'sentry cli upgrade 2.0.0' to update..packages/cli/test/commands/cli.test.ts, the nonexistent-version test now models one latest-release-list request returning [{ tag_name: "cli@99.0.0" }] followed by two exact-tag probes returning HTTP 404, and expects an UpgradeError.detectInstallationMethod() executes real shell commands such as npm list, which can be slow or flaky in CI; handling is covered indirectly by lib/upgrade.test.ts.