chore: align ai stack with openhub weknora

This commit is contained in:
Agent Board
2026-06-28 18:35:56 +08:00
parent 3b0e12455e
commit ee6612028d
22 changed files with 154 additions and 95 deletions
@@ -1,5 +1,7 @@
# 7-47 MNote 公共 capability/plugin 注册表设计 v1
> 2026-06-28 覆盖说明:本文的 Hermes / Reasonix / LightRAG 能力注册口径已退为 legacy 参考。当前能力模型应围绕 OpenHub / opencode / WeKnora,旧 `mnote-knowledge-rag` 与 `mnote_lightrag_bridge` 仅保留兼容映射和迁移对照。
> 状态:process
>
> 目标:把当前分裂的 MNote builtin skill、mnote tool manifest、Hermes plugin、Reasonix wrapper 和 Page AI UI 开关收口为同一个“AI 能力”模型。对用户来说 skill / plugin / tool 都是“授予 AI 的能力”,UI 不应暴露实现层分类;实现层再把一个能力映射到说明书、工具、runtime adapter 和权限策略。本轮只整理 MNote 公共能力;Reasonix / Hermes 自带的 skills/plugins 维持现状,不纳入统一注册表迁移范围。
@@ -72,8 +74,10 @@
执行入口:
- `/api/hermes/tools/mnote/manifest`
- `/api/hermes/tools/mnote/call`
- 当前中性入口:`/api/mnote/tools/manifest`
- 当前中性入口:`/api/mnote/tools/call`
- legacy alias`/api/hermes/tools/mnote/manifest`
- legacy alias`/api/hermes/tools/mnote/call`
- `execute_mnote_tool_call()` 统一做认证、profile 禁用检查、workspace 校验、capabilityScope 校验、写入 guard、audit、idempotency。
问题:
@@ -94,7 +98,7 @@
- 这是 Hermes 用户插件,不在 mnote repo 内。
- `plugin.yaml` 只列出旧批次工具:`mnote_page_get/save/update_title/update_options``mnote_doc_*``mnote_block_*`、artifact 等。
- 没有 `mnote_evidence_*``mnote_index_*`、mindmap、onlyoffice live 等新工具。
- `__init__.py` 手写 Python wrapper,把 Hermes tool call 转发到 `/api/hermes/tools/mnote/call`
- `__init__.py` 手写 Python wrapper,把 Hermes tool call 转发到 legacy `/api/hermes/tools/mnote/call`OpenHub/WeKnora 主线应使用 `/api/mnote/tools/call`
问题: