Dashboard › cli › Distillation
036609c0-6212-4c38-a9c1-2476c640cbd2["lore_tm_v1_VQfcWhod00gjqn2gqSub-neEudTe5K5cU9ZsPqKSmSA","lore_tm_v1_g_kbLZlgXBWW1yHjrKVrrkh2LIhFrxwUQCokaKYxxb4","lore_tm_v1_rqOkC12XYCN1LADTySVO4iDqM-QnZaeQd_ceoCtd09E","lore_tm_v1_ivxMtt8m5nWMVvVzQ561fze1f1laqFmubF0hbf3TBr8","lore_tm_v1_uTewUiTPM0Zo38ZksUTgqy76Mig3YSeyn68vXLuJ7Tc","lore_tm_v1_g5yM4TNClVnMIX2Z9ufHyohCqFUcdhMdd_QjHthiDCQ","lore_tm_v1_QEiwYMWuDZ-_udkGAsqGGuvzF1dvCkEqEfyWYvSzeM4","lore_tm_v1_GuPAy5pF_DOoVUANwQvsN09lapZiVP5O1d112-4OoaQ","lore_tm_v1_wZEhBiKlJ0MBz3tFT--qZ2OpL_L7qQpgu_kINBMX4-c","lore_tm_v1_9H3K55HwAVOPYq4nnorHcucxMlaFdlTKQ_s_BtRq8aY","lore_tm_v1_Vw7iQM8N8EVGzhuaN-7IE1jnt4SgSgv_QL3tnE62T64","lore_tm_v1_3m9aQKXubpdFBGwpSR2O6-khfXj28LJxnv0UbuSOTPk","lore_tm_v1_iJaWbmG4KHtiNAvr1MyM2hl0Fyi3-pRV02GOd_NT7lQ","lore_tm_v1_lOgeYIwNzeZdXantXrXwTOuaGh5GYj89oo9HeONyCbI","lore_tm_v1_-96FXCMyr6IFwIzrY1RG2XDBgEF5mlnJtD8dl6WPMOw","lore_tm_v1__v-4MLHQziu5GJuynXhuKTGPfEMa4OPy4pKWMYwfUv4","lore_tm_v1_LWwPgBWShG1bCbOGKa-rUtz49YA2l0hmngDbpws9cs8","lore_tm_v1_6AoGmWlVrh0oplXubV3oVW5ptNqPSJub-5oNI_3FBi4","lore_tm_v1_wkDDT4fPQc4SxBKEPrUf-0mPa-zMgyQPmBoKDPiWIcU"]
packages/cli/test/lib/upgrade.test.ts: rejects GitHub release pagination outside the selected source (line 265), probes prefixed Toolkit tags and retains the selected source (line 702), and does not fall back from an explicit selected source (line 780).packages/cli/test/lib/ghcr.test.ts (lines 96 and 192), packages/cli/test/lib/delta-upgrade.test.ts (stable/nightly legacy-source resolution and the selected source affinity suite), packages/cli/test/lib/binary.test.ts (falls back to the legacy source only on HTTP 404), packages/cli/test/lib/version-check.test.ts (stable patch prefetch remains on legacy after Toolkit 404), packages/cli/test/lib/release-notes.test.ts (fetchChangelog source affinity), and packages/cli/test/commands/cli/upgrade.test.ts (check-mode changelog uses selected legacy source).packages/cli/test/lib/delta-upgrade.test.ts contains the selected source affinity suite at line 1924, covering: attemptDeltaUpgrade stable requests on the legacy source, attemptDeltaUpgrade nightly requests on the legacy source, prefetchStablePatches requests on the legacy source, and prefetchNightlyPatches requests on the legacy source.packages/cli/install, packages/cli/src/lib/db/install-info.ts, packages/cli/src/commands/cli/uninstall.ts, packages/cli/test/lib/install-script.test.ts, packages/cli/test/lib/db/install-info.test.ts, and packages/cli/test/commands/cli/uninstall.test.ts.e05cef2018d3fb6ddde9dcc1a4d7c47c0db3b3da.packages/cli/src/lib/ghcr.ts was generalized for source-aware GHCR access by importing valid as semverValid from semver and PRIMARY_UPGRADE_SOURCE plus UpgradeSource from ./binary.js; it added NIGHTLY_VERSION_REGEX = /^\d+\.\d+\.\d+-dev\.\d+$/.packages/cli/src/lib/ghcr.ts added exported GhcrManifestHttpError extends UpgradeError, with readonly numeric status, name = "GhcrManifestHttpError", reason "network_error", and message Failed to fetch manifest for tag "${tag}": HTTP ${status}. This provides structured HTTP-status detection rather than relying on matching error-message text.getAnonymousToken() in packages/cli/src/lib/ghcr.ts now accepts sourceOrSignal: UpgradeSource | AbortSignal = PRIMARY_UPGRADE_SOURCE plus an optional signal; it preserves the previous signal-only call shape while constructing the token scope from source.ghcrRepo.downloadNightlyBlob() in packages/cli/src/lib/ghcr.ts now accepts source: UpgradeSource = PRIMARY_UPGRADE_SOURCE after the optional AbortSignal and builds the blob URL from source.ghcrRepo. downloadLayerBlob() gained the same source default and forwards it to downloadNightlyBlob().packages/cli/src/lib/custom-ca.ts defines customFetch(input: string | URL | Request, init?: RequestInit): Promise<Response> at line 305. It calls ordinary fetch() when no custom TLS options exist and otherwise calls fetch(input, { ...init, ...tlsOpts }); repository guidance says non-authenticated fetch sites should use it, while authenticated API calls use fetchWithTimeout() in sentry-client.ts.binpatch@0.4.2 installed at node_modules/.pnpm/binpatch@0.4.2/node_modules/binpatch, with dist/index.d.ts, dist/index.js, and dist/index.js.map.binpatch@0.4.2 showed resolveAndApply(opts) supports offline, validates the patched result against chain.expectedSha256, and reports SHA-256 mismatch after patching: got ${sha256}, expected ${chain.expectedSha256} on mismatch. Its offline-cache message is Cannot update offline — no pre-downloaded patch is available.binpatch@0.4.2’s OCI client builds blob URLs as ${this.registry}/v2/${this.repo}/blobs/${digest}; downloadBlobBuffer(token, digest, signal) delegates to downloadBlob(token, digest, signal) and returns an ArrayBuffer.v4.1.10 from packages/cli; timing details were transform 11.00s, setup 433ms, import 18.99s, tests 9.85s, and environment 1ms.[delta-upgrade] Delta upgrade failed (Patch too small: 4 bytes (need at least 32)), falling back to full download.test.poolOptions was removed in Vitest 4, and its former settings must now be top-level options; migration reference: https://vitest.dev/guide/migration#pool-rework.