Render compiled plugin entries in the admin list (WP3-I4) #60

Merged
weichen merged 8 commits from feature/plugins-compiled-listing into main 2026-10-12 02:04:41 +00:00
Owner

PluginsSection:inproc 条目加「内置」徽标;空版本不再显示悬空 v;desc 补命令计数、意图计数回退 manifest。

注意:本分支基于 Dev main 当前 pin(7acfef0,feature/rdm-e2e-acceptance tip)。合入本 PR 将把此前被 Dev pin 指向但未进入 frontend main 的 7 个 rdm-e2e 验收硬化提交一并带回 main,消除悬空 pin。

  • Why: /api/plugins 已合并编译插件条目(Dev PR #404 / Backend 配套),管理页需正确渲染。
  • Evidence: npx vitest run 100/100 绿(含 design-guard);tsc --noEmit src 无错;Dev 组合 CI 为权威。
  • Impact: 仅 PluginsSection 渲染;无令牌/颜色新增。
  • Refs: Dev PR #404;任务卡 .task/feature-plugins-compiled-listing.md(Dev 仓)。
PluginsSection:inproc 条目加「内置」徽标;空版本不再显示悬空 v;desc 补命令计数、意图计数回退 manifest。 注意:本分支基于 Dev main 当前 pin(7acfef0,feature/rdm-e2e-acceptance tip)。合入本 PR 将把此前被 Dev pin 指向但未进入 frontend main 的 7 个 rdm-e2e 验收硬化提交一并带回 main,消除悬空 pin。 - Why: /api/plugins 已合并编译插件条目(Dev PR #404 / Backend 配套),管理页需正确渲染。 - Evidence: npx vitest run 100/100 绿(含 design-guard);tsc --noEmit src 无错;Dev 组合 CI 为权威。 - Impact: 仅 PluginsSection 渲染;无令牌/颜色新增。 - Refs: Dev PR #404;任务卡 .task/feature-plugins-compiled-listing.md(Dev 仓)。
weichen added 8 commits 2026-10-12 01:52:48 +00:00
Why: U4 acceptance requires real-browser runs of the trace/audit
workspace; the repo had only a manual .playwright.ts stub gated on
PLAYWRIGHT_BASE_URL with no config, deps, or service wiring.

Evidence: config/deps/spec staged; full run driven by Dev-side
scripts/e2e.sh (seed-only smoke in progress in this task branch).

Impact: dev-only additions (@playwright/test devDep, preview proxy
segment, e2e/rdm-audit.playwright.ts); no production bundle changes.

Refs: Dev task feature/rdm-e2e-acceptance; U4 in
modules/documents/docs/proposals/2026-10-11-rdm-two-trees-trace-audit-integration.md
Why: buildWorkspaceEntries pushed only BUILTINS[0] (agents); the U4
rdm-audit workspace was declared but never ranked, so no user could
open the trace/audit workspace from the sidebar.

Evidence: vitest workspaces.test.ts 4/4 (updated expectations plus a
new overflow-truncation case); full browser run in scripts/e2e.sh.

Impact: sidebar gains the second builtin tool; server-declared
workspaces keep their shortcut precedence.

Refs: U4 (Dev #368) regression; task feature/rdm-e2e-acceptance.
Why: hasText('章节') also matches the 空缺章节 card, tripping Playwright strict mode.

Evidence: rerun of scripts/e2e.sh in this task.

Impact: test-only.
Why: the first docs-tree node is document-level and carries no event history; U4 evidence-finding targets sections.

Evidence: scripts/e2e.sh rerun in this task.

Impact: test-only.
Why: rdm.inspect.tree docs is two-level (parent=<docId> returns sections), but the U4 workspace only fetched level one - the tree showed bare documents, clicking a doc hit unsupported inspect.object kind, and the trace tab always showed no sections.

Evidence: tsc + design-guard green; scripts/e2e.sh full run in this task.

Impact: tree browsing expands documents into sections; trace entry lists sections aggregated per document.

Refs: U4/U3 read-service contract; task feature/rdm-e2e-acceptance.
Why: seeded sections carry no confirmed trace edges yet, so the no-relations empty state is the correct U4 presentation.

Evidence: scripts/e2e.sh rerun in this task.

Impact: test-only.
Why: card text renders as num+label (e.g. 0切片), so whole-text regexes never matched.

Evidence: scripts/e2e.sh rerun in this task.

Impact: test-only.
Why: /api/plugins now merges compiled-in plugins (backend.mode=inproc);
the list needed to badge them as builtin, count their commands, and stop
printing a dangling "v" when the synthesized manifest has no version.
Evidence: npx vitest run 100/100 green incl. design-guard; tsc --noEmit
clean for src (../ui errors are the symlinked-deps environment only);
CI (make test) is authoritative.
Impact: PluginsSection label hides empty versions, desc adds a command
count and falls back to manifest intent counts, and inproc entries get a
"内置" badge next to the api badge. No token or color changes.
Refs: WP3-I4; task card feature-plugins-compiled-listing.
weichen merged commit 4ab507b1b6 into main 2026-10-12 02:04:41 +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-Frontend#60