UNPKG

cortexweaver

Version:

CortexWeaver is a command-line interface (CLI) tool that orchestrates a swarm of specialized AI agents, powered by Claude Code and Gemini CLI, to assist in software development. It transforms a high-level project plan (plan.md) into a series of coordinate

50 lines 1.99 kB
import { WorktreeInfo, CommandResult, CodeFileInfo, FileSearchOptions } from './index'; /** * WorkspaceOperations handles all workspace operations including worktree management, * file operations, and code analysis */ export declare class WorkspaceOperations { private projectRoot; private worktreesDir; private fileAnalyzer; constructor(projectRoot: string); getWorktreePath(taskId: string): string; createWorktree(taskId: string, branchName: string, baseBranch?: string): Promise<WorktreeInfo>; private cleanupFailedWorktree; private isValidBranchName; removeWorktree(taskId: string): Promise<boolean>; listWorktrees(): Promise<WorktreeInfo[]>; executeCommand(taskId: string, command: string): Promise<CommandResult>; commitChanges(taskId: string, message: string, files?: string[]): Promise<string>; mergeToBranch(taskId: string, targetBranch?: string): Promise<void>; getWorktreeStatus(taskId: string): Promise<{ clean: boolean; files: string[]; }>; /** * Scan workspace for code files with optional filtering */ scanCodeFiles(options?: FileSearchOptions): Promise<CodeFileInfo[]>; /** * Get specific code files by paths */ getCodeFiles(filePaths: string[], includeContent?: boolean): Promise<CodeFileInfo[]>; /** * Search for files matching a pattern or containing specific text */ searchFiles(pattern: string, options?: FileSearchOptions): Promise<CodeFileInfo[]>; /** * Get recently modified files */ getRecentlyModifiedFiles(sinceHours?: number, options?: FileSearchOptions): Promise<CodeFileInfo[]>; /** * Get files by language */ getFilesByLanguage(language: string, options?: FileSearchOptions): Promise<CodeFileInfo[]>; /** * Read file content safely */ readFileContent(filePath: string): Promise<string | null>; private scanDirectory; } //# sourceMappingURL=workspace-operations.d.ts.map