Frontend: - Add Discord-style 3-column layout (server icons / channel sidebar / chat) - AI Studio design system: new CSS token palette (--room-* vars) - Replace all hardcoded Discord colors with CSS variable tokens - Add RoomSettingsPanel (name, visibility, AI model management) - Settings + Member list panels mutually exclusive (don't overlap) - AI models shown at top of member list with green accent - Fix TS errors: TipTap SuggestionOptions, unused imports, StarterKit options - Remove MentionInput, MentionPopover, old room components (废弃代码清理) Backend: - RoomAiResponse returns model_name from agents.model JOIN - room_ai_list and room_ai_upsert fetch model name for each config - AiConfigData ws-protocol interface updated with model_name Note: RoomSettingsPanel UI still uses shadcn defaults (未完全迁移到AI Studio)
89 lines
2.4 KiB
TypeScript
89 lines
2.4 KiB
TypeScript
// This file is generated automatically by Next.js
|
|
// Do not edit this file manually
|
|
|
|
type AppRoutes = "/" | "/about" | "/docs" | "/homepage" | "/network" | "/network/api" | "/network/rooms" | "/notify" | "/pricing" | "/pricing/enterprise" | "/pricing/faq" | "/search" | "/skills" | "/skills/docs" | "/skills/publish" | "/solutions" | "/solutions/governance" | "/solutions/memory" | "/solutions/rooms"
|
|
type PageRoutes = never
|
|
type LayoutRoutes = "/homepage" | "/notify" | "/project" | "/project/repo" | "/repository" | "/repository/settings" | "/settings" | "/workspace"
|
|
type RedirectRoutes = never
|
|
type RewriteRoutes = never
|
|
type Routes = AppRoutes | PageRoutes | LayoutRoutes | RedirectRoutes | RewriteRoutes
|
|
|
|
|
|
interface ParamMap {
|
|
"/": {}
|
|
"/about": {}
|
|
"/docs": {}
|
|
"/homepage": {}
|
|
"/network": {}
|
|
"/network/api": {}
|
|
"/network/rooms": {}
|
|
"/notify": {}
|
|
"/pricing": {}
|
|
"/pricing/enterprise": {}
|
|
"/pricing/faq": {}
|
|
"/project": {}
|
|
"/project/repo": {}
|
|
"/repository": {}
|
|
"/repository/settings": {}
|
|
"/search": {}
|
|
"/settings": {}
|
|
"/skills": {}
|
|
"/skills/docs": {}
|
|
"/skills/publish": {}
|
|
"/solutions": {}
|
|
"/solutions/governance": {}
|
|
"/solutions/memory": {}
|
|
"/solutions/rooms": {}
|
|
"/workspace": {}
|
|
}
|
|
|
|
|
|
export type ParamsOf<Route extends Routes> = ParamMap[Route]
|
|
|
|
interface LayoutSlotMap {
|
|
"/homepage": never
|
|
"/notify": never
|
|
"/project": never
|
|
"/project/repo": never
|
|
"/repository": never
|
|
"/repository/settings": never
|
|
"/settings": never
|
|
"/workspace": never
|
|
}
|
|
|
|
|
|
export type { AppRoutes, PageRoutes, LayoutRoutes, RedirectRoutes, RewriteRoutes, ParamMap }
|
|
|
|
declare global {
|
|
/**
|
|
* Props for Next.js App Router page components
|
|
* @example
|
|
* ```tsx
|
|
* export default function Page(props: PageProps<'/blog/[slug]'>) {
|
|
* const { slug } = await props.params
|
|
* return <div>Blog post: {slug}</div>
|
|
* }
|
|
* ```
|
|
*/
|
|
interface PageProps<AppRoute extends AppRoutes> {
|
|
params: Promise<ParamMap[AppRoute]>
|
|
searchParams: Promise<Record<string, string | string[] | undefined>>
|
|
}
|
|
|
|
/**
|
|
* Props for Next.js App Router layout components
|
|
* @example
|
|
* ```tsx
|
|
* export default function Layout(props: LayoutProps<'/dashboard'>) {
|
|
* return <div>{props.children}</div>
|
|
* }
|
|
* ```
|
|
*/
|
|
type LayoutProps<LayoutRoute extends LayoutRoutes> = {
|
|
params: Promise<ParamMap[LayoutRoute]>
|
|
children: React.ReactNode
|
|
} & {
|
|
[K in LayoutSlotMap[LayoutRoute]]: React.ReactNode
|
|
}
|
|
}
|