Skip to content

feat(agents): agent 市场迁移为 codex-plugin 元数据并增强技能关联展示 - #96

Merged
liuxy0551 merged 5 commits into
masterfrom
feat_plugins
Sep 9, 2026
Merged

feat(agents): agent 市场迁移为 codex-plugin 元数据并增强技能关联展示#96
liuxy0551 merged 5 commits into
masterfrom
feat_plugins

Conversation

@liuxy0551

Copy link
Copy Markdown
Collaborator

提交的变更类型是

  • 添加新功能
  • 修复 bug
  • 优化代码风格
  • 代码重构
  • 增加单元测试
  • 增加依赖库/工具

相关链接

需求描述和解决方案

描述

  1. 将 Agent 市场元数据契约由旧 agent.yaml 全面迁移为 codex-plugin 规范(.codex-plugin/plugin.json)。
  2. 清理冗余字段(demo_images、entrypoint 相关字段)及历史编排逻辑。
  3. 详情页强化 Skills 模块展示,恢复相关 Agent 推荐,并优化布局与功能标签展示。

解决方案

  1. 元数据规范迁移
    • 导入解析从 .codex-plugin/plugin.json 读取元数据,严格校验双宿主 manifest 及 prompt 限制。
    • Logo 从包内 assets/logo.png 读取落盘,前端回退首字母占位。
    • 清理数据表与模型冗余字段,移除 agent_skills 旧编排模型与相关路由。
  2. Skills 模块与推荐恢复
    • 新增 agent_skills 关联持久化表,导入时解析包内 SKILL.md 落库。
    • 详情接口返回 skills 并与 Skill 市场关联匹配收录状态。
    • 详情页 Skills 模块卡片对齐市场卡片样式,支持新标签页跳转。
    • 基于共同技能重叠度推荐「相关 Agent」。
  3. UI 与展示优化
    • 合并功能概览与关键词,关键词移至顶部 hero 区域。
    • 详情页功能标签改为纯文本逗号分隔,保持界面紧凑整洁。

自查清单

  • 代码遵循这个项目的风格指南
  • 对代码进行了自我审查
  • 已经在难以理解的代码处做了相关注释
  • 更改不会产生新的警告
  • 任何依赖更改都已合并并发布在下游模块中

liuxy0551 and others added 5 commits September 7, 2026 10:40
- 导入从 .codex-plugin/plugin.json 读取元数据,去掉 agent.yaml
- logo 从包内 assets/logo.png 读取落盘,前端回退首字母占位
- 删除 demo_images 列、entrypoint_host/type/name/ref 列、agent_skills 表
- 删除 demo gallery / 内置 Skills / 依赖 Skills 前端展示
- 移除 agent_skill 模型与 entrypoint 编排逻辑

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- 新增 agent_skills 持久化关联表,导入时解析包内 SKILL.md 落库
- 详情接口返回 skills 并匹配 skill 市场判定收录状态
- 详情页 Skills 模块与 master「依赖 Skills」网格卡片样式对齐,点击新标签页跳转
- 恢复「相关 Agent」模块,基于共同技能重叠推荐
- 合并功能概览与关键词,关键词移至顶部 hero

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
- 启动存储时兼容检查 agent_skills 表,处理历史 relation_type 非空约束
- deleteAgent 事务中补充清理 agent_skills 关联数据
- getRelatedAgents 改为基于共同技能过滤的定向查询,避免全表扫描
- parseAgentZip 过滤 .codex-plugin/assets 避免二进制图片存入快照文件
- 修复 controller 上传临时文件遍历清理
- 移除注释结尾中文句号
- 补齐相关功能单元测试
@liuxy0551
liuxy0551 merged commit ddf2cca into master Sep 9, 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.

1 participant