status

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Mar 8, 2026 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsValidTransition

func IsValidTransition(current Status, event string) bool

IsValidTransition checks whether transitioning from current based on the given event is allowed.

Types

type Status

type Status string

Status represents the current state of a coding agent session.

const (
	Running Status = "running"
	Waiting Status = "waiting"
	Stopped Status = "stopped"
	Unknown Status = "unknown"
)

func FromEvent

func FromEvent(event string) (Status, bool)

FromEvent maps a canonical hook event name to a Status. Returns the status and true if the event is recognized, or empty and false otherwise.

Jump to

Keyboard shortcuts

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