diff --git a/src/components/Shakespeare/ChatPane.tsx b/src/components/Shakespeare/ChatPane.tsx index 02981826..3bd708bb 100644 --- a/src/components/Shakespeare/ChatPane.tsx +++ b/src/components/Shakespeare/ChatPane.tsx @@ -27,8 +27,6 @@ interface ChatPaneProps { onBuildComplete?: (projectId: string) => void; } - - type AIMessage = (CoreUserMessage | CoreAssistantMessage | CoreToolMessage) & { id: string }; export function ChatPane({ projectId, projectName, onBuildComplete }: ChatPaneProps) { @@ -72,8 +70,6 @@ export function ChatPane({ projectId, projectName, onBuildComplete }: ChatPanePr }); }; - - const runBuild = async () => { if (isBuildLoading) return; @@ -187,8 +183,6 @@ BASE_DOMAIN=nostrdeploy.com`); throw new Error('AI settings not configured'); } - - // Create a custom fetch function for the AI provider const customFetch = async (url: string, options: RequestInit) => { return fetch(url, { @@ -326,9 +320,6 @@ When creating new components or pages, follow the existing patterns in the codeb } catch (error) { console.error('AI chat error:', error); - - - // Handle other types of errors with the original logic const errorMessage: AIMessage = { id: generateId(), role: 'assistant', diff --git a/src/components/ai/AssistantContent.tsx b/src/components/ai/AssistantContent.tsx index 8ae4c549..5e7bc190 100644 --- a/src/components/ai/AssistantContent.tsx +++ b/src/components/ai/AssistantContent.tsx @@ -67,8 +67,6 @@ export const AssistantContent = memo(({ content, toolResults = [] }: AssistantCo return { isError: toolResult.isError || false }; }; - - // Helper function to check and render build action const renderBuildAction = (text: string, key: number | string) => { if (!/(βœ…|❌|⏸️|πŸ”„|πŸŽ‰|πŸŽ‰)/.test(text) || !/(Agent completed successfully|Auto-build|Build|Deploy|Building|Deploying)/i.test(text)) { @@ -118,6 +116,7 @@ export const AssistantContent = memo(({ content, toolResults = [] }: AssistantCo if (buildAction) { return buildAction; } + return (