Files
DeepTutor/web/lib/settings-items.ts
Bingxi Zhao (Frank) acd0d9329d feat(capabilities): unify infra, merge Animator into Visualize, split settings UI
Capability infrastructure:
- New capabilities/_shared.emit_capability_result helper fills the
  result envelope (label, summary, payload, render hints, UsageTracker
  totals) consistently across modes.
- StatusI18n loads capability status copy from
  capabilities/prompts/{en,zh}/<name>.yaml; legacy main.yaml strings
  removed.
- New capabilities_settings router + service-config module power the
  /settings/capabilities admin page (live capability list, defaults,
  per-capability overrides).

Visualize + Animator merge:
- Visualize's AnalysisAgent now picks one of six render_types:
  svg / chartjs / mermaid / html (text pipeline) or manim_video /
  manim_image (Manim subprocess). The result envelope carries
  render_type so the frontend delegates to the right viewer.
- math_animator capability is folded behind Visualize; the standalone
  MathAnimatorConfigPanel.tsx is removed. The Animator sidebar entry
  is gone, but Manim outputs and existing records remain unaffected.

Settings UI:
- /settings page split into appearance / capabilities / embedding /
  llm / mcp / memory / search / status / tools tabs with a shared
  layout and items index.
- New /settings/tools page lists chat-mountable tools and surfaces
  availability (e.g. gh for github_query) via a new tools router.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-21 18:06:14 +08:00

102 lines
2.0 KiB
TypeScript

"use client";
import {
Activity,
BookMarked,
Brain,
Database,
Palette,
Plug,
Search,
SlidersHorizontal,
Wrench,
type LucideIcon,
} from "lucide-react";
export type SettingsItemKey =
| "appearance"
| "status"
| "tools"
| "mcp"
| "llm"
| "embedding"
| "search"
| "memory"
| "capabilities";
export interface SettingsItem {
key: SettingsItemKey;
href: string;
label: string;
description: string;
icon: LucideIcon;
}
export const SETTINGS_ITEMS: SettingsItem[] = [
{
key: "appearance",
href: "/settings/appearance",
label: "Appearance",
description: "Theme and language preferences.",
icon: Palette,
},
{
key: "status",
href: "/settings/status",
label: "Status",
description: "Runtime status for backend and configured services.",
icon: Activity,
},
{
key: "llm",
href: "/settings/llm",
label: "LLM",
description: "Language model providers and active profile.",
icon: Brain,
},
{
key: "embedding",
href: "/settings/embedding",
label: "Embedding",
description: "Embedding model providers and dimensions.",
icon: Database,
},
{
key: "search",
href: "/settings/search",
label: "Search",
description: "Web search providers.",
icon: Search,
},
{
key: "capabilities",
href: "/settings/capabilities",
label: "Capabilities",
description: "Per-capability LLM parameters and runtime knobs.",
icon: SlidersHorizontal,
},
{
key: "memory",
href: "/settings/memory",
label: "Memory",
description: "Chunking, LLM-budget, dedup, and reference policies.",
icon: BookMarked,
},
{
key: "mcp",
href: "/settings/mcp",
label: "MCP servers",
description: "External MCP servers (coming soon).",
icon: Plug,
},
{
key: "tools",
href: "/settings/tools",
label: "Tools",
description: "Built-in tools the chat agent can invoke.",
icon: Wrench,
},
];
export const SETTINGS_DEFAULT_HREF = "/settings/appearance";