Commit Graph

27 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] 4d2ace8273
🔧 代码审查修复: fallback边界保护+注释优化+常量提取
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:16:33 +00:00
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] 7ce2b51090
🔧 Claude专线fallback+仪表盘实时刷新+README更新频率提升
- Claude专线: select→fallback自动切换,硅谷不可用时自动回落到其他节点
- Claude手动: 新增select组包裹fallback组,用户可手动切换指定节点
- 仪表盘: 新增/dashboard-api/{token}实时JSON接口,页面加载自动拉取最新数据
- 所有仪表盘字段添加ID,支持JavaScript动态更新(无需刷新整页)
- README仪表盘更新频率: 每天1次→每6小时1次,VPN代码变更也自动触发

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:09:51 +00:00
copilot-swe-agent[bot] ca1d75494d
修复代码审查反馈: event参数传递 + 刷新倒计时提示
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/98f7f760-839a-42c7-b716-fa39b6021391

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-08 03:46:04 +00:00
copilot-swe-agent[bot] 9e7c40a025
仪表盘增加加速状态面板 + Claude专线始终可选 + 订阅更新入口 + bandwidth-user-status API
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/98f7f760-839a-42c7-b716-fa39b6021391

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-08 03:43:28 +00:00
copilot-swe-agent[bot] edf3cfedd4
修复邮件发送: TLS error handler重构 + 错误信息透传
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/98f7f760-839a-42c7-b716-fa39b6021391

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-08 03:40:14 +00:00
copilot-swe-agent[bot] 2309984c89
fix: SMTP多行响应解析+邮件错误反馈+加速状态显示+Claude专线独立代理组
1. email-hub.js: 重写SMTP data handler,正确处理多行EHLO响应
   - 使用buffer逐行解析,只在最终响应行(NNN+空格)后发送下一命令
   - 添加SMTP错误码检查(4xx/5xx)

2. subscription-server-v3.js:
   - /bandwidth-send-code: 邮件发送失败时正确返回 success:false
   - 仪表盘新增"带宽共享"加速状态行(🚀 加速已生效)
   - 验证成功后前端实时更新加速状态
   - Clash YAML新增独立 🇺🇸 Claude专线 代理组(type:select)
   - claude.ai/anthropic.com 路由至Claude专线组

3. bandwidth-pool-agent.js:
   - 新增 isContributor(email) 函数
   - 导出新函数

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/875a729b-385f-406d-bb55-05f05b00db9b

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