73 Commits
Author SHA1 Message Date
BFNOC 2305ed458d feat(vowifi): reset the card's MWI backoff when MWI is turned on or re-detected
- clear only the card's MWI failure count and local wait, keeping network waits and stop states
- act only on a switch to on or the redetect button, not on saving on again
- reconnect or wake only running runtimes that hold the card, never start one
- reset in the host-held state before the hideck#101 reconnect
- wake the running runtime to re-check MWI when no reconnect is needed
- restart an MWI usage the SIM setting stopped once the setting allows it
- do a proxy change's reconnect first, then reset and wake without a second reconnect
2026-11-08 02:04:08 +08:00
BFNOC 8845a93045 fix(api): lock out repeated failed logins
- Count only failed login and rotate attempts per IP
- Give back a successful attempt within its own counting window
- Lock an IP for 10 minutes once it reaches 10 failed attempts
- Return Retry-After on rate-limited login and rotate requests
- Prune expired IPs from the attempt map
- Log the lockout once and each failed rotate authentication
2026-10-29 14:10:33 +08:00
yibaiba 9fb465451b feat(mcp): add output contracts, workflow guidance and access diagnostics 2026-10-25 21:36:28 +08:00
yibaiba 40ca0dfa81 feat(mcp): add business tools, token management and browser audio binding 2026-10-25 13:30:08 +08:00
yibaiba fe74628452 feat: support per-SIM local phone overrides 2026-10-20 09:04:29 +08:00
yibaiba cbe6e032e2 fix: make archived data cleanup race-safe 2026-10-16 08:53:14 +08:00
yibaiba 3085be575e [webdav-archive-cleanup-ARCHIVE-03] feat: schedule WebDAV archives 2026-10-16 00:32:17 +08:00
yibaiba 9a42ae2d57 fix: deliver automatic answer recordings safely 2026-10-15 18:38:55 +08:00
yibaiba a11a764ef1 feat: add per-device automatic call answering 2026-10-15 18:29:20 +08:00
yibaiba 2eb385f952 fix: serialize device lifecycle mutations 2026-10-15 16:26:50 +08:00
yibaiba 05aac2bb70 fix: bind device actions to managed worker lifecycle 2026-10-15 15:38:58 +08:00
yibaiba 2e9c8854e1 fix: keep SMS ownership stable across SIM changes 2026-10-14 19:53:33 +08:00
yibaiba 07cceabf49 feat: add MBN profile management and per-SIM policies 2026-10-13 18:50:23 +08:00
yibaiba dbd9da92e8 feat(api): add device-list VoWiFi flags and SMS event stream
GET /api/devices now returns vowifi_active and vowifi_health from the
same sources as overview. Incoming SMS can be subscribed at
GET /api/sms/events with Last-Event-ID or after_id; payload matches
notifications latest.
2026-10-13 11:43:34 +08:00
yibaiba 7b620435c3 revert(phone): restore modem direct calling on main 2026-09-24 16:49:46 +08:00
yibaiba 011a8a68c4 refactor(phone): move modem direct calling to dedicated branch
Preserve the complete implementation on feat/modem-direct and model/main. Remove its UI, backend, ADB preparation, embedded runtime assets and Docker dependencies from main.

