Function
buildEventKey
(event: Omit<CalendarEvent, "key">)
Source from the content-addressed store, hash-verified
| 20 | const CALENDAR_COMPLETIONS_FILE = join(DATA_DIR, "calendar-event-completions.json"); |
| 21 | |
| 22 | function buildEventKey(event: Omit<CalendarEvent, "key">): string { |
| 23 | return `${event.date}|${event.time}|${event.allDay ? "1" : "0"}|${event.title}`; |
| 24 | } |
| 25 | |
| 26 | function normalizeEventCompletions(payload: unknown): EventCompletionState { |
| 27 | if (!payload || typeof payload !== "object") { |
Tested by
no test coverage detected