picoclaw/web/frontend/src/routes/agent.tsx
wenjie c0464bdd5d
feat(web): add skill marketplace hub and registry install flow (#2246)
- 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
2026-04-01 19:25:31 +08:00

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 />
}