Commit Graph
6 Commits
Author SHA1 Message Date
yibaiba 824305cec1 [rewrite-vowifi-sms-followup-21] restore IMS signaling keepalive 2026-08-08 17:37:57 +08:00
yibaiba 522cc2b870 [rewrite-vowifi-sms-followup-10] expose authenticated VoWiFi call API 2026-08-08 13:11:12 +08:00
yibaiba 7d86d97aff [rewrite-vowifi-sms-01] restore truthful SMS readiness 2026-08-08 06:13:48 +08:00
yibaibaandClaude Fable 5 6a55aceeb9 feat(api): add SMS rate limiting (hourly 3 / daily 10)
Port the SMS rate limiter from github.com/yibaiba/vohive:
- sms_rate_limit.go: limiter with first-hour (3) and daily (10) quotas,
  local-midnight daily reset
- server.go: smsLimiter field + lazy smsRateLimiter(); handleSendSMS returns
  429 sms_rate_limited before the backend send
- sms_rate_limit_test.go: 4 tests (first-hour block, daily block, midnight
  reset, backend not invoked when limited)

Why: brings vohive-open up to date with the latest public vohive while
keeping the rewritten vowifi-go.

Why this works: all 25 packages pass; 4 new limiter tests green.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-07 09:59:32 +08:00
yibaibaandClaude Fable 5 320ef758c0 feat: integrate rewritten vowifi-go (binary-faithful imscore/voice API)
Replace third_party/vowifi-go with the reverse-engineered rewrite that
matches the v1.5.5 binary's actual vowifi-go (internal/vowifi/imscore +
internal/vowifi/voice), and adapt the host code to its API:

- device: modemAdapter/qmiModemAdapter implement runtimehost.Modem
  (Capabilities, IMSIdentityProvider) and identity.Access; SetLogger uses
  slog.Default()
- api: GetSMSDeliveryStatus passes ctx
- platform shims so the Linux-targeted code compiles on macOS for tests:
  SO_BINDTODEVICE consts (netprobe/proxy/qmi), qmi control-device-holder
  stub, udev build-tag + no-op stub
- test modems implement the runtimehost.Modem interface

Result: 25 packages pass on macOS; only internal/web + cmd/vohive fail on
the pre-existing missing web dist assets (//go:embed all:dist). The
vowifi-go module itself builds on both macOS and Linux.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-08-07 01:21:47 +08:00
windloom de689a554d Assemble source-integrated VoHive 2026-07-06 04:30:39 +08:00