Help us shape the future of Go! Take the 2026 Go Developer Survey

herdr

package
v0.24.1 Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Overview

Package herdr implements Agent Layer's session-only HerdR recovery hook.

Index

Constants

View Source
const (
	EnvEnabled       = "HERDR_ENV"
	EnvSocketPath    = "HERDR_SOCKET_PATH"
	EnvPaneID        = "HERDR_PANE_ID"
	EnvDispatch      = "AL_DISPATCH_ACTIVE"
	EnvDevExecutable = "AL_DEV_EXECUTABLE"
	EnvDevBypass     = "AL_DEV_BYPASS_VERSION_DISPATCH" // #nosec G101 -- environment switch, not a credential.

)

Environment names supplied by HerdR or Agent Layer's development launcher.

View Source
const (
	// HookTimeoutSeconds is shared with generated native hook configuration.
	HookTimeoutSeconds = 35
)

Variables

This section is empty.

Functions

func CaptureLaunch

func CaptureLaunch(root, runDir string, env []string, provider string) error

CaptureLaunch binds session hooks to an AL terminal launch in this project. It stores identity only; recovery reapplies canonical project configuration.

func CodexTitleDisabled added in v0.24.1

func CodexTitleDisabled(configTOML []byte) (bool, error)

CodexTitleDisabled reads Codex's supported empty-list title preference.

func HandleForRoot

func HandleForRoot(provider, root string, in io.Reader, out, errOut io.Writer, environ []string) error

HandleForRoot binds a generated project hook to its AL terminal launch.

func WriteBoundary

func WriteBoundary(root, runDir string) error

WriteBoundary writes one private identity record before a native child is started. A sanitised hook stops at this ancestor instead of borrowing an older HerdR launch context. Dispatch invokes this explicitly because its normal launch environment intentionally strips AL_DISPATCH_ACTIVE.

Types

This section is empty.

Jump to

Keyboard shortcuts

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