Commit Graph

2196 Commits

Author SHA1 Message Date
zhuyuan-bot 569f844e2f 📡 部署日志采集 · 24028418313 [skip ci] 2026-04-06 10:30:47 +00:00
冰朔 1509cb4726
Merge pull request #303 from qinfendebingshuo/copilot/add-email-verification-content
邮件模块重构: 专业化语言 + V3订阅邮件 + guanghulab.online桥接 + ∞工作流整合
2026-04-06 18:29:43 +08:00
copilot-swe-agent[bot] bc8af453e5
fix: 提取验证码冷却常量 + Nginx桥接协议说明注释
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/5deef078-5765-44a5-b9bf-03476c0fddce

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-06 10:25:34 +00:00
copilot-swe-agent[bot] 3b4c0a76af
feat: V3桥接Nginx配置 + 合并用户管理到∞工作流 + 部署工作流ZY_BRAIN_HOST注入
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/5deef078-5765-44a5-b9bf-03476c0fddce

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-06 10:22:05 +00:00
copilot-swe-agent[bot] eab7e2057e
refactor: 邮件模板语言专业化 + 新增V3订阅邮件 + 带宽授权域名切换guanghulab.online
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/5deef078-5765-44a5-b9bf-03476c0fddce

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-06 10:18:51 +00:00
zhuyuan-bot d159ae2a42 📡 部署日志采集 · 24027183766 [skip ci] 2026-04-06 09:48:40 +00:00
冰朔 1c8bb7fd7c
Merge pull request #302 from qinfendebingshuo/copilot/add-email-verification-feature
feat: bandwidth-auth workflow actions + VPN system intro in email templates
2026-04-06 17:47:33 +08:00
copilot-swe-agent[bot] 506dd2dc39
feat: 增加带宽验证码一键发送/单独发送工作流 + VPN系统介绍邮件模板
- email-hub.js: 新增 getVpnSystemIntroHtml() VPN系统介绍模块(技术架构+版本号)
- email-hub.js: generateUpdateNotifyEmail() 加入VPN系统介绍和版本号展示
- email-hub.js: generateBandwidthAuthEmail() 加入VPN系统介绍,优化用户选择说明
- email-hub.js: 新增 sendBandwidthAuthAllEmail() 一键批量发送验证码
- email-hub.js: CLI新增 bandwidth-auth-all 命令
- infinity-evolution.yml: 新增 send-bandwidth-auth (一键全发) 和 send-bandwidth-auth-single (单独发送) 工作流操作

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/05c6782a-aa52-420c-8b7f-3de5ecda8da5

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-06 09:42:52 +00:00
zhuyuan-bot 757f0022b2 📡 部署日志采集 · 24026104294 [skip ci] 2026-04-06 09:13:08 +00:00
冰朔 f2e494a363
Merge pull request #301 from qinfendebingshuo/copilot/fix-email-formatting-issues
Redesign email templates with responsive layout and fix missing verification code input channel
2026-04-06 17:12:06 +08:00
copilot-swe-agent[bot] 85125fd1c8
修复代码审查反馈:移除zoom禁用(可访问性)、修复Outlook引号、移除邮件transition、优化字体栈
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/b8228c73-6b93-4af9-95a3-6c21b541e045

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-06 09:09:44 +00:00
copilot-swe-agent[bot] b2d6940e47
重构邮件模板:响应式设计 + 视觉优化 + 修复验证码通道缺失
邮件模板重构:
- wrapEmailTemplate: 添加viewport meta、@media响应式断点(620px/400px)、
  暗色模式支持、table布局兼容Outlook、改善排版层次和间距
- 8种邮件类型全部优化: 更大padding、更好的字体层次、卡片式信息块、
  交替行背景色表格、更宽松的行距(1.8→1.9/2.2)
- 反馈按钮升级为渐变色样式

验证码通道修复:
- CLI bandwidth-auth命令: 根据邮箱查找用户token,构建authPageUrl,
  确保邮件中包含「前往授权页面输入验证码」按钮
