🤯 LobeHub - Super-Agents on Your Team. Add super-agents to the chats your team already uses.They take on work by themselves and get better every week.
TypeScript agentagent-collaborationagent-harnessloop-engineeringmcppersonal-assistantproactive-agentskillssuper-agenttask-management
import { getServerFeatureFlagsStateFromRuntimeConfig } from '@/server/featureFlags';
/**
* Whether dashboards — the widget / dashboard APIs and the `builtin-dashboard`
* agent tool — are enabled for this user (runtime flag `dashboard`, off by
* default). The scheduler is deliberately not gated: widgets already
* published keep refreshing while the flag is off.
*/
export const isDashboardEnabled = async (userId?: string) =>
(await getServerFeatureFlagsStateFromRuntimeConfig(userId)).enableDashboard === true;