Commit Graph

43 Commits

Author SHA1 Message Date
Kevin
544cc68106 fix alembic migration 2026-05-19 16:40:45 +08:00
Sully
cb84c00eca 添加staging release workflow (#22)
* update variable name

* update docker port

* fix alembic migration files

* 给远端 SSH 调用加了 keepalive

* fix app-expo code file format

* comment out quality test threshold

---------

Co-authored-by: Kevin <kevin@brighteng.org>
2026-05-11 11:33:07 +08:00
Kevin
175784292d implement staging workflow 2026-05-09 16:16:48 +08:00
Kevin
abf8497c2e fix/ 修复workflow对env占位符的处理 2026-04-10 16:44:26 +08:00
Kevin
309a051038 feat: 回忆录证据血缘与内部评测可追溯,顺带对齐本地评测台与 CI
数据库与模型:新增多版迁移(章节证据快照、对话血缘、记忆事实/时间线 lineage 等),把「成稿 ↔ 对话/记忆」的溯源信息落到表结构里。
业务链路:会话与 WS、回忆录/故事流水线、记忆写入与 enrichment 等跟着接上线索与快照;新增章节证据快照与评测侧 EvalTraceService 等模块,方便组评审用的证据包。
内部评测:自动化 run 与手工 memoir 评审共用可追溯证据;rubric/ judge 相关脚本与文档有配套调整。
app-eval-web:Memoir/实验详情里能展开看证据摘要与 evidence_trace(含对话轮次 id);Vite 代理与 development.sh 注入的 API 端口与当前默认内部评测端口一致,避免改端口后页面连错服务。
工程杂项:GitHub Actions / 仓库说明有更新;各适配器与支付/配额/plan 等多处为小改动或跟随主改动的收尾;新增/扩充了?
2026-04-08 15:37:09 +08:00
Kevin
43ef260ae2 fix/ 修复后端dockerworkflow会跑两次alembic的问题 2026-04-01 16:29:18 +08:00
Kevin
e4bf0710c7 feat(memory,conversation): 记忆富化/证据包、时间线幂等字段与对话分段全链路
数据库
- 新增迁移 0003:timeline_events.memory_source_id 外键 → memory_sources,便于按 ingest 源做时间线幂等

后端 - 记忆
- 新增 ingest 后 LLM 富化(摘要/事实/时间线),可配置开关与最大字符数
- 新增证据包组装:合并 chunk、摘要、事实、时间线、故事等检索结果;支持空 query 时是否仍带 rolling 等开关
- repo/retriever/service/router/schemas/summarizer/timeline/extractor 等扩展;文档 memory-retrieval.md 更新

后端 - 对话 WS
- 增加 PING/PONG;分段 ASR 日志与空音频处理;转写失败与「无助手回复」错误提示更明确
- 助手多段回复持久化使用统一分隔符,与分段逻辑一致

后端 - Agent
- reply_limits:按 [SPLIT] 与段落拆段,并保证非空 fallback,供 WS 与 TTS 多段下发

后端 - 回忆录任务
- transcript ingest 记录 source_id;任务成功结?
2026-03-27 16:24:43 +08:00
Kevin
c23931ec91 chore: track legacy pg_dump for Actions migrate workflow
- Allow life_echo_20260313_182756.sql under api/backups via .gitignore exception
- Legacy migrate workflow: checkout, verify file, scp to server before migrate
- Point docker-build-deploy readers to one-shot legacy workflow

Made-with: Cursor
2026-03-26 15:30:10 +08:00
Kevin
805da8d789 replace with docker compose 2026-03-25 17:40:04 +08:00
Kevin
56c67871dd feat/ move caddy out of container 2026-03-25 10:26:21 +08:00
Kevin
b9ecfd02a4 various fixes 2026-03-23 13:21:07 +08:00
Kevin
9c2e0329ca chore/ update app name 2026-03-23 11:33:02 +08:00
Kevin
f8b3de6ff8 优化工作流,添加app-icon 2026-03-23 10:25:51 +08:00
Kevin
1b5b6ee36d 移除docker workflow里的手动sql 迁移 2026-03-22 19:53:23 +08:00
Kevin
80c8844436 更新workflow 2026-03-22 19:06:37 +08:00
Kevin
d8378bb326 chore/ 删除过期文档和skills 2026-03-22 18:17:43 +08:00
Kevin
70070216c4 修复一些已知问题 2026-03-20 17:25:42 +08:00
Kevin
8af37e5e8e 修复:CI 部署环境与 ref 错配、迁移碎片化、图片意图 source_span、章节物化脏版式、会话历史与本地语音不一致
新增:TTS 上传 COS 与分片、章节 reading_segments 物化与快照、markdown 清洗、会话消息 repository、语音 store 重构与相关测试
2026-03-20 16:43:02 +08:00
Kevin
15512834d2 feat/ 添加app-expo三种环境切换,待测试 调整tts 2026-03-19 09:58:02 +08:00
Kevin
b4f4369b7d Squash merge feat/expo-app: app-expo, .cursor, workflows, package.json, .husky; remove app-android, app-ios, react-app 2026-03-19 01:13:38 +08:00
Sully
c2ce4c61f1 修复版本1.0.7的若干问题 (#11)
* fix/ 0:00 audio ui

* fix/ persist memoir image state and collapse voice history

Keep generated chapter images from staying in processing after successful uploads, and restore segmented voice recordings as a single audio message when reopening conversations.

Made-with: Cursor

* fix/ persist local conversation state and stabilize voice UI

Keep CreateMemory conversations driven by Room so recent text and audio survive page exits, and prevent stale 0:00 voice bubbles while list ordering follows the latest local message time.

Made-with: Cursor

* fix/ server-side root cause for conversation list time and message timestamps

- Add Conversation.last_message_at column with migration and index
- Update last_message_at on text message, audio segment, and AI response
- Sort conversation list by COALESCE(last_message_at, started_at) DESC
- Return real per-message timestamps from Redis history instead of now()
- Pass user_message_timestamp through agent pipeline to avoid LLM delay skew
- Remove all debug logging from server, client, and CI workflow
- Restore import json in conversation_agent (was broken by debug removal)
- Client: remove DebugRuntimeLogger, stop sending transcript as text message

Made-with: Cursor

---------

Co-authored-by: Kevin <kevin@brighteng.org>
2026-03-14 23:58:46 +08:00
Sully
9636c059d0 更新docker构建cd (#10)
* update github actions

* update github actions

* update github actions

* update github actions

* update github actions

* update github actions

* update github actions

---------

Co-authored-by: Kevin <kevin@brighteng.org>
2026-03-13 23:41:56 +08:00
Kevin
55b342b623 update github actions 2026-03-13 22:16:59 +08:00
Kevin
862f8c43d1 fix/ android-release-build workflow 2026-03-13 17:21:42 +08:00
penghanyuan
4a331428f7 feat: 优化部署流程和数据库迁移
- 更新 GitHub Actions 工作流,调整部署步骤,先启动数据库服务以确保迁移顺利进行。
- 新增启动所有服务的步骤,确保在迁移完成后启动全部服务。
- 在 SQL 脚本中添加锁定超时设置,提升数据库操作的稳定性。
2026-03-01 11:12:04 +01:00
penghanyuan
c1e2fb31a0 Merge branch 'feat/improve-agent-prompt' 2026-03-01 10:12:23 +01:00
penghanyuan
39736a2ae2 feat: 添加章节管理功能以支持清除回忆
- 在数据库模型中新增 is_active 字段,用于标记章节是否启用。
- 添加数据库迁移脚本以更新现有章节,确保默认值为 TRUE。
- 更新章节相关的 API 以仅返回 active 章节,并实现清除章节的功能。
- 在 Android 客户端中实现清除章节的确认弹窗和相应的 API 调用,提升用户体验。
2026-02-14 10:57:51 +01:00
penghanyuan
7fe0b70d5c feat: 增强对话代理以检测用户阶段并更新章节排序
- 在 api/agents/conversation_agent.py 中添加 _detect_user_stage 方法,以通过关键词检测用户谈论的人生阶段。
- 在 api/agents/memory_agent.py 中更新章节排序逻辑,使用 STAGE_TO_ORDER 替代 CHAPTER_ORDER。
- 在 api/agents/state_schema.py 中添加方法以获取各阶段的填充情况。
- 在 api/agents/prompts/conversation_prompts.py 中更新对话提示,包含用户阶段检测和整体进度信息。
- 在 api/migrations/fix_chapter_order_index.sql 中添加 SQL 脚本以修复章节 order_index 的问题。
- 更新相关文档和提示以反映新功能。
2026-02-13 21:45:56 +01:00
penghanyuan
cbd842a647 chore: 更新部署脚本以复制 .env.production 文件
- 在 .github/workflows/docker-build-deploy.yml 中添加复制 .env.production 文件的步骤,以确保在远程服务器上保留原始环境配置。
2026-02-13 20:43:52 +01:00
iammm0
c35cbaa94e ci: 更新 CI 工作流
- 更新 .github/workflows/README.md
- 更新 .github/workflows/android-release.yml

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-13 10:04:59 +08:00
iammm0
405a7c73f1 ci: 更新 Docker 构建部署工作流
- 更新 .github/workflows/docker-build-deploy.yml

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 14:42:22 +08:00
iammm0
c0ca5e0dbd chore: 更新gitignore与CI工作流
- 更新.gitignore
- 更新.github/workflows/README.md
- 新增android-release.yml Android发布流程

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-11 16:06:22 +08:00
iammm0
e24152295d 更新 2026-02-10 14:32:01 +08:00
iammm0
6744263773 更新 2026-01-28 16:19:56 +08:00
iammm0
f516ff1187 更新 2026-01-28 16:15:57 +08:00
penghanyuan
5e7cef73b0 feat: 添加 .env.production 文件的复制步骤到部署流程
- 在docker-build-deploy.yml中新增将.env.production文件复制到远程服务器的步骤,以确保环境变量配置的正确性。
2026-01-27 23:13:24 +01:00
iammm0
a2702ab2d1 更新 2026-01-27 16:01:27 +08:00
iammm0
9a2872d590 更新 2026-01-27 15:57:46 +08:00
iammm0
2734925845 更新 2026-01-27 15:46:16 +08:00
iammm0
0d9beec27e 更新 2026-01-27 15:42:35 +08:00
iammm0
c4111697dd 更新 2026-01-27 15:27:28 +08:00
iammm0
9f4e0a2bd0 更新 2026-01-27 14:42:05 +08:00
iammm0
084075dcdb ci: 新增GitHub Actions CI/CD配置
- 新增.github/工作流配置
2026-01-26 11:54:20 +08:00