cayu.tools.git_command_policy
Public Cayu API. Definitions are grouped by their public source module, and definitions from private implementation modules appear on their package’s page; adding a symbol does not move existing links. The import shown at each entry is a supported public namespace. Read the Python API overview and install the required extra.
GitCommandPolicy
Section titled “GitCommandPolicy”from cayu.tools import GitCommandPolicyAuthorize a bounded local Git workflow after general process checks.
Bases: CommandPolicy.
process_capabilities (property)
Section titled “process_capabilities (property)”GitCommandPolicy.process_capabilities() -> ProcessCommandCapabilities | NoneOptional public capability snapshot; discovery never grants authority.
allowed_environment_names (property)
Section titled “allowed_environment_names (property)”GitCommandPolicy.allowed_environment_names() -> tuple[str, ...] | NoneOptional name-only discovery; None means this policy does not declare a list.
execution_profile_identity (property)
Section titled “execution_profile_identity (property)”GitCommandPolicy.execution_profile_identity() -> ExecutionProfileBehaviorIdentity | NoneReturn a stable application declaration, or None when non-portable.
evaluate (method)
Section titled “evaluate (method)”async GitCommandPolicy.evaluate(ctx: ToolContext, request: CommandRequest) -> CommandPolicyResultinit (method)
Section titled “init (method)”GitCommandPolicy.__init__(*, process_policy: ProcessCommandPolicy, git_executables: Iterable[str]=('git',), allowed_repositories: Iterable[str], max_commit_message_bytes: int=DEFAULT_MAX_COMMIT_MESSAGE_BYTES) -> None