Commit Graph

38 Commits

Author SHA1 Message Date
Kevin
497223cf4d Merge origin/development into main
Keep origin/main env files (api/.env.staging, app-expo/.env.*); take development branch code changes only.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-19 15:47:21 +08:00
penghanyuan
3e9dd24cc8 feat(docs): add comprehensive documentation for the "岁月留书" application
Introduced two new markdown files detailing the product overview, core functionalities, data security measures, user experience, and collaboration models for the "岁月留书" application. This documentation aims to provide clear insights for potential users and partners in the elder care sector.
2026-05-17 17:10:46 +02:00
Kevin
c45a2c040b fix(expo): 暂停自动朗读后继续播放最新 TTS 片段
- usePlayer:paused 且 tts_auto 时清空队列并重置,再播当前片段
- 用 statusRef 与暂停同步,避免 WS 紧连 enqueue 时状态滞后
- 补充 use-player 单测

- api: 调整 copyright_source_pdf 脚本
- docs: 新增软著《岁月时书》软件设计说明书

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-13 15:01:50 +08:00
Kevin
3121d1384d WIP: memory system improvements (in progress)
Interview/chat prompt layers, reply planner, style profiles, memory
injection, interview meta store, and related tests. Work not finished.

Made-with: Cursor
2026-04-22 16:56:28 +08:00
Kevin
aa6df9eb55 docs: add TTS interrupt and read-aloud design plan
Made-with: Cursor
2026-03-26 14:32:30 +08:00
Kevin
d8378bb326 chore/ 删除过期文档和skills 2026-03-22 18:17:43 +08:00
Kevin
786ebf8ae6 refactor(api,expo): 多智能体与会话收敛、回忆录兼容层移除、后端测试集大幅删减
- 对齐「多智能体收敛」与「回忆录 stories-first / markdown-first」方向:收紧运行时契约、
  删除过渡兼容路径与双轨逻辑,并同步更新客户端与文档。

- Chat:以 ChatOrchestrator 为实时编排入口;删除独立 conversation_agent,精简 prompts。
- Memoir:删除 memory_agent;MemoirOrchestrator、classification / story_route 与 prompts 收敛到
  prepare_batches + run_story_pipeline_for_category_batch 主链路。
- 将 agents 侧 processor 迁入 feature 层为 background_runner,并移除 features 下重复/过时
  processor 封装。

- 新增 history_store,强化「conversation_messages 为 DB 真源、Redis 为缓存」模型。
- 调整 models、repo、service、session_history;精简 WS message_types,重构 pipeline 与 router。

- 移除章节占位、整章再生等旧路径;章节列表与封面逻辑要求 story 关联;收紧 cover 资格与
  enqueue。
- helpers、repo、service、router、reading_segment_materialize、story_pipeline_sync、pdf_service
  等按 canonical markdown / cover_asset_id 收缩;删除 memoir_images/provider 等冗余。
- tasks:memoir_tasks、chapter_cover_tasks 等大幅瘦身;story_image_tasks 等与当前图片任务对齐。

- core:config、logging、redis、task_tracker 小幅调整。
- auth / user / payment / quota:路由或服务侧删减过时接口或逻辑(如 payment router 行数减少)。

- pyproject.toml、development.sh、.env.example / .env.production、README 等同步说明或变量。

- Alembic 0001_initial_schema 微调(与当前 schema 叙事一致的小改动)。

- 回忆录:types / mappers / api、章节页与 memoir 页与后端契约对齐;markdown-renderer 调整。
- 语音:删除 voice/player,voice-segment-store 相应精简。

- api/tests:删除 conftest 及绝大部分既有测试文件(websocket_baseline、conversation、memoir
  图片、PDF、SMS 等),属有意收缩/待按 backend-test-system 重建的信号。
- docs:新增多智能体收敛与移除兼容层计划摘要;更新 story-first 设计、backend-test-system、
  multi-agent-refactor-plan、实施总结等。

BREAKING CHANGE: 后端对外契约、回忆录章节字段与若干路由/任务行为已变更;大量 API 测试被移除,
  CI 若依赖这些用例需按新策略补测或调整流水线。
2026-03-22 18:10:28 +08:00
Kevin
8af37e5e8e 修复:CI 部署环境与 ref 错配、迁移碎片化、图片意图 source_span、章节物化脏版式、会话历史与本地语音不一致
新增:TTS 上传 COS 与分片、章节 reading_segments 物化与快照、markdown 清洗、会话消息 repository、语音 store 重构与相关测试
2026-03-20 16:43:02 +08:00
Kevin
7317bf10cd fix/various fixes 2026-03-20 15:15:35 +08:00
Kevin
7f57f96c25 重构回忆录为 story-first / markdown-first 架构并整合图片意图与前端 UI 修复
本次 squash merge 将 codex-story-first-image-intent 的整体改动合入 development,核心内容包括:

1. 后端数据与迁移:新增 stories、story_versions、story_image_intents、chapter_cover_intents、assets 等模型与 Alembic 迁移,建立 story-first、markdown-first、asset-first 的主数据链路。

2. 生成与任务链:引入 StoryBuilderOrchestrator、ChapterComposerOrchestrator、story_image_tasks、chapter_cover_tasks,图片生成从正文占位符改为结构化 intent -> asset -> markdown 回填。

3. 并发与一致性:为 story/chapter intent 增加 claim_token、claimed_at、attempt_count,采用数据库原子 claim 为主、Redis 锁为辅,避免重复生成、锁误删和 processing 卡死。

