Commit Graph

9 Commits

Author SHA1 Message Date
122ab774c3 Обновил .gitignore 2026-02-02 22:19:33 +03:00
fc3f438cbf chore: add ruff and ty, fix linting
- Add ruff (line-length 88) and ty to dev dependencies
- Fix all ruff linting errors
- Configure ty to ignore nullable type warnings
- Update AGENTS.md with linting instructions
2026-02-02 21:43:08 +03:00
52dce1b2b8 feat: add polish and fallback handlers
- Add fallback handler for unexpected text messages
- Remove unused require_states alias
- Update TASK.md - all stages complete
2026-02-02 21:31:51 +03:00
613e492b2d refactor: extract common handler logic into decorators
- Add @answer_callback for auto-answering callback queries
- Add @with_user_and_session for injecting user/session
- Add @require_state for state validation
- Reduce handlers.py from ~850 to ~540 lines
2026-02-02 21:29:30 +03:00
8fecb3d543 feat: add FSM handlers and admin interface
- Add all user FSM states (INTRO through CONFIRM_SAVE)
- Add replica re-recording by number (ASK_REPLICA_NUMBER, REPEAT_REPLICA)
- Add admin interface with stats and scenario upload
- Add voice message handling and storage
2026-02-02 21:25:19 +03:00
661f1913af feat: add scenario management
- Add JSON scenario loading and validation
- Add track selection logic with priorities
- Add file management (data_partial → data)
2026-02-02 20:51:58 +03:00
db7f6ddc18 feat: add database layer
- Add SQLite schema (users, scenarios, replicas, recordings, user_sessions)
- Add UserState enum for FSM states
- Add CRUD operations for all entities
- Add get_stats() for admin dashboard
2026-02-02 20:47:56 +03:00
c289d9c54e feat: add project infrastructure
- Add src/ structure with config and logger modules
- Add .env.example with required environment variables
- Add python-dotenv dependency
- Add TASK.md with implementation roadmap
2026-02-02 20:42:12 +03:00
52d5e54bfe Init 2026-02-02 20:29:05 +03:00