Commit Graph

397 Commits

Author SHA1 Message Date
yangshilin
0ad253fde5 fix: 优化生图提示词 2026-03-12 13:47:12 +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
b09f1e8125 文档: 添加注释 2026-03-12 10:55:33 +08:00
Kevin
c573882f3e 重构: 完成网络端口迁移 2026-03-12 10:50:46 +08:00
Kevin
cfccaf3a9d 新增: 抽取 Memoir、Profile、Payment REST 端口
按功能划分的 API 端口接口将仓库和 ViewModel 与 ApiService 解耦。
适配器在底层委托给 ApiService;所有依赖由 AppContainer 统一装配。
2026-03-12 10:36:12 +08:00
Kevin
493dedda47 重构: 将 CreateMemoryViewModel 迁移到对话端口
ViewModel 现在依赖 ConversationApiPort 和 ConversationRealtimePort,而不是 ApiService/WebSocketClient。
ViewModelFactory 从 AppContainer 装配这些适配器。
2026-03-12 10:36:05 +08:00
Kevin
7e59c65602 新增: 添加 ConversationApiPort 和 ConversationRealtimePort
为对话流程定义按能力划分的端口,并提供委托给 ApiService 和 WebSocketClient 的适配器。
2026-03-12 10:35:58 +08:00
Kevin
e3f370a22f 重构: 将 AuthService、ApiService、WebSocketClient 改为适配器
各服务现在通过主构造函数接收各自的客户端提供器;
为在迁移期间保持现有调用点可编译,保留了向后兼容的次构造函数。
2026-03-12 10:35:52 +08:00
Kevin
0f53d7ce34 重构: 添加网络客户端提供器
引入由组合根持有的 RestClientProvider 和 RealtimeTransportProvider,并显式跟踪就绪状态。
AppContainer 负责提供器生命周期;LifeEchoApp 在 Application.onCreate 中完成装配。
2026-03-12 10:35:45 +08:00
Kevin
c4eb481c5c chore: 添加网络层基础设施重构计划 2026-03-12 10:14:46 +08:00
yangshilin
e4555cb73a fix: 修复花括号显示异常问题 2026-03-12 10:13:40 +08:00
Kevin
f24232d9cd refactor: 取消实时录音分段,改为录音结束后客户端分段。移除skills-lock.json 2026-03-12 10:13:25 +08:00
yangshilin
0cf1d295a4 fix: 进入对话之后默认展示最新消息 2026-03-11 17:08:42 +08:00
Kevin
2e6f997f04 chore: 新增上线检查单与脱敏 env 模板 2026-03-11 16:31:16 +08:00
yangshilin
f3d26c9d0e fix: 修复回忆录序号问题;隐藏图片提示词,增加缩放和保存功能 2026-03-11 16:09:21 +08:00
Kevin
201dedb84c fix: 完善 Liblib 图片尺寸兼容处理并补充安全排查记录
- 调整 Liblib 图片生成参数,优先使用官方 aspectRatio 预设,非预设尺寸回退为 imageSize 显式宽高。\n- 新增尺寸解析与边界钳制逻辑,并补充对 undocumented 状态 7 的防御性处理说明。\n- 新增密钥排查备忘,记录 .env 中腾讯 COS 凭证硬编码问题,便于后续安全整改。
2026-03-11 15:36:58 +08:00
Kevin
3bf79da540 Merge remote-tracking branch 'origin/development' into development 2026-03-11 15:23:58 +08:00
Kevin
305e5dcde9 修复回忆录图片重试状态透传与前端展示 2026-03-11 15:23:58 +08:00
yangshilin
4d2c31b5a6 feat & fix: 新增打个招呼选项 创建新会话;修复ai重复性提问的问题;修复输入键盘覆盖对话气泡的问题 2026-03-11 14:48:59 +08:00
Kevin
4b4dea8a45 Merge remote-tracking branch 'origin/development' into development
# Conflicts:
#	api/agents/prompts/memory_prompts.py
2026-03-11 14:29:48 +08:00
Kevin
38562732cd feat: 打通回忆录章节配图生成与阅读展示链路
- 新增 memoir_images 服务与章节图片异步生成流程,补齐占位符解析、Prompt 组装、Liblib provider、腾讯 COS 存储和动态数量控制,支持回忆录章节自动补图。
- 更新章节接口与 PDF 导出逻辑,为已完成图片返回签名地址、过滤无效图片并在导出时嵌入图片且移除占位符,保证阅读端与导出结果一致。
- 更新 Android 回忆录阅读链路,新增内容块解析、内联图片组件、预览弹窗与轮询逻辑,并优化失败态与正文渲染,避免占位文本破坏阅读连续性。
- 补充后端与 Android 测试及接入文档,覆盖 provider、storage、task、PDF、阅读渲染和轮询场景,便于后续维护与联调。
2026-03-11 14:21:02 +08:00
Kevin
f7d95c4c9a Fix dynamic memoir image limits 2026-03-11 14:07:02 +08:00
Kevin
822aefe54b Reuse memoir JSON payload parsing 2026-03-11 13:46:07 +08:00
Kevin
32954d4b3f Fix memoir image prompt parsing and host allowlist 2026-03-11 13:18:20 +08:00
Kevin
1f98b8bfd6 fix: fix various issues before merging 2026-03-11 11:27:32 +08:00
Kevin
bd5f0905ba chore: add docs 2026-03-11 11:27:12 +08:00
Kevin
00092d34c9 fix: harden memoir image generation flow 2026-03-11 11:26:42 +08:00
Kevin
a76cf8da18 Fix memoir image delivery and Android rendering 2026-03-11 10:06:12 +08:00
yangshilin
4ae68394c5 feat: 新增图片占位符提示词固定模板 入库时拼接 2026-03-11 09:48:06 +08:00
Kevin
0970cb7408 fix: 修复 Liblib provider 认证和多个图片生成关键缺陷
- 重写 LiblibImageProvider:Bearer token 改为 HMAC-SHA1 签名认证,
  适配 Liblib 真实 API(Star-3 Alpha 文生图端点)
