Feat (cli): test run and teardown

This commit is contained in:
Grail Finder
2026-03-16 09:44:28 +03:00
parent df04d8c21c
commit 3d44686a51
6 changed files with 230 additions and 30 deletions

View File

@@ -134,10 +134,10 @@ func (t *Tools) initAgentsB() {
agent.RegisterB("summarize_chat", agent.NewWebAgentB(t.webAgentClient, summarySysPrompt))
}
func InitTools(cfg *config.Config, logger *slog.Logger, store storage.FullRepo) *Tools {
_ = logger
_ = cfg
if cfg.PlaywrightEnabled {
func InitTools(initCfg *config.Config, logger *slog.Logger, store storage.FullRepo) *Tools {
logger = logger
cfg = initCfg
if initCfg.PlaywrightEnabled {
if err := CheckPlaywright(); err != nil {
// slow, need a faster check if playwright install
if err := InstallPW(); err != nil {