(installed: string | null, expected: string, distro = "Debian")
| 3 | } |
| 4 | |
| 5 | export function expectOpencodeVersion(installed: string | null, expected: string, distro = "Debian") { |
| 6 | if (installed === expected) return |
| 7 | throw new Error( |
| 8 | `OpenCode update finished but ${distro} still reports ${installed ?? "no version"}; expected ${expected}`, |
| 9 | ) |
| 10 | } |
| 11 | |
| 12 | export const pendingRestartAfterWslInstall = (runtime: { available: boolean }) => !runtime.available |
| 13 |
no outgoing calls
no test coverage detected