feat: add script field to ScheduledTask type and database layer

Adds optional `script` field to the ScheduledTask interface, with a
migration for existing DBs and full support in createTask/updateTask.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Gabi Simons
2026-03-18 12:57:40 +02:00
committed by Gabi Simons
parent c71c7b7e83
commit 675acffeb1
2 changed files with 18 additions and 3 deletions

View File

@@ -58,6 +58,7 @@ export interface ScheduledTask {
group_folder: string;
chat_jid: string;
prompt: string;
script?: string | null;
schedule_type: 'cron' | 'interval' | 'once';
schedule_value: string;
context_mode: 'group' | 'isolated';