Commit Graph

75 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] c326187af6
fix: dashboard verification code buttons unresponsive - template literal regex escaping broke JS
The regex `/\\/dashboard\\/[a-f0-9]+$/` inside a template literal produced
`//dashboard/[a-f0-9]+$/` in the browser (JS comment), breaking all
function definitions. Replaced with indexOf/substring approach to avoid
template literal escape issues entirely.

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/c6b1f183-6fbc-4cee-b903-ce22d94e2f81

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-08 00:59:23 +00:00
copilot-swe-agent[bot] ae9c987981
fix: 修复仪表盘带宽验证码API路径错误导致网络错误
根因: dashboard页面fetch使用硬编码绝对路径 /bandwidth-send-code,
通过nginx代理 /api/proxy-v3/ 访问时请求到错误路径导致404。
修复: 从window.location.pathname动态提取API前缀,兼容直接访问和代理。

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/ca70b379-6057-4f7e-b774-e607d7b8bbc6

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-08 00:44:13 +00:00
copilot-swe-agent[bot] 5749ad7ccb
fix: 改进仪表盘带宽验证 - 邮箱格式校验+数字验证码检查
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/a13d4c74-f23c-45ce-9df9-ea5796120fbc

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-08 00:24:21 +00:00
copilot-swe-agent[bot] ac2a26ec64
fix: 带宽验证码模块从GitHub Pages迁移到用户仪表盘
- 移除 docs/index.html 中的带宽验证码页面(CSS/HTML/JS)
- 在 subscription-server-v3.js 用户仪表盘中集成带宽验证功能
- 仪表盘中邮箱自动填充、发送验证码、验证码提交、60s冷却
- 解决 guanghulab.online 无法正常展示的问题

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/a13d4c74-f23c-45ce-9df9-ea5796120fbc

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-08 00:22:12 +00:00
copilot-swe-agent[bot] 2d13119a92
修复代码审查建议 · SV节点验证条件对齐 · deploy密钥分组
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/4e027d8c-e244-4c46-91a9-74988f060a38

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-07 23:39:56 +00:00
copilot-swe-agent[bot] a5beab2837
新增硅谷Claude专线VPN节点 · subscription-server-v3 + zy-cloud-vpn + deploy-brain-proxy + server-registry + docs
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/4e027d8c-e244-4c46-91a9-74988f060a38

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-07 23:36:55 +00:00
copilot-swe-agent[bot] 8d408d1ce2
fix: address code review feedback - extract constants, fix Claude model matching, workflow conditions
- llm-router.js: fix isClaudeModel() to properly match against CLAUDE_MODELS array
- deputy-message-board.js: extract magic numbers to named constants (RETRY_BASE_DELAY_MS, MAX_ERRORS_KEPT, etc.)
- subscription-server-v3.js: extract rate limit to MAX_SEND_CODE_PER_HOUR constant
- deputy-message-board.yml: add github.event_name != 'schedule' condition to event mode job

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/a513d091-ce5c-40d4-bb3c-0adeff70b5b0

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-07 17:27:51 +00:00
copilot-swe-agent[bot] 656febf8d6
feat: P1 带宽共享验证Agent做到GitHub Pages首页
- docs/index.html 新增带宽共享页面 (#pg-bandwidth)
  - 邮箱输入 + 发送验证码按钮
  - 6位验证码输入 + 同意共享协议
  - 实时带宽池状态显示 (贡献者/活跃/总贡献)
  - 60秒发送冷却 + 前端表单校验
  - 完整CSS样式 (暗色主题风格)
- docs/index.html 系统页新增快速入口
  - 🌊带宽共享加速池 → 跳转到带宽页
  - 🎖️铸渊副将留言板 → 创建Issue
- subscription-server-v3.js 新增3个公开API
  - POST /bandwidth-send-code (发送验证码·限流3次/小时)
  - POST /bandwidth-verify-code (验证码校验+注册贡献者)
  - GET /bandwidth-pool-status (带宽池状态)
  - OPTIONS预检支持 (CORS跨域)
- zhuyuan-sovereign.conf Nginx增加CORS支持
- README.md 仪表盘增加副将Agent状态区

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/a513d091-ce5c-40d4-bb3c-0adeff70b5b0

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-07 17:24:43 +00:00
copilot-swe-agent[bot] 21da998d6e
feat: P0 铸渊副将活化v2.0 + P2 硅谷Claude专线配置
P0: 铸渊副将从死模块升级为活体Agent
- scripts/deputy-message-board.js 完全重写
  - LLM多模型自动降级 (deepseek→qwen→moonshot→zhipu)
  - 巡查模式: 定时扫描所有未回复Issue
  - 事件模式: Issue/Comment即时回复
  - L1自感知: data/deputy-status.json 状态追踪
  - L2自修复: 每模型重试2次+递增等待
  - L3升级通报: 连续3次失败创建Issue
- deputy-message-board.yml 升级
  - 新增 schedule 定时触发 (08:00/23:00 CST)
  - 新增巡查模式job
  - 状态文件自动提交
- data/deputy-status.json 初始状态文件

P2: 硅谷Claude专线配置
- server/proxy/config/claude-relay-config.json 中继架构配置
- server/proxy/config/server-registry.json 四台服务器注册表
- llm-router.js Claude模型自动走硅谷中继

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/a513d091-ce5c-40d4-bb3c-0adeff70b5b0

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-07 17:20:49 +00:00
copilot-swe-agent[bot] e7214e21b7
refactor: address code review - simplify snapshot init, deduplicate IP extraction
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/1de8212f-1deb-462f-8d19-03f82a7ec9fe

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-06 10:59:38 +00:00
copilot-swe-agent[bot] 1492ba0009
fix: remove clickable links from emails, add public auth page with verification code input
- email-hub.js: Remove all <a href> links from bandwidth-auth and V3 subscription emails
  - Emails now contain only verification code + plain text URL guidance
  - Guide users to manually type guanghulab.online/auth in Chrome browser
  - Remove authPageUrl parameter from sendBandwidthAuthEmail()
  - Remove bwAuthUrl from generateSubscriptionV3Email()
  - Simplify CLI bandwidth-auth and batch sendBandwidthAuthAllEmail()

- subscription-server-v3.js: Add public bandwidth-auth-open endpoint
  - GET /bandwidth-auth-open: Public auth page with email + code input + consent checkbox + "我同意授权" button
  - POST /bandwidth-auth-open: Validate email + code, register contributor, save operation snapshot
  - Add saveAuthSnapshot() function for user operation audit trail
  - Update existing token-based auth page button text to "我同意授权"
  - Add snapshot saving to existing token-based auth POST handler
  - Remove authPageUrl from /bandwidth-send-code/{token} endpoint

- zhuyuan-sovereign.conf: Add /auth short path proxy in preview domain
  - guanghulab.online/auth → V3 subscription service /bandwidth-auth-open
  - Users type short URL instead of full API path

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/1de8212f-1deb-462f-8d19-03f82a7ec9fe

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-06 10:57:22 +00: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] 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
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
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
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
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
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
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
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
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
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
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
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
copilot-swe-agent[bot] 7d33e49101
V3升级Phase3: 更新deploy-brain-proxy.sh支持deploy-v3/switch-v3, 更新工作流添加V3操作选项
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:48:04 +00:00
copilot-swe-agent[bot] 5a42b0a5e3
V3升级Phase2: 创建subscription-server-v3.js(品牌重命名/硬切/仪表盘/优化配置), 升级proxy-guardian.js, 新增PM2+Nginx V3配置
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:45:06 +00:00
copilot-swe-agent[bot] 68d737fc45
V3升级Phase1: 新增llm-router.js + reverse-boost-agent.js, zy-cloud-vpn.js增加consultAI第6接口
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:39:42 +00:00
copilot-swe-agent[bot] 2e5ca40f12
D58·代码审查反馈修复·池配额缓存优化+百分比边界处理+注释改进
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/e78a092d-e987-459c-96bd-e99135555b3c

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-05 12:06:55 +00:00
copilot-swe-agent[bot] 8cb9374fa3
D58·铸渊专线2.0正式启用·V1停用·共享流量池2000GB/月·每月1号重置
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/e78a092d-e987-459c-96bd-e99135555b3c

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-05 12:04:47 +00:00
copilot-swe-agent[bot] b2aaeeab88
fix: V2 VPN subscription 404 - nginx path /api/proxy-sub/ → /api/proxy-v2/
Root cause: deploy-brain-proxy.yml generates subscription URLs with
/api/proxy-v2/ path, but nginx config and deploy script incorrectly
used V1 path /api/proxy-sub/, causing 404 on subscription requests.

