Commit Graph

52 Commits

Author SHA1 Message Date
maksarsanjeev b11d778b04 Net core: add single vless:// keys from BroV
- add_key accepts a vless:// link (uuid, host, port, Reality pbk checked; duplicates
  refused; the name from #fragment, made unique). Stored in keys/vless.txt (root, 600),
  served as the file provider vless-keys, which joins «ai-out» and «Авто» and the hide
  filter. The first key reloads the core (the provider appears), later ones only reload
  the provider. state reports vless-keys delays.
- BroV: «Добавить подключение» takes vpn:// or vless://.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-12 20:20:49 +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 011c709acf Notch stays open while the «Дела» popover is open
- isHeldOpen counts the open popover (only while the notch is expanded).
- Any fold — ⌃, Escape, AppState hiding the island, setMode — clears the flag in
  AppState.mode's didSet, so a stale flag can neither hold the notch nor pop the menu up
  on the next opening.
- When the popover closes with the pointer already away, the FSM gets mouseLeft, so the
  notch folds on its usual delay instead of waiting for the next hover.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 03:47:26 +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 36326ba0b6 «Дела»: today-at-a-glance popover and the «Весь план» window
- Popover (click on the Memoji): counters (overdue, today, subscriptions per month),
  Сейчас / Горит / Сегодня / На неделе (collapsed), ○ to finish, «Оплачено» for charges,
  ⏱ and «завтра» on hover, the text box to the service's Claude.
- «Весь план» button opens a regular window: month calendar (task deadlines, upcoming
  charges and routine dates with repeats projected forward, overdue days outlined) with
  the selected day's list; the task tree with subtasks, clients, minutes and the timer;
  subscriptions with the monthly total; routines with the last time done.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 03:33:43 +03:00
maksarsanjeev 42de561085 Memoji click opens the task manager directly
The intermediate menu (Дела, пипетка, переводчик, кофе) is gone: those live in Func and
the header. The popover is the «Дела» panel itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 03:24:49 +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 80990bbbcd CLAUDE.md: current netctl commands
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 02:49:10 +03:00
maksarsanjeev 23b1ea4f45 Memoji menu and «Дела» panel for BroV Ops
- A click on the Memoji (not a drag) opens a menu: Дела (agenda counts), stop timer,
  пипетка, переводчик, кофе. The slap on click is gone; hover love and drag-to-window stay.
- «Дела»: overdue / today / this week from the homelab service with Done/Paid, timer and
  Tomorrow buttons, the running timer, and a text box that goes to the service's Claude.
- Settings → Чат → «Дела (хоумлаб)»: service URL and API token (Keychain).
- CLAUDE.md: the BroV Ops section.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 02:49:03 +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
maksarsanjeev 717ef02155 Coffee mode: ☕ left of the fold button keeps the Mac and display awake
One IOPM PreventUserIdleDisplaySleep assertion (released automatically if BroV quits);
the choice is remembered across BroV restarts.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 02:23:17 +03:00
maksarsanjeev 2f1c82dc05 Notch: breathe toward the cursor instead of a separate drop
The detached black ellipse looked bad. The folded notch itself now grows slightly down
and sideways from its top edge as the cursor approaches, with a faint purple rim glow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 02:11:07 +03:00
maksarsanjeev ecc68a1047 UI: liquid opening, staggered content, answer wave, haptics, gaze, notch drop
- Opening: the notch spreads sideways then pours down with a slight overshoot; header
  and screen come out of a soft blur one after the other.
- Chat: a purple→orange wave of bars instead of three dots while Claude answers.
- Haptic tap (Force Touch trackpad) when the notch opens and on Allow/Deny.
- Memoji turns its head toward the cursor clearly (slide, lean, slight shear).
- A drop of the folded notch stretches toward the approaching cursor (within 130 pt),
  leaning to its side; its own ObservableObject so only the drop redraws at 30 Hz.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 02:04:32 +03:00
