Route the existing notification commands through one injectable command service and expose stable metadata for the Web command center.
Keep the original handlers intact while making help and balance available to every channel with explicit errors before balance wiring is installed.
Define immutable built-in balance query rules for all production carrier presets and persist command, event, balance, and custom-rule state in SQLite.
Validate custom rules with Go RE2 before storage and preserve unsupported/product-specific cases explicitly instead of guessing query codes.
Why: the reconstructed runtime used empty SIM interfaces and built SWu configs without the production AKA provider, while missing providers were hidden behind a delayed-error placeholder.
Why this works: share the engine SIM contract, expose the injected provider through SIMAdapter, require it at the start boundary, bind the resolved USIM/ISIM preference, and pass the same object into SWu.
Remaining: replace runtimehost placeholder state transitions with the real SWu lifecycle.
Why: the reconstructed QMI adapter re-entered its own identity provider and the rewritten startup path treated an absent ISIM application like a transport failure.
Why this works: read ISIM files over the real logical channel, preserve typed QMI absence errors, choose strict USIM only for authoritative absence, and keep all other APDU failures explicit.
Remaining: restore the SWu session lifecycle and IMS registration from the recovered behavior map.
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>
The binary (v1.5.5) never had runtimehost/simauth or voiceclient — their
functionality lives in internal/vowifi/imscore + voice (already rewritten).
Remove them from the external-import allow-list; the boundary test still
passes (no real code imports those packages).
Also restore the vowifi-go.v112 backup directory (kept for reference).
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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>