Dashboard › cli › Distillation
8044a5e4-e19e-4235-b238-97fb1d7d0694["lore_tm_v1_aBGPa-I4Uv1wlFNJI4AMp2GHIad6QaNcQvbOtBx9zKg"]
packages/cli/src/lib/delta-upgrade.ts to import getGitHubReleasesUrl, PRIMARY_UPGRADE_SOURCE, and type UpgradeSource from ./binary.js, replacing the GITHUB_RELEASES_URL import and removing the GHCR_REPO import from ./ghcr.js.getPrimaryUpgradeSource(): UpgradeSource in packages/cli/src/lib/delta-upgrade.ts; it returns PRIMARY_UPGRADE_SOURCE or throws Error("No primary upgrade source is configured") when no primary source is configured.validateChainStep() wrapper in packages/cli/src/lib/delta-upgrade.ts first checks getPatchFromVersion(manifest) against opts.expectedFrom, returning a version-mismatch failure with expected and actual; it then delegates to binpatchValidateChainStep(), and translates failure into either size-exceeded with layerSize and budget when the named layer exists, or missing-layer with layerName otherwise.resolveDelta() in packages/cli/src/lib/delta-upgrade.ts to create telemetry via telemetry(), pass it to resolveAndApply(), and return { result, source: tel._source.current }, exposing the source selected during delta resolution.prefetchStablePatches() in packages/cli/src/lib/delta-upgrade.ts to accept source: UpgradeSource = getPrimaryUpgradeSource() after signal?: AbortSignal, and to call prefetch(stableSource(source), targetVersion, signal).fetchNightlyManifest() in packages/cli/src/lib/ghcr.ts to accept signal?: AbortSignal and source: UpgradeSource = PRIMARY_UPGRADE_SOURCE, forwarding both through fetchManifest(token, GHCR_TAG, signal, source).