refactor: 清理 registry 条目 — 移除运行时字段,规范静态数据

Apps(8 个):
- 删除顶层 requirements(已在 install.requirements 中)
- 删除 installStatus、latestVersion(运行时/冗余字段)
- 将 configNeeded 移入 install.configNeeded
- 删除 install 内的 composePath/envTemplatePath

MCP(7 个):
- 删除 protocol/status/origin/transport(由 sync 层按目录类型注入)

Services(5 个):
- 删除 protocol/status/origin(由 sync 层注入)

原则:Registry 只存静态数据,运行时字段由客户端 sync 层注入默认值。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Johnson
2026-02-25 23:02:52 +08:00
parent c729eecdd6
commit 4083ee3f94
20 changed files with 41 additions and 171 deletions

View File

@@ -2,9 +2,6 @@
"id": "baidu-map",
"name": "百度地图 API",
"description": "地理位置服务,支持地理编码、路线规划和 POI 搜索",
"protocol": "http",
"status": "offline",
"origin": "manual",
"endpoint": "https://api.map.baidu.com/v3",
"capabilities": [
"geocoding",

View File

@@ -2,9 +2,6 @@
"id": "deepl-translate",
"name": "DeepL 翻译",
"description": "高质量多语言翻译服务,支持 30+ 语言互译和文档翻译",
"protocol": "http",
"status": "offline",
"origin": "manual",
"endpoint": "https://api-free.deepl.com/v2",
"capabilities": [
"text_translate",

View File

@@ -2,9 +2,6 @@
"id": "dify-rag",
"name": "Dify RAG API",
"description": "Dify 知识库检索服务,支持语义搜索和多知识库联合检索",
"protocol": "http",
"status": "offline",
"origin": "app",
"sourceAppId": "dify",
"sourceAppName": "Dify",
"endpoint": "http://localhost:3000/api/v1/datasets",

View File

@@ -2,9 +2,6 @@
"id": "ragflow-pipeline",
"name": "RagFlow Pipeline",
"description": "深度文档理解 RAG 引擎,支持复杂格式文档解析和多级检索",
"protocol": "http",
"status": "offline",
"origin": "app",
"sourceAppId": "ragflow",
"sourceAppName": "RagFlow",
"endpoint": "http://localhost:9380/api/v1",

View File

@@ -2,9 +2,6 @@
"id": "wecom-webhook",
"name": "企业微信 Webhook",
"description": "企业微信机器人消息通知支持文本、Markdown 和卡片消息",
"protocol": "http",
"status": "offline",
"origin": "manual",
"endpoint": "https://qyapi.weixin.qq.com/cgi-bin/webhook/send",
"capabilities": [
"text_message",