diff --git a/.claude/settings.local.json b/.claude/settings.local.json deleted file mode 100644 index dce2649f..00000000 --- a/.claude/settings.local.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "permissions": { - "allow": [ - "mcp__serena__read_file", - "mcp__serena__activate_project", - "mcp__serena__check_onboarding_performed", - "Bash(npm start)", - "mcp__serena__search_for_pattern", - "mcp__serena__replace_regex", - "mcp__serena__list_dir", - "mcp__serena__create_text_file", - "Bash(rm:*)", - "Bash(npm run build:*)", - "mcp__serena__execute_shell_command", - "Bash(pkill:*)", - "Bash(mkdir:*)", - "Bash(cp:*)", - "Bash(git checkout:*)", - "mcp__serena__replace_symbol_body", - "mcp__serena__think_about_task_adherence", - "mcp__serena__onboarding", - "mcp__serena__write_memory", - "Bash(lsof:*)", - "Bash(PORT=3001 npm start)", - "Bash(kill:*)", - "Bash(python3:*)", - "mcp__serena__find_file", - "mcp__serena__think_about_whether_you_are_done", - "mcp__serena__read_memory", - "Bash(npx tsc:*)", - "mcp__serena__get_symbols_overview", - "Bash(grep:*)", - "Bash(find:*)", - "Bash(timeout 10 npm start)", - "Bash(npm run dev:*)", - "Bash(npm install:*)", - "Bash(npm uninstall:*)", - "Bash(git init:*)", - "Bash(git remote add:*)", - "Bash(git add:*)", - "Bash(git commit -m \"$(cat <<''EOF''\nfeat: 初始化多Agent协作系统项目并添加直播回放功能\n\n- 添加导航栏组件及直播回放按钮\n- 实现视频播放模态框\n- 配置赛博朋克风格主题\n- 添加课程首页和课程页面\n\n🤖 Generated with [Claude Code](https://claude.com/claude-code)\n\nCo-Authored-By: Claude \nEOF\n)\")" - ], - "deny": [] - } -} diff --git a/.gitignore b/.gitignore index 31544ace..10394eb7 100644 --- a/.gitignore +++ b/.gitignore @@ -33,3 +33,8 @@ lerna-debug.log* # Temporary files *.tmp .cache/ + +# Yoyo, Serena and Claude +.yoyo/ +.serena/ +.claude/ diff --git a/.serena/.gitignore b/.serena/.gitignore deleted file mode 100644 index 14d86ad6..00000000 --- a/.serena/.gitignore +++ /dev/null @@ -1 +0,0 @@ -/cache diff --git a/.serena/memories/code_style_conventions.md b/.serena/memories/code_style_conventions.md deleted file mode 100644 index 0fc37410..00000000 --- a/.serena/memories/code_style_conventions.md +++ /dev/null @@ -1,60 +0,0 @@ -# 代码风格与约定 - -## TypeScript风格 -- 使用TypeScript严格模式 -- 接口和类型定义使用PascalCase -- 变量和函数使用camelCase -- 常量使用UPPER_SNAKE_CASE - -## React约定 -- 组件使用PascalCase命名 -- Props接口以Props结尾 (如: HomePageProps) -- 使用函数式组件和Hooks -- 导出组件使用export default - -## 文件命名 -- 组件文件: PascalCase.tsx (如: HomePage.tsx) -- 工具文件: camelCase.ts -- 样式文件: kebab-case.css - -## CSS/Tailwind约定 -- 优先使用Tailwind CSS类 -- 自定义CSS使用CSS变量 -- 颜色变量遵循命名模式: --bg-*, --surf-*, --accent-* -- 响应式设计: mobile-first - -## 项目特定约定 -- 课程相关页面放在 pages/course/ 目录 -- 图片资源放在 src/assets/images/ -- 组件props解构使用 -- 动画使用Framer Motion库 - -## 导入顺序 -1. React相关导入 -2. 第三方库导入 -3. 本地组件导入 -4. 类型导入 -5. 样式导入 - -## 组件结构 -```tsx -import React from 'react'; -import { motion } from 'framer-motion'; - -interface ComponentProps { - // props定义 -} - -const Component: React.FC = ({ prop1, prop2 }) => { - // hooks - // 事件处理函数 - // 渲染逻辑 - return ( - - {/* JSX */} - - ); -}; - -export default Component; -``` \ No newline at end of file diff --git a/.serena/memories/project_overview.md b/.serena/memories/project_overview.md deleted file mode 100644 index 3d41debe..00000000 --- a/.serena/memories/project_overview.md +++ /dev/null @@ -1,40 +0,0 @@ -# 项目概述 - -## 项目目的 -这是一个多Agent协作系统的教学网站项目,原本是PLC教学网站,现已转换为专注于IT运维风格的多Agent系统课程教学平台。 - -## 技术栈 -- **前端框架**: React 18.2.0 + TypeScript 4.9.5 -- **路由**: React Router DOM 6.20.1 -- **动画库**: Framer Motion 12.19.2 -- **拖拽库**: @dnd-kit/core 6.3.1, react-beautiful-dnd 13.1.1 -- **样式**: Tailwind CSS 3.3.6 + 自定义CSS -- **构建工具**: React Scripts 5.0.1 - -## 项目结构 -- `src/` - - `components/` - 可复用组件 - - `pages/` - 页面组件 - - `course/` - 课程相关页面 - - `assets/` - 静态资源 -- `public/` - 公共静态资源 -- `tailwind.config.js` - Tailwind配置 -- `tsconfig.json` - TypeScript配置 - -## 课程内容 -基于课程讲义.md,包含7大模块: -1. 多Agent系统基础 -2. Agent角色设计 -3. Agent间通信机制 -4. 协作与任务管理 -5. 中央协调与管理 -6. 实际应用架构 -7. A2A协议案例讲解 - -## 设计风格 -- IT运维风格(IT风) -- 深蓝主色调 (#0f172a) -- 青色辅助色 (#0891b2) -- 绿色强调色 (#10b981) -- 玻璃拟态效果 -- 流畅动画交互 \ No newline at end of file diff --git a/.serena/memories/suggested_commands.md b/.serena/memories/suggested_commands.md deleted file mode 100644 index c6f4ee7a..00000000 --- a/.serena/memories/suggested_commands.md +++ /dev/null @@ -1,57 +0,0 @@ -# 建议命令 - -## 开发相关命令 - -### 启动开发服务器 -```bash -npm start -``` - -### 构建生产版本 -```bash -npm run build -``` - -### 运行测试 -```bash -npm run test -``` - -### 安装依赖 -```bash -npm install -``` - -## Git操作 -```bash -git status -git add . -git commit -m "提交信息" -git push -``` - -## 文件查看 -```bash -ls -la # 查看目录内容 -find . -name "*.tsx" # 查找TypeScript文件 -grep -r "搜索内容" src/ # 在src目录搜索内容 -``` - -## 系统工具 (Darwin) -```bash -open . # 在Finder中打开当前目录 -which node # 查看node路径 -ps aux | grep node # 查看node进程 -kill -9 # 结束进程 -``` - -## 开发工具 -- VS Code: 推荐的IDE -- Chrome DevTools: 调试工具 -- React DevTools: React调试扩展 - -## 注意事项 -- 系统为Darwin (macOS) -- 使用npm作为包管理器 -- TypeScript配置严格模式 -- 支持ES6+语法 \ No newline at end of file diff --git a/.serena/memories/task_completion_checklist.md b/.serena/memories/task_completion_checklist.md deleted file mode 100644 index d4ad947f..00000000 --- a/.serena/memories/task_completion_checklist.md +++ /dev/null @@ -1,49 +0,0 @@ -# 任务完成检查清单 - -## 编码任务完成后必须执行 - -### 1. 代码质量检查 -- [ ] 检查TypeScript类型错误 -- [ ] 确保所有组件正确导入导出 -- [ ] 检查控制台错误和警告 -- [ ] 验证响应式设计在不同设备上的表现 - -### 2. 功能测试 -- [ ] 测试新功能的基本操作 -- [ ] 验证路由跳转正常 -- [ ] 测试动画效果流畅 -- [ ] 检查交互元素响应性 - -### 3. 样式检查 -- [ ] 验证IT运维风格主题一致性 -- [ ] 检查颜色变量使用正确 -- [ ] 确保玻璃拟态效果正常 -- [ ] 验证Tailwind类名正确应用 - -### 4. 性能检查 -- [ ] 检查页面加载速度 -- [ ] 验证图片资源优化 -- [ ] 确保不存在内存泄漏 - -### 5. 浏览器兼容性 -- [ ] Chrome测试 -- [ ] Safari测试 (Darwin系统) -- [ ] 移动端Safari测试 - -## 课程内容任务特定检查 - -### 课程页面创建 -- [ ] 页面结构符合课程讲义.md内容 -- [ ] 包含所有必要的学习目标 -- [ ] 交互式元素功能正常 -- [ ] 导航链接正确配置 - -### 样式更新任务 -- [ ] 色彩搭配符合IT运维风格 -- [ ] 动画缓动效果自然 -- [ ] 响应式布局适配各设备 - -## 提交前最终检查 -- [ ] 运行 npm start 确保应用启动正常 -- [ ] 快速浏览所有页面确保无明显问题 -- [ ] 检查git状态,确保没有遗漏文件 \ No newline at end of file diff --git a/.serena/project.yml b/.serena/project.yml deleted file mode 100644 index 026c0bd2..00000000 --- a/.serena/project.yml +++ /dev/null @@ -1,68 +0,0 @@ -# language of the project (csharp, python, rust, java, typescript, go, cpp, or ruby) -# * For C, use cpp -# * For JavaScript, use typescript -# Special requirements: -# * csharp: Requires the presence of a .sln file in the project folder. -language: typescript - -# whether to use the project's gitignore file to ignore files -# Added on 2025-04-07 -ignore_all_files_in_gitignore: true -# list of additional paths to ignore -# same syntax as gitignore, so you can use * and ** -# Was previously called `ignored_dirs`, please update your config if you are using that. -# Added (renamed)on 2025-04-07 -ignored_paths: [] - -# whether the project is in read-only mode -# If set to true, all editing tools will be disabled and attempts to use them will result in an error -# Added on 2025-04-18 -read_only: false - - -# list of tool names to exclude. We recommend not excluding any tools, see the readme for more details. -# Below is the complete list of tools for convenience. -# To make sure you have the latest list of tools, and to view their descriptions, -# execute `uv run scripts/print_tool_overview.py`. -# -# * `activate_project`: Activates a project by name. -# * `check_onboarding_performed`: Checks whether project onboarding was already performed. -# * `create_text_file`: Creates/overwrites a file in the project directory. -# * `delete_lines`: Deletes a range of lines within a file. -# * `delete_memory`: Deletes a memory from Serena's project-specific memory store. -# * `execute_shell_command`: Executes a shell command. -# * `find_referencing_code_snippets`: Finds code snippets in which the symbol at the given location is referenced. -# * `find_referencing_symbols`: Finds symbols that reference the symbol at the given location (optionally filtered by type). -# * `find_symbol`: Performs a global (or local) search for symbols with/containing a given name/substring (optionally filtered by type). -# * `get_current_config`: Prints the current configuration of the agent, including the active and available projects, tools, contexts, and modes. -# * `get_symbols_overview`: Gets an overview of the top-level symbols defined in a given file or directory. -# * `initial_instructions`: Gets the initial instructions for the current project. -# Should only be used in settings where the system prompt cannot be set, -# e.g. in clients you have no control over, like Claude Desktop. -# * `insert_after_symbol`: Inserts content after the end of the definition of a given symbol. -# * `insert_at_line`: Inserts content at a given line in a file. -# * `insert_before_symbol`: Inserts content before the beginning of the definition of a given symbol. -# * `list_dir`: Lists files and directories in the given directory (optionally with recursion). -# * `list_memories`: Lists memories in Serena's project-specific memory store. -# * `onboarding`: Performs onboarding (identifying the project structure and essential tasks, e.g. for testing or building). -# * `prepare_for_new_conversation`: Provides instructions for preparing for a new conversation (in order to continue with the necessary context). -# * `read_file`: Reads a file within the project directory. -# * `read_memory`: Reads the memory with the given name from Serena's project-specific memory store. -# * `remove_project`: Removes a project from the Serena configuration. -# * `replace_lines`: Replaces a range of lines within a file with new content. -# * `replace_symbol_body`: Replaces the full definition of a symbol. -# * `restart_language_server`: Restarts the language server, may be necessary when edits not through Serena happen. -# * `search_for_pattern`: Performs a search for a pattern in the project. -# * `summarize_changes`: Provides instructions for summarizing the changes made to the codebase. -# * `switch_modes`: Activates modes by providing a list of their names -# * `think_about_collected_information`: Thinking tool for pondering the completeness of collected information. -# * `think_about_task_adherence`: Thinking tool for determining whether the agent is still on track with the current task. -# * `think_about_whether_you_are_done`: Thinking tool for determining whether the task is truly completed. -# * `write_memory`: Writes a named memory (for future reference) to Serena's project-specific memory store. -excluded_tools: [] - -# initial prompt for the project. It will always be given to the LLM upon activating the project -# (contrary to the memories, which are loaded on demand). -initial_prompt: "" - -project_name: "education_web_外贸业务的核心流程及关键角色" diff --git a/.yoyo/db/snapshot_embeddings.sqlitejs b/.yoyo/db/snapshot_embeddings.sqlitejs deleted file mode 100644 index 823d6e5e..00000000 Binary files a/.yoyo/db/snapshot_embeddings.sqlitejs and /dev/null differ diff --git a/.yoyo/snapshot b/.yoyo/snapshot deleted file mode 160000 index 2a7cdd63..00000000 --- a/.yoyo/snapshot +++ /dev/null @@ -1 +0,0 @@ -Subproject commit 2a7cdd63674a0ed66e8bfaebe9c5b565f9e5d166