this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Use 3am day boundary for session dates, add verbose flag to README

Sessions ending before 3am now count toward the previous day, aligning
with typical sleep schedules. This prevents late-night work from being
split across two days.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>

alice d77d663d 203e721b

+14 -2
+1
README.md
··· 35 35 bun cli process --force # Reprocess all sessions 36 36 bun cli process -d today # Process today only 37 37 bun cli process -w thisweek # Process this week only 38 + bun cli process -v # Verbose output (show parsing details) 38 39 bun cli status # Show stats 39 40 bun cli serve # Production server on :3456 40 41 bun cli regenerate # Regenerate daily summaries
+13 -2
src/core/session-reader.ts
··· 10 10 } from '../types'; 11 11 12 12 /** 13 + * Get the "effective date" for a timestamp using a 3am boundary. 14 + * Work done before 3am counts as the previous day (aligns with sleep cycle). 15 + */ 16 + function getEffectiveDate(timestamp: string): string { 17 + const d = new Date(timestamp); 18 + d.setHours(d.getHours() - 3); // Shift 3am boundary to midnight 19 + return d.toISOString().split('T')[0]; 20 + } 21 + 22 + /** 13 23 * Stream-parse a JSONL session file 14 24 */ 15 25 export async function* parseJSONLStream( ··· 115 125 endTime = startTime; 116 126 } 117 127 118 - // Derive date from startTime 119 - const date = startTime.split('T')[0]; 128 + // Derive date from endTime with 3am boundary (aligns with sleep cycle) 129 + // Work done before 3am counts as the previous day 130 + const date = getEffectiveDate(endTime); 120 131 121 132 const stats: SessionStats = { 122 133 userMessages,