Commit Graph

9 Commits

Author SHA1 Message Date
maksarsanjeev cd119d3b8f Net core: clean restart when the Mac changes networks, instead of a leaky rebind
Re-creating the WireGuard tunnels through a provider reload leaked every old tunnel: on
16.10 the core held 652 UDP sockets to the Amnezia servers and 677 MB, and the servers
stopped answering the handshake flood. netctl rebind is now a clean core restart (the
move drops the TCP connections anyway), and BroV calls it only when the IPv4 address of
a physical adapter actually changed, not on every path update.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-16 02:08:51 +03:00
maksarsanjeev 101a3860a9 Net core: re-create WireGuard tunnels after a network change (rebind)
mihomo's WireGuard outbounds keep their UDP socket bound to the address they started on:
after moving from Planet9 to Saga the Amnezia sockets were still sending from
192.168.68.x, so every Amnezia (and client) tunnel looked dead while the AmneziaVPN app,
connecting afresh, worked. Client tunnels now live in a file provider (keys/clients.yaml,
groups select them by filter) like the Amnezia keys; netctl rebind touches both files and
reloads the providers, which re-creates the tunnels on the current address without
touching other connections. BroV calls it on every network change before re-testing.
Tested on a scratch core: groups, selection across a rebind, health check.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-14 15:54:16 +03:00
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 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 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 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 0f77ec8704 BroV: single Mac target, chat brain = local claude CLI (stream-json, resume)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 19:49:32 +03:00
maksarsanjeev 53b4f60da1 Import Coucou 0.1.9 (Louis-CFM/coucou@83708fe), Mac app only
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-06 19:34:32 +03:00