Commit Graph

1628 Commits

Author SHA1 Message Date
xiaoxia 6871e191ae fix: 修复 ENABLE_REDIS_SESSION -> ENABLE_REDIS_SESSIONS 变量名不匹配导致登录500
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
2026-06-27 19:52:17 +08:00
xiaoxia e13ac8da52 Merge pull request 'fix: 技术债务修复 - Domain层依赖优化' (#49) from fix/tech-debt-final into develop
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
2026-06-27 19:47:00 +08:00
Celery Worker Fix Agent 8210806632 fix: 修复 Celery Worker 任务注册和导入问题
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
1. 修复 Worker 启动入口: celery_app → worker_app.celery_app
   - 旧 celery_app.py 不导入任何任务模块,导致 Worker 注册 0 个任务
   - 删除旧版 apps/worker/celery_app.py,统一使用 worker_app/celery_app.py

2. 为缺少装饰器的任务补充 @celery_app.task:
   - classification.py: classify_asset() 添加装饰器
   - generation.py: generate_video() 添加装饰器,修正签名匹配 API 调用方式

3. 确保 voice_extraction 任务被正确注册:
   - 添加 voice_extraction 到 celery_app imports
   - 修复 voice_extraction.py 中错误的相对导入 (.celery_app → worker_app.celery_app)
   - 修复 dedup.py 中指向已删除模块的导入

4. 修复 worker_app/celery_app.py:
   - 添加 broker_connection_retry_on_startup=True
   - imports 中添加 voice_extraction 和 dedup 模块

5. 修复 Dockerfile:
   - CMD 改为 celery -A worker_app.celery_app
   - 添加非 root 用户 celery 运行 Worker

6. 新建 packages/shared/config.py 和 storage.py 兼容层
   - 为 worker 任务模块提供统一的 config/storage 访问入口
2026-06-27 19:31:07 +08:00
Xiaoxia AI 10bcf35d43 ci: trigger v0.1.57 production deployment
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
2026-06-27 19:24:37 +08:00
Xiaoxia AI 3d4626d7d3 trigger: redeploy after docker mirror fix 2026-06-27 19:24:37 +08:00
Xiaoxia AI 95f04a588b trigger: validate prebuilt ci image 2026-06-27 19:24:37 +08:00
Xiaoxia AI cfd7453458 trigger: 重新触发 CI/CD(使用优化后的轻量级镜像) 2026-06-27 19:24:37 +08:00
Xiaoxia AI 74ac98dd80 chore: wire deployment to environment-based configuration 2026-06-27 19:24:36 +08:00
Xiaoxia AI 0675aed24d chore: add production environment configuration system 2026-06-27 19:24:32 +08:00
CI Test 02992a3fcd P2-2: Move auth services from domain to application layer
CI/CD Pipeline / Validate Code Quality And Tests (pull_request) Has been cancelled
CI/CD Pipeline / Frontend Lint (pull_request) Has been cancelled
- Move jwt_service.py from packages/domain/auth to packages/application/auth
- Move password_hasher.py from packages/domain/auth to packages/application/auth
- Update all import paths in use cases and tests
2026-06-27 19:23:56 +08:00
xiaoxia b711df58a9 chore: trigger CI/Deploy pipeline test 2026-06-27 19:23:56 +08:00
xiaoxia deedfef13f fix: resolve CI check failures - format code and add nosec comment 2026-06-27 19:23:56 +08:00
CI Bot 420c6b8062 ci: trigger rebuild after fixing runner label matching 2026-06-27 19:23:56 +08:00
Xiaoxia AI 8b829c4293 ci: trigger v0.1.57 production deployment 2026-06-27 19:23:56 +08:00
Xiaoxia AI 46c1620de2 trigger: redeploy after docker mirror fix 2026-06-27 19:23:56 +08:00
Xiaoxia AI 771ef6f2c8 trigger: validate prebuilt ci image 2026-06-27 19:23:56 +08:00
Xiaoxia AI cd1d7fb411 trigger: 重新触发 CI/CD(使用优化后的轻量级镜像) 2026-06-27 19:23:56 +08:00
Xiaoxia AI 1cd986c8b1 chore: wire deployment to environment-based configuration 2026-06-27 19:23:56 +08:00
Xiaoxia AI 19e7214643 chore: add production environment configuration system 2026-06-27 19:22:59 +08:00
xiaoxia 4f238b2e0b Merge PR #55: docs API文档准确性修复
CI/CD Pipeline / Validate Code Quality And Tests (push) Has been cancelled
CI/CD Pipeline / Frontend Lint (push) Has been cancelled
2026-06-27 19:02:55 +08:00
API文档维护Agent 8064b64ff5 docs: API文档准确性修复
1. 修正上传端点schema命名:新增UploadAssetRequest模型替代自动生成的Body_upload_asset名称
2. 清理认证重复端点:移除/forgot-password和/reset-password旧路由,保留/password/forgot和/password/reset
3. 清理workspace_id残留:从edit_plan/asset_diagnosis/task_center/project_title等schema中移除,project_management和projects中改为可选
4. 更新README:移除过时的多租户/订阅/refresh token描述,修正仓库地址为git.xiaoxiajianji.com,更新API路径列表
2026-06-27 19:02:31 +08:00
xiaoxia 0029adf2a3 Merge PR #56: fix 修复前端构建问题 2026-06-27 19:02:04 +08:00
xiaoxia e5abcdc340 Merge PR #54: fix(security) 删除.env.production并清理硬编码密码 2026-06-27 19:01:26 +08:00
xiaoxia 1749f7f059 Merge PR #48: feat: 视频剪辑模式支持 2026-06-27 19:00:50 +08:00
Audit Bot bad52fd1d0 fix: 修复前端构建问题 - 恢复 develop 分支配置
- develop 分支已包含完整的 package.json、tsconfig.json、vite.config.ts
- develop 分支已包含完整的路由、useAuth、api/tasks 实现
- @/ 路径别名已在 tsconfig 和 vite 配置中正确设置

额外修复:
- 删除 Next.js 残留文件 (next.config.js, next-env.d.ts)
- 删除死代码:workspaceStore.ts(从未被引用)、QuotaDisplay.tsx(从未被使用)
- 删除 Vite 脚手架残留:App.tsx、App.css
- Header.tsx 添加 Header.css 导入,修复顶部导航无样式问题

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
2026-06-27 18:16:43 +08:00
XiaoXia Bot 0b990017ca fix(security): 删除 .env.production 并清理硬编码密码
- 删除 .env.production(含占位符密钥,已从版本控制移除)
- scripts/smoke_public_*.py: 密码改为从环境变量 SMOKE_TEST_PASSWORD 读取
- infra/docker/infra.yml: POSTGRES_PASSWORD 改为引用环境变量
- packages/application/auth/jwt_handler.py: 文档示例密钥改为占位符
2026-06-27 18:10:52 +08:00
xiaoxia 48d3754956 Merge pull request 'fix: 修复后端 8 项审计问题 (P1/P2)' (#51) from fix/audit-backend-p1p2 into develop 2026-06-27 17:20:32 +08:00
Audit Bot 401564f9f2 feat(#31): 添加密钥轮换机制支持
- 添加 JWT_SECRET_KEY_OLD 配置项支持双密钥平滑迁移
- 添加 SECRET_ROTATION_DAYS 配置项(默认90天)提示轮换周期
- 创建 docs/KEY-ROTATION.md 密钥轮换操作指南文档
- 包含完整的轮换流程和注意事项
2026-06-27 17:20:17 +08:00
Audit Bot 2c6d920bcb fix(#25): 移除硬编码 localhost:3000
- 添加 APP_BASE_URL 配置项到 Settings
- auth.py 中改用 settings.APP_BASE_URL
- register_user_use_case.py 和 password_reset_use_case.py 移除默认值
- base_url 参数改为必须由调用方传入
- 更新 .env.example 添加 APP_BASE_URL
2026-06-27 17:20:17 +08:00
Audit Bot 627fe0eb8b fix(#23,#24): 统一 storage_key/file_url 命名和 file_size 类型
- AssetModel: 添加 storage_key 字段注释说明为 OSS 对象键
- AssetModel/GeneratedVideoModel: file_size 从 Float 改为 Integer
- 添加 file_url 字段注释说明为完整可访问 URL
- 确保字节数精度,避免浮点数精度问题
2026-06-27 17:20:17 +08:00
Audit Bot 793104c8e7 fix(#12): 实现 refresh token 查找功能
- 完善 _find_session_by_refresh_token() 方法
- 使用 session_store.get_session_by_refresh_token() 直接查询
- 利用 Redis 反向索引实现 O(1) 查找复杂度
2026-06-27 17:20:17 +08:00
Audit Bot b58388dec0 fix(#17): 调整数据库连接池配置
- 将 DATABASE_MAX_OVERFLOW 从 40 调整为 10
- pool_size(20) + max_overflow(10) = 最大 30 连接
- 添加注释说明连接池配置
2026-06-27 17:20:17 +08:00
xiaoxia 15b49082d1 Merge pull request 'fix: 修复前端审计问题 (#26-28)' (#50) from fix/audit-frontend-p2 into develop 2026-06-27 17:19:51 +08:00
xiaoxia 6ce9a0e67e Merge pull request 'fix: Redis session env fix + JWT import path fix (登录失败根因修复)' (#52) from hotfix/redis-session-env-fix into develop 2026-06-27 17:18:11 +08:00
xiaoxia a5c5da50c6 fix: 修复 jwt_service.py 错误的 settings 导入路径导致登录 401
- packages.config.settings 模块不存在,改为 from app.config import settings
- 此 bug 导致 JWT token 生成时 ModuleNotFoundError,被 except 捕获后返回通用 401
2026-06-27 17:17:38 +08:00
xiaoxia a6e85092ce fix: 统一 ENABLE_REDIS_SESSIONS 命名,修复登录因 AttributeError 导致 500 2026-06-27 17:05:48 +08:00
Audit Agent 91bdc57402 fix: remove duplicate route configuration
Issue #28: Clean up duplicate routes

- Removed duplicate 'profile/settings' route that pointed to same Settings component
- 'profile' route is now the single route for settings page
2026-06-27 17:01:31 +08:00
Audit Agent 80544af807 fix: remove console.log statements from frontend code
Issue #26: Clean up console.log debug statements in production code

- Removed debug console.log from Plans.tsx (subscription page)
- Removed debug console.log from ProjectGeneration.tsx (workspace page)
- Kept console.error for error logging
2026-06-27 16:59:43 +08:00
xiaoxia 9bb40d9c30 Merge pull request 'fix: correct ENABLE_REDIS_SESSIONS typo to ENABLE_REDIS_SESSION' (#46) from fix/enable-redis-session-typo into develop
Merge pull request #46: fix ENABLE_REDIS_SESSIONS typo
2026-06-27 14:46:20 +08:00
xiaoxia 388aafbab0 fix: correct ENABLE_REDIS_SESSIONS typo to ENABLE_REDIS_SESSION 2026-06-27 14:45:50 +08:00
xiaoxia eb10c1638f Merge pull request 'fix: 修复部署v0.1.64 - SmartEditPlanGenerator迁移 + 移除workspaces死路由' (#45) from fix/deployment-v0.1.64-hotfix into develop 2026-06-27 12:44:38 +08:00
CI Bot 36e12f77a9 fix: move SmartEditPlanGenerator to domain layer, remove dead workspaces route 2026-06-27 12:44:04 +08:00
CI Bot 44ca36e1a5 fix: remove Workspace from domain __init__ (class removed but import remained) 2026-06-27 12:09:16 +08:00
xiaoxia 52362ce498 Merge pull request 'fix: 消除 API↔Worker 跨端依赖(架构解耦)' (#44) from fix/architecture-decouple into develop 2026-06-27 11:16:03 +08:00
xiaoxia 1404731eb2 Merge pull request 'fix: 修复数据库迁移版本冲突 (007→008→009)' (#43) from fix/migration-repair into develop 2026-06-27 11:15:53 +08:00
xiaoxia 42a3d12d87 Merge pull request 'fix: resolve all workspace removal breakage - stub permissions, quota, ports, adapters' (#42) from fix/workspace-removal-compat into develop 2026-06-27 11:15:40 +08:00
CI Bot c98ab4c1ef feat: decouple API and Worker cross-service dependencies 2026-06-27 10:22:25 +08:00
CI Bot 705e2445e9 fix: resolve alembic migration version conflict (007)
Problem:
- Two migrations had revision ID 007 causing conflict:
  - 007_add_editing_mode.py
  - 007_add_video_dedup_fields.py
- 007_remove_workspace_concept had incorrect down_revision

Solution:
- Keep 007_add_editing_mode.py as revision=007 (first created)
- Rename 007_add_video_dedup_fields.py -> 008_add_video_dedup_fields.py
  with revision=008, down_revision=006
- Rename 007_remove_workspace_concept.py -> 009_remove_workspace_concept.py
  with revision=007_remove_workspace_concept, down_revision=008

Migration chain: 006 -> 007 -> 008 -> 009_remove_workspace_concept
2026-06-27 10:21:12 +08:00
CI Bot de4db98982 fix: add lazy jwt_service singleton proxy 2026-06-27 09:54:28 +08:00
CI Bot f62a050cb0 fix: add missing project_title_repository port 2026-06-27 09:51:37 +08:00