arela
Version:
AI-powered CTO with multi-agent orchestration, code summarization, visual testing (web + mobile) for blazing fast development.
47 lines • 1.3 kB
TypeScript
/**
* Git operations for slice extraction
*/
import type { Slice } from "../detect/types.js";
export declare class GitManager {
/**
* Stage all files in a list
*/
stageFiles(filePaths: string[], cwd?: string): Promise<void>;
/**
* Unstage all files in a list
*/
unstageFiles(filePaths: string[], cwd?: string): Promise<void>;
/**
* Commit extracted slice
*/
commitSlice(slice: Slice, stagedFiles: string[], cwd?: string): Promise<string>;
/**
* Commit with a custom message
*/
commitWithMessage(message: string, cwd?: string): Promise<string>;
/**
* Create git tag
*/
createTag(tagName: string, message: string, cwd?: string): Promise<void>;
/**
* Reset to HEAD (undo all changes)
*/
resetToHead(cwd?: string): Promise<void>;
/**
* Clean untracked files
*/
cleanUntracked(cwd?: string): Promise<void>;
/**
* Get current branch name
*/
getCurrentBranch(cwd?: string): Promise<string>;
/**
* Check if there are uncommitted changes
*/
hasUncommittedChanges(cwd?: string): Promise<boolean>;
/**
* Generate commit message for slice extraction
*/
private generateCommitMessage;
}
//# sourceMappingURL=git-manager.d.ts.map