Build and run agents you can see, understand and trust.
Python agentchatbotlarge-language-modelsllmllm-agentmcpmulti-agentmulti-modalreact-agentrealtime-agentvoice-agentvoice-assistant
fix(webui): fix frontend build with current dependencies (#1708)
saisai95d8f61e3cf9
diff --git a/examples/web_ui/frontend/src/components/ui/calendar.tsx b/examples/web_ui/frontend/src/components/ui/calendar.tsxindex 0546839d8..392c72480 100644--- a/examples/web_ui/frontend/src/components/ui/calendar.tsx+++ b/examples/web_ui/frontend/src/components/ui/calendar.tsx@@ -74,7 +74,7 @@ function Calendar({: 'flex items-center gap-1 rounded-(--cell-radius) text-sm [&>svg]:size-3.5 [&>svg]:text-muted-foreground',defaultClassNames.caption_label,),- table: 'w-full border-collapse',+ month_grid: cn('w-full border-collapse', defaultClassNames.month_grid),weekdays: cn('flex', defaultClassNames.weekdays),weekday: cn('flex-1 rounded-(--cell-radius) text-[0.8rem] font-normal text-muted-foreground select-none',diff --git a/examples/web_ui/frontend/src/hooks/useSkills.ts b/examples/web_ui/frontend/src/hooks/useSkills.tsindex db6f153d6..25ed59f2b 100644--- a/examples/web_ui/frontend/src/hooks/useSkills.ts+++ b/examples/web_ui/frontend/src/hooks/useSkills.ts@@ -1,6 +1,6 @@import { useState, useEffect, useCallback } from 'react';-import { skillApi } from '../api';+import { workspaceApi } from '../api';import type { Skill } from '../api';/**@@ -23,7 +23,7 @@ export function useSkills(agentId: string | null, sessionId: string | null) {setLoading(true);setError(null);try {- setSkills(await skillApi.list(agentId, sessionId));+ setSkills(await workspaceApi.skill.list(agentId, sessionId));} catch (e) {setError(e as Error);} finally {@@ -39,7 +39,7 @@ export function useSkills(agentId: string | null, sessionId: string | null) {const add = useCallback(async (skillPath: string) => {if (!agentId || !sessionId) throw new Error('No agent/session selected');- await skillApi.add(agentId, sessionId, { skill_path: skillPath });+ await workspaceApi.skill.add(agentId, sessionId, { skill_path: skillPath });await refetch();},[agentId, sessionId, refetch],@@ -49,7 +49,7 @@ export function useSkills(agentId: string | null, sessionId: string | null) {const remove = useCallback(async (skillName: string) => {if (!agentId || !sessionId) throw new Error('No agent/session selected');- await skillApi.remove(skillName, agentId, sessionId);+ await workspaceApi.skill.remove(skillName, agentId, sessionId);await refetch();},[agentId, sessionId, refetch],diff --git a/examples/web_ui/frontend/tsconfig.app.json b/examples/web_ui/frontend/tsconfig.app.jsonindex 95f078cff..05fe9fa5a 100644--- a/examples/web_ui/frontend/tsconfig.app.json+++ b/examples/web_ui/frontend/tsconfig.app.json@@ -6,6 +6,7 @@"module": "esnext","types": ["vite/client", "vite-plugin-svgr/client"],"skipLibCheck": true,+ "ignoreDeprecations": "6.0",/* Bundler mode */"moduleResolution": "bundler",