hlcli

package
v0.16.397 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: AGPL-3.0 Imports: 56 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 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

View Source
var PaneKinds = panel.Kinds()

PaneKinds are the tabs of the right pane an agent may open by name: the pane's registry (internal/panel).

View Source
var Version = "dev"

Version is set by the build (-X); "dev" otherwise.

Functions

func Run

func Run(args []string, env Env) int

Run executes one command line (without the program name) and returns the exit code.

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.

func OSEnv

func OSEnv() Env

OSEnv is the process's own environment.

Jump to

Keyboard shortcuts

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