Dashboard › cli › Distillation
32576ff8-2c12-4124-acfb-061ed6f71f62["lore_tm_v1_8HoNOTdS3cE1HcsUu47bsciiQAllbpfMk66RArFTwkc"]
a84012184c79c2566c7466aa6beda5f767199218.packages/cli/src/lib/errors.ts, UpgradeTransportError is exported at line 622 as a subclass of UpgradeError, and its constructor sets this.name = "UpgradeTransportError" at line 625.packages/cli/src/lib/binary.ts, source-probe options document an optional cancellation signal shared by every source probe at line 306; transport failures are converted to UpgradeTransportError at lines 329–331 and 512–515, including TLS detail via buildTlsErrorDetail(error).packages/cli/src/lib/binary.ts lines 521–536 define response parsing intended to preserve cancellation and transport failures, wrapping applicable failures in UpgradeTransportError.packages/cli/test/lib/binary.test.ts includes tests "preserves an arbitrary external abort reason" at line 458 and "preserves cancellation during body consumption" at line 505.packages/cli/test/lib/binary.test.ts lines 522–528 cover a body-consumption TypeError("terminated") being surfaced with name: "UpgradeTransportError".packages/cli/src/lib/ghcr.ts, UpgradeError and UpgradeTransportError are imported from ./errors.js; line 125 explicitly propagates external abort immediately rather than retrying caller cancellation, and line 137 throws UpgradeTransportError after retry handling.packages/cli/test/lib/ghcr.test.ts includes cancellation tests for the GHCR blob request ("preserves external cancellation during the GHCR blob request", line 466), an arbitrary external cancellation reason (line 481), and cancellation during the redirect request (line 497).packages/cli/test/lib/ghcr.test.ts lines 539–545 cover TypeError("terminated") mapping to an error with name: "UpgradeTransportError".packages/cli/test/lib/upgrade.test.ts includes "preserves an arbitrary abort reason during pagination" at line 246.packages/cli/test/commands/cli/upgrade.test.ts includes a fixture that throws TypeError("terminated") at line 437.