Commit Graph
398 Commits
Author SHA1 Message Date
yibaiba 87f3b678a5 fix(auth): simplify password reminder copy 2026-08-14 18:10:35 +08:00
yibaiba 17accb5d59 chore(web): refresh generated component types 2026-08-14 18:10:31 +08:00
yibaiba f8d6ebc328 fix(test): synchronize eSIM cache assertions 2026-08-14 18:10:26 +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 c8877dafdb fix(device): recover stalled QMI registration 2026-08-14 17:06:16 +08:00
yibaiba d8f24a7fa6 chore(repo): reject emoji in commit messages 2026-08-14 16:36:06 +08:00
yibaiba 7ede44babb fix(telegram): reject commands after revocation 2026-08-14 16:19:25 +08:00
yibaiba c4f8e99369 fix(device): push recovered SIM identity 2026-08-14 16:04:20 +08:00
yibaiba bbd1a89f98 fix(telegram): stop commands before channel retirement
Track in-flight sends per channel so unrelated deliveries cannot delay Telegram revocation. Stop command intake immediately, wait only for Telegram's active sends, and make receiver shutdown idempotent.
2026-08-14 16:03:50 +08:00
yibaiba 2b523ca434 fix(device): restore local phone lookup 2026-08-14 15:51:55 +08:00
yibaiba 4f418bd434 test(telegram): verify valid vocall MP3 delivery
Exercise the complete voice-call result to Telegram multipart path with a detected MPEG Layer III fixture and assert audio-before-text ordering.
2026-08-14 15:48:37 +08:00
yibaiba fda3421a89 fix(telegram): redact delivery context
Redact Bot Tokens, chat targets, and local recording paths from Telegram errors while preserving the underlying error chain for diagnostics.
2026-08-14 15:45:53 +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 29a1cfc62f fix(telegram): publish bindings after persistence
Keep the in-memory notification target unchanged when runtime-state persistence fails, so authorized private chats can retry binding safely.
2026-08-14 15:39:29 +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 53193fa63e feat(telegram): deliver vocall recordings
Why: Telegram command replies could only send text, so /vocall dropped its MP3 recording.

Why this works: queue command replies, upload validated MP3 files through sendAudio, and emit the completion text only after Telegram accepts the audio.

Remaining: settings security, UI guidance, and documentation follow in the mission.
2026-08-14 15:07:56 +08:00
yibaiba 569c74a035 feat(telegram): bind authorized private chats
Why: Telegram commands ignored the configured admin ID and required a prefilled chat target, unlike the other bidirectional bot channels.

Why this works: authorize the configured admin, persist the first private target, expose shared help through /start, and register a deterministic Bot API command menu.

Remaining: MP3 command attachments and settings/documentation updates follow in the same mission.
2026-08-14 15:03:48 +08:00
yibaiba ddf04cde92 fix(notify): snapshot names across command replies 2026-08-14 14:27:24 +08:00
yibaiba c6f8848e0e fix(notify): avoid redundant Weixin state writes 2026-08-14 14:24:12 +08:00
yibaiba adae194fba test(notify): cover concurrent QR finalization 2026-08-14 14:21:59 +08:00
yibaiba 394a3aa38e fix(notify): bind Weixin default notification target 2026-08-14 14:16:52 +08:00
yibaiba 1d262da390 fix(notify): serialize QR credential finalization 2026-08-14 14:16:28 +08:00
yibaiba 33f3830841 fix(notify): redact QQ command reply errors 2026-08-14 14:16:04 +08:00
yibaiba ace8979718 fix(notify): synchronize runtime channel snapshots 2026-08-14 14:15:38 +08:00
yibaiba 5b302a72c9 chore(repo): stop tracking mission artifacts 2026-08-14 14:09:25 +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 eeb196d444 fix(notify): redact QQ delivery errors 2026-08-14 13:45:04 +08:00
yibaiba 2e39891198 fix(notify): refresh QR cleanup deadlines 2026-08-14 13:44:56 +08:00
yibaiba 525887b0d4 fix(notify): send media before completion text 2026-08-14 13:31:12 +08:00
yibaiba 6810b92a28 fix(notify): surface QQ delivery failures 2026-08-14 13:31:04 +08:00
yibaiba bd10d5a43d fix(notify): release terminal QR sessions 2026-08-14 13:30:57 +08:00
yibaiba 0906a5b9e4 docs(web): classify browser preferences and caches
Complete the production storage inventory and distinguish browser-local preferences from server-owned MCC/MNC caching.
2026-08-14 13:24:39 +08:00
yibaiba db5ec8abeb docs(security): audit browser session storage
Classify authentication, tab-scoped phone control, redirects, and carrier websheet callback storage before any server-side migration.
2026-08-14 13:23:11 +08:00
yibaiba 4b84cf4657 fix(web): gate disclaimer behind startup readiness
Derive disclaimer visibility from both startup checks so device-time failures remain visible, with a state-matrix regression test.
2026-08-14 13:21:00 +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 5eb1bde5d0 docs: reorganize HiDeck README 2026-08-14 12:57:09 +08:00
yibaiba 87a159a03a feat(notify): send QQ voice recordings 2026-08-14 12:46:25 +08:00
yibaiba 445c9c39f5 feat(notify): add QQ bot QR onboarding 2026-08-14 12:36:11 +08:00
yibaiba 32b4633049 feat(notify): send WeCom call recordings
Why: WeCom call commands need native voice when the retained recording is compatible and an explicit file downgrade for every other format.

Why this works: inspect the real AMR header and size, upload with the init/chunk/finish protocol in 512 KiB chunks, and send the resulting voice or file through the callback request context.

Remaining: production media delivery requires real WeCom bot credentials; QQ onboarding and voice delivery follow in the mission.
2026-08-14 12:26:23 +08:00
yibaiba f4dded14ea feat(notify): add WeCom bot WebSocket channel
Why: WeCom smart robots need a native long-lived command and notification channel alongside the existing Webhook integration.

Why this works: authenticate with aibot_subscribe, correlate requests by req_id, authorize and bind direct messages, send passive command replies, and reconnect with bounded backoff and heartbeats.

Remaining: media upload and voice/file delivery are implemented in the next mission row; production connectivity requires scanned or manually supplied credentials.
2026-08-14 12:17:41 +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 ff8d6ae77e fix(build): rename OpenWrt service to HiDeck 2026-08-14 12:00:36 +08:00
yibaiba bb1a802092 docs: rename project and ownership to HiDeck 2026-08-14 11:59:35 +08:00