Commit graph

103 commits

Author SHA1 Message Date
c9cfc708ad Update botserver submodule and add .cargo directory 2026-01-19 15:28:40 -03:00
dbc48b127c Auto-commit: 20260118_195338 2026-01-18 19:53:39 -03:00
fda3186ba0 Update PROMPT.md files and add .vscode directory 2026-01-15 16:35:07 -03:00
5ed7a2be81 Update submodule references for botserver and botui 2026-01-13 14:49:42 -03:00
ebe52997ac Implement HIGH/MEDIUM priority TODO items
Learn Module Session Integration:
- Added AuthenticatedUser extractor to 9 handlers
- submit_quiz, get_progress, start_course, complete_lesson_handler
- create_assignment, get_pending_assignments, get_certificates
- get_recommendations, get_user_stats

Security Auth Role Fetching:
- validate_session_sync() reads from SESSION_CACHE
- Maps role strings to Role enum (Admin, SuperAdmin, etc.)
- Falls back to User role for uncached sessions

AutoTask Improvements:
- get_task_logs() reads from manifest with status-based logs
- store_compiled_intent() saves to cache and database

Face API Full Implementation:
- AWS Rekognition: detect, verify, analyze
- OpenCV: local face detection/verification
- InsightFace: RetinaFace detection, ArcFace verification
- Helper methods: get_image_bytes, simulate_face_detection, generate_landmarks
2026-01-13 14:48:01 -03:00
5d13d2b4f8 Update TODO.md with comprehensive list of remaining missing implementations
Added detailed tracking for:
- Face API providers (AWS Rekognition, OpenCV, InsightFace) - 9 stubs
- Learn module session integration - 9 handlers need user_id
- AutoTask module incomplete items
- Security role fetching from Zitadel
- Basic keywords dynamic row issue
- Designer canvas placeholder SVGs
- Meet module transcription stubs
- Email/folder monitoring production integration
- Contact integration junction tables
- Billing mock testing structs
- Priority matrix (HIGH/MEDIUM/LOW)
2026-01-13 13:07:51 -03:00
f82bc26e91 Fix UI button handlers, implement backend stubs, fix compilation errors
- Add admin-functions.js to main suite/index.html for 40+ button handlers
- Fix slides module gbSlides -> window.slidesApp references
- Add missing IntoResponse import to analytics.rs
- Implement recording database methods (get, list, create, update, delete)
- Implement calendar check_conflicts and get_events_range
- Implement calendar integration methods (fetch contacts, find collaborators)
- Implement tasks integration methods (fetch tasks, find assignees)
- Implement autotask get_pending_decisions, get_pending_approvals, apply_recommendation
- Implement get_trends in insights.rs with actual data
- Implement fetch_new_emails and fetch_folder_changes with mock data
- Remove unused imports (put from workspaces, delete from legal)
- Update TODO.md with completed items
2026-01-13 13:06:28 -03:00
6c9e535ee5 Update TODO.md with comprehensive module audit 2026-01-13 08:24:07 -03:00
da47268d5f Update botserver submodule and TODO.md for database persistence implementation 2026-01-13 00:07:58 -03:00
248842f9df chore: update botserver submodule with CRM/billing/products routes 2026-01-12 14:35:19 -03:00
899a4ad59b chore: update botlib and botserver submodules 2026-01-12 14:14:03 -03:00
4b49892e73 chore: update botui submodule 2026-01-12 14:05:24 -03:00
64984ea8e8 feat(botui): implement CSS lazy loading for faster index.html load
- Add css-loader.js utility for on-demand stylesheet loading
- Load critical CSS sync (app.css, base.css, theme-sentient.css)
- Load non-critical CSS async (components, partials, apps-extended)
- Add CSS links to all app HTML files for per-screen loading
- Reduces initial payload from ~60K lines to ~5.7K lines
2026-01-12 14:01:33 -03:00
d0c72c5b0f Update botui: fix theme cascade for office suite 2026-01-11 21:09:19 -03:00
98b2ee8892 Update botui: fix light theme loading for office suite 2026-01-11 20:59:17 -03:00
cdfaabb328 Update botui: add theme support to all 18 themes for office suite 2026-01-11 20:54:44 -03:00
adf2722dc0 Update botui: fix sentient theme for office suite 2026-01-11 20:38:44 -03:00
46a77c6edd Update botui submodule: theme support for office suite apps 2026-01-11 20:28:49 -03:00
a3e3aee726 Update botserver submodule 2026-01-11 20:10:59 -03:00
17a4b89bb1 Update botserver submodule: fix overlapping route panic 2026-01-11 18:49:17 -03:00
54342a76e1 Fix all compilation errors and warnings for MS Office compatibility
- Fix umya-spreadsheet API: set_vertical_split/set_horizontal_split
- Fix CommentText to use get_rich_text() for text extraction
- Fix Fill.get_pattern_fill() and get_foreground_color() Option handling
- Fix alignment enum matching with HorizontalAlignmentValues/VerticalAlignmentValues
- Add missing Slide fields: transition_config, media
- Remove unused imports and variables across docs, slides, sheet modules
- Remove unused constants in security protection modules
- Fix irrefutable if let patterns in docs/storage.rs
- Update PROMPT.md with memory management section

