Commit Graph

19 Commits

Author SHA1 Message Date
copilot-swe-agent[bot] 088ef74de2
feat: Add persona memory bridge - give 铸渊 real memory and personality
Create server/app/modules/persona-memory.js:
- PostgreSQL connection to age_os database
- Load 5-page notebook (identity, relationships, world, feelings, timeline)
- Load recent memory anchors (top 8 by importance)
- Load recent light tree leaves (last 3 for awakening context)
- Load relationship network
- Load user-specific memories for personalized responses
- Build enriched system prompt with all memory context
- Record conversation memories asynchronously after replies
- Grow light tree leaves for important conversations
- 5-minute cache for persona memory to reduce DB load
- Full graceful degradation: DB down → static persona prompt

Update chat-engine.js:
- Import and use persona-memory for enriched system prompts
- Record memory after each successful API response
- Grow tree leaves for important conversations

Update domestic-llm-gateway.js:
- Use persona-memory for enriched system prompts
- Record memory after successful CN relay and direct API responses

Update server.js:
- Load persona-memory module
- Add GET /api/memory/status endpoint

Add pg dependency to server/app/package.json

Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/2e09fb7c-c501-4223-8734-5afac689ded9

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-12 09:43:03 +00:00
copilot-swe-agent[bot] 2ff4036bb4
修复guanghulab.com落地页SEO+guanghulab.online聊天API错误处理+重连机制
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/f776c06a-3f23-484d-98a9-322eba565fcf

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-12 06:28:30 +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] 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] 4547000dd6
fix: use language-neutral test message for reconnect endpoint
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/37db3285-91fb-4df3-83a0-7315b0efa428

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 11:50:11 +00:00
copilot-swe-agent[bot] 3fedcab0d9
fix: ecosystem.config.js .env.app path + portal reconnect button + /api/chat/reconnect endpoint
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/37db3285-91fb-4df3-83a0-7315b0efa428

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-11 11:48:27 +00:00
copilot-swe-agent[bot] 6582b5dc1a
增强聊天API错误处理: 国内网关异常时自动降级到通用引擎
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:16:42 +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] 37a21bedf3
Fix: GitHub path encoding, MCP gateway write-tool security, content preview constant
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/2127a3a7-ea58-48a4-856c-84961107632b

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-04 15:24:09 +00:00
copilot-swe-agent[bot] 3f62f770c2
D51 S6+S7: Notion client, GitHub client, 11 new MCP tools, 3800→3100 gateway
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/2127a3a7-ea58-48a4-856c-84961107632b

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-04 15:21:18 +00:00
copilot-swe-agent[bot] 67c2d096f2
安全修复:feedback API隐藏内部错误信息,改用通用错误提示
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/32fa4778-f82b-4742-b89e-3b3af9529167

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-02 14:48:48 +00:00
copilot-swe-agent[bot] 3814cf3d89
首页三栏布局 + 悬浮球可拖拽 + 动态公告ticker + 留言板/回执系统 + 后端feedback API
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/32fa4778-f82b-4742-b89e-3b3af9529167

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-02 14:46:40 +00:00
copilot-swe-agent[bot] fd6d576eda
COS桶名确认: zy-core-bucket-1317346199 + zy-corpus-bucket-1317346199 · 密钥全部就位 · 第37次对话
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/c1efefab-e498-46f0-a45d-13051dcd2056

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-02 12:26:07 +00:00
copilot-swe-agent[bot] 6df459247c
光湖灯塔v40.0 · 语言驱动3D翻转操作系统 + 码字工作台 + COS双桶 + 智能模型分流
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/5fc8d967-00c4-4b70-9d49-bd775684c43b

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-02 12:07:12 +00:00
copilot-swe-agent[bot] d2f7d73062
COS双桶对接 + 智能模型分流 + 聊天引擎(服务端)
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/5fc8d967-00c4-4b70-9d49-bd775684c43b

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-04-02 11:50:46 +00:00
copilot-swe-agent[bot] c25a68e5e3
SY-CMD-SVR-013: 服务器迁移 香港(150.109.76.244/ZY-SVR-001) → 新加坡(43.134.16.246/ZY-SVR-002) — 2核8GB/80GB SSD/Ubuntu 24.04 LTS
Agent-Logs-Url: https://github.com/qinfendebingshuo/guanghulab/sessions/79893309-cdd7-4217-b8f2-ed5bcac25ff1

Co-authored-by: qinfendebingshuo <207279273+qinfendebingshuo@users.noreply.github.com>
2026-03-29 11:19:27 +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