Skip to content

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.

from cayu.tools import GitCommandPolicy

Authorize a bounded local Git workflow after general process checks.

Bases: CommandPolicy.

GitCommandPolicy.process_capabilities() -> ProcessCommandCapabilities | None

Optional public capability snapshot; discovery never grants authority.

GitCommandPolicy.allowed_environment_names() -> tuple[str, ...] | None

Optional name-only discovery; None means this policy does not declare a list.

GitCommandPolicy.execution_profile_identity() -> ExecutionProfileBehaviorIdentity | None

Return a stable application declaration, or None when non-portable.

async GitCommandPolicy.evaluate(ctx: ToolContext, request: CommandRequest) -> CommandPolicyResult
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

Release source · Runtime guarantees · Capability guides