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
84 lines • 2.35 kB
TypeScript
/**
* CLI Parsers and Utilities
* Contains argument parsing logic and utility functions
*/
export declare class CLIParsers {
/**
* Parse command line arguments for the CLI
*/
static parseArguments(args: string[]): ParsedArgs;
/**
* Parse agent persona content to extract metadata
*/
static parseAgentPersona(content: string, filename: string): AgentPersonaInfo;
/**
* Parse project configuration from command line options
*/
static parseProjectConfig(options: Record<string, string>): ProjectConfigOptions;
/**
* Parse authentication method from command line
*/
static parseAuthMethod(methodString: string): AuthMethodConfig;
/**
* Parse task filters for status and logs commands
*/
static parseTaskFilters(options: Record<string, string>): TaskFilters;
/**
* Validate command arguments
*/
static validateCommand(command: string, args: ParsedArgs): ValidationResult;
/**
* Format help text for commands
*/
static formatHelp(command?: string): string;
private static getGeneralHelp;
private static getInitHelp;
private static getStartHelp;
private static getAuthHelp;
private static getStatusHelp;
private static getLogsHelp;
private static getRetryHelp;
private static getMergeHelp;
private static getAttachHelp;
private static getCleanupHelp;
private static getListAgentsHelp;
}
export interface ParsedArgs {
command: string;
options: Record<string, string>;
flags: string[];
positional: string[];
}
export interface AgentPersonaInfo {
name: string;
role: string;
description: string;
}
export interface ProjectConfigOptions {
projectRoot?: string;
configFile?: string;
model?: string;
budget?: number;
verbose?: boolean;
quiet?: boolean;
dryRun?: boolean;
}
export type AuthMethod = 'claude-code' | 'gemini-cli' | 'direct-api';
export interface AuthMethodConfig {
method: AuthMethod;
options: Record<string, string>;
}
export interface TaskFilters {
status?: string;
agent?: string;
project?: string;
since?: Date;
until?: Date;
limit?: number;
}
export interface ValidationResult {
valid: boolean;
errors: string[];
warnings: string[];
}
//# sourceMappingURL=parsers.d.ts.map