Documentation
¶
Overview ¶
Package hlcli is the harnessly command: what an agent running in a harnessly tab calls to show things to the person in the right pane, to look at the workspace's tabs, and to hand work to another agent. It is a thin client of the runtime's /api/cli routes: the runtime's address and its CLI token come from the files the runtime writes into its data folder (or from the environment), so a pane needs no setup.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var PaneKinds = []string{"overview", "tools", "browser", "terminal", "files", "disk", "changes", "artifacts", "gitlab",
"subagents", "economics", "plan", "peers", "design", "side-chat", "gallery", "task"}
PaneKinds are the tabs of the right pane an agent may open by name.
var Version = "dev"
Version is set by the build (-X); "dev" otherwise.
Functions ¶
Types ¶
type Env ¶
type Env struct {
Getenv func(string) string
// Home is the home folder ($HOME).
Home string
// Session names the tmux session of the pane the command runs in; "" when it runs outside one.
Session func() string
// Cwd is the working folder, for relative file targets.
Cwd string
Stdin io.Reader
Stdout io.Writer
Stderr io.Writer
Client *http.Client
// Now is the clock (the zone of its times is the zone times are read and written in); nil is time.Now.
Now func() time.Time
// Environ is the environment a command started by `secret run` inherits; nil is os.Environ.
Environ func() []string
}
Env is what the command depends on outside its arguments; tests replace the parts.