Documentation
¶
Overview ¶
Package desktop defines the opt-in native agent-desktop helper contract.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Packet ¶
Packet uses an anonymous stdin pipe, never argv, environment, or a spool file. All fields are UTF-8 strings prefixed with a big-endian uint32 byte length.
func RunHelper ¶
RunHelper is called only in Control's dedicated, one-request subprocess mode. It never reads credentials or configuration files, or prints diagnostics.
func SchemaWithCLI ¶ added in v0.8.1
SchemaWithCLI advertises only configured backends on an execution node. The client uses Schema so it can route either backend after discovery.
Types ¶
type Request ¶
type Request struct {
Command string `json:"command"`
App string `json:"app,omitempty"`
Ref string `json:"ref,omitempty"`
Text *string `json:"text,omitempty"`
Secret string `json:"secret,omitempty"`
MaxDepth int `json:"maxDepth,omitempty"`
// CLI arguments are forwarded verbatim, without a shell or command whitelist.
Args []string `json:"args,omitempty"`
Stdin *string `json:"stdin,omitempty"`
}
Request is reference-only until the destination resolves a Secret.
Click to show internal directories.
Click to hide internal directories.