Skip to content

feat: add agent marketplace - #93

Merged
liuxy0551 merged 5 commits into
masterfrom
feat_agent_market
Aug 12, 2026
Merged

feat: add agent marketplace#93
liuxy0551 merged 5 commits into
masterfrom
feat_agent_market

Conversation

@liuxy0551

Copy link
Copy Markdown
Collaborator

背景

Doraemon 新增 Agent 市场,用于统一展示、搜索、导入和管理 Agent。平台负责 Agent 元数据、完整文件快照及展示资源的持久化,不负责在线运行 Agent。

主要改动

后端

  • 新增 agentsagent_filesagent_skills 数据模型及初始化 SQL
  • 新增 Agent 列表、详情、相关推荐、资源读取、ZIP 导入和删除接口
  • 支持从 agent.yaml 解析 Agent 元数据、能力、开场问题、Demo 图片及关联 Skills
  • 支持同版本覆盖、高版本升级、低版本拦截和相同内容检测
  • 校验 ZIP 目录结构、Manifest、文件路径、文件数量、解压大小及图片类型
  • Agent 文件快照写入数据库,Logo、Demo 等资源写入独立持久化目录
  • 相关推荐仅根据公共依赖 Skills 的交集计算,不包含入口 Skill

前端

  • 新增 Agent 市场列表页和详情页
  • 支持关键词搜索、分类筛选、分页、ZIP 导入和覆盖确认
  • Agent 详情包含“概览”“Agent 简介”“Agent 能力”三个页签
  • 展示能力卡片、开场消息、开场问题、Demo、核心工作流和内置 Skills
  • 新增相关 Agent 推荐及“暂无相关 Agent”空状态
  • 删除入口通过本地配置开关控制
  • 调整顶部导航及详情页滚动布局

文档

  • 新增 Agent 市场设计文档
  • 新增 Agent 市场实施计划
  • 补充 Agent 资源持久化目录说明

验证

  • npm run check-types 通过
  • Agent 市场相关 Node.js 测试通过
  • Agent 详情页测试 8/8 通过
  • 目标文件 ESLint 和 Prettier 检查通过

已知问题

执行全量 node --test test/*.test.js 时结果为 162/163,其中既有
persistSkillsForSource - TDD scenarios for web upload 测试存在描述字段断言失败,与本次 Agent 市场改动无关。

liuxy0551 and others added 3 commits August 12, 2026 10:52
…essage

file_path varchar(1000) with utf8mb4 exceeds 3072 byte InnoDB index limit.
Reduced to varchar(512), matching skills_files pattern. Also fixed
delete-then-reupload incorrectly showing "update" success message.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Fix local IP showing ::1 instead of 127.0.0.1
- Add agent marketplace help documentation and screenshots
- Add favicon to docsify and optimize doc images
- Update agent list layout styles and Codex quick use hints

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@liuxy0551 liuxy0551 changed the title Feat agent market feat: add agent marketplace Aug 12, 2026
- Add file size check against maxZipSize in importAgentFile
- Fix test 9: CSS selector targets span:first-child, not parent
- Fix test 12: onClick spans multiple lines in JSX; remove
  over-broad negative background assertion

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@liuxy0551
liuxy0551 merged commit ac7640a into master Aug 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants