MCPcopy Create free account
hub / github.com/heygen-com/hyperframes / checkSkillsForUpdate

Function checkSkillsForUpdate

packages/cli/src/utils/skillsUpdateCheck.ts:62–69  ·  view source on GitHub ↗
(force?: boolean)

Source from the content-addressed store, hash-verified

60 * @param force - skip the cache and check now
61 */
62export 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. */
72function skillsNoticeText(meta: SkillsUpdateMeta): string | null {

Callers

nothing calls this directly

Calls 5

cacheFreshFunction · 0.85
readConfigFunction · 0.85
getSkillsUpdateMetaFunction · 0.85
refreshSkillsCacheFunction · 0.85
nowMethod · 0.80

Tested by

no test coverage detected