- add backend APIs for searching and installing registry skills, including origin metadata and concurrency-safe workspace writes - introduce /agent/hub as the default agent entry with marketplace search and install UI - refactor the skills and tools pages with filtering, dialogs, detail views, import validation, and updated i18n - expand backend tests for search, install, import, rollback, and concurrent requests
22 lines
393 B
TypeScript
22 lines
393 B
TypeScript
import {
|
|
Navigate,
|
|
Outlet,
|
|
createFileRoute,
|
|
useRouterState,
|
|
} from "@tanstack/react-router"
|
|
|
|
export const Route = createFileRoute("/agent")({
|
|
component: AgentLayout,
|
|
})
|
|
|
|
function AgentLayout() {
|
|
const pathname = useRouterState({
|
|
select: (state) => state.location.pathname,
|
|
})
|
|
|
|
if (pathname === "/agent") {
|
|
return <Navigate to="/agent/hub" />
|
|
}
|
|
|
|
return <Outlet />
|
|
}
|