The agent that grows with you
Python aiai-agentai-agentsanthropicchatgptclaudeclaude-codecodexhermeshermes-agentllmnous-researchopenai
/** Presentation for an install offer or an already-selected local runtime. */
export type LocalCardState = 'none' | 'installed' | 'bundled'
export interface LocalCardPresentation {
/** i18n key into `t.install` for the card title. */
title: 'installLocalTitle' | 'useLocalTitle'
/** i18n key into `t.install` for the card body. */
desc: 'installLocalDesc' | 'useLocalDesc' | 'bundledLocalDesc'
/** Whether the "Will install to <root>" footer is accurate for this state. */
showInstallTo: boolean
}
export function localCardPresentation(local: LocalCardState | undefined): LocalCardPresentation {
switch (local) {
case 'installed':
return {
title: 'useLocalTitle',
desc: 'useLocalDesc',
showInstallTo: false
}
case 'bundled':
return {
title: 'useLocalTitle',
desc: 'bundledLocalDesc',
showInstallTo: false
}
case 'none':
default:
return {
title: 'installLocalTitle',
desc: 'installLocalDesc',
showInstallTo: true
}
}
}