Dashboard › cli › Distillation
79b0905b-c357-469d-9a13-f50c4ac51d30["lore_tm_v1_mXO6zKMp8LlWdwGLsnEFeuwpI6ccqAxQNNrFPo7HfuU"]
Date: Sep 9, 2026
binpatch and prefetching.packages/cli/package.json line 111 declares "binpatch": "^0.4.2".packages/cli/src/lib/delta-upgrade.ts imports githubReleaseSource from binpatch; githubReleaseSource({ ... }) is called around line 123.resolveDelta() at packages/cli/src/lib/delta-upgrade.ts:464, with call sites around lines 494, 512, and 542.prefetch() at packages/cli/src/lib/delta-upgrade.ts:600; prefetchNightlyPatches() around line 615 calls prefetch(nightlySource(), targetVersion, signal), while prefetchStablePatches() around line 622 calls prefetch(stableSource(), targetVersion, signal).packages/cli/src/lib/version-check.ts imports prefetchNightlyPatches and prefetchStablePatches; around lines 237β239 it calls prefetchNightlyPatches(latestVersion, signal) for nightly and prefetchStablePatches(latestVersion, signal) for stable.packages/cli/test/lib/delta-upgrade.test.ts imports both prefetch functions and has dedicated sections around lines 1823β1844: prefetchNightlyPatches("0.14.0-dev.123") and prefetchStablePatches("0.14.0"). Its comment says these tests exercise function entry and the guard in prefetchAndCache.packages/cli/src/lib/delta-upgrade.ts around lines 326β328 intentionally uses local validateChainStep rather than binpatchβs validator so a richer 3-reason result, including size-exceeded, survives the binpatch adoption.packages/cli/src/lib/patch-cache.ts imports makeCache, PatchCache, and PatchChain from binpatch; re-exports ChainMeta, PatchStepMeta, chainFileName, and patchFileName.binpatch consumers found: packages/cli/test/e2e/delta-upgrade.test.ts imports applyPatch and applyPatchChainInMemory; packages/cli/test/lib/bspatch.test.ts imports binpatch APIs; packages/cli/test/lib/bspatch.property.test.ts imports offtin and parsePatchHeader.packages/cli/script/bundle.ts around line 175 notes dependencies such as binpatch import from "zlib", which esbuild treats as an external builtin.