* feat: move startup/auth flow to client loaders and simplify wrappers
- add bootstrap helpers for instance, auth, and workspace startup data
- use SWR preload + cache priming to avoid duplicate startup requests
- move auth/onboarding redirects from render-time wrapper logic to loader-level logic
- add root and workspace client loaders (with hydrate) for preload-before-render
- add workspace shouldRevalidate to rerun heavy bootstrap only when slug changes
- migrate auth-gated routes to clientLoader-based gating
- remove AuthenticationWrapper
- keep instance/workspace wrappers as guard/error layers with non-blocking loading
- align shared SWR fetch keys for instance, user, workspace flags, and AI flags
- minor guard fix in home header for PI initialization
* feat: refactor authentication flow by introducing middleware for client-side routing
- replace createAuthClientLoader with clientMiddleware for various routes
- implement redirect logic for user onboarding and authentication status
- remove deprecated auth client loader file
- enhance workspace redirection logic based on user preferences
- update route configurations to utilize new middleware structure