feat(FN-2663): add cached update-check setting, APIs, and banner

- Add global updateCheckEnabled setting to core schema/types and wire dashboard command to cache update checks in the CLI
- Implement dashboard server update-check cache module plus REST routes for status and refresh behavior
- Add dashboard client hook, legacy API helpers, and UpdateAvailableBanner UI to show cached CLI update notices
- Cover update-check server routes, hook behavior, banner rendering, and route registration with focused tests
- Document update-check configuration and API behavior in architecture and settings reference docs
This commit is contained in:
Fusion
2026-04-27 01:40:07 -07:00
committed by gsxdsm
parent 1cd40e3592
commit acbd6580b3
18 changed files with 827 additions and 0 deletions

View File

@@ -29,6 +29,7 @@ export const DEFAULT_GLOBAL_SETTINGS = {
favoriteProviders: undefined,
favoriteModels: undefined,
openrouterModelSync: true,
updateCheckEnabled: true,
modelOnboardingComplete: undefined,
useClaudeCli: undefined,
// Global baseline lanes for per-role model selection

View File

@@ -1089,6 +1089,9 @@ export interface GlobalSettings {
* the OpenRouter API at startup so the model picker shows all available
* OpenRouter models (not just the static built-in list). Default: true. */
openrouterModelSync?: boolean;
/** When true (default), checks npm daily for new versions of @runfusion/fusion
* and shows update notices in the CLI and dashboard. */
updateCheckEnabled?: boolean;
/** When true, indicates the user has completed the AI model onboarding flow
* (connected at least one provider and selected a default model). When
* false/undefined, the dashboard will auto-open the onboarding modal.