diff --git a/pkg/channels/qq/qq.go b/pkg/channels/qq/qq.go index 112964143..e03f75f75 100644 --- a/pkg/channels/qq/qq.go +++ b/pkg/channels/qq/qq.go @@ -3,7 +3,10 @@ package qq import ( "context" "fmt" + "regexp" + "strings" "sync" + "sync/atomic" "time" "github.com/tencent-connect/botgo" diff --git a/pkg/heartbeat/service.go b/pkg/heartbeat/service.go index ef836d31e..2364636e4 100644 --- a/pkg/heartbeat/service.go +++ b/pkg/heartbeat/service.go @@ -7,6 +7,7 @@ package heartbeat import ( + "context" "fmt" "os" "path/filepath" diff --git a/pkg/skills/loader.go b/pkg/skills/loader.go index 71c9d80c5..daf492a5c 100644 --- a/pkg/skills/loader.go +++ b/pkg/skills/loader.go @@ -10,6 +10,11 @@ import ( "regexp" "strings" + "github.com/gomarkdown/markdown" + "github.com/gomarkdown/markdown/ast" + "github.com/gomarkdown/markdown/parser" + "gopkg.in/yaml.v3" + "github.com/sipeed/picoclaw/pkg/logger" ) diff --git a/pkg/tools/filesystem.go b/pkg/tools/filesystem.go index b4e28020a..e80893cd5 100644 --- a/pkg/tools/filesystem.go +++ b/pkg/tools/filesystem.go @@ -2,14 +2,20 @@ package tools import ( "context" + "errors" "fmt" + "io" "io/fs" + "math" "os" "path/filepath" + "regexp" + "strconv" "strings" "time" "github.com/sipeed/picoclaw/pkg/fileutil" + "github.com/sipeed/picoclaw/pkg/logger" ) // validatePath ensures the given path is within the workspace if restrict is true. diff --git a/pkg/tools/web.go b/pkg/tools/web.go index 9cc2e3166..bf9c795c5 100644 --- a/pkg/tools/web.go +++ b/pkg/tools/web.go @@ -4,12 +4,15 @@ import ( "bytes" "context" "encoding/json" + "errors" "fmt" "io" + "net" "net/http" "net/url" "regexp" "strings" + "sync/atomic" "time" )