runtime

package
v0.10.1 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const DefaultTerm = "xterm-256color"

DefaultTerm is the terminal type Warren uses when the daemon is launched without a usable TERM (agent/CI shells often inherit TERM=dumb).

Variables

This section is empty.

Functions

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