Skip to content

armgit / Ix

Public Imported from GitHub
0

Understand any codebase instantly. System intelligence for codebases, built for humans and AI.

fix(upgrade): include compass in cached update notification path

Tanner Kocher498679a7010d
diff --git a/ix-cli/src/cli/commands/upgrade.ts b/ix-cli/src/cli/commands/upgrade.ts
index 4672b333..2237b9ee 100644
--- a/ix-cli/src/cli/commands/upgrade.ts
+++ b/ix-cli/src/cli/commands/upgrade.ts
@@ -117,8 +117,12 @@ export async function checkForUpdate(): Promise<void> {
const cache = readCache();
if (cache && Date.now() - cache.checkedAt < 3600_000) {
- if (isNewer(cache.latest, current)) {
- printUpdateNotice(current, cache.latest);
+ const hasCliUpdate = isNewer(cache.latest, current);
+ const compassCurrent = getCompassVersion();
+ const hasCompassUpdate =
+ cache.compassLatest && isNewer(cache.compassLatest, compassCurrent);
+ if (hasCliUpdate || hasCompassUpdate) {
+ printUpdateNotice(current, cache.latest, !!hasCompassUpdate);
}
return;
}