export type DashboardOverviewResponse = { appName: string; botStatus: string; dashboardUrl: string; agentMode: string; workspaceDir: string; agentDir: string; enabledChannels: Array<{ id: string; enabled: boolean }>; }; export function buildOverviewResponse(args: { dashboardUrl: string; dashboardStarted: boolean; appName: string; agentMode: string; workspaceDir: string; agentDir: string; enabledChannels: { feishu: boolean; wechat: boolean }; }): DashboardOverviewResponse { const { dashboardUrl, dashboardStarted } = args; return { appName: args.appName, botStatus: dashboardStarted ? "running" : "stopped", dashboardUrl, agentMode: args.agentMode, workspaceDir: args.workspaceDir || "Not set", agentDir: args.agentDir || "Not set", enabledChannels: [ { id: "feishu", enabled: Boolean(args.enabledChannels.feishu) }, { id: "wechat", enabled: Boolean(args.enabledChannels.wechat) }, ], }; }