Dashboard › cli › Distillation
ceede428-172f-4d94-91d9-e17de995bb45["lore_tm_v1_kJvL3zThevBCNERFDifZQOP5LM8bWSROsYktPQokh1g","lore_tm_v1_AYnkqa52TGfAW_4aEk1MA21c5AIOF5KE7uBr_8gHVt4","lore_tm_v1_jV131A2YurWYpLdalJz0T5w8cHF46YAWqSn1cbsLKjg","lore_tm_v1_k6h-E63uxhHOJkNSemlnEbFIQK2WbfcfWr83o1HJvKI","lore_tm_v1_BGmqxn7EGcqdXv0mcldi9dRb_jZr-DcotnAGW4Roo1Q","lore_tm_v1__Ruj7craiXujoa_vEphtyOaL3Sf0Su2aJsJaS9891Ik","lore_tm_v1_Rn7qeOIaWZavDHXdMQlbqGJIux54eYutTo4ejWtuZhc"]
packages/cli/src/lib/upgrade.ts states that trailing path separators are stripped, but never from a bare root such as /.packages/cli/src/lib/upgrade.ts states that the caller receives the successful probe response so it never repeats the probe.packages/cli/src/lib/upgrade.ts defines InstallationMethod, builds platform binaries in the form sentry-${os}-${arch}${libcSuffix}${suffix}, and derives sibling paths including lockPath: \${installPath}.lock``.UpgradeError with detail "No CLI upgrade source was found: every source returned HTTP 404" when all sources return HTTP 404.packages/cli/src/lib/upgrade.ts throws UpgradeError("network_error", buildTlsErrorDetail(error)) for the shown TLS/network failure path.packages/cli/src/lib/upgrade.ts includes acquireLock(lockPath: string): void; stale locks from dead processes are removed before retrying..old rename behavior, Unix atomic replacement, and concurrency; it calls acquireLock(lockPath), falls back from realpath to resolve() with logger.debug("realpath failed, falling back to resolve()", error), and copies sourcePath to tempPath.binpatch, constructs cache keys as patch-chain:${fromVersion}-${toVersion}, uses getPlatformBinaryName(), calls binpatchExtractStableChain(opts), and computes totalSize as patches.reduce((sum, patch) => sum + patch.size, 0)."upgrade.delta.apply" and records "delta.chain_length" from result.chainLength; its apply phase starts a fresh progress bar whose total spans bytes across the apply operation.packages/cli/node_modules with exactly 48 entries: .bin/, .vite-temp/, .vite/, @anthropic-ai/, @biomejs/, @clack/, @hono/, @mastra/, @sentry/, @spotlightjs/, @stricli/, @types/, @vitest/, binpatch/, chalk/, cli-highlight/, consola/, esbuild/, fast-check/, fflate/, fossilize/, hono/, http-cache-semantics/, ignore/, ink-spinner/, ink/, jpeg-js/, marked/, node-sqlite3-wasm/, p-limit/, peggy/, picomatch/, pixelmatch/, pngjs/, pretty-ms/, qrcode-terminal/, react-devtools-core/, react/, semver/, string-width/, tinyglobby/, tsx/, typescript/, ultracite/, uuidv7/, valibot/, vitest/, wrap-ansi/.packages/cli/node_modules/binpatch/ contains exactly 4 entries: dist/, LICENSE, package.json, and README.md./home/byk/.local/share/opencode/worktree/0e8c2f3bbe145a3280d6fb6ed900a5121f382cf0/toolkit-bridge-upgrade/packages/cli/node_modules/binpatch/dist/index.d.ts, /home/byk/.local/share/opencode/worktree/0e8c2f3bbe145a3280d6fb6ed900a5121f382cf0/toolkit-bridge-upgrade/packages/cli/node_modules/binpatch/dist/index.js.map, and /home/byk/.local/share/opencode/worktree/0e8c2f3bbe145a3280d6fb6ed900a5121f382cf0/toolkit-bridge-upgrade/packages/cli/node_modules/binpatch/dist/index.js.packages/cli/node_modules/binpatch/dist/index.js: source.resolveChain( at line 688; async resolveChain(currentVersion, targetVersion, signal, report) at lines 1133 and 1266; function githubReleaseSource(config) at line 1225; and the export list at line 1318.binpatch/dist/index.js line 1318 exports BinpatchError, MAX_NIGHTLY_CHAIN_DEPTH, MAX_OUTPUT_SIZE, MAX_STABLE_CHAIN_DEPTH, OciClient, PATCH_TAG_PREFIX, SIZE_THRESHOLD_RATIO, addDiffChunk, applyPatch, applyPatchChainInMemory, applyPatchToMemory, chainFileName, extractSha256, extractStableChain, filterAndSortChainTags, getPatchFromVersion, getPatchTargetSha256, getStableTargetSha256, ghcrSource, githubReleaseSource, makeCache, offtin, parsePatchHeader, patchFileName, resolveAndApply, safeProgress, and validateChainStep.