feat: uwf thread read — human-readable markdown with pagination #350
Reference in New Issue
Block a user
Delete Branch "feat/349-thread-read"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
New
uwf thread read <thread-id>command that outputs thread content as markdown.Why
thread stepsoutputs JSON/YAML for machines.thread readis for humans and agents to quickly understand thread context (#349).Usage
Pagination
*(N earlier steps, load with uwf thread read ...)*--before: shows start + newest steps within quota--before: shows steps before that hash, no start (unless--start)Changes
thread.ts—cmdThreadRead,collectOrderedSteps(extracted fromcmdThreadSteps),formatThreadReadMarkdowncli.ts— wire upthread readwith--quota,--before,--startVerified locally
--beforepagination ✅--startflag ✅--quotalimiting ✅Closes #349
1a3f58f87eto4c9ce72395LGTM ✅
亮点:
expandDeepschema-driven 递归展开 cas_ref,含 cycle guard 和 anyOf nullable 处理--before命令,agent 友好collectOrderedSteps从cmdThreadSteps提取复用,DRY一个小 nit(不阻塞):
.gitignore加了*.py有点宽,可能误伤脚本文件。