feat(cli): add filtering and pagination to thread list command #475
Reference in New Issue
Block a user
Delete Branch "fix/471-thread-list-filters"
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
Implements enhanced filtering and pagination for the
uwf thread listcommand.Why
Issue #471: thread list only supports single-value
--statusfilter, no time range or pagination.Changes
packages/workflow-util/src/ulid.ts— addextractUlidTimestamp()to decode timestamp from ULID (no CAS reads)packages/cli-workflow/src/commands/thread-time-parser.ts— new module for parsing ISO dates and relative time (7d,24h,30m)packages/cli-workflow/src/commands/thread.ts—cmdThreadListacceptsstatusFilter: ThreadStatus[] | null,afterMs,beforeMs,skip,take; deduplicates history.jsonl (also fixes #470)packages/cli-workflow/src/cli.ts— wire up--status active/ multi-value,--after,--before,--skip,--takepackages/workflow-util/src/__tests__/ulid-timestamp.test.ts— 7 tests for ULID extractionpackages/cli-workflow/src/__tests__/thread-list-filters.test.ts— 26 tests for filters/paginationpackages/workflow-agent-claude-code/package.json— add missing@uncaged/workflow-utildependencyRef
Fixes #471
Fixes #470