maksarsanjeev 9ebc4552c0 Open panels above the notch; chat paperclip and in-chat file drop
- NSOpenPanel opened from BroV appeared under the notch (BroV floats above the menu
  bar): presentAboveNotch shows it one level higher, non-modally. Used by the terminal
  paperclip, the chat paperclip and the chat folder picker in Settings.
- Chat: paperclip next to the input attaches a file; dropping a file over the open
  chat attaches it directly instead of the shelf animation.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 01:48:12 +03:00
maksarsanjeev 817c837f5a Net core: with capture on, the Mac's DNS goes into the core
The home router's DNS (192.168.10.1) doesn't answer; a LAN DNS server is reached around
the TUN, so with AmneziaVPN off nothing resolved. netctl now points every network service
at 198.18.0.2 (hijacked inside the TUN) when capture is on, restores the previous servers
when it goes off, and syncs this at boot. uninstall.sh puts DNS back too.
Adds scripts/netcore/diag.sh (one-minute TUN diagnosis, run by hand with sudo).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 00:25:54 +03:00
maksarsanjeev 3077404ebf Net core: turning capture on restarts the core cleanly; remember TUN state
After the AmneziaVPN app held the routes, the running core kept Amnezia's utun as its
way out; its own TUN reused the same utun name and sent everything into itself (no
routes, no DNS). "tun on" now refuses while AmneziaVPN is open and restarts the core;
the on/off choice is saved (tun.json) and used on the next start.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-10 00:11:54 +03:00
maksarsanjeev bc548d748c Ignore __pycache__
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 23:25:55 +03:00
maksarsanjeev 422c538df6 Terminal: drop files / paperclip; net core: fallback exit, re-test on network change, hide/unhide connections
- term.macOS: dropping files over an open terminal or the paperclip types their
  shell-escaped paths (bracketed paste when the program asks for it).
- Traffic now goes through a fallback group "exit": the pick while it answers,
  "auto" when it doesn't. A pinned connection that dies no longer cuts the Mac off.
- Faster checks (exit 30 s, auto 60 s, 3 failures trigger a re-test) and a re-test
  of every group 4 s after any network change (Wi-Fi switch, sleep, AmneziaVPN).
- hide/unhide instead of deleting keys: Amnezia connections and VLESS nodes leave the
  list and "auto"; kept on disk, returned from "Убранные".
