77 Commits
Author SHA1 Message Date
yibaiba be4e0d97a5 fix: do not recover cellular IMS while airplane is on
Airplane plus cellular always was still scheduled for VoWiFi recover,
so EnableVoWiFi could start PDP after flight mode was cleared even
when Network stayed off. Hold recover in that state, refuse dial/data
until RF is back, and restore Network for always when leaving airplane.
2026-08-17 16:40:09 +08:00
yibaiba 76b77d1462 fix: interlock airplane, network, and phone mode
Camp and airplane stay mutually exclusive. Opening network exits
airplane; WiFi calling locks airplane and data; cellular can keep the
software phone while RF is off. Policy screens use a flight switch
instead of a camp/airplane radio pair.
2026-08-17 16:22:08 +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 db22458f35 fix: default new devices to airplane and gate cellular on network
New binds and new SIMs start in airplane so QMI does not camp immediately. Cellular on_demand without Network stays RF-off; on_demand/always only take effect after Network is on. The dialer and card policy now say this, and clicking WiFi calling starts the software phone even when it already looks selected.
2026-08-17 15:04:13 +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 3893853e66 fix: do not build SWu tunnel when cellular on_demand has no data
Clicking cellular mode no longer tries IKE_SA_INIT on a down bearer.
on_demand only arms the policy; data and IMS start at dial time.
always still brings data up before the tunnel.
2026-08-17 09:50:16 +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 99e278a154 feat(ui): add WiFi calling vs cellular mode selector
Expose phone_mode and data_strategy on the phone page and card policy
panels. Switching mode while software phone is already on restarts the
stack so the new path takes effect.
2026-08-17 09:33:44 +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 4f5736fc5c feat: implement on_demand data hook and interactive confirm for cellular mode
- Add Pool.SimulateCallWithCellularData: connects data before call and
  disconnects after for on_demand cellular mode, passes through for others.
- /cellcall and /vocall and POST /devices/:id/vowifi/calls now route
  through this wrapper.
- Confirm mechanism: supported channels (Telegram/QQ/WeChat/WeCom) block
  via confirmRegistry waiting for /y or /n; unsupported channels (Feishu)
  return false to cancel execution.
2026-08-16 17:04:24 +08:00
yibaiba ed2d9bccc4 feat: add cellular phone mode with data strategy and /cellcall command 2026-08-16 16:34:19 +08:00
yibaiba 1401576259 feat(updater): check Docker Hub versions 2026-08-14 19:53:04 +08:00
yibaiba 13f02620bf feat: complete bot command center integration 2026-08-14 19:51:27 +08:00
yibaiba 0780cbee84 feat(server): make built-in https optional 2026-08-14 19:27:06 +08:00
yibaiba 4f2b4bec64 chore(go): format existing sources 2026-08-14 18:10:20 +08:00
yibaiba 42f561b4ea feat(notify): complete bot onboarding and voice delivery 2026-08-14 18:03:32 +08:00
yibaiba 7059e1335f feat(auth): guide first-login password changes 2026-08-14 17:39:16 +08:00
yibaiba c4f8e99369 fix(device): push recovered SIM identity 2026-08-14 16:04:20 +08:00
yibaiba 2b523ca434 fix(device): restore local phone lookup 2026-08-14 15:51:55 +08:00
yibaiba 1a3f72f06b fix(telegram): revoke stale channel identities
Retire the previous Telegram channel before applying a persisted identity replacement, while preserving unrelated channels. Restore the prior binding when configuration persistence itself fails.
2026-08-14 15:43:58 +08:00
yibaiba e8ea1fca4d docs(telegram): document bot onboarding
Describe BotFather token setup, authorized private-chat binding, MP3 verification, and the absence of a QR registration flow. Keep the config example and OpenAPI settings contract aligned with runtime behavior.
2026-08-14 15:27:09 +08:00
yibaiba 2bb7d661ad fix(telegram): secure notification settings
Mask Bot Tokens in settings responses, preserve masked values on save, and expose persisted private-chat binding status. Add the Telegram settings panel with optional Chat ID onboarding and responsive fields.
2026-08-14 15:22:07 +08:00
yibaiba adae194fba test(notify): cover concurrent QR finalization 2026-08-14 14:21:59 +08:00
yibaiba 1d262da390 fix(notify): serialize QR credential finalization 2026-08-14 14:16:28 +08:00
yibaiba 821c5883e5 fix(commands): bound realtime history loading 2026-08-14 14:06:44 +08:00
yibaiba 8d54ab3767 fix(settings): serialize notification persistence 2026-08-14 13:45:13 +08:00
yibaiba 95f360128e docs(notify): document QR channel setup 2026-08-14 13:13:07 +08:00
yibaiba 8cba2d78af fix(api): hide disclaimer storage errors
Log internal persistence failures server-side while returning stable operation-specific messages to authenticated clients.
2026-08-14 13:08:14 +08:00
yibaiba 3152749b4b feat(settings): add notification QR onboarding 2026-08-14 13:04:05 +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 cf86a08a93 refactor(runtime): adopt HiDeck identifiers 2026-08-14 11:55:59 +08:00
yibaiba 93b8da01ea feat(notify): connect Weixin command channel
Why: QR credentials were persisted but could not yet receive commands or deliver notifications.

