Dashboard › cli › Distillation
d5bde9a1-8a75-43bc-b416-d4fb6831ba35["lore_tm_v1_YtRoeypnuqSy7TyJEdN2_-0FcZ5GzezxQI3yrMgdyQk","lore_tm_v1_-ZZMiq4yHT3Br37pRX5xbSRE7wPYqMQOvN-zGkIWkTM","lore_tm_v1_ZNbKUHUjDSJID84madmNF2iAS0wedt5THRmfvRPF1cA","lore_tm_v1_dLBpLvjAnpI0-rAC8K7RXoHeeJUi2YWAD95ZspcNaV0"]
packages/cli/src/lib/delta-upgrade.ts uses the local validateChainStep rather than binpatch’s validator to preserve a richer 3-reason validation result.totalSize, derives each toVersion using tag.slice(PATCH_TAG_PREFIX.length), and maps chain.patches to each patch’s data for in-memory application.makeByteProgress; when entering a new phase it creates a fresh progress bar, and the apply phase totals bytes across patches while resetting previousWritten to 0.formatBytes(chain.totalSize); unavailability is handled through onUnavailable(reason: DeltaUnavailableReason).telemetry() and supports an offline option.stableSource() and determines the upgrade channel with isNightlyVersion(targetVersion) ? "nightly" : "stable".setMessage?: SetMessage, records tracing attributes including channel, "delta.to_version": targetVersion, and conditionally associates an error span when chainSource !== undefined; span status codes shown are 1 and 2.403 and 404; the second result displayed 404 twice.