Documentation
¶
Overview ¶
Package pane opens loupe review for the human in a new terminal pane beside the agent's, in Herdr, tmux, Orca, iTerm2 or Ghostty. It is the only package that runs any of them.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HeaderReserve ¶
HeaderReserve is the columns at the right end of the terminal's first row that the pane host draws over, which a full-screen header leaves blank: Orca's pane controls, wherever its handle is set, and nothing elsewhere.
Types ¶
type Host ¶
type Host interface {
Name() string
// Open refuses at the first failed step and never retries: a retry could open a second pane.
Open(ctx context.Context, req Request) (Opened, error)
}
Host is a terminal that can split beside the agent's pane and run review in the new one.
func Detect ¶
Detect returns every host whose conditions are all met, in the order they are tried. The inner host of two nested ones comes first, because the agent sits in its pane: a Herdr session inside tmux or Orca, or tmux inside Orca, gives its panes both environments. tmux inside Herdr loses to Herdr, whose pane still opens where the human sees it. A host whose conditions are met only in part is left out.
type ITerm ¶
type ITerm struct {
// contains filtered or unexported fields
}
func (ITerm) Open ¶
Open passes every value as a script argument, never spliced into AppleScript source, so a quote in a data root cannot change what the script does. Each split starts the profile's shell and the command is typed into it: a command given to the split replaces the shell, so the pane would close on a refusal before the human could read it.
type Orca ¶
type Orca struct {
// contains filtered or unexported fields
}
type Request ¶
Request carries LOUPE_HOME inside Command because a new pane's shell loads the user's profile rather than inheriting loupe's environment. TTYWidth is injected so tests never read a real terminal; nil is unreadable.
type Tmux ¶
type Tmux struct {
// contains filtered or unexported fields
}