Some checks failed
BotServer CI / build (push) Failing after 1m34s
Split 20+ files over 1000 lines into focused subdirectories for better maintainability and code organization. All changes maintain backward compatibility through re-export wrappers. Major splits: - attendance/llm_assist.rs (2074→7 modules) - basic/keywords/face_api.rs → face_api/ (7 modules) - basic/keywords/file_operations.rs → file_ops/ (8 modules) - basic/keywords/hear_talk.rs → hearing/ (6 modules) - channels/wechat.rs → wechat/ (10 modules) - channels/youtube.rs → youtube/ (5 modules) - contacts/mod.rs → contacts_api/ (6 modules) - core/bootstrap/mod.rs → bootstrap/ (5 modules) - core/shared/admin.rs → admin_*.rs (5 modules) - designer/canvas.rs → canvas_api/ (6 modules) - designer/mod.rs → designer_api/ (6 modules) - docs/handlers.rs → handlers_api/ (11 modules) - drive/mod.rs → drive_handlers.rs, drive_types.rs - learn/mod.rs → types.rs - main.rs → main_module/ (7 modules) - meet/webinar.rs → webinar_api/ (8 modules) - paper/mod.rs → (10 modules) - security/auth.rs → auth_api/ (7 modules) - security/passkey.rs → (4 modules) - sources/mod.rs → sources_api/ (5 modules) - tasks/mod.rs → task_api/ (5 modules) Stats: 38,040 deletions, 1,315 additions across 318 files Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
84 lines
2.1 KiB
Rust
84 lines
2.1 KiB
Rust
|
|
|
|
|
|
pub mod admin;
|
|
pub mod admin_types;
|
|
pub mod admin_config;
|
|
pub mod admin_email;
|
|
pub mod analytics;
|
|
pub mod enums;
|
|
pub mod memory_monitor;
|
|
pub mod models;
|
|
pub mod schema;
|
|
pub mod state;
|
|
#[cfg(test)]
|
|
pub mod test_utils;
|
|
pub mod utils;
|
|
|
|
|
|
pub use enums::*;
|
|
pub use schema::*;
|
|
|
|
|
|
pub use botlib::branding::{
|
|
branding, copyright_text, footer_text, init_branding, is_white_label, log_prefix,
|
|
platform_name, platform_short, BrandingConfig,
|
|
};
|
|
pub use botlib::error::{BotError, BotResult};
|
|
pub use botlib::message_types;
|
|
pub use botlib::message_types::MessageType;
|
|
pub use botlib::version::{
|
|
get_botserver_version, init_version_registry, register_component, version_string,
|
|
ComponentSource, ComponentStatus, ComponentVersion, VersionRegistry, BOTSERVER_NAME,
|
|
BOTSERVER_VERSION,
|
|
};
|
|
|
|
|
|
pub use botlib::models::{ApiResponse, Attachment, Suggestion};
|
|
|
|
|
|
pub use botlib::models::BotResponse;
|
|
pub use botlib::models::Session;
|
|
pub use botlib::models::UserMessage;
|
|
|
|
|
|
pub use models::{
|
|
Automation, Bot, BotConfiguration, BotMemory, Click, MessageHistory, Organization,
|
|
TriggerKind, User, UserLoginToken, UserPreference, UserSession,
|
|
};
|
|
|
|
#[cfg(feature = "tasks")]
|
|
pub use models::{NewTask, Task};
|
|
|
|
pub use utils::{
|
|
create_conn, format_timestamp_plain, format_timestamp_srt, format_timestamp_vtt,
|
|
get_content_type, parse_hex_color, sanitize_path_component, sanitize_path_for_filename,
|
|
sanitize_sql_value, DbPool,
|
|
};
|
|
|
|
pub use crate::security::sql_guard::sanitize_identifier;
|
|
|
|
|
|
|
|
pub mod prelude {
|
|
|
|
pub use super::schema::*;
|
|
pub use super::{
|
|
ApiResponse, Attachment, Automation, Bot, BotConfiguration, BotError, BotMemory,
|
|
BotResponse, BotResult, Click, DbPool, MessageHistory, MessageType, Organization,
|
|
Session, Suggestion, TriggerKind, User, UserLoginToken, UserMessage, UserPreference,
|
|
UserSession,
|
|
};
|
|
|
|
#[cfg(feature = "tasks")]
|
|
pub use super::{NewTask, Task};
|
|
|
|
|
|
pub use diesel::prelude::*;
|
|
pub use diesel::{ExpressionMethods, QueryDsl, RunQueryDsl};
|
|
|
|
|
|
pub use chrono::{DateTime, Utc};
|
|
pub use serde::{Deserialize, Serialize};
|
|
pub use uuid::Uuid;
|
|
}
|