Why this works: a cancellable iLink long poll processes authorized messages before advancing its durable cursor, binds only the first direct user, echoes context tokens, and routes commands through the shared handlers.

Remaining: production WeChat message verification needs a scanned account, and media upload follows in the next mission issue.
2026-08-14 11:48:45 +08:00
yibaiba 045f455e46 refactor(go): move module to yibaiba/hideck 2026-08-14 11:48:09 +08:00
yibaiba 314aa1c2e5 feat(notify): add Weixin QR login flow
Why: VoHive needs native personal WeChat onboarding without requiring OpenClaw.

Why this works: authenticated settings routes drive an isolated iLink QR state machine with bounded refreshes, persist confirmed credentials through the private runtime store, and never return the bot token.

Remaining: real WeChat scanning needs a user account; inbound polling and media delivery follow in the active mission.
2026-08-14 11:36:11 +08:00
yibaiba 743d5a55c4 feat(notify): persist channel runtime state
Why: QR-based channels need durable cursors and chat bindings without rewriting the full application config for every message.

Why this works: the notification manager receives an atomic 0600 JSON state store, while stable channel settings remain in the existing atomic YAML config and secrets are masked on read.

Remaining: channel-specific QR sessions and transports consume this state in later mission issues.
2026-08-14 11:26:30 +08:00
yibaiba 139b421075 feat(notify): add WeCom notification channel 2026-08-14 10:29:46 +08:00
yibaiba 3bc24e00be fix(web): improve carrier rule tray controls
Expose built-in rule editing beside refresh, keep all effective rules reachable, and restore database overrides through the existing backend contract.
2026-08-14 07:44:14 +08:00
yibaiba c1906b23dd fix(balance): keep manual values directly addressable 2026-08-14 01:09:10 +08:00
yibaiba 02dbbf1448 feat(api): support manual device balances 2026-08-14 00:46:06 +08:00
yibaiba f22c499173 fix(sms): persist unread state and target ICCID 2026-08-13 20:23:32 +08:00
yibaiba debf38477a docs(phone): document real-time call API 2026-08-13 15:16:02 +08:00
yibaiba 4919b0d080 feat(server): serve phone UI over managed HTTPS
Run HTTP and TLS listeners together, issue a persistent local CA certificate
with host SANs, support provided certificates, and expose only the CA public cert.
2026-08-13 14:35:18 +08:00
yibaiba 8ca49afdf5 feat(phone): record mixed call audio and publish MP3
Capture both browser and IMS audio into a call-owned PCM mix, retain paired
IMS PCAP metadata, surface recording failures, and support ranged playback.
2026-08-13 14:29:23 +08:00
yibaiba ce33da3ce7 feat(phone): add leased call session API
Manage one active call per device, browser control leases, recovery,
terminal classification, SSE replay, history, and authenticated controls.
2026-08-13 13:56:26 +08:00
yibaiba 98a754efc3 feat(voice): persist playable MP3 call recordings 2026-08-13 11:40:20 +08:00
yibaiba e1d90291f8 fix(openapi): repair eSIM route assertions 2026-08-13 11:34:50 +08:00
yibaiba ca249ec6c0 fix(automation): use the active physical SIM 2026-08-13 11:29:20 +08:00