Add TODO.md for video module and update all submodules

Submodule updates:
- botapp: safe_command module, desktop sync improvements
- botbook: RBAC docs, white-label, security, channel setup docs
- botlib: i18n localization support (en, es, pt-BR)
- botserver: video module, RBAC, security, billing, contacts, learn, social
- bottemplates: HR and productivity templates
- botui: admin, dashboards, learn, social, video UI
This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2026-01-08 13:16:29 -03:00
parent b2b5bf01bb
commit 42263bd37e
7 changed files with 121 additions and 6 deletions

115
TODO.md Normal file
View file

@ -0,0 +1,115 @@
# General Bots - Video Module TODO
**Status:** In Progress
**Priority:** HIGH
---
## Files to Complete
### Partially Created (need completion)
- [ ] `botserver/src/video/handlers.rs` - truncated at line 824, needs remaining handlers
- [ ] `botserver/src/video/mod.rs` - needs to wire up all submodules and routes
### Not Yet Created
- [ ] `botserver/src/video/analytics.rs` - video analytics tracking
- [ ] `botserver/src/video/websocket.rs` - WebSocket for real-time export progress
- [ ] `botserver/src/video/render.rs` - FFmpeg render worker with .gbdrive storage
- [ ] `botserver/src/video/mcp_tools.rs` - MCP tools for AI agents
---
## Features to Implement
### Core (Partially Done)
- [x] Schema definitions (`schema.rs`)
- [x] Data models (`models.rs`)
- [x] VideoEngine core methods (`engine.rs`)
- [ ] HTTP handlers completion (`handlers.rs`)
- [ ] Route configuration (`mod.rs`)
### AI Features (Engine methods exist, handlers needed)
- [x] Transcription (Whisper)
- [x] Auto-captions generation
- [x] Text-to-speech
- [x] Scene detection
- [x] Auto-reframe
- [x] Background removal
- [x] Video enhancement/upscaling
- [x] Beat sync for music
- [x] Waveform generation
### New Features
- [ ] WebSocket real-time export progress
- [ ] Video analytics (views, engagement)
- [ ] Save exports to `.gbdrive/videos`
- [ ] Keyframe animations
- [ ] MCP tools for video operations
---
## Handlers Needed in handlers.rs
```rust
// Missing handlers to add:
pub async fn generate_waveform_handler
pub async fn list_templates
pub async fn apply_template_handler
pub async fn add_transition_handler
pub async fn chat_edit
pub async fn start_export
pub async fn get_export_status
pub async fn video_ui
```
---
## mod.rs Structure Needed
```rust
mod analytics;
mod engine;
mod handlers;
mod models;
mod render;
mod schema;
mod websocket;
pub mod mcp_tools;
pub use engine::VideoEngine;
pub use handlers::*;
pub use models::*;
pub use render::{start_render_worker, VideoRenderWorker};
pub use schema::*;
// Route configuration with all endpoints
pub fn configure_video_routes() -> Router<Arc<AppState>>
pub fn configure(router: Router<Arc<AppState>>) -> Router<Arc<AppState>>
```
---
## Migration Required
File: `botserver/migrations/20250716000001_add_video_tables/up.sql`
Tables needed:
- video_projects
- video_clips
- video_layers
- video_audio_tracks
- video_exports
- video_command_history
- video_analytics
- video_keyframes
---
## Notes
- All code must follow PROMPT.md guidelines
- Use SafeCommand instead of Command::new()
- Use ErrorSanitizer for HTTP error responses
- No comments in code
- No .unwrap() or .expect() in production code

2
botapp

@ -1 +1 @@
Subproject commit 5a82552a64982ef391605c37c09de805f2d97ae0 Subproject commit 879f94a2576a09d745b8728acdb02a42ec817c31

@ -1 +1 @@
Subproject commit e142a898f025fb277da185f5472a406b7740b783 Subproject commit 4ea0e86a1b8ec3db548baad43dd6c0520e8130ac

2
botlib

@ -1 +1 @@
Subproject commit a50d229346167c539d3fbae2dcf26160df311e41 Subproject commit ff599a2cd4847972eedff2ed5345bdfc264a60bc

@ -1 +1 @@
Subproject commit 86cfccc27ffc126b1164b7818edea8bc0819dfdd Subproject commit d42eaa8f061220d155a97105d3a41741aa498312

@ -1 +1 @@
Subproject commit 5adb6efec4a5b92be1ce7965e6da7118984ed2d7 Subproject commit c0e14819fe322132bf96db27804aca056b3261e5

2
botui

@ -1 +1 @@
Subproject commit 5f65a6280873a3704e60737219ffbdb20f3228be Subproject commit cb33a75d39f2cf53de952622f72e8e6ef4ea0690