- 带宽授权页面(subscription-server-v3.js): 增加@media响应式断点
  (520px/380px)、改善触控体验(更大点击区域)、focus状态增加box-shadow

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/b8228c73-6b93-4af9-95a3-6c21b541e045

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-06 09:07:49 +00:00
zhuyuan-bot 2aa158df6e 📡 部署日志采集 · 24025245545 [skip ci] 2026-04-06 08:43:29 +00:00
冰朔 5656a97a3d
Merge pull request #300 from qinfendebingshuo/copilot/optimize-vpn-node-performance
∞+1: Bandwidth sharing acceleration, swarm defense, and user guardian agents
2026-04-06 16:42:25 +08:00
copilot-swe-agent[bot] d1290ac5a8
∞+1 安全加固: 盐值持久化 + IP哈希完整 + IP获取日志
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/e26c30a9-d5c9-4068-959b-bc4acf16ae4e

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-06 08:14:52 +00:00
copilot-swe-agent[bot] f840915ba0
∞+1 带宽共享加速 + 蜂群防御 + 用户守护Agent · 冰朔架构落地
新增模块:
- bandwidth-pool-agent.js: 带宽汇聚Agent (验证码授权 + IP加密存储 + 流量池)
- swarm-defense-agent.js: 蜂群防御Agent (融合/分裂 + Moving Target Defense)
- user-guardian-agent.js: 用户守护Agent (威胁切断 + 日志格式化 + 自毁机制)

升级模块:
- email-hub.js: 新增 bandwidth-auth / threat-alert / threat-cleared 邮件类型
- subscription-server-v3.js: 新增 /bandwidth-auth/ 授权页面 + 验证码提交
- ecosystem.brain-proxy-v3.config.js: 注册3个新PM2进程
- infinity-evolution.yml: 新增文件同步 + threat-alert/cleared 工作流操作
- release-notes.json: 更新∞+1版本特性

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/e26c30a9-d5c9-4068-959b-bc4acf16ae4e

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-06 08:12:05 +00:00
冰朔 0ca531810a
Merge pull request #299 from qinfendebingshuo/copilot/fix-email-update-details
fix: sync email-hub to server before execution & auto-deploy ∞ on push
2026-04-06 14:53:49 +08:00
copilot-swe-agent[bot] 09f84bfb9a
fix: 修复邮件命令服务器版本滞后 & 添加∞版本合并自动部署
问题1: list-user-emails/send-update-notify-single等邮件命令失败
根因: 工作流通过SSH在服务器运行email-hub.js,但服务器版本过时
修复: 所有邮件命令执行前先同步最新email-hub.js和release-notes.json到服务器

