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 = panel.Kinds()
PaneKinds are the tabs of the right pane an agent may open by name: the pane's registry (internal/panel).
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.
Source Files
¶
- app.go
- app_catalog.go
- app_docs.go
- app_ext.go
- app_help.go
- app_pack.go
- app_public.go
- app_share.go
- appmcp.go
- ask.go
- browser.go
- chat.go
- connections.go
- connectors.go
- design.go
- design_export.go
- design_ops.go
- design_strict_stop.go
- design_video.go
- design_video_overlay.go
- design_video_record.go
- designengine.go
- designkit.go
- designkit_add.go
- designkit_convert.go
- designkit_search.go
- designpack.go
- docs.go
- docs_publish.go
- doctor.go
- eval.go
- eval_affected.go
- fleet.go
- fleet_rollout.go
- help.go
- hlcli.go
- hookstatus.go
- install.go
- logs.go
- memory.go
- migrate.go
- notice.go
- notify.go
- peers.go
- preview.go
- secret.go
- selftest.go
- settings.go
- site.go
- supervise.go
- theme.go
- upgrade.go
- voiceguard.go
- widget.go