Documentation
¶
Overview ¶
Package browser provides native chromedp-backed browser tools so bee agents can open, snapshot, click, and read the console of the page they are building. Drives an existing Chrome/Chromium install; never bundles a browser. Opt-in via browser config or --browser.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrNotFound = errors.New("browser: no Chrome/Chromium binary found")
ErrNotFound means no Chrome/Chromium binary could be located.
Functions ¶
func DetectChrome ¶
DetectChrome returns a usable browser binary path. override wins when non-empty and existing; otherwise known install locations and $PATH are probed. Returns ErrNotFound if nothing is usable.
Types ¶
type ConsoleMsg ¶
ConsoleMsg is one captured console entry.
type Session ¶
type Session struct {
// contains filtered or unexported fields
}
Session owns a single chromedp browser context, launched lazily on first use and reused across tool calls. Safe for sequential tool calls within a run (the engine drives tools one at a time).
func NewSession ¶
NewSession returns an unstarted session. Chrome launches on first ensure().