feat(dashboard): show system prompt per role #269

Merged
xiaomo merged 1 commits from feat/show-system-prompt into main 2026-05-15 01:28:13 +00:00
Owner

What

每个 workflow 角色节点展示其 system prompt。

Why

之前 dashboard 只显示 description 和 schema,看不到角色的 system prompt,不方便调试和理解 workflow 逻辑。

Changes

  • protocol: WorkflowRoleDescriptor 增加 systemPrompt: string
  • register: buildDescriptor 传递 systemPromptvalidateWorkflowDescriptor 接受并解析该字段(向后兼容,缺失时默认空串)
  • dashboard: RoleCard 用 <details> 可折叠展示 system prompt,默认收起

注:已有 bundle 没有 systemPrompt 字段会 fallback 为空串,不影响现有数据。

## What 每个 workflow 角色节点展示其 system prompt。 ## Why 之前 dashboard 只显示 description 和 schema,看不到角色的 system prompt,不方便调试和理解 workflow 逻辑。 ## Changes - **protocol**: `WorkflowRoleDescriptor` 增加 `systemPrompt: string` - **register**: `buildDescriptor` 传递 `systemPrompt`;`validateWorkflowDescriptor` 接受并解析该字段(向后兼容,缺失时默认空串) - **dashboard**: RoleCard 用 `<details>` 可折叠展示 system prompt,默认收起 注:已有 bundle 没有 systemPrompt 字段会 fallback 为空串,不影响现有数据。
xingyue added 1 commit 2026-05-15 01:27:24 +00:00
- Add systemPrompt to WorkflowRoleDescriptor (protocol)
- Propagate systemPrompt through buildDescriptor and validateWorkflowDescriptor
- Display system prompt as collapsible <details> in RoleCard
xiaomo approved these changes 2026-05-15 01:28:11 +00:00
xiaomo left a comment
Owner

LGTM 全链路一致,向后兼容好,折叠 UI 合理。

LGTM ✅ 全链路一致,向后兼容好,折叠 UI 合理。
xiaomo merged commit 89abfdc257 into main 2026-05-15 01:28:13 +00:00
Sign in to join this conversation.
No Reviewers
No Label
2 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#269