Dashboard › cli › Distillation
b0c8d814-640c-4e8d-a9ae-fe6533b5cb0c["lore_tm_v1_MuZZfJN8pK4_z0wnPruMl-B1U9ZP8A6p_PKdbwjpnZM","lore_tm_v1_g3S2c6b4B7QGrNNXg_sQFOfri-JLYyPeoj0vioWG_4Q"]
Date: Sep 10, 2026
/home/byk/.local/share/opencode/tool-output/tool_0892f316c001iqh1nottw71HnV.fetchChangelog source affinity tests using toolkitSource = UPGRADE_SOURCES[0]! and legacySource = UPGRADE_SOURCES[1]!; each test saves globalThis.fetch in beforeEach and restores it in afterEach.packages/cli/test/lib/upgrade.test.ts adds source-selection coverage: line 193 selects the latest CLI-prefixed Toolkit release; line 214 follows Toolkit pagination; line 245 selects the highest CLI SemVer across pages; line 265 rejects pagination outside the selected source; line 283 classifies malformed pagination as network_error; line 300 rejects cyclic pagination; line 318 falls back to the legacy latest release only when Toolkit returns HTTP 404; line 337 excludes MCP releases when selecting the latest CLI release.packages/cli/test/lib/upgrade.test.ts verify: line 702 probes prefixed Toolkit tags and retains the selected source; line 717 falls back to an unprefixed legacy tag only on Toolkit HTTP 404; line 733 does not interpret transport-error text as missing sources; line 780 does not fall back when a source was selected explicitly.No CLI upgrade source was found: every source returned HTTP 404.packages/cli/test/lib/upgrade.test.ts cover GHCR lookup for curl at line 637, npm at line 662, version existence at lines 890 and 914, install-method independence at line 933, transport failure at line 957, refusal to classify transport-error text as βnot foundβ at line 966, GHCR server errors at line 979, and refusal to classify GHCR HTTP 403 as a missing nightly version at line 993.executeUpgrade regression test for a mismatched versioned GHCR manifest: requesting nightly-0.14.0-dev.123 while the manifest annotation reports version: "0.14.0-dev.124" must reject with { reason: "network_error" } before any URL containing /blobs/ is requested; the test calls executeUpgrade("curl", "0.14.0-dev.123", undefined, false, undefined, UPGRADE_SOURCES[0])."never checked before": with no prior check, getVersionCheckInfo().lastChecked is null, shouldCheckForUpdate returns true, and a background update check should be initiated.packages/cli/test/lib/upgrade.test.ts contains install-method parsing and dispatch tests: parseUpgradeMethod accepts valid methods, parses case-insensitively, and throws for invalid methods; curl and brew use GitHub, while npm, pnpm, bun, yarn, and unknown methods use npm.UpgradeError tests cover default messages for unknown_method, network_error, execution_failed, version_not_found, unsupported_operation, and offline_cache_miss, plus custom messages./Cellar/ and /usr/local/Cellar/, Homebrew overriding stale stored information, npm via node_modules, pnpm via .pnpm, bun via .bun, NVM-managed npm paths, undefined argv[1], Bun compiled binaries, dev-mode source paths, stored-info precedence, and Homebrew precedence over node_modules.buildKnownCurlPaths("/home/user", {}), requiring trailing sep values for /home/user/.local/bin and /home/user/.sentry/bin; additional tests cover absolute XDG_BIN_HOME, normalization of a trailing slash without a doubled separator, rejection of non-absolute XDG_BIN_HOME, all required paths, and Windows .exe suffixes.execPath when it begins with a known curl installation directory.ESRCH return false; EPERM returns true because the process exists under another owner; lock files contain the current PID; active-process locks throw; dead-process and invalid-content locks are cleaned up; permission errors throw rather than recurse indefinitely; and lock files can be removed./home/byk/.local/share/opencode/worktree/0e8c2f3bbe145a3280d6fb6ed900a5121f382cf0/toolkit-bridge-upgrade/packages/cli/test/lib/upgrade.test.ts returned exactly 100 displayed matches, with additional matches available.