/** * Layer 2: Git operations for the AI agent. * * All git commands use `node:child_process.execFile` wrapped in promises. * This module does not import from Layer 1. */ /** * Generate a branch name for the AI agent's work on a task. * * Format: `beacon/{type}-{publicId}-{slug}` * Example: `beacon/bug-42-login-button-not-responding` */ export declare function generateBranchName(task: { type: string; publicId: number; description: string; }): string; /** * Create a new git branch and check it out. */ export declare function createBranch(branchName: string, cwd?: string): Promise; /** * Stage all changes and commit with the given message. */ export declare function commitChanges(message: string, cwd?: string): Promise; /** * Push the branch to origin with upstream tracking. */ export declare function pushBranch(branchName: string, cwd?: string): Promise; /** * Create a pull request using the GitHub CLI (`gh`). * * Returns the PR URL on success, or null if the command fails. * PR creation failure is not fatal -- the agent can still complete * without a PR. */ export declare function createPR(branchName: string, task: { publicId: number; description: string; type: string; }, cwd?: string): Promise; /** * Orchestrate the full git workflow after the agent completes: * create branch, commit, push, and optionally create a PR. * * Returns the branch name and optional PR URL. * Git failures are caught and do not throw -- the caller receives * whatever partial results were achieved. */ export declare function performGitOperations(task: { type: string; publicId: number; description: string; }, config: { createPR: boolean; }, cwd?: string): Promise<{ branch: string; prUrl: string | null; }>; //# sourceMappingURL=git.d.ts.map