feat: add Skill Hub feature for managing community skills

- Implemented Skill Hub page with tabs for remote, local, and installed skills.
- Added localization support for Chinese in skill-hub.json.
- Created API routes for fetching remote skills, listing local skills, and managing installed skills.
- Developed functionality for installing and uninstalling skills from both remote and local sources.
- Introduced caching mechanism for remote skills and handling updates for installed skills.
This commit is contained in:
catlog22
2026-02-22 19:02:57 +08:00
parent 87634740a3
commit 367fb94718
23 changed files with 2952 additions and 171 deletions

View File

@@ -173,6 +173,10 @@ const routes: RouteObject[] = [
path: 'terminal-dashboard',
element: <TerminalDashboardPage />,
},
{
path: 'skill-hub',
element: <Navigate to="/skills?tab=hub" replace />,
},
// Catch-all route for 404
{
path: '*',
@@ -229,6 +233,7 @@ export const ROUTES = {
GRAPH: '/graph',
TEAMS: '/teams',
TERMINAL_DASHBOARD: '/terminal-dashboard',
SKILL_HUB: '/skill-hub',
} as const;
export type RoutePath = (typeof ROUTES)[keyof typeof ROUTES];