List compiled plugins in /api/plugins (WP3-I4) #162

Merged
weichen merged 1 commits from feature/plugins-compiled-listing into main 2026-10-12 01:59:22 +00:00
Owner

applyCompiled 用 recordRegistry 记录每个编译插件成功注册的命令/意图/技能,组合根挂 srv.CompiledPlugins;/api/plugins 在目录条目后合并合成条目(backend.mode=inproc、apiVersion=扩展面版本、provides=注册面),同名目录条目权威不重复。公开扩展面不变。

  • Why: 编译进二进制的插件(generative-ui、RDM 二进制的 rdm)从未出现在管理页插件清单——GET /api/plugins 只扫目录 Host,二进制级能力对运维不可见(用户报告缺口)。
  • Evidence: go test ./internal/app/ ./internal/server/ 本地绿(新增 TestApplyCompiledRecordsSummary、TestListPluginsMergesCompiled);Dev 组合 CI(PR #404 HEAD 上 make test)为权威。
  • Impact: 只影响 /api/plugins 只读清单;不改注册/分发/启停语义。
  • Refs: Dev PR #404;任务卡 .task/feature-plugins-compiled-listing.md(Dev 仓)。
applyCompiled 用 recordRegistry 记录每个编译插件成功注册的命令/意图/技能,组合根挂 srv.CompiledPlugins;/api/plugins 在目录条目后合并合成条目(backend.mode=inproc、apiVersion=扩展面版本、provides=注册面),同名目录条目权威不重复。公开扩展面不变。 - Why: 编译进二进制的插件(generative-ui、RDM 二进制的 rdm)从未出现在管理页插件清单——GET /api/plugins 只扫目录 Host,二进制级能力对运维不可见(用户报告缺口)。 - Evidence: go test ./internal/app/ ./internal/server/ 本地绿(新增 TestApplyCompiledRecordsSummary、TestListPluginsMergesCompiled);Dev 组合 CI(PR #404 HEAD 上 make test)为权威。 - Impact: 只影响 /api/plugins 只读清单;不改注册/分发/启停语义。 - Refs: Dev PR #404;任务卡 .task/feature-plugins-compiled-listing.md(Dev 仓)。
weichen added 1 commit 2026-10-12 01:52:47 +00:00
List compiled plugins in /api/plugins
ci / vet-and-test (pull_request) Successful in 47s
9aa51e5250
Why: compiled-in plugins (generative-ui, rdm) never appeared in the admin
plugins list: GET /api/plugins only scanned the directory host, so binary-
level capabilities were invisible to operators (user-reported gap).
Evidence: go test ./internal/app/ ./internal/server/ green locally incl.
new TestApplyCompiledRecordsSummary and TestListPluginsMergesCompiled;
CI (make test) is authoritative.
Impact: applyCompiled records each plugin's registered commands/intents/
skills into a summary handed to the server; /api/plugins merges synthesized
inproc entries (backend.mode=inproc, apiVersion=extension surface version,
provides from the registration record). Directory entries win on id
collision. No public extension-surface change.
Refs: WP3-I4; task card feature-plugins-compiled-listing.
weichen merged commit d835ad7466 into main 2026-10-12 01:59:22 +00:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: weichen/Agent-System-Backend#162