Skip to content

Daily Recap: /today command#17

Closed
cristoforows wants to merge 1 commit into
mainfrom
wesley/daily-recap
Closed

Daily Recap: /today command#17
cristoforows wants to merge 1 commit into
mainfrom
wesley/daily-recap

Conversation

@cristoforows

Copy link
Copy Markdown
Owner

Closes #12.

What

Adds an auth-gated /today command that reads back the notes captured into today's Drive markdown file and replies with them, prefixed by a one-paragraph LLM TL;DR.

How

  • recap.py (new): today_command handler + a pure parse_message_blocks that splits a captured file on its <!-- msg_id: N --> markers. LLM summary reuses scheduler.create_llm (OpenRouter) and is best-effort — if it fails, the note list still returns.
  • drive_handler.py: adds read-only helpers find_daily_file (today's file id honoring day_cutoff_hour, never creates) and read_file.
  • bot.py: registers /today, adds it to help/start text.
  • Reply capped under Telegram's length limit.

Notes

  • Honors day_cutoff_hour so late-night notes recap against the right day.
  • Empty day → 'Nothing captured yet today.'

Test

  • tests/test_recap.py: covers the block parser (header drop, multiline notes, empty).
  • Full suite green (16 passed).

New recap.py command (auth-gated) that reads today's captured Drive
markdown file and replies with the notes plus a one-paragraph LLM
summary. Adds read-only drive_handler helpers find_daily_file/read_file
and reuses scheduler.create_llm. Closes #12.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Daily Recap: /today command

1 participant