INSERT INTO ias_upgrade_logs ( version, released_at, title, description, changes, modules ) VALUES ( '0.2.22', '2026-07-08T00:00:00+08:00', 'AI API 能力去重', '移除与 HTTP endpoint 一一重复的 AI 专用 API 能力,统一通过 API 文档发现和通用 HTTP API 调用能力执行。', '[ "AI API 能力去重:移除与 HTTP endpoint 一一重复的专用能力,如 web 页面、邮件查询、长期记忆和工具调用说明写入包装。", "新增通用 API 能力 call_http_api,模型先通过 query_api_docs 查询 endpoint_id、参数和请求体,再按 endpoint_id 调用具体内部 HTTP API。", "call_http_api 会根据 /v1/api-docs/{endpoint_id} 校验接口路径和方法,支持 path_params、query、body,并为 context 分组接口自动补当前用户作用域身份和内部鉴权。", "删除不再编译的 AI 专用 API 包装文件,保留 query_tool_call_instruction 作为 query_capabilities 内部读取工具调用说明的实现。", "数据库无结构变化。" ]'::jsonb, '{ "ias-common": "0.1.2", "ias-ai": "0.1.11", "ias-wechat": "0.1.1", "ias-context": "0.1.4", "ias-http": "0.1.13", "ias-mail": "0.1.15", "ias-service": "0.1.19", "ias-main": "0.2.22" }'::jsonb ) ON CONFLICT (version) DO UPDATE SET released_at = EXCLUDED.released_at, title = EXCLUDED.title, description = EXCLUDED.description, changes = EXCLUDED.changes, modules = EXCLUDED.modules;