mirror of
https://git.openapi.site/https://github.com/desirecore/market.git
synced 2026-07-23 05:43:48 +08:00
feat(skills): 智能体 CRUD 四技能改经 ManageAgent 内置工具(实例鉴权适配) (#52)
## 摘要 / Summary ### 中文 主仓库 desirecore#1225 新增 `ManageAgent` 内置工具后,智能体 CRUD 四技能从"调本机 HTTP API/curl"改写为调用该工具(实例鉴权上线后 Agent 直接访问本机 API 会 401): - **create-agent 2.5.0**:`POST /api/agents` → `ManageAgent(action='create', ...)`;补充保留标识(core/desirecore)拒创、config 仅允许 llm 白名单的错误处理 - **delete-agent 2.5.0**:`DELETE /api/agents/:id` → `action='delete'`(工具层强制用户确认);错误处理改为工具拒绝语义(核心智能体/自删/活跃状态);补团队级联说明 - **discover-agent 2.6.0**:`GET /api/agents(/:id)` → `action='list'/'get'` - **update-agent 3.1.0**:结构化字段(name/description/llm/persona/principles)改经 `action='update'`(白名单+schema 校验+字段级合并语义),自由格式文件仍 Read/Write 四技能声明 `market.required_client_version: 10.0.90`,老客户端在市场端被门控禁装。中英双语正文同步改写,i18n source_hash 已重算(validate-i18n.py 通过);manifest 1.2.10。 ### English After desirecore#1225 shipped the `ManageAgent` builtin tool, the four agent-CRUD skills are rewritten from local-HTTP-API/curl instructions to tool calls (direct local API access now returns 401 under instance auth). Each skill declares `market.required_client_version: 10.0.90` so older clients are gated from installing. Both locales are rewritten in sync and i18n source hashes recomputed (validate-i18n.py passes); manifest bumped to 1.2.10. 主仓库回填:合并后将在 desirecore 主仓库执行 `npm run sync-market` 生成新的 defaults/market.zip 并单独提 PR。
This commit is contained in:
@@ -1,5 +1,14 @@
|
||||
# Changelog
|
||||
|
||||
## [3.1.0] - 2026-07-18
|
||||
|
||||
- 结构化字段(name/description/llm/persona/principles)改经进程内内置工具 **ManageAgent** 的 `update` 动作更新(白名单 + schema 校验 + 合并语义),移除对 `agent.json` / `persona.md` / `principles.md` 的直接 Write 指引
|
||||
- 补充合并语义说明:结构化 persona/principles 为字段级合并(省略字段保留原值)、markdown 字符串为整体替换、config.llm 为增量浅合并;非法配置不落盘
|
||||
- 补充确认行为:更新自身免确认、更新其他智能体触发用户确认、核心智能体(desirecore/core)拒绝更新
|
||||
- 补充错误处理:config 非白名单字段被拒、schema 校验失败、部分字段写入失败仅重试失败字段
|
||||
- 记忆、技能、工具等自由格式文件仍用 Read/Write 直接编辑(注意 `_protected-paths.yaml` 受保护路径),版本回滚按目标类型分流(结构化走 ManageAgent、自由文件直接写回)
|
||||
- 声明 `required_client_version: 10.0.90`
|
||||
|
||||
## [3.0.0] - 2026-03-17
|
||||
|
||||
- **Breaking**:从 HTTP API 迁移到 AgentFS 直接文件操作
|
||||
|
||||
Reference in New Issue
Block a user