Commit Graph

12 Commits

Author SHA1 Message Date
Yanxin Lu
d2bc01f16c calendar: dedup todo lookups, robust khal search, cleanup improvements
- Replace _find_todo_id and inline UID lookups with _find_todo in
  complete/delete/edit (removes ~40 lines of duplicated logic)
- Handle khal search returning exit code 1 for no results
- Sync calendar before event list for fresh data
- Use shutil.rmtree for temp dir cleanup
- Use datetime.fromisoformat instead of manual format strings
2026-03-25 09:47:20 -07:00
Yanxin Lu
35f048dd83 calendar: add recurring events, event management, and safety rules
Add --rrule flag to send with DTSTART/BYDAY validation (RFC 5545).
Add event list (via khal) and event delete (safe single-event removal).
Document safety rules from 2026-03-25 incident: always dry-run recurring
events, never rm .ics files, space out SMTP sends.
2026-03-25 09:32:22 -07:00
Yanxin Lu
810a9923f9 calendar: drop unnecessary --no-interactive flag from todo edit
todoman skips interactive mode automatically when changes are provided.
2026-03-24 21:58:52 -07:00
Yanxin Lu
734790a599 calendar: add todo edit command
Allow editing todo fields (due date, priority) in place via todoman,
instead of requiring delete + recreate. Updates all docs for consistency.
2026-03-24 21:56:23 -07:00
Yanxin Lu
b2ff8effd4 calendar: fix stale docs and remove unnecessary METHOD from todo add
- Remove duplicate email rule in TOOLS.md
- Add todo mutations to sync description in TOOLS.md
- Remove METHOD:REQUEST from todo add ICS (no longer emailed)
- Update todo check description in SKILL.md
2026-03-23 14:48:05 -07:00
Yanxin Lu
ab9f7da592 calendar: remove self-notification emails (CalDAV sync replaces them)
Remove three redundant email flows since all devices sync via CalDAV:
- Auto-adding mail@luyx.org as attendee on outgoing invites
- Forwarding invites to mail@luyx.org on accept/tentative
- Emailing todos to mail@luyx.org on todo add
2026-03-23 14:27:28 -07:00
Yanxin Lu
13986aa3ab cleanup: remove old reminder system and unused crontab files
Todo management now lives entirely in skills/calendar/ via VTODO + todoman.
2026-03-23 09:53:49 -07:00
Yanxin Lu
31efcffb19 calendar: fix completed field name from todoman --porcelain output 2026-03-22 16:09:45 -07:00
Yanxin Lu
4ef7b1e05b calendar: use todoman --yes flag for delete instead of piping stdin 2026-03-22 16:03:12 -07:00
Yanxin Lu
912bcf53bd calendar: fix _days_until to handle Unix timestamps from todoman --porcelain 2026-03-22 15:50:43 -07:00
Yanxin Lu
383b33cc30 calendar: use todoman for VTODO list/complete/delete/check
Replaces custom .ics parsing with todoman CLI (--porcelain for JSON).
todo add still uses icalendar directly (needs ICS creation + email).
Updates MIGRATION.md with todoman install/config instructions.
2026-03-22 15:00:20 -07:00
Yanxin Lu
44fbbea29b VTODO skill 2026-03-22 14:10:54 -07:00