/** * Improved Error Messages with Actionable Suggestions (DX-010) * * Provides user-friendly error messages that include: * - Clear description of what went wrong * - Actionable suggestions for resolution * - Alternative approaches when available */ /** * Error message builder for consistent formatting */ export interface ErrorMessageOptions { /** Main error description */ message: string; /** Suggested actions to resolve the issue */ suggestions?: string[]; /** Command to run (e.g., npm install) */ command?: string; /** Alternative approaches */ alternatives?: string[]; /** Additional context */ context?: Record; } /** * Build a formatted error message with suggestions */ export declare function buildErrorMessage(options: ErrorMessageOptions): string; /** * Error when Playwright is not installed */ export declare function playwrightNotInstalledError(): string; /** * Error when better-sqlite3 is not available */ export declare function betterSqlite3NotAvailableError(): string; /** * Error when vector store dependencies are missing */ export declare function vectorStoreDependencyError(packageName: string): string; /** * Error when a component is used before initialization */ export declare function notInitializedError(componentName: string): string; /** * Error when embedding provider fails to initialize */ export declare function embeddingProviderInitError(reason?: string): string; /** * Error when required arguments are missing */ export declare function missingArgumentsError(toolName: string, required: string[]): string; /** * Error when an unknown tool is requested */ export declare function unknownToolError(toolName: string, availableTools: string[]): string; /** * Error when an unknown action is provided */ export declare function unknownActionError(action: string, toolName: string, validActions: string[]): string; /** * Error when an unknown strategy is provided */ export declare function unknownStrategyError(strategy: string, validStrategies: string[]): string; /** * Error when Prisma client fails */ export declare function prismaClientError(): string; /** * Error when database connection fails */ export declare function databaseConnectionError(dbType: string, details?: string): string; /** * Error when session encryption key is not set */ export declare function encryptionKeyNotSetError(envVarName: string): string; /** * Error when session decryption fails */ export declare function sessionDecryptionError(): string; /** * Error when session format is invalid */ export declare function invalidSessionFormatError(): string; /** * Error when PDF URL returns non-PDF content */ export declare function notPdfContentError(url: string, actualContentType: string): string; /** * Error when content extraction strategy fails */ export declare function strategyNoResultError(strategy: string): string; /** * Error when page requires full browser */ export declare function pageRequiresFullBrowserError(reason: string, playwrightAvailable: boolean): string; /** * Error when remote browser connection fails */ export declare function remoteBrowserConnectionError(providerName: string, providerType: string, details?: string): string; /** * Error when vector dimensions don't match */ export declare function vectorDimensionMismatchError(expected: number, actual: number): string; /** * Error when embedding text is empty */ export declare function emptyEmbeddingTextError(): string; /** * Error when workflow/recording is not found */ export declare function workflowNotFoundError(workflowId: string): string; /** * Error when recording is not active */ export declare function recordingNotActiveError(recordingId: string, currentStatus: string): string; //# sourceMappingURL=error-messages.d.ts.map