Versions in this module Expand all Collapse all v0 v0.2.0 May 15, 2026 Changes in this version + const DefaultTimeout + func ExtractCommand(input string) string + func IsDestructive(cmdStr string) bool + func IsShellCommand(input string) bool + func ParsePipeline(cmdStr string) []string + func RerouteCandidate(cmdStr string, stderr string, exitCode int) bool + type Classification int + const ClassAgent + const ClassNeutral + const ClassShell + func ClassifyInput(input string) Classification + type Mode int + const ModeAgent + const ModeAuto + const ModeShell + func ParseMode(s string) (Mode, bool) + func (m Mode) String() string + type ModeManager struct + func NewModeManager() *ModeManager + func (mm *ModeManager) ClassifyWithMode(input string) Classification + func (mm *ModeManager) Current() Mode + func (mm *ModeManager) LoadPersistedMode() + func (mm *ModeManager) Set(m Mode) + func (mm *ModeManager) Toggle() Mode + type Result struct + Command string + Duration time.Duration + ExitCode int + Stderr string + Stdout string + func ExecuteShell(ctx context.Context, cmdStr string) Result + func ExecuteShellWithTimeout(ctx context.Context, cmdStr string, timeout time.Duration) Result + func (r Result) Format() string