diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 47b540d..abd4b52 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,7 +2,7 @@ name: CI on: push: - branches: [main] + branches: [main, 'agent/**'] pull_request: branches: [main] @@ -26,7 +26,8 @@ jobs: run: go test ./... - name: Telegram race/security tests run: go test -race ./internal/telegram -run 'Test(Concurrent|UpdateOffset|HTMLSplit|SplitTelegramHTML|ParseUpdates|SetCommands)' - + - name: Go build + run: go build ./... frontend: runs-on: ubuntu-latest defaults: diff --git a/README.md b/README.md index 6a88683..edd973b 100644 --- a/README.md +++ b/README.md @@ -4,9 +4,9 @@ English · 中文
-3M-UI is a lightweight web management console for Mihomo Core. It focuses on VPS node management, listener configuration, proxy-user credentials, traffic usage, client subscriptions, and Telegram operations. +3M-UI is a lightweight web management console for Mihomo Core. It focuses on VPS node management, listener configuration, proxy-user credentials, traffic usage, client subscriptions, configuration lifecycle management, and Telegram operations. -3M-UI 是一个轻量、现代的 Mihomo Core Web 管理面板,主要用于 VPS 节点管理、Listener 入站配置、代理用户凭据、流量统计、客户端订阅以及 Telegram 管理与通知。 +3M-UI 是一个轻量、现代的 Mihomo Core Web 管理面板,主要用于 VPS 节点管理、Listener 入站配置、代理用户凭据、流量统计、客户端订阅、配置生命周期管理以及 Telegram 管理与通知。 --- @@ -20,6 +20,10 @@ - JWT-based panel authentication - Client URI and subscription generation - Credential-aware Mihomo configuration generation +- Configuration preview and validation before activation +- Safe configuration apply with automatic `.bak` backup +- Configuration rollback through the Mihomo service layer +- Subscription token enable/disable, expiry and lifecycle management ### Telegram / Telegram 机器人 @@ -37,8 +41,11 @@ Telegram 不只是通知渠道,内置 Bot 同时支持通知、查询和交互 - Telegram ID → proxy-user binding - User self-service usage and node links - Admin views for users, online users, listeners, traffic ranking, blocked users and low-quota users -- Admin `/restart` for Mihomo +- Admin `/restart` for Mihomo through the Mihomo service only - Admin client creation wizard with listener selection, generated password and binding +- Callback permissions are re-checked before privileged actions +- Wizard state prevents duplicate client-creation flows +- Telegram update offset is persisted across bot restarts ### Bot Commands / Bot 命令 @@ -56,6 +63,11 @@ Telegram 不只是通知渠道,内置 Bot 同时支持通知、查询和交互 | `/online` | Online clients | 在线客户端 | Admin | | `/listeners` | Listener list | 入站列表 | Admin | | `/traffic` | Traffic ranking | 流量排行 | Admin | +| `/cancel` | Cancel current wizard | 取消当前向导 | All | + +普通用户不能通过 `/usage