execution

package
v0.2.5 Latest Latest
Warning

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

Go to latest
Published: May 23, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package execution defines session execution modes and mode-level gates.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Gate

func Gate(mode Mode, risk tool.Risk) error

Gate applies mode-only policy before permission approval.

Types

type Mode

type Mode string

Mode controls which classes of tool calls may proceed.

const (
	ModeWork Mode = "work"
	ModePlan Mode = "plan"
	ModeAuto Mode = "auto"
)

func ParseMode

func ParseMode(raw string) (Mode, error)

ParseMode parses a user/config mode string. Empty means work.

Jump to

Keyboard shortcuts

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