Skip to main content

Module constants

Module constants 

Source
Expand description

Shared constants for the approval system.

Provides canonical definitions for safe commands and autonomy levels used by both TUI and Web UI approval managers.

Ported from opendev/core/runtime/approval/constants.py.

Enums§

AutonomyLevel
Autonomy levels for command approval.

Constants§

SAFE_COMMANDS
Safe commands that can be auto-approved in Semi-Auto mode.

Functions§

extract_command_prefix
Extract a command prefix for auto-approval patterns.
is_safe_command
Check if a command is considered safe for auto-approval.