Commit Graph

21 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] a10e020d26 fix: web deploy diagnostic + module navigation + post-deploy smoke test
- Add cost-control/index.html redirect for proper Nginx serving
- Update docs/index.html navigation with all modules (cost-control, devboard, persona-studio)
- Add devboard symlink step to deploy workflow (modules/devboard → devboard)
- Add post-deploy smoke test step checking all module directories
- Expand deploy verification to check all key modules
- Create scripts/web-deploy-diag.sh for Phase A server diagnostics
- Create data/web-deploy-diag-20260324.txt diagnostic log
- Create data/web-deploy-fix-report.json fix report

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/4d7b9c05-531f-4e93-a770-f9324c663c38
2026-03-24 10:20:05 +00:00
copilot-swe-agent[bot] 2caffb33cc feat: trinity-id.json v2.0 + 62 Agent parent_sys/owner + 67 Workflow sovereignty headers + workflow-alias-map.json [ZY-ID-RECON-2026-0322-001 Steps 1-3]
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/0a623113-5c1b-463c-8ccf-1f56e97def38
2026-03-22 14:36:44 +00:00
copilot-swe-agent[bot] cecde1d924 feat: PM2 server diagnosis workflow + Notion report + port conflict fix
- Add pm2-server-diagnose.yml workflow for SSH-based PM2 diagnosis
- Add server-diagnose-report.js script for Notion ticket creation
- Fix port conflict: guanghulab (src/index.js) now uses port 3001
- Update ecosystem.config.js to align with deploy workflow process names

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-13 13:53:55 +00:00
copilot-swe-agent[bot] 2062878c9f fix: 修复 Persona Studio 「我要开发」任务提交失败
根因修复:
1. Nginx CORS 头缺失(跨域预检失败导致 fetch 抛出异常)
2. WebSocket /ws/preview 路由被 /ws 匹配到端口 8080(应路由到 3002)
3. 前端开发端口不匹配 (3721 → 3002)

增强:
- 添加重试机制(最多2次重试)
- 提供详细错误诊断信息
- 更新 nginx-api-proxy.conf 参考配置
- 修复 smoke test 默认端口

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-13 07:09:19 +00:00
copilot-swe-agent[bot] 225d179acc fix: align workflow secret references with configured GitHub Secrets names
- NOTION_TOKEN → NOTION_API_TOKEN (8 workflow files)
- CHANGES_DB_ID → NOTION_CHANGE_LOG_DB_ID (3 workflow files)
- SYSLOG_DB_ID → NOTION_SYSLOG_DB_ID (2 workflow files)
- bingshuo-neural-system.yml: add git pull --rebase to fix race condition
- sync-persona-studio.yml: add concurrency group + fix if condition
- Create brain recovery log

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-12 13:40:16 +00:00
copilot-swe-agent[bot] 39d6d43b53 fix: add secrets validation step to CD pipeline, add diagnostic report
The deploy job now validates DEPLOY_HOST, DEPLOY_USER, DEPLOY_KEY, and
DEPLOY_PATH secrets before attempting SSH operations. This replaces the
cryptic ssh-keyscan failure with a clear error message explaining which
secrets need to be configured.

Also made ssh-keyscan more robust by quoting the hostname and adding
fallback handling.

Ref: YM-CD-DEBUG-20260310-001

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-10 14:38:06 +00:00
copilot-swe-agent[bot] 39a688ed03 feat: persona-studio 后端服务 + 智能模型路由 + 部署集成
- backend/server.js (Express on port 3002)
- routes: auth, chat, build, notify
- brain: memory-manager, persona-engine, code-generator, model-router
- model-config.json (routing strategy)
- utils: github-api, email-sender
- deploy workflow: PM2 + Nginx proxy for /api/ps/
- GitHub Actions: ps-on-login/chat/build/complete workflows
- Frontend API paths updated to /api/ps/ prefix

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-10 05:15:56 +00:00
copilot-swe-agent[bot] 5253def3b0 Address code review: extract formatDocs helper, remove diagnostic log
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-08 15:16:55 +00:00
copilot-swe-agent[bot] c52568df87 v5.4: remove 冰朔 shortcut, add file upload, 200k context, fix API, clean modules
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-08 15:13:44 +00:00
copilot-swe-agent[bot] 56db2c9c50 fix: 简化PM2环境变量设置(code review反馈)
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-08 14:29:22 +00:00
copilot-swe-agent[bot] 2afe93e1a1 feat: 团队登录模式 + API代理部署 + 128k上下文(无需API密钥)
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-08 14:28:10 +00:00
copilot-swe-agent[bot] 8743cde59a YM-COLLAB-20260307-001: 添加 guanghulab-main 到 rsync 排除 + CD 验证标记
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-07 12:12:30 +00:00
copilot-swe-agent[bot] b0f2faabd0 fix: address code review — clarify Nginx escaping comment, search only sites-available
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-07 11:35:26 +00:00
copilot-swe-agent[bot] 47e401db31 feat(backend): 后端启动配置 — WebSocket生产地址 + Nginx反向代理 + pm2开机自启
YM-BACKEND-20260307-001:
- status-board/index.html: 修复重复脚本引用和重复闭合标签,
  WebSocket地址自动检测(生产环境wss://host/ws,本地ws://localhost:8080)
- deploy-to-server.yml: 新增WebSocket服务(mock-ws-server.js)pm2部署,
  添加pm2 startup开机自启,新增Nginx API(/api/→3000)和WebSocket(/ws→8080)
  反向代理自动配置(snippets方式注入server块)

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-07 11:34:02 +00:00
copilot-swe-agent[bot] d0e08a80b8 fix: 改善后端部署诊断输出,移除 npm stderr 静默
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-07 10:43:15 +00:00
copilot-swe-agent[bot] 15187c8b89 feat: 全站部署 — rsync 同步全仓库 + 模块导航 + 后端部署 + Nginx 配置
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-07 10:41:56 +00:00
copilot-swe-agent[bot] ff3e459202 fix: 修复服务器部署失败 — rsync 前确保远程目录存在
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-07 10:35:43 +00:00
copilot-swe-agent[bot] d001e8d704 修复 rsync 安装错误消息:补充 yum 和 sudo 权限提示
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-07 10:22:22 +00:00
copilot-swe-agent[bot] 6971d93a87 🌐 明确 guanghulab.com = GitHub Pages 部署 + 修复远程服务器 rsync 安装
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-07 10:21:41 +00:00
copilot-swe-agent[bot] 90883a87ab 🧊 冰朔人格体:修复部署阻塞 · 移除坏 submodule + 竞态条件修复 + rsync 保障
Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-07 09:54:24 +00:00
copilot-swe-agent[bot] 554fe668dc feat: add CD workflow deploy-to-server.yml (工单 YM-CD-20260307-001)
- Job 1 (validate): HLI contract check + module fingerprint check
- Job 2 (deploy): rsync docs/ to server via SSH with safety checks
- Job 3 (notify): Push deployment record to Notion changelog
- Trigger: push to main (excludes non-frontend paths)
- Requires: DEPLOY_HOST, DEPLOY_USER, DEPLOY_KEY, DEPLOY_PATH secrets

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-07 09:09:13 +00:00