(force?: boolean)
| 60 | * @param force - skip the cache and check now |
| 61 | */ |
| 62 | export async function checkSkillsForUpdate(force?: boolean): Promise<SkillsUpdateMeta> { |
| 63 | if (!force && cacheFresh(readConfig().lastSkillsCheck, Date.now())) return getSkillsUpdateMeta(); |
| 64 | try { |
| 65 | return await refreshSkillsCache(); |
| 66 | } catch { |
| 67 | return getSkillsUpdateMeta(); |
| 68 | } |
| 69 | } |
| 70 | |
| 71 | /** The stale-skills nudge text, or null when nothing is outdated or missing. */ |
| 72 | function skillsNoticeText(meta: SkillsUpdateMeta): string | null { |
nothing calls this directly
no test coverage detected