macsync/@packages/shared/Sources/MacSyncShared
Natalie 242d7cd1a8 feat(send-queue): burst-friendly outbound send-rate cap (default 10/5min)
The /client/imessage/send-queue/pending endpoint released up to 50 queued
sends per poll, so an enqueued burst all fired at once. Add a configurable
release cap: the endpoint now returns at most (maxSends − sent-in-window)
queued items, so a burst queues and drips out at the configured rate.

- macsync.send_rate_config single-row table, default max_sends=10,
  window_seconds=300 (10 per 5 min).
- entities/send-queue repo: getSendRateConfig / setSendRateConfig /
  countSentWithin.
- Admin control: GET/PUT /admin/send-rate-limit (service-token auth) so the
  cap is adjustable at runtime (wired to MCP via quinn.api separately).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-23 15:35:18 -04:00
..
Storage feat(send-queue): burst-friendly outbound send-rate cap (default 10/5min) 2026-06-23 15:35:18 -04:00
Sync feat(@applications/@mac-sync): add async actor-based iMessage sender with timeout guard 2026-05-22 01:56:05 -07:00
Transport feat(send-queue): burst-friendly outbound send-rate cap (default 10/5min) 2026-06-23 15:35:18 -04:00
Util merge: restore plum-only additive files atop apricot baseline 2026-05-15 17:06:07 -07:00
WebServer feat(send-queue): burst-friendly outbound send-rate cap (default 10/5min) 2026-06-23 15:35:18 -04:00