claude-code-cchui
Go to file
gaoziman e0b82b6257 feat(聊天): 集成视频搜索功能和优化Stream处理
- useStreamChat.ts Hook更新:
  - 新增 SearchVideoData 类型定义
  - StreamMessage 支持 tool_search_videos 事件类型
  - ChatMessage 添加 searchVideos 属性
  - 添加 saveMessageSearchVideos 函数保存视频到数据库
  - pendingSearchVideosRef 临时存储等待messageId的视频
  - 处理视频搜索事件更新UI状态
- chat/route.ts API更新:
  - 创建 createSafeStreamWriter 安全写入器
  - 解决客户端断开连接时的"Controller is already closed"错误
  - 所有 controller.enqueue 替换为 safeWriter.write
  - 添加 tool_search_videos 事件发送逻辑
  - mita_search 工具描述更新支持视频搜索
  - Claude/OpenAI/Codex格式工具定义添加video scope
2025-12-22 22:00:50 +08:00
public Initial commit from Create Next App 2025-12-17 22:19:41 +08:00
src feat(聊天): 集成视频搜索功能和优化Stream处理 2025-12-22 22:00:50 +08:00
.gitignore chore(配置): 更新 .gitignore 忽略规则 2025-12-22 12:55:11 +08:00
drizzle.config.ts feat(数据库): 添加秘塔AI工具配置和搜索图片支持 2025-12-22 12:01:36 +08:00
eslint.config.mjs Initial commit from Create Next App 2025-12-17 22:19:41 +08:00
next.config.ts Initial commit from Create Next App 2025-12-17 22:19:41 +08:00
package.json chore(依赖): 添加用户认证相关依赖 2025-12-19 22:37:30 +08:00
pnpm-lock.yaml chore(依赖): 添加用户认证相关依赖 2025-12-19 22:37:30 +08:00
postcss.config.mjs Initial commit from Create Next App 2025-12-17 22:19:41 +08:00
README.md Initial commit from Create Next App 2025-12-17 22:19:41 +08:00
tsconfig.json Initial commit from Create Next App 2025-12-17 22:19:41 +08:00

This is a Next.js project bootstrapped with create-next-app.

Getting Started

First, run the development server:

npm run dev
# or
yarn dev
# or
pnpm dev
# or
bun dev

Open http://localhost:3000 with your browser to see the result.

You can start editing the page by modifying app/page.tsx. The page auto-updates as you edit the file.

This project uses next/font to automatically optimize and load Geist, a new font family for Vercel.

Learn More

To learn more about Next.js, take a look at the following resources:

You can check out the Next.js GitHub repository - your feedback and contributions are welcome!

Deploy on Vercel

The easiest way to deploy your Next.js app is to use the Vercel Platform from the creators of Next.js.

Check out our Next.js deployment documentation for more details.