( target: UpdateTarget | null, isInteractive: boolean, source: InstallSource, platform: NodeJS.Platform, )
| 652 | } |
| 653 | |
| 654 | export function decideUpdateAction( |
| 655 | target: UpdateTarget | null, |
| 656 | isInteractive: boolean, |
| 657 | source: InstallSource, |
| 658 | platform: NodeJS.Platform, |
| 659 | ): UpdateDecision { |
| 660 | if (target === null || !isInteractive) return 'none'; |
| 661 | return canAutoInstall(source, platform) ? 'prompt-install' : 'manual-command'; |
| 662 | } |
| 663 | |
| 664 | export async function runUpdatePreflight( |
| 665 | currentVersion: string, |
no test coverage detected