Chore: unix tools tests

This commit is contained in:
Grail Finder
2026-04-12 10:39:03 +03:00
parent 39e099cbe9
commit 78918b2949
8 changed files with 697 additions and 86 deletions

17
bot.go
View File

@@ -6,7 +6,6 @@ import (
"compress/gzip"
"context"
"encoding/json"
"flag"
"fmt"
"gf-lt/config"
"gf-lt/models"
@@ -1771,20 +1770,4 @@ func init() {
// atomic default values
cachedModelColor.Store("orange")
go chatWatcher(ctx)
// parse flags
flag.BoolVar(&cfg.CLIMode, "cli", false, "Run in CLI mode without TUI")
flag.BoolVar(&cfg.ToolUse, "tools", true, "run with tools")
flag.StringVar(&cfg.CurrentModel, "model", "modelname", "name of the model to use")
flag.StringVar(&cliCardPath, "card", "", "Path to syscard JSON file")
flag.BoolVar(&cliContinue, "continue", false, "Continue from last chat (by agent or card)")
flag.StringVar(&cliMsg, "msg", "", "Send message and exit (one-shot mode)")
flag.Parse()
if !cfg.CLIMode {
initTUI()
}
chatBody.Model = cfg.CurrentModel
go updateModelLists()
tools.InitTools(cfg, logger, store)
// tooler = tools.InitTools(cfg, logger, store)
// tooler.RegisterWindowTools(modelHasVision)
}