- Fix compiling errors.

This commit is contained in:
Rodrigo Rodriguez (Pragmatismo) 2025-10-06 14:55:04 -03:00
parent 9749893dd0
commit 5330180c36
7 changed files with 9169 additions and 293 deletions

7043
Cargo.lock generated Normal file

File diff suppressed because it is too large Load diff

View file

@ -1,11 +1,11 @@
[package] [package]
name = "gbserver" name = "botserver"
version = "0.1.0" version = "0.1.0"
edition = "2021" edition = "2021"
authors = ["Rodrigo Rodriguez <me@rodrigorodriguez.com>"] authors = ["Rodrigo Rodriguez <me@rodrigorodriguez.com>"]
description = "General Bots Server" description = "General Bots Server"
license = "AGPL-3.0" license = "AGPL-3.0"
repository = "https://alm.pragmatismo.com.br/generalbots/gbserver" repository = "https://github.pragmatismo.com.br/generalbots/botserver"
[features] [features]
default = ["postgres", "qdrant"] default = ["postgres", "qdrant"]

File diff suppressed because it is too large Load diff

View file

@ -18,6 +18,11 @@ for file in "${prompts[@]}"; do
done done
dirs=( dirs=(
"src/channels"
"src/llm"
"src/whatsapp"
"src/config"
"src/auth"
"src/shared" "src/shared"
"src/bot" "src/bot"
"src/session" "src/session"

View file

@ -125,7 +125,6 @@ impl AuthService {
Ok(()) Ok(())
} }
} }
{{END_REWRITTEN_CODE}}
impl Clone for AuthService { impl Clone for AuthService {
fn clone(&self) -> Self { fn clone(&self) -> Self {

View file

@ -1,5 +1,5 @@
use crate::basic::ScriptService; use crate::basic::ScriptService;
use crate::shared::models::automation_model::{Automation, TriggerKind}; use crate::shared::models::{Automation, TriggerKind};
use crate::shared::state::AppState; use crate::shared::state::AppState;
use chrono::Datelike; use chrono::Datelike;
use chrono::Timelike; use chrono::Timelike;

View file

@ -20,7 +20,7 @@ use uuid::Uuid;
use crate::{ use crate::{
auth::AuthService, auth::AuthService,
channels::{ChannelAdapter, VoiceAdapter, WebChannelAdapter}, channels::ChannelAdapter,
chart::ChartGenerator, chart::ChartGenerator,
llm::LLMProvider, llm::LLMProvider,
session::SessionManager, session::SessionManager,
@ -158,7 +158,7 @@ impl BotOrchestrator {
}; };
if let Some(adapter) = self.channels.get(&message.channel) { if let Some(adapter) = self.channels.get(&message.channel) {
adapter.send_message(bot_response).await?; adapter.send_message(bot_response).await;
} }
Ok(()) Ok(())