chore: reduce complexity in cli-workflow thread.ts #446

Closed
opened 2026-05-23 14:39:58 +00:00 by xingyue · 0 comments
Owner

Split from #444.

Refactor 2 functions in packages/cli-workflow/src/commands/thread.ts:

  • expandValue (19 → ≤15)
  • formatThreadReadMarkdown (28 → ≤15)

Strategy: extract helper functions, early returns.
Keep existing tests green.

Split from #444. Refactor 2 functions in `packages/cli-workflow/src/commands/thread.ts`: - `expandValue` (19 → ≤15) - `formatThreadReadMarkdown` (28 → ≤15) Strategy: extract helper functions, early returns. Keep existing tests green.
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: uncaged/workflow#446