Retain SIM outbound limits, dialer device memory, proxy diagnostics and shared VoWiFi/VoLTE lifecycle fixes. Adapt shared regression tests to supported phone modes.
2026-09-24 16:27:48 +08:00
yibaiba 978aa448fb feat(phone): embed modem voice runtime and persist per-SIM outbound limits 2026-09-24 12:44:06 +08:00
yibaiba 36d297dde6 feat(modemvoice): connect phone UI and WebRTC call backend 2026-09-22 19:40:54 +08:00
yibaiba 089d19f25a fix(sms): correct destination type and expose dial prefixes 2026-09-18 19:50:40 +08:00
yibaiba ab6d3fbfc3 fix: don't treat leftover PLMN as camped operator
Airplane/RF-off NAS still reports last 46001, so /list showed
中国联通 VoWiFi for VOXI cards whose radio was off. Only home or
roaming registration is current serving; VoWiFi list uses SIM
SPN/PNN/home PLMN like the device page.
2026-09-13 16:54:59 +08:00
yibaiba 9a4b83bb08 fix(dashboard): keep runtime VoLTE phone mode on home cards
Dashboard overwrote worker config with yaml, so Unicom native VoLTE lost
phone_mode and rendered as VoWiFi. Take policy from runtime, attach
native_volte, and merge the same fields from the device list.
2026-09-09 23:25:21 +08:00
yibaiba 43c7721450 fix(web): show native VoLTE path on the dashboard
When phone_mode is volte, the home focus uses SIM/LTE/PDN/IMS/Voice instead of the unused VoWiFi stages.
2026-09-09 22:58:14 +08:00
yibaiba ba483aad3e fix: scope PCSC PIN retries to the current SIM 2026-09-09 20:11:50 +08:00
yibaiba d8f2dd6cdb fix: preserve historical SMS unread state and IMS recovery attempts
Mark historical SMS windows by exact message IDs while retaining the latest-thread watermark API. Validate message ownership and update persisted unread counts atomically.

Match IMS recovery completion to the registered path and failure generation so stale REGISTER/downlink success cannot erase replacement backoff or Retry-After.

Validation: 294 frontend tests, typecheck, targeted lint, SMS backend tests, and IMS/runtime race checks passed. Added regression coverage for both failures; live carrier integration was not run.
2026-09-07 10:45:12 +08:00
yibaiba 87be39230b fix(sms): locate notification messages outside inbox windows 2026-09-06 23:49:47 +08:00
yibaiba 324915fbca feat(sms): add global inbox notifications and unread count 2026-09-06 23:27:22 +08:00
yibaiba 604ca53312 fix: harden VoWiFi proxy recovery handling 2026-09-05 17:25:45 +08:00
yibaiba c753d7897c feat(vowifi): track WiFi Calling health 2026-09-04 11:37:16 +08:00
yibaiba 9d3e0d06a7 fix(esim): recover Lebara UK 204/04 identity without deleting the profile
When a Lebara UK eSIM flips to 20404, reset the same ICCID with Disable/Enable or a parking profile, wait for a stable 23487 IMSI, then start VoWiFi. Keep the RF lock. Do not start VoWiFi during recover or on classify-failure for unrelated cards.
2026-09-01 16:09:07 +08:00
yibaiba c01e6e5126 feat(ut): configure simservs through XCAP instead of USSI
Why: IR.92 2.3.2 requires Ut/XCAP for call forwarding, identity restriction, and barring; MMI codes are not Ut.
Why this works: GET/PUT simservs uses If-Match and one service per request; 404 retries an alternate XUI; missing XCAP PDN returns a visible error.
Remaining: production still needs the XCAP PDN transport wired to the second SWu; browser evidence was not collected in this session.
2026-08-31 14:12:18 +08:00
yibaibaandCursor 593cb967bc feat(vowifi): close SMS, hold, outbound, and SWu protocol gaps
Register now advertises outbound, prefers Service-Route then Path, and
tears down RFC 3680 subscriptions in-dialog. Voice adds hold/resume and
RFC 4028 timers; SWu sends AKA' bidding, IKE fragmentation, redirect
limits, and a correctly coded AUTS. Host SMS gets SMMA backpressure and
CS fallback without double-send.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-08-28 23:19:43 +08:00
yibaiba aaf774b8bc feat(esim): decode activation QR images and PDFs on the server
Upload screenshots or carrier PDFs to decode LPA:1$ payloads so install
no longer depends on the browser BarcodeDetector API.
2026-08-27 18:39:03 +08:00
yibaiba b5e785f32a fix(volte): stop treating native mode as WiFi calling
Card policy already stored phone_mode=volte with airplane off, but the
embedded UI still classified any non-cellular mode as WiFi calling and
locked flight. Device list also dropped PhoneMode when merging yaml.
2026-08-24 15:04:24 +08:00
yibaiba 38fa4d9d74 fix(sms): wait for VoWiFi recovery before sending 2026-08-20 14:59:41 +08:00
yibaiba d22874111d feat: add Lebara UK NextGen WiFi calling and radio lock
Add the 234/87 preset and keep shared eSIMs off domestic cells so a dual-IMSI flip to 20404 cannot kill UK WFC.
2026-08-19 14:58:04 +08:00
yibaiba 5295bd24e1 feat: bind Weixin on QR and add Feishu scan-to-create
Save the Weixin scanner as the default notify target and remind
users to message Weixin, WeCom, and Telegram bots after connect.
Add Feishu QR onboarding using the accounts registration flow
Hermes uses, then persist App ID and App Secret.
2026-08-19 09:30:36 +08:00
yibaiba 300098edef fix: camp without data and align radio/network UI
Airplane still turns the radio off. Network only starts a data session, so an idle card can stay registered with no traffic. Device list, card policy, overview, and the dialer now describe that split, including that a cellular call temporarily brings data up.
2026-08-17 15:48:14 +08:00
yibaiba 3069a9bd6a fix: say cellular needs Network instead of idle dial-ready
The dialer no longer labels an unnetworked cellular device as waiting to connect on call. API replies also tell the user to turn Network on before on_demand or always can camp.
2026-08-17 15:08:57 +08:00
yibaiba 588e16a992 fix: stop cellular idle VoWiFi recover and restore data toggle
Skip desired-state recover for cellular on_demand so idle devices
do not start SWu. Probe the cellular path before IMS and fall back
to the country proxy when the bearer cannot reach the internet.
Allow the network switch to stay on with cellular software phone.

