Claude
14:02
Analyzed 3 tasks — no blocking edges between them, so they can run as parallel lanes.
cyboflow_list_tasks
3 tasks
See the core flows of the app in a simplified sandbox environment — add the project, run a planning session, then a sprint. Everything flows through a human review queue, so you have a single focused pane to manage your agents. Afterwards, review insights from your runs and edit your flows to improve system performance.
Analyzed 3 tasks — no blocking edges between them, so they can run as parallel lanes.
Lane 1 — Add streak calculation to the habit model: implementing.
Lane 2 needs a verify strategy — a focused unit test keeps the loop fast.
Lane 1 integrated
feat: streak calculation helpers
+import type { Habit, Completion } from "./types"; + +export function currentStreak(habit: Habit, today: Date): number { + const days = sortByDate(habit.completions); + let streak = 0; + let cursor = startOfDay(today); + for (const day of days) { + if (!isSameDay(day, cursor)) break; + streak += 1; + cursor = addDays(cursor, -1); + } + return streak; +}