import { LaunchContext, LaunchState, LaunchStateId } from './LaunchState'; export class FailedState implements LaunchState { readonly id = LaunchStateId.Failed; async enter(context: LaunchContext): Promise { console.error('[LaunchStateMachine] bootstrap failed', context.error); context.progress({ state: this.id, title: '初始化失败,请重试' }); return null; } }