feat: 实现密码重置功能与用户搜索API,优化注册登录流程
- 新增忘记密码页面与重置密码确认流程(前端+后端) - 修复注册验证码页登录跳转路由 - 新增用户搜索API(按邮箱查询) - 简化infra脚本,统一为app.sh - 补充密码重置与用户API测试覆盖 - 更新runtime文档与AGENTS配置
This commit is contained in:
@@ -1,35 +1,39 @@
|
||||
## Repository Structure
|
||||
# Project Development Guide
|
||||
|
||||
- `infra/`: Infrastructure and operations (Docker, scripts, deployment).
|
||||
- `backend/`: FastAPI backend.
|
||||
- `apps/`: Flutter mobile app.
|
||||
- `docs/`: Documentation and design/planning artifacts.
|
||||
This file serves as the entry point for project development, directing to appropriate constraint files based on development context.
|
||||
|
||||
## Project Structure
|
||||
|
||||
```
|
||||
social-app/
|
||||
├── apps/ # Flutter mobile app
|
||||
├── backend/ # FastAPI backend service
|
||||
├── infra/ # Infrastructure (Docker, deployment scripts)
|
||||
└── docs/ # Documentation and design/planning artifacts
|
||||
```
|
||||
|
||||
## Rules Hierarchy
|
||||
|
||||
- This root `AGENTS.md` defines global rules and applies to all changes.
|
||||
- When editing `backend/`, you must also follow `backend/AGENTS.md`.
|
||||
- When editing `apps/`, you must also follow `apps/AGENTS.md`.
|
||||
Follow this hierarchy when developing:
|
||||
|
||||
## Docker Startup
|
||||
|
||||
Always start services with the env file:
|
||||
|
||||
```bash
|
||||
docker compose --env-file .env -f infra/docker/docker-compose.yml up -d
|
||||
```
|
||||
~/.config/opencode/AGENTS.md # Global core rules (skills, agents, process)
|
||||
├── This file (root AGENTS.md) # Project-level entry
|
||||
│ ├── backend/AGENTS.md # Backend-specific rules
|
||||
│ └── apps/AGENTS.md # Frontend-specific rules
|
||||
```
|
||||
|
||||
## Git Branch and Worktree Policy
|
||||
## Development Guidance
|
||||
|
||||
- Use `dev` as the default base branch for day-to-day development.
|
||||
- New development worktrees must be created from `dev` (never from `main`).
|
||||
- Do not develop or commit directly on `main` outside explicit release/merge workflows.
|
||||
- Do not rewrite `main` history unless explicitly requested (including reset and force push).
|
||||
| Development Context | Follow Rules |
|
||||
|--------------------|--------------|
|
||||
| Backend Python dev | [backend/AGENTS.md](backend/AGENTS.md) |
|
||||
| Flutter mobile dev | [apps/AGENTS.md](apps/AGENTS.md) |
|
||||
| Infrastructure/ops | This file + infra/ directory conventions |
|
||||
| API doc changes | Sync to `docs/runtime/runtime-route.md` |
|
||||
|
||||
## API Route Documentation
|
||||
## Git Workflow
|
||||
|
||||
When modifying HTTP routes (adding, updating, or removing endpoints):
|
||||
|
||||
- Sync changes to `docs/runtime/runtime-route.md`
|
||||
- Include: HTTP method, path, request/response schema, status codes, error format
|
||||
- Keep documentation in sync with actual implementation
|
||||
- Default branch: `dev`
|
||||
- Feature development: use worktree `git worktree add -b feature/xxx ../feature-xxx dev`
|
||||
- Never develop directly on `main`
|
||||
|
||||
Reference in New Issue
Block a user