import type { AppRouteRecordRaw } from '../types'; import { MENU_GROUP_IDS } from '@/router/constants'; import IconRepository from '@/assets/svg/icon-repository.svg'; const COMPONENTS: AppRouteRecordRaw[] = [ { path: '/agent', name: 'Agent', redirect: 'agent/index', meta: { locale: '扣子智能体', icon: IconRepository, requiresAuth: true, requireLogin: true, roles: ['*'], id: MENU_GROUP_IDS.PROPERTY_ID, }, children: [ { path: 'index', name: 'AgentIndex', component: () => import('@/views/agent/index'), meta: { requiresAuth: false, requireLogin: true, id: MENU_GROUP_IDS.WORK_BENCH_ID, }, }, { path: 'chat', name: 'Chat', component: () => import('@/views/agent/chat'), meta: { hideSidebar: true, requiresAuth: false, requireLogin: true, id: MENU_GROUP_IDS.WORK_BENCH_ID, }, }, ], }, ]; export default COMPONENTS;