zhizhi/server
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
..
age-os 🔑 密钥统一 · ZY_QWEN→ZY_QIANWEN · ZY_ZHIPU→ZY_QINGYAN · COS/Notion修复 · AOAC推送防冲突 2026-04-11 07:07:24 +00:00
app feat: Add persona memory bridge - give 铸渊 real memory and personality 2026-04-12 09:43:03 +00:00
cn-llm-relay fix: validate empty messages + trim relay host whitespace 2026-04-11 14:48:32 +00:00
nginx fix: 修复 Awen 反向代理 Nginx $connection_upgrade 变量未定义问题 2026-04-12 08:28:20 +00:00
proxy 更新Awen服务器注册信息:域名guanghutcs.top·广州IP 43.139.207.172·端口3000·密钥已配置 2026-04-12 07:47:47 +00:00
scripts 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 2026-03-29 11:19:27 +00:00
setup D57: Brain server init script + AGE OS deployment infrastructure 2026-04-05 07:46:18 +00:00
sites feat: redesign cn-landing page - remove 光 logo, add English text, enhance UI effects 2026-04-12 08:30:14 +00:00
architecture.md 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 2026-03-29 11:19:27 +00:00
brain-server-profile.json D56: 4核8G大脑服务器(ZY-SVR-005·43.156.237.110)归入配置结构·密钥清单输出 2026-04-05 06:28:37 +00:00
cn-server-profile.json fix: CN服务器SSH端口可配置 · 修复Connection timed out · 添加ZY_CN_SSH_PORT支持 2026-03-31 09:53:33 +00:00
ecosystem.config.js fix: remove PORT/ZY_SITE_MODE from .env.app to prevent PM2 port conflict 2026-04-11 15:42:11 +00:00
feimao-server-profile.json 铸渊第五次对话 · 四层架构入库 · 服务器编号修正 · COS宿舍楼 · P0-P3优先级 · v11.0 2026-03-30 10:57:08 +00:00
migration-markers.json chore: 服务器迁移 ZY-SVR-001(香港) → ZY-SVR-002(新加坡) 2026-03-29 11:14:42 +00:00
migration-plan.md 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 2026-03-29 11:19:27 +00:00
persona-brain-architecture.md 铸渊第四次对话 · 物理基础设施落地 · 国内服务器注册 · 核心大脑迁移架构 · README精简 · 密钥清单v2.0 2026-03-30 10:38:38 +00:00
zhuyuan-server-profile.json fix: 聊天API fallback链修复 + 纠正guanghulab.com域名架构 + 密钥诊断 2026-04-11 18:06:22 +00:00