An AI-powered search engine with a generative UI
TypeScript generative-aigenerative-uinextjsollamareactsearxngshadcn-uitailwindcsstavilytypescriptupstashvercel-ai-sdk
fix: Apply Prettier formatting and fix import sorting
Yoshiki Miura96bed3350264
diff --git a/.mcp.json b/.mcp.jsonindex 6a14e2d8..42506ec8 100644--- a/.mcp.json+++ b/.mcp.json@@ -3,10 +3,8 @@"next-devtools": {"type": "stdio","command": "npx",- "args": [- "next-devtools-mcp@latest"- ],+ "args": ["next-devtools-mcp@latest"],"env": {}}}-}\ No newline at end of file+}diff --git a/CLAUDE.md b/CLAUDE.mdindex 4dc3de91..c0553824 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -146,6 +146,7 @@ This project supports MCP for enhanced AI assistant integration with Next.js 16.Next.js 16 provides a built-in MCP server at `http://localhost:3000/_next/mcp` when the dev server is running.**Available Tools:**+- `get_project_metadata` - Get project path and dev server URL- `get_errors` - Retrieve current error state (global errors, runtime errors, build errors)- `get_page_metadata` - Get runtime metadata about current page renders@@ -153,6 +154,7 @@ Next.js 16 provides a built-in MCP server at `http://localhost:3000/_next/mcp` w- `get_server_action_by_id` - Locate Server Actions by ID**Usage:**+1. Start the dev server: `bun dev`2. MCP endpoint is automatically available at `/_next/mcp`3. AI assistants can query real-time app state, errors, and logs@@ -160,6 +162,7 @@ Next.js 16 provides a built-in MCP server at `http://localhost:3000/_next/mcp` w### Next DevTools MCP (External)The project includes `.mcp.json` configuration for the Next DevTools MCP package, which provides:+- Next.js knowledge base access- Automated migration tools- Cache optimization guides@@ -169,6 +172,7 @@ The project includes `.mcp.json` configuration for the Next DevTools MCP packageThe `.mcp.json` file in the project root enables team-wide MCP tool sharing. AI assistants like Claude Code will prompt for approval before using project-scoped servers.**Benefits:**+- Real-time access to application internal state- Improved debugging and error diagnostics- Context-aware code suggestionsdiff --git a/components/chat-messages.tsx b/components/chat-messages.tsxindex 22016193..3440c479 100644--- a/components/chat-messages.tsx+++ b/components/chat-messages.tsx@@ -9,9 +9,9 @@ import type { UIDataTypes, UIMessage, UITools } from '@/lib/types/ai'import { cn } from '@/lib/utils'import { extractCitationMapsFromMessages } from '@/lib/utils/citation'+import { AnimatedLogo } from './ui/animated-logo'import { ChatError } from './chat-error'import { RenderMessage } from './render-message'-import { AnimatedLogo } from './ui/animated-logo'// Import section structure interfaceinterface ChatSection {diff --git a/lib/streaming/helpers/persist-stream-results.ts b/lib/streaming/helpers/persist-stream-results.tsindex 443a62a7..57ad1017 100644--- a/lib/streaming/helpers/persist-stream-results.ts+++ b/lib/streaming/helpers/persist-stream-results.ts@@ -62,7 +62,10 @@ export async function persistStreamResults(console.log('Chat already exists (duplicate key), continuing with response save')- perfTime('initial chat persistence - duplicate detected', fallbackStart)+ perfTime(+ 'initial chat persistence - duplicate detected',+ fallbackStart+ )} else {// Other error - log and returnconsole.error('Fallback chat creation failed:', fallbackError)