controlcap

package
v1.5.128 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 22, 2026 License: MIT Imports: 5 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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

func BrowserURL(raw string) error

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.

func Commands

func Commands(tool string, raw json.RawMessage) []string

Commands preserves argv boundaries, including a shell's entire -c argument. send is potential shell input, not a harmless string write.

func Facade

func Facade(tool string) bool

func Network

func Network(tool string, raw json.RawMessage) bool

func ReadOnly

func ReadOnly(tool string, raw json.RawMessage) bool

ReadOnly excludes screenshot writes and all launch/input/control actions.

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL