runtime

package
v0.11.0 Latest Latest
Warning

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

Go to latest
Published: Aug 28, 2026 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const DefaultTerm = "xterm-ghostty"

DefaultTerm is the terminal type Warren uses when the daemon is launched without a usable TERM (agent/CI shells often inherit TERM=dumb). xterm-ghostty carries Tc (truecolor) and is bundled in Support/terminfo so no external Ghostty install is required.

Variables

This section is empty.

Functions

func BundledTerminfoDir added in v0.11.0

func BundledTerminfoDir() string

BundledTerminfoDir returns the directory that contains the bundled xterm-ghostty terminfo for ghostline children. Empty if not found or not needed (host already has it).

func SanitizeEnvironment

func SanitizeEnvironment()

SanitizeEnvironment removes launcher-only environment semantics that would make Warren terminal sessions behave like non-interactive pipelines: PAGER/GIT_PAGER/GH_PAGER set to cat or empty suppress pagers, a dumb TERM makes TUIs and pagers degrade, and an ambient NO_COLOR disables interactive TUI colors. It mutates the current process environment so ghostline children inherit a real terminal environment; user-specified values are applied afterwards by settings.

Types

type RuntimeMetadata

type RuntimeMetadata struct {
	Process   string
	Directory string
}

RuntimeMetadata is the live OS-level foreground process snapshot for one session, rendered into roster snapshots when the runtime adapter supports it.

type RuntimeMetadataProvider

type RuntimeMetadataProvider interface {
	Metadata(context.Context, string) (RuntimeMetadata, error)
}

RuntimeMetadataProvider is implemented by runtime adapters that can report foreground process metadata for a session.

Jump to

Keyboard shortcuts

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