autoagent-cli
Version:
Run autonomous AI agents using Claude or Gemini for task execution
37 lines (36 loc) • 1.44 kB
TypeScript
export declare const USAGE_LIMIT_PATTERNS: {
readonly CLAUDE_TIMESTAMPED: RegExp;
readonly GENERIC_TIMESTAMPED: RegExp;
readonly USAGE_LIMIT: RegExp;
readonly ANY_USAGE_LIMIT: RegExp;
};
export declare const RATE_LIMIT_PATTERNS: {
readonly WITH_RETRY_AFTER: RegExp;
readonly RATE_LIMIT: RegExp;
readonly TOO_MANY_REQUESTS: RegExp;
readonly QUOTA_EXCEEDED: RegExp;
};
export declare const PROVIDER_PATTERNS: {
readonly ISSUE_NUMBER: RegExp;
readonly VERSION_COMMAND: RegExp;
readonly FILE_CHANGES: RegExp;
};
export declare const ERROR_PATTERNS: {
readonly ERROR_INDICATORS: RegExp;
readonly NETWORK_ERRORS: RegExp;
readonly AUTH_ERRORS: RegExp;
readonly NOT_FOUND_ERRORS: RegExp;
};
export declare class PatternMatcher {
static extractUsageLimitTimestamp(message: string): number | undefined;
static extractRetryAfter(message: string): number | undefined;
static extractIssueNumber(filePath: string): number;
static extractChangedFiles(output: string): string[];
static isUsageLimitError(message: string): boolean;
static isRateLimitError(message: string): boolean;
static isLimitError(message: string): boolean;
static hasErrorIndicators(output: string): boolean;
static isRetryableError(message: string): boolean;
static isVersionCommand(args: string[]): boolean;
}
export declare const isRateLimitOrUsageError: (message: string) => boolean;