Commit Graph

24 Commits

Author SHA1 Message Date
Kevin
22d282dc01 feat(api): use Tencent 16k_zh_large ASR and remove local Whisper
Standardize ASR on Tencent's dialect-capable engine across all environments,
drop faster-whisper from dependencies and deployment images, and add an
expo-sqlite iOS vendor sync plus pod install in prebuild to prevent native
build failures after npm install.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-25 10:21:41 +08:00
Sully
fa42757916 feat: OpenTelemetry LGTM observability, dev tooling, and memoir UX fixes (#31)
* add staging ios app build script

* feat(api): add OpenTelemetry LGTM stack for local observability

Wire OTel traces, metrics, and logs through a collector to Tempo,
Prometheus, and Loki, with custom LLM instrumentation, dev compose overlay,
Grafana provisioning, env templates, and development.sh auto-start.

Co-authored-by: Cursor <cursoragent@cursor.com>

* feat: expand observability, harden dev tooling, and fix expo staging UX

Add business and LLM Prometheus metrics with Grafana dashboards, alerting,
and a metrics verification script. Wire telemetry through adapters and core
LLM paths, and document the local LGTM workflow.

Fix development.sh for macOS bash 3.2, open Grafana and eval-web in Chrome,
and repair eval-web auto-open (unbound EVAL_WEB_BROWSER_SCHEDULED). Merge
internal-eval into the main dev script with improved compose handling.

Require EXPO_PUBLIC_* at build time, improve iOS HTTP ATS for staging IPs,
show memoir empty state instead of load errors when no chapters exist, and
add jest env setup plus chapter list response normalization.

Co-authored-by: Cursor <cursoragent@cursor.com>

* chore: enable Grafana Assistant Cursor plugin

Co-authored-by: Cursor <cursoragent@cursor.com>

* fix: memoir empty state and repair withdrawn 0020_chapters_book_id stamp

Show empty memoir UI when the chapter list succeeds with no items; treat auth/404 as non-fatal. Extend alembic revision repair so local dev DBs stamped with the removed 0020_chapters_book_id migration can roll back and upgrade to 0019.

Co-authored-by: Cursor <cursoragent@cursor.com>

---------

Co-authored-by: Kevin <kevin@brighteng.org>
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-20 15:12:21 +08:00
Kevin
eabda2c6a9 chore: resolve WIP after merging internal/development
- .gitignore: keep api/uploads ignore and copyright_source_listing.pdf path

- auth: keep COS avatar upload URL; delete prior COS object when applying preset

- i18n: regenerate resources.ts (includes profile tapAwayToClose)

- Avatar/COS tests and personal-info remain from prior local work

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-18 15:34:50 +08:00
Kevin
186375648d 软著pdf源码准备 2026-05-12 15:25:09 +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
a3f61fcc0f feat(api+app): 对话阶段化、回忆录流水线与客户端会话体验
- DB: segments 用户输入文本(Alembic 0002)
- Chat: 阶段检测/阶段提示/回复限制,编排与访谈/画像 prompts 调整
- Memoir: 忠实度检查 agent,叙事与分类等链路更新
- Core: agent 日志、Alembic 启动、LangChain/日志/配置等
- Story: time_hints;Memory 检索与相关测试
- Expo: 助手头像、会话页与消息拆分、实时会话与文案/i18n
- Docs/scripts/tests: 迁移脚本、LLM JSON/记忆检索文档、新增单测
2026-03-26 12:13:36 +08:00
Kevin
b9ecfd02a4 various fixes 2026-03-23 13:21:07 +08:00
Kevin
f81e5b7c94 chore/update .gitignore 2026-03-22 19:01:10 +08:00
Kevin
7317bf10cd fix/various fixes 2026-03-20 15:15:35 +08:00
Kevin
c6e07ce5ca chore/ 删除无用文件 2026-03-19 14:36:40 +08:00
Kevin
9e4f301ab9 chore/ update .gitginore to exclude root node modules and app-expo 2026-03-18 21:51:39 +08:00
yangshilin
48b70e1350 Merge branch 'refactor/backend-architecture' into development 2026-03-18 17:18:23 +08:00
Kevin
6733abe14f fix/ add app-expo folder to gitignore 2026-03-16 09:10:16 +08:00
Kevin
6ffe96d7a9 feat: 支持长语音分段上传与断线补传 2026-03-09 15:36:44 +08:00
Kevin
d560d47306 chore: 调整 Android Studio 本地文件忽略规则
补充 app-android 下本地 Gradle 与 Kotlin 缓存忽略项,并停止跟踪会引发机器差异的 Android Studio 本地配置文件,减少无关变更噪音。
2026-03-09 11:16:17 +08:00
iammm0
febeaed0ae chore: 将 .worktrees/ 加入 gitignore 2026-03-06 15:36:32 +08:00
penghanyuan
99a1660d03 feat: 更新对话内容处理逻辑及新增用户回忆整理脚本
- 修改 get_narrative_prompt 函数,优化对话内容的叙述生成逻辑,确保新内容与已有内容自然衔接。
- 在 api/scripts 中新增 reprocess_user_memoir.py 脚本,用于整理用户历史对话为回忆录章节,支持远程预览和确认写入。
- 更新 .gitignore,添加对 certs/ 和 scripts/output/ 目录的忽略规则,确保不必要的文件不被跟踪。
- 在 memoir_tasks.py 中添加章节锁机制,防止并发写入同一章节,提升数据一致性和安全性。
2026-02-21 09:33:31 +01:00
penghanyuan
8af8b7eec6 feat: 添加官网主页路由及静态文件支持
- 在 api/routers 中新增 home.py 路由,提供应用官网主页的 HTML 响应。
- 更新 main.py,包含 home 路由并挂载静态文件目录。
- 新增静态文件 home.html 和 avatar_assistant.png,丰富官网内容。
- 更新 .gitignore,确保 certs/ 目录被忽略。
2026-02-14 21:06:09 +01:00
penghanyuan
3d3e224374 refactor: 更新 VoiceRecorder 以支持低版本 API
- 修改 VoiceRecorder.kt 中的 MediaRecorder 初始化逻辑,支持 API 31 以下的版本。
- 移除不必要的条件判断,简化代码结构。
2026-02-13 21:29:43 +01:00
iammm0
9198500c1f chore: gitignore 忽略证书与私钥文件
- 更新 .gitignore,添加 api/certs/*.pem 与 api/certs/*.p12

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 14:42:37 +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
d104377d26 feat: 优化Docker构建配置,支持生产环境配置文件
- 更新.gitignore,允许.env.production文件被提交(私密仓库)
- 优化Dockerfile构建流程,使用.env.production作为生产环境配置
- 将.env.production复制为.env,确保生产环境使用正确的配置
- 新增.env.production生产环境配置文件
2026-01-23 10:56:59 +08:00
徐在坤
426f23c777 chore: 更新gitignore配置
- 添加commit_messages.txt到忽略列表
2026-01-21 18:19:55 +08:00
iammm0
604a112f8a 添加.gitignore文件 2026-01-07 11:57:39 +08:00