refactor: stabilize runtime and unify config

This commit is contained in:
lpf
2026-03-14 21:40:12 +08:00
parent 60eee65fec
commit 341e578c9f
75 changed files with 3081 additions and 1627 deletions

View File

@@ -37,13 +37,11 @@ func (t *CronTool) Execute(ctx context.Context, args map[string]interface{}) (st
if t.cs == nil {
return "Error: cron service not available", nil
}
action, _ := args["action"].(string)
action = strings.ToLower(strings.TrimSpace(action))
action := strings.ToLower(MapStringArg(args, "action"))
if action == "" {
action = "list"
}
id, _ := args["id"].(string)
id = strings.TrimSpace(id)
id := MapStringArg(args, "id")
switch action {
case "list":