feat(app): 移除内置agents并添加CORS支持和技能上传优化
移除了agents/registry.json中的所有内置agents配置,将agents数组清空。 为web应用添加了CORS中间件支持,允许指定的前端地址跨域访问。 重构了技能上传功能,增加了LLM重写机制,自动规范化上传的技能格式。 新增了工具名称提取逻辑,从技能正文中自动识别Required Tools段落。 更新了技能学习候选者和草稿的载荷结构,添加评估报告统计信息。 修改了意图路由技能的说明,改进任务状态管理逻辑。
This commit is contained in:
@ -1,12 +1,18 @@
|
||||
{
|
||||
"change_reason": "Initial skill for local filesystem operations",
|
||||
"content_hash": "placeholder",
|
||||
"content_hash": "d462cfff23d0a7c79e5c7319c66952133482193f063150062a93853a489e1160",
|
||||
"created_at": "2026-05-26T00:00:00.000000+00:00",
|
||||
"created_by": "system",
|
||||
"frontmatter": {
|
||||
"description": "本地文件系统读写、搜索和目录操作。支持读取、写入、修改、搜索文件和目录遍历。",
|
||||
"name": "filesystem-operation",
|
||||
"tools": ["read_file", "write_file", "patch_file", "search_files", "list_directory"]
|
||||
"tools": [
|
||||
"read_file",
|
||||
"write_file",
|
||||
"patch_file",
|
||||
"search_files",
|
||||
"list_directory"
|
||||
]
|
||||
},
|
||||
"parent_version": null,
|
||||
"provenance": {
|
||||
@ -15,8 +21,14 @@
|
||||
},
|
||||
"review_state": "published",
|
||||
"skill_name": "filesystem-operation",
|
||||
"summary": "Filesystem Operation — 本地文件系统操作工具集",
|
||||
"summary_hash": "placeholder",
|
||||
"tool_hints": ["read_file", "write_file", "patch_file", "search_files", "list_directory"],
|
||||
"summary": "# Filesystem Operation ## Overview 本地文件系统读写、搜索和目录操作。支持读取、写入、修改、搜索文件和目录遍历。",
|
||||
"summary_hash": "aa53a9010f1f28469aecbdc81e382a2a6ff1a1335cce3abba56ae9a084535605",
|
||||
"tool_hints": [
|
||||
"read_file",
|
||||
"write_file",
|
||||
"patch_file",
|
||||
"search_files",
|
||||
"list_directory"
|
||||
],
|
||||
"version": "v0001"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user