Skip to content

Dev#5

Merged
koishi510 merged 19 commits into
mainfrom
dev
Jan 24, 2026
Merged

Dev#5
koishi510 merged 19 commits into
mainfrom
dev

Conversation

@koishi510
Copy link
Copy Markdown
Owner

关联 Issue

变更概述

变更类型

  • 新功能 (New Feature)
  • 缺陷修复 (Bug Fix)
  • 代码重构 (Refactor)
  • 性能优化 (Performance)
  • 文档更新 (Documentation)
  • 依赖或配置调整 (Dependency / Configuration)

自测清单

  • 代码已在本地环境运行测试,功能逻辑符合预期。
  • 已执行格式化与静态检查:uv run ruff format .uv run ruff check . --fix
  • 已执行类型检查:uv run mypy .
  • (如涉及依赖变更) 已运行 uv sync 并提交了更新后的 uv.lock 文件。
  • 提交的代码已移除所有临时的调试输出 (print/log)。
  • 本次变更已包含必要的单元测试或文档更新。

测试步骤

  1. 拉取分支并同步环境: uv sync
  2. 运行指令: ...
  3. 操作步骤: ...

4rthurCai and others added 19 commits January 24, 2026 16:04
- Add .env.example with LLM and TTS settings
- Update .gitignore with MediaPipe models and TTS cache
- Add dependencies: mediapipe, langgraph, edge-tts, langchain-openai
- Add core config and database modules

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add CLAUDE.md with system architecture and technical decisions
- Add CHANGELOG.md documenting recovery coach implementation

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add pose data schemas with 33 MediaPipe keypoints
- Add exercise and phase requirement schemas
- Add feedback message schemas with types
- Add progress tracking and session record schemas

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add pose detection with MediaPipe Pose Landmarker
- Add posture analysis with angle requirements checking
- Add safety monitoring for fatigue and compensation detection
- Add LLM-powered feedback generation with Chinese TTS
- Add coaching workflow state management
- Add exercise progress tracking

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add WebSocket endpoint for real-time pose streaming
- Add frame throttling for performance optimization
- Add exercises REST API endpoint
- Add progress REST API endpoint

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add exercise coaching page with camera and AR overlay
- Add audio queue system to prevent speech overlap
- Add performance optimizations (reduced frame rate, resolution)
- Add progress visualization and feedback display

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Configure FastAPI with CORS, static files, and templates
- Add MediaPipe preloading at startup for better WebSocket performance
- Add health check and root page endpoints
- Register API routers for WebSocket, exercises, and progress

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Refactor recovery_coach to services/rehab
- Add chat/companion service with ZhipuAI integration
- Create Next.js frontend with two pages:
  - /chat: Soulful Companion emotional support
  - /rehab: AI Recovery Coach with full features
- Add node_modules and .next to .gitignore

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
@koishi510 koishi510 requested a review from 4rthurCai as a code owner January 24, 2026 08:30
@koishi510 koishi510 merged commit 3e04ffb into main Jan 24, 2026
3 checks passed
4rthurCai added a commit that referenced this pull request Mar 15, 2026
- CORS: disable credentials when origins is wildcard (#1)
- Token blacklist: evict expired entries before dropping new tokens (#3)
- Static files: add security headers, block dangerous file types (#5)
- HSTS: add Strict-Transport-Security header (#6)
- HTML sanitization: escape user content in community service (#10)
- Security logging: log auth failures, admin ops, JWT errors (#12)
- Guest sessions: HMAC-sign session IDs to prevent spoofing (#15)
- AI credentials: read from env vars instead of hardcoding (#16)
- Cache-Control: add no-store for API responses (#17)
- URL validation: reject non-HTTP(S) URLs in chat search (#19)
- Like endpoints: split POST/DELETE into idempotent AddLike/RemoveLike (PR #167)
koishi510 pushed a commit that referenced this pull request Mar 15, 2026
- CORS: disable credentials when origins is wildcard (#1)
- Token blacklist: evict expired entries before dropping new tokens (#3)
- Static files: add security headers, block dangerous file types (#5)
- HSTS: add Strict-Transport-Security header (#6)
- HTML sanitization: escape user content in community service (#10)
- Security logging: log auth failures, admin ops, JWT errors (#12)
- Guest sessions: HMAC-sign session IDs to prevent spoofing (#15)
- AI credentials: read from env vars instead of hardcoding (#16)
- Cache-Control: add no-store for API responses (#17)
- URL validation: reject non-HTTP(S) URLs in chat search (#19)
- Like endpoints: split POST/DELETE into idempotent AddLike/RemoveLike (PR #167)
koishi510 pushed a commit that referenced this pull request Mar 15, 2026
- CORS: disable credentials when origins is wildcard (#1)
- Token blacklist: evict expired entries before dropping new tokens (#3)
- Static files: add security headers, block dangerous file types (#5)
- HSTS: add Strict-Transport-Security header (#6)
- HTML sanitization: escape user content in community service (#10)
- Security logging: log auth failures, admin ops, JWT errors (#12)
- Guest sessions: HMAC-sign session IDs to prevent spoofing (#15)
- AI credentials: read from env vars instead of hardcoding (#16)
- Cache-Control: add no-store for API responses (#17)
- URL validation: reject non-HTTP(S) URLs in chat search (#19)
- Like endpoints: split POST/DELETE into idempotent AddLike/RemoveLike (PR #167)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants