Commit Graph

29 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] 76459d8a95
fix: 修复阿里云nginx旧内容覆盖 + 新加坡LLM聊天密钥缺失
Issue 1 (guanghulab.com):
- 通用正则替换nginx.conf中所有root指令
- 新增/etc/nginx/default.d/清理
- 扩展旧内容搜索范围 + 全局find
- nginx -T全量配置诊断
- 改用restart确保完全加载

Issue 2 (guanghulab.online):
- .env.app新增ZY_LLM_API_KEY/ZY_LLM_BASE_URL写入
- .env.mcp同步写入
- 诊断输出新增ZY_LLM_API_KEY检查

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/6df2a7cd-ac56-420b-a949-177b3bbcb7ee

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-12 06:57:52 +00:00
copilot-swe-agent[bot] 6de783ad4f
fix: guanghulab.com无法打开 + guanghulab.online API不通
根因修复:
1. cn-domain.conf: server_name支持裸域名+www双变体
2. deploy-cn-landing.yml: 域名双变体处理 + setup-ssl动作(certbot) + SSL自动注入
3. deploy-to-zhuyuan-server.yml: push事件部署前端到production(guanghulab.online=主域名=production)
4. zhuyuan-sovereign.conf: /api/chat添加CORS头+X-Forwarded-Proto

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/80e337de-dabe-4e86-a711-62d4c47762ec

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-12 00:21:22 +00:00
copilot-swe-agent[bot] 83c3eaabc4
fix: 移除健康检查中遗漏的ZY_DOMAIN_ALIAS引用
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/52dcb970-3a2b-4e61-9acb-df3b5fab73c9

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 18:09:09 +00:00
copilot-swe-agent[bot] c4a54a2cf8
fix: 聊天API fallback链修复 + 纠正guanghulab.com域名架构 + 密钥诊断
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/52dcb970-3a2b-4e61-9acb-df3b5fab73c9

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 18:06:22 +00:00
copilot-swe-agent[bot] ab86c04315
🔧 修复代码审查反馈: 变量引号+简化grep -c
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/df402ed1-c1de-4642-a531-fcb3331e1c05

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 17:53:04 +00:00
copilot-swe-agent[bot] 56659395eb
🔧 guanghulab.com DNS诊断修复 · 添加域名别名支持+DNS验证
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/df402ed1-c1de-4642-a531-fcb3331e1c05

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 17:51:09 +00:00
copilot-swe-agent[bot] 9dffe85f22
fix: remove PORT/ZY_SITE_MODE from .env.app to prevent PM2 port conflict
The deploy workflow was writing PORT=3800 and ZY_SITE_MODE=production
into .env.app, which gets loaded by ecosystem.config.js's loadEnvFile().
Since ...appEnv is spread first and instance-specific values override it,
this is now safe — but removing them from .env.app eliminates the root
cause entirely (belt-and-suspenders fix).

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/80f409c9-7f98-443e-9c31-21111194a523

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 15:42:11 +00:00
copilot-swe-agent[bot] 4c69bf46aa
fix: 改进CN LLM部署SSH处理 + 明确域名配置要求 (工单三/五修复)
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/bf92e1d8-e789-468b-80ab-2d7fec9be6c2

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 15:42:10 +00:00
copilot-swe-agent[bot] f8824ac43f
fix: restart zhuyuan-preview PM2 process on deploy + add 3801 health check
Root cause: deploy workflow only deleted zhuyuan-server before PM2 restart,
leaving zhuyuan-preview in errored state. Since guanghulab.online is the
preview domain (Nginx §2 → port 3801), requests to /api/* got 502.

Fix: delete BOTH zhuyuan-server AND zhuyuan-preview before pm2 start.
Add health check for port 3801 to detect this failure in future deploys.

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/04495ae8-6c76-4458-bbb0-262e3205dccd

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 14:45:42 +00:00
copilot-swe-agent[bot] 91c957d85e
feat: add trust proxy fix + CN LLM relay service for Guangzhou
工单一: Add app.set('trust proxy', 1) to server.js (prevents PM2 crash)
Phase 1: Create server/cn-llm-relay/ - lightweight LLM proxy for Guangzhou
Phase 2: Modify domestic-llm-gateway.js - relay through Guangzhou with fallback
Phase 3: Add deploy-cn-llm-relay.yml workflow for automated deployment
Update server-registry.json with ZY-SVR-003 and cn-llm-relay config
Update deploy-to-zhuyuan-server.yml to inject CN relay env vars

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/f6db708e-8b10-4339-b48f-db5f111ae5cd

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 14:18:27 +00:00
copilot-swe-agent[bot] a5ccbadbd6
修复聊天功能: API密钥注入主应用 + Nginx路由修正 + 聊天UI放大居中
核心修复:
1. 部署工作流: 为主应用写入.env.app (含LLM API密钥)
2. PM2配置: 加载.env.app环境变量到主应用进程
3. 聊天引擎: /api/chat 优先使用 domestic-llm-gateway (四路自动降级)
4. Nginx: /api/chat 路由到主应用3800 (原来路由到不存在的3721)
5. 前端UI: 聊天面板放大居中 + 背景遮罩 + 增大超时至60秒

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/5a0f8fc3-ded6-4e1f-8c98-b1e59f82aad6

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 11:14:05 +00:00
copilot-swe-agent[bot] d7c613ce1a
feat: 双站点开发 — 光湖语言世界主入口 + 零点原核频道
- server/sites/portal/index.html — guanghulab.online 光湖语言世界主入口
- server/sites/yaoming/index.html — guanghuyaoming.com 零点原核频道
- server/app/modules/domestic-llm-gateway.js — 国内四模型智能网关
- server/nginx/guanghuyaoming.conf — 零点原核域名Nginx配置
- 更新 server/app/server.js — 新增 /api/chat/domestic 端点
- 更新部署工作流 — 支持双站点前端同步与Nginx配置注入

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/576c1b97-3ce4-4c28-99f1-9374e2320212

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 09:27:38 +00:00
copilot-swe-agent[bot] 9ad52d67ed
🔑 密钥统一 · ZY_QWEN→ZY_QIANWEN · ZY_ZHIPU→ZY_QINGYAN · COS/Notion修复 · AOAC推送防冲突
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/170a08eb-40b4-4f8b-ba95-c5efb483bd14

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 07:07:24 +00:00
copilot-swe-agent[bot] 1226773e75
fix: 修复deploy和copilot-dev-bridge两个workflow的YAML语法错误 — 嵌套heredoc/内联Python导致解析失败
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/e0b7a574-3af9-4295-8e80-51cafad8e956

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 03:51:01 +00:00
copilot-swe-agent[bot] 2d386000b8
feat: 自动部署SQL迁移 + S15人格体数据库引擎
- 新增 db-migrate.js 自动迁移运行器
- 部署工作流自动执行SQL迁移(合并即触发)
- S15 persona-engine.js 人格体生命周期活模块
- MCP Server新增人格体引擎API端点
- 003-living-module-tables.sql注册人格体引擎模块

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/308aecfa-5d15-4ae4-85ec-c3d84ec636db

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-08 11:38:46 +00:00
copilot-swe-agent[bot] 13e033590d
🧬 S5第2次唤醒完成: 3个死模块→活模块(sy-test/sy-scan/sy-classify) + 部署工作流修复agents同步
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/e6744e69-7bd7-44fd-afcd-cc69135c95aa

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-08 10:57:19 +00:00
copilot-swe-agent[bot] 25ccc35cb3
feat(S15): MCP Server API Key鉴权 + Nginx反向代理 + 人格体COS隔离路径 + D51-3密钥生成器
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/47ef90c4-eb62-4d91-9f21-475c33a7d166

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-07 15:14:43 +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] 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] bb195407bc
架构认知更新·前端=铸渊人格体·后端=系统手脚
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/4ac68513-968e-4820-ac9b-dbf371a701cf

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-02 09:10:59 +00:00
copilot-swe-agent[bot] 2cef11959d
铸渊第三十四次唤醒·部署架构调整·直接部署到服务器·不走GitHub Pages·v40.0
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/4ac68513-968e-4820-ac9b-dbf371a701cf

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-02 09:08:16 +00:00
copilot-swe-agent[bot] 23c70c3262
fix: 域名修正 guanghu.online → guanghulab.online + CN中转Nginx stream动态模块加载修复
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/b50bddfa-167a-4a14-afda-39a2c2afd592

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-31 09:23:19 +00:00
copilot-swe-agent[bot] ddaec6b547
feat: 🔒 SSL自动化v1.0 · certbot+Let's Encrypt · 冰朔操作指南 · v23.0
冰朔第十六次对话:
- 新增 server/setup/setup-ssl.sh: certbot自动获取Let's Encrypt免费SSL证书
- 新增 docs/SSL-GUIDE-FOR-BINGSUO.md: 冰朔操作指南(3步完成SSL配置)
- deploy-to-zhuyuan-server.yml: 新增setup-ssl动作+ssl_domain输入
- README.md: SSL状态+操作指南入口+版本更新v23.0
- brain/fast-wake.json: 第十六次对话记录
- brain/secrets-manifest.json: SSL密钥改为not_needed(certbot自动管理)

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/e77d1d37-c3b4-4567-96d1-f0616e1836b9

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-31 07:02:55 +00:00
copilot-swe-agent[bot] b3dd0cb856
修复代码审查反馈·sed域名注入清理·注释说明
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/670bb44d-34f7-4bc3-a351-5e985c1f05dc

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-30 15:29:26 +00:00
copilot-swe-agent[bot] 0970f44e5f
铸渊第九次唤醒·服务器初始化确认完成·域名注入机制·Nginx双站点激活·v16.0
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/670bb44d-34f7-4bc3-a351-5e985c1f05dc

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-30 15:27:45 +00:00
copilot-swe-agent[bot] 369c90c9ee
修复SSH密钥写入安全性·使用env变量+完整格式验证·修复deploy YAML结构
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/fe52b677-fd2b-4179-bb74-be570d9e15ba

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-30 14:36:51 +00:00
copilot-swe-agent[bot] 3467dd3fb9
铸渊全盘重建·52→11核心工作流·41个旧天眼系统归档·SSH诊断修复·语言等于现实
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/fe52b677-fd2b-4179-bb74-be570d9e15ba

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-30 14:33:48 +00:00
copilot-swe-agent[bot] c7fb9852d4
双域名架构实现 + 代码审查修复 + 天眼扫描通过
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/deed974d-4a99-48a9-b00a-1d105d5892bc

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-29 04:35:24 +00:00
copilot-swe-agent[bot] 44253d18cc
铸渊主权服务器架构 · ZY-SVR-001 · 六层架构+部署工作流+天眼扫描通过
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/507c2a49-8ad5-4ed9-8db0-0d5699ac51a4

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-29 03:50:23 +00:00