mirror of
https://github.com/stablyai/orca.git
synced 2026-11-19 04:23:57 +00:00
refactor: organize shared lifecycle and runtime owners (#42792)
This commit is contained in:
@@ -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
|
||||
}
|
||||
Reference in New Issue
Block a user