Changes:
- nginx-brain-proxy-snippet.conf: location /api/proxy-sub/ → /api/proxy-v2/
- deploy-brain-proxy.sh: all inline nginx templates, grep checks,
  perl/sed injections, and health checks updated to /api/proxy-v2/
- Added migration logic to auto-fix existing servers with old path

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/8e4facc2-e5bd-4114-bfd0-ec0d2ca93b6d

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-05 11:11:49 +00:00
copilot-swe-agent[bot] 3178c96b35
fix: V2订阅发送缺少send参数 + URL覆盖未生效
工作流调用send-subscription.js时遗漏send命令参数,
导致邮箱被解析为操作名触发"未知操作"错误。
同时修复generateSubscriptionEmail不接受URL覆盖参数的问题,
使V2工作流传入的/api/proxy-v2/路径正确用于邮件内容。

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/c366b233-2a6b-4347-bb66-9013b9af3629

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-05 10:28:02 +00:00
copilot-swe-agent[bot] e646b24139
改进Nginx配置函数: 更灵活的端口匹配+更安全的配置注入+更好的错误处理
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/2d8735f4-e1e5-40a4-afec-464aa2dbae9d

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-05 09:02:27 +00:00
copilot-swe-agent[bot] 7907053588
D57修复: Nginx反代端口3802→3803 + 大脑服务器自动Nginx配置
根因: nginx-proxy-snippet.conf指向V1端口3802, 但V2订阅服务监听3803
修复:
- 新建nginx-brain-proxy-snippet.conf (V2·端口3803)
- deploy-brain-proxy.sh新增configure_nginx函数
- install/update操作自动配置Nginx反向代理
- 自动检测并修复3802→3803端口错误
- health_check新增Nginx反代检查
- 更新V1 snippet注释标明仅用于面孔服务器

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/2d8735f4-e1e5-40a4-afec-464aa2dbae9d

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-05 09:00:50 +00:00
copilot-swe-agent[bot] bd58cf1b7b
D57: Address code review feedback - configurable timeouts, security fixes, dynamic specs
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/24c233b1-db72-4d9c-b668-22679479825b

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-05 08:12:16 +00:00
copilot-swe-agent[bot] 4fc20144c3
D57: ZY-CLOUD VPN living module v2 - HLDP dynamic node registration + VPN Worker
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/24c233b1-db72-4d9c-b668-22679479825b

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-05 08:09:01 +00:00
copilot-swe-agent[bot] f26bb88872
D57: ZY-CLOUD VPN living module with 5 LivingModule interfaces
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/24c233b1-db72-4d9c-b668-22679479825b

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-05 08:03:55 +00:00
copilot-swe-agent[bot] 5abe4aa852
D57: Three-node smart routing + UUID sync to face server
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/24c233b1-db72-4d9c-b668-22679479825b

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-05 08:00:05 +00:00
copilot-swe-agent[bot] eb7e05306f
D57: VPN V2 multi-user system with per-email isolation
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/24c233b1-db72-4d9c-b668-22679479825b

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-05 07:54:00 +00:00
copilot-swe-agent[bot] 24b5ec9d80
Phase 0: Add client API endpoints for ZY VPN client (sing-box config, nodes, status, speedtest, diagnostics)
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/f586f1d5-1eda-4ae0-8827-20cd06a36142

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-04 17:57:55 +00:00
copilot-swe-agent[bot] bd0b14313c
fix: add cloud firewall diagnostics and ensure UFW port 443 for VPN
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/c8257ad8-5a4b-4bd5-8df3-b895d8806ac9

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-04 16:36:29 +00:00
copilot-swe-agent[bot] b72d72036b
fix: 移除 Nginx duplicate default_server 冲突 — 两个部署入口都删除 /etc/nginx/sites-enabled/default (D52)
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/b6918f45-0c40-4738-978f-5630bf9ab8b4

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-04 16:11:19 +00:00
copilot-swe-agent[bot] 06ce7d6d38
fix: 代码审查反馈 — sed模式兼容空白、server_name去重检查、.env.keys解析健壮性
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/b544c0e1-240b-465e-9194-6ca0e2719deb

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-04 12:17:20 +00:00
copilot-swe-agent[bot] 578b50dd22
fix: 铸渊专线Nginx反代根因修复 — default_server + localhost + 健康检查Host头 + 全流程验证进度表
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/b544c0e1-240b-465e-9194-6ca0e2719deb

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-04 12:16:09 +00:00
copilot-swe-agent[bot] 37f44b87c9
fix: 解决code review和CodeQL反馈 — 移除tainted format string、EADDRINUSE退出不重试、uncaughtException优雅退出、clientError日志、sed注入proxy_send_timeout
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/88ed5687-7596-4d04-b181-57c89c032004

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-04 09:47:43 +00:00
copilot-swe-agent[bot] 71eda1389f
fix: 铸渊专线订阅服务修复 — PM2 fork模式、错误处理、Nginx配置路径、健康检查增强
根因分析:
- PM2使用cluster模式可能干扰server.listen('127.0.0.1')绑定
- subscription-server.js缺少try-catch和进程级错误处理,异常导致静默崩溃
- deploy-proxy.sh的configure_nginx()目标文件错误(/etc/nginx/sites-enabled/default → zhuyuan.conf)
- update()不调用configure_nginx(),主部署覆盖Nginx配置后proxy-sub location丢失
- 健康检查仅测直连3802,未验证Nginx反代路径
- Nginx反代缺少proxy_connect_timeout/proxy_read_timeout

修复:
1. ecosystem.proxy.config.js: 添加exec_mode:'fork'防止cluster模式
2. subscription-server.js: 请求级try-catch + server error/clientError事件 + uncaughtException保护
3. deploy-proxy.sh: configure_nginx()自动查找正确配置文件 + update()调用configure_nginx + 双路健康检查
4. zhuyuan-sovereign.conf: 添加proxy timeout配置
5. nginx-proxy-snippet.conf: 同步更新proxy_http_version和timeout

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/88ed5687-7596-4d04-b181-57c89c032004

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-04 09:45:36 +00:00