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
This commit is contained in:
Yanxin Lu
2026-03-23 14:48:05 -07:00
parent ab9f7da592
commit b2ff8effd4
3 changed files with 4 additions and 6 deletions

View File

@@ -218,7 +218,7 @@ $SKILL_DIR/scripts/calendar.sh todo delete --match "保险报销"
$SKILL_DIR/scripts/calendar.sh todo check
```
Same as `todo list` but only NEEDS-ACTION items. Exits silently when no pending items. Output is designed for piping to himalaya.
Same as `todo list` but only pending items. Exits silently when nothing is pending.
---

View File

@@ -479,7 +479,6 @@ def cmd_todo_add(args):
cal = Calendar()
cal.add("prodid", PRODID)
cal.add("version", "2.0")
cal.add("method", "REQUEST")
todo = Todo()
todo.add("uid", uid)
@@ -510,9 +509,9 @@ def cmd_todo_add(args):
print(ics_bytes.decode())
return
# Save to TASKS_DIR (without METHOD for CalDAV)
# Save to TASKS_DIR
dest = TASKS_DIR / f"{uid}.ics"
dest.write_bytes(_strip_method(ics_bytes))
dest.write_bytes(ics_bytes)
print(f"Todo created: {args.summary} (due: {due_date}, priority: {prio_label})")
print(f"Saved to: {dest}")