Commit Graph

17 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] ffd9b8c803
🔧 邮件SMTP凭据注入+部署脚本补全∞版本服务文件
- 邮件错误提示优化: 隐藏内部SMTP配置细节,显示友好的"邮件服务维护中"
- 部署脚本: 新增inject_smtp_credentials函数,deploy-v3/deploy-infinity自动注入SMTP到.env.keys
- 部署脚本: 补全∞版本服务文件部署(email-hub.js/bandwidth-pool-agent.js/user-guardian-agent.js/auto-evolution.js)
- 部署workflow: 传递ZY_SMTP_USER/ZY_SMTP_PASS到大脑服务器部署步骤

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/a6f72ab2-7227-4382-920c-0e1aa91dba2e

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-08 04:13:43 +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] 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] 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] 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] 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] 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] 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