INNER CODE UNIT · Python

_execute_single_commit_workflow

thomwebb/gac · src/gac/main.py:29

def _execute_single_commit_workflow(ctx: WorkflowContext, config: GACConfig) -> int:
    """Execute single commit workflow using extracted components.

    Args:
        ctx: WorkflowContext containing all configuration, flags, and state
        config: Application configuration

    Returns:
        Exit code: 0 for success, non-zero for failure/abort
    """
    conversation_messages: list[dict[str, str]] = []
    if ctx.system_prompt:
        conversation_messages.append({"role": "system", "content": ctx.system_prompt})
    conversation_messages.append({"role": "user", "content": ctx.user_prompt})

    # Handle interactive questions if enabled
    if ctx.interactive and not ctx.message_only:
        ctx.state.interactive_mode.handle_interactive_flow(

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…