Documentation
¶
Overview ¶
Package controlcap describes the effects of the terminal and browser facades. It is shared by review, consent and execution; changing a tool's name must not change the protections of the operation it performs.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func BrowserLaunch ¶ added in v1.5.13
func BrowserLaunch(tool string, raw json.RawMessage) bool
BrowserLaunch is the host-defined operation that may start a browser. No model-supplied sandbox flag or arbitrary tuios argv can create this ability.
func BrowserURL ¶
BrowserURL is used on every URL-bearing entry, not only navigate. Local file, script, browser-internal and opaque schemes must never reach a browser broker.
Types ¶
type Request ¶
type Request struct {
Action string `json:"action"`
Command string `json:"command"`
Script string `json:"script"`
Remote bool `json:"remote"`
Text string `json:"text"`
Argv []string `json:"argv"`
Cwd string `json:"cwd"`
Backend string `json:"backend"`
Frontend string `json:"frontend"`
Preset string `json:"preset"`
URL string `json:"url"`
Network string `json:"network"`
HostControl bool `json:"host_control"`
}
func Parse ¶
func Parse(raw json.RawMessage) Request