Commit Graph

29 Commits

Author SHA1 Message Date
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
f0e37c5e76 fix porduction docker file 2026-05-09 13:22:10 +08:00
Kevin
d0c26242db fix(conversation): 离屏不丢回复、列表预热 WS 与非阻塞进入聊天
- 后端:文本/转写后 AI 生成改为独立任务,避免断连取消整轮;按需 TTS 等与 WS 改动
- 前端:RealtimeSession 重绑 UI 时恢复流式 buffer;列表 onPressIn/挂载预热、已有会话立即 push
- 同步会话相关类型、i18n、测试与 env/资源等累计改动

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-05-08 17:28:31 +08:00
Kevin
ac49bc7f23 feat(eval): memoir A/B chapter judging and eval-web parity with dialogue
- Judge baseline excerpt and library chapter separately; build_memoir_compare_summary for gate, nine-dim and leaf deltas.

- Memoir SSE chapter payload: baseline_judge, compare_summary, baseline_judge_error.

- MemoirJudgeOutput: loose score coercion and post-validate clamp; memoir judge prompt caps from settings.

- app-eval-web: two-column MemoirScoreCard layout, MemoirCompareSummary, chapter blocks and CSS.

- Add memoir_compare_summary, log_events, celery_log_context, memoir_pipeline_progress; tests and migration 0014.

- Misc: memory/evidence and enrichment paths, task/orchestrator updates, internal-eval docs, env examples.
2026-04-10 10:25:15 +08:00
Kevin
064ad2161d refactor(eval+memoir):精简内部评测路由与服务,composite/对话摘要与 judge 能力补强
- 访谈:新增 interview_state_hints,联动 orchestrator 与提示词
- 回忆录:story_pipeline_sync/state/memory/post_commit 与 Celery 任务调整
- 基建:开发用 celery broker、compose/development 脚本、依赖注入
- eval-web:移除数据集/实验/版本等页面与流式轮询,突出 Playground
- 文档与单测同步
2026-04-08 21:36:12 +08:00
Kevin
41518bda11 聊天和回忆录证据检索都走 pgvector,去掉 Postgres FTS/content_tsv,新迁移删掉 content_tsv 列(部署要先 alembic upgrade)。
Embedding 端口增加 is_available(),聊天和回忆录日志用统一方式表示向量是否真能调用。

记忆整理(compaction)支持 Beat 定期扫用户;

事实抽取提示与 subject 归一化,减少同一人多种称呼;
2026-04-03 11:43:16 +08:00
Kevin
43ef260ae2 fix/ 修复后端dockerworkflow会跑两次alembic的问题 2026-04-01 16:29:18 +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
ac0bdba8ba 修改caddy为国内镜像 2026-03-23 10:48:28 +08:00
Kevin
f8b3de6ff8 优化工作流,添加app-icon 2026-03-23 10:25:51 +08:00
Kevin
584fb9ffe9 deploy: use pgvector postgres mirror for prod and staging 2026-03-23 09:20:38 +08:00
Kevin
b6d9eab44d deploy: use mainland-accessible postgres and redis mirrors 2026-03-22 20:27:16 +08:00
yangshilin
48b70e1350 Merge branch 'refactor/backend-architecture' into development 2026-03-18 17:18:23 +08:00
penghanyuan
4299a5b7bf feat: 更新 Docker Compose 配置以绑定 PostgreSQL 端口到 localhost
- 修改 docker-compose.yml,将 PostgreSQL 端口绑定到 localhost,以便通过 SSH 隧道访问,增强安全性。
2026-02-14 13:36:17 +01:00
penghanyuan
0ebeb05420 chore: 更新 Docker Compose 配置以添加证书卷
- 在 api/docker-compose.yml 中添加 apiclient_key.pem 的只读卷挂载,以支持证书管理。
2026-02-13 21:30:18 +01:00
penghanyuan
5f81e3bf26 fix celery 2026-02-11 18:34:22 +01:00
iammm0
0b7bd37d5d feat: Docker 构建预置 ASR 模型,支持离线使用
- Dockerfile 构建时预下载 faster-whisper 模型到镜像
- docker-compose 增加 ASR_MODEL_CACHE_DIR 环境变量
- asr_service 支持从缓存目录加载本地模型,无需运行时联网下载

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-10 15:08:00 +08:00
iammm0
80b3981188 更新 2026-02-10 14:41:11 +08:00
iammm0
498277aac3 chore: 更新Docker配置,优化路由
- 更新docker-compose.yml
- 优化conversations.py、plans.py、quota.py、user.py、websocket.py

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-10 14:23:40 +08:00
iammm0
967e37e519 chore: 更新部署配置和文档
- 更新docker-compose.yml配置
- 更新network-config-guide.md网络配置指南
- 更新nginx.conf配置
2026-01-28 16:05:05 +08:00
iammm0
6a36407b25 chore: 更新后端Docker配置
- 更新docker-compose.yml配置
2026-01-28 13:01:06 +08:00
penghanyuan
94ada8bfc9 chore: 注释掉Docker Compose中的端口映射
- 在docker-compose.yml中注释掉Postgres和Redis服务的端口映射,以限制对宿主机的访问,仅允许在Docker网络内部访问。
2026-01-27 23:18:53 +01:00
penghanyuan
2bdad70263 fix: 更新环境变量文件名
- 将docker-compose.yml中的.env.prod更改为.env.production,以统一环境配置文件命名。
2026-01-27 23:07:05 +01:00
penghanyuan
0591e9d7c1 feat: 添加PostgreSQL支持并更新数据库配置
- 新增PostgreSQL服务支持,使用最新版17
- 更新Docker Compose配置以支持PostgreSQL和Redis
- 修改数据库连接逻辑,支持PostgreSQL和SQLite
- 更新文档以反映新的数据库配置和使用方法
- 优化数据模型,确保时间戳字段支持时区
2026-01-21 23:21:36 +01:00
penghanyuan
dbbb924625 feat: 添加Redis支持和Celery任务处理
- 新增Redis服务模块用于会话状态存储和缓存
- 集成Celery用于后台任务处理
- 更新Docker Compose配置以支持开发环境
- 优化API以支持异步调用和Redis会话存储
- 更新文档以反映新的开发环境配置和使用方法
2026-01-21 23:06:47 +01:00
mingjunzhao012665
8567a8fece 功能2和3:改进 Docker 健康检查配置和数据库持久化
功能2:改进 Docker 健康检查配置
- 将健康检查从使用 requests 库改为使用 Python 内置的 http.client
- 减少 Docker 镜像依赖,提高构建效率
- 统一 Dockerfile 和 docker-compose.yml 中的健康检查配置

功能3:改进 Docker 配置和数据库持久化
- 在 Dockerfile 中添加 .env 文件复制支持,允许在构建时打包环境变量
- 改进 docker-compose.yml 中的数据库持久化配置,直接挂载数据库文件
- 添加日志配置,支持日志文件轮转
- 移除无效的 deploy 配置(仅在 Docker Swarm 模式下有效)
- 添加详细的配置注释说明
2026-01-18 17:09:10 +08:00
徐在坤
ebfd705b93 feat: 添加Docker和部署配置
- 添加Dockerfile用于容器化部署
- 添加docker-compose.yml用于本地开发环境
- 添加build.sh构建脚本
- 添加README.md项目文档
- 添加API文档
2026-01-18 15:58:05 +08:00