- Core logs are owner-only (they can contain the subscription URL).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 23:25:47 +03:00
maksarsanjeev 9e02402555 install.sh: wait for both services before reporting (no false alarm)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 01:40:42 +03:00
maksarsanjeev a7a0195d34 Network core: home WireGuard as a client network (off = direct at home, on = via home tunnel when away); drop Saga's overlapping 10.0.0.0/24 tunnel subnet
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 01:31:14 +03:00
maksarsanjeev 0d5c68f83b Sign with the personal Apple Development certificate (team V3NLZK45Q4): stable identity, Accessibility survives rebuilds
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 00:33:28 +03:00
maksarsanjeev efb3bac8fc Translator hotkey: Option + ` (key left of 1)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-08 00:07:35 +03:00
maksarsanjeev 52e1e8288b Security + upstream fixes
- Network core moves to a root-only folder; BroV talks to a narrow root helper (netctl.py) over a user-only socket; install script verifies the mihomo SHA256 and migrates keys (scripts/netcore)
- Hardened runtime, no get-task-allow; bypassPermissions removed from the chat; concealed clipboard items are not restored; DangerCheck knows core, LaunchAgents and hook paths; dropped-file copies expire after 7 days
- Ported from upstream Coucou: 1h crash fix (d05f22b), safe settings.json writes (918d30e), Escape/fold for pending approvals (6012900, 40e3ba8), auto-close delay + reopen (74984f2, ea244a7), full AskUserQuestion (52b1562)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 23:49:11 +03:00
maksarsanjeev dc47247340 Efficiency: Release builds by default, only the visible island screen is built, character at 30 fps, adaptive mouse polling (60/30/10 Hz), hex colours parsed once
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 23:13:47 +03:00
maksarsanjeev 91878fa2e3 Network panel: several Amnezia connections (expand the Amnezia row, pick a connection or Auto, add a vpn:// key with live check, remove), auto = fastest across all Amnezia and VLESS exits
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 22:14:16 +03:00
maksarsanjeev 5a119d01a1 Network panel: core on/off (TUN) toggle without a password, Amnezia conflict guard, install hint for the netd service
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 21:42:40 +03:00
maksarsanjeev 14114d1a58 Header globe → network panel: pick the internet exit (auto, Amnezia, each VLESS node, with live delays) and switch client networks (Saga, Planet9) through the mihomo core API without reloads
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 21:29:33 +03:00
maksarsanjeev e11d06c73e Func is one button with a dark panel of functions; Translator (⌃⌥R or Func): selected text RU<->EN via macOS Translation or claude Haiku, card holds the notch open
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 15:57:06 +03:00
maksarsanjeev 9570dc190f Func pill: eyedropper (colour in many formats in a new brov-chat tab, HEX to clipboard, context for claude) and live Mac card (CPU, cores, RAM, SSD)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 15:45:38 +03:00
maksarsanjeev d8a64ab5b5 Up-arrow always visible in the header
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 15:34:10 +03:00
maksarsanjeev a92bf02477 Up-arrow (and toggle hotkey) folds chat/terminal back into the notch even while held open
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 15:28:42 +03:00
maksarsanjeev 56367ef9cd Tabs: '+' opens brov-chat or term.macOS (max 6, split around the camera); real zsh terminals via SwiftTerm; per-tab chat history and claude session; hover 3 s to close with confirmation
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-07 15:27:02 +03:00
maksarsanjeev 0d40b78b26 Resilience: LaunchAgent restarts BroV on crash; crashed Claude Code/Codex sessions get a resume button (optional auto); login and waiting status in the Claude/ChatGPT pills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 22:56:39 +03:00
maksarsanjeev 37c01f991a Danger warning on approval cards (red card, reasons, no Always); file shelf in the top-left slot with 'На полку' after a drop
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 22:51:35 +03:00
maksarsanjeev 3857776111 Header: collapse button folds the island (and chat size) back into the notch
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 22:29:48 +03:00
maksarsanjeev ae394370bf Limits move into the Claude/ChatGPT pills (header ran under the camera); balanced home margins
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 22:27:26 +03:00
maksarsanjeev a4d5032959 Chat: drag handle with detents (fit, 1/3, 1/2, full screen), chat width setting; tall transparent panel
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 22:19:27 +03:00
maksarsanjeev fbf90fd4fb Memoji character (11 expressions) on the engine's motion; Claude limit shows time to reset; ChatGPT weekly limit from Codex logs
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 22:16:53 +03:00
maksarsanjeev 8a8dd98e06 Home: Claude and ChatGPT on the bottom floor, empty slots on top
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 22:08:29 +03:00
maksarsanjeev 00dd73e33c ChatGPT pill opens the new ChatGPT app (com.openai.codex), Classic as fallback
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 22:06:26 +03:00
maksarsanjeev 3c8a9a1c12 Home: two floors of flat app pills (Claude, ChatGPT, two empty slots); hide VS Code and service pills
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 22:03:58 +03:00
maksarsanjeev 319cdc8b18 Russian UI: settings, notch views, agent steps, errors; visible success after installing hooks
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 20:15:30 +03:00
maksarsanjeev 750e5ad0ad Character brief for the BroV redesign (tehzadanie.md)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 20:01:48 +03:00
maksarsanjeev 64ba36e710 Build script: install to ~/Applications, DerivedData outside iCloud Documents
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 19:58:48 +03:00
maksarsanjeev 7d76986bc0 BroV look: swamp-zombie unibrow character, new app and menu bar icons, BroV naming in UI
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 19:53:47 +03:00