High-performance browser automation bridge and multi-instance orchestrator with advanced stealth injection and real-time dashboard.
gofmt
Yash Jadhav545264e62713
diff --git a/internal/autosolver/autosolver_test.go b/internal/autosolver/autosolver_test.goindex 64d105d6..66fc7874 100644--- a/internal/autosolver/autosolver_test.go+++ b/internal/autosolver/autosolver_test.go@@ -15,9 +15,9 @@ type mockPage struct {html string}-func (m *mockPage) URL() string { return m.url }-func (m *mockPage) Title() string { return m.title }-func (m *mockPage) HTML() (string, error) { return m.html, nil }+func (m *mockPage) URL() string { return m.url }+func (m *mockPage) Title() string { return m.title }+func (m *mockPage) HTML() (string, error) { return m.html, nil }func (m *mockPage) Screenshot() ([]byte, error) { return nil, nil }type mockExecutor struct {diff --git a/internal/autosolver/types.go b/internal/autosolver/types.goindex a9e776a7..067471b0 100644--- a/internal/autosolver/types.go+++ b/internal/autosolver/types.go@@ -6,14 +6,14 @@ import "time"type IntentType stringconst (- IntentNormal IntentType = "normal" // No challenge or blocker detected- IntentCaptcha IntentType = "captcha" // CAPTCHA challenge (Turnstile, reCAPTCHA, hCaptcha)- IntentLogin IntentType = "login" // Login form detected- IntentSignup IntentType = "signup" // Signup/registration form detected- IntentBlocked IntentType = "blocked" // Navigation blocked (interstitial, bot gate)- IntentOnboarding IntentType = "onboarding" // Multi-step onboarding flow- IntentNavigation IntentType = "navigation" // Multi-step navigation task- IntentUnknown IntentType = "unknown" // Page state unclear+ IntentNormal IntentType = "normal" // No challenge or blocker detected+ IntentCaptcha IntentType = "captcha" // CAPTCHA challenge (Turnstile, reCAPTCHA, hCaptcha)+ IntentLogin IntentType = "login" // Login form detected+ IntentSignup IntentType = "signup" // Signup/registration form detected+ IntentBlocked IntentType = "blocked" // Navigation blocked (interstitial, bot gate)+ IntentOnboarding IntentType = "onboarding" // Multi-step onboarding flow+ IntentNavigation IntentType = "navigation" // Multi-step navigation task+ IntentUnknown IntentType = "unknown" // Page state unclear)// ActionType describes the kind of browser action to perform.@@ -101,7 +101,7 @@ type LLMRequest struct {PageURL string `json:"pageUrl"`TrimmedHTML string `json:"trimmedHtml"` // Stripped of scripts/stylesDetectedType IntentType `json:"detectedType"` // What we think the page is- PrevAttempts []AttemptEntry `json:"prevAttempts"` // Failed attempts so far+ PrevAttempts []AttemptEntry `json:"prevAttempts"` // Failed attempts so far}// LLMResponse is the LLM's recommended action.diff --git a/internal/config/config_file.go b/internal/config/config_file.goindex 8b9cee16..6ad12a95 100644--- a/internal/config/config_file.go+++ b/internal/config/config_file.go@@ -244,12 +244,12 @@ type activityConfigJSON struct {}type autoSolverFileConfigJSON struct {- Enabled *bool `json:"enabled,omitempty"`- MaxAttempts *int `json:"maxAttempts,omitempty"`- Solvers []string `json:"solvers,omitempty"`- LLMProvider string `json:"llmProvider,omitempty"`- LLMFallback *bool `json:"llmFallback,omitempty"`- External autoSolverExtConfigJSON `json:"external,omitempty"`+ Enabled *bool `json:"enabled,omitempty"`+ MaxAttempts *int `json:"maxAttempts,omitempty"`+ Solvers []string `json:"solvers,omitempty"`+ LLMProvider string `json:"llmProvider,omitempty"`+ LLMFallback *bool `json:"llmFallback,omitempty"`+ External autoSolverExtConfigJSON `json:"external,omitempty"`}type autoSolverExtConfigJSON struct {diff --git a/internal/config/config_types.go b/internal/config/config_types.goindex a087b634..15e87529 100644--- a/internal/config/config_types.go+++ b/internal/config/config_types.go@@ -124,13 +124,13 @@ type SchedulerConfig struct {// AutoSolverConfig holds autosolver runtime settings.type AutoSolverConfig struct {- Enabled bool `json:"enabled,omitempty"`- MaxAttempts int `json:"maxAttempts,omitempty"`- Solvers []string `json:"solvers,omitempty"` // Ordered solver names- LLMProvider string `json:"llmProvider,omitempty"` // "openai", "anthropic", etc.- LLMFallback bool `json:"llmFallback,omitempty"` // Enable LLM as last resort- CapsolverKey string `json:"capsolverKey,omitempty"`- TwoCaptchaKey string `json:"twoCaptchaKey,omitempty"`+ Enabled bool `json:"enabled,omitempty"`+ MaxAttempts int `json:"maxAttempts,omitempty"`+ Solvers []string `json:"solvers,omitempty"` // Ordered solver names+ LLMProvider string `json:"llmProvider,omitempty"` // "openai", "anthropic", etc.+ LLMFallback bool `json:"llmFallback,omitempty"` // Enable LLM as last resort+ CapsolverKey string `json:"capsolverKey,omitempty"`+ TwoCaptchaKey string `json:"twoCaptchaKey,omitempty"`}type ObservabilityConfig struct {@@ -269,12 +269,12 @@ type ActivityFileConfig struct {// AutoSolverFileConfig is the persistent configuration for the autosolver system.type AutoSolverFileConfig struct {- Enabled *bool `json:"enabled,omitempty"`- MaxAttempts *int `json:"maxAttempts,omitempty"`- Solvers []string `json:"solvers,omitempty"`- LLMProvider string `json:"llmProvider,omitempty"`- LLMFallback *bool `json:"llmFallback,omitempty"`- External AutoSolverExtConf `json:"external,omitempty"`+ Enabled *bool `json:"enabled,omitempty"`+ MaxAttempts *int `json:"maxAttempts,omitempty"`+ Solvers []string `json:"solvers,omitempty"`+ LLMProvider string `json:"llmProvider,omitempty"`+ LLMFallback *bool `json:"llmFallback,omitempty"`+ External AutoSolverExtConf `json:"external,omitempty"`}// AutoSolverExtConf holds external solver API keys.