Bump Docker image to 2.0.4.
2026-08-17 10:39:36 +08:00
yibaiba f45264f8ce fix: only restart software phone when mode actually changes
Compare previous phone_mode/data_strategy before RestartVoWiFi so a
repeat enable does not bounce an already-running stack. Cellular enable
no longer claims the device entered airplane mode.
2026-08-17 09:36:45 +08:00
yibaiba 3c0d79742a fix: harden docker runtime, PushPlus transport, and DB write logs
Align the Hub Dockerfile with Dockerfile.github so recordings keep
AMR/MP3 codecs and healthcheck. Send PushPlus over HTTPS with a timeout.
Log traffic rollup, SMS persist, and device IP update failures without
changing call/SMS success semantics.

Bump image to 2.0.3.
2026-08-17 01:35:52 +08:00
yibaiba 1401576259 feat(updater): check Docker Hub versions 2026-08-14 19:53:04 +08:00
yibaiba 0780cbee84 feat(server): make built-in https optional 2026-08-14 19:27:06 +08:00
yibaiba 7059e1335f feat(auth): guide first-login password changes 2026-08-14 17:39:16 +08:00
yibaiba 1d262da390 fix(notify): serialize QR credential finalization 2026-08-14 14:16:28 +08:00
yibaiba 8d54ab3767 fix(settings): serialize notification persistence 2026-08-14 13:45:13 +08:00
yibaiba 037a461911 feat(web): persist disclaimer acceptance in database 2026-08-14 12:57:55 +08:00
yibaiba 445c9c39f5 feat(notify): add QQ bot QR onboarding 2026-08-14 12:36:11 +08:00
yibaiba 42e1f2a695 feat(notify): add WeCom bot QR setup
Why: HiDeck needs the Hermes-compatible WeCom smart-robot onboarding flow without requiring OpenClaw or replacing the existing Webhook channel.

Why this works: use the WeCom admin QR endpoints, persist masked manual or scanned credentials, and keep wecom_bot configuration independent from legacy Webhook settings.

Remaining: the long-lived WebSocket command and media pipelines are implemented in the following mission rows.
2026-08-14 12:05:21 +08:00
yibaiba 045f455e46 refactor(go): move module to yibaiba/hideck 2026-08-14 11:48:09 +08:00