Documentation
¶
Overview ¶
Package helpers holds the target-side helpers: small programs Lectern runs on an agent machine to read or change something there — a workspace file operation, a native conversation search, an agent hook.
They used to be Python scripts passed to `python3 -c`, which made python3 a requirement on every agent machine. Each has a Go port here with the same arguments, the same output and the same exit status, run as `lectern helper NAME ARG…`. A target without a lectern binary keeps running the Python version (see Command), so an SSH box that has never had Lectern installed works exactly as before (docs/ptyhost.md §5).
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Command ¶
Command renders a helper invocation for the target ex drives: the Go port when the target has a lectern binary, otherwise fallback, the Python command line it replaces. args are quoted here.
The target's session backend travels with the call as LECTERN_SESSION_BACKEND, so a helper that asks about a session's pane asks the right multiplexer (see Mux).
func Invocation ¶
Invocation renders `BIN helper NAME ARG…` with every word quoted.
Types ¶
Source Files
¶
- approval_hook.go
- bridge.go
- catalog_sessions.go
- claude_fork_path.go
- claude_settings.go
- codex_hooks.go
- configured_home.go
- cookies.go
- demo_agent.go
- flock_unix.go
- geminiworkspace.go
- helpers.go
- lec.go
- mcpinstall.go
- native_conversations.go
- native_identity.go
- native_records.go
- native_search.go
- native_search_read.go
- open_unix.go
- ports.go
- pump.go
- pycompat.go
- pycompat_json.go
- pycompat_os.go
- pycompat_path.go
- pycompat_text.go
- pycompat_unix.go
- pyfs_linux.go
- pyhttp.go
- pyjson.go
- pyos.go
- pysqlite.go
- pytime.go
- realpath.go
- review.go
- reviewgit.go
- skills.go
- stat_linux.go
- toml.go
- trust.go
- workflowstage.go
- workspacefiles.go
- workspacewatch_linux.go
- worktree_cancel.go
- worktree_control.go
- worktree_exc.go
- worktree_group.go
- worktree_preflight.go
- worktree_single.go
Directories
¶
| Path | Synopsis |
|---|---|
|
Package helperstest runs target-side helpers the way a target does — as a separate process with its own environment, working directory, stdin and exit status — so a test can hold a Go helper and the Python script it replaces to the same observable behaviour.
|
Package helperstest runs target-side helpers the way a target does — as a separate process with its own environment, working directory, stdin and exit status — so a test can hold a Go helper and the Python script it replaces to the same observable behaviour. |