mirror of
https://github.com/stablyai/orca.git
synced 2026-10-08 08:02:32 +00:00
33 lines
770 B
TypeScript
33 lines
770 B
TypeScript
import type { UpdateStatus } from './types'
|
|
|
|
export const REMOTE_SERVER_UPDATE_CAPABILITY = 'updater.remote-control.v1' as const
|
|
|
|
export type RemoteServerUpdateInstallMode =
|
|
| 'interactive'
|
|
| 'supervised-headless-serve'
|
|
| 'unsupported-headless-serve'
|
|
|
|
export type RemoteServerUpdateSupport = {
|
|
installMode: RemoteServerUpdateInstallMode
|
|
automatic: boolean
|
|
reason:
|
|
| 'available'
|
|
| 'manual-service-update-required'
|
|
| 'unpackaged-build'
|
|
| 'updater-unavailable'
|
|
}
|
|
|
|
export type RemoteServerUpdaterSnapshot = {
|
|
appVersion: string
|
|
runtimeId: string
|
|
support: RemoteServerUpdateSupport
|
|
status: UpdateStatus
|
|
}
|
|
|
|
export type RemoteServerUpdateInstallResult = {
|
|
accepted: true
|
|
fromVersion: string
|
|
targetVersion: string
|
|
runtimeId: string
|
|
}
|