- Updated the builtinSearch function to delegate search operations to the websearch tool, improving modularity and maintainability. - Enhanced context handling by passing the agent context to builtinSearch, allowing for user and team identification during searches. - Added a new DecryptValue function in cloud.go to streamline value decryption, delegating to the existing config.DecryptValue method. - Updated .gitignore to include tools/README.md for better project organization.
32 lines
752 B
Go
32 lines
752 B
Go
package main
|
|
|
|
import (
|
|
_ "github.com/yaoapp/gou/diff"
|
|
_ "github.com/yaoapp/gou/encoding"
|
|
_ "github.com/yaoapp/gou/text"
|
|
_ "github.com/yaoapp/yao/aigc"
|
|
_ "github.com/yaoapp/yao/crypto"
|
|
_ "github.com/yaoapp/yao/excel"
|
|
_ "github.com/yaoapp/yao/helper"
|
|
_ "github.com/yaoapp/yao/job/jsapi"
|
|
_ "github.com/yaoapp/yao/openai"
|
|
_ "github.com/yaoapp/yao/rss"
|
|
_ "github.com/yaoapp/yao/seed"
|
|
_ "github.com/yaoapp/yao/sitemap"
|
|
_ "github.com/yaoapp/yao/tools"
|
|
_ "github.com/yaoapp/yao/trace/jsapi"
|
|
_ "github.com/yaoapp/yao/wework"
|
|
|
|
"github.com/yaoapp/yao/cmd"
|
|
"github.com/yaoapp/yao/utils"
|
|
//
|
|
// _ "net/http/pprof"
|
|
)
|
|
|
|
func main() {
|
|
// go func() {
|
|
// log.Println(http.ListenAndServe("localhost:6060", nil))
|
|
// }()
|
|
utils.Init()
|
|
cmd.Execute()
|
|
}
|