0 warnings, 0 errors
2026-01-11 18:29:28 -03:00
83ede47d35 chore: Update botserver submodule with Phase 4-5 features 2026-01-11 12:28:03 -03:00
c2de7a456f chore: Update botserver submodule with Phase 3 features 2026-01-11 12:13:29 -03:00
8fd91bd172 chore: Update submodule pointers 2026-01-11 12:02:08 -03:00
99e1477df8 Update botserver submodule - umya-spreadsheet for Excel 2026-01-11 10:02:27 -03:00
75fe51aee4 Update submodule references for MS Office compatibility 2026-01-11 09:57:00 -03:00
445273364b MS Office 100% Compatibility - Phase 1 Implementation
- Add rust_xlsxwriter for Excel export with formatting support
- Add docx-rs for Word document import/export
- Add PPTX export support with slides, shapes, and text
- Update sheet/docs/slides storage modules for Office format handling
- Fix collaboration modules (borrow issues, rand compatibility)
- Remove umya-spreadsheet dependency (using rust_xlsxwriter instead)
- Add ooxmlsdk dependency for future Office 2021 features
- Fix type mismatches in slides storage (ElementContent, SlideBackground)
- UI already theme-aware with --sentient-* CSS variables
- Clean M365-like interface (no sidebars, document-focused)

TODO.md Progress:
 Module refactoring (sheet/docs/slides split into multiple files)
 UI/UX - Clean editor experience (no sidebar, theme variables)
 Phase 1 Excel - rust_xlsxwriter export with styles
 Phase 2 Word - docx-rs import/export HTML conversion
 Phase 3 PowerPoint - PPTX export with slides/shapes
 Phase 4 Drive Integration - endpoints partially wired
2026-01-11 09:55:58 -03:00
f400e69ca4 feat(security): complete Security Protection Module implementation
 All phases completed:

Phase 1 - Backend (botserver):
- Protection module with manager, API routes, tool integrations
- Lynis, RKHunter, Chkrootkit, Suricata, LMD support
- Routes registered in main.rs

Phase 2 - Frontend (botui):
- Security page with Protection tab
- Removed unused askama dependencies

Phase 3 - Documentation (botbook):
- Comprehensive protection-tools.md documentation
- Added to SUMMARY.md

Phase 4 - BASIC Keywords:
- 8 new keywords for scripting security operations
- security_protection.rs with ETL functions