问题2: ∞版本代码合并后缺少自动部署
修复: 添加on:push触发器,∞版本核心文件变更推送到main时自动deploy-infinity

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/0300e6d0-6db8-4da5-bbf9-a6c921d1572d

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-06 06:51:25 +00:00
zhuyuan-bot 5f96ec3e7d 📡 部署日志采集 · 24021644981 [skip ci] 2026-04-06 06:33:48 +00:00
冰朔 4838952ce0
Merge pull request #298 from qinfendebingshuo/copilot/fix-update-notification-email
fix: update-notify emails auto-load version features from release-notes.json
2026-04-06 14:32:35 +08:00
copilot-swe-agent[bot] 9893adefeb
fix: 更新通知邮件自动展示∞版本功能特性
修复更新通知邮件只显示「系统已更新」不展示功能特性的问题。
新增 release-notes.json 存储版本特性,email-hub.js 省略描述时自动读取。

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/5fb77bb4-5bec-463b-9399-e2c41adb63ac

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-06 05:55:17 +00:00
zhuyuan-bot 84c91c4494 📡 部署日志采集 · 24020286358 [skip ci] 2026-04-06 05:39:55 +00:00
冰朔 f835e36b51
Merge pull request #297 from qinfendebingshuo/copilot/add-notification-email-feature
feat: email-hub dual send mode — single-user targeting + batch broadcast
2026-04-06 13:38:44 +08:00
copilot-swe-agent[bot] aa7a51d83e
fix: 增加工作流中邮箱格式校验
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/90aad306-0211-4a5b-b8b2-a130ae758c92

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-06 05:30:05 +00:00
copilot-swe-agent[bot] 809f65c9ac
feat: 邮件中枢增加单独发送/一键发送双模式 + 用户邮箱列表 + 详细功能清单
- email-hub.js: 新增 update-notify-single 单用户发送命令
- email-hub.js: 新增 list-emails 列出所有用户邮箱
- email-hub.js: 更新通知邮件支持分号分隔多条内容自动渲染功能清单
- infinity-evolution.yml: 新增 send-update-notify-single 和 list-user-emails 工作流选项
- infinity-evolution.yml: 新增 email 输入字段供选择目标邮箱

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/90aad306-0211-4a5b-b8b2-a130ae758c92

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-06 05:28:03 +00:00
zhuyuan-bot 5e96f19350 📡 部署日志采集 · 24019421677 [skip ci] 2026-04-06 05:02:47 +00:00
冰朔 2354bc35c8
Merge pull request #296 from qinfendebingshuo/copilot/auto-update-vpn-system
∞ version: self-evolving VPN with protocol mirroring, auto-update orchestration, and email hub
2026-04-06 13:01:29 +08:00
铸渊 3755e094af [AG-ZY] 每日签到记录 2026-04-06 2026-04-06 04:48:41 +00:00
copilot-swe-agent[bot] 76c104e99e
fix: 修复日期比较逻辑 + SMTP超时清理 + 安全临时目录
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/c5b8b0a2-c3fb-437f-bd6f-07549f2c5709

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-06 04:29:58 +00:00
copilot-swe-agent[bot] c10556b6d3
feat: ∞版本 Phase 1 — 邮件中枢 + 自主进化引擎 + 智能分流增强 + 部署配置 + 定时工作流
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/c5b8b0a2-c3fb-437f-bd6f-07549f2c5709

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-06 04:26:30 +00:00
copilot-swe-agent[bot] bbd3f49ce5 feat: add protocol mirror engine for Xray-core auto-update
Adds server/proxy/service/protocol-mirror.js — the Protocol Mirror Engine
that monitors Xray-core releases and manages automatic updates with:

- GitHub API polling (every 6h) with result caching
- Installed vs latest version comparison
- TLS/Reality fingerprint consistency checks
- LLM-powered update risk analysis via llm-router.js
- Safe auto-update: download → backup → install → verify → restart
- Failure protection: 3 consecutive failures triggers admin alert
- Update summary generation for email-hub distribution
- State persistence to data/protocol-mirror-status.json

Runs as a PM2-managed service checking every 30 minutes.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-06 04:06:17 +00:00
zhuyuan-bot 633811fab1 📡 部署日志采集 · 24015766321 [skip ci] 2026-04-06 02:04:50 +00:00
冰朔 167661fd3d
Merge pull request #295 from qinfendebingshuo/copilot/fix-zhuyuan-3-0-upgrade-issues
fix: nginx backup files in sites-enabled cause duplicate default_server on switch-v3
2026-04-06 10:03:34 +08:00
zhuyuan-bot 66360469c0 🎖️ 铸渊将军唤醒 · 2026-04-06 10:00 · 仪表盘+HLDP同步+签到更新 2026-04-06 02:00:00 +00:00
copilot-swe-agent[bot] 4052b7a4b0
fix: move nginx backup files out of sites-enabled to prevent duplicate default_server conflict
Root cause: switch_v3() created backup files (.v2-backup, .pre-repair) inside
/etc/nginx/sites-enabled/. Nginx loads ALL files in sites-enabled/, so backup
files declaring 'listen 80 default_server' caused duplicate default_server errors.

Fix:
- Add NGINX_BACKUP_DIR=/opt/zhuyuan-brain/nginx-backups for storing backups
  outside sites-enabled/
- Add clean_stale_nginx_backups() to remove any residual backup files from
  sites-enabled/ before nginx operations
