feat(cli): live command — real-time thread monitoring #57
Reference in New Issue
Block a user
Delete Branch "feat/37-live-command"
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
Add
uncaged-workflow live <thread-id>command for real-time thread monitoring with--latest,--debug, and--roleflags.Why
No way to observe running threads in real-time. Had to manually
tail -fJSONL files.Changes
packages/cli-workflow/src/cmd-live.ts— live tail with formatted output, fs.watch for running threadspackages/cli-workflow/src/live-argv.ts— flag parsing for --latest/--debug/--rolepackages/cli-workflow/src/thread-scan.ts—findLatestThreadDataPath()for --latestpackages/workflow/src/worker.ts— write WorkflowResult to .data.jsonl for completion detectionpackages/workflow/src/fork-thread.ts— handle WorkflowResult as last linepackages/cli-workflow/__tests__/live.test.ts— tests with JSONL fixturesTesting
bun run checkcleanRef: #37
Review: command
架构设计合理,pump + watch 模式适合 tail 场景,测试覆盖全面 ✅
Minor
Blocker
rebase 后可以合并。
Review: live command
架构设计合理,pump + watch 模式适合 tail 场景,测试覆盖全面
Minor
Blocker
rebase 后可以合并。
79a407f107toc5f279ed54c5f279ed54to8fe26417cf