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

59 lines 2.21 kB
import { WorkspaceOperations } from './workspace-operations'; export interface WorktreeInfo { id: string; path: string; branch: string; baseBranch: string; } export interface CommandResult { stdout: string; stderr: string; exitCode: number; } export interface CodeFileInfo { path: string; relativePath: string; type: 'source' | 'test' | 'config' | 'documentation'; language: string; size: number; lastModified: Date; content?: string; } export interface FileSearchOptions { includeTests?: boolean; includeDocs?: boolean; includeConfig?: boolean; maxFileSize?: number; extensions?: string[]; excludePaths?: string[]; } /** * WorkspaceManager handles project workspace operations including git worktrees, * code file scanning, and workspace management */ export declare class WorkspaceManager { private projectRoot; private operations; constructor(projectRoot?: string); getProjectRoot(): string; getWorktreePath(taskId: string): string; createWorktree(taskId: string, branchName: string, baseBranch?: string): Promise<WorktreeInfo>; 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[]; }>; scanCodeFiles(options?: FileSearchOptions): Promise<CodeFileInfo[]>; getCodeFiles(filePaths: string[], includeContent?: boolean): Promise<CodeFileInfo[]>; searchFiles(pattern: string, options?: FileSearchOptions): Promise<CodeFileInfo[]>; getRecentlyModifiedFiles(sinceHours?: number, options?: FileSearchOptions): Promise<CodeFileInfo[]>; getFilesByLanguage(language: string, options?: FileSearchOptions): Promise<CodeFileInfo[]>; readFileContent(filePath: string): Promise<string | null>; } export { WorkspaceOperations }; export { FileAnalyzer } from './file-analyzer'; //# sourceMappingURL=index.d.ts.map