From 8f9a9251790210ef62966d953f6b160ec91190fb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=A9=98?= Date: Mon, 18 May 2026 07:10:11 +0000 Subject: [PATCH] docs: simplify step output to workflow/thread/head --- docs/wf-stateless-design.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/docs/wf-stateless-design.md b/docs/wf-stateless-design.md index 7faf7a6..cc262db 100644 --- a/docs/wf-stateless-design.md +++ b/docs/wf-stateless-design.md @@ -64,22 +64,19 @@ uwf thread step 01J7K9M2XNPQR5VWBCDF8G3H4T --agent "bunx uwf-cursor" { "workflow": "4KNM2PXR3B1QW", "thread": "01J7K9M2XNPQR5VWBCDF8G3H4T", - "progress": { - "role": "developer", - "meta": { "filesChanged": ["src/auth.ts"], "summary": "Fixed redirect" }, - "detail": "7BQST3VW9F2MA", // agent 原始输出的 CAS hash - "agent": "2RJHV6PN4D8WC" // 实际使用的 agent 配置 CAS hash - } + "head": "8FWKR3TN5V1QA" // 新链头 StepNode 的 CAS hash } // thread 结束 { "workflow": "4KNM2PXR3B1QW", "thread": "01J7K9M2XNPQR5VWBCDF8G3H4T", - "progress": null + "head": null // null = moderator 返回 END,thread 已归档 } ``` +详细信息通过 `uwf thread show ` 或 `json-cas get ` 查看。 + **做的事:** 1. 读链头 → 当前 StepNode(或 StartNode) 2. 收集 thread 历史(遍历链)