botserver/src
Rodrigo Rodriguez (Pragmatismo) 14ab06b9f1 refactor: inject AppState into automation & bot, drop Default impl
- Updated `execute_compact_prompt` to accept an `Arc<AppState>` instead of creating a new default state, enabling proper state sharing across tasks.
- Adjusted bot orchestration to clone and pass the existing `AppState` to the automation task, ensuring the same connection and configuration are used.
- Removed the `Default` implementation for `AppState`, preventing accidental creation of a default state with hard‑coded DB connections and services.
- Modified `BotOrchestrator::default` to panic, enforcing explicit construction via `BotOrchestrator::new(state)` for clearer dependency injection.

These changes improve testability, avoid hidden side‑effects from default state initialization, and ensure consistent use of the application state throughout the system.
2025-11-07 16:13:47 -03:00
..
auth test: add test module declarations and cleanup unused code 2025-11-05 08:06:18 -03:00
automation refactor: inject AppState into automation & bot, drop Default impl 2025-11-07 16:13:47 -03:00
basic fix: add PostgreSQL auto-start and silence unused variable warnings 2025-11-07 09:37:45 -03:00
bootstrap refactor(bootstrap): remove unused warn import from log module 2025-11-07 10:16:49 -03:00
bot refactor: inject AppState into automation & bot, drop Default impl 2025-11-07 16:13:47 -03:00
channels feat: refactor auth and models, update LLM fallback strategy 2025-11-04 23:11:33 -03:00
config refactor(logging): update component names and adjust log levels 2025-11-07 10:11:08 -03:00
context feat: refactor auth and models, update LLM fallback strategy 2025-11-04 23:11:33 -03:00
drive_monitor feat(automation): add compact prompt scheduler and improve code formatting 2025-11-06 16:15:54 -03:00
email feat: refactor auth and models, update LLM fallback strategy 2025-11-04 23:11:33 -03:00
file feat: refactor auth and models, update LLM fallback strategy 2025-11-04 23:11:33 -03:00
llm feat(automation): improve prompt compaction with async LLM summarization 2025-11-06 17:07:12 -03:00
llm_models feat: update deepseek_r3 regex and add test case 2025-11-05 14:28:14 -03:00
meet feat: refactor auth and models, update LLM fallback strategy 2025-11-04 23:11:33 -03:00
nvidia feat(nvidia): mark unused params in get_system_metrics 2025-11-05 13:47:19 -03:00
package_manager feat: refactor auth and models, update LLM fallback strategy 2025-11-04 23:11:33 -03:00
riot_compiler feat: refactor auth and models, update LLM fallback strategy 2025-11-04 23:11:33 -03:00
session refactor(logging): update component names and adjust log levels 2025-11-07 10:11:08 -03:00
shared refactor: inject AppState into automation & bot, drop Default impl 2025-11-07 16:13:47 -03:00
tests test: add test module declarations and cleanup unused code 2025-11-05 08:06:18 -03:00
ui fix: add PostgreSQL auto-start and silence unused variable warnings 2025-11-07 09:37:45 -03:00
web_server feat: refactor auth and models, update LLM fallback strategy 2025-11-04 23:11:33 -03:00
lib.rs feat: remove unused dependencies and clean up Cargo.lock 2025-11-05 13:46:03 -03:00
main.rs feat: remove unused dependencies and clean up Cargo.lock 2025-11-05 13:46:03 -03:00
main.test.rs feat: refactor auth and models, update LLM fallback strategy 2025-11-04 23:11:33 -03:00