From 2a0346f48bbed3176322fceb104ff922c4fe201f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E6=A9=98?= Date: Mon, 18 May 2026 07:18:29 +0000 Subject: [PATCH] =?UTF-8?q?docs:=20simplify=20show=20to=20pure=20thread-id?= =?UTF-8?q?=20=E2=86=92=20head=20query,=20all=20output=20JSON?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/wf-stateless-design.md | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/docs/wf-stateless-design.md b/docs/wf-stateless-design.md index 0444432..a211680 100644 --- a/docs/wf-stateless-design.md +++ b/docs/wf-stateless-design.md @@ -12,7 +12,7 @@ # thread 组 uwf thread start -p # 创建 thread,不执行 uwf thread step [--agent] # 单步执行 -uwf thread show [--full] # 查看状态(--full 展开完整历史) +uwf thread show # thread-id → head 查询 uwf thread list [--all] # 列出活跃 threads(--all 含已归档) uwf thread kill # 终结 thread,归档 @@ -89,11 +89,21 @@ uwf thread step 01J7K9M2XNPQR5VWBCDF8G3H4T --agent "bunx uwf-cursor" ### 1.4 `uwf thread show` ```bash -uwf thread show 01J7K9M2XNPQR5VWBCDF8G3H4T # 当前状态(最新 StepNode) -uwf thread show 01J7K9M2XNPQR5VWBCDF8G3H4T --full # 遍历链,打印完整 step 历史 +uwf thread show 01J7K9M2XNPQR5VWBCDF8G3H4T ``` -纯读操作,不改状态。CAS 节点查看用 `json-cas get `。 +**输出(JSON to stdout):** + +```jsonc +{ + "workflow": "4KNM2PXR3B1QW", + "thread": "01J7K9M2XNPQR5VWBCDF8G3H4T", + "head": "8FWKR3TN5V1QA", + "done": false +} +``` + +纯 thread-id → head 查询。详细内容用 `json-cas get ` 或 `json-cas walk ` 查看。 ### 1.5 Agent CLI 协议