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,16 @@
{
"change_reason": "Initial skill for terminal and process management",
"content_hash": "placeholder",
"content_hash": "2d122feb0963e072faa627ca644fff0b39aa7ff3a6a502f8b313bb26d7aee154",
"created_at": "2026-05-26T00:00:00.000000+00:00",
"created_by": "system",
"frontmatter": {
"description": "Shell 命令执行、后台进程管理和 Python 代码执行。支持超时控制和后台运行。",
"name": "terminal-operation",
"tools": ["terminal", "process", "execute_code"]
"tools": [
"terminal",
"process",
"execute_code"
]
},
"parent_version": null,
"provenance": {
@ -15,8 +19,12 @@
},
"review_state": "published",
"skill_name": "terminal-operation",
"summary": "Terminal Operation Shell 命令执行、后台进程管理Python 代码执行",
"summary_hash": "placeholder",
"tool_hints": ["terminal", "process", "execute_code"],
"summary": "# Terminal Operation ## Overview Shell 命令执行、后台进程管理Python 代码执行。支持超时控制和后台运行。",
"summary_hash": "8571fa76cc5e5aa682bd9503d45e91e4f111e6ef9d64152a69efa0462ae04294",
"tool_hints": [
"terminal",
"process",
"execute_code"
],
"version": "v0001"
}
}