Closes security protection TODO.
2026-01-10 20:33:16 -03:00
b03281a2b8 chore: update submodule references 2026-01-10 17:32:46 -03:00
71a2603495 fix(auth): align auth middleware anonymous paths with RBAC config
- Remove broad /api/auth anonymous path that was matching /api/auth/me
- Add specific anonymous paths: /api/auth/login, /api/auth/refresh, /api/auth/bootstrap
- Remove /api/auth/logout, /api/auth/2fa/* from anonymous (require auth)
- Fix /api/auth/me returning 401 for authenticated users

The issue was auth middleware treating /api/auth/me as anonymous due to
prefix matching on /api/auth, while RBAC correctly required authentication.
2026-01-10 17:30:35 -03:00
3cc05cc9ad chore: update botui submodule 2026-01-10 14:19:42 -03:00
9b4d7d68dc chore: update botserver submodule with complete RBAC routes 2026-01-10 14:13:42 -03:00
1cb96d6767 chore: update botserver submodule 2026-01-10 14:07:46 -03:00
65b94ad612 chore: update botui submodule for HTMX auth fix 2026-01-10 14:00:57 -03:00
0561ab3383 chore: update submodules for RBAC and API client 2026-01-10 11:48:31 -03:00
4e2ea5f9ab chore: update botserver submodule for RBAC middleware 2026-01-10 11:42:07 -03:00
88024b51df chore: update botserver submodule for auth fixes 2026-01-10 11:15:14 -03:00
59e153b7ce chore: update submodule references for i18n fixes 2026-01-10 10:54:39 -03:00
23f947e578 fix: add /api/auth to anonymous paths for chat session creation
- Fix 401 Unauthorized on /api/auth?bot_name=default endpoint
- Allow anonymous users to create chat sessions without prior authentication
- Fix i18n.js DOM timing issue - wait for document.body before attaching listeners
2026-01-10 10:49:19 -03:00
d2d65ef21f Update submodules with security protection module 2026-01-10 09:41:39 -03:00
c586719561 Add security protection module with sudo-based privilege escalation
- Create installer.rs for 'botserver install protection' command
- Requires root to install packages and create sudoers config
- Sudoers uses exact commands (no wildcards) for security
- Update all tool files (lynis, rkhunter, chkrootkit, suricata, lmd) to use sudo
- Update manager.rs service management to use sudo
- Add 'sudo' and 'visudo' to command_guard.rs whitelist
- Update CLI with install/remove/status protection commands
- Create comprehensive botbook documentation
- Update SUMMARY.md with protection-tools entry

Security model:
- Installation requires root (sudo botserver install protection)
- Runtime uses sudoers NOPASSWD for specific commands only
- No wildcards in sudoers - exact command specifications
- Tools run on host system, not in containers
2026-01-10 09:40:52 -03:00
eae5e5c27f Update TODO.md - mark all phases complete
- Phase 5 verification complete
- Add ExtractedAuthData to key types
- Update auth.rs changes description
2026-01-10 07:00:05 -03:00
376947cd41 Mark Phase 5.1 compilation test as complete 2026-01-10 06:49:39 -03:00
b8daea2e75 Fix auth middleware compilation and complete Phase 5 verification
- Fix JwtKey::from_secret to use &str instead of &[u8]
- Fix auth_middleware_with_providers to avoid holding &Request across await
- Add ExtractedAuthData struct for thread-safe auth data extraction
- Remove duplicate require_permission_middleware export from rbac_middleware
- Fix check_route_access argument order in rbac_middleware
- Remove unused auth_config field from ZitadelAuthProviderAdapter
- Remove unused imports (body::Body, http::Request, AuthError)
- Make check_permission_string public for middleware use
- Add missing jwt_manager, auth_provider_registry, rbac_manager fields to AppState

Phase 5.1 compilation test: PASSED (0 warnings, 0 errors)
2026-01-10 06:49:18 -03:00
03ced8e327 Fix dropdown menu duplicates and reorder items
- Fix CSS breakpoints to sync header tabs with dropdown menu visibility
- Add missing apps (docs, sheet, slides, social) to hide/show logic
- Remove incorrect paper breakpoint (not in header tabs)
- Reorder dropdown: dynamic items first (header tab apps), then static items
- Move People after dynamic items (after social)
- Remove duplicate Social entry from dropdown menu
- All 26 suite app folders have menu entries (no orphans)
2026-01-09 21:19:43 -03:00
a0817363c4 Fix compilation errors: add missing struct fields and fix type mismatches
- LargeOrgOptimizer: add partition_manager field
- DataPartition: add organization_id, partition_key, start_range, end_range, created_at fields
- AuthError::InvalidToken: change to tuple variant with String, fix all call sites
- FallbackAttemptTracker: add first_attempt_at field
- OrganizationRbacService: add user_groups and user_direct_permissions fields
- RekognitionService: add liveness_sessions field and LivenessSession struct
2026-01-08 23:38:21 -03:00
7a887846e2 chore: Update botserver submodule with compilation fixes 2026-01-08 15:35:21 -03:00
b0873a8b72 chore: Update botserver submodule with video module implementation 2026-01-08 13:45:05 -03:00
e960da7c3d 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
2026-01-08 13:16:29 -03:00
14f58f9975 Remove completed TODO and cleanup 2026-01-08 12:11:26 -03:00