feat: añadir campo Message/Template/Prompt a ScheduledAction y dependencia cron

Se añaden tres campos nuevos a ScheduledAction en internal/config/schema.go:
- Message: texto inline para send_message
- Template: ruta a archivo .md para send_message o llm_prompt
- Prompt: texto inline del prompt para llm_prompt

Se agrega github.com/robfig/cron/v3 v3.0.1 como dependencia.
No hay cambios de ruptura: los campos son opcionales y el schema existente
sigue siendo compatible.
This commit is contained in:
2026-03-08 19:00:18 +00:00
parent 87a93e304e
commit 46d85109fe
3 changed files with 8 additions and 0 deletions
+5
View File
@@ -340,6 +340,11 @@ type ScheduledAction struct {
Target string `yaml:"target"`
Command string `yaml:"command"`
Script string `yaml:"script"`
// Phase 1: send_message and llm_prompt fields
Message string `yaml:"message"` // inline text for send_message
Template string `yaml:"template"` // path to .md file for send_message
Prompt string `yaml:"prompt"` // inline prompt text for llm_prompt
}
type FailureAction struct {