botserver/src/basic/keywords
Rodrigo Rodriguez (Pragmatismo) 937dbfcc76 feat: add bot_id to system_automations and enhance schedule handling
- Introduced `bot_id` column in `system_automations` table (migration 6.0.0.sql) and updated the Diesel schema/model to include it.
- Adjusted migrations to remove the hard‑coded “Update Summary” automation and only create an index on the `name` column.
- Extended the `SET_SCHEDULE` keyword:
  - Added a second string argument for the script name.
  - Passed the invoking user's `bot_id` to the database layer.
  - Updated function signature to accept a full `UserSession` instead of discarding it.
- Modified `execute_set_schedule` to store `bot_id`, script name, and activation flag; added conflict handling on `(bot_id, param)` to update schedule and reset trigger state.
- Updated imports and logging to reflect new parameters.

These changes enable per‑bot automation management, allow specifying the script to run, and improve idempotent schedule updates.
2025-11-02 19:32:25 -03:00
..
add_suggestion.rs feat(llm): add cancel_job support and integrate session cleanup 2025-11-02 15:13:47 -03:00
add_tool.rs - Knowledge management. 2025-10-18 18:20:02 -03:00
add_website.rs - Knowledge management. 2025-10-18 18:20:02 -03:00
bot_memory.rs Enhance bot memory and Redis guards 2025-10-16 14:22:28 -03:00
clear_tools.rs - Knowledge management. 2025-10-18 18:20:02 -03:00
create_draft.rs - Remove all compilation errors. 2025-10-11 12:29:03 -03:00
create_site.rs feat(config): refactor AI config into separate LLM and embedding configs 2025-11-01 08:43:14 -03:00
find.rs refactor(state): rename resource clients and improve keyword syntax 2025-11-01 20:53:45 -03:00
first.rs - Remove all compilation errors. 2025-10-11 12:29:03 -03:00
for_next.rs - 0 errors. 2025-10-11 20:41:52 -03:00
format.rs - Remove all compilation errors. 2025-10-11 12:29:03 -03:00
get.rs feat(automation): improve logging and bot path resolution 2025-11-02 14:08:49 -03:00
get_website.rs - Remove all compilation errors. 2025-10-11 12:29:03 -03:00
hear_talk.rs feat: include context length info in BotResponse messages 2025-11-02 12:46:37 -03:00
last.rs - Remove all compilation errors. 2025-10-11 12:29:03 -03:00
list_tools.rs - Knowledge management. 2025-10-18 18:20:02 -03:00
llm_keyword.rs Add trace logging to AutomationService and increase timeout values in LLM commands 2025-10-17 13:11:49 -03:00
mod.rs refactor(state): rename resource clients and improve keyword syntax 2025-11-01 20:53:45 -03:00
on.rs Migrate automations to param and sqlite 2025-10-16 11:43:02 -03:00
print.rs - Remove all compilation errors. 2025-10-11 12:29:03 -03:00
remove_tool.rs - Knowledge management. 2025-10-18 18:20:02 -03:00
set.rs - Only 18 errors missing being fixed. 2025-10-11 20:25:08 -03:00
set_context.rs refactor(state): rename resource clients and improve keyword syntax 2025-11-01 20:53:45 -03:00
set_current_context.rs feat: simplify Redis key format and clean up code 2025-11-02 07:50:57 -03:00
set_kb.rs - Knowledge management. 2025-10-18 18:20:02 -03:00
set_schedule.rs feat: add bot_id to system_automations and enhance schedule handling 2025-11-02 19:32:25 -03:00
set_user.rs refactor(state): rename resource clients and improve keyword syntax 2025-11-01 20:53:45 -03:00
wait.rs - Remove all compilation errors. 2025-10-11 12:29:03 -03:00