mirror of
https://github.com/HKUDS/DeepTutor.git
synced 2026-12-02 18:00:11 +08:00
The biggest cut since v1.4.0: - Partners: TutorBot renamed and rebuilt on the product chat agent loop — production IM pipeline (retry/dedup/coalescing, per-channel delivery), live streaming on Telegram/Discord/Feishu, new WeCom AI Bot channel (15 connectors), web-chat attachments, soul template library + editor. Automatic non-destructive migration from data/tutorbot/; HTTP API moved to /api/v1/partners. - Chat: single exploring agent loop with native tool calling; Activity header with collapsible thinking/tool trace. - Multi-user: per-user grants v2 (tools/MCP/exec), data/users + data/system layout with automatic migration, runner mounts only the user workspace. - Visualize: inline themed SVG, structured prompts, local validate+repair replacing the LLM review round. - Co-writer Mermaid diagrams + selection RAG/web; file viewer docx/xlsx previews; MinerU cloud parsing backend; office skills on by default; CLI chat renderer rewrite. - Docs rebuilt at deeptutor.info: per-channel setup guides (en+zh), refreshed screenshots. - Pre-commit clean sweep: defusedxml for SVG validation, usedforsecurity flags on content hashes, mypy fixes, types-croniter stub. Release notes: assets/releases/ver1-4-3.md Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
62 lines
1.6 KiB
TypeScript
62 lines
1.6 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Geist, Lora } from "next/font/google";
|
|
import "./globals.css";
|
|
import ThemeScript from "@/components/ThemeScript";
|
|
import ToastViewport from "@/components/common/ToastViewport";
|
|
import { AppShellProvider } from "@/context/AppShellContext";
|
|
import { I18nClientBridge } from "@/i18n/I18nClientBridge";
|
|
|
|
// Geist matches the public site (deeptutor.info) and stays crisp at the
|
|
// small UI sizes the composer/toolbars use, unlike the rounder Jakarta.
|
|
const fontSans = Geist({
|
|
subsets: ["latin"],
|
|
display: "swap",
|
|
variable: "--font-sans",
|
|
});
|
|
|
|
const fontSerif = Lora({
|
|
subsets: ["latin"],
|
|
display: "swap",
|
|
variable: "--font-serif",
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: "DeepTutor",
|
|
description: "Agent-native intelligent learning companion",
|
|
icons: {
|
|
icon: [
|
|
{ url: "/favicon-16x16.png", sizes: "16x16", type: "image/png" },
|
|
{ url: "/favicon-32x32.png", sizes: "32x32", type: "image/png" },
|
|
],
|
|
apple: "/apple-touch-icon.png",
|
|
},
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html
|
|
lang="en"
|
|
suppressHydrationWarning
|
|
data-scroll-behavior="smooth"
|
|
className={`${fontSans.variable} ${fontSerif.variable}`}
|
|
>
|
|
<head>
|
|
<ThemeScript />
|
|
</head>
|
|
<body
|
|
className="font-sans bg-[var(--background)] text-[var(--foreground)]"
|
|
suppressHydrationWarning
|
|
>
|
|
<AppShellProvider>
|
|
<I18nClientBridge>{children}</I18nClientBridge>
|
|
<ToastViewport />
|
|
</AppShellProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|