Files
Agent-System-Core/testdata/golden/ui_vocabularies.json
T
weichen a4ea66c41d Add activity card, card events, HITL anchoring and UI vocabulary extension
Why: Contract foundation for the inbox/command-bus/workspaces phase (proposal
  D28/D30): ActivityCard as the first-class state object behind the right-rail
  inbox, card.* stream events, inline-confirm anchoring (anchorMessageId +
  blocked/blockReason) on HITL, seven new UI schema vocabularies, plugin
  provides.commands/workspaces, workflow card step and workspace declarations.

Evidence: go vet clean; conformance goldens regenerated and verified — new
  activity_card / hitl_card_blocked / event_card_created / event_card_resolved /
  ui_vocabularies samples plus extended plugin_manifest; CardStatus.Terminal
  helper unit-covered via build; ts/types.ts mirrors all additions.

Impact: Additive only (omitempty fields, new types, new event types) — existing
  consumers ignore unknown values per forward-compat rule; vocabulary spec types
  carry a Spec suffix to avoid const-name collisions.

Refs: modules/documents docs/proposals/2026-09-30-ui-inbox-command-workspace.md
2026-09-30 06:22:00 +00:00

153 lines
2.6 KiB
JSON

[
{
"type": "progress",
"progress": {
"label": "市场可行性 78%",
"value": 0.78,
"tone": "ok"
}
},
{
"type": "compare",
"compare": {
"left": {
"title": "基线",
"tone": "danger"
},
"right": {
"title": "新内容",
"tone": "ok",
"nodes": [
{
"type": "markdown",
"markdown": "18 个月"
}
]
}
}
},
{
"type": "tree",
"tree": {
"nodes": [
{
"id": "stage-1",
"label": "商务与策划",
"count": 24,
"children": [
{
"id": "topic-1",
"label": "市场调研",
"tone": "ok",
"badge": "多挂载",
"count": 12,
"selected": true
}
]
}
]
}
},
{
"type": "table",
"table": {
"columns": [
{
"key": "id",
"label": "编号"
},
{
"key": "title",
"label": "标题"
}
],
"rows": [
{
"id": "ur-005",
"cells": [
[
"id",
"UR-005"
],
[
"title",
"项目执行周期"
]
],
"actions": [
{
"id": "trace",
"label": "追溯"
}
]
}
]
}
},
{
"type": "steps",
"steps": {
"current": 2,
"steps": [
{
"label": "申请",
"status": "done"
},
{
"label": "影响分析",
"status": "done"
},
{
"label": "评审",
"status": "active"
},
{
"label": "批准",
"status": "pending"
}
]
}
},
{
"type": "tabs",
"tabs": {
"active": "view",
"tabs": [
{
"id": "view",
"label": "查看",
"nodes": [
{
"type": "markdown",
"markdown": "正文"
}
]
},
{
"id": "history",
"label": "历史版本"
}
]
}
},
{
"type": "timeline",
"timeline": {
"items": [
{
"time": "10:42",
"title": "v0.6 填入注册分类界定",
"tone": "ok",
"markdown": "来源 S-121",
"ref": "S-121"
},
{
"time": "09-28",
"title": "v0.5 更新竞品定价段落",
"ref": "陈磊确认"
}
]
}
}
]