From 42263bd37e6f2f7acd2ce635340461c81406bf38 Mon Sep 17 00:00:00 2001 From: "Rodrigo Rodriguez (Pragmatismo)" Date: Thu, 8 Jan 2026 13:16:29 -0300 Subject: [PATCH] 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 --- TODO.md | 115 +++++++++++++++++++++++++++++++++++++++++++++++++++ botapp | 2 +- botbook | 2 +- botlib | 2 +- botserver | 2 +- bottemplates | 2 +- botui | 2 +- 7 files changed, 121 insertions(+), 6 deletions(-) create mode 100644 TODO.md diff --git a/TODO.md b/TODO.md new file mode 100644 index 0000000..7c27eaa --- /dev/null +++ b/TODO.md @@ -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> +pub fn configure(router: Router>) -> Router> +``` + +--- + +## 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 \ No newline at end of file diff --git a/botapp b/botapp index 5a82552..879f94a 160000 --- a/botapp +++ b/botapp @@ -1 +1 @@ -Subproject commit 5a82552a64982ef391605c37c09de805f2d97ae0 +Subproject commit 879f94a2576a09d745b8728acdb02a42ec817c31 diff --git a/botbook b/botbook index e142a89..4ea0e86 160000 --- a/botbook +++ b/botbook @@ -1 +1 @@ -Subproject commit e142a898f025fb277da185f5472a406b7740b783 +Subproject commit 4ea0e86a1b8ec3db548baad43dd6c0520e8130ac diff --git a/botlib b/botlib index a50d229..ff599a2 160000 --- a/botlib +++ b/botlib @@ -1 +1 @@ -Subproject commit a50d229346167c539d3fbae2dcf26160df311e41 +Subproject commit ff599a2cd4847972eedff2ed5345bdfc264a60bc diff --git a/botserver b/botserver index 86cfccc..d42eaa8 160000 --- a/botserver +++ b/botserver @@ -1 +1 @@ -Subproject commit 86cfccc27ffc126b1164b7818edea8bc0819dfdd +Subproject commit d42eaa8f061220d155a97105d3a41741aa498312 diff --git a/bottemplates b/bottemplates index 5adb6ef..c0e1481 160000 --- a/bottemplates +++ b/bottemplates @@ -1 +1 @@ -Subproject commit 5adb6efec4a5b92be1ce7965e6da7118984ed2d7 +Subproject commit c0e14819fe322132bf96db27804aca056b3261e5 diff --git a/botui b/botui index 5f65a62..cb33a75 160000 --- a/botui +++ b/botui @@ -1 +1 @@ -Subproject commit 5f65a6280873a3704e60737219ffbdb20f3228be +Subproject commit cb33a75d39f2cf53de952622f72e8e6ef4ea0690