import { defineConfig } from "vitepress";

export default defineConfig({
  title: "Omnius",
  description: "Local-first agent runtime, REST daemon, sponsor mesh, and AIWG-compatible docs.",
  cleanUrls: true,
  lastUpdated: true,
  srcExclude: [
    "HANDOFF-crl-encoder-decoder-fix.md",
    "concept-relational-language.md",
    "context-management-medium-models-proposal.md",
    "dedup-false-positive-meta-analysis.md",
    "duplicate-calls-root-cause-analysis.md",
    "duplicate-calls-root-cause-deep.md",
    "ephemeral-skill-pack-small-context.md",
    "flowstate.md",
    "memory-integration-analysis.md",
    "model-capability-awareness-and-multimodal-memory-root-fix.md",
    "multimodal-identity-memory-implementation.md",
    "sana-and-video-generation-integration-plan.md",
    "session-diary-llm-training-analysis.md",
    "telegram-dmn-curiosity-outreach-scaffold.md",
    "telegram-mid-horizon-download-loop-handoff.md",
    "telegram-reflection-corpus-integration-plan.md",
    "telegram-unified-tooling-architecture.md",
    "threat-model.md",
    "voice-flow-architecture.md",
    "x402-remote-inference-plan.md",
    "agent-memory/INDEX.md",
    "research/**",
    "work-orders/**",
  ],
  themeConfig: {
    nav: [
      { text: "Guide", link: "/getting-started/install" },
      { text: "REST", link: "/reference/rest-api" },
      { text: "Commands", link: "/reference/slash-commands" },
      { text: "Operations", link: "/operations/security-and-remote-access" },
    ],
    sidebar: [
      {
        text: "Getting Started",
        items: [
          { text: "Install", link: "/getting-started/install" },
          { text: "First Run", link: "/getting-started/first-run" },
          { text: "Model Providers", link: "/getting-started/model-providers" },
        ],
      },
      {
        text: "Guides",
        items: [
          { text: "TUI Workflows", link: "/guides/tui-workflows" },
          { text: "Sponsor And COHERE", link: "/guides/sponsor-and-cohere" },
          { text: "Realtime Conversation", link: "/guides/realtime" },
          { text: "Telegram", link: "/guides/telegram" },
          { text: "Media Generation", link: "/guides/media-generation" },
        ],
      },
      {
        text: "REST API",
        items: [
          { text: "Overview", link: "/rest/INDEX" },
          { text: "Quick Reference", link: "/rest/QUICKREF" },
          { text: "Auth And Scopes", link: "/rest/auth-and-scopes" },
          { text: "Errors, Pagination, ETags", link: "/rest/errors-pagination-etags" },
          { text: "Chat", link: "/rest/endpoints/chat" },
          { text: "Runs", link: "/rest/endpoints/run" },
          { text: "Config", link: "/rest/endpoints/config" },
          { text: "Memory", link: "/rest/endpoints/memory" },
          { text: "Skills", link: "/rest/endpoints/skills" },
          { text: "Tools", link: "/rest/endpoints/tools" },
          { text: "Events", link: "/rest/endpoints/events" },
          { text: "Files", link: "/rest/endpoints/files" },
          { text: "Voice And Vision", link: "/rest/endpoints/voice-vision" },
          { text: "AIWG", link: "/rest/endpoints/aiwg" },
          { text: "AIMS", link: "/rest/endpoints/aims" },
          { text: "Curl Examples", link: "/rest/examples/curl" },
          { text: "OpenAI SDK Examples", link: "/rest/examples/openai-sdk" },
        ],
      },
      {
        text: "Reference",
        items: [
          { text: "REST Inventory", link: "/reference/rest-api" },
          { text: "Slash Commands", link: "/reference/slash-commands" },
          { text: "Configuration", link: "/reference/configuration" },
          { text: "Agent Memory", link: "/agent-memory/" },
        ],
      },
      {
        text: "Operations",
        items: [
          { text: "Security And Remote Access", link: "/operations/security-and-remote-access" },
          { text: "Runtime Hygiene", link: "/operations/runtime-hygiene" },
        ],
      },
      {
        text: "Architecture",
        items: [
          { text: "Overview", link: "/architecture/overview" },
        ],
      },
    ],
    search: {
      provider: "local",
    },
  },
});
