Skip to content

Evenfire is an intelligence layer platform for running LLM agents that take real actions, on your infrastructure

TypeScript
3.6 KB
Raw Blame
import { IconHardDrive } from '@components/icons'
import { CONTROL_ROUTES } from '@constants/routes'
import {
  IconAdministrativeTrace,
  IconBroadcast,
  IconCable,
  IconFolder,
  IconInfrastructureTrace,
  IconKey,
  IconLlmPrices,
  IconModels,
  IconOutputs,
  IconRobot,
  IconRunReplay,
  IconSettings,
  IconShield,
  IconStore,
  IconTokenBudgets,
  IconTraceDashboard,
  IconUsage,
  IconUsageHistory,
  IconUsers,
  IconWorkflow,
} from './icons'
import type { SidebarItem, SidebarTab } from './types'

export const SIDEBAR_TABS: Record<SidebarTab, SidebarItem> = {
  hosts: { label: 'Agents', href: CONTROL_ROUTES.agents.root, icon: <IconRobot /> },
  'mcp-servers': {
    label: 'Installed Connectors',
    href: CONTROL_ROUTES.connectors.root,
    icon: <IconCable />,
  },
  guardrails: {
    label: 'Installed Guardrails',
    href: CONTROL_ROUTES.guardrails.root,
    icon: <IconShield />,
  },
  cost: {
    label: 'Cost & Usage',
    href: CONTROL_ROUTES.costAndUsage.root,
    icon: <IconUsage />,
    children: [
      {
        label: 'Usage',
        href: CONTROL_ROUTES.costAndUsage.usage,
        icon: <IconUsageHistory />,
      },
      {
        label: 'Token Budgets',
        href: CONTROL_ROUTES.costAndUsage.tokenBudgets,
        icon: <IconTokenBudgets />,
      },
      {
        label: 'LLM Prices',
        href: CONTROL_ROUTES.costAndUsage.llmPrices,
        icon: <IconLlmPrices />,
      },
    ],
  },
  directories: {
    label: 'Files',
    href: CONTROL_ROUTES.agentFiles.root,
    icon: <IconFolder />,
    children: [
      {
        label: 'EvenDrive',
        href: CONTROL_ROUTES.globalFileSystem,
        icon: <IconHardDrive />,
      },
      {
        label: 'Agent Outputs',
        href: CONTROL_ROUTES.agentOutputs.root,
        icon: <IconOutputs />,
        matchPath: CONTROL_ROUTES.agentOutputs.base,
      },
    ],
  },
  'communication-channels': {
    label: 'External Channels',
    href: CONTROL_ROUTES.externalChannels.root,
    icon: <IconBroadcast />,
  },
  'llm-models': {
    label: 'LLM Models',
    href: CONTROL_ROUTES.llmModels.root,
    icon: <IconModels />,
  },
  'registry-catalog': {
    label: 'Marketplace',
    href: CONTROL_ROUTES.marketplace.connectors,
    icon: <IconStore />,
  },
  'workflow-recipes': {
    label: 'Installed Plugins',
    href: CONTROL_ROUTES.plugins.root,
    icon: <IconWorkflow />,
  },
  'llm-secrets': { label: 'Secrets', href: CONTROL_ROUTES.secrets.llm, icon: <IconKey /> },
  traces: {
    label: 'Traces',
    href: CONTROL_ROUTES.traces.root,
    icon: <IconWorkflow />,
    hidden: true,
    children: [
      {
        label: 'Administrative',
        href: CONTROL_ROUTES.traces.administrative,
        icon: <IconAdministrativeTrace />,
      },
      {
        label: 'Dashboard',
        href: CONTROL_ROUTES.traces.operations,
        icon: <IconTraceDashboard />,
      },
      {
        label: 'Infrastructure',
        href: CONTROL_ROUTES.traces.infrastructure,
        icon: <IconInfrastructureTrace />,
      },
      {
        label: 'Run replay',
        href: CONTROL_ROUTES.traces.root,
        icon: <IconRunReplay />,
      },
    ],
  },
  'profile-admin': {
    label: 'Users & Teams',
    href: CONTROL_ROUTES.usersAndTeams.root,
    icon: <IconUsers />,
  },
  settings: { label: 'Settings', href: CONTROL_ROUTES.settings.ui, icon: <IconSettings /> },
}

export const SIDEBAR_TAB_ORDER: SidebarTab[] = [
  'profile-admin',
  'hosts',
  'registry-catalog',
  'mcp-servers',
  'workflow-recipes',
  'guardrails',
  'directories',
  'communication-channels',
  'llm-models',
  'llm-secrets',
  'cost',
  'traces',
  'settings',
]