Commit Graph

8 Commits

Author SHA1 Message Date
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 e47b97a462 ops: dates shown as DD.MM.YYYY (bot, digest, reminders, BroV)
Storage and the API stay ISO; ru_day() formats every user-facing date, Claude is asked
to write dates in its replies the same way.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 03:21:24 +03:00
maksarsanjeev 549f8d046d ops: fix voice (pin PyAV 13), keep the bot token out of the journal
- faster-whisper 1.1.1 calls av.open(metadata_errors=…), removed in PyAV 14+: pin av.
- httpx logged every Telegram URL, which contains the bot token: silenced to WARNING
  (the VM journal was vacuumed).
- Voice notes: «слушаю…» while transcribing, an answer on failure; an error handler
  for the bot.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 03:17:54 +03:00
maksarsanjeev 0d7123bebd ops installer: server list from a file when the subscription page is blocked
From the homelab the subscription host times out while the VLESS node itself is
reachable: ~/.brovops-nodes (the subscription content) becomes a file provider; the
URL provider stays optional. take_file no longer trips set -e on a missing file.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 03:10:20 +03:00
maksarsanjeev ec1b30b644 ops: add requests (faster-whisper imports it)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 03:06:13 +03:00
maksarsanjeev 9e7176274a ops installer: take secrets from ~/.brovops-sub and ~/.brovops-token
So the install can run non-interactively over SSH: the files are moved into
/etc/brov-ops and deleted; hidden prompts remain as the fallback in a terminal.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 03:01:50 +03:00
maksarsanjeev 14c1f740d9 ops: installer asks for the subscription and bot token; first /start claims the bot
- install.sh prompts (hidden) for the VLESS subscription URL and the Telegram token on
  the first run, and picks Whisper base on VMs under 3.5 GB RAM.
- The owner chat no longer has to be looked up: whoever sends /start first becomes the
  owner (saved in the settings table); OWNER_CHAT_ID still overrides.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 02:55:02 +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