Dashboard › cli › Distillation
2532abaf-12d3-4d06-8cc8-93593b97ba09["lore_tm_v1_VI0lLF50fs_veEJ8CH3fKmp1ilfwnOvtdzfZjCR4guQ","lore_tm_v1_EWE5K7-_7bry2N0nvI3vtWvO2tUUp-Q0MnwTKZXPVXw"]
pnpm-lock.yaml pins binpatch@0.4.2; the package is referenced under the project dependencies and resolved in the lockfile.makeCache, PatchCache, and PatchChain from binpatch; re-exports ChainMeta, PatchStepMeta, chainFileName, and patchFileName; and preserves the existing cache API using // biome-ignore lint/performance/noBarrelFile: preserve the existing cache API.makeCache(join(getConfigDir(), "patch-cache")). savePatchesToCache() delegates to cache().save(chain, steps), cleanupPatchCache() delegates to cache().cleanup(), and clearPatchCache() delegates to cache().clear().loadCachedChain(currentVersion, targetVersion) delegates to cache().load(currentVersion, targetVersion), returns null on a cache miss, and on a hit normalizes every patch.data value with new Uint8Array(patch.data) before returning the chain.fetchLatestFromGitHubWithSource(signal?, sources = UPGRADE_SOURCES) returns Promise<ResolvedUpgradeVersion> and resolves the working source via resolveUpgradeSource({ getProbeUrl: getGitHubLatestReleaseUrl, signal, sources }).{ tag_name?: string } response or an array of { tag_name?: string; draft?: boolean; prerelease?: boolean }, accumulates versions through extractReleaseVersions(data, resolved.source), and tracks visited pagination URLs beginning with getGitHubLatestReleaseUrl(resolved.source) while following pages through getNextGitHubReleasePage(response, resolved.source).UpgradeError("network_error", \No version found in ${source}`)when a source yields no version; its API documentation states returned versions omit thevprefix, fetch/response failures becomeUpgradeError, and external cancellation propagates as AbortError`.