- Both deploy_v3() and switch_v3() now call cleanup on entry

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/55e3ada6-8ce8-4123-8f45-d20f6b369037

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-06 01:43:42 +00:00
zhuyuan-bot db8d90fa4a 📡 部署日志采集 · 24015086539 [skip ci] 2026-04-06 01:30:34 +00:00
冰朔 e81b1eff47
Merge pull request #294 from qinfendebingshuo/copilot/fix-communication-system-sync
fix: V2→V3 switch fails due to sed injecting V3 location blocks at every `^}` in nginx config
2026-04-06 09:29:23 +08:00
copilot-swe-agent[bot] 03234032e0
fix: 移除多余trailing echo,修正blank line清理sed模式
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/d77eb92f-55c9-4cb8-92db-2c4ce8754a8a

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-05 18:31:34 +00:00
copilot-swe-agent[bot] 09aa1ee35d
fix: V3 nginx注入使用精确定位替代fragile sed模式,添加预检查和自动修复
根因:deploy_v3() 使用 sed '/^}/i\' 在多server块配置中重复注入V3 location块
导致nginx语法错误,switch_v3切换时nginx -t验证失败回滚

修复:
- 新增 inject_v3_nginx_block() 精确定位最后一个顶层}
- 新增 remove_v3_nginx_blocks() 清理错误注入
- 新增 validate_nginx() 显示实际错误信息
- switch_v3() 添加预检查和自动修复已损坏配置
- deploy_v3() 使用安全注入并报告nginx验证失败

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/d77eb92f-55c9-4cb8-92db-2c4ce8754a8a

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-05 18:29:44 +00:00
zhuyuan-bot d5e69175a9 📡 部署日志采集 · 24007438037 [skip ci] 2026-04-05 18:12:41 +00:00
冰朔 c28ac150b3
Merge pull request #293 from qinfendebingshuo/copilot/update-to-official-release
feat: 铸渊专线V3 测试版→正式版
2026-04-06 02:11:30 +08:00
copilot-swe-agent[bot] 34bb7f0b28
feat: 铸渊专线V3正式版上线 — 测试版→正式版迁移完成
- send-subscription.js: 邮件从🧪测试版改为正式版
- subscription-server-v3.js: 注释从测试端口改为生产端口
- deploy-brain-proxy.sh: 部署脚本从测试环境改为生产环境
- deploy-brain-proxy.yml: 工作流名称移除测试字样
- verification-progress.md: 标记V3正式版上线

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/42e61d97-f841-4606-b9fd-409ff4dd883c

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-05 16:59:34 +00:00
冰朔 ccc7d7c532
Merge pull request #291 from qinfendebingshuo/copilot/fix-email-receiving-issue
fix: run V3 subscription email script locally instead of on stale server copy
2026-04-06 00:42:11 +08:00
copilot-swe-agent[bot] 36becd2840
fix: V3邮件发送改为本地执行,修复服务器脚本版本过旧导致send-v3命令不识别
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/9901ef74-496e-44c8-b41a-350fbcdefc24

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-05 16:37:57 +00:00
zhuyuan-bot fc83587313 📡 部署日志采集 · 24005665237 [skip ci] 2026-04-05 16:30:59 +00:00
冰朔 7f83ffa332
Merge pull request #289 from qinfendebingshuo/copilot/add-link-to-3-0-test-version
feat: add send-subscription-v3 for V3 test subscription email delivery
2026-04-06 00:29:52 +08:00
copilot-swe-agent[bot] ee3b862b19
feat: add send-subscription-v3 action to send V3 test subscription links via email
- Add send-subscription-v3 workflow option and job in deploy-brain-proxy.yml
- Add send-v3 command and V3 email template (光湖语言世界 branding) in send-subscription.js
- V3 email includes subscription URL, dashboard URL, and V3 upgrade highlights
- Validate dashboard URL fallback when not explicitly provided

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/62274291-68ff-4ee3-8a3e-e424453f4c6d

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-05 16:26:33 +00:00
zhuyuan-bot 4f80658259 📡 部署日志采集 · 24005119490 [skip ci] 2026-04-05 15:59:58 +00:00
冰朔 39de7bae25
Merge pull request #288 from qinfendebingshuo/copilot/add-vpn-reverse-accelerator-agent
VPN V2→V3: 光湖语言世界 — LLM路由器 + 反向加速Agent + 流量仪表盘
2026-04-05 23:58:46 +08:00
copilot-swe-agent[bot] 0bac15c1e3
V3修复: XSS防护(HTML转义), LLM路由器路径修复, context长度限制, deploy grep/sed一致性
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/226aae4f-48b7-4668-850c-7858729e6aa0

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-05 15:52:35 +00:00