AI-powered virtual executive team — a single coherent executive persona backed by 8 specialist agents (FastAPI + Next.js).
import type { Metadata, Viewport } from "next";
import { Bricolage_Grotesque, Geist } from "next/font/google";
import { connection } from "next/server";
import AuthProvider from "@/components/AuthProvider";
import EmbedProvider from "@/components/embed/EmbedProvider";
import { ExecutiveStatusProvider } from "@/components/executive/ExecutiveStatusContext";
import { SessionsProvider } from "@/components/sessions/SessionsContext";
import AppShell from "@/components/shell/AppShell";
import { WorkspaceProvider } from "@/components/workspace/WorkspaceContext";
import { HOST_ORIGINS } from "@/lib/hostConfig";
import packageJson from "../../package.json";
import "./globals.css";
// Geist, self-hosted by next/font at build time: no request to Google from
// the browser, and no layout shift while it loads.
const geist = Geist({ subsets: ["latin"], variable: "--font-sans", display: "swap" });
// The brand face: the Open Executive name and feature names (FeatureName).
const bricolage = Bricolage_Grotesque({
subsets: ["latin"],
weight: ["700", "800"],
variable: "--font-display",
display: "swap",
});
export const metadata: Metadata = {
title: "Open Executive",
description: "Your AI-powered virtual executive team",
};
// `viewport-fit=cover` lets the page reach under the iPhone notch and home
// indicator; the mobile bottom bar pads itself by the safe-area inset so its
// buttons stay clear of the indicator.
export const viewport: Viewport = {
width: "device-width",
initialScale: 1,
viewportFit: "cover",
};
export default async function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
// Every page renders on request, never ahead of time: each response's
// scripts carry that response's nonce (lib/csp.ts, src/middleware.ts), and
// a page built at build time would have none, so the policy would stop it.
await connection();
return (
<html lang="en" className={`h-full ${geist.variable} ${bricolage.variable}`}>
<body className="h-full antialiased bg-surface text-fg">
<AuthProvider>
<EmbedProvider hostOrigins={[...HOST_ORIGINS.origins]} version={packageJson.version}>
<SessionsProvider>
<ExecutiveStatusProvider>
<WorkspaceProvider>
<AppShell>{children}</AppShell>
</WorkspaceProvider>
</ExecutiveStatusProvider>
</SessionsProvider>
</EmbedProvider>
</AuthProvider>
</body>
</html>
);
}