Commit Graph

4 Commits

Author SHA1 Message Date
maksarsanjeev 977665806f Ops bot: remember the last exchanges so follow-ups have context
Each message started a fresh claude -p with only the database snapshot, so
«да, поправь» had nothing to refer to. Keep the last 6 exchanges (2 h, in
memory, shared by Telegram and BroV) and put them into the prompt.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-28 21:54:19 +03:00
maksarsanjeev 882632b7ce Subscriptions: «Оплачено?» → paid status → «repeat?»; edit and create everything
- ops: paying marks the current charge paid (paid_for, persisted) instead of jumping to
  the next date; repeat_sub moves to the next period or closes the subscription.
  Paid-and-undecided subscriptions leave reminders and show in agenda['paid'].
  update_sub can set paid; tasks reopen when their status goes back; delete for subs and
  routines (BroV only, /api/delete); /api/tasks?all=1 and /api/subs?all=1.
- Bot: «₽ Оплачено?» on reminders, then «🔁 Да, <date> / Нет, закрыть»; after paying by
  text it asks the same with buttons.
- BroV: «Оплачено?» everywhere; «Оплачено — повторить?» section under the notch;
  «Весь план»: forms to edit or create tasks (title, description, status, due, company),
  subscriptions (amount, currency, period, date, reminder, company, paid, active) and
  routines, delete with confirmation, «+» per list, done tasks on demand.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 03:57:18 +03:00
maksarsanjeev 18aed2beb9 Subscriptions belong to a company; BroV owns its Keychain token
- ops: subscriptions get a client (company) column (migrated in place); the brain fills it
  from «компания сага / для планеты»; /subs and «Весь план» group by company with
  per-company monthly totals; the company shows in agenda rows and the calendar.
- BroV: the API token handed over in ops-token.import is saved by BroV itself, so the
  Keychain item belongs to BroV and macOS stops asking for the password.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 03:42:41 +03:00
maksarsanjeev ac94227b94 ops: BroV Ops service for the homelab VM (tasks, subscriptions, routines)
- SQLite: tasks with subtasks and time tracking, subscriptions + payments, routines +
  history, reminder log. All rules in core.Ops (tested: ops/tests).
- brain: free text → JSON actions via the local claude CLI (Haiku, the subscription);
  only whitelisted operations are applied, nothing is deleted.
- Telegram bot (owner only): text and voice (faster-whisper on the VM), /today /tasks
  /subs /routines /stop, morning digest and daily reminders with Done/Paid/Tomorrow.
- HTTP API for BroV (bearer token): agenda, tasks, subs, routines, say, action.
- deploy/install.sh: user brovops, venv, systemd; a proxy-only mihomo (127.0.0.1:7890,
  checksum-verified) so Telegram and Claude work from Russia without a VPN on the VM.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 02:45:20 +03:00