- 修复 chapter.images JSON 列原地修改不持久化(深拷贝+整列重赋值)
- 修复 generate_chapter_images 在事务提交前派发(改为 commit 后统一 delay)
- 修复 initialize_chapter_images 覆盖已完成图片(新增 merge 去重逻辑)
- 修复 Android failed 图片渲染为错误卡片(改为隐藏,保持正文连续)
- 模型模板 UUID 改为环境变量配置(LIBLIB_TEMPLATE_UUID)
- 更新 .env 凭证格式为 ACCESS_KEY/SECRET_KEY
- 补充 test_memoir_image_bootstrap 缺失的 unittest.mock 导入

Made-with: Cursor
2026-03-10 17:02:50 +08:00
Kevin
830b6efc39 feat(android): render memoir images in reading views with loading and failure states
Made-with: Cursor
2026-03-10 16:09:32 +08:00
Kevin
2cecbd84ce feat(android): add memoir chapter image models and content block parsing
Made-with: Cursor
2026-03-10 16:07:46 +08:00
Kevin
f5afeb39ef feat(api): embed memoir chapter images in PDF export and strip placeholders
Made-with: Cursor
2026-03-10 16:06:09 +08:00
Kevin
879466fde1 feat(api): generate memoir chapter images asynchronously via Celery
Made-with: Cursor
2026-03-10 16:05:13 +08:00
Kevin
d5ed2940aa feat(api): initialize memoir chapter image assets on creation
Made-with: Cursor
2026-03-10 16:03:49 +08:00
Kevin
67a469f380 feat(api): add tencent cos storage for memoir images
Made-with: Cursor
2026-03-10 16:02:12 +08:00
Kevin
cf460dd2a4 feat(api): add liblib memoir image provider adapter
Made-with: Cursor
2026-03-10 16:00:59 +08:00
Kevin
f8283b398e feat(api): add memoir image prompt settings and optimization service
Made-with: Cursor
2026-03-10 16:00:25 +08:00
Kevin
5b51d104b4 feat(api): add memoir image placeholder parsing
Made-with: Cursor
2026-03-10 15:59:36 +08:00
Kevin
521f10dde3 Merge remote-tracking branch 'origin/development' into development 2026-03-10 15:51:56 +08:00
Kevin
b0c84a83e9 docs: add implementation and todo plans 2026-03-10 15:47:25 +08:00
yangshilin
c700b7a67c fix: 修复光标bug;移除输入框表情按钮;修复章节回退动画;部分页面大字模式优化 2026-03-10 15:24:48 +08:00
Kevin
34b6705fa7 docs: add memoir image generation design 2026-03-10 14:33:46 +08:00
yangshilin
462880960e fix: 大字模式优化 2026-03-10 14:03:27 +08:00
Kevin
1a4c65e414 Merge remote-tracking branch 'origin/development' into development
# Conflicts:
#	app-android/app/src/main/AndroidManifest.xml
#	app-android/app/src/main/java/com/huaga/life_echo/ui/components/chat/ChatInputField.kt
#	app-android/app/src/main/java/com/huaga/life_echo/ui/components/chat/VoiceRecordButton.kt
2026-03-10 11:52:29 +08:00
Kevin
8b9ccd4926 fix: 优化长语音上传交互并修复输入框高度跳变 2026-03-10 11:44:16 +08:00
yangshilin
c932cb53c6 fix: 1. 修复输入框位置异常问题;2. 修复异常创建多个空对话的问题;3. 移除菜单切换动画;4. 大字模式ui调整;5. 章节段落首行缩进;
Made-with: Cursor
2026-03-10 11:16:26 +08:00
Kevin
6ffe96d7a9 feat: 支持长语音分段上传与断线补传 2026-03-09 15:36:44 +08:00
Kevin
440f5be07f chore(android): debug build use local dev server (USE_PROD_SERVER=false) 2026-03-09 13:54:43 +08:00