resolve conflicts

This commit is contained in:
afjcjsbx 2026-02-27 22:36:06 +01:00
parent 634aadcadd
commit 0f6509e805

View file

@ -3,6 +3,7 @@ package gateway
import ( import (
"context" "context"
"fmt" "fmt"
"log"
"os" "os"
"os/signal" "os/signal"
"path/filepath" "path/filepath"
@ -37,7 +38,6 @@ import (
"github.com/sipeed/picoclaw/pkg/tools" "github.com/sipeed/picoclaw/pkg/tools"
) )
func gatewayCmd(debug bool) error { func gatewayCmd(debug bool) error {
if debug { if debug {
logger.SetLevel(logger.DEBUG) logger.SetLevel(logger.DEBUG)
@ -227,6 +227,7 @@ func setupCronTool(
if err != nil { if err != nil {
log.Fatalf("Critical error during CronTool initialization: %v", err) log.Fatalf("Critical error during CronTool initialization: %v", err)
} }
agentLoop.RegisterTool(cronTool) agentLoop.RegisterTool(cronTool)
// Set the onJob handler // Set the onJob handler