refactor: organize shared lifecycle and runtime owners (#42792)

This commit is contained in:
Neil
2026-11-15 13:18:34 -08:00
committed by GitHub
parent abb8b7cf7c
commit 69cfecdf70
669 changed files with 833 additions and 2939 deletions
+26
View File
@@ -0,0 +1,26 @@
export type CliInstallState = 'installed' | 'not_installed' | 'stale' | 'conflict' | 'unsupported'
export type CliInstallUnsupportedReason =
| 'platform_not_supported'
| 'launcher_missing'
| 'launch_mode_unavailable'
/** wsl.exe did not answer in time (often a distro still booting); retryable. */
| 'wsl_unreachable'
export type CliInstallMethod = 'symlink' | 'wrapper'
export type CliInstallStatus = {
platform: NodeJS.Platform
commandName: string
commandPath: string | null
pathDirectory: string | null
/** Null means the persisted PATH could not be read, so callers must not offer a mutation. */
pathConfigured: boolean | null
launcherPath: string | null
installMethod: CliInstallMethod | null
supported: boolean
state: CliInstallState
currentTarget: string | null
unsupportedReason: CliInstallUnsupportedReason | null
detail: string | null
}