4. Memoir 读写路径:章节 canonical_markdown 成为正文真源,列表/详情接口补齐 markdown、cover_asset、word_count 等字段,PDF 与 asset 解析链路同步升级。

5. Memory / Retrieval:扩展 transcript ingest、chunking、evidence 检索与 story 聚合基础设施,为后续 story-first RAG 与多 agent 编排提供底座。

6. App 端体验:章节页继续走 MarkdownRenderer 阅读链,同时吸收 fix3-19 的跨平台 UI glitch 修复;更新对话页、首页、文案资源与章节列表映射逻辑。

7. 测试与文档:补充 asset resolver、story image task、章节封面派发、markdown 映射等回归测试,并加入图片占位符退役设计文档。
2026-03-20 10:31:51 +08:00
Kevin
13e3124b85 docs: add story-first markdown-first design 2026-03-19 16:01:49 +08:00
yangshilin
b56fc859cc docs: 多agent架构plan计划 2026-03-19 10:28:40 +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
yangshilin
48b70e1350 Merge branch 'refactor/backend-architecture' into development 2026-03-18 17:18:23 +08:00
Kevin
16ae355510 docs: 添加重构相关文档。添加cursor rules 2026-03-13 09:54:47 +08:00
Kevin
29f7202354 文档: 添加 app-android 架构重构计划 2026-03-12 11:34:41 +08:00
Kevin
a7830b39c0 维护: 添加重构计划和参考文档 2026-03-12 11:12:22 +08:00
Kevin
c4eb481c5c chore: 添加网络层基础设施重构计划 2026-03-12 10:14:46 +08:00
Kevin
2e6f997f04 chore: 新增上线检查单与脱敏 env 模板 2026-03-11 16:31:16 +08:00
Kevin
201dedb84c fix: 完善 Liblib 图片尺寸兼容处理并补充安全排查记录
- 调整 Liblib 图片生成参数,优先使用官方 aspectRatio 预设,非预设尺寸回退为 imageSize 显式宽高。\n- 新增尺寸解析与边界钳制逻辑,并补充对 undocumented 状态 7 的防御性处理说明。\n- 新增密钥排查备忘,记录 .env 中腾讯 COS 凭证硬编码问题,便于后续安全整改。
2026-03-11 15:36:58 +08:00
Kevin
305e5dcde9 修复回忆录图片重试状态透传与前端展示 2026-03-11 15:23:58 +08:00
Kevin
bd5f0905ba chore: add docs 2026-03-11 11:27:12 +08:00
Kevin
b0c84a83e9 docs: add implementation and todo plans 2026-03-10 15:47:25 +08:00
Kevin
34b6705fa7 docs: add memoir image generation design 2026-03-10 14:33:46 +08:00
Kevin
6ffe96d7a9 feat: 支持长语音分段上传与断线补传 2026-03-09 15:36:44 +08:00
iammm0
cca8ce7731 docs: 新增 Android 大字号排版方案文档
新增 Android 大字号排版的设计与实施计划文档,便于跨设备继续开发并保持上下文一致。
2026-03-09 09:08:38 +08:00
penghanyuan
7c62bc03df Merge remote-tracking branch 'origin/react-app' 2026-02-21 09:37:40 +01:00
iammm0
71c70275a8 docs: 更新文档与 demo
- 更新 docs/ 与 app-ios/docs/
- 更新 app-ios/demo、assets/demo、app-ios 代码与计划

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-13 10:05:20 +08:00
iammm0
d817b6eac5 chore: 技能文档迁移到 docs 目录
- 删除根目录 Skills.md
- 新增 docs/Skills.md

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 13:33:08 +08:00
penghanyuan
0da426a8bb feat: 添加多个新组件和优化现有组件
- 新增AppScaffold、SectionCard、SettingItem、TimeFormatter等组件,提供统一的布局和功能
- 优化ChatHeader、MessageBubble、ConversationListHeader、ConversationListItem等组件的UI和逻辑
- 更新样式和设计规范,确保一致性和可读性
- 改进对话列表项的交互体验,增强用户界面
2026-01-29 19:45:19 +01:00
iammm0
967e37e519 chore: 更新部署配置和文档
- 更新docker-compose.yml配置
- 更新network-config-guide.md网络配置指南
- 更新nginx.conf配置
2026-01-28 16:05:05 +08:00
iammm0
3f9118c9cd docs: 新增网络和Nginx配置文档
- 新增network-config-guide.md网络配置指南
- 新增nginx-config-guide.md Nginx配置指南
- 新增nginx-fix-guide.md Nginx修复指南
- 新增nginx.conf示例配置
2026-01-28 13:01:06 +08:00
iammm0
e2ee641d41 chore: 整理文档目录结构
- 移动SMS验证相关文档到docs目录
- 移动github-actions-secrets.md到docs目录
- 删除根目录下的旧文档
2026-01-27 14:31:07 +08:00
徐在坤
514468f753 添加图片资源文件 2026-01-17 19:34:40 +08:00
iammm0
8c98fbadb4 更新开发计划文档 2026-01-07 12:04:52 +08:00
iammm0
e30a2380e3 整理文件结构:移动demo.html和AGENT.md到对应目录 2026-01-07 12:04:37 +08:00
iammm0
9e076d3319 添加项目文档目录 2026-01-07 11:57:17 +08:00
penghanyuan
182af280d9 html demo 2026-01-05 21:37:53 +01:00