steps.push({id:'updated',text:'Skills updated',title:'Updated. Reconnect the console to use the new version.',tone:'ok',action:'restart-console'});
}elseif(consoleDead){
steps.push({id:'console-dead',text:'Console stopped',title:'The console stopped, so the dashboard cannot show.',tone:'err',action:'reconnect'});
}
switch(v.kind){
case'too-old':
steps.push({id:'too-old',text:'Console too old for this app',title:'The installed console is too old for the app. Update skills to fix it.',tone:'warn',action:'update'});
break;
case'mismatch':
steps.push({id:'mismatch',text:`Skills v${v.skills}, app v${v.app}`,title:`The installed skills are v${v.skills}, this app is v${v.app}.`,tone:'warn',action:'update'});
steps.push({id:'remains',text:`Still mismatched: skills v${v.skills}, app v${v.app}`,title:`Updated, but the mismatch remains (skills v${v.skills}, app v${v.app}).`,tone:'warn',action:null});
break;
case'failed':
steps.push({id:'failed',text:'Update failed',title:String(v.error||'The update did not finish.'),tone:'err',action:'update'});
break;
case'ahead':
steps.push({id:'ahead',text:`Skills v${v.skills} are newer than this app`,title:`The installed skills are v${v.skills}, newer than this app (v${v.app}). Get the new app.`,tone:'warn',action:null});