feat(app): 移除内置agents并添加CORS支持和技能上传优化

移除了agents/registry.json中的所有内置agents配置,将agents数组清空。
为web应用添加了CORS中间件支持,允许指定的前端地址跨域访问。
重构了技能上传功能,增加了LLM重写机制,自动规范化上传的技能格式。
新增了工具名称提取逻辑,从技能正文中自动识别Required Tools段落。
更新了技能学习候选者和草稿的载荷结构,添加评估报告统计信息。
修改了意图路由技能的说明,改进任务状态管理逻辑。
This commit is contained in:
2026-06-12 13:25:20 +08:00
parent fc9fd93c36
commit 8aeb97a5fc
76 changed files with 3382 additions and 553 deletions

View File

@ -1,12 +1,18 @@
{
"change_reason": "Initial skill for utility and delegation tools",
"content_hash": "placeholder",
"content_hash": "1f3f6db4ad2844ba1587531a17b2e044e11742c20d7d0bc5efdc2358f9c27b9b",
"created_at": "2026-05-26T00:00:00.000000+00:00",
"created_by": "system",
"frontmatter": {
"description": "辅助工具集包括任务分解Todo、任务委托Delegate、子 Agent 生成Spawn、消息发送和需求澄清。",
"name": "utility-tools",
"tools": ["clarify", "delegate", "send_message", "spawn", "todo"]
"tools": [
"clarify",
"delegate",
"send_message",
"spawn",
"todo"
]
},
"parent_version": null,
"provenance": {
@ -15,8 +21,14 @@
},
"review_state": "published",
"skill_name": "utility-tools",
"summary": "Utility Tools — 任务管理、委托和协作辅助工具集",
"summary_hash": "placeholder",
"tool_hints": ["clarify", "delegate", "send_message", "spawn", "todo"],
"summary": "# Utility Tools ## Overview 辅助工具集包括任务分解Todo、任务委托Delegate、子 Agent 生成Spawn、消息发送和需求澄清。",
"summary_hash": "7c24c7da7f8d53bc57475f177fb1aea3c33b0d012baa578d6438befee4db2045",
"tool_hints": [
"clarify",
"delegate",
"send_message",
"spawn",
"todo"
],
